joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f70
Capabilities:
Authenticate hmac
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
rcr eax, 0x3f
rcr edx, 0x70
sbb esi, 0x85
neg eax
rcl eax, 0xc7
rcr esi, 0x1c
neg esi
not esi
imul esi
rol eax, 0x9d
imul edx
and eax, 0xff
dec esi
rol edx, 0x41
dec eax
bswap eax
sub ebx, 2
and ebx, 0x78
sub eax, 0x49
add edi, 0x63
add esi, 0xcc
rol edx, 0x64
and ebx, 0x79
mov esi, 0x5f
neg edi
imul edx
and eax, 0x1e
rcr eax, 0x3f
sub eax, 0x15
imul eax
or esi, 0x14
sub edi, 0x84
neg esi
bswap ebx
not edi
inc eax
sbb edi, 0xe3
sub eax, 0x7d
ror eax, 0xd1
imul edi
sbb edi, 0xbb
neg edx
or esi, 0xd5
imul esi
and edi, 0x70
not esi
mov eax, 0xb5
neg eax
bswap eax
rcr eax, 0x41
xor ecx, ecx
xor edi, edi
add ebx, 0xe9
rcr edi, 0xa7
bswap ebx
inc edi
imul esi
rcl edx, 0x1f
imul edx
or ebx, 0xeb
inc edx
mov edx, 0xae
neg edx
sub edx, 0xe1
neg edx
rcr edx, 0x77
inc edx
inc ebx
bswap edi
rcl edx, 0xc2
sbb eax, 0x10
inc esi
not esi
neg eax
inc eax
sbb edx, 0x64
and edi, 0x7d
imul esi
bswap ebx
neg edx
neg esi
ror edx, 0
dec ebx
or eax, 0x59
add esi, 0xb5
not ebx
not eax
imul esi
neg ebx
sub esi, 0x3b
bswap edi
imul eax
dec ebx
ror edi, 4
imul esi
sbb edi, 0xae
neg edi
sub eax, 0xe0
add eax, 0xf5
sub edi, 0x2f
dec ebx
dec edi
mov ecx, dword [ebp + 0xc]
add ebx, 0xc4
neg esi
imul edx
bswap edi
rcr ebx, 0x5c
ror edi, 0x60
mov eax, 0x7f
mov edi, 0x94
rcl eax, 0x94
rcr esi, 0x8b
dec eax
imul eax
inc eax
add ebx, 0xd3
ror ebx, 0x9c
rcr esi, 0x92
bswap edi
neg ebx
neg edi
imul edx
or edx, 0xa5
neg edi
sub edx, 0xc3
rol eax, 0xdd
sub ebx, 0xc9
sub esi, 0xe7
not eax
add ebx, 0x33
mov ebx, 0xe0
add edi, 0x79
rol edx, 0x17
sub edx, 0x4b
inc edi
rcl esi, 0xdf
dec ebx
bswap eax
neg edi
rcr edi, 0x3e
rol edi, 0x9a
rol edi, 0x87
sbb edi, 0x90
mov eax, 0xa2
sbb eax, 0x94
rcr edi, 0xc3
neg edi
imul ebx
and edx, 0xe9
ror ebx, 0xeb
dec edi
sub edi, 0x5f
mov edi, dword [ebp + 8]
xor eax, eax
xor esi, esi
mov ebx, esi
xor eax, ebx
mov ebx, eax
xor eax, ebx
mov eax, ebx
mov esi, ebx
xor ebx, eax
xor ebx, esi
mov esi, eax
mov eax, esi
not byte [edi]
xor esi, eax
mov eax, esi
xor eax, eax
mov ebx, esi
xor ebx, ebx
mov ebx, ebx
mov ebx, ebx
xor eax, ebx
mov ebx, esi
sub byte [edi], 0x36
mov ebx, esi
xor esi, ebx
xor ebx, eax
mov eax, ebx
mov esi, ebx
xor eax, ebx
xor eax, esi
mov eax, esi
mov esi, eax
add byte [edi], 0x87
xor ebx, eax
mov esi, eax
xor eax, eax
xor esi, esi
mov eax, eax
mov eax, ebx
mov ebx, ebx
xor eax, eax
mov ebx, eax
imul byte [edi]
inc edi
loop 0x403145
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40edb7
Capabilities:
Parse pe header

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

Function at 0x4250c0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00424f31

Function at 0x42c8f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42c91d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42c91d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403b6e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [0x424750]
push edi
push 2
call fcn.00406794
xor ebx, ebx
cmp eax, ebx
je 0x403b9a
call eax
movzx eax, ax
push eax
push 0x42b000
call fcn.004062e6
jmp 0x403bee
mov edi, 0x420d50
push ebx
push edi
push ebx
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov byte [0x42b000], 0x30
mov byte [0x42b001], 0x78
mov byte [0x42b002], bl
call fcn.0040626f
cmp byte [0x420d50], bl
jne 0x403be3
push ebx
push edi
push 0x40836a
push str..DEFAULTControl_PanelInternational
push 0x80000003
call fcn.0040626f
push edi
push 0x42b000
call sub.KERNEL32.dll_lstrcatA
call 0x403e33
mov eax, dword [0x424758]
mov ebp, 0x42a400
and eax, 0x20
push ebp
mov dword [0x4247c0], eax
mov dword [0x4247dc], 0x10000
call fcn.00405e08
test eax, eax
jne 0x403c9e
mov ecx, dword [esi + 0x48]
cmp ecx, ebx
je 0x403c9e
mov edx, dword [esi + 0x4c]
mov eax, dword [0x424778]
mov edi, 0x4236e0
push ebx
add edx, eax
push edi
add ecx, eax
push edx
push ecx
push dword [esi + 0x44]
call fcn.0040626f
mov al, byte [0x4236e0]
cmp al, bl
je 0x403c9e
cmp al, 0x22
jne 0x403c5d
mov edi, 0x4236e1
push 0x22
push edi
call fcn.00405d45
mov byte [eax], bl
push edi
call sub.KERNEL32.dll_lstrlenA
lea eax, [eax + edi - 4]
cmp eax, edi
jbe 0x403c91
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403c91
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403c8b
test al, 0x10
jne 0x403c91
push edi
call fcn.00405d61
push edi
call fcn.00405d1a
push eax
push ebp
call fcn.00406388
push ebp
call fcn.00405e08
test eax, eax
jne 0x403cb4
push dword [esi + 0x118]
push ebp
call fcn.0040641b
push 0x8040
push ebx
push ebx
push 1
push 0x67
push dword [0x424740]
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [0x423f28], eax
cmp dword [esi + 0x50], 0xffffffff
mov edi, 0x423ee0
je 0x403d5a
mov ecx, dword [0x424740]
mov esi, 0x40a210
push edi
mov dword [0x423ee4], 0x401000
mov dword [0x423ef0], ecx
mov dword [0x423ef4], eax
mov dword [0x423f04], esi
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x403e29
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push ebx
push dword [0x424740]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
push ebx
push ebx
push eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push 0x80000000
push ebx
push esi
push 0x80
invalid

Function at 0x406161
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x406184
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405ff1
pop ecx
pop ecx
inc dword [0x4247d0]
ret 8
Function at 0x40626f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x400
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040620e
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4062de
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x3ff], 0
test edi, edi
pop edi
jne 0x4062de
cmp dword [ebp + 0xc], 1
je 0x4062e1
cmp dword [ebp + 0xc], 2
je 0x4062e1
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x406726
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x40674a
xor eax, eax
test eax, eax
je 0x40675c
cmp byte [ebp + eax - 0x121], 0x5c
je 0x40675c
xor ecx, ecx
jmp 0x40675f
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4
Function at 0x402090
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov esi, esp
mov dword [esi + 8], ebp
lea eax, [ebp + 8]
mov edx, esp
mov dword [esi + 0x64], edx
mov dword [esi + 0x70], 0xffffffff
lea edx, [esi + 0x68]
mov dword [esi + 0x6c], 0x405cd0
mov edi, dword fs:[0]
mov dword [esi + 0x68], edi
mov dword fs:[0], edx
mov edx, eax
add edx, 8
mov dword [esi + 0xc], edx
add eax, 0x20
mov dword [esi + 0x10], eax
mov dword [esi + 0x60], ecx
mov dword [esi + 0x5c], 0x40e8bea0
mov dword [esi + 0x58], 0
mov byte [esi + 0x57], 0
mov dword [esi + 0x4c], 0x40e00160
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0x107c
mov dword [esi + 0x3c], 0x40f47240
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0x40d37500
mov dword [esi + 0x30], 0
mov dword [esi + 0x70], 1
mov eax, esp
mov dword [eax], str.kiskcurkkgxmfmanlrkqfqqrnesraogndtxowjqopaearbvffpmybtvxqkofvkyaxpxenwwppnruidbpmtpeqszfsnygfd
lea ecx, [esi + 0x18]
call fcn.00405d30
sub esp, 4
jmp 0x40213e
mov dword [esi + 0x14], 0x60
cmp dword [esi + 0x14], 0
jle 0x40215d
mov eax, dword [esi + 0x14]
add eax, 0xffffffff
mov dword [esi + 0x14], eax
jmp 0x402145
lea ecx, [esi + 0x18]
call fcn.00405df0
mov ecx, dword [esi + 0xc]
call fcn.00405df0
mov ecx, dword [esi + 0x10]
call fcn.00405df0
mov eax, dword [esi + 0x68]
mov dword fs:[0], eax
fld dword [0x423218]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x50
Function at 0x402ce0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
rcl edi, 0x53
rol edi, 0xe4
and edi, 0x1b
rcl esi, 0x92
not ebx
imul eax
sbb eax, 0xd4
add ebx, 0xd6
rcr edi, 0x21
bswap edi
sub eax, 0x72
bswap edx
rcr edi, 0xc7
mov esi, 0x29
ror edi, 0x72
and eax, 0xb
neg eax
add esi, 0xb9
neg eax
rcr esi, 0xc5
sub edx, 0x97
sub eax, 0x2f
bswap edi
neg edx
or ebx, 0x12
mov eax, 0x68
neg edi
add ebx, 1
sub eax, 3
ror esi, 0xe8
mov edi, 0x67
inc edi
dec ebx
rcl edi, 0x2e
imul edx
imul edi
bswap edx
bswap edx
sub eax, 0x4d
dec esi
inc esi
or edx, 0xef
dec esi
rol ebx, 0x36
imul ebx
add edi, 0x49
rcl esi, 0xf4
not esi
bswap eax
not ebx
xor ecx, ecx
xor edi, edi
add edi, 0xc8
neg eax
neg eax
sbb ebx, 0x48
sbb edx, 0x34
rol eax, 0x9e
neg esi
inc esi
sbb eax, 0x8c
inc ebx
ror edi, 0xb8
sbb edx, 0xa8
bswap edx
rcr esi, 0x21
sbb eax, 0x73
sbb eax, 0x1e
neg edx
bswap edi
imul esi
not eax
inc eax
inc edx
neg ebx
bswap edx
dec ebx
and edi, 0x85
rcr edx, 3
rol edi, 0x5e
rol edi, 0xf7
and eax, 0x7f
imul eax
not eax
sbb eax, 0x9e
or edx, 0x59
not edx
neg ebx
mov edx, 0x2e
not eax
neg esi
add edi, 0x10
mov edi, 0xd8
neg esi
dec ebx
ror esi, 0xe0
dec edx
not ebx
not eax
sub ebx, 0xd5
inc edx
not esi
mov ecx, dword [ebp + 0xc]
not eax
sbb esi, 0x15
rol esi, 0xcd
neg esi
not ebx
mov edi, 0xa0
bswap edx
or esi, 0x71
bswap eax
rcl ebx, 0x73
mov esi, 0x9f
imul edx
mov ebx, 0xa9
inc edi
not eax
add esi, 0xbf
and edi, 0x3c
neg eax
bswap esi
rcr ebx, 0x8a
not eax
rol ebx, 7
rcl edi, 0x96
imul edi
add edx, 0xc7
and ebx, 0xdd
rcr edx, 0xb8
inc edx
imul edi
neg ebx
ror eax, 0xf0
neg eax
add edi, 0x7e
or ebx, 0xf3
inc ebx
sub esi, 0x6b
add edx, 0x6a
or edx, 0x1e
rol esi, 0xe7
dec edi
dec ebx
sub edi, 0x3e
rcr edi, 0xd4
or eax, 0x79
neg eax
rcr eax, 0x15
imul ebx
not edi
neg ebx
rcr esi, 0x6d
mov edi, dword [ebp + 8]
xor esi, esi
mov esi, eax
xor ebx, ebx
xor eax, esi
mov esi, ebx
mov ebx, ebx
mov esi, ebx
xor ebx, eax
mov ebx, ebx
xor eax, eax
mov esi, ebx
mov ebx, eax
not byte [edi]
xor esi, eax
mov esi, ebx
mov ebx, ebx
xor esi, esi
mov ebx, esi
mov eax, ebx
xor eax, eax
xor esi, esi
xor esi, eax
add byte [edi], 0x26
xor esi, eax
xor ebx, esi
xor eax, eax
mov esi, eax
mov esi, esi
mov eax, ebx
xor ebx, eax
mov ebx, ebx
xor esi, eax
sub byte [edi], 0x87
mov eax, ebx
xor esi, eax
xor esi, eax
mov eax, ebx
xor eax, ebx
mov esi, ebx
xor esi, eax
mov ebx, esi
mov ebx, esi
imul byte [edi]
inc edi
loop 0x402e9d
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40988e
Capabilities:
Parse pe header

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

Function at 0x40b344
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 0x40b365
jl 0x40b35c
test edi, edi
jne 0x40b365
xor eax, eax
xor edx, edx
jmp 0x40b426
cmp dword [ebx + 0x38], 0
je 0x40b37a
push eax
push edi
push dword [ebp + 8]
call fcn.0040b42c
jmp 0x40b426
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40b3c1
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40b3c1
cmp eax, edi
jb 0x40b39b
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040c290
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 0x40b3c7
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40b41b
mov ecx, ebx
call fcn.0040aa30
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40b406
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00413482
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 0x40b41b
jmp 0x40b3d9
test edx, edx
je 0x40b41b
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00413482
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 0x4170ad
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 0x41714a
push ebx
push esi
call fcn.00417076
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.0041700a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4170f7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x417149
push edi
push eax
call fcn.00415d7b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x417117
call fcn.00415dc9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x417148
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041700a
add esp, 0x20
test eax, eax
jne 0x417136
push edi
call fcn.00415dc9
jmp 0x41713e
push ebx
call fcn.00415dc9
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 0x41797e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x476ee0
push 0x476ed8
push str.FlsAlloc
push 0x1f
call fcn.004177e9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4179b2
push dword [ebp + 8]
mov ecx, esi
call dword [0x423160]
call esi
jmp 0x4179b8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4179fc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x476ef0
push 0x476ee8
push str.FlsGetValue
push 0x21
call fcn.004177e9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417a33
push dword [ebp + 8]
mov ecx, esi
call dword [0x423160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x417a3b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x476ef8
push 0x476ef0
push str.FlsSetValue
push 0x22
call fcn.004177e9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417a75
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x423160]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x41a847
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00415a90
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 0x41a8b6
cmp esi, dword [ebp - 4]
je 0x41a8b1
cmp dword [ebp + 0xc], 0
je 0x41a8b1
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41a88e
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041a399
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41a8b8
xor eax, eax
inc eax
jmp 0x41a8b8
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41a91d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x47e1c0]
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.00415a90
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.00415a90
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 0x41a994
cmp word [ecx], dx
je 0x41a994
mov eax, dword [0x47731c]
push edi
dec eax
push eax
push 0x477208
call fcn.0041a8bc
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41aa07
cmp word [eax], dx
je 0x41aa07
mov eax, dword [edi]
test eax, eax
je 0x41a9b8
cmp word [eax], dx
je 0x41a9b8
lea eax, [ebp - 0x10]
push eax
call fcn.0041a29f
jmp 0x41a9c1
lea eax, [ebp - 0x10]
push eax
call fcn.0041a33a
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41aa31
mov eax, dword [0x477204]
push dword [ebp - 0x14]
dec eax
push eax
push 0x476ef8
call fcn.0041a8bc
add esp, 0xc
test al, al
je 0x41aa31
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41a9fc
cmp word [eax], di
je 0x41a9fc
lea eax, [ebp - 0x10]
push eax
call fcn.0041a29f
pop ecx
jmp 0x41aa33
lea eax, [ebp - 0x10]
push eax
call fcn.0041a33a
jmp 0x41a9f9
mov eax, dword [edi]
test eax, eax
je 0x41aa1e
cmp word [eax], dx
je 0x41aa1e
lea eax, [ebp - 0x10]
push eax
call fcn.0041a254
pop ecx
jmp 0x41aa31
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 0x41aafc
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041a741
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41aafc
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41aafc
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41aafc
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41aa89
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00417b7b
test ebx, ebx
je 0x41aaf7
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00417b7b
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41aafc
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 0x41aafc
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041fa6f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41aafe
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409aef
leave
ret
Function at 0x41c3f8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408f50
mov eax, dword [0x47e1c0]
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.0041b03e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41c43a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41c596
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421e20
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 + 0x47f9e0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041d3f5
mov ecx, dword [esi*4 + 0x47f9e0]
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 0x41c58f
cmp eax, dword [ecx + edi + 0x24]
jne 0x41c58f
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 0x41c58f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041d3f5
add esp, 0x14
test edx, edx
jl 0x41c58f
jg 0x41c505
test eax, eax
jb 0x41c58f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41c58f
jl 0x41c51f
cmp dword [ebp - 0x1008], eax
ja 0x41c58f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41c53d
test ebx, ebx
je 0x41c576
cmp ecx, edi
jae 0x41c576
mov al, byte [ecx]
cmp al, 0xd
jne 0x41c557
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41c563
cmp byte [ecx + 1], 0xa
jne 0x41c563
inc ecx
jmp 0x41c563
movzx eax, al
movsx eax, byte [eax + 0x47e990]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41c53d
cmp edx, ebx
jne 0x41c53d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41c594
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409aef
leave
ret