joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46886c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x468883
add esp, 0xfffffff0
call fcn.00403700
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004267d8
mov eax, dword [0x4f5694]
cmp word [eax + 2], 0
jne 0x4688ab
mov eax, dword [0x4f5694]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00469fec
mov eax, dword [0x4f5838]
cmp word [eax + 2], 0
jne 0x4688c5
mov eax, dword [0x4f5838]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046a1e4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41b144]
call fcn.0040336c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41b144]
call fcn.0040336c
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 [0x428e18]
call fcn.00430e24
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x468a4c
mov eax, dword [0x4f5498]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004311f4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46a784
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4f5498]
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.0040daf4
test eax, eax
je 0x4689ba
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409644
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040db1c
test eax, eax
je 0x4689ce
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.00404500
mov eax, dword [0x4f518c]
cmp byte [eax], 0
jne 0x468a02
mov eax, ebx
call fcn.00468b74
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.0046a960
mov eax, ebx
call fcn.0046b324
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x468a42
call fcn.00403758
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x468df4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4f6be4]
cmp dword [eax + 0x30], 0
je 0x468e9e
cmp dword [ebx + 0x94], 0
jne 0x468e98
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x468d84
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x468e98
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 0x468e5e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x468e98
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.0041da80
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x468e6d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x469a00
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 0x469a35
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.00404380
jmp 0x469a42
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042e4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46ab3c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46ab7d
mov eax, esi
call fcn.00450d40
test al, al
je 0x46ab7d
mov eax, dword [ebx + 0x84]
call fcn.00450a3c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46ab7d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00450a3c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x46c87c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46cadc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x46c8df
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0046c344
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d66c
cmp al, 1
jne 0x46c8df
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0046c65c
test al, al
je 0x46ca6b
cmp dword [ebp - 8], 0
jge 0x46c8fd
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0046c344
mov eax, dword [ebp - 0x210]
call fcn.00404550
cmp ebx, eax
jge 0x46c947
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0046c344
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4f5ae0]
and eax, 0xff
bt dword [edx], eax
jae 0x46c947
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x46c95b
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0046c858
cmp ebx, dword [ebp - 8]
je 0x46ca5d
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x46c987
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403598
and eax, 0x7f
movzx eax, word [eax*2 + 0x4f4148]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x46ca4a
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403598
and eax, 0x7f
movzx eax, word [eax*2 + 0x4f4148]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00450a3c
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403598
and eax, 0x7f
movzx eax, word [eax*2 + 0x4f4148]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00450a3c
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ca51
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x46cabe
cmp dword [ebp - 8], 0
jge 0x46ca76
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0046c344
mov eax, dword [ebp - 0x218]
call fcn.00404550
cmp eax, dword [ebp - 8]
jg 0x46cab0
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0046c344
mov eax, dword [ebp - 0x21c]
call fcn.00404550
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0046c858
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46cae3
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.004042b4
ret
Function at 0x47c140
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 [0x41a6e4]
call fcn.00404d70
xor eax, eax
push ebp
push 0x47c284
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4f41f0], 0
jne 0x47c193
mov ecx, dword [0x4f51cc]
mov dl, 1
mov eax, dword [0x407c30]
call fcn.0040cd24
call fcn.00403c2c
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402d1c
mov eax, ebx
call fcn.00404b28
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x47c294
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.00406130
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404b38
test eax, eax
jle 0x47c22b
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 0x47c224
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404518
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404500
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408b00
test eax, eax
jne 0x47c224
mov ebx, 0x15
jmp 0x47c230
mov ebx, 0x10
jmp 0x47c230
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 [0x4f41f0]
call fcn.0047c098
mov eax, dword [ebp - 8]
call fcn.0047c098
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406148
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c28b
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004042b4
lea eax, [ebp - 0x10]
mov edx, dword [0x41a6e4]
call fcn.00404e40
ret

Function at 0x4a92c8
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 0x4a92ed
cmp dword [esp + 4], 5
jb 0x4a92ed
mov al, 1
jmp 0x4a92ef
xor eax, eax
add esp, 0x94
ret
Function at 0x4ca41c
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 0x4ca424
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4ca616
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4ca62c
mov eax, esi
call fcn.004c81ac
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004042e4
lea ecx, [ebp - 0x10]
mov edx, 0x4ca640
mov eax, esi
call fcn.004c81ac
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004042e4
lea ecx, [ebp - 0x14]
mov edx, 0x4ca658
mov eax, esi
call fcn.004c81ac
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004042e4
lea ecx, [ebp - 0x18]
mov edx, 0x4ca674
mov eax, esi
call fcn.004c81ac
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004042e4
lea ecx, [ebp - 0x1c]
mov edx, 0x4ca690
mov eax, esi
call fcn.004c81ac
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004042e4
lea ecx, [ebp - 0x24]
mov edx, 0x4ca6a8
mov eax, esi
call fcn.004c81ac
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408b70
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.004090b8
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4ca6c0
mov eax, esi
call fcn.004c81ac
mov eax, dword [ebp - 0x28]
call fcn.004c72c4
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4ca6d0
mov eax, esi
call fcn.004c81ac
mov eax, dword [ebp - 0x2c]
call fcn.004c72c4
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4ca6e8
mov eax, esi
call fcn.004c81ac
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.004090b8
inc eax
je 0x4ca5b9
lea ecx, [ebp - 0x34]
mov edx, 0x4ca6e8
mov eax, esi
call fcn.004c81ac
mov eax, dword [ebp - 0x34]
call fcn.0040907c
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.0040aab8
fstp qword [ebp - 0x3c]
wait
call fcn.0040ae48
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4ca5d4
lea ecx, [ebp - 0x40]
mov edx, 0x4ca6e8
mov eax, esi
call fcn.004c81ac
mov eax, dword [ebp - 0x40]
call fcn.004c72c4
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4ca6f8
mov eax, esi
call fcn.004c81ac
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004042e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca61d
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004042b4
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.004042b4
ret
Function at 0x4d68b4
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 0x4d690e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004d68a4
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004c5f30
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004c5b30
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 0x4d6915
lea eax, [ebp - 4]
call fcn.00404290
ret

Function at 0x4da668
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebx
add esp, 0xffffffd4
mov ebx, eax
push esp
call sub.kernel32.dll_QueryPerformanceFrequency
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_QueryPerformanceCounter_1
mov eax, dword [0x4f57e4]
mov eax, dword [eax]
call fcn.00469d40
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_QueryPerformanceCounter_1
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, dword [esp + 8]
sbb edx, dword [esp + 0xc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
fild qword [esp + 0x20]
fild qword [esp]
fdivp st(1)
fmul dword [0x4da6d8]
fstp qword [esp + 0x18]
wait
mov dword [esp + 0x28], ebx
fild dword [esp + 0x28]
fcomp qword [esp + 0x18]
fnstsw ax
sahf
ja 0x4da67e
add esp, 0x2c
pop ebx
ret

Function at 0x4dae4c
Capabilities:
Shutdown system

Disassembly:
push ebx
add esp, 0xffffff44
mov dword [esp + 0x28], 0x94
lea eax, [esp + 0x28]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x38], 2
jne 0x4daee1
xor ebx, ebx
lea eax, [esp + 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x4dae87
or ebx, 4
lea eax, [esp + 0xc]
push eax
push 0x4daef4
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x4dae9f
or ebx, 8
mov dword [esp + 0x14], 2
mov dword [esp + 8], 1
push esp
lea eax, [esp + 0x1c]
push eax
push 0x10
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
test eax, eax
jne 0x4daecf
or ebx, 0x10
push 0
push 0xc
call sub.user32.dll_ExitWindowsEx
test ebx, ebx
sete al
mov ebx, eax
jmp 0x4daeea
push 0
push 5
call sub.user32.dll_ExitWindowsEx
mov eax, ebx
add esp, 0xbc
pop ebx
ret
Function at 0x402abc
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.0040429c
test esi, esi
jne 0x402af2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040438c
jmp 0x402b10
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029d0
mov edi, eax
test esi, esi
je 0x402b10
cmp dword [ebx], 0
je 0x402b10
dec esi
jmp 0x402af9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4032bc
Capabilities:
Query or enumerate registry value

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

Function at 0x40407c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4f304c], 0
je 0x4040dd
cmp word [0x4f3220], 0xd7b2
jne 0x4040a5
cmp dword [0x4f3228], 0
jbe 0x4040a5
mov eax, 0x4f321c
call dword [0x4f3238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ea070
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 0x404104
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ea034], 0
jne 0x4040f9
push 0
push 0x4ea068
push 0x4ea070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404250
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.00402794
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4f304d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404218
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4065bc
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 0x406622
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.0040451c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e28
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40660c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406629
lea eax, [ebp - 0x10]
call fcn.0040429c
ret

Function at 0x409870
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040476c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409889
test al, 0x10
jne 0x40988d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40cc68
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 0x40cca1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040438c
jmp 0x40ccaa
mov eax, ebx
mov edx, esi
call fcn.004042f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40d35c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d1d4
mov eax, dword [0x4f2c48]
cmp byte [eax], 0
je 0x40d3d8
mov eax, dword [0x4f29cc]
call fcn.00402c3c
call fcn.004028fc
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.00409d1c
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 0x40d420
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d40e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4f2970]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4f3668]
call fcn.00405ab4
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 0x40dcec
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ddc2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404334
lea eax, [ebp - 8]
call fcn.004047bc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040476c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40ddac
mov eax, ebx
call fcn.00402794
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40dda5
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 - 8]
call fcn.0040476c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40dd8f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ddd4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40dd8f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ddac
mov eax, dword [ebp - 0x10]
call fcn.004027b4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ddc9
lea eax, [ebp - 8]
call fcn.0040429c
ret

Function at 0x40e384
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 0x40e3e8
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.0040451c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004094d0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e3ef
lea eax, [ebp - 0xc]
call fcn.0040429c
ret

Function at 0x4248d8
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.00424730
dec esi
jne 0x4248fa
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret