joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3000ffc4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x30004d84]
jne 0x30010aa7
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x300126b8], eax
mov dword [0x300126b4], ecx
mov dword [0x300126b0], edx
mov dword [0x300126ac], ebx
mov dword [0x300126a8], esi
mov dword [0x300126a4], edi
mov word [0x300126d0], ss
mov word [0x300126c4], cs
mov word [0x300126a0], ds
mov word [0x3001269c], es
mov word [0x30012698], fs
mov word [0x30012694], gs
pushfd
pop dword [0x300126c8]
mov eax, dword [ebp]
mov dword [0x300126bc], eax
mov eax, dword [ebp + 4]
mov dword [0x300126c0], eax
lea eax, [ebp + 8]
mov dword [0x300126cc], eax
mov eax, dword [ebp - 0x320]
mov dword [0x30012608], 0x10001
mov eax, dword [0x300126c0]
mov dword [0x300125bc], eax
mov dword [0x300125b0], 0xc0000409
mov dword [0x300125b4], 1
mov eax, dword [0x30004d84]
mov dword [ebp - 0x328], eax
mov eax, dword [0x3001242c]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x30012600], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x30005110
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x30012600], 0
jne 0x30010b97
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x3000ffd1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x30004dd0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x30010029
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0
push 0
push 0x30004dc8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x30010029
mov al, 1
jmp 0x3001002b
xor al, al
leave
ret 8
Function at 0x4011d0
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 4]
push esi
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401214
mov ecx, dword [esp + 0xc]
test ecx, ecx
jne 0x401201
mov dword [esi + 8], 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40120b
mov dword [eax], ecx
mov eax, 1
pop esi
ret 0xc
xor eax, eax
pop esi
ret 0xc

Function at 0x4013b0
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret

Function at 0x402ce0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x404
mov edx, dword [esp + 0x408]
push esi
mov esi, dword [esp + 0x410]
push edi
mov edi, dword [esp + 0x418]
lea eax, [esp + 8]
push eax
push edi
push esi
push edx
mov dword [esp + 0x18], 0
mov byte [esi], 0
call fcn.00402bf0
test eax, eax
jne 0x402d24
pop edi
pop esi
add esp, 0x404
ret 0x14
mov eax, dword [esp + 8]
cmp eax, 1
je 0x402d42
cmp eax, 2
je 0x402d42
pop edi
mov byte [esi], 0
xor eax, eax
pop esi
add esp, 0x404
ret 0x14
mov ecx, dword [esp + 0x420]
test ecx, ecx
je 0x402d4f
mov dword [ecx], eax
mov ecx, dword [esp + 0x41c]
test ecx, ecx
je 0x402d96
cmp eax, 2
jne 0x402d96
lea edx, [esp + 0xc]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402d67
push edi
push esi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x402d86
cmp eax, edi
jle 0x402d96
pop edi
mov byte [esi], 0
xor eax, eax
pop esi
add esp, 0x404
ret 0x14
pop edi
mov eax, 1
pop esi
add esp, 0x404
ret 0x14

Function at 0x402fe0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx]
test eax, eax
jne 0x402fe9
ret 0x10
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
ret 0x10

Function at 0x4034e0
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword [ecx]
sub esp, 0x10c
test eax, eax
jne 0x4034f3
add esp, 0x10c
ret
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x20]
push ecx
push 0
push eax
mov dword [esp + 0x20], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
neg eax
sbb eax, eax
inc eax
add esp, 0x10c
ret
Function at 0x403530
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x108
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
test eax, eax
je 0x4035e8
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x24]
push ecx
push 0
push eax
mov dword [esp + 0x28], 0x100
mov dword [esp + 0x2c], 0
call esi
test eax, eax
jne 0x4035e8
mov eax, dword [esp + 8]
test eax, eax
je 0x403590
pop edi
mov eax, 1
pop esi
add esp, 0x108
ret 4
mov eax, dword [esp + 0x114]
test eax, eax
je 0x4035a8
mov ecx, dword [esp + 0xc]
mov eax, 1
cmp ecx, eax
ja 0x4035ea
lea edx, [esp + 0xc]
push edx
mov edx, dword [edi]
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
push 1
push edx
mov dword [esp + 0x28], 0x100
mov dword [esp + 0x2c], 0
call esi
test eax, eax
jne 0x4035e8
pop edi
mov eax, 1
pop esi
add esp, 0x108
ret 4
xor eax, eax
pop edi
pop esi
add esp, 0x108
ret 4
Function at 0x4011f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 2
push 0
mov ecx, dword [ebp + 0xc]
call fcn.004043b0
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40124c
mov ecx, dword [ebp + 0x10]
call fcn.004043b0
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x40124e
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40680c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40682d
jl 0x406824
test edi, edi
jne 0x40682d
xor eax, eax
xor edx, edx
jmp 0x4068ee
cmp dword [ebx + 0x38], 0
je 0x406842
push eax
push edi
push dword [ebp + 8]
call fcn.004068f4
jmp 0x4068ee
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x406889
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x406889
cmp eax, edi
jb 0x406863
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00407f60
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40688f
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4068e3
mov ecx, ebx
call fcn.0040605b
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4068ce
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040d17a
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4068e3
jmp 0x4068a1
test edx, edx
je 0x4068e3
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040d17a
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x407d9f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407dde
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407dde
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407dde
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407dde
cmp dword [ecx + 0x74], 0xe
jbe 0x407dde
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41497b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.00407f10
mov eax, dword [0x429040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004135be
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4149bd
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x414b34
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041e0f0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x42a9d0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004159c1
mov ecx, dword [esi*4 + 0x42a9d0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x414b2d
cmp eax, dword [edi + ecx + 0x24]
jne 0x414b2d
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414b2d
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004159c1
add esp, 0x14
cmp edx, esi
jl 0x414b2d
jg 0x414a88
cmp eax, esi
jb 0x414b2d
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x414b2d
jl 0x414aaa
cmp dword [ebp - 0x1008], eax
ja 0x414b2d
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x414acf
cmp ebx, esi
je 0x414b14
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x414b14
mov al, byte [ecx]
cmp al, 0xd
jne 0x414af5
lea eax, [edi - 1]
cmp ecx, eax
jae 0x414b01
cmp byte [ecx + 1], 0xa
jne 0x414b01
inc ecx
jmp 0x414b01
movzx eax, al
movsx eax, byte [eax + 0x429310]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x414adb
cmp edx, ebx
jne 0x414adb
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x414b32
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040703e
leave
ret
Function at 0x414db3
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x414dcd
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x414de4
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x414e3c
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.00418abc
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x414e3c
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x414e3c
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x414e3c
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x414e36
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x414e38
xor bl, bl
mov al, bl
jmp 0x414e3e
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x414e4d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x42a9d0]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x414e8f
cmp byte [ebx], 0xa
jne 0x414e8f
or byte [edi + eax + 0x28], 4
jmp 0x414e94
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x414f97
mov cl, byte [eax]
cmp cl, 0x1a
je 0x414f72
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x414ec3
mov eax, dword [ebp - 8]
jmp 0x414ee3
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x414eff
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x414edd
add eax, 2
mov cl, 0xa
jmp 0x414ee0
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x414ea5
jmp 0x414f97
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414f6d
cmp dword [ebp - 0x10], 0
je 0x414f6d
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x42a9d0]
test byte [eax + edi + 0x28], 0x48
je 0x414f4c
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x414f3c
mov byte [esi], 0xa
jmp 0x414f96
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x42a9d0]
mov byte [eax + edi + 0x2a], cl
jmp 0x414f96
cmp byte [ebp - 1], 0xa
jne 0x414f56
cmp esi, ebx
je 0x414f37
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004159df
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x414f97
mov byte [esi], 0xd
jmp 0x414f96
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x42a9d0]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x414f94
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x414f97
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x414fa0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x42a9d0]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x414fe4
push 0xa
pop esi
cmp word [ebx], si
jne 0x414fe4
or byte [eax + edi + 0x28], 4
jmp 0x414fe9
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x415154
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x41512c
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x415036
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x415060
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x41507f
push 0xa
pop ebx
cmp word [edx], bx
jne 0x41504d
push ebx
add eax, 4
pop edx
jmp 0x415055
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x414ffb
jmp 0x415154
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x415127
cmp dword [ebp - 0x14], 0
je 0x415127
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x42a9d0]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x415103
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4150cb
mov word [esi], ax
jmp 0x415151
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x42a9d0]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x42a9d0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x42a9d0]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x415151
cmp word [ebp - 4], ax
jne 0x41510d
cmp esi, ebx
je 0x4150c3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004159df
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x415154
push 0xd
pop eax
jmp 0x4150c3
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x42a9d0]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x41514e
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x415154
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x418423
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4184c0
push ebx
push esi
call fcn.004183ec
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004170a1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41846d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4184bf
push edi
push eax
call fcn.004123e0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41848d
call fcn.00411c40
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4184be
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004170a1
add esp, 0x20
test eax, eax
jne 0x4184ac
push edi
call fcn.00411c40
jmp 0x4184b4
push ebx
call fcn.00411c40
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41aab5
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00411ac8
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41ab24
cmp esi, dword [ebp - 4]
je 0x41ab1f
cmp dword [ebp + 0xc], 0
je 0x41ab1f
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41aafc
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041a60a
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41ab26
xor eax, eax
inc eax
jmp 0x41ab26
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41ab91
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x429040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00411ac8
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00411ac8
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x41ac08
cmp word [ecx], dx
je 0x41ac08
mov eax, dword [0x422e8c]
push edi
dec eax
push eax
push 0x422d78
call fcn.0041ab2a
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41ac7b
cmp word [eax], dx
je 0x41ac7b
mov eax, dword [edi]
test eax, eax
je 0x41ac2c
cmp word [eax], dx
je 0x41ac2c
lea eax, [ebp - 0x10]
push eax
call fcn.0041a510
jmp 0x41ac35
lea eax, [ebp - 0x10]
push eax
call fcn.0041a5ab
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41aca5
mov eax, dword [0x422d74]
push dword [ebp - 0x14]
dec eax
push eax
push 0x422a68
call fcn.0041ab2a
add esp, 0xc
test al, al
je 0x41aca5
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41ac70
cmp word [eax], di
je 0x41ac70
lea eax, [ebp - 0x10]
push eax
call fcn.0041a510
pop ecx
jmp 0x41aca7
lea eax, [ebp - 0x10]
push eax
call fcn.0041a5ab
jmp 0x41ac6d
mov eax, dword [edi]
test eax, eax
je 0x41ac92
cmp word [eax], dx
je 0x41ac92
lea eax, [ebp - 0x10]
push eax
call fcn.0041a4c5
pop ecx
jmp 0x41aca5
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x41ad70
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041a9af
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41ad70
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41ad70
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41ad70
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41acfd
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00412241
test ebx, ebx
je 0x41ad6b
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00412241
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41ad70
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41ad70
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041c34a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41ad72
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040703e
leave
ret
Function at 0x41e090
Capabilities:
Parse pe header

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