joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421c30
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov edi, eax
mov esi, edx
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
xor eax, eax
push fcn.00421c20
push ebp
push 0x413cb0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
test ebx, ebx
jle 0x421ca0
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.0040b730
cmp ebx, 1
jle 0x421c90
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
xor dx, dx
call fcn.0040b000
jmp 0x421cab
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00408e30
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00421c20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4220b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.004220a0
push ebp
push 0x413cb0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x45cf2c]
xor edx, edx
call fcn.00408e30
mov dword [ebx*4 + 0x45cf4c], 0xffffffff
cmp ebx, 7
jl 0x4220d8
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push esi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x422164
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.00409820
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.00418a00
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x422164
push 4
push ebx
push esi
mov eax, 0x421f80
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x422010
push eax
call sub.kernel32.dll_EnumCalendarInfoA
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004220a0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4227b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x1c]
push ebx
push esi
push edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
xor edx, edx
push fcn.00422780
push ebp
push 0x413cb0
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0xc]
call fcn.00418680
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.00408e30
lea eax, [ebp - 4]
mov cl, 1
mov dx, 1
call fcn.0040a3c0
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.00408e30
call sub.kernel32.dll_GetEnvironmentStringsA
mov dword [ebp - 0x1c], eax
mov ebx, eax
jmp 0x4228bc
lea ecx, [ebp - 8]
mov eax, ebx
xor dx, dx
call fcn.00409780
mov eax, dword [ebp - 8]
test eax, eax
je 0x422847
mov eax, dword [eax - 4]
mov edi, eax
lea eax, [ebp - 8]
xor cl, cl
mov dx, 1
call fcn.0040a3c0
mov edx, dword [ebp - 8]
mov ecx, 1
mov al, 0x3d
call fcn.00409d60
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi - 1]
mov eax, dword [ebp - 8]
mov edx, 1
call fcn.00409c00
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00418680
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.004099a0
test eax, eax
jne 0x4228b4
push dword [ebp - 0x18]
mov eax, dword [ebp - 8]
test eax, eax
je 0x4228a3
mov eax, dword [eax - 4]
sub eax, esi
mov ecx, eax
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.00409c00
jmp 0x4228c5
lea eax, [ebx + edi]
add eax, 1
mov ebx, eax
cmp byte [ebx], 0
jne 0x422830
push dword [ebp - 0x1c]
call sub.kernel32.dll_FreeEnvironmentStringsA
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00422780
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x422910
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x45cf90], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x45cdf0], eax
mov eax, dword [ebp - 0x90]
mov dword [0x45ce00], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x45ce10], eax
mov eax, dword [ebp - 0x88]
mov dword [0x45ce20], eax
mov edx, 0x45ce31
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.00403ec0
lea eax, [ebp - 0x80]
call fcn.00404db0
mov byte [0x45ce30], al
mov eax, str.kernel32
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x45cfa0], eax
test eax, eax
je 0x4229b0
mov eax, str.GetDiskFreeSpaceExA
push eax
push dword [0x45cfa0]
call sub.kernel32.dll_GetProcAddress
mov dword [0x45cf90], eax
nop
cmp dword [0x45ce00], 6
jae 0x4229c4
mov dword [0x448140], 0
nop
cmp dword [0x45ce00], 6
jb 0x4229e0
cmp dword [0x45ce10], 1
jb 0x4229e0
mov dword [0x448150], 2
mov esp, ebp
pop ebp
ret
Function at 0x4243f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x118]
push ebx
push esi
push edi
mov esi, eax
mov edi, edx
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x110], al
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.004243e0
push ebp
push 0x413cb0
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push edi
call sub.kernel32.dll_FindResourceA
mov dword [esi + 0x10], eax
test eax, eax
jne 0x424500
mov al, byte [ebp - 0x110]
test al, al
je 0x4244c9
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00405360
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.004096b0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.0040a3c0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x44ef70
call fcn.00420500
mov edx, 0x42445a
mov ecx, ebp
call fcn.00413b70
jmp 0x424500
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x44ef70
call fcn.00420500
mov edx, 0x4244c9
mov ecx, ebp
call fcn.00413b70
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x4245c4
mov al, byte [ebp - 0x110]
test al, al
je 0x42458d
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00405360
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.004096b0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.0040a3c0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x44ef70
call fcn.00420500
mov edx, 0x42451e
mov ecx, ebp
call fcn.00413b70
jmp 0x4245c4
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x44ef70
call fcn.00420500
mov edx, 0x42458d
mov ecx, ebp
call fcn.00413b70
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push dword [esi + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
mov ecx, ebx
call fcn.00423db0
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004243e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x432750
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov byte [ebp - 0xc], cl
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_GetLocaleInfoW
mov dword [ebp - 0x1c], eax
cmp eax, 2
jle 0x4327fa
mov eax, dword [ebp - 0x1c]
sub eax, 2
test eax, eax
jl 0x432816
mov dword [ebp - 0x20], 0xffffffff
lea esi, [esi]
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov dx, word [ebp + edx*2 - 0x18]
mov word [ebp - 0x24], dx
mov edx, dword [ebp - 0x20]
mov dx, word [ebp + edx*2 - 0x18]
cmp dx, 0x20
jb 0x432816
sub dx, 0x20
je 0x4327f0
sub dx, 0x80
je 0x4327f0
sub dx, 0x1f62
jb 0x432816
sub dx, 1
jbe 0x4327f0
sub dx, 6
je 0x4327f0
sub dx, 0x26
jne 0x432816
nop
jmp 0x4327f0
cmp eax, dword [ebp - 0x20]
jg 0x432798
lea esi, [esi]
jmp 0x432816
cmp dword [ebp - 0x1c], 2
jne 0x43280a
mov ax, word [ebp - 0x18]
mov word [ebp - 0x24], ax
jmp 0x432816
mov al, byte [ebp - 0xc]
call fcn.0040b460
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
sub ax, 0x7f
jbe 0x432894
sub ax, 0x21
je 0x4328a8
sub ax, 0x17
je 0x4328b4
sub ax, 0x222
je 0x4328c0
sub ax, 0x392
je 0x4328c8
sub ax, 1
je 0x4328d0
sub ax, 0x1996
je 0x4328d8
sub ax, 1
je 0x4328e0
sub ax, 6
je 0x4328e8
sub ax, 0xb
je 0x4328f8
sub ax, 0x1b
je 0x4328f0
sub ax, 0x367
je 0x432900
jmp 0x432908
mov ax, word [ebp - 0x24]
call fcn.0040b4d0
mov byte [ebp - 0x10], al
jmp 0x432910
mov byte [ebp - 0x10], 0x20
jmp 0x432910
mov byte [ebp - 0x10], 0x2e
jmp 0x432910
mov byte [ebp - 0x10], 0x27
jmp 0x432910
mov byte [ebp - 0x10], 0x2c
jmp 0x432910
mov byte [ebp - 0x10], 0x27
jmp 0x432910
mov byte [ebp - 0x10], 0x20
jmp 0x432910
mov byte [ebp - 0x10], 0x20
jmp 0x432910
mov byte [ebp - 0x10], 0x20
jmp 0x432910
mov byte [ebp - 0x10], 0x20
jmp 0x432910
mov byte [ebp - 0x10], 0x2d
jmp 0x432910
mov byte [ebp - 0x10], 0x27
jmp 0x432910
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x10], al
mov esi, esi
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x6d9508
Capabilities:
Encode data using xor

Disassembly:
mov dh, pe_nt_image_headers32
les esp, es:[eax]
and cl, cl
rol ah, 1
sahf
jmp 0x6644b8e
les ebx, [esi - 0x9491b17]
add eax, 0xaf9cd460
add byte [ebx], ah
xchg dword [ebx - 0x6b], ebp
cmp eax, 0x7bfc2198
jno 0x6d949b
in al, 0xb6
test byte [0xaf9cd460], 0
and eax, dword [edi - 0x67c26a95]
and esp, edi
jnp 0x6d952a
loope 0x6d94c6
or esi, ecx
int1
pop dword [eax]
or al, 0x51
xchg dword [edi], ebx
rcl byte [eax]
pop edx
mov ebp, 0x75e62510
fadd qword [ebx]
lds edx, [eax]
and eax, 0x3dc75e6
shr edi, 1
stosd dword es:[edi], eax
or bl, byte [edi]
add bl, ah
xor esp, dword [ecx - 0x4f]
mov eax, dword [0xd3be74f8]
popal
loopne 0x6d94cd
or eax, 0x70871f73
jnp 0x6d9548
mov byte [eax + 0x4f95c534], ah
push ebx
add al, 0xf0
pop esp
jae 0x6d94a6
iretd
push 0xfffffffffffffff1
adc byte [ecx - 0x24ff161e], dh
loop 0x6d94a3
nop
mov ebx, 0x5c07ab40
mov dh, 0x39
mov cl, 0x71
fst qword [ecx - 0x20]
cmpsd dword [esi], dword es:[edi]
popal
sub al, 0x41
adc edi, ebp
or bl, byte [ebx]
loopne 0x6d954b
jmp 0x6d955c
xor ecx, esi
invalid
cmp byte [edx], ah
stosb byte es:[edi], al
or eax, 0x8d5054c1
invalid
nop
mov esi, 0xb53c42fc
ret 0x87f0

Function at 0x40103c
Capabilities:
Terminate process

Disassembly:
mov dword [0x402475], eax
mov edx, eax
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edi, edi
call dword [sym.imp.kernel32.dll_GetVersion]
xor esi, esi
push dword [0x403587]
call dword [sym.imp.winmm.dll_waveOutClose]
add eax, 6
test eax, 0xb
jne 0x401075
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
ret

Function at 0x4033a3
Capabilities:
Get graphical window text

Disassembly:
add esi, dword [0x56db2108]
mov ecx, dword [eax + ecx*2]
jnp 0x4033d1
call 0xf35c641c
mov esi, dword [eax]
sbb al, 0xf3
inc ebp
clc
mov esi, esp
cwde
inc ebp
clc
jmp 0x40338d
jnp 0x4033c0
jns 0x403381
jnp 0x403405
cld
mov eax, ecx
mov ecx, dword [ebx + 0x1c]
or dword [ebx + 0x84b8b0b], 0x24491d79
xor byte [eax], al
pop eax
add al, 0x23
inc eax
invalid
push 0xfffffffffffffff0
push 0xfffffffffffffff0
push 0x303303
out dx, eax
adc eax, 0x30358c
inc eax
push 0x30327f
xor byte [eax], al
inc eax
inc dword [0xf0403100]
mov dword [0x303594], eax
dec eax
push 0x3032d8
inc eax
inc dword [0xf0403100]
mov dword [0x303598], eax
mov bl, 0xf
je 0x4033e4
pcmpeqb mm3, mm4
invalid

Function at 0x403462
Capabilities:
Execute anti-debugging instructions

Disassembly:
push eax
mov edi, eax
mov esi, 0x4025b0
mov ecx, dword [0x403222]
shr ecx, 1
dec ecx
mov bl, byte [0x403226]
rdtsc
push eax
mov bh, byte [esi]
inc esi
mov byte [edi], bh
inc edi
mov al, byte [esi]
stosb byte es:[edi], al
add byte [edi - 1], bl
inc esi
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
loop 0x403482
rdtsc
pop edx
sub eax, edx
sub esp, 0x18
push 0
push dword [0x40245d]
call dword [sym.imp.Msacm32.dll_acmStreamOpen]
pop edx
sub edx, eax
push edx
push 0
push 0
push 0x4032fa
call dword [fcn.0040359c]
push 0x4032b5
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [fcn.00403590], eax
push 0
push 2
push 0x4032f8
push 0x4032c4
call dword [fcn.00403590]
pop edx
sub edx, eax
ret
Function at 0x402ae8
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.00404918
test esi, esi
jne 0x402b1e
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.00404a08
jmp 0x402b3c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029fc
mov edi, eax
test esi, esi
je 0x402b3c
cmp dword [ebx], 0
je 0x402b3c
dec esi
jmp 0x402b25
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403954
Capabilities:
Query or enumerate registry value

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

Function at 0x4046f8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b504c], 0
je 0x404759
cmp word [0x4b5220], 0xd7b2
jne 0x404721
cmp dword [0x4b5228], 0
jbe 0x404721
mov eax, 0x4b521c
call dword [0x4b5238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4b3070
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 0x404780
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b3030], 0
jne 0x404775
push 0
push 0x4b3068
push 0x4b3070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4048cc
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.004027c0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4b504d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404894
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406168
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
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406398
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4061eb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406398
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4061eb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4063b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406274
xor eax, eax
push ebp
push 0x40626d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405fb0
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 0x406252
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4063d4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406252
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 0x406274
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
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40638e
cmp byte [ebp - 0xd], 0
jne 0x4062bb
cmp byte [ebp - 0x12], 0
je 0x40638e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4062d4
dec ebx
cmp byte [ebx], 0x2e
je 0x4062e3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4062d3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40638e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406320
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 0x40638e
cmp byte [ebp - 0xd], 0
je 0x40638e
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 0x40638e
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 0x406a60
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 0x406ac6
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.00404b88
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004033bc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406ab0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406acd
lea eax, [ebp - 0x10]
call fcn.00404918
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404dd8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4098d1
test al, 0x10
jne 0x4098d5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c9cc
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 0x40ca05
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404a08
jmp 0x40ca0e
mov eax, ebx
mov edx, esi
call fcn.0040496c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40da44
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 0x40db1a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004049b0
lea eax, [ebp - 8]
call fcn.00404e28
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404dd8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40db04
mov eax, ebx
call fcn.004027c0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40dafd
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.00404dd8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40dae7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40db2c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40dae7
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 0x40db04
mov eax, dword [ebp - 0x10]
call fcn.004027e0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40db21
lea eax, [ebp - 8]
call fcn.00404918
ret
Function at 0x40e02c
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 0x40e090
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.00404b88
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040950c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e097
lea eax, [ebp - 0xc]
call fcn.00404918
ret

Function at 0x425744
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.0042559c
dec esi
jne 0x425766
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x4268a8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4b588c
cmp dword [edi], 0
jne 0x426924
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4b5888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4b3654
mov ecx, 2
call fcn.004029bc
mov edx, 0x426880
lea eax, [esi + 5]
call fcn.004268a0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004268a0
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 0x4268f9
mov dword [0x4b5888], 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 0x427ef8
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 0x427efe
ret

Function at 0x42a57c
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 0x42a5cd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42a5b4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42a5a4
jmp 0x42a5cd
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 0x42a5b5
pop ebx
mov esp, ebp
pop ebp
ret