joyce8/EMBER2024-capa huggingface dataset:
Function at 0x972058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x9721a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x97207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x97206a
add dl, dl
jne 0x972089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9720dc
xor eax, eax
add dl, dl
jne 0x972096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x97217d
add dl, dl
jne 0x9720a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9720b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9720bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9720c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9720d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x972075
mov eax, 1
add dl, dl
jne 0x9720ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9720f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9720e1
sub eax, ebx
mov ebx, 1
jne 0x972128
mov ecx, 1
add dl, dl
jne 0x97210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x972119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x972105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x972075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x97213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x97214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x972136
cmp eax, 0x7d00
jae 0x97216d
cmp eax, 0x500
jb 0x972168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x972075
cmp eax, 0x7f
ja 0x972170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x972075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x97219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x972075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4421f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
call fcn.00442100
add eax, 0x51615
mov dword [0x401744], eax
mov eax, dword [0x401744]
push eax
call fcn.00442510
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00442530
add esp, 4
mov dword [0x401750], eax
mov dword [0x401754], 0
mov dword [0x401758], 1
push 0x4cf
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x4cf
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
test eax, eax
je 0x44225f
call entry0
mov edx, dword [str.softwareclasses333erface00000610_0000_0010_8000_00aa006d2ea4proxystubclsid]
mov byte [edx + 0x11], 0x49
mov eax, dword [str.softwareclasses333erface00000610_0000_0010_8000_00aa006d2ea4proxystubclsid]
mov byte [eax + 0x12], 0x6e
mov ecx, dword [str.softwareclasses333erface00000610_0000_0010_8000_00aa006d2ea4proxystubclsid]
mov byte [ecx + 0x13], 0x74
mov edx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [0x40175c], edx
push 0x401754
mov eax, dword [str.softwareclasses333erface00000610_0000_0010_8000_00aa006d2ea4proxystubclsid]
push eax
mov ecx, dword [0x401008]
push ecx
call dword [0x40175c]
test eax, eax
je 0x4422ab
xor eax, eax
jmp 0x442508
push 0x401014
push 0x401760
push 0x401018
push 0
push 0
mov edx, dword [0x401754]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4422d6
xor eax, eax
jmp 0x442508
movzx eax, word [0x401760]
cmp eax, 0x7b
je 0x4422e9
xor eax, eax
jmp 0x442508
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0
mov dword [0x4019b8], 0
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x1c]
jae 0x44236f
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [section..data]
push ecx
jmp 0x45b810
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [0x401750]
push eax
call fcn.00442570
add esp, 8
mov dword [0x401748], ebp
push 0x5b000
call fcn.00442530
add esp, 4
mov dword [0x4019bc], eax
mov dword [0x401754], 0
mov ecx, dword [0x401754]
mov dword [ebp - 4], ecx
mov edx, dword [0x401754]
mov dword [0x4019b8], edx
call fcn.00442190
mov eax, dword [0x401744]
push eax
call fcn.00442510
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00442530
add esp, 4
mov dword [0x4019c0], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x1c]
jae 0x442453
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [section..data]
push edx
call fcn.00442a30
add esp, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [0x401744]
add ecx, dword [0x4019b8]
push ecx
mov edx, dword [0x4019c0]
add edx, dword [ebp - 4]
push edx
call fcn.00442a90
add esp, 0xc
mov eax, dword [0x401004]
add eax, dword [section..data]
add eax, dword [0x4019b8]
mov dword [0x4019b8], eax
mov ecx, dword [ebp - 4]
add ecx, dword [section..data]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp - 0x28]
mov dword [ebp - 0x24], edx
jmp 0x4423e5
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [0x4019c0]
push ecx
jmp section..htext
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403a74
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [0x44608c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, 0x101
push 0
push eax
mov ecx, esi
mov dword [ebp - 0x390], eax
call fcn.004046c1
cmp dword [esi + 0x14], 8
jb 0x403aaa
mov eax, dword [esi]
jmp 0x403aac
mov eax, esi
lea ecx, [ebp - 0x390]
push ecx
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x403adf
push 0
push dword [ebp - 0x390]
mov ecx, esi
call fcn.004046c1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004065bb
mov esp, ebp
pop ebp
ret 4
push 0x4243c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.004018f5
push 0x442bc0
lea eax, [ebp - 0x38c]
push eax
call fcn.004073d4
int3

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
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], 0x405c60
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.00405cc0
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.00405d80
mov ecx, dword [esi + 0xc]
call fcn.00405d80
mov ecx, dword [esi + 0x10]
call fcn.00405d80
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]
dec eax
neg eax
dec edi
ror edi, 0x77
or ebx, 0x87
rcr eax, 0x9f
rol edx, 0x5a
ror edi, 0x6f
neg edx
bswap ebx
dec ebx
rol esi, 0x43
and esi, 0xa1
rcr ebx, 0xb7
and esi, 0xe9
neg edx
sub eax, 0x75
sbb ebx, 0x43
imul edx
dec edi
imul edx
dec edi
add esi, 0x9b
sub ebx, 0x6b
not edi
neg edx
sub ebx, 0x48
imul edx
sbb esi, 0x7e
inc ebx
rcr edi, 0x87
add edi, 5
ror edi, 0x73
bswap edx
rcl edi, 0x6b
add ebx, 0x7c
ror edx, 0x4d
dec ebx
dec edx
or ebx, 0xda
and esi, 0x51
neg esi
bswap edi
neg esi
or esi, 0x46
ror edx, 0x92
sub esi, 0xdf
neg eax
sub edi, 0xe7
sbb edi, 0xbb
xor ecx, ecx
xor edi, edi
mov esi, 0x77
imul eax
bswap edx
or edx, 0xb9
mov ebx, 0x73
neg esi
ror esi, 0xbf
add esi, 0xbc
bswap esi
neg edx
sbb esi, 0x21
inc edi
neg edi
not edx
dec edi
inc eax
dec edx
rol ebx, 0xe6
sbb ebx, 0xa8
dec esi
neg ebx
dec ebx
inc edx
neg esi
sbb edx, 0x46
or esi, 0x2f
rcl edi, 0x9c
or ebx, 0xb9
dec edx
inc ebx
ror eax, 0x32
mov ebx, 0xec
sbb eax, 0x3a
imul esi
inc esi
dec edi
mov edi, 0xdf
rcr edi, 0xc0
not edx
add eax, 0x5b
and eax, 0x99
not edx
rcl edx, 0x7a
imul esi
ror edi, 8
inc ebx
sub eax, 0x4e
sbb edx, 0x7f
rol ebx, 0x5e
imul esi
mov ecx, dword [ebp + 0xc]
neg esi
sub edx, 0x75
rol edi, 0xf1
neg edx
and edi, 0x31
neg eax
dec edx
mov ebx, 0xa
sub esi, 0x84
rol edi, 0xf1
dec esi
sub ebx, 0xd4
not edi
dec ebx
ror esi, 5
ror esi, 0x7d
imul edx
bswap edi
sub edi, 0xaa
neg edx
neg edi
mov edx, 0x4f
neg edi
dec esi
add edi, 0x4b
not edx
bswap ebx
rcr edi, 0xe2
inc edx
inc esi
dec ebx
add ebx, 0xa4
mov ebx, 0x33
sbb edx, 0x10
dec ebx
or eax, 0x98
and edx, 1
neg edi
and edx, 5
ror edi, 0xcb
bswap edx
not edi
dec edx
not edx
not edx
rcl esi, 0x82
dec esi
inc esi
not eax
imul edi
mov edi, dword [ebp + 8]
xor esi, eax
mov esi, eax
mov esi, esi
xor ebx, ebx
xor esi, ebx
xor esi, eax
xor esi, eax
mov esi, eax
xor eax, ebx
mov ebx, eax
mov esi, ebx
mov eax, ebx
not byte [edi]
xor esi, eax
xor eax, ebx
xor eax, eax
mov ebx, ebx
mov esi, ebx
mov eax, esi
xor ebx, eax
mov esi, eax
mov eax, ebx
add byte [edi], 0x26
mov esi, eax
xor ebx, esi
mov esi, ebx
xor esi, esi
mov esi, esi
mov esi, esi
mov eax, eax
mov esi, ebx
mov esi, eax
sub byte [edi], 0x87
mov ebx, esi
xor esi, ebx
mov esi, eax
xor esi, ebx
mov esi, ebx
xor ebx, eax
xor eax, esi
mov esi, ebx
mov eax, ebx
imul byte [edi]
inc edi
loop 0x402e94
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40981d
Capabilities:
Parse pe header

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

Function at 0x40b2d4
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 0x40b2f5
jl 0x40b2ec
test edi, edi
jne 0x40b2f5
xor eax, eax
xor edx, edx
jmp 0x40b3b6
cmp dword [ebx + 0x38], 0
je 0x40b30a
push eax
push edi
push dword [ebp + 8]
call fcn.0040b3bc
jmp 0x40b3b6
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40b351
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40b351
cmp eax, edi
jb 0x40b32b
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040c220
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 0x40b357
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40b3ab
mov ecx, ebx
call fcn.0040a9c0
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40b396
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00413412
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 0x40b3ab
jmp 0x40b369
test edx, edx
je 0x40b3ab
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00413412
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 0x417040
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 0x4170dd
push ebx
push esi
call fcn.00417009
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.00416f9d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41708a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4170dc
push edi
push eax
call fcn.00415d0b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4170aa
call fcn.00415d59
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4170db
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00416f9d
add esp, 0x20
test eax, eax
jne 0x4170c9
push edi
call fcn.00415d59
jmp 0x4170d1
push ebx
call fcn.00415d59
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 0x417911
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4712e0
push 0x4712d8
push str.FlsAlloc
push 0x1f
call fcn.0041777c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417945
push dword [ebp + 8]
mov ecx, esi
call dword [0x423160]
call esi
jmp 0x41794b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41798f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4712f0
push 0x4712e8
push str.FlsGetValue
push 0x21
call fcn.0041777c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4179c6
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 0x4179ce
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4712f8
push 0x4712f0
push str.FlsSetValue
push 0x22
call fcn.0041777c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417a08
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 0x41a7da
Capabilities:
Get geographical location

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4781c0]
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.00415a20
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.00415a20
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 0x41a927
cmp word [ecx], dx
je 0x41a927
mov eax, dword [0x47171c]
push edi
dec eax
push eax
push 0x471608
call fcn.0041a84f
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41a99a
cmp word [eax], dx
je 0x41a99a
mov eax, dword [edi]
test eax, eax
je 0x41a94b
cmp word [eax], dx
je 0x41a94b
lea eax, [ebp - 0x10]
push eax
call fcn.0041a232
jmp 0x41a954
lea eax, [ebp - 0x10]
push eax
call fcn.0041a2cd
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41a9c4
mov eax, dword [0x471604]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4712f8
call fcn.0041a84f
add esp, 0xc
test al, al
je 0x41a9c4
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41a98f
cmp word [eax], di
je 0x41a98f
lea eax, [ebp - 0x10]
push eax
call fcn.0041a232
pop ecx
jmp 0x41a9c6
lea eax, [ebp - 0x10]
push eax
call fcn.0041a2cd
jmp 0x41a98c
mov eax, dword [edi]
test eax, eax
je 0x41a9b1
cmp word [eax], dx
je 0x41a9b1
lea eax, [ebp - 0x10]
push eax
call fcn.0041a1e7
pop ecx
jmp 0x41a9c4
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 0x41aa8f
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041a6d4
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41aa8f
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41aa8f
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41aa8f
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41aa1c
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00417b0e
test ebx, ebx
je 0x41aa8a
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00417b0e
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41aa8f
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 0x41aa8f
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041f9ff
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41aa91
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409a7f
leave
ret
Function at 0x41c38a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408ee0
mov eax, dword [0x4781c0]
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.0041afd1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41c3cc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41c528
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421da0
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 + 0x4799e0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041d387
mov ecx, dword [esi*4 + 0x4799e0]
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 0x41c521
cmp eax, dword [ecx + edi + 0x24]
jne 0x41c521
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 0x41c521
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041d387
add esp, 0x14
test edx, edx
jl 0x41c521
jg 0x41c497
test eax, eax
jb 0x41c521
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41c521
jl 0x41c4b1
cmp dword [ebp - 0x1008], eax
ja 0x41c521
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41c4cf
test ebx, ebx
je 0x41c508
cmp ecx, edi
jae 0x41c508
mov al, byte [ecx]
cmp al, 0xd
jne 0x41c4e9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41c4f5
cmp byte [ecx + 1], 0xa
jne 0x41c4f5
inc ecx
jmp 0x41c4f5
movzx eax, al
movsx eax, byte [eax + 0x478990]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41c4cf
cmp edx, ebx
jne 0x41c4cf
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41c526
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409a7f
leave
ret