joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59f100
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
mov eax, esi
mov edx, 0xffffffec
push edx
push eax
call sub.user32.dll_GetWindowLongW
mov edi, eax
test bl, bl
je 0x59f127
test edi, 0x40000
je 0x59f141
test bl, bl
jne 0x59f1d0
mov eax, 0x40000
and eax, edi
cmp eax, 0x40000
jne 0x59f1d0
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x59f174
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x59f190
mov eax, esi
mov edx, 0xffffffec
mov ecx, 0x40000
or ecx, edi
push ecx
push edx
push eax
call sub.user32.dll_SetWindowLongW
jmp 0x59f1a6
mov eax, esi
mov edx, 0xffffffec
mov ecx, 0xfffbffff
and ecx, edi
push ecx
push edx
push eax
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x59f1b7
cmp byte [esp + 2], 0
je 0x59f1d0
cmp byte [esp + 2], 0
je 0x59f1c8
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x59f1d0
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x59f480
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x59f4a6
mov eax, esp
push eax
push 0x59f448
call sub.user32.dll_EnumWindows
jmp 0x59f4b9
mov eax, esp
push eax
push 0x59f428
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x59f57c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x59f5cc]
test bl, 4
je 0x59f590
or si, 1
test bl, 8
je 0x59f599
or si, 4
test bl, 1
je 0x59f5a2
or si, 8
test bl, 2
je 0x59f5ab
or si, 0x10
test bl, 0x10
je 0x59f5b4
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x59f5c4
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x59f5d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x59f60c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x59f5eb
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x59f5fb
or bx, 4
test esi, 0x20000000
je 0x59f607
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x5a8360
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x5a8372
add esp, 0xfffffff0
call fcn.00407c40
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004c4408
mov eax, dword [0x5ddaf0]
mov dword [eax + 4], ebx
mov dword [eax], 0x5a8828
mov eax, dword [0x5ddb00]
mov dword [eax + 4], ebx
mov dword [eax], 0x5a8834
mov eax, ebx
call fcn.005a8840
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x48a534]
call fcn.0040760c
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x48a534]
call fcn.0040760c
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x48a534]
call fcn.0040760c
mov dword [ebx + 0x64], eax
mov dl, 1
mov eax, dword [0x48a534]
call fcn.0040760c
mov dword [ebx + 0x68], eax
mov dl, 1
mov eax, dword [0x48a534]
call fcn.0040760c
mov dword [ebx + 0x84], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x50], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x68]
push eax
mov eax, 0x5a30c0
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x4f9e74]
call fcn.004fffc4
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x4f9e74]
call fcn.004fffc4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4f9e74]
call fcn.004fffc4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4f9e74]
call fcn.004fffc4
mov dword [ebx + 0x94], eax
mov dl, 1
mov eax, dword [0x4f9e74]
call fcn.004fffc4
mov dword [ebx + 0x98], eax
mov eax, ebx
call fcn.005a8e30
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5a8c4c
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5a8c4c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5a8c4c
mov eax, dword [ebx + 0x94]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5a8c4c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5a8c4c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5a84f2
call fcn.00407c98
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x5a89ec
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5a8b97
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x5a8b78
mov dl, 1
mov eax, dword [0x48dcf0]
call fcn.004b11c4
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.004092ac
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5a8b67
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.0052cb9c
test al, al
je 0x5a8b5a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x5a8ba8
lea eax, [ebp - 0x394]
call fcn.00422554
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x5a8b5a
xor eax, eax
push ebp
push 0x5a8b53
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x5a8c18
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x5a8b3c
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00409e94
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x4c]
jne 0x5a8b3c
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00409e94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a8b5a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5a8a5d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.004b1100
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a8b9e
lea eax, [ebp - 0x3a0]
call fcn.004092ac
ret

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

Disassembly:
push ecx
mov eax, dword [0x5e4310]
cmp byte [eax + 0xc1], 0
jne 0x5a97ca
cmp dword [0x5e4330], 0
jne 0x5a978a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x5dd944]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x5e4330], eax
cmp dword [0x5e432c], 0
jne 0x5a97a5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x5e432c], eax
cmp dword [0x5e4334], 0
jne 0x5a97ca
push esp
push 0
push 0
mov eax, dword [0x5dd940]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5e4334], eax
pop edx
ret
Function at 0x5a9db8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x5a9dcf
add esp, 0xfffffff0
call fcn.00407c40
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004c4408
mov eax, dword [0x5dd9bc]
cmp byte [eax], 0
jne 0x5a9dfc
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x194], al
mov eax, dword [0x5ddccc]
cmp word [eax + 2], 0
jne 0x5a9e16
mov eax, dword [0x5ddccc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005ac0d0
mov eax, dword [0x5dddf8]
cmp word [eax + 2], 0
jne 0x5a9e30
mov eax, dword [0x5dddf8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005ac2d4
mov byte [ebx + 0x41], 0
mov dl, 1
mov eax, dword [0x4f9e74]
call fcn.004fffc4
mov esi, eax
mov dword [ebx + 0x54], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x5ac84c
mov dl, 1
mov eax, dword [0x48a534]
call fcn.0040760c
mov dword [ebx + 0xa4], eax
mov dl, 1
mov eax, dword [0x48a534]
call fcn.0040760c
mov dword [ebx + 0xc4], eax
xor eax, eax
mov dword [ebx + 0x74], eax
xor eax, eax
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x70], 0xff000018
mov dword [ebx + 0x8c], 0x1f4
mov byte [ebx + 0x90], 1
xor eax, eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x88], 0x9c4
mov byte [ebx + 0x9c], 0
mov byte [ebx + 0xb9], 1
mov byte [ebx + 0xd0], 1
mov dl, 1
mov eax, dword [0x4fe89c]
call fcn.00509734
mov esi, eax
mov dword [ebx + 0xb4], esi
push 0x5aa018
mov eax, dword [0x5ddb94]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00509bc4
mov eax, dword [ebx + 0xb4]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x5acb34
mov dl, 1
mov eax, dword [0x48a534]
call fcn.0040760c
mov dword [ebx + 0xac], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x5ddb94]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00422368
test eax, eax
je 0x5a9f4a
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.004221a4
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0042234c
test eax, eax
je 0x5a9f62
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0xa0]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00409e94
push ebx
push 0x5abaac
call fcn.0059f560
mov dword [ebx + 0x190], eax
mov byte [ebx + 0xe4], 0
mov eax, dword [0x5dd9bc]
cmp byte [eax], 0
jne 0x5a9fb3
mov eax, ebx
call fcn.005aa1e0
mov byte [ebx + 0x6d], 1
mov byte [ebx + 0x6e], 1
mov byte [ebx + 0x6f], 1
mov byte [ebx + 0xba], 1
mov byte [ebx + 0xe5], 0
mov byte [ebx + 0xf0], 0
xor eax, eax
mov dword [ebx + 0xe8], eax
mov byte [ebx + 0xe7], 0
xor eax, eax
mov dword [ebx + 0xbc], eax
mov eax, ebx
call fcn.005acd7c
mov eax, ebx
call fcn.005ad9d4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5aa010
call fcn.00407c98
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5aa520
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x5aa5cc
cmp dword [ebx + 0xa8], 0
jne 0x5aa5c6
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x5aa458
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa4]
cmp dword [eax + 8], 0
je 0x5aa5c6
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
mov eax, esi
mov edx, 0xffffffec
push edx
push eax
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x5aa58c
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa4]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x5aa5c6
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0xa4]
call fcn.004acaec
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5aa59b
inc dword [ebx + 0xa8]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x5aa7ec
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x5e4310]
cmp dword [eax + 0x188], 0
je 0x5aa951
test bl, bl
jne 0x5aa89f
cmp dword [esi + 0xb0], 0
jne 0x5aa894
mov eax, esi
call fcn.005ad824
push eax
push 0x5aa6f8
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x5aa865
mov eax, dword [0x5e4310]
cmp byte [eax + 0xe7], 0
je 0x5aa865
mov eax, dword [esi + 0xec]
call fcn.0040b05c
mov edi, eax
cmp edi, 0
jl 0x5aa865
push 0
mov eax, dword [esi + 0xec]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5aa84e
mov eax, dword [esi + 0xac]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5aa894
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0xac]
call fcn.004acaec
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5aa874
inc dword [esi + 0xb0]
jmp 0x5aa951
cmp dword [esi + 0xb0], 0
jle 0x5aa951
dec dword [esi + 0xb0]
cmp dword [esi + 0xb0], 0
jne 0x5aa951
cmp dword [esi + 0x58], 0
je 0x5aa8fc
mov eax, dword [0x5e4310]
cmp byte [eax + 0xe7], 0
je 0x5aa8fc
mov eax, dword [esi + 0xec]
call fcn.0040b05c
mov edi, eax
cmp edi, 0
jl 0x5aa8fc
push 5
mov eax, dword [esi + 0xec]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5aa8e5
mov eax, dword [esi + 0xac]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5aa92b
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0xac]
call fcn.004acaec
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5aa90b
mov eax, dword [esi + 0xac]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xec]
mov ecx, 1
mov edx, dword [0x59c3d8]
call fcn.0040b270
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x5ab5ac
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc0], 0
je 0x5ab609
cmp byte [ebx + 0xe7], 0
jne 0x5ab609
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x188]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00409434
mov eax, dword [esi]
test eax, eax
je 0x5ab5f6
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x5ab616
mov eax, esi
mov edx, dword [ebx + 0xa0]
call fcn.0040968c
jmp 0x5ab616
mov eax, esi
mov edx, dword [ebx + 0xa0]
call fcn.0040968c
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5acf68
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x5acfd9
mov eax, esi
call fcn.00526968
test al, al
je 0x5acfd9
mov eax, dword [ebx + 0x98]
call fcn.00526590
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5acfd9
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x110]
test al, al
je 0x5acfca
push 0
mov eax, dword [ebx + 0x98]
call fcn.00526590
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x98]
call fcn.0051d264
jmp 0x5acfd9
mov cl, 1
mov edx, dword [ebx + 0x88]
mov eax, ebx
call fcn.005acd9c
pop esi
pop ebx
ret
Function at 0x1e295f0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1e295fa
add byte [eax], al
pushal
call 0x1e29600
pop ebp
sub ebp, 0x10
sub ebp, 0x1a295f0
jmp 0x1e29616
mov eax, 0x1a295f0
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b8
mov edx, 0x796fa398
xor byte [eax], dl
inc eax
dec ecx
jne 0x1e2962d
jmp 0x1e29640
adc edx, dword [ebp + 0x13]
adc dword [eax + ebx*4 + 0x59199898], esp
pushal
cwde
cwde
cwde
wait
push ebp
and byte [ebp + 0x22989898], bl
mov al, 0x98
cwde
cwde
outsd dx, dword [esi]
jp 0x1e295f8
push eax
adc ebx, dword [ecx]
xchg esp, eax
cwde
cwde
cwde
wait
pop ebp
enter 0xfffffffffffffc15, 0xffffffffffffffbc
adc dword fs:[esp + edi*4 - 0x78d05f10], ebx
cwde
invalid
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x438ca5
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x438a14
sub ecx, edx
or ecx, edx
call fcn.00438ce8
add ecx, 1
add ecx, 0x209f74e2
push edx
pop ecx
xor dword [ebx], eax
sub edx, 0xf9c3592e
inc ebx
sub ecx, ecx
sub ecx, 0x826edfe0
mov ecx, edx
cmp ebx, edi
jne fcn.00438ca5
sub ecx, 0x9f1d1066
or edx, ecx
ret
Function at 0xfa6370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xfa638e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xfcf074
push ecx
mov edi, eax
call fcn.00fba198
mov esi, eax
add esp, 8
test esi, esi
jne 0xfa63cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00fba02e
push esi
call fcn.00fb9fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xfa9850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xfa98ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xfd4720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xfa98ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00fba1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xfa98ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xfd4720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xfa992a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00fbb082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xfa9957
mov word [eax], si
add eax, 2
push eax
call fcn.00fbb030
add esp, 4
jmp 0xfa9959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xfa98ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xfa98b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xfa9ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xfaa080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xfaa0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xfcf458
push ecx
call fcn.00fba1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00fba1e1
add esp, 0x10
jmp 0xfaa0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00fba20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00fb9dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00faa050
mov eax, dword [0xfd4728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xfaa13b
push esi
call fcn.00fa9fb0
add esp, 4
mov dword [0xfd4728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xfaa14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00fa9ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xfad440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xfad4b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xfad48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xfad471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xfad47e
add edx, ecx
cmp ebx, edx
jb 0xfad48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xfad467
xor ecx, ecx
jmp 0xfad4a2
test eax, eax
jne 0xfad492
xor ecx, ecx
jmp 0xfad4a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00fad3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xfad8f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0xfad921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0xfad946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0xfad96e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0xfad993
push ecx
push esi
call fcn.00fad4c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret