joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c110
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b7a7
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x43800c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x220], edi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x228], 0
push 5
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
push str.en_us
mov word [edi], ax
call fcn.00409f20
push 0x10
mov dword [ebp - 0x228], 1
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetUserGeoID]
mov dword [ebp - 0x220], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
cmp dword [ebp - 0x220], 0xffffffff
movzx esi, ax
je 0x40c34f
xor eax, eax
cmp ax, si
je 0x40c34f
push 0x208
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00417e70
add esp, 0xc
lea eax, [ebp - 0x21c]
push esi
push 0x104
push eax
push 6
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_GetGeoInfoW]
test eax, eax
je 0x40c34f
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x230], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x22c], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c224
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x240]
call fcn.00409f20
lea eax, [ebp - 0x240]
cmp edi, eax
je 0x40c2b0
mov ecx, dword [edi + 0x14]
cmp ecx, 8
jb 0x40c289
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x40c27f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c36d
mov eax, edx
push ecx
push eax
call fcn.004165af
add esp, 8
movups xmm0, xmmword [ebp - 0x240]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x230]
movq qword [edi + 0x10], xmm0
jmp 0x40c2f0
mov edx, dword [ebp - 0x22c]
cmp edx, 8
jb 0x40c2f0
mov ecx, dword [ebp - 0x240]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c2e6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c36d
push edx
push ecx
call fcn.004165af
add esp, 8
cmp dword [edi + 0x14], 8
jb 0x40c302
mov edx, dword [edi]
mov esi, edx
mov ecx, dword [edi + 0x10]
lea eax, [edx + ecx*2]
jmp 0x40c30c
mov eax, dword [edi + 0x10]
mov esi, edi
mov edx, edi
lea eax, [edi + eax*2]
mov dword [ebp - 0x220], eax
cmp esi, eax
je 0x40c34f
sub edx, esi
mov dword [ebp - 0x224], edx
nop
movzx eax, word [esi]
push eax
call fcn.00419c54
mov ecx, dword [ebp - 0x224]
add esp, 4
mov word [ecx + esi], ax
add esi, 2
cmp esi, dword [ebp - 0x220]
jne 0x40c320
jmp 0x40c34f
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004165a1
mov esp, ebp
pop ebp
ret
call fcn.00419a7c
int3
Function at 0x40ee30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bb27
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x43800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x224], 0
push eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
push 0x4335d8
mov word [esi], ax
call fcn.00409f20
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x224], 1
call fcn.00417e70
add esp, 0xc
mov dword [ebp - 0x21c], 0x104
lea eax, [ebp - 0x220]
xor edi, edi
mov dword [ebp - 0x220], edi
push eax
push 1
push edi
push str.SoftwareMicrosoftBingWallpaperApp
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40eefe
mov edi, 0x80004005
jmp 0x40ef2b
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push str.PartnerCode
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov ecx, 0x80004005
cmovne edi, ecx
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x40ef3c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x40f02b
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x22c], edi
lea edx, [ecx + 2]
mov dword [ebp - 0x228], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ef63
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x23c]
call fcn.00409f20
lea eax, [ebp - 0x23c]
cmp esi, eax
je 0x40efef
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x40efc8
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x40efbe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f048
mov eax, edx
push ecx
push eax
call fcn.004165af
add esp, 8
movups xmm0, xmmword [ebp - 0x23c]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x22c]
movq qword [esi + 0x10], xmm0
jmp 0x40f02b
mov edx, dword [ebp - 0x228]
cmp edx, 8
jb 0x40f02b
mov ecx, dword [ebp - 0x23c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f021
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f048
push edx
push ecx
call fcn.004165af
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004165a1
mov esp, ebp
pop ebp
ret
call fcn.00419a7c
int3
Function at 0x4110f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bd8d
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x43800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x148], esi
xor eax, eax
mov dword [ebp - 0x28], 0
push eax
push 0x4335d8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00409f20
lea eax, [ebp - 0x144]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x144], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41124c
mov eax, dword [ebp - 0x140]
cmp eax, 6
jne 0x411232
mov eax, dword [ebp - 0x13c]
cmp eax, 1
jne 0x411210
push 4
push str.Win7
mov dword [esi], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 7
mov word [esi], ax
call fcn.00409f20
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4111f4
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4111ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4112ab
push edx
push ecx
call fcn.004165af
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004165a1
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x411221
push 4
push str.Win8
jmp 0x41119a
cmp eax, 3
jne 0x41124c
push 6
push str.Win8.1
jmp 0x41119a
cmp eax, 0xa
jne 0x41124c
cmp dword [ebp - 0x13c], 0
jne 0x41124c
push 5
push str.Win10
jmp 0x41119a
push 1
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 7
push 0x433210
mov word [esi], ax
call fcn.00409f20
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4111f4
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4111ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4111ea
call fcn.00419a7c
int3
Function at 0x4116b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43800c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], 8
push eax
push 1
xor esi, esi
xorps xmm0, xmm0
push esi
push str.SoftwareMicrosoftBingWallpaperApp
xor bl, bl
movlpd qword [ebp - 0xc], xmm0
push 0x80000001
mov byte [ebp - 0x21], bl
mov dword [ebp - 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4116fd
mov esi, 0x80004005
jmp 0x411721
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push str.ConfigDownloadDate
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov ecx, 0x80004005
cmovne esi, ecx
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x41172f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x411850
push edi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, 1
mov edi, 0xd6bf94d5
mul dword [ebp - 8]
mov ebx, eax
xor eax, eax
mul dword [ebp - 8]
add ebx, edx
mov ecx, eax
add ecx, dword [ebp - 0xc]
mov edx, 0xe57a42bd
mov eax, ecx
adc ebx, esi
mul edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], eax
mov esi, edx
mov eax, ecx
mov ecx, 0xe57a42bd
mul edi
mov edi, eax
mov dword [ebp - 8], edx
mov eax, ebx
mul ecx
mov ecx, eax
mov ebx, edx
mov eax, dword [ebp - 0x10]
mov edx, 0xd6bf94d5
mul edx
add ecx, esi
mov dword [ebp - 0x20], eax
adc ebx, 0
add edi, ecx
mov ecx, dword [ebp - 8]
adc ecx, 0
mov dword [ebp - 0x14], edi
xor eax, eax
mov edi, 0xd6bf94d5
add ebx, ecx
mov ecx, dword [ebp - 0x20]
adc eax, eax
add ecx, ebx
adc edx, eax
mov eax, 1
shrd ecx, edx, 0x17
mul dword [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov ebx, eax
xor eax, eax
mul dword [ebp - 0x18]
add ebx, edx
mov ecx, eax
add ecx, dword [ebp - 0x1c]
mov edx, 0xe57a42bd
mov eax, ecx
adc ebx, 0
mul edx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x1c], eax
mov esi, edx
mov eax, ecx
mov ecx, 0xe57a42bd
mul edi
mov edi, eax
mov dword [ebp - 0x10], edx
mov eax, ebx
mul ecx
mov ecx, eax
mov ebx, edx
mov eax, dword [ebp - 8]
mov edx, 0xd6bf94d5
mul edx
add ecx, esi
mov dword [ebp - 8], eax
adc ebx, 0
add edi, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edi
adc ecx, 0
xor eax, eax
add ebx, ecx
mov ecx, dword [ebp - 8]
pop edi
adc eax, eax
add ecx, ebx
pop esi
adc edx, eax
movzx eax, byte [ebp - 0x21]
shrd ecx, edx, 0x17
pop ebx
sub ecx, dword [ebp - 0x20]
cmp ecx, 0x2d0
mov ecx, 1
cmovle eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004165a1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.004165a1
mov esp, ebp
pop ebp
ret
Function at 0x4567ea
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov esi, ebx
cmp edi, dword [esi*8 + 0x402148]
je 0x456809
inc esi
cmp esi, 0x17
jb 0x4567fa
cmp esi, 0x17
jae 0x456949
push 3
call fcn.00460601
pop ecx
cmp eax, 1
je 0x456913
push 3
call fcn.00460601
pop ecx
test eax, eax
jne 0x45683c
cmp dword [0x5491a8], 1
je 0x456913
cmp edi, 0xfc
je 0x456949
push 0x402758
push 0x314
mov edi, 0x560488
push edi
call fcn.004586ed
add esp, 0xc
test eax, eax
je 0x456871
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00457692
add esp, 0x14
push 0x104
push 0x5604a1
push ebx
mov byte [0x5605a5], bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4568b4
push 0x402774
push 0x2fb
push 0x5604a1
call fcn.004586ed
add esp, 0xc
test eax, eax
je 0x4568b4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00457692
add esp, 0x14
push 0x40278c
push 0x314
push edi
call fcn.0045ee7e
add esp, 0xc
test eax, eax
je 0x4568d8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00457692
add esp, 0x14
push dword [esi*8 + 0x40214c]
push 0x314
push edi
call fcn.0045ee7e
add esp, 0xc
test eax, eax
je 0x4568fe
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00457692
add esp, 0x14
push 0x12010
push 0x402790
push edi
call fcn.00460652
add esp, 0xc
jmp 0x456949
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, eax
test edx, edx
je 0x456949
cmp edx, 0xffffffff
je 0x456949
mov esi, dword [esi*8 + 0x40214c]
mov ecx, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x456932
push ebx
lea eax, [ebp - 4]
push eax
sub ecx, edi
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4570e0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x45713a
push ebx
xor ebx, ebx
push esi
mov esi, edi
cmp word [edi], bx
je 0x45710e
add esi, 2
cmp word [esi], bx
jne 0x4570fe
add esi, 2
cmp word [esi], bx
jne 0x4570fe
sub esi, edi
add esi, 2
push esi
call fcn.0045328d
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x45712f
push esi
push edi
push eax
call fcn.00452d70
mov ebx, dword [ebp - 4]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop esi
mov eax, ebx
pop ebx
pop edi
leave
ret
Function at 0x45d2e9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x54921c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x90], ecx
cmp eax, 1
jne 0x45d425
xor esi, esi
push esi
push 0x80
lea ebx, [ebp - 0x84]
mov eax, ebx
push eax
push dword [ebp + 0x14]
mov dword [ebp - 0x8c], esi
push dword [ebp + 0x10]
push ecx
call fcn.0046224c
add esp, 0x18
mov dword [ebp - 0x88], eax
test eax, eax
jne 0x45d3b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x45d3da
push esi
push esi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x90]
call fcn.0046224c
add esp, 0x18
mov dword [ebp - 0x88], eax
test eax, eax
je 0x45d3da
push 1
push eax
call fcn.00454124
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x45d3da
push esi
push dword [ebp - 0x88]
mov dword [ebp - 0x8c], 1
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x90]
call fcn.0046224c
add esp, 0x18
mov dword [ebp - 0x88], eax
test eax, eax
je 0x45d3d3
push 1
push eax
call fcn.00454124
mov edx, eax
pop ecx
pop ecx
mov dword [edi], edx
test edx, edx
jne 0x45d3ec
cmp dword [ebp - 0x8c], esi
je 0x45d3da
push ebx
call fcn.0045126a
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045276d
leave
ret
mov ecx, dword [ebp - 0x88]
lea eax, [ecx - 1]
push eax
push ebx
push ecx
push edx
call fcn.0045f00a
add esp, 0x10
test eax, eax
je 0x45d412
push esi
push esi
push esi
push esi
push esi
call fcn.00457692
add esp, 0x14
cmp dword [ebp - 0x8c], esi
je 0x45d421
push ebx
call fcn.0045126a
pop ecx
xor eax, eax
jmp 0x45d3dd
cmp eax, 2
jne 0x45d473
xor esi, esi
push esi
push esi
push dword [ebp + 0x14]
mov dword [edi], esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
test ebx, ebx
je 0x45d464
push 2
push ebx
call fcn.00454124
pop ecx
pop ecx
mov dword [edi], eax
test eax, eax
je 0x45d464
push ebx
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x45d421
push dword [edi]
call fcn.0045126a
pop ecx
mov dword [edi], esi
jmp 0x45d3da
test eax, eax
jne 0x45d3da
and dword [ebp - 0x88], eax
push 2
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebp + 0x14]
or eax, 0x20000000
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45d3da
mov al, byte [ebp - 0x88]
mov byte [edi], al
jmp 0x45d421
Function at 0x45d8b3
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x54921c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 4
xor esi, esi
pop eax
mov dword [ebp - 0xc], esi
call fcn.00460dd0
mov eax, esp
push 0x1c
lea ecx, [ebp - 0x34]
push ecx
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x45d9bc
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x54]
push 0x4020f0
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x45d93d
push 0x4028e4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45d93d
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], esi
call eax
cmp eax, 1
jne 0x45d93d
cmp dword [ebp - 0xc], esi
jbe 0x45d93d
mov esi, dword [ebp - 0xc]
mov dword [ebp - 8], esi
lea eax, [ebp - 8]
push eax
lea edi, [ebx - 1]
push edi
push esi
call fcn.00456cf4
add esp, 0xc
test eax, eax
js 0x45d9bc
mov esi, dword [ebp - 8]
not edi
and esi, edi
mov dword [ebp - 8], esi
je 0x45d973
lea eax, [ebp - 8]
push eax
push ebx
push esi
call fcn.00456cf4
add esp, 0xc
test eax, eax
js 0x45d9bc
mov esi, dword [ebp - 8]
lea eax, [ebx + ebx]
cmp esi, eax
jae 0x45d97c
mov esi, eax
mov eax, dword [ebp - 0x10]
lea edi, [ebx - 1]
not edi
and edi, dword [ebp - 0x14]
add eax, ebx
sub edi, esi
cmp edi, eax
jb 0x45d9bc
push 4
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x45d9bc
lea ecx, [ebp - 0x18]
push ecx
push 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x45d9bc
xor eax, eax
inc eax
jmp 0x45d9be
xor eax, eax
lea esp, [ebp - 0x64]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045276d
leave
ret
Function at 0x45f145
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.004560e8
mov ebx, dword [ebp + 8]
lea esi, [eax + 0x9c]
test ebx, ebx
jne 0x45f16d
lea edi, [esi + 8]
or dword [edi], 0x104
jmp 0x45f231
lea ecx, [ebx + 0x40]
lea eax, [esi + 4]
mov dword [esi], ebx
mov dword [eax], ecx
test ecx, ecx
je 0x45f193
cmp byte [ecx], 0
je 0x45f193
push eax
push 0x402f28
push 0x16
pop eax
call fcn.0045f342
pop ecx
pop ecx
lea eax, [esi + 4]
mov ecx, dword [esi]
lea edi, [esi + 8]
and dword [edi], 0
test ecx, ecx
je 0x45f1f2
cmp byte [ecx], 0
je 0x45f1f2
mov eax, dword [eax]
test eax, eax
je 0x45f1b6
cmp byte [eax], 0
je 0x45f1b6
call fcn.0045f3aa
jmp 0x45f1bb
call fcn.0045f61d
cmp dword [edi], 0
jne 0x45f246
push esi
push 0x402900
push 0x41
pop eax
call fcn.0045f342
pop ecx
pop ecx
test eax, eax
je 0x45f23d
mov eax, dword [esi + 4]
test eax, eax
je 0x45f1eb
cmp byte [eax], 0
je 0x45f1eb
call fcn.0045f3aa
jmp 0x45f23d
call fcn.0045f61d
jmp 0x45f23d
mov ecx, dword [eax]
test ecx, ecx
je 0x45f22b
cmp byte [ecx], 0
je 0x45f22b
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45f200
xor eax, eax
sub ecx, edx
cmp ecx, 3
sete al
push 1
push 0x45f72a
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
test byte [edi], 4
jne 0x45f23d
and dword [edi], 0
jmp 0x45f23d
mov dword [edi], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
cmp dword [edi], 0
je 0x45f336
lea ecx, [ebx + 0x80]
neg ebx
sbb ebx, ebx
and ecx, ebx
mov edi, esi
call fcn.0045f7c7
mov edi, eax
test edi, edi
je 0x45f336
cmp edi, 0xfde8
je 0x45f336
cmp edi, 0xfde9
je 0x45f336
movzx eax, di
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x45f336
push 1
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x45f336
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x45f2ba
mov ax, word [esi + 0x18]
mov word [ecx], ax
mov ax, word [esi + 0x1c]
mov word [ecx + 2], ax
mov word [ecx + 4], di
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x45f331
mov eax, 0x814
cmp word [ecx], ax
jne 0x45f2f0
push 0x4030e8
push 0x40
push ebx
call fcn.004586ed
add esp, 0xc
test eax, eax
je 0x45f305
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00457692
add esp, 0x14
jmp 0x45f305
push 0x40
push ebx
push 0x1001
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x45f336
push 0x40
lea eax, [ebx + 0x40]
push eax
push 0x1002
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x45f336
push 0xa
push 0x10
lea ecx, [ebx + 0x80]
push ecx
push edi
call fcn.00462408
add esp, 0x10
xor eax, eax
inc eax
jmp 0x45f338
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x45f7c7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x54921c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x45f839
cmp byte [esi], 0
je 0x45f839
push 4
push 0x4030fc
push esi
call fcn.004627e5
add esp, 0xc
test eax, eax
je 0x45f839
push 4
push 0x403104
push esi
call fcn.004627e5
add esp, 0xc
test eax, eax
jne 0x45f825
push 8
lea eax, [ebp - 0xc]
push eax
push 0xb
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x45f851
lea esi, [ebp - 0xc]
push esi
call fcn.004623e1
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045276d
leave
ret
push 8
lea eax, [ebp - 0xc]
push eax
push 0x1004
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x45f855
xor eax, eax
jmp 0x45f82c
push 2
lea eax, [ebp - 0xc]
push 0x403100
push eax
call fcn.004627e5
add esp, 0xc
test eax, eax
jne 0x45f822
call dword [sym.imp.KERNEL32.dll_GetACP]
jmp 0x45f82c

Function at 0x45f898
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x54921c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x78
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [ebp + 8]
and eax, 0x3ff
push 1
or eax, 0x400
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x45f8ce
xor eax, eax
jmp 0x45f8ff
lea edx, [ebp - 0x7c]
call fcn.0045f910
cmp dword [ebp + 8], eax
je 0x45f8fc
cmp dword [ebp + 0xc], 0
je 0x45f8fc
push esi
mov esi, dword [edi]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x45f8e7
mov eax, dword [edi]
sub esi, ecx
call fcn.0045f948
cmp eax, esi
pop esi
je 0x45f8ca
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045276d
leave
ret

Function at 0x460410
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x460426
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x460441
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x460450
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
movzx ebx, word [ecx + 6]
add eax, 0x18
push esi
xor edx, edx
add eax, ecx
push edi
test ebx, ebx
je 0x46048e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x460486
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x460490
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x460476
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret