joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100051f4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
jg 0x1000521e
jl 0x10005215
test edi, edi
jne 0x1000521e
xor eax, eax
xor edx, edx
jmp 0x100052d0
cmp dword [ecx + 0x38], 0
je 0x10005231
push esi
push edi
push edx
call fcn.100057c7
jmp 0x100052d0
mov eax, dword [ecx + 0x1c]
push ebx
mov ebx, edi
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10005271
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x10005271
cmp dword [eax], edi
mov esi, edi
cmovb esi, dword [eax]
push esi
push dword [ebp - 0xc]
push edx
call fcn.10009b50
mov ecx, dword [ebp - 8]
sub ebx, esi
add dword [ebp - 4], esi
add esp, 0xc
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
cmp dword [ecx + 0x4c], 0
mov edx, ebx
je 0x100052c6
call fcn.10006098
mov edx, ebx
jmp 0x100052a4
push dword [ecx + 0x4c]
push eax
push 1
push dword [ebp - 4]
call fcn.1000e846
add dword [ebp - 4], eax
sub ebx, eax
add esp, 0x10
mov edx, ebx
cmp eax, 0xfff
jne 0x100052d6
mov ecx, dword [ebp - 8]
mov eax, 0xfff
cmp ebx, eax
ja 0x10005282
test edx, edx
je 0x100052c6
push dword [ecx + 0x4c]
push ebx
push 1
push dword [ebp - 4]
call fcn.1000e846
mov edx, ebx
add esp, 0x10
sub edx, eax
sub edi, edx
sbb esi, 0
mov eax, edi
mov edx, esi
pop ebx
pop edi
pop esi
leave
ret 0xc
sub edi, ebx
jmp 0x100052c8
Function at 0x1000553c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10031070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x10005562
xor eax, eax
jmp 0x10005629
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x1000558b
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x1000558b
dec dword [edx]
mov eax, ebx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x10005629
cmp dword [esi + 0x4c], 0
je 0x10005627
mov ecx, esi
call fcn.10006098
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100055b8
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.1000cb73
cmp eax, edi
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x10005627
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x100055f6
sub eax, 1
je 0x100055f6
dec eax
sub eax, 1
jne 0x10005627
push dword [esi + 0x4c]
movsx ecx, byte [ebp - 0x25]
push ecx
jmp 0x100055aa
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x34], eax
je 0x10005619
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.1000dea9
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x10005627
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
mov eax, ebx
jne 0x10005629
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008655
leave
ret 4

Function at 0x100060bb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10031070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x10006112
cmp byte [esi + 0x3d], bl
je 0x10006112
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1000614b
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, ebx
je 0x10006123
sub eax, 1
je 0x10006126
dec eax
sub eax, 1
jne 0x1000614b
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008655
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10006143
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1000dea9
add esp, 0x10
cmp edi, eax
jne 0x1000614b
cmp byte [esi + 0x3d], bl
sete al
jmp 0x10006114
xor al, al
jmp 0x10006114
Function at 0x100070fe
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x10021f8d
call fcn.10008da5
mov ebx, ecx
mov esi, dword [ebp + 0xc]
push 0x1c
call fcn.10008668
mov edi, eax
xor eax, eax
pop ecx
push esi
mov ecx, edi
mov dword [edi], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
call fcn.10006475
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
xor esi, esi
mov dword [edi + 0x18], eax
mov dword [ebp - 0x14], esi
call fcn.100071f2
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], esi
call fcn.100071f2
lea esi, [ebx + 4]
push esi
push 0
push edi
push 0x1000720c
xor edi, edi
push edi
push edi
call fcn.1000d45f
add esp, 0x18
mov dword [ebx], eax
test eax, eax
je 0x10007180
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
call fcn.100071f2
call fcn.10008d63
ret 8
push 6
mov dword [esi], edi
call fcn.1000739d
int3

Function at 0x100164d2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10016348

Function at 0x1001c15c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001bdd9
Function at 0x402cd3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x402d16
push 0x19
push 0x4013cb7
push 6
call fcn.00414322
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402d2d
mov eax, 0x110dfb5
jmp 0x402ddc
inc dword [ebp - 4]
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul qword [0x110e009]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.0040199b
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.00414f80
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402d7b
push ebx
call fcn.0041431c
add esp, 4
pop eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00402df4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x402dbd
push 0x136
push 0x4013cb7
push 6
call fcn.00414322
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x402dd7
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00414316
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x402ddc
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402ded
push ebx
call fcn.0041431c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x403307
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40334e
push 0x19
push 0x40131e3
push 6
call fcn.00414322
add esp, 0xc
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esp
mov eax, 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x403389
push 0x46
push 0x40131e3
push 6
call fcn.00414322
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esp
push 1
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_AttachThreadInput]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4033c0
push 0x6a
push 0x40131e3
push 6
call fcn.00414322
add esp, 0xc
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetActiveWindow]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4033ec
push 0xa7
push 0x40131e3
push 6
call fcn.00414322
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push 0
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_AttachThreadInput]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x403423
push 0xc2
push 0x40131e3
push 6
call fcn.00414322
add esp, 0xc
mov eax, dword [ebp - 0xc]
jmp 0x40342b
mov esp, ebp
pop ebp
ret 8
Function at 0x410f85
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x2000
push 0x80000301
push 0
push 0x1000
push 2
mov ebx, 0xc8
call fcn.00415810
add esp, 0x1c
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0x40
push dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x410ff9
push 0x39
push 0x401947f
push 6
call fcn.00414322
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x411076
push 0x80000301
push 0
push 0x2000
push 0x80000301
push 0
push 0x1000
push 2
mov ebx, 0xc8
call fcn.00415810
add esp, 0x1c
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0x40
push dword [ebp - 8]
push dword [ebp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x41106c
push 0xc7
push 0x401947f
push 6
call fcn.00414322
add esp, 0xc
jmp 0x41107e
mov eax, dword [ebp - 4]
jmp 0x41107e
mov esp, ebp
pop ebp
ret 8

Function at 0x418240
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x41825e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x418253
pop esi
ret

Function at 0x42a9ac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x42a9ee
call fcn.0042dd03
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42a9ee
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42a9e5
xor eax, eax
jmp 0x42a9f6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042a9fc
pop edi
pop esi
pop ebx
ret 4
Function at 0x42b987
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x42f5a8
call fcn.0041dc64
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0042dd03
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x42b9c6
call fcn.0042dd03
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42b9d4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x42b9e2
or eax, 0xffffffff
jmp 0x42baca
mov ecx, esi
call fcn.0042b8fd
mov dword [ebp - 0x14], eax
call fcn.00428ff3
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x42ba19
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x42ba19
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00428fa7
push dword [ebp - 0x14]
call fcn.00428ad8
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0042b695
cmp eax, edi
je 0x42ba8c
test byte [esi + 0x24], 0x10
je 0x42ba5a
push 4
mov ecx, esi
pop ebx
call fcn.004284d8
test ah, 1
je 0x42ba52
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0042aafe
cmp dword [esi + 0x1c], edi
je 0x42ba8c
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0042850c
jmp 0x42ba8c
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x42baa0
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x42bab9
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x42bab9
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0042b937
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x42d875
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42d8a3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42d8c1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042d7db
jmp 0x42d8c1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42d8c1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042d7db
test edi, edi
mov eax, edi
jne 0x42d8ab
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402a44
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.004040ac
test esi, esi
jne 0x402a7a
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.0040419c
jmp 0x402a98
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004028f8
mov edi, eax
test esi, esi
je 0x402a98
cmp dword [ebx], 0
je 0x402a98
dec esi
jmp 0x402a81
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4031d4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x47f020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40326c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x40324c
xor eax, eax
push ebp
push 0x403245
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 0x403288
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40324c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x47f020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x47f020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403f30
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x484048], 0
je 0x403f91
cmp word [0x48421c], 0xd7b2
jne 0x403f59
cmp dword [0x484224], 0
jbe 0x403f59
mov eax, 0x484218
call dword [0x484234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47f06c
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 0x403fb8
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x47f030], 0
jne 0x403fad
push 0
push 0x47f064
push 0x47f06c
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x405368
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 0x405598
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x4053eb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405598
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x4053eb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4055b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x405474
xor eax, eax
push ebp
push 0x40546d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004051b0
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_1
test eax, eax
je 0x405452
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4055d4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x405452
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 0x405474
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
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 0x40558e
cmp byte [ebp - 0xd], 0
jne 0x4054bb
cmp byte [ebp - 0x12], 0
je 0x40558e
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4054d4
dec ebx
cmp byte [ebx], 0x2e
je 0x4054e3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4054d3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40558e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405520
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 0x40558e
cmp byte [ebp - 0xd], 0
je 0x40558e
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 0x40558e
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 0x405c60
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 0x405cc6
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_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040431c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d1c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405cb0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ccd
lea eax, [ebp - 0x10]
call fcn.004040ac
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040456c
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408575
test al, 0x10
jne 0x408579
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b108
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 0x40b141
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040419c
jmp 0x40b14a
mov eax, ebx
mov edx, esi
call fcn.00404100
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c114
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 0x40c1ea
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404144
lea eax, [ebp - 8]
call fcn.004045bc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040456c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c1d4
mov eax, ebx
call fcn.004026bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c1cd
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.0040456c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c1b7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c1fc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c1b7
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 0x40c1d4
mov eax, dword [ebp - 0x10]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c1f1
lea eax, [ebp - 8]
call fcn.004040ac
ret
Function at 0x40c7ac
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 0x40c810
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.0040431c
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00408254
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c817
lea eax, [ebp - 0xc]
call fcn.004040ac
ret

Function at 0x41b738
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x484884
cmp dword [edi], 0
jne 0x41b7b4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x484880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47f46c
mov ecx, 2
call fcn.004028b8
mov edx, 0x41b710
lea eax, [esi + 5]
call fcn.0041b730
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b730
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 0x41b789
mov dword [0x484880], 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 0x41cd58
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41cd5e
ret

Function at 0x41f360
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41f3b1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41f398
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41f388
jmp 0x41f3b1
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41f399
pop ebx
mov esp, ebp
pop ebp
ret