joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457c18
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x457c50]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x457c31
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x457c40
or bl, 4
test esi, 0x20000000
je 0x457c4b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45e2f8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45e30a
add esp, 0xfffffff0
call fcn.0040364c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d974
mov eax, dword [0x49d660]
mov dword [eax + 4], ebx
mov dword [eax], 0x45e69c
mov eax, dword [0x49d66c]
mov dword [eax + 4], ebx
mov dword [eax], 0x45e6a8
mov eax, ebx
call fcn.0045e6b4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x415b8c]
call fcn.004032f8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x415b8c]
call fcn.004032f8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x415b8c]
call fcn.004032f8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x415b8c]
call fcn.004032f8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x415b8c]
call fcn.004032f8
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x45aad0
push eax
push 0
push 0
mov eax, dword [0x49d7e4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41f3f8]
call fcn.00420b6c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41f3f8]
call fcn.00420b6c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41f3f8]
call fcn.00420b6c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045ead4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45e9b0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45e9b0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45e9b0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45e447
call fcn.004036a4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45e794
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45e93f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45e920
mov dl, 1
mov eax, dword [0x415fa8]
call fcn.004032f8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040413c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45e90f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044c2c4
test al, al
je 0x45e902
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45e950
lea eax, [ebp - 0x254]
call fcn.00409444
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45e902
xor eax, eax
push ebp
push 0x45e8fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45e988
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45e8e4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004043ac
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45e8e4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004043ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e902
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45e805
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00419b28
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e946
lea eax, [ebp - 0x260]
call fcn.0040413c
ret

Function at 0x45f274
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x49ebe0]
cmp byte [eax + 0xa5], 0
jne 0x45f2e5
cmp dword [0x49ebf8], 0
jne 0x45f2a6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45f230
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x49ebf8], eax
cmp dword [0x49ebf4], 0
jne 0x45f2c1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x49ebf4], eax
cmp dword [0x49ebfc], 0
jne 0x45f2e5
push esp
push 0
push 0
push 0x45f1d4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x49ebfc], eax
pop edx
ret
Function at 0x45f3dc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45f3f3
add esp, 0xfffffff0
call fcn.0040364c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d974
mov eax, dword [0x49d7d0]
cmp word [eax + 2], 0
jne 0x45f41b
mov eax, dword [0x49d7d0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00460acc
mov eax, dword [0x49d894]
cmp word [eax + 2], 0
jne 0x45f435
mov eax, dword [0x49d894]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00460cc4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415b8c]
call fcn.004032f8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415b8c]
call fcn.004032f8
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41fed8]
call fcn.004276d4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45f5bc
mov eax, dword [0x49d6e0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00427aa4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x461264
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x49d6e0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040ccdc
test eax, eax
je 0x45f52a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408e24
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cd04
test eax, eax
je 0x45f53e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004043ac
mov eax, dword [0x49d580]
cmp byte [eax], 0
jne 0x45f572
mov eax, ebx
call fcn.0045f6e4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00461440
mov eax, ebx
call fcn.00461e04
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45f5b2
call fcn.004036a4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45f964
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x49ebe0]
cmp dword [eax + 0x30], 0
je 0x45fa0e
cmp dword [ebx + 0x94], 0
jne 0x45fa08
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45f8f4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45fa08
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45f9ce
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45fa08
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00417f28
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45f9dd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x460570
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4605a5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040422c
jmp 0x4605b2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404190
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46161c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46165d
mov eax, esi
call fcn.00447868
test al, al
je 0x46165d
mov eax, dword [ebx + 0x84]
call fcn.00447564
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46165d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00447564
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x463058
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4632b8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4630bb
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00462d00
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040c850
cmp al, 1
jne 0x4630bb
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00462fc8
test al, al
je 0x463247
cmp dword [ebp - 8], 0
jge 0x4630d9
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00462d00
mov eax, dword [ebp - 0x210]
call fcn.004043fc
cmp ebx, eax
jge 0x463123
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00462d00
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x49da14]
and eax, 0xff
bt dword [edx], eax
jae 0x463123
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x463137
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00463034
cmp ebx, dword [ebp - 8]
je 0x463239
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x463163
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403524
and eax, 0x7f
movzx eax, word [eax*2 + 0x49cf0c]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x463226
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403524
and eax, 0x7f
movzx eax, word [eax*2 + 0x49cf0c]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00447564
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403524
and eax, 0x7f
movzx eax, word [eax*2 + 0x49cf0c]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00447564
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46322d
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x46329a
cmp dword [ebp - 8], 0
jge 0x463252
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00462d00
mov eax, dword [ebp - 0x218]
call fcn.004043fc
cmp eax, dword [ebp - 8]
jg 0x46328c
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00462d00
mov eax, dword [ebp - 0x21c]
call fcn.004043fc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00463034
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4632bf
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404160
ret
Function at 0x46803c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.004219dc
cmp ebx, dword [ebp - 8]
jge 0x46809f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00421dd8
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00421dd8
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00421e04
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x468065
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4680a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.004219dc
cmp ebx, dword [ebp - 8]
jge 0x46810b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00421dd8
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00421dd8
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00421e04
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x4680d1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x499350
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0x4993e4
push 0
mov eax, ebx
call fcn.004045fc
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x4993bf
mov eax, esi
call fcn.004043fc
inc eax
push eax
mov eax, esi
call fcn.004045fc
push eax
push 1
push 0
mov eax, edi
call fcn.004045fc
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
je 0x4993da
mov ecx, dword [0x49d6dc]
mov dl, 1
mov eax, dword [0x497aa4]
call fcn.0040bf08
call fcn.00403b78
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x40216e
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
add esp, 0xfffff7e0
lea eax, [esp + 0x400]
push eax
push 0x400
call sub.KERNEL32.DLL_GetTempPathA
push esp
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea eax, [esp + 0x400]
call fcn.0040c510
mov ecx, eax
mov edx, esp
lea eax, [esp + 0x400]
call fcn.0040c5e4
test eax, eax
jne 0x402205
push 0x4121f1
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esp
call fcn.0040c510
mov byte [esp + eax + 1], 0
lea eax, [esp + 0x800]
mov ecx, 0x1e
xor edx, edx
call fcn.0040c490
mov dword [esp + 0x804], 3
mov word [esp + 0x810], 0x14
mov eax, esp
mov dword [esp + 0x808], eax
lea edx, [esp + 0x800]
push edx
call sub.SHELL32.DLL_SHFileOperationA
add esp, 0x820
ret

Function at 0x402380
Capabilities:
Get geographical location

Disassembly:
add esp, 0xffffff9c
push 0x64
lea eax, [esp + 4]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [esp]
add esp, 0x64
ret

Function at 0x40238a
Capabilities:
Get geographical location

Disassembly:
add esp, 0xffffff9c
push 0x64
lea eax, [esp + 4]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [esp]
add esp, 0x64
ret

Function at 0x4024c4
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9ec
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor ebx, ebx
push 0
call sub.OLE32.DLL_OleInitialize
lea eax, [ebp - 8]
push eax
push 0x412690
push 1
push 0
push 0x4126a0
call sub.OLE32.DLL_CoCreateInstance
test eax, eax
jl 0x4025c3
push esi
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x50]
push edi
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
cmp dword [ebp + 0xc], 0
je 0x402527
push 0
push dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x44]
cmp dword [ebp + 8], 0
je 0x402539
push dword [ebp + 8]
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x2c]
lea eax, [ebp - 0x40c]
mov edx, esi
call fcn.0040c590
lea eax, [ebp - 0x40c]
call fcn.0040518c
cmp byte [ebp - 0x40c], 0
je 0x40256a
lea edx, [ebp - 0x40c]
push edx
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
lea edx, [ebp - 0xc]
push edx
push 0x4126b0
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jl 0x4025ba
push 0x104
lea edx, [ebp - 0x614]
push edx
push 0xffffffffffffffff
push dword [ebp - 4]
push 0
push 0
call sub.KERNEL32.DLL_MultiByteToWideChar
push 1
lea ecx, [ebp - 0x614]
push ecx
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 0x18]
test eax, eax
jl 0x4025b1
mov bl, 1
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
call sub.OLE32.DLL_OleUninitialize
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x405410
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
call fcn.00404764
test eax, eax
je 0x405436
test ebx, ebx
je 0x405436
cmp word [ebx], 0
je 0x405436
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x40543e
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x405451
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.00405644
xor eax, eax
jmp 0x40546c
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x405460
cmp eax, 3
jne 0x405467
mov eax, 2
jmp 0x40546c
mov eax, 1
pop edi
pop esi
pop ebx
ret

Function at 0x4055b8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.00404764
test eax, eax
je 0x4055e3
test ebx, ebx
je 0x4055e3
cmp word [ebx], 0
je 0x4055e3
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret

Function at 0x405644
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
call fcn.00404764
test eax, eax
je 0x405671
test ebx, ebx
je 0x405671
cmp word [ebx], 0
je 0x405671
push esi
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
setne al
and eax, 1
jmp 0x405680
push esi
push edi
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
setne al
and eax, 1
pop edi
pop esi
pop ebx
ret

Function at 0x408da0
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, ecx
test esi, esi
mov edi, eax
mov dword [esp], edx
je 0x408e81
mov eax, dword [edi + 0xc]
test eax, eax
je 0x408ddb
dec eax
je 0x408dc5
dec eax
je 0x408dd1
jmp 0x408ddb
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x408ddb
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
cmp dword [edi + 0xc], 0
je 0x408e2d
xor ebp, ebp
cmp esi, ebp
jle 0x408e49
push 0
lea eax, [esp + 8]
push eax
mov edx, esi
sub edx, ebp
cmp edx, 0x4000
jge 0x408e00
mov ecx, esi
sub ecx, ebp
jmp 0x408e05
mov ecx, 0x4000
push ecx
mov eax, dword [esp + 0xc]
add eax, ebp
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
je 0x408e49
add ebp, 0x4000
cmp esi, ebp
jg 0x408de7
jmp 0x408e49
push 0
lea eax, [esp + 8]
push eax
push esi
push dword [esp + 0xc]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
jne 0x408e7d
cmp dword [edi + 0xc], 0
jne 0x408e7d
lea ebp, [edi + 0x15]
mov eax, 0x413edc
mov edx, ebp
call fcn.00407318
test al, al
jne 0x408ddb
mov edx, ebp
mov eax, 0x413edc
call fcn.004072e8
jmp 0x408e7d
mov byte [edi + 8], 1
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40d244
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [0x4125d8], 0
jne 0x40d25d
call fcn.0040c730
mov dword [0x4125d4], eax
inc byte [0x4125d8]
call fcn.0040c730
sub eax, dword [0x4125d4]
cmp eax, 0x64
jle 0x40d299
cmp dword [0x4126c8], 0
je 0x40d294
mov eax, 0x413edc
mov edx, 0xff
call fcn.00407434
mov eax, 0x413edc
mov edx, 0xff
call fcn.00407428
call fcn.00402344
ret
Function at 0x401120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401139
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40114d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40116e
cmp esi, eax
jae 0x401147
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401160
cmp esi, eax
jae 0x401147
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403990
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4421d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00403800
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00403440
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x403a22
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret