joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45bfb0
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 0x45c15b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45c13c
mov dl, 1
mov eax, dword [0x41a38c]
call fcn.00403408
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040420c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45c12b
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.00449f14
test al, al
je 0x45c11e
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, 0x45c16c
lea eax, [ebp - 0x254]
call fcn.00409874
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45c11e
xor eax, eax
push ebp
push 0x45c117
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 0x45c1a4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45c100
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040447c
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 0x45c100
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040447c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c11e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45c021
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041eb78
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 0x45c162
lea eax, [ebp - 0x260]
call fcn.0040420c
ret

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

Disassembly:
push ecx
mov eax, dword [0x4b5bb8]
cmp byte [eax + 0xa5], 0
jne 0x45cb01
cmp dword [0x4b5bd0], 0
jne 0x45cac2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45ca4c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4b5bd0], eax
cmp dword [0x4b5bcc], 0
jne 0x45cadd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4b5bcc], eax
cmp dword [0x4b5bd4], 0
jne 0x45cb01
push esp
push 0
push 0
push 0x45c9f0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4b5bd4], eax
pop edx
ret
Function at 0x45cbf8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45cc0f
add esp, 0xfffffff0
call fcn.0040375c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422fc0
mov eax, dword [0x4b3e20]
cmp word [eax + 2], 0
jne 0x45cc37
mov eax, dword [0x4b3e20]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045e378
mov eax, dword [0x4b3fb4]
cmp word [eax + 2], 0
jne 0x45cc51
mov eax, dword [0x4b3fb4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045e570
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x419d28]
call fcn.00403408
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x419d28]
call fcn.00403408
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 [0x425594]
call fcn.0042cf1c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45cdd8
mov eax, dword [0x4b3c08]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042d2ec
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45eb10
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4b3c08]
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.0040d798
test eax, eax
je 0x45cd46
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409238
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d7c0
test eax, eax
je 0x45cd5a
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.0040447c
mov eax, dword [0x4b392c]
cmp byte [eax], 0
jne 0x45cd8e
mov eax, ebx
call fcn.0045cf00
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.0045ecec
mov eax, ebx
call fcn.0045f6b0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45cdce
call fcn.004037b4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45d180
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4b5bb8]
cmp dword [eax + 0x30], 0
je 0x45d22a
cmp dword [ebx + 0x94], 0
jne 0x45d224
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45d110
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45d224
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 0x45d1ea
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45d224
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.0041c3e0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45d1f9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45dd8c
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 0x45ddc1
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.004042fc
jmp 0x45ddce
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404260
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45eec8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45ef09
mov eax, esi
call fcn.004454fc
test al, al
je 0x45ef09
mov eax, dword [ebx + 0x84]
call fcn.004451f8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45ef09
push 0
mov eax, dword [ebx + 0x84]
call fcn.004451f8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x473138
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x473140
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x473332
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x473348
mov eax, esi
call fcn.00470fc4
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404260
lea ecx, [ebp - 0x10]
mov edx, 0x47335c
mov eax, esi
call fcn.00470fc4
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404260
lea ecx, [ebp - 0x14]
mov edx, 0x473374
mov eax, esi
call fcn.00470fc4
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404260
lea ecx, [ebp - 0x18]
mov edx, 0x473390
mov eax, esi
call fcn.00470fc4
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404260
lea ecx, [ebp - 0x1c]
mov edx, 0x4733ac
mov eax, esi
call fcn.00470fc4
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404260
lea ecx, [ebp - 0x24]
mov edx, 0x4733c4
mov eax, esi
call fcn.00470fc4
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004088cc
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408cac
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4733dc
mov eax, esi
call fcn.00470fc4
mov eax, dword [ebp - 0x28]
call fcn.00464e48
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4733ec
mov eax, esi
call fcn.00470fc4
mov eax, dword [ebp - 0x2c]
call fcn.00464e48
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x473404
mov eax, esi
call fcn.00470fc4
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408cac
inc eax
je 0x4732d5
lea ecx, [ebp - 0x34]
mov edx, 0x473404
mov eax, esi
call fcn.00470fc4
mov eax, dword [ebp - 0x34]
call fcn.00408c70
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040a704
fstp qword [ebp - 0x3c]
wait
call fcn.0040aa68
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4732f0
lea ecx, [ebp - 0x40]
mov edx, 0x473404
mov eax, esi
call fcn.00470fc4
mov eax, dword [ebp - 0x40]
call fcn.00464e48
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x473414
mov eax, esi
call fcn.00470fc4
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404260
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473339
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404230
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404230
ret
Function at 0x474470
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4744ca
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.00474460
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004639b8
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004635b8
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4744d1
lea eax, [ebp - 4]
call fcn.0040420c
ret

Function at 0x4780e0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4192d8]
call fcn.00404bc4
xor eax, eax
push ebp
push 0x478224
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4b2738], 0
jne 0x478133
mov ecx, dword [0x4b3974]
mov dl, 1
mov eax, dword [0x40796c]
call fcn.0040c944
call fcn.00403bc4
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402dd4
mov eax, ebx
call fcn.00404a74
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x478234
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405f4c
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404a84
test eax, eax
jle 0x4781cb
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4781c4
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404494
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.0040447c
mov eax, dword [ebp - 0x48]
pop edx
call fcn.0040883c
test eax, eax
jne 0x4781c4
mov ebx, 0x15
jmp 0x4781d0
mov ebx, 0x10
jmp 0x4781d0
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4b2738]
call fcn.00478038
mov eax, dword [ebp - 8]
call fcn.00478038
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405f64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47822b
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404230
lea eax, [ebp - 0x10]
mov edx, dword [0x4192d8]
call fcn.00404c94
ret
Function at 0x49f1d7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4b366e
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x49f22f
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x4b368f
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x49f225
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x49f233
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x401470
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401482
mov eax, dword [0x4ae07f]
shl eax, 2
mov dword [0x4ae083], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004a0194
pop edx
call fcn.004a00bc
call fcn.004a01d4
push 0
call fcn.004a12b0
pop ecx
push 0x4ae028
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4ae087], eax
push 0
jmp fcn.004a8840

Function at 0x406aec
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.KERNEL32.DLL_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x406b11
cmp dword [esp + 4], 5
jb 0x406b11
mov al, 1
jmp 0x406b13
xor eax, eax
add esp, 0x94
ret

Function at 0x4138a4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4b7618
cmp dword [edi], 0
jne 0x413920
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4b7614]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4aeb5c
mov ecx, 2
call fcn.0042b190
mov edx, 0x41387c
lea eax, [esi + 5]
call fcn.0041389c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041389c
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 0x4138f5
mov dword [0x4b7614], 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

Function at 0x415cf8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0042cd88
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x415d50
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4b7304]
mov dl, 1
mov eax, dword [0x415804]
call fcn.0041ceb4
call fcn.0042c52c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041590c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x418208
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41825a
test eax, edx
je 0x41825d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x41821d
movzx eax, byte [eax]
sub eax, ecx
ret
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]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x418243
add ecx, 4
js 0x418233
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x418240
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x418269
test edx, edx
jne 0x418210
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41c5d0
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x41c609
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0042c9e8
jmp 0x41c612
mov eax, ebx
mov edx, esi
call fcn.0042c94c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41c61c
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 0x41c63e
movzx eax, byte [esp]
jmp 0x41c640
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41ccd0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x41cb48
mov eax, dword [0x4b6fc0]
cmp byte [eax], 0
je 0x41cd4c
mov eax, dword [0x4b6fc4]
call fcn.0042b34c
call fcn.0042b0fc
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.00419138
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x41cd94
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x41cd82
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4b6e54]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b7310]
call fcn.0042e2fc
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
add esp, 0x444
ret
Function at 0x41d664
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41d73a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0042c990
lea eax, [ebp - 4]
call fcn.0042cde0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0042cd88
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x41d724
mov eax, ebx
call fcn.0042af30
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41d71d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0042cd88
push eax
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x41d707
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41d74c
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x41d707
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d724
mov eax, dword [ebp - 0x10]
call fcn.0042af4c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d741
lea eax, [ebp - 4]
call fcn.0042c8f8
ret

Function at 0x42ba24
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4af13c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x42babc
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x42ba9c
xor eax, eax
push ebp
push 0x42ba95
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 0x42bad8
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 0x42ba9c
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
movzx eax, word [0x4af13c]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4af13c], ax
mov esp, ebp
pop ebp
ret

Function at 0x42c778
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b9860], 0
je 0x42c7d9
cmp word [0x4b9a34], 0xd7b2
jne 0x42c7a1
cmp dword [0x4b9a3c], 0
jbe 0x42c7a1
mov eax, 0x4b9a30
call dword [0x4b9a4c]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x42c800
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x4af148], 0
jne 0x42c7f5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret