joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4339d4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x4339f0
cmp dword [esi + 4], 0
je 0x433a1d
test byte [ebx + 0x55], 1
jne 0x433a0f
mov eax, ebx
call fcn.00432698
test eax, eax
jne 0x433a0f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x433b2d
mov edx, esi
mov eax, ebx
call fcn.004334f4
jmp 0x433b2d
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x433b26
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004357a4
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.004303a4
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004339d4
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004357a4
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433b2d
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x439fcc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x465848]
cmp byte [eax + 0xc], 0
je 0x43a139
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43a132
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x466bb8], 0
jne 0x43a020
push 0x43a140
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43a148
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466bb8], eax
cmp dword [0x464984], 0
jne 0x43a11b
push 0x43a158
call sub.kernel32.dll_LoadLibraryA
mov dword [0x464984], eax
cmp dword [0x464984], 0
je 0x43a11b
push 0x43a164
mov eax, dword [0x464984]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466bbc], eax
push 0x43a174
mov eax, dword [0x464984]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466bc0], eax
push 0x43a188
mov eax, dword [0x464984]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466bc4], eax
push 0x43a1a0
mov eax, dword [0x464984]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466bc8], eax
push 0x43a1b8
mov eax, dword [0x464984]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466bcc], eax
push 0x43a1cc
mov eax, dword [0x464984]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466bd0], eax
push 0x43a1e4
mov eax, dword [0x464984]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466bd4], eax
push 0x43a1fc
mov eax, dword [0x464984]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466bd8], eax
push 0x43a218
mov eax, dword [0x464984]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466bdc], eax
push 0x43a224
mov eax, dword [0x464984]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466be0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a139
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43dd4c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404234
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43dd9b
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.0040449c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x445bdc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x445c2c]
test si, 4
je 0x445bf0
or bl, 1
test si, 8
je 0x445bfa
or bl, 4
test si, 1
je 0x445c04
or bl, 8
test si, 2
je 0x445c0e
or bl, 0x10
test si, 0x10
je 0x445c18
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x445c27
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x445c30
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x445c68]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x445c49
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x445c58
or bl, 4
test esi, 0x20000000
je 0x445c63
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44c26c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44c27e
add esp, 0xfffffff0
call fcn.0040382c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b598
mov eax, dword [0x465568]
mov dword [eax + 4], ebx
mov dword [eax], 0x44c610
mov eax, dword [0x465574]
mov dword [eax + 4], ebx
mov dword [eax], 0x44c61c
mov eax, ebx
call fcn.0044c628
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4115f8]
call fcn.00403498
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4115f8]
call fcn.00403498
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4115f8]
call fcn.00403498
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4115f8]
call fcn.00403498
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4115f8]
call fcn.00403498
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, 0x448af0
push eax
push 0
push 0
mov eax, dword [0x46568c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41cf68]
call fcn.0041e63c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41cf68]
call fcn.0041e63c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41cf68]
call fcn.0041e63c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044ca48
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44c924
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44c924
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44c924
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44c3bb
call fcn.00403884
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44c708
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 0x44c8b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44c894
mov dl, 1
mov eax, dword [0x411ae8]
call fcn.00403498
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404234
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44c883
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.0043a32c
test al, al
je 0x44c876
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, 0x44c8c4
lea eax, [ebp - 0x254]
call fcn.00409038
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44c876
xor eax, eax
push ebp
push 0x44c86f
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 0x44c8fc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44c858
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040449c
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 0x44c858
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040449c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c876
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44c779
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415c30
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 0x44c8ba
lea eax, [ebp - 0x260]
call fcn.00404234
ret

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

Disassembly:
push ecx
mov eax, dword [0x466bfc]
cmp byte [eax + 0xa5], 0
jne 0x44d259
cmp dword [0x466c14], 0
jne 0x44d21a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44d1a4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x466c14], eax
cmp dword [0x466c10], 0
jne 0x44d235
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x466c10], eax
cmp dword [0x466c18], 0
jne 0x44d259
push esp
push 0
push 0
push 0x44d148
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x466c18], eax
pop edx
ret
Function at 0x44d350
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44d367
add esp, 0xfffffff0
call fcn.0040382c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b598
mov eax, dword [0x46567c]
cmp word [eax + 2], 0
jne 0x44d38f
mov eax, dword [0x46567c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044e984
mov eax, dword [0x465708]
cmp word [eax + 2], 0
jne 0x44d3a9
mov eax, dword [0x465708]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044eb7c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4115f8]
call fcn.00403498
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4115f8]
call fcn.00403498
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], 0x80000018
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 [0x41d9e8]
call fcn.004251e0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44d530
mov eax, dword [0x4655c0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004255b0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44f0ec
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4655c0]
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.0040a9ac
test eax, eax
je 0x44d49e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408994
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040a9d4
test eax, eax
je 0x44d4b2
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.0040449c
mov eax, dword [0x4654d4]
cmp byte [eax], 0
jne 0x44d4e6
mov eax, ebx
call fcn.0044d658
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.0044f2c8
mov eax, ebx
call fcn.0044fc08
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44d526
call fcn.00403884
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44d8cc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x466bfc]
cmp dword [eax + 0x30], 0
je 0x44d976
cmp dword [ebx + 0x94], 0
jne 0x44d970
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44d85c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44d970
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 0x44d936
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44d970
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.00413c98
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44d945
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44e454
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 0x44e489
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.00404324
jmp 0x44e496
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404288
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44f4a4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44f4e5
mov eax, esi
call fcn.00435aa8
test al, al
je 0x44f4e5
mov eax, dword [ebx + 0x84]
call fcn.004357a4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44f4e5
push 0
mov eax, dword [ebx + 0x84]
call fcn.004357a4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x452b7c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x452baa
mov eax, ebx
call fcn.00453634
cmp dword [ebx + 0x3c], 0
je 0x452ba3
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x452c1b
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x452c0d
cmp dword [ebx + 8], 0
je 0x452bcc
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x452bde
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x452c0d
cmp dword [ebx + 8], 0
je 0x452bbf
cmp eax, 3
je 0x452bf1
dec eax
jne 0x452bbf
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x452bbf
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x452bbf
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x452c39
cmp dword [ebx + 0x10], 0xcc
je 0x452c39
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00452c44
pop ebx
ret
Function at 0x401cca
Capabilities:
Create thread

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x24
call fcn.00402130
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x401851
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
mov dword [esp], 0xffffffff
call sub.KERNEL32.dll_Sleep
sub esp, 4
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret

Function at 0x401e20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x401e46
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401eda
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401e95
cmp eax, 0x40
je 0x401e95
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401e39
cmp eax, 0x40
je 0x401e39
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x401e39
mov dword [esp + 8], 0x34
mov dword [esp + 4], 0x404054
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sub.msvcrt.dll__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x403894
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x464020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40392c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40390c
xor eax, eax
push ebp
push 0x403905
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403964
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40390c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x464020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x464020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404a14
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x466050], 0
je 0x404a75
cmp word [0x46632c], 0xd7b2
jne 0x404a3d
cmp dword [0x466334], 0
jbe 0x404a3d
mov eax, 0x466328
call dword [0x466344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404aa0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46402c], 0
jne 0x404a91
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404bf4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x464030], 0
je 0x404c1a
mov edx, esi
mov eax, ebx
call dword [0x464030]
jmp 0x404c29
mov eax, 8
call fcn.00402f9c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x466051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404bbc
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4071c0
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x408960
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x468b2c
push 0xa
push 0x4089f4
mov eax, dword [0x468b1c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x408984
call fcn.0041036c
push ebx
mov eax, dword [0x468b1c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40899b
call fcn.0041036c
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x4089ad
call fcn.0041036c
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x468b30], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x468b34], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x468b38], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x468b3c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x468b40], ecx
add edx, dword [eax + 0x14]
mov dword [0x468b44], edx
pop esi
pop ebx
ret

Function at 0x40a014
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40a0bd
test eax, edx
je 0x40a0c0
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40a03d
push edx
mov edx, eax
mov eax, esp
call fcn.004055d4
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40a053
push eax
lea eax, [esp + 8]
call fcn.004055d4
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40a062
movzx eax, word [eax]
sub eax, ecx
jmp 0x40a089
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40a0a3
add ecx, 4
js 0x40a07a
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40a0a0
push eax
mov eax, ecx
mov edx, 2
call fcn.00404c94
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40a087
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40a089
xor eax, eax
ret
test eax, eax
je 0x40a0d0
test edx, edx
jne 0x40a024
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40df90
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40dfc9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040553c
jmp 0x40dfd2
mov eax, ebx
mov edx, esi
call fcn.00405400
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4