joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40216b
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
call main
jmp 0x402175
push 0x14
push 0x411788
call fcn.00405300
call main
movzx esi, ax
push 2
call main
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x4021a3
xor ebx, ebx
jmp 0x4021d6
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40219f
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40219f
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x4021d6
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004048ef
test eax, eax
jne 0x4021ea
push 0x1c
call main
pop ecx
call fcn.00403b58
test eax, eax
jne 0x4021fb
push 0x10
call main
pop ecx
call fcn.004051cc
and dword [ebp - 4], 0
call fcn.00404904
test eax, eax
jns 0x402215
push 0x1b
call main
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4162e8], eax
call main
mov dword [0x414430], eax
call main
test eax, eax
jns 0x40223b
push 8
call main
pop ecx
call fcn.00404de7
test eax, eax
jns 0x40224c
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x40225f
push eax
call main
pop ecx
call fcn.00405299
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x402281
push esi
call main
call fcn.00404663
jmp 0x4022b6
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00405345
ret

Function at 0x407590
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x40759f
pop dword [ebp - 0x24]
mov eax, 0xab5e1247
sub eax, 0xab1d9ca8
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x26d1d96f
sub dword [ebp - 0x34], 0xd87f9424
mov dword [ebp - 0x30], 0x41cd210c
sub dword [ebp - 0x30], 0xf99d4c7
mov dword [ebp - 0x2c], 0x4f6dcb40
sub dword [ebp - 0x2c], 0x3218712
mov dword [ebp - 0x28], 0xcbd77f82
add dword [ebp - 0x28], 0x3428807e
lea eax, [ebp - 0x34]
push eax
mov eax, 0x535768d9
sub eax, 0x531698a5
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xe95c9d92
sub dword [ebp - 0x34], 0x74ea343c
mov dword [ebp - 0x30], 0x6ecc2432
add dword [ebp - 0x30], 0xd2a03d43
mov dword [ebp - 0x2c], 0x7e486802
sub dword [ebp - 0x2c], 0x1ad8fb96
mov dword [ebp - 0x28], 0xa128e330
sub dword [ebp - 0x28], 0xa128e330
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x5c44e55f
add eax, 0xa3fbead1
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3a5c5
push 0
call eax
mov ecx, 0x55d7004d
add ecx, 0xaa294cf6
mov esi, eax
mov edi, 0xf8df0c6d
add edi, 0x7630393
add edi, dword [ebp - 0x24]
mov ebx, 0x1e1d2c4f
add dword [ebp - 0x1c], ecx
mov edx, dword [edi]
add edx, ebx
add dword [ebp - 8], 0x75efdedf
mov dword [esi], edx
xor dword [ebp - 0x10], edi
add esi, 0xa56ffaa9
sub esi, 0xa56ffaa5
add edi, 0x74e5ebaf
sub edi, 0x74e5ebab
loop 0x4076bb
add eax, 0x127df
mov ebx, eax
add eax, 0xdb5e2498
sub eax, 0xdb5e2493
mov ecx, 0xca76960c
add ecx, 0x35c969f4
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x100017c0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000801c]
jne 0x100017ca
repz ret
jmp fcn.10001834
Function at 0x100036ab
Capabilities:
Enumerate process modules

Disassembly:
push 0x134
mov eax, 0x10003e85
call fcn.10003acd
mov esi, 0x1000
push esi
xor ebx, ebx
call fcn.100017ae
mov dword [ebp - 0x120], eax
pop ecx
lea eax, [ebp - 0x140]
push eax
call fcn.100029e7
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x124]
push ecx
push esi
push dword [ebp - 0x120]
mov dword [ebp - 0x128], eax
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x100037fe
test dword [ebp - 0x124], 0xfffffffc
mov dword [ebp - 0x11c], ebx
jbe 0x100037fe
mov ecx, dword [ebp - 0x11c]
push 0x104
lea eax, [ebp - 0x118]
push eax
mov eax, dword [ebp - 0x120]
push dword [eax + ecx*4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x100037e3
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
xor edi, edi
lea ecx, [ebp - 0x140]
mov esi, eax
call fcn.10001b49
mov edx, eax
mov ecx, esi
call fcn.10002e1b
test eax, eax
jne 0x1000376f
mov bl, 1
xor edi, edi
inc edi
lea ecx, [ebp - 0x140]
call fcn.10001b49
mov edx, eax
mov ecx, esi
call fcn.10002e1b
test eax, eax
jne 0x1000378c
mov bl, 1
push 2
pop edi
lea ecx, [ebp - 0x140]
call fcn.10001b49
mov edx, eax
mov ecx, esi
call fcn.10002e1b
test eax, eax
jne 0x100037a9
mov bl, 1
push 3
pop edi
lea ecx, [ebp - 0x140]
call fcn.10001b49
mov edx, eax
mov ecx, esi
call fcn.10002e1b
test eax, eax
jne 0x100037c6
mov bl, 1
push 4
pop edi
lea ecx, [ebp - 0x140]
call fcn.10001b49
mov edx, eax
mov ecx, esi
call fcn.10002e1b
test eax, eax
jne 0x100037e3
mov bl, 1
mov eax, dword [ebp - 0x124]
inc dword [ebp - 0x11c]
shr eax, 2
cmp dword [ebp - 0x11c], eax
jb 0x1000371b
push dword [ebp - 0x128]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x120]
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
or dword [ebp - 4], 0xffffffff
pop ecx
lea eax, [ebp - 0x140]
push eax
call fcn.100010de
mov al, bl
call fcn.10003b50
ret
Function at 0x1000f188
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x1000f197
pop dword [ebp - 0x3c]
mov eax, 0x1000f197
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x3b005
push 0
mov eax, 0x456c451d
sub eax, 0x356b04b9
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0xcca99e2f
add ecx, 0x3356b180
mov edi, eax
mov ebx, 0x10018600
add ebx, dword [ebp - 0x3c]
mov edx, 0x1d3a4dcd
mov esi, dword [ebx]
xor dword [ebp - 0x34], 0xbeab1264
xor esi, edx
sub dword [ebp - 0x28], esi
mov dword [edi], esi
sub dword [ebp - 0x28], eax
add edi, 0x61b7c7d0
add edi, 0x9e483834
add ebx, 0x6c6a6d34
add ebx, 0x939592d0
loop 0x1000f1e5
add eax, 0x1318f
xor ebx, ebx
add ebx, eax
add eax, 0x8382184
sub eax, 0x838217f
mov ecx, 0x7f79d741
add ecx, 0x908628bf
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x10054126
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10054165
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10054165
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10054165
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10054165
cmp dword [ecx + 0x74], 0xe
jbe 0x10054165
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x100554a0
Capabilities:
Parse pe header

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

Function at 0x100557f0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005f620
push 0x1005f618
push str.FlsAlloc
push 0x1f
call fcn.10055ad3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10055824
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x1005582a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1005586e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005f630
push 0x1005f628
push str.FlsGetValue
push 0x21
call fcn.10055ad3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100558a5
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100558ad
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005f638
push 0x1005f630
push str.FlsSetValue
push 0x22
call fcn.10055ad3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100558e7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100587ae
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 0x1005884b
push ebx
push esi
call fcn.1005884e
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.100586b2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100587f8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005884a
push edi
push eax
call fcn.10058aac
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10058818
call fcn.10056da0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10058849
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100586b2
add esp, 0x20
test eax, eax
jne 0x10058837
push edi
call fcn.10056da0
jmp 0x1005883f
push ebx
call fcn.10056da0
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 0x406959
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00406935
pop esi
leave
ret 8

Function at 0x407e1b
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 0x407e3c
jl 0x407e33
test edi, edi
jne 0x407e3c
xor eax, eax
xor edx, edx
jmp 0x407efd
cmp dword [ebx + 0x38], 0
je 0x407e51
push eax
push edi
push dword [ebp + 8]
call fcn.00407f03
jmp 0x407efd
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x407e98
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x407e98
cmp eax, edi
jb 0x407e72
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040a240
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 0x407e9e
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x407ef2
mov ecx, ebx
call fcn.0040766c
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x407edd
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00410468
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 0x407ef2
jmp 0x407eb0
test edx, edx
je 0x407ef2
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00410468
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 0x409a18
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x409a57
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x409a57
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409a57
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x409a57
cmp dword [ecx + 0x74], 0xe
jbe 0x409a57
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x415663
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429960
push 0x429958
push str.FlsAlloc
push 0x1f
call fcn.004154ce
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415697
push dword [ebp + 8]
mov ecx, esi
call dword [0x426150]
call esi
jmp 0x41569d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x4156e1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429970
push 0x429968
push str.FlsGetValue
push 0x21
call fcn.004154ce
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415718
push dword [ebp + 8]
mov ecx, esi
call dword [0x426150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x415720
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429978
push 0x429970
push str.FlsSetValue
push 0x22
call fcn.004154ce
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41575a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x426150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x418d4e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00409b80
mov eax, dword [0x431014]
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.00416b96
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x418d90
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x418eec
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00424190
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x432a30]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00419d4b
mov ecx, dword [esi*4 + 0x432a30]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x418ee5
cmp eax, dword [ecx + edi + 0x24]
jne 0x418ee5
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418ee5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00419d4b
add esp, 0x14
test edx, edx
jl 0x418ee5
jg 0x418e5b
test eax, eax
jb 0x418ee5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418ee5
jl 0x418e75
cmp dword [ebp - 0x1008], eax
ja 0x418ee5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x418e93
test ebx, ebx
je 0x418ecc
cmp ecx, edi
jae 0x418ecc
mov al, byte [ecx]
cmp al, 0xd
jne 0x418ead
lea eax, [edi - 1]
cmp ecx, eax
jae 0x418eb9
cmp byte [ecx + 1], 0xa
jne 0x418eb9
inc ecx
jmp 0x418eb9
movzx eax, al
movsx eax, byte [eax + 0x431290]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x418e93
cmp edx, ebx
jne 0x418e93
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x418eea
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00408d47
leave
ret
Function at 0x4191e3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x432a30]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419223
cmp byte [ebx], 0xa
jne 0x419223
or byte [edi + eax + 0x28], 4
jmp 0x419228
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x419327
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41930a
inc eax
cmp dl, 0xd
je 0x419254
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41927a
cmp eax, ecx
jae 0x419288
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41923c
jmp 0x419327
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 0x419305
cmp dword [ebp - 0x10], 0
je 0x419305
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x432a30]
test byte [eax + edi + 0x28], 0x48
je 0x4192df
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4192ca
mov byte [esi], dl
jmp 0x4192db
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x432a30]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x419327
cmp byte [ebp - 1], 0xa
jne 0x4192ee
cmp esi, ebx
jne 0x4192ee
mov byte [esi], 0xa
jmp 0x419326
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00419d69
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x419327
mov byte [esi], 0xd
jmp 0x419326
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x432a30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419324
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419327
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x419330
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x432a30]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419376
cmp word [ebx], dx
jne 0x419376
or byte [eax + edi + 0x28], 4
jmp 0x41937b
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4194de
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4194be
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4193bc
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4193f2
cmp eax, edx
jae 0x419400
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x419397
jmp 0x4194de
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4194b9
cmp dword [ebp - 0x18], 0
je 0x4194b9
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x432a30]
test byte [eax + edi + 0x28], 0x48
je 0x41948f
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x419453
mov word [esi], cx
jmp 0x41948a
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x432a30]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x432a30]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x432a30]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4194de
pop eax
cmp word [ebp - 4], ax
jne 0x41949f
cmp esi, ebx
jne 0x41949f
mov word [esi], ax
jmp 0x4194db
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00419d69
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4194de
push 0xd
pop eax
jmp 0x41949a
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x432a30]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4194d8
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4194de
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c788
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 0x41c825
push ebx
push esi
call fcn.0041c751
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.0041b441
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41c7d2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41c824
push edi
push eax
call fcn.00415c96
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41c7f2
call fcn.004151ef
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41c823
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041b441
add esp, 0x20
test eax, eax
jne 0x41c811
push edi
call fcn.004151ef
jmp 0x41c819
push ebx
call fcn.004151ef
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 0x41ee52
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00417037
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 0x41eec1
cmp esi, dword [ebp - 4]
je 0x41eebc
cmp dword [ebp + 0xc], 0
je 0x41eebc
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41ee99
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041e9a4
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41eec3
xor eax, eax
inc eax
jmp 0x41eec3
xor eax, eax
pop edi
pop esi
leave
ret