joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4326d3
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x5858e4
call fcn.005595c5
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x4327d5
cmp edi, dword [ebx + 0xc]
jge 0x4327d5
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x43272a
cmp edi, dword [esi + 8]
jl 0x4327c3
cmp dword [ebp + 0xc], 0
je 0x4327c3
xor edi, edi
jmp 0x43275c
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.004321b7
mov esi, eax
test esi, esi
je 0x432744
mov dword [esi], vtable.CThreadData.0
jmp 0x432746
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x14]
mov dword [esi + ecx], eax
mov dword [ebx + 0x14], esi
cmp dword [esi + 0xc], edi
jne 0x432777
push 4
push dword [ebx + 0xc]
call fcn.00424dce
pop ecx
pop ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x43278f
push 2
push 4
push dword [ebx + 0xc]
call fcn.00424dce
pop ecx
pop ecx
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x4327fc
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.0055c930
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4327d5
cmp edi, dword [esi + 8]
jge 0x4327d5
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00559523
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00424a84
int3
Function at 0x446391
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x4463aa
call fcn.00428ec1
mov esi, dword [eax + 0xc]
push 0x598a84
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4463ec
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4463ec
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4463ec
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004463f5
jmp 0x4463ee
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4a3868
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x4a391c
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x4a3918
mov eax, dword [eax + 0x20]
test eax, eax
je 0x4a3918
cmp dword [ebx], eax
jne 0x4a3918
mov eax, dword [ebx + 4]
sub eax, 1
je 0x4a38e7
sub eax, 1
je 0x4a38b5
sub eax, 1
jne 0x4a3918
mov edi, 0x428e
jmp 0x4a38ec
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x4a38ec
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x5929c4]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x4a38ec
add edi, 3
jmp 0x4a38ec
mov edi, 0x3ea0
push edi
call fcn.00428a7c
test eax, eax
je 0x4a391c
push edi
push eax
mov ecx, 0x5f64ac
call fcn.00411ab0
test eax, eax
je 0x4a391c
mov eax, dword [0x5f64ac]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x4a3911
call fcn.00424a6a
int3

Function at 0x4ac4a4
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5ee004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esi - 0x60]
cmp eax, 9
ja 0x4ac4d3
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x4ac500
cmp dword [0x5f51c4], 0
jne 0x4ac500
lea eax, [esi - 0x41]
cmp eax, 0x19
jbe 0x4ac4fc
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jb 0x4ac4fc
push esi
call fcn.0056daa5
pop ecx
jmp 0x4ac573
mov eax, esi
jmp 0x4ac573
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0055c930
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x4ac583
call fcn.0042772d
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
push 2
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push esi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
xor eax, eax
mov word [ebp - 0x106], ax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
movzx eax, word [ebp - 0x108]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005590ab
leave
ret 4
call fcn.00424a6a
int3
Function at 0x4cb5b2
Capabilities:
Get disk information

Disassembly:
push 0x268
mov eax, 0x58bca5
call fcn.0055958e
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x264], eax
test eax, eax
je 0x4cb779
test ebx, ebx
je 0x4cb779
lea ecx, [ebp - 0x268]
mov esi, 0x104
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x4cb622
push 0xffffffffffffffff
push ebx
push esi
push dword [ebp - 0x264]
call fcn.005675fb
push eax
call fcn.00411a20
add esp, 0x14
push ebx
push edi
call fcn.004cb570
xor eax, eax
call fcn.00559538
ret 0xc
cmp eax, esi
jb 0x4cb644
test edi, edi
je 0x4cb618
push ebx
mov dword [edi + 8], 3
call fcn.00566757
pop ecx
push eax
push ebx
lea ecx, [edi + 0x10]
call fcn.00411eb0
jmp 0x4cb618
call fcn.00424f3a
push eax
lea ecx, [ebp - 0x26c]
call fcn.00402250
and dword [ebp - 4], 0
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x264]
call fcn.004caedc
mov esi, dword [ebp - 0x26c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x4cb744
xor ecx, ecx
lea eax, [ebp - 0x270]
push ecx
push ecx
push eax
lea eax, [ebp - 0x274]
push eax
push ecx
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x4cb6b4
push ebx
push edi
call fcn.004cb570
lea ecx, [esi - 0x10]
call fcn.004027a0
jmp 0x4cb618
mov eax, dword [ebp - 0x270]
test al, 2
jne 0x4cb6d0
push dword [ebp - 0x264]
call dword [sym.imp.USER32.dll_CharUpperW]
mov eax, dword [ebp - 0x270]
test al, 4
jne 0x4cb744
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4cb744
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x4cb6a0
cmp eax, dword [ebp - 0x264]
jbe 0x4cb6a0
lea eax, [ebp - 0x234]
push eax
call fcn.00566757
mov edx, dword [ebp - 0x268]
sub edx, dword [ebp - 0x264]
sar edx, 1
pop ecx
add eax, edx
mov ecx, 0x104
cmp eax, ecx
jge 0x4cb754
lea eax, [ebp - 0x234]
sub ecx, edx
push eax
push ecx
push dword [ebp - 0x268]
call fcn.005673ea
push eax
call fcn.00411a20
add esp, 0x10
lea ecx, [esi - 0x10]
call fcn.004027a0
xor eax, eax
inc eax
jmp 0x4cb61a
test edi, edi
je 0x4cb6a7
push ebx
mov dword [edi + 8], 3
call fcn.00566757
pop ecx
push eax
push ebx
lea ecx, [edi + 0x10]
call fcn.00411eb0
jmp 0x4cb6a7
call fcn.00424a6a
int3
Function at 0x4ce1a2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x4ce1f8
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4ce1d1
call fcn.00425a40
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4ce1e6
call fcn.00425a40
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4ce1f8
call fcn.00425a40
call fcn.00428ec1
cmp dword [eax + 0x3c], 0
je 0x4ce20d
push edi
mov ecx, ebx
call fcn.004cd8d2
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004ce3f3
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4ce236
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4ce242
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4d2b57
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x5ee004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x230
xor edi, edi
push edi
push esi
call fcn.0055c930
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.005675fb
push eax
call fcn.00411a20
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x5a6910]
je 0x4d2cc1
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4d2cd5
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4d2cd5
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
jne 0x4d2bf0
mov eax, edi
jmp 0x4d2c1f
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4d2c0d
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.004d28fc
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x28]
jmp 0x4d2c16
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
lea eax, [ecx + 1]
neg eax
sbb eax, eax
and eax, ecx
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.004d2e18
test eax, eax
je 0x4d2c44
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.004d2788
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4d2c48
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.004d2e18
test eax, eax
je 0x4d2c6f
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.004d2788
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4d2c73
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.004d2e18
test eax, eax
je 0x4d2c9b
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.004d2788
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x4d2c9d
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x4d2caf
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x4d2cc1
mov eax, edi
mov dword [esi + 0x10], eax
mov eax, ecx
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005590ab
leave
ret 4
xor eax, eax
jmp 0x4d2cc4

Function at 0x4e1cc7
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
cmp dword [eax - 0xc], 0
je 0x4e1cfd
call fcn.00412496
test eax, eax
je 0x4e1cdf
mov eax, dword [eax + 0x20]
push 1
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 0x14]
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jb 0x4e1cfd
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4f0b90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov ecx, 0x104
mov eax, dword [esi + 4]
cmp eax, ecx
ja 0x4f0d23
je 0x4f0d49
cmp eax, 0xa1
jb 0x4f0d87
cmp eax, 0xa2
jbe 0x4f0d49
cmp eax, 0xa3
jbe 0x4f0d87
cmp eax, 0xa5
jbe 0x4f0d49
cmp eax, 0xa6
jbe 0x4f0d87
cmp eax, 0xa8
jbe 0x4f0d49
cmp eax, 0x100
jne 0x4f0d87
cmp dword [edi + 0xc0], 0xffffffff
je 0x4f0d49
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x4f0d49
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x4f0c78
sub eax, 1
jne 0x4f0d49
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x4f0c67
mov eax, ebx
cdq
idiv ecx
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x5929c4]
mov ecx, edi
call esi
test eax, eax
jne 0x4f0cc4
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x4f0c3d
jmp 0x4f0da1
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x4f0da1
mov eax, ebx
cdq
idiv dword [edi + 0xbc]
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x5929c4]
mov ecx, edi
call esi
test eax, eax
jne 0x4f0cc4
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x4f0c8f
jmp 0x4f0da1
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x5929c4]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x5929c4]
mov ecx, edi
call esi
mov ecx, eax
call fcn.00431664
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x5929c4]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x4f0da1
cmp eax, 0x200
jb 0x4f0d87
cmp eax, 0x202
jbe 0x4f0d49
cmp eax, 0x203
jbe 0x4f0d87
cmp eax, 0x205
jbe 0x4f0d49
add eax, 0xfffffdf9
cmp eax, 1
ja 0x4f0d87
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x4f0d68
cmp dword [eax + 0x20], ebx
je 0x4f0d68
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0xf8]
test eax, eax
je 0x4f0d87
cmp dword [eax + 0x20], ebx
je 0x4f0d87
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 4], 0x203
jne 0x4f0da6
lea eax, [edi + 0x2250]
test eax, eax
je 0x4f0d9d
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x4f0da6
xor eax, eax
inc eax
jmp 0x4f0dae
push esi
mov ecx, edi
call fcn.0048251d
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x51bf88
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x587744
call fcn.0055955a
mov esi, ecx
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x51c06e
mov edi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x51c06e
cmp edi, 0x43
je 0x51bfcd
cmp edi, 0x2d
jne 0x51c06e
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x51c06e
call dword [sym.imp.USER32.dll_EmptyClipboard]
call fcn.00424f3a
push eax
lea ecx, [ebp - 0x10]
call fcn.00402250
movzx eax, byte [esi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [esi + 0xe5]
push eax
movzx eax, byte [esi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push 0x5b38e8
push eax
call fcn.004025b0
mov esi, dword [ebp - 0x10]
add esp, 0x14
mov eax, dword [esi - 0xc]
lea eax, [eax*2 + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.004027a0
mov esi, dword [ebp - 0x14]
push ebx
mov ecx, esi
call fcn.004289bc
call fcn.00559523
ret 4
Function at 0x51fc55
Capabilities:
Get file system object information

Disassembly:
push 0x6f4
mov eax, 0x58e99a
call fcn.0055958e
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x700], edi
test ecx, ecx
je 0x51fdec
mov eax, dword [ebp + 0x10]
xor esi, esi
sub eax, esi
je 0x51fdbe
sub eax, 1
je 0x51fcd4
sub eax, 1
je 0x51fcac
sub eax, 1
je 0x51fcd4
push 0x5cdd40
mov ecx, edi
call fcn.00412030
mov eax, edi
call fcn.00559538
ret 0x10
push 0x408
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x51fc96
lea eax, [ebp - 0x4e8]
push eax
jmp 0x51fc9b
lea eax, [ebp - 0x218]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x51fc96
push esi
lea eax, [ebp - 0x448]
mov dword [ebp - 0x448], esi
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x444], esi
push eax
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x434], esi
call fcn.004d2cd9
test eax, eax
je 0x51fc96
call fcn.00424f3a
push eax
lea ecx, [ebp - 0x700]
call fcn.00402250
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x51fd74
test byte [ebp - 0x428], 0x18
jne 0x51fd96
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
push dword [ebp - 0x42c]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x430]
call dword [0x5929c4]
mov ecx, ebx
call esi
jmp 0x51fd96
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
lea ecx, [ebp - 0x440]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x5929c4]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x700]
add eax, 0xfffffff0
push eax
call fcn.00412140
pop ecx
mov ecx, dword [ebp - 0x700]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.004027a0
jmp 0x51fca2
push 0x208
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x51fc96
lea eax, [ebp - 0x6f0]
jmp 0x51fcd1
call fcn.00424a6a
int3

Function at 0x51ff7f
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.00554964
call fcn.00428f15
cmp dword [eax + 0x14], 0
jne 0x51ff9a
mov ecx, esi
pop esi
jmp fcn.0051f277
pop esi
ret

Function at 0x5203ef
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.0056dfa8
pop ecx
test eax, eax
jne 0x520431
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004212cc
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5203f7
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret
Function at 0x5523c9
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.0041d6b1
call fcn.00428f15
cmp dword [eax + 0x14], 0
jne 0x5523e4
mov ecx, esi
pop esi
jmp fcn.00551c2b
pop esi
ret

Function at 0x5746ed
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00574563
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
lea esi, [ebp - 0xc]
push 0x400000
push esi
call fcn.00402a0d
add esp, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401096
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ecx]
mov edi, dword [ebp + 8]
mov esi, ecx
test eax, eax
je 0x4010b3
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi], 0
xor eax, eax
mov dword [esi + 4], str.8A69D345_D564_463c_AFF1_A69D9E530F96
mov ecx, esi
mov dword [esi + 0x18], eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x13], eax
mov dword [esi + 0xf], eax
push edi
call fcn.004010e8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, esi
push eax
call fcn.0040114e
pop esi
pop edi
pop ebp
ret 4

Function at 0x4010e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
push 0xa
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x401143
mov edi, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401143
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x401143
mov edi, eax
and eax, 1
jne 0x401143
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x401143
and edi, 0xfffffffe
cmp word [edi + eax - 2], 0
jne 0x401143
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x18], eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x401358
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x220
mov eax, dword [0x406048]
test eax, eax
je 0x4014c3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICreate
push eax
call esi
mov dword [0x40603c], eax
push str.FDIDestroy
push dword [0x406048]
call esi
mov dword [0x406044], eax
push str.FDICopy
push dword [0x406048]
call esi
mov dword [0x406040], eax
xor ebx, ebx
cmp dword [0x40603c], 0
je 0x40152f
cmp dword [0x406044], 0
je 0x40152f
test eax, eax
je 0x40152f
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [esi + eax*2]
test eax, eax
jle 0x4013ed
cmp word [ebx], 0x5c
je 0x4013ed
add ebx, 0xfffffffe
cmp ebx, esi
ja 0x4013e0
cmp ebx, esi
je 0x40152d
add ebx, 2
xor edx, edx
dec edx
mov ecx, ebx
call fcn.00401539
sub ebx, esi
mov ecx, esi
mov edi, eax
mov dword [esp + 0xc], eax
sar ebx, 1
mov edx, ebx
call fcn.00401539
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov esi, eax
mov dword [esp + 8], eax
dec edx
call fcn.00401539
xor ebx, ebx
test esi, esi
mov dword [esp + 4], eax
je 0x4014a6
test edi, edi
je 0x4014a6
test eax, eax
je 0x4014a6
xor ebx, ebx
lea eax, [esp + 0x10]
mov dword [esp], edi
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov dword [eax + 8], ebx
push eax
push 0xffffffffffffffff
push 0x4015c0
push 0x4015e0
push 0x401600
push 0x401640
push 0x401680
push 0x401750
push 0x401770
call dword [0x40603c]
add esp, 0x24
test eax, eax
je 0x4014a6
mov edi, eax
push dword [ebp + 0xc]
push ebx
push 0x401790
push ebx
push esi
push dword [esp + 0x14]
push eax
call dword [0x406040]
add esp, 0x1c
test eax, eax
setne bl
push edi
call dword [0x406044]
add esp, 4
lea ecx, [esp + 4]
call fcn.00401838
lea ecx, [esp + 8]
call fcn.00401838
lea ecx, [esp + 0xc]
call fcn.00401838
jmp 0x40152f
lea esi, [esp + 0x10]
push 0x208
push 0
push esi
call fcn.00401020
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, 0xfffffff4
mov word [esp + 0x10], 0
push 0x104
push esi
push dword [edi + 0x404280]
call ebx
dec eax
cmp eax, 0x103
ja 0x401511
push 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x406048], eax
jmp 0x401516
mov eax, dword [0x406048]
test eax, eax
jne 0x401374
add edi, 4
jne 0x4014e2
mov eax, dword [0x406040]
jmp 0x4013ab
xor ebx, ebx
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret