joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457c7c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x457c8e
add esp, 0xfffffff0
call fcn.00403c74
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ee00
mov eax, dword [0x4a2c14]
mov dword [eax + 4], ebx
mov dword [eax], 0x458020
mov eax, dword [0x4a2c20]
mov dword [eax + 4], ebx
mov dword [eax], 0x45802c
mov eax, ebx
call fcn.00458038
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x416b8c]
call fcn.00403920
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x416b8c]
call fcn.00403920
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x416b8c]
call fcn.00403920
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x416b8c]
call fcn.00403920
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x416b8c]
call fcn.00403920
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, 0x453ab4
push eax
push 0
push 0
mov eax, dword [0x4a2d98]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x422da4]
call fcn.00424698
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x422da4]
call fcn.00424698
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x422da4]
call fcn.00424698
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00458468
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x458338
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x458338
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x458338
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x457dcb
call fcn.00403ccc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45811c
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 0x4582c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4582a8
mov dl, 1
mov eax, dword [0x416fb0]
call fcn.00403920
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004047a0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x458297
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.0044b098
test al, al
je 0x45828a
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, 0x4582d8
lea eax, [ebp - 0x254]
call fcn.00409b58
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45828a
xor eax, eax
push ebp
push 0x458283
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 0x458310
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45826c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a10
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 0x45826c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45828a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45818d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041ac90
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 0x4582ce
lea eax, [ebp - 0x260]
call fcn.004047a0
ret

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

Disassembly:
push ecx
mov eax, dword [0x4a6580]
cmp byte [eax + 0xad], 0
jne 0x458cb1
cmp dword [0x4a6598], 0
jne 0x458c72
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x458bfc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4a6598], eax
cmp dword [0x4a6594], 0
jne 0x458c8d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4a6594], eax
cmp dword [0x4a659c], 0
jne 0x458cb1
push esp
push 0
push 0
push 0x458ba0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4a659c], eax
pop edx
ret
Function at 0x458e84
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x458e9b
add esp, 0xfffffff0
call fcn.00403c74
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ee00
mov eax, dword [0x4a2d80]
cmp word [eax + 2], 0
jne 0x458ec3
mov eax, dword [0x4a2d80]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045a934
mov eax, dword [0x4a2e44]
cmp word [eax + 2], 0
jne 0x458edd
mov eax, dword [0x4a2e44]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045ab40
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416b8c]
call fcn.00403920
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416b8c]
call fcn.00403920
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x416b8c]
call fcn.00403920
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x423954]
call fcn.0042b994
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x459094
mov eax, dword [0x4a2c90]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042bd68
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45b200
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4a2c90]
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.0040d388
test eax, eax
je 0x458fe4
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409510
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d3bc
test eax, eax
je 0x458ff8
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404a10
mov byte [ebx + 0xd4], 0
push ebx
push 0x45a494
call fcn.0041ff7c
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4a2b40]
cmp byte [eax], 0
jne 0x459049
mov eax, ebx
call fcn.004591d8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045b3dc
mov eax, ebx
call fcn.0045bf3c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x459089
call fcn.00403ccc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459458
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4a6580]
cmp dword [eax + 0x30], 0
je 0x459502
cmp dword [ebx + 0x94], 0
jne 0x4594fc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4593e8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4594fc
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 0x4594c2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4594fc
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.00418f38
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4594d1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45a21c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45a251
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.00404890
jmp 0x45a25e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004047f4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45b5c0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45b62e
mov eax, esi
call fcn.00445dbc
test al, al
je 0x45b62e
mov eax, dword [ebx + 0x84]
call fcn.00445a1c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45b62e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45b622
push 0
mov eax, dword [ebx + 0x84]
call fcn.00445a1c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043de44
jmp 0x45b62e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045b3fc
pop esi
pop ebx
ret
Function at 0x45c51c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x407700]
call fcn.00405380
xor eax, eax
push ebp
push 0x45c6bd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4a17ac], 0
jne 0x45c577
mov ecx, dword [0x4a2b54]
mov dl, 1
mov eax, dword [0x407cd4]
call fcn.0040c604
call fcn.004041c4
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.0040328c
mov eax, ebx
call fcn.00405128
mov dword [ebp - 0x24], eax
mov esi, 0x45c6cc
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00406314
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00405138
test eax, eax
jle 0x45c660
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x45c64c
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404a10
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x45c5f2
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.00404a28
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x45c608
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.00404a28
mov eax, dword [ebp - 0x54]
call fcn.00404c64
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404a10
mov eax, dword [ebp - 0x58]
call fcn.00404c64
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x45c64e
xor eax, eax
test al, al
je 0x45c659
mov ebx, 0x15
jmp 0x45c665
mov ebx, 0x10
jmp 0x45c665
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x4a17ac]
call fcn.0045c3a0
mov eax, dword [ebp - 4]
call fcn.0045c3a0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.0040632c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c6c4
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.004047c4
lea eax, [ebp - 0xc]
mov edx, dword [0x407700]
call fcn.00405450
ret

Function at 0x464b8c
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.0040328c
ret
Function at 0x48d048
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x48d076
mov eax, ebx
call fcn.0048dafc
cmp dword [ebx + 0x40], 0
je 0x48d06f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x48d0e7
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x48d0d9
cmp dword [ebx + 8], 0
je 0x48d098
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x48d0aa
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x48d0d9
cmp dword [ebx + 8], 0
je 0x48d08b
cmp eax, 3
je 0x48d0bd
dec eax
jne 0x48d08b
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 0x48d08b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x48d08b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x48d105
cmp dword [ebx + 0x14], 0xcc
je 0x48d105
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0048d110
pop ebx
ret
Function at 0x402988
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 0x4029c5
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 0x4029e5
lea eax, [esp + 0x109]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404ac4
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402b4c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040485c
test esi, esi
jne 0x402b82
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040494c
jmp 0x402ba0
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a60
mov edi, eax
test esi, esi
je 0x402ba0
cmp dword [ebx], 0
je 0x402ba0
dec esi
jmp 0x402b89
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403254
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x64e008], 0x8088405
inc edx
mov dword [ebx + 0x64e008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403270
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x64e008], 0x8088405
inc edx
mov dword [ebx + 0x64e008], edx
fld qword [ebx + 0x64e058]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x4038dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x64e010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403974
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403954
xor eax, eax
push ebp
push 0x40394d
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 0x403990
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 0x403954
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x64e010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x64e010], ax
mov esp, ebp
pop ebp
ret
Function at 0x40465c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x66104c], 0
je 0x4046bd
cmp word [0x661220], 0xd7b2
jne 0x404685
cmp dword [0x661228], 0
jbe 0x404685
mov eax, 0x66121c
call dword [0x661238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x64e060
push 0xfffffffffffffff5
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 0x4046e4
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x64e020], 0
jne 0x4046d9
push 0
push 0x64e080
push 0x64e060
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret

Function at 0x404810
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004027ac
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x66104d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4047d8
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread_1
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4063e8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406618
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40646b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406618
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40646b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406634
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4064f4
xor eax, eax
push ebp
push 0x4064ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406230
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4064d2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406654
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4064d2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4064f4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale_1
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40660e
cmp byte [ebp - 0xd], 0
jne 0x40653b
cmp byte [ebp - 0x12], 0
je 0x40660e
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA_1
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406554
dec ebx
cmp byte [ebx], 0x2e
je 0x406563
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406553
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40660e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4065a0
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40660e
cmp byte [ebp - 0xd], 0
je 0x40660e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40660e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409824
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404d0c
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40983d
test al, 0x10
jne 0x409841
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c5f4
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
test eax, eax
jle 0x40c62d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040494c
jmp 0x40c636
mov eax, ebx
mov edx, esi
call fcn.004048b0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c640
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
test eax, eax
jle 0x40c661
mov al, byte [esp]
jmp 0x40c663
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40dc24
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 0x40dc88
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
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404ac4
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.004095f8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dc8f
lea eax, [ebp - 0xc]
call fcn.0040485c
ret

Function at 0x4244b8
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0042433c
dec esi
jne 0x4244da
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x425604
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x661a28
cmp dword [edi], 0
jne 0x425680
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x661a24]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x64e5f4
mov ecx, 2
call fcn.00402a20
mov edx, 0x4255dc
lea eax, [esi + 5]
call fcn.004255fc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004255fc
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x425655
mov dword [0x661a24], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8