joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d910
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
push esp
pop ebp
push 0xffffffffffffffff
push 0x424067
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x42c520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
sub eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x428ca4
mov dword [ebx + 0x60], 0x428c20
mov dword [ebp - 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], 0x428c60
mov edx, dword [ebx]
mov esi, dword [edx + 4]
add esi, ebx
mov dword [ebp - 0x10], 1
call fcn.0040a450
lea edi, [ebx + 4]
push esi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], 0
call fcn.0040f3d0
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x40d99b
mov eax, dword [esi + 0xc]
or eax, 4
or eax, 4
push 0
mov ecx, esi
call fcn.0040a310
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push edi
mov dword [ebx + ecx], 0x428ca0
call fcn.0040eff0
lea edx, [edi + 8]
mov dword [edi + 0x10], edx
lea ecx, [edi + 0x18]
mov dword [edi + 0x20], ecx
lea edx, [edi + 0x1c]
mov dword [edi + 0x24], edx
mov dword [edi], 0x428c64
mov byte [edi + 0x50], 0
mov byte [edi + 0x49], 0
lea ecx, [edi + 0x28]
mov dword [edi + 0x30], ecx
sub ecx, ecx
lea eax, [edi + 0xc]
mov dword [edi + 0x14], eax
lea edx, [edi + 0x2c]
mov dword [edi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [edi + 0x24]
mov dword [eax], ecx
mov edx, dword [edi + 0x34]
mov dword [edx], ecx
mov eax, dword [edi + 0x10]
mov dword [eax], ecx
mov edx, dword [edi + 0x20]
mov dword [edx], ecx
mov eax, dword [edi + 0x30]
mov edx, dword [0x464604]
mov dword [eax], ecx
mov dword [edi + 0x54], ecx
mov dword [edi + 0x4c], edx
mov dword [edi + 0x44], ecx
push ebx
pop eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40eff0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423bbb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x42c520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], 0x428c24
call 0x411e16
push 4
mov dword [ebp - 4], 0
call fcn.00412657
push eax
pop edi
add esp, 4
test edi, edi
je 0x40f06c
call fcn.004117e7
mov dword [edi], eax
call fcn.004115a6
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004114db
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40f062
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00411503
jmp 0x40f06e
sub edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
push esi
pop eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40fba0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424018
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x42c520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x1c]
push 0x42d668
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00409a90
add esp, 8
lea ecx, [ebp - 0x18]
push 0x42d6dc
push ecx
mov byte [ebp - 4], 1
call fcn.00409a90
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
push 0x6a
mov byte [ebp - 4], 3
call fcn.00407000
add esp, 4
cmp eax, ebx
je 0x40fc31
push eax
lea eax, [ebx + 0x6a]
lea edi, [ebp - 0x14]
call fcn.00406b10
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx - 0xc], ebx
je 0x40fcbd
mov edx, dword [ebp - 0x18]
cmp dword [edx - 0xc], ebx
je 0x40fcbd
cmp dword [esi - 0xc], ebx
je 0x40fcbd
xor eax, eax
mov dword [ebp - 0x14], eax
nop
cmp eax, 2
jge 0x40fcbd
sub ecx, ecx
cmp eax, ebx
setne cl
push 2
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
add ecx, 0x80000001
mov dword [ebp - 0x20], ebx
call fcn.0040faf0
or eax, eax
jne 0x40fca1
mov edi, dword [ebp - 0x18]
cmp esi, ebx
je 0x40fca1
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push ebx
push edi
mov edi, dword [ebp - 0x28]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40fca4
mov edi, dword [ebp - 0x28]
cmp edi, ebx
je 0x40fcb2
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], ebx
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], ebx
jmp 0x40fc50
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fcdd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fd00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
or edx, edx
jg 0x40fd22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret
Function at 0x410040
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push esp
pop ebp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push esi
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or eax, eax
jne 0x4100ae
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x41007d
cmp eax, 2
jne 0x410098
mov eax, dword [ebp - 4]
test esi, esi
je 0x4100a8
or eax, eax
je 0x4100a3
test al, 1
jne 0x410098
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4100a8
pushal
popal
push 0xd
pop eax
mov esp, ebp
pop ebp
ret 8
sub edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
sub eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x412163
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x58
push 0x429400
call fcn.00418260
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
sub esi, esi
cmp dword [0x465748], esi
jne 0x412021
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.DLL_HeapSetInformation]
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x412034
mov dword [ebp - 0x1c], esi
jmp 0x41206a
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x41202f
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x41202f
cmp dword [eax + 0x400074], 0xe
jbe 0x41202f
xor ecx, ecx
cmp dword [eax + 0x4000e8], esi
setne cl
mov dword [ebp - 0x1c], ecx
call fcn.00418241
test eax, eax
jne 0x41207b
push 0x1c
call 0x411fcd
pop ecx
call fcn.004180c6
test eax, eax
jne 0x41208c
push 0x10
call 0x411fcd
pop ecx
call fcn.00417cd6
mov dword [ebp - 4], esi
call fcn.00417a91
or eax, eax
jns 0x4120a5
push 0x1b
call fcn.0041739d
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
mov dword [0x465744], eax
call fcn.00417a39
mov dword [0x463760], eax
call fcn.0041798b
test eax, eax
jns 0x4120cb
push 8
call fcn.0041739d
pop ecx
call fcn.00417759
or eax, eax
jns 0x4120dc
push 9
call fcn.0041739d
pop ecx
push 1
call fcn.0041717c
pop ecx
cmp eax, esi
je 0x4120ef
push eax
call fcn.0041739d
pop ecx
call fcn.00417713
test byte [ebp - 0x3c], 1
je 0x412100
movzx ecx, word [ebp - 0x38]
jmp 0x412103
push 0xa
pop ecx
push ecx
push eax
push esi
push 0x400000
call main
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], esi
jne 0x41211e
push eax
call fcn.00417353
call fcn.0041737f
jmp 0x412153
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004182a5
ret
call fcn.0041844f
jmp 0x411ff6

Function at 0x412178
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42c520]
jne 0x412182
repz ret
jmp fcn.004184ea
Function at 0x4173e1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
push esp
pop ebp
sub esp, 0x1fc
mov eax, dword [0x42c520]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call 0x4173bb
mov edi, eax
xor ebx, ebx
pop ecx
mov dword [ebp - 0x1fc], edi
cmp edi, ebx
je 0x417581
push 3
call fcn.00420da5
pop ecx
cmp eax, 1
je 0x41752d
push 3
call fcn.00420da5
pop ecx
or eax, eax
jne 0x41743f
cmp dword [0x42c1f4], 1
je 0x41752d
cmp esi, 0xfc
je 0x417581
push str.Runtime_Error__n_nProgram:
push 0x314
mov edi, 0x4637b8
push edi
call fcn.0041c289
add esp, 0xc
or eax, eax
jne 0x417523
push 0x104
mov esi, 0x4637ea
push esi
push ebx
mov word [0x4639f2], ax
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
mov ebx, 0x2fb
or eax, eax
jne 0x4174ab
push str._program_name_unknown_
push ebx
push esi
call fcn.0041c289
add esp, 0xc
or eax, eax
je 0x4174ab
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00418904
push esi
call fcn.00420d8a
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4174e2
push esi
call fcn.00420d8a
lea eax, [eax*2 + 0x463774]
push eax
pop ecx
sub ecx, esi
push 3
sar ecx, 1
push 0x42688c
sub ebx, ecx
push ebx
push eax
call fcn.00420cbd
add esp, 0x14
test eax, eax
jne 0x41749f
push 0x426884
mov esi, 0x314
push esi
push edi
call fcn.00420c48
add esp, 0xc
test eax, eax
jne 0x41749f
push dword [ebp - 0x1fc]
push esi
push edi
call fcn.00420c48
add esp, 0xc
test eax, eax
jne 0x41749f
push 0x12010
push 0x426838
push edi
call fcn.00420adc
add esp, 0xc
jmp 0x417581
push ebx
push ebx
push ebx
push ebx
push ebx
jmp 0x4174a6
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
pop esi
cmp esi, ebx
je 0x417581
cmp esi, 0xffffffff
je 0x417581
xor eax, eax
mov cl, byte [edi + eax*2]
mov byte [ebp + eax - 0x1f8], cl
cmp word [edi + eax*2], bx
je 0x41755a
inc eax
cmp eax, 0x1f4
jb 0x417542
push ebx
lea eax, [ebp - 0x1fc]
push eax
lea eax, [ebp - 0x1f8]
push eax
mov byte [ebp - 5], bl
call fcn.00416120
pop ecx
push eax
lea eax, [ebp - 0x1f8]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412178
leave
ret

Function at 0x417a39
Capabilities:
Query environment variable

Disassembly:
pushfd
popfd
push esi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
push eax
pop esi
sub ecx, ecx
cmp esi, ecx
jne 0x417a4e
xor eax, eax
pop esi
ret
cmp word [esi], cx
je 0x417a63
add eax, 2
cmp word [eax], cx
jne 0x417a53
add eax, 2
cmp word [eax], cx
jne 0x417a53
push ebx
sub eax, esi
lea ebx, [eax + 2]
push edi
push ebx
call fcn.00416008
push eax
pop edi
pop ecx
or edi, edi
jne 0x417a84
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
push edi
pop eax
pop edi
pop ebx
pop esi
ret
push ebx
push esi
push edi
call fcn.00415560
add esp, 0xc
jmp 0x417a77

Function at 0x418904
Capabilities:
Terminate process

Disassembly:
pushal
popal
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004187db
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
pop esi
ret
Function at 0x41a623
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
or esi, esi
jne 0x41a645
call fcn.004189a8
mov dword [eax], 0x16
call fcn.00418956
jmp 0x41a73f
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x41a73f
test al, 0x40
jne 0x41a73f
test al, 2
je 0x41a667
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x41a73f
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
jne 0x41a67d
push esi
call fcn.0041a76b
pop ecx
jmp 0x41a682
mov eax, dword [esi + 8]
mov dword [esi], eax
push dword [esi + 0x18]
push dword [esi + 8]
push esi
call fcn.0041a745
pop ecx
push eax
call fcn.004219ea
add esp, 0xc
mov dword [esi + 4], eax
or eax, eax
je 0x41a72e
cmp eax, 0xffffffff
je 0x41a72e
test byte [esi + 0xc], 0x82
jne 0x41a703
push esi
call fcn.0041a745
pop ecx
cmp eax, 0xffffffff
je 0x41a6ee
push esi
call fcn.0041a745
pop ecx
cmp eax, 0xfffffffe
je 0x41a6ee
push edi
push esi
call fcn.0041a745
sar eax, 5
push esi
lea edi, [eax*4 + 0x464620]
call fcn.0041a745
and eax, 0x1f
pop ecx
shl eax, 6
add eax, dword [edi]
pop ecx
pop edi
jmp 0x41a6f3
mov eax, 0x42c4d8
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x41a703
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x41a721
mov eax, dword [esi + 0xc]
test al, 8
je 0x41a721
test eax, 0x400
jne 0x41a721
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
jmp 0x41a742
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
and dword [esi + 4], 0
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x41e33d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
push esp
pop ebp
push ecx
or esi, esi
je 0x41e397
cmp byte [esi], 0
je 0x41e397
push 0x427550
push esi
call fcn.00418a70
pop ecx
pop ecx
test eax, eax
je 0x41e397
push 0x42754c
push esi
call fcn.00418a70
pop ecx
pop ecx
or eax, eax
jne 0x41e38b
push 2
lea eax, [ebp - 4]
push eax
push 0x2000000b
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x41e3af
mov eax, dword [ebp - 4]
leave
ret
push esi
call fcn.00422b7a
pop ecx
mov dword [ebp - 4], eax
jmp 0x41e386
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
jne 0x41e3b3
xor eax, eax
leave
ret
cmp dword [ebp - 4], 0
jne 0x41e386
call dword [sym.imp.KERNEL32.DLL_GetACP]
leave
ret

Function at 0x41e4d9
Capabilities:
Get geographical location

Disassembly:
pushfd
popfd
push ebp
push esp
pop ebp
push ecx
push esi
mov esi, eax
push 2
lea eax, [ebp - 4]
push eax
mov eax, esi
and eax, 0x3ff
push 0x20000001
or eax, 0x400
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
jne 0x41e508
xor eax, eax
jmp 0x41e531
cmp esi, dword [ebp - 4]
je 0x41e52e
cmp dword [ebp + 8], 0
je 0x41e52e
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
push edi
mov edx, esi
call fcn.0041e417
push esi
push eax
pop edi
call fcn.00416120
pop ecx
cmp edi, eax
pop edi
je 0x41e504
sub eax, eax
inc eax
pop esi
leave
ret
Function at 0x41e868
Capabilities:
Get geographical location

Disassembly:
pushfd
popfd
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.00417f0f
lea edi, [eax + 0x9c]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x41e88e
or dword [edi + 8], 0x104
jmp 0x41e951
mov dword [edi], eax
add eax, 0x40
lea ebx, [edi + 4]
mov dword [ebx], eax
je 0x41e8af
cmp byte [eax], 0
je 0x41e8af
push ebx
push 0x16
push 0x427480
call fcn.0041e2db
add esp, 0xc
mov eax, dword [edi]
and dword [edi + 8], 0
or eax, eax
je 0x41e914
cmp byte [eax], 0
je 0x41e914
mov eax, dword [ebx]
or eax, eax
je 0x41e8d2
cmp byte [eax], 0
je 0x41e8d2
push edi
pop esi
call fcn.0041e7c5
jmp 0x41e8d9
mov esi, edi
call fcn.0041e82c
cmp dword [edi + 8], 0
jne 0x41e967
push edi
push 0x40
push 0x427278
call fcn.0041e2db
add esp, 0xc
test eax, eax
je 0x41e95d
mov ebx, dword [ebx]
test ebx, ebx
je 0x41e90b
cmp byte [ebx], 0
je 0x41e90b
push edi
pop esi
call fcn.0041e7c5
jmp 0x41e95d
push edi
pop esi
call fcn.0041e82c
jmp 0x41e95d
mov ebx, dword [ebx]
test ebx, ebx
je 0x41e94a
cmp byte [ebx], 0
je 0x41e94a
push ebx
call fcn.00416120
sub eax, 3
neg eax
pop ecx
sbb eax, eax
push 1
inc eax
push 0x41e432
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.DLL_EnumSystemLocalesA]
test byte [edi + 8], 4
jne 0x41e95d
and dword [edi + 8], 0
jmp 0x41e95d
mov dword [edi + 8], 0x104
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultLCID]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
cmp dword [edi + 8], 0
je 0x41ea52
mov esi, dword [ebp + 8]
mov eax, esi
sub eax, 0xffffff80
neg esi
sbb esi, esi
and esi, eax
call fcn.0041e33d
push eax
pop esi
mov dword [ebp + 8], esi
or esi, esi
je 0x41ea52
cmp esi, 0xfde8
je 0x41ea52
cmp esi, 0xfde9
je 0x41ea52
movzx eax, si
push eax
call dword [sym.imp.KERNEL32.DLL_IsValidCodePage]
test eax, eax
je 0x41ea52
push 1
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.DLL_IsValidLocale]
or eax, eax
je 0x41ea52
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41e9de
mov cx, word [edi + 0x18]
mov word [eax], cx
mov cx, word [edi + 0x1c]
mov word [eax + 2], cx
mov word [eax + 4], si
mov ebx, dword [ebp + 0x10]
or ebx, ebx
je 0x41ea4d
mov esi, dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
mov ecx, 0x814
cmp word [eax], cx
jne 0x41ea15
push str.Norwegian_Nynorsk
push 0x40
push ebx
call fcn.0041a4b1
add esp, 0xc
test eax, eax
je 0x41ea26
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00418904
push 0x40
push ebx
push 0x1001
push dword [edi + 0x18]
call esi
test eax, eax
je 0x41ea52
push 0x40
lea eax, [ebx + 0x40]
push eax
push 0x1002
push dword [edi + 0x1c]
call esi
test eax, eax
je 0x41ea52
push 0xa
push 0x10
sub ebx, 0xffffff80
push ebx
push dword [ebp + 8]
call fcn.00422d7f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41ea54
sub eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x420298
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
push esp
pop ebp
sub esp, 0x90
mov eax, dword [0x42c520]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 1
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x88], eax
jne 0x4203b5
and dword [ebp - 0x8c], 0
push 0x80
lea ebx, [ebp - 0x84]
mov ecx, ebx
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call fcn.00422e83
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x420352
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x420373
push esi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x88]
call fcn.00422e83
add esp, 0x14
mov dword [ebp - 0x90], eax
or eax, eax
je 0x420373
inc esi
push esi
push eax
call fcn.0041604d
mov ebx, eax
pop ecx
pop ecx
or ebx, ebx
je 0x420373
push dword [ebp - 0x90]
mov dword [ebp - 0x8c], esi
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x88]
call fcn.00422e83
mov esi, eax
add esp, 0x14
test esi, esi
je 0x42036c
push 1
push esi
call fcn.0041604d
mov dword [edi], eax
xor edi, edi
pop ecx
pop ecx
cmp eax, edi
jne 0x420385
cmp dword [ebp - 0x8c], edi
je 0x420373
push ebx
call fcn.0041261d
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412178
leave
ret
lea ecx, [esi - 1]
push ecx
push ebx
push esi
push eax
call fcn.0041e226
add esp, 0x10
or eax, eax
jne 0x4203ab
cmp dword [ebp - 0x8c], edi
je 0x4203a7
push ebx
call fcn.0041261d
pop ecx
xor eax, eax
jmp 0x420376
push edi
push edi
push edi
push edi
push edi
call fcn.00418904
cmp dword [ebp + 0xc], 2
jne 0x420403
mov esi, dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
xor eax, eax
push eax
push eax
push dword [ebp + 0x14]
mov dword [edi], eax
push dword [ebp + 0x10]
call esi
push eax
pop ebx
or ebx, ebx
je 0x4203f3
push 2
push ebx
call fcn.0041604d
pop ecx
pop ecx
mov dword [edi], eax
test eax, eax
je 0x4203f3
push ebx
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call esi
or eax, eax
jne 0x4203a7
push dword [edi]
call fcn.0041261d
and dword [edi], 0
pop ecx
jmp 0x420373
cmp dword [ebp + 0xc], 0
jne 0x420373
and dword [ebp - 0x88], 0
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 0x420373
mov al, byte [ebp - 0x88]
mov byte [edi], al
jmp 0x4203a7

Function at 0x420990
Capabilities:
Parse pe header

Disassembly:
pushal
popal
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x4209a6
sub eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4209a2
xor edx, edx
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete dl
push edx
pop eax
pop ebp
ret
Function at 0x4209d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
pop ebx
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
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [eax + ecx + 0x18]
test esi, esi
je 0x420a0d
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x420a05
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x420a0f
inc edx
add eax, 0x28
cmp edx, esi
jb 0x4209f5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x420adc
Capabilities:
Link many functions at runtime

Disassembly:
pushal
popal
push ebp
push esp
pop ebp
sub esp, 0x24
mov eax, dword [0x42c520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00417d22
and dword [ebp - 0x14], 0
cmp dword [0x4644d0], 0
mov dword [ebp - 0x18], eax
jne 0x420b8f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
or ebx, ebx
je 0x420c37
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x420c37
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4644d0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4644d4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4644d8], eax
call edi
push eax
call esi
mov dword [0x4644e0], eax
test eax, eax
je 0x420b8f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4644dc], eax
mov eax, dword [0x4644dc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x420be8
cmp dword [0x4644e0], ecx
je 0x420be8
push eax
call esi
push dword [0x4644e0]
push eax
pop edi
call esi
push eax
pop ebx
or edi, edi
je 0x420be8
test ebx, ebx
je 0x420be8
call edi
test eax, eax
je 0x420bdf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
or eax, eax
je 0x420bdf
test byte [ebp - 8], 1
jne 0x420be8
or dword [ebp + 0x10], 0x200000
jmp 0x420c1b
mov eax, dword [0x4644d4]
cmp eax, dword [ebp - 0x18]
je 0x420c1b
push eax
call esi
test eax, eax
je 0x420c1b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x420c1b
mov eax, dword [0x4644d8]
cmp eax, dword [ebp - 0x18]
je 0x420c1b
push eax
call esi
or eax, eax
je 0x420c1b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4644d0]
call esi
or eax, eax
je 0x420c37
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x420c39
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412178
leave
ret