joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434040
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 0x43405c
cmp dword [esi + 4], 0
je 0x434089
test byte [ebx + 0x55], 1
jne 0x43407b
mov eax, ebx
call fcn.00432be0
test eax, eax
jne 0x43407b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x434199
mov edx, esi
mov eax, ebx
call fcn.00433b64
jmp 0x434199
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 0x434192
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00435eb0
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.0043087c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00434040
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.00435eb0
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x434199
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 0x43a664
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x452188]
cmp byte [eax + 0xc], 0
je 0x43a7d1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43a7ca
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x453b64], 0
jne 0x43a6b8
push 0x43a7d8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43a7e0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b64], eax
cmp dword [0x451b64], 0
jne 0x43a7b3
push 0x43a7f0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x451b64], eax
cmp dword [0x451b64], 0
je 0x43a7b3
push 0x43a7fc
mov eax, dword [0x451b64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b68], eax
push 0x43a80c
mov eax, dword [0x451b64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b6c], eax
push 0x43a820
mov eax, dword [0x451b64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b70], eax
push 0x43a838
mov eax, dword [0x451b64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b74], eax
push 0x43a850
mov eax, dword [0x451b64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b78], eax
push 0x43a864
mov eax, dword [0x451b64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b7c], eax
push 0x43a87c
mov eax, dword [0x451b64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b80], eax
push 0x43a894
mov eax, dword [0x451b64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b84], eax
push 0x43a8b0
mov eax, dword [0x451b64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b88], eax
push 0x43a8bc
mov eax, dword [0x451b64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a7d1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43eb14
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.00403e10
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43eb63
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.00404080
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x446278
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4462c8]
test si, 4
je 0x44628c
or bl, 1
test si, 8
je 0x446296
or bl, 4
test si, 1
je 0x4462a0
or bl, 8
test si, 2
je 0x4462aa
or bl, 0x10
test si, 0x10
je 0x4462b4
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4462c3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4462cc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x446304]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4462e5
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4462f4
or bl, 4
test esi, 0x20000000
je 0x4462ff
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44c9ac
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44c9be
add esp, 0xfffffff0
call fcn.004033e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00418f60
mov eax, dword [0x451e5c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44cd50
mov eax, dword [0x451e68]
mov dword [eax + 4], ebx
mov dword [eax], 0x44cd5c
mov eax, ebx
call fcn.0044cd68
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4111f0]
call fcn.004030a8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4111f0]
call fcn.004030a8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4111f0]
call fcn.004030a8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4111f0]
call fcn.004030a8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4111f0]
call fcn.004030a8
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, 0x449184
push eax
push 0
push 0
mov eax, dword [0x451fac]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41a98c]
call fcn.0041bdd0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41a98c]
call fcn.0041bdd0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41a98c]
call fcn.0041bdd0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044d188
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44d064
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44d064
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44d064
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44cafb
call fcn.0040343c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44ce48
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 0x44cff3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44cfd4
mov dl, 1
mov eax, dword [0x41160c]
call fcn.004030a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403e10
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44cfc3
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.0043a9c4
test al, al
je 0x44cfb6
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, 0x44d004
lea eax, [ebp - 0x254]
call fcn.004087a4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44cfb6
xor eax, eax
push ebp
push 0x44cfaf
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 0x44d03c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44cf98
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404080
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 0x44cf98
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404080
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44cfb6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44ceb9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415100
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 0x44cffa
lea eax, [ebp - 0x260]
call fcn.00403e10
ret

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

Disassembly:
push ecx
mov eax, dword [0x453bb0]
cmp byte [eax + 0xa5], 0
jne 0x44d999
cmp dword [0x453bc8], 0
jne 0x44d95a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44d8e4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x453bc8], eax
cmp dword [0x453bc4], 0
jne 0x44d975
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x453bc4], eax
cmp dword [0x453bcc], 0
jne 0x44d999
push esp
push 0
push 0
push 0x44d888
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x453bcc], eax
pop edx
ret
Function at 0x44da90
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44daa7
add esp, 0xfffffff0
call fcn.004033e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00418f60
mov eax, dword [0x451f98]
cmp word [eax + 2], 0
jne 0x44dacf
mov eax, dword [0x451f98]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044f168
mov eax, dword [0x452044]
cmp word [eax + 2], 0
jne 0x44dae9
mov eax, dword [0x452044]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044f360
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4111f0]
call fcn.004030a8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4111f0]
call fcn.004030a8
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 [0x41b13c]
call fcn.00420e7c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44dc70
mov eax, dword [0x451ebc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042124c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44f900
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x451ebc]
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.0040bde0
test eax, eax
je 0x44dbde
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408198
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040be08
test eax, eax
je 0x44dbf2
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.00404080
mov eax, dword [0x451dbc]
cmp byte [eax], 0
jne 0x44dc26
mov eax, ebx
call fcn.0044dd98
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.0044fadc
mov eax, ebx
call fcn.004504a0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44dc66
call fcn.0040343c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e018
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x453bb0]
cmp dword [eax + 0x30], 0
je 0x44e0c2
cmp dword [ebx + 0x94], 0
jne 0x44e0bc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44dfa8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44e0bc
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 0x44e082
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44e0bc
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.00413558
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44e091
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44ec24
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 0x44ec59
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.00403f00
jmp 0x44ec66
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403e64
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44fcb8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44fcf9
mov eax, esi
call fcn.00436188
test al, al
je 0x44fcf9
mov eax, dword [ebx + 0x84]
call fcn.00435eb0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44fcf9
push 0
mov eax, dword [ebx + 0x84]
call fcn.00435eb0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x5bfe40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x12f000]
mov dword [edi + 0x14fbfb], 0x401321f8
push edi
jmp 0x5bfe6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5bfe71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5bfe60
mov eax, 1
add ebx, ebx
jne 0x5bfe83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5bfe94
jne 0x5bfeb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5bfeb3
dec eax
add ebx, ebx
jne 0x5bfea0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5bfe78
add ebx, ebx
jne 0x5bfeaf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5bff05
xor ecx, ecx
sub eax, 3
jb 0x5bfecb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5bff3a
sar eax, 1
mov ebp, eax
jmp 0x5bfed6
add ebx, ebx
jne 0x5bfed6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5bfea4
inc ecx
add ebx, ebx
jne 0x5bfee4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5bfea4
add ebx, ebx
jne 0x5bfef1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5bfee6
jne 0x5bff02
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5bfee6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5bff24
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5bff16
jmp 0x5bfe66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5bff24
add edi, ecx
jmp 0x5bfe66
pop esi
mov edi, esi
mov ecx, 0x725b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5bff42
cmp byte [edi], 0x15
jne 0x5bff42
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5bff47
lea edi, [esi + 0x1bc000]
mov eax, dword [edi]
or eax, eax
je 0x5bffbf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1c0068]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1c016c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5bff74
mov ecx, edi
jns 0x5bffa3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1c0170]
or eax, eax
je 0x5bffb9
mov dword [ebx], eax
add ebx, 4
jmp 0x5bff91
call dword [esi + 0x1c0180]
mov ebp, dword [esi + 0x1c0174]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5bfff3
sub esp, 0xffffff80
jmp 0x4212fc
Function at 0x4028d8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402915
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402935
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404188
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403038
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x461020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4030d0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4030b0
xor eax, eax
push ebp
push 0x4030a9
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 0x4030ec
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4030b0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x461020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x461020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d9c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46304c], 0
je 0x403dfd
cmp word [0x463220], 0xd7b2
jne 0x403dc5
cmp dword [0x463228], 0
jbe 0x403dc5
mov eax, 0x46321c
call dword [0x463238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46106c
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 0x403e24
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x461030], 0
jne 0x403e19
push 0
push 0x461064
push 0x46106c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405d50
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405db6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404188
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402bfc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405da0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405dbd
lea eax, [ebp - 0x10]
call fcn.00403f18
ret

Function at 0x40b068
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b0a1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404008
jmp 0x40b0aa
mov eax, ebx
mov edx, esi
call fcn.00403f6c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b0b4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b0d5
mov al, byte [esp]
jmp 0x40b0d7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b75c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b5d4
mov eax, dword [0x4621cc]
cmp byte [eax], 0
je 0x40b7d8
mov eax, dword [0x461fcc]
call fcn.00402a68
call fcn.00402864
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004088a8
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b820
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b80e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x461f70]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x463668]
call fcn.00405264
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret