joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a275
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0041a1f1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x41a3e4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41a3e4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x41a399
jg 0x41a2d1
test eax, eax
je 0x41a38f
push 1
push 0x1000
call fcn.0040fb9d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41a2f4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41a386
push 0x8000
push ebx
call fcn.0040e806
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41a31d
jg 0x41a318
cmp ecx, 0x1000
jb 0x41a31d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00412f8b
add esp, 0x10
cmp eax, 0xffffffff
je 0x41a362
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x41a318
jl 0x41a349
test ecx, ecx
jne 0x41a30a
push dword [ebp - 0xc]
push ebx
call fcn.0040e806
push esi
call fcn.0040fbfa
add esp, 0xc
xor ebx, ebx
jmp 0x41a3f2
cmp byte [edi + 0x24], 0
je 0x41a379
cmp dword [edi + 0x20], 5
jne 0x41a379
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x41a384
mov ebx, dword [edi + 0x18]
jmp 0x41a386
xor ebx, ebx
push esi
call fcn.0040fbfa
pop ecx
jmp 0x41a3f2
test ecx, ecx
jg 0x41a35b
jl 0x41a399
test eax, eax
jae 0x41a35b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041909b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41a3b9
cmp byte [edi + 0x1c], 0
je 0x41a35b
jmp 0x41a3ea
push ebx
call fcn.00415642
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41a35b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41a3f2
cmp byte [edi + 0x1c], 0
je 0x41a3ef
mov ebx, dword [edi + 0x18]
jmp 0x41a3f2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041909b
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41c280
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41c2ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41c2ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x45f0e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x45f0ef
pop dword [ebp - 0x30]
mov eax, 0x29d1d897
sub eax, 0x298be7a8
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0xb16cd81c
sub dword [ebp - 0x40], 0x631a92d1
mov dword [ebp - 0x3c], 0xce3d54e9
add dword [ebp - 0x3c], 0x63f5f75c
mov dword [ebp - 0x38], 0xc937030c
add dword [ebp - 0x38], 0x83154122
mov dword [ebp - 0x34], 0xbb52075a
add dword [ebp - 0x34], 0x44adf8a6
lea eax, [ebp - 0x40]
push eax
mov eax, 0x575dbaec
sub eax, 0x571daa98
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x8eb47d8a
sub dword [ebp - 0x40], 0x1a421434
mov dword [ebp - 0x3c], 0x37499bb3
add dword [ebp - 0x3c], 0xa22c5c2
mov dword [ebp - 0x38], 0xd34808ff
add dword [ebp - 0x38], 0x9027636d
mov dword [ebp - 0x34], 0xe8fd43cc
add dword [ebp - 0x34], 0x1702bc34
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x46186
push 0
call eax
mov ecx, 0xe9a369b3
add ecx, 0x165cdee6
mov edx, eax
mov edi, 0x39a03563
sub edi, 0x39578d63
add edi, dword [ebp - 0x30]
mov esi, 0x30c3a379
mov dword [ebp - 0x10], 0x44e2873b
mov ebx, dword [edi]
xor dword [ebp - 0xc], esi
xor ebx, esi
mov dword [edx], ebx
xor dword [ebp - 0x10], 0xefba1128
add edx, 4
add edi, 0x23dc1048
add edi, 0xdc23efbc
loop 0x45f206
add eax, 0x11537
mov ebx, eax
add eax, 0x2853dd14
sub eax, 0x2853dd0f
mov ecx, 0x42844ef9
add ecx, 0xbdbbb107
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x5e5bf0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.HAOCMP1
lea edi, [esi - 0x142000]
push edi
or ebp, 0xffffffff
jmp 0x5e5c12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5e5c19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5e5c08
mov eax, 1
add ebx, ebx
jne 0x5e5c2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5e5c3c
jne 0x5e5c5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5e5c5b
dec eax
add ebx, ebx
jne 0x5e5c48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5e5c20
add ebx, ebx
jne 0x5e5c57
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5e5cad
xor ecx, ecx
sub eax, 3
jb 0x5e5c73
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5e5ce2
sar eax, 1
mov ebp, eax
jmp 0x5e5c7e
add ebx, ebx
jne 0x5e5c7e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5e5c4c
inc ecx
add ebx, ebx
jne 0x5e5c8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5e5c4c
add ebx, ebx
jne 0x5e5c99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5e5c8e
jne 0x5e5caa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5e5c8e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5e5ccc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5e5cbe
jmp 0x5e5c0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5e5ccc
add edi, ecx
jmp 0x5e5c0e
pop esi
mov edi, esi
mov ecx, 0x4acd
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5e5cea
cmp byte [edi], 0x11
jne 0x5e5cea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5e5cef
lea edi, [esi + 0x1e2000]
mov eax, dword [edi]
or eax, eax
je 0x5e5d67
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x23bf0c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x23c038]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5e5d1c
mov ecx, edi
jns 0x5e5d4b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x23c03c]
or eax, eax
je 0x5e5d61
mov dword [ebx], eax
add ebx, 4
jmp 0x5e5d39
call dword [esi + 0x23c044]
mov ebp, dword [esi + 0x23c040]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x24f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5e5d9b
sub esp, 0xffffff80
jmp 0x4396a6
Function at 0x401000
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539ac3
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x58bc40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00416a84
xor eax, eax
mov dword [ebp - 4], eax
lea ebx, [esi + 0x10]
mov dword [esi], vtable.BCMenuMemDC.0
mov dword [ebx + 4], eax
mov dword [ebx], vtable.CBitmap.0
lea edi, [esi + 0x20]
mov byte [ebp - 4], 1
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
push eax
push edi
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], 0
cmp dword [eax + 0xc], ecx
sete cl
mov dword [esi + 0x30], ecx
test ecx, ecx
je 0x4010de
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.00417078
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
push eax
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebx
call fcn.0041734c
test ebx, ebx
je 0x4010bd
mov ebx, dword [ebx + 4]
mov eax, dword [esi + 4]
push ebx
push eax
call fcn.004173dd
mov ecx, dword [esi + 0x24]
mov edx, dword [edi]
push ecx
mov dword [esi + 0x18], eax
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00416c06
jmp 0x4010f0
mov ecx, dword [eax + 0xc]
mov dword [esi + 0xc], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401210
Capabilities:
Check os version

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4012b4
push 0x114
mov edi, 1
call fcn.0051499f
mov esi, eax
add esp, 4
test esi, esi
je 0x401327
push 0x114
push 0
push esi
call fcn.005168b0
add esp, 0xc
push esi
mov dword [esi], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x401275
push esi
lea edi, [eax + 1]
call fcn.00514a33
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 5
jne 0x40131e
cmp dword [esi + 8], 0
jne 0x401295
push esi
lea edi, [eax + 1]
call fcn.00514a33
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 5
jne 0x40131e
cmp dword [esi + 8], edi
jne 0x40131e
push esi
lea edi, [eax + 2]
call fcn.00514a33
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp al, 4
jae 0x4012bd
pop edi
xor eax, eax
pop esi
ret
push 0x114
mov edi, 2
call fcn.0051499f
mov esi, eax
add esp, 4
test esi, esi
je 0x401327
push 0x114
push 0
push esi
call fcn.005168b0
add esp, 0xc
push esi
mov dword [esi], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x40131e
cmp dword [esi + 8], 0xa
jne 0x401311
push esi
lea edi, [eax - 1]
call fcn.00514a33
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 4
jne 0x40131e
cmp dword [esi + 8], 0x5a
jne 0x40131e
mov edi, eax
push esi
call fcn.00514a33
add esp, 4
mov eax, edi
pop edi
pop esi
ret
Function at 0x405e60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x58bc40]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x593c68], 0
jne 0x405f50
lea eax, [ebp - 0x250]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftPlus_ThemesCurrent
push SysReAllocStringLen
mov dword [0x593c68], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405f50
lea ecx, [ebp - 0x258]
push ecx
mov ecx, dword [ebp - 0x250]
lea edx, [ebp - 0x24c]
push edx
lea eax, [ebp - 0x254]
push eax
push 0
push 0
push ecx
mov dword [ebp - 0x258], 0x104
mov dword [ebp - 0x254], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405f43
push esi
push edi
mov ecx, 0xb
mov esi, str.Windows_Classic.theme
lea edi, [ebp - 0x30]
lea edx, [ebp - 0x24c]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edx
call edi
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call edi
cmp esi, eax
jl 0x405f41
lea ecx, [ebp - 0x30]
push ecx
mov edx, ecx
push edx
call edi
sub esi, eax
lea eax, [ebp + esi*2 - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x405f41
mov dword [0x593c64], 1
pop edi
pop esi
mov ecx, dword [ebp - 0x250]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [0x593c64]
xor ecx, ebp
call fcn.0051447c
mov esp, ebp
pop ebp
ret

Function at 0x4072f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40730b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407342
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40733e
jmp 0x407330
cmp esi, eax
jae 0x407342
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407330
cmp esi, eax
jb 0x407349
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40ef50
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5395b0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x58bc40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x14]
push eax
push 0x566da0
push 1
push 0
push 0x566de0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40efb4
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
push esi
lea ecx, [ebp - 0x10]
call fcn.004075e0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
push 0x5c
push eax
call fcn.00514c0b
add esp, 8
or esi, 0xffffffff
test eax, eax
jne 0x40efe9
mov eax, esi
jmp 0x40efee
sub eax, dword [ebp - 0x10]
sar eax, 1
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00406350
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00407da0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f02a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push 0x566e40
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jns 0x40f087
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x40f075
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
push 2
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x40f0d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40f0f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539e88
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x58bc40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
mov dword [ebp - 4], 0
push ecx
mov word [ebp - 0x218], ax
call fcn.005168b0
add esp, 0xc
push 0
push 0x19
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x21a], 0x5c
jne 0x40f17f
push esi
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x40f19d
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x568504
lea edx, [ebp - 0x218]
push edx
call edi
push esi
lea eax, [ebp - 0x218]
push eax
call edi
mov ecx, dword [ebp + 8]
mov esi, dword [ecx - 0xc]
test esi, esi
jns 0x40f1b1
push 0x80070057
call fcn.00408450
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x40f1ce
push esi
lea ecx, [ebp + 8]
call fcn.004083b0
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x218]
push edx
call fcn.0040ef50
add esp, 4
test eax, eax
jne 0x40f20b
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f207
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40f25c
mov ecx, dword [ebx + 0x170]
lea edx, [ebp - 0x218]
add ecx, 0x300
lea ecx, [ecx]
movzx eax, word [edx]
mov word [ecx], ax
add edx, 2
add ecx, 2
test ax, ax
jne 0x40f220
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f257
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051447c
mov esp, ebp
pop ebp
ret 4
Function at 0x40f280
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539e88
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x58bc40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
mov dword [ebp - 4], 0
push ecx
mov word [ebp - 0x218], ax
call fcn.005168b0
add esp, 0xc
push 0
push 0x17
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x21a], 0x5c
jne 0x40f30c
push edi
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x40f355
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x568504
lea edx, [ebp - 0x218]
push edx
call esi
push 0x567e34
lea eax, [ebp - 0x218]
push eax
call esi
push 0
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x568504
lea edx, [ebp - 0x218]
push edx
call esi
push edi
lea eax, [ebp - 0x218]
push eax
call esi
mov ecx, dword [ebp + 8]
mov esi, dword [ecx - 0xc]
test esi, esi
jns 0x40f369
push 0x80070057
call fcn.00408450
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x40f386
push esi
lea ecx, [ebp + 8]
call fcn.004083b0
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x218]
push edx
call fcn.0040ef50
add esp, 4
test eax, eax
jne 0x40f3c6
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f3bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40f461
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jl 0x40f413
push 0x5684d8
push eax
call fcn.00514bab
add esp, 8
test eax, eax
je 0x40f413
sub eax, dword [ebp + 8]
sar eax, 1
js 0x40f413
mov ecx, dword [ebx + 0x170]
lea edx, [ebp - 0x218]
add ecx, 0x200
lea ebx, [ebx]
movzx eax, word [edx]
mov word [ecx], ax
add edx, 2
add ecx, 2
test ax, ax
jne 0x40f400
jmp 0x40f436
mov ecx, dword [ebx + 0x170]
lea edx, [ebp - 0x218]
add ecx, 0x400
movzx eax, word [edx]
mov word [ecx], ax
add edx, 2
add ecx, 2
test ax, ax
jne 0x40f425
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f45c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051447c
mov esp, ebp
pop ebp
ret 4
Function at 0x410730
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x538ec8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x58bc40]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0042718a
push 0
push 0x20000
push 0
mov ecx, esi
call fcn.004249ae
mov eax, dword [esi + 0x20]
push 0
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.00419db2
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x41082e
call fcn.00418988
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4107ad
push 0x80004005
call fcn.00408450
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x10], edi
push 0x65
mov dword [esp + 0x2c], 0
call fcn.00421fe9
test eax, eax
je 0x4107e0
push 0x65
push eax
lea ecx, [esp + 0x18]
call fcn.00407430
mov edi, dword [esp + 0x10]
cmp dword [edi - 0xc], 0
je 0x41080a
mov ecx, dword [ebx + 4]
mov ebx, dword [sym.imp.USER32.dll_AppendMenuW]
push 0
push 0
push 0x800
push ecx
call ebx
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 4]
push edi
push 0x10
push 0
push eax
call ebx
lea eax, [edi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41082e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0xb8]
mov edx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push ecx
push 1
push 0x80
push edx
call edi
mov eax, dword [esi + 0xb8]
mov ecx, dword [esi + 0x20]
push eax
push 0
push 0x80
push ecx
call edi
call fcn.0041b517
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x18], ebx
call fcn.0041b517
mov eax, dword [eax + 0xc]
mov edi, dword [sym.imp.USER32.dll_LoadImageW]
push 0
push 0
push 0
push 0
push 0x8b
push eax
mov dword [esp + 0x28], eax
call edi
push 0
push 0
push 0
push 0
push 0x89
push ebx
mov dword [esp + 0x2c], eax
call edi
mov ebx, eax
mov eax, dword [esp + 0x14]
lea ecx, [esi + 0x2ec]
call fcn.0040a2b0
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0x8b
push edx
call edi
mov ecx, dword [esp + 0x18]
push 0
push 0
push 0
push 0
push 0x89
push ecx
mov dword [esp + 0x30], eax
call edi
mov ebx, eax
mov eax, dword [esp + 0x18]
lea ecx, [esi + 0xb5c]
call fcn.0040a2b0
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret