joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5af0a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x5af0c0
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push str.LoadLibraryExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x672e4c
push esi
mov dword [ebp - 8], ebx
call fcn.005ed3ef
add esp, 8
test eax, eax
je 0x5af10c
test ebx, ebx
je 0x5af0fc
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x5af135
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5af135
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x5af1e0
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5af151
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x6a15e4]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5af1d6
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x5af1d6
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5af182
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5af1a0
sub ecx, edx
add ecx, ebx
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x5af1b0
mov eax, dword [ebp - 8]
test eax, eax
je 0x5af1cd
push 8
push 0
push ebx
call eax
jmp 0x5af1d4
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x6a15e8]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x5b25f0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x5b2623
push 0x2e
push edi
call fcn.00544930
add esp, 8
test eax, eax
je 0x5b2621
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x5b4930
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x6a15e4]
mov edi, eax
add esp, 4
test edi, edi
jne 0x5b495d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x5b49a4
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x5b49aa
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x5b4a0b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x5b49d0
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x5b4a37
mov eax, dword [esi + 4]
push 1
push str.6compile____________________________________________________________________________________________________________________________________________.c
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x6735ef
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x5b4a10
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d7a
nop
nop
sub eax, 0x403d20
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp fcn.00401219

Function at 0x401260
Capabilities:
Hide graphical window

Disassembly:
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x403100], eax
push esp
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov esi, dword [esp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4030f4], eax
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x40128d
push esp
mov dword [ebp - 0x24], 0x401330
mov eax, dword [0x4030f4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], str.wookernof
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4030f4]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.tofkol
push str.wookernof
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403104], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x40132c
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x40130d
pop ebp
ret 0x10
Function at 0x401920
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xe0
mov esi, esp
mov dword [esi + 0xc], ebp
lea eax, [ebp + 8]
mov dword [esi + 0x14], eax
mov edx, esp
mov dword [esi + 0xcc], edx
mov dword [esi + 0xd8], 0xffffffff
lea edx, [esi + 0xd0]
mov dword [esi + 0xd4], 0x405660
mov edi, dword fs:[0]
mov dword [esi + 0xd0], edi
mov dword fs:[0], edx
mov edx, dword [eax]
mov dword [esi + 0x18], edx
mov edx, eax
add edx, 8
mov dword [esi + 0x1c], edx
mov edx, eax
add edx, 0x30
mov dword [esi + 0x20], edx
add eax, 0x54
mov dword [esi + 0x24], eax
mov dword [esi + 0xc8], ecx
mov byte [esi + 0xc7], 0
mov dword [esi + 0xbc], 0x40c04980
mov dword [esi + 0xb8], 0
mov dword [esi + 0xb4], 0x1abc
mov dword [esi + 0xac], 0x40e7cda0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xd8], 2
mov eax, esp
mov dword [eax], str.tccetrplunbrnucdoletkahjtwobekapgdnyothnayrbawsxo
lea ecx, [esi + 0x90]
call fcn.00405730
sub esp, 4
jmp 0x4019ef
mov dword [esi + 0xd8], 3
mov eax, esp
mov dword [eax], str.tccetrplunbrnucdoletkahjtwobekapgdnyothnayrbawsxo
lea ecx, [esi + 0x78]
call fcn.00405730
sub esp, 4
jmp 0x401a11
mov dword [esi + 0xd8], 5
mov eax, esp
mov dword [eax], str.tccetrplunbrnucdoletkahjtwobekapgdnyothnayrbawsxo
lea ecx, [esi + 0x60]
call fcn.00405730
sub esp, 4
jmp 0x401a33
lea ecx, [esi + 0x60]
lea eax, [esi + 0x78]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00405820
mov byte [esi + 0x13], al
lea ecx, [esi + 0x60]
call fcn.00405700
lea ecx, [esi + 0x78]
call fcn.00405700
mov al, byte [esi + 0x13]
test al, 1
jne 0x401a68
jmp 0x401a91
mov dword [esi + 0x5c], 0x16
cmp dword [esi + 0x5c], 0
jle 0x401a87
mov eax, dword [esi + 0x5c]
add eax, 0xffffffff
mov dword [esi + 0x5c], eax
jmp 0x401a6f
mov dword [esi + 0xd8], 3
mov dword [esi + 0xd8], 3
mov eax, esp
mov dword [eax], str.tccetrplunbrnucdoletkahjtwobekapgdnyothnayrbawsxo
lea ecx, [esi + 0x44]
call fcn.00405730
sub esp, 4
jmp 0x401ab3
mov dword [esi + 0xd8], 4
mov eax, esp
mov dword [eax], str.tccetrplunbrnucdoletkahjtwobekapgdnyothnayrbawsxo
lea ecx, [esi + 0x2c]
call fcn.00405730
sub esp, 4
jmp 0x401ad5
lea ecx, [esi + 0x2c]
lea eax, [esi + 0x44]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004057f0
mov byte [esi + 0x12], al
lea ecx, [esi + 0x2c]
call fcn.00405700
lea ecx, [esi + 0x44]
call fcn.00405700
mov al, byte [esi + 0x12]
test al, 1
jne 0x401b0a
jmp 0x401b33
mov dword [esi + 0x28], 0x60
cmp dword [esi + 0x28], 0
jle 0x401b29
mov eax, dword [esi + 0x28]
add eax, 0xffffffff
mov dword [esi + 0x28], eax
jmp 0x401b11
mov dword [esi + 0xd8], 3
mov ecx, dword [esi + 0x18]
mov dword [esi + 0xd8], 3
mov eax, esp
mov dword [eax], str.wddnoxy
call fcn.00405730
sub esp, 4
jmp 0x401b55
lea ecx, [esi + 0x90]
call fcn.00405700
mov ecx, dword [esi + 0x1c]
call fcn.00405700
mov ecx, dword [esi + 0x20]
call fcn.00405700
mov ecx, dword [esi + 0x24]
call fcn.00405700
mov eax, dword [esi + 0x14]
mov eax, dword [eax]
mov ecx, dword [esi + 0xd0]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x6c
Function at 0x401d90
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x70
mov esi, esp
mov dword [esi + 8], ebp
lea eax, [ebp + 8]
mov edx, esp
mov dword [esi + 0x5c], edx
mov dword [esi + 0x68], 0xffffffff
lea edx, [esi + 0x60]
mov dword [esi + 0x64], 0x4056a0
mov edi, dword fs:[0]
mov dword [esi + 0x60], edi
mov dword fs:[0], edx
mov edx, eax
add edx, 4
mov dword [esi + 0xc], edx
add eax, 0x2c
mov dword [esi + 0x10], eax
mov dword [esi + 0x58], ecx
mov dword [esi + 0x54], 0x405f4000
mov dword [esi + 0x50], 0
mov dword [esi + 0x4c], 0x40f29280
mov dword [esi + 0x48], 0
mov dword [esi + 0x68], 1
mov eax, esp
mov dword [eax], str.fhenhsdmciysigyjujllusbfvftxekcoqgkgevhtketxjbjiodbektuxdmejgxwqbq
lea ecx, [esi + 0x30]
call fcn.00405730
sub esp, 4
jmp 0x401e17
mov dword [esi + 0x2c], 0x40ba7400
mov dword [esi + 0x28], 0
mov byte [esi + 0x27], 1
mov byte [esi + 0x26], 0
mov dword [esi + 0x1c], 0x40d1ad80
mov dword [esi + 0x18], 0
mov byte [esi + 0x17], 0
lea ecx, [esi + 0x30]
call fcn.00405700
mov ecx, dword [esi + 0xc]
call fcn.00405700
mov ecx, dword [esi + 0x10]
call fcn.00405700
mov eax, dword [esi + 0x60]
mov dword fs:[0], eax
mov eax, 0x64c3
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x50
Function at 0x4026e0
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]
sbb eax, 0x6a
ror edx, 0x6b
rcl eax, 0xc9
dec ebx
bswap edx
ror ebx, 0xcc
not edi
neg eax
rol eax, 0xd3
dec ebx
add ebx, 0xaa
sub edx, 0x3e
rcr eax, 0xfd
bswap edx
or eax, 0xf
add esi, 0x4e
mov edi, 0xaf
not edx
and esi, 0xdf
and eax, 0x8f
imul ebx
sub edi, 0x5c
or esi, 0x27
not esi
bswap eax
imul edi
sub edx, 0x21
rol eax, 0x84
rcr edi, 0x35
rcr esi, 0xc6
sbb edi, 0xeb
mov edi, 0xb4
mov eax, 0xf4
neg esi
or edi, 0xb6
rcr ebx, 0x48
bswap edx
rcl edi, 0x5b
sbb edi, 0xd8
bswap edx
rcr esi, 0x8f
rcr esi, 0x36
rcr eax, 0x42
rol edi, 0x32
rcr edi, 0xf
and ebx, 0xd2
ror eax, 0x3b
rol edx, 0xa5
rol edx, 0xf8
dec eax
xor ecx, ecx
xor edi, edi
not esi
bswap edi
or edx, 0x43
bswap ebx
rcr eax, 0xc3
bswap eax
not edi
ror eax, 0xd
rol eax, 0x30
rol ebx, 0x13
rol esi, 0xac
sbb ebx, 0x87
inc esi
ror edi, 0xfd
dec esi
neg ebx
or ebx, 0x29
or eax, 0x18
rol ebx, 0xce
ror edx, 0x68
rol esi, 0xcb
imul edi
or esi, 0xa7
sbb edx, 0x8c
sub edx, 0x46
rol ebx, 0xe2
rol eax, 0xa8
sub ebx, 0x8d
inc edx
imul edx
dec edi
rcr eax, 0x6d
bswap eax
add edi, 0x72
sbb ebx, 0xba
add eax, 0xaa
and ebx, 0x48
mov ebx, 0x24
ror ebx, 0x8f
inc edx
imul ebx
and edi, 0xa4
rol edx, 0x5e
imul eax
add edi, 0xb5
ror edx, 0xc3
imul ebx
not eax
inc edx
mov edi, 0xaf
mov ecx, dword [ebp + 0xc]
dec eax
not edx
bswap eax
inc ebx
imul ebx
neg ebx
not esi
sub ebx, 0x74
bswap eax
mov eax, 0xcb
and eax, 0x8a
bswap esi
bswap eax
not ebx
dec edi
neg edi
dec edi
dec eax
rcr edx, 0x4c
dec esi
ror esi, 0x42
bswap edi
ror ebx, 0xc
sbb esi, 0xd2
neg ebx
ror edi, 0x5e
dec edx
sub edi, 0x9e
sbb eax, 0x2b
rcl eax, 0xa1
mov edi, 0x3a
mov edi, 0x48
imul edi
or edx, 0xe1
rol eax, 0xaf
not edx
or edx, 0xf
sub eax, 0x81
add ebx, 0x7c
ror eax, 0x8f
ror edi, 3
bswap eax
dec esi
imul ebx
add ebx, 0x82
inc ebx
or eax, 9
sub ebx, 0x20
add edi, 0xb
rcl ebx, 0xcf
mov edi, dword [ebp + 8]
mov ebx, eax
xor ebx, ebx
xor ebx, ebx
mov ebx, ebx
mov eax, eax
mov eax, esi
mov ebx, eax
mov esi, ebx
mov esi, eax
xor ebx, eax
mov ebx, esi
xor eax, eax
not byte [edi]
xor eax, eax
xor ebx, ebx
mov esi, ebx
mov eax, ebx
xor eax, esi
xor esi, ebx
xor eax, esi
mov eax, ebx
xor ebx, ebx
add byte [edi], 0x26
xor ebx, ebx
mov eax, eax
xor esi, eax
xor ebx, esi
xor ebx, esi
xor eax, ebx
xor ebx, ebx
xor esi, ebx
xor esi, esi
sub byte [edi], 0x87
mov ebx, esi
xor esi, esi
mov eax, esi
mov eax, eax
mov eax, eax
mov eax, ebx
xor esi, eax
mov eax, ebx
xor eax, eax
imul byte [edi]
inc edi
loop 0x4028bc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40925b
Capabilities:
Parse pe header

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

Function at 0x40ad14
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 0x40ad35
jl 0x40ad2c
test edi, edi
jne 0x40ad35
xor eax, eax
xor edx, edx
jmp 0x40adf6
cmp dword [ebx + 0x38], 0
je 0x40ad4a
push eax
push edi
push dword [ebp + 8]
call fcn.0040adfc
jmp 0x40adf6
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40ad91
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40ad91
cmp eax, edi
jb 0x40ad6b
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040bc60
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 0x40ad97
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40adeb
mov ecx, ebx
call fcn.0040a400
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40add6
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00412e52
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 0x40adeb
jmp 0x40ada9
test edx, edx
je 0x40adeb
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00412e52
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 0x416a7d
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 0x416b1a
push ebx
push esi
call fcn.00416a46
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.004169da
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x416ac7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x416b19
push edi
push eax
call fcn.0041574b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x416ae7
call fcn.00415799
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x416b18
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004169da
add esp, 0x20
test eax, eax
jne 0x416b06
push edi
call fcn.00415799
jmp 0x416b0e
push ebx
call fcn.00415799
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 0x41734e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4700f0
push 0x4700e8
push str.FlsAlloc
push 0x1f
call fcn.004171b9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417382
push dword [ebp + 8]
mov ecx, esi
call dword [0x422160]
call esi
jmp 0x417388
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4173cc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x470100
push 0x4700f8
push str.FlsGetValue
push 0x21
call fcn.004171b9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417403
push dword [ebp + 8]
mov ecx, esi
call dword [0x422160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41740b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x470108
push 0x470100
push str.FlsSetValue
push 0x22
call fcn.004171b9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417445
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x422160]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x41a21a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00415460
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 0x41a289
cmp esi, dword [ebp - 4]
je 0x41a284
cmp dword [ebp + 0xc], 0
je 0x41a284
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41a261
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00419d6c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41a28b
xor eax, eax
inc eax
jmp 0x41a28b
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41a2f0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4771c0]
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.00415460
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.00415460
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 0x41a367
cmp word [ecx], dx
je 0x41a367
mov eax, dword [0x47052c]
push edi
dec eax
push eax
push 0x470418
call fcn.0041a28f
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41a3da
cmp word [eax], dx
je 0x41a3da
mov eax, dword [edi]
test eax, eax
je 0x41a38b
cmp word [eax], dx
je 0x41a38b
lea eax, [ebp - 0x10]
push eax
call fcn.00419c72
jmp 0x41a394
lea eax, [ebp - 0x10]
push eax
call fcn.00419d0d
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41a404
mov eax, dword [0x470414]
push dword [ebp - 0x14]
dec eax
push eax
push 0x470108
call fcn.0041a28f
add esp, 0xc
test al, al
je 0x41a404
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41a3cf
cmp word [eax], di
je 0x41a3cf
lea eax, [ebp - 0x10]
push eax
call fcn.00419c72
pop ecx
jmp 0x41a406
lea eax, [ebp - 0x10]
push eax
call fcn.00419d0d
jmp 0x41a3cc
mov eax, dword [edi]
test eax, eax
je 0x41a3f1
cmp word [eax], dx
je 0x41a3f1
lea eax, [ebp - 0x10]
push eax
call fcn.00419c27
pop ecx
jmp 0x41a404
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 0x41a4cf
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041a114
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41a4cf
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41a4cf
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41a4cf
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41a45c
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041754b
test ebx, ebx
je 0x41a4ca
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041754b
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41a4cf
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 0x41a4cf
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041f43f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41a4d1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004094bf
leave
ret
Function at 0x41bdca
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408920
mov eax, dword [0x4771c0]
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.0041aa11
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41be0c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41bf68
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004217e0
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 + 0x4789e0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041cdc7
mov ecx, dword [esi*4 + 0x4789e0]
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 0x41bf61
cmp eax, dword [ecx + edi + 0x24]
jne 0x41bf61
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 0x41bf61
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041cdc7
add esp, 0x14
test edx, edx
jl 0x41bf61
jg 0x41bed7
test eax, eax
jb 0x41bf61
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41bf61
jl 0x41bef1
cmp dword [ebp - 0x1008], eax
ja 0x41bf61
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41bf0f
test ebx, ebx
je 0x41bf48
cmp ecx, edi
jae 0x41bf48
mov al, byte [ecx]
cmp al, 0xd
jne 0x41bf29
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41bf35
cmp byte [ecx + 1], 0xa
jne 0x41bf35
inc ecx
jmp 0x41bf35
movzx eax, al
movsx eax, byte [eax + 0x477990]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41bf0f
cmp edx, ebx
jne 0x41bf0f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41bf66
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004094bf
leave
ret