joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435b80
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46dd48
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x435bb9
inc eax
mov dword [esi + 0x10], eax
jmp 0x435ccc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x435bcd
mov eax, 0xffffffc7
jmp 0x435cce
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x435bde
cmp dword [esi + 8], eax
jne 0x435bcd
cmp dword [esi + 8], eax
jne 0x435bf7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x435bf7
mov eax, 0xffffffc7
jmp 0x435cce
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x435c0b
push eax
mov ecx, ebx
call fcn.004353b0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00401060
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x435c3c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004010b0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00434b20
test eax, eax
mov dword [esp + 0x38], eax
je 0x435c6f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x472328
call fcn.00401290
mov eax, dword [esp + 0x38]
jmp 0x435cce
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004359e0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x435cb3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00435a00
mov esi, eax
test esi, esi
jne 0x435ce3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004359e0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x435c85
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x472328
call fcn.00401290
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x472328
call fcn.00401290
mov eax, esi
jmp 0x435cce
Function at 0x10001320
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.100014d0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x100013ed
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1000136a
mov eax, dword [ebp - 4]
cmp eax, dword [0x10016004]
ja 0x1000136a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000133a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10005a30
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10001390
jmp 0x100013ed
cmp dword [ebp - 0x14], 0x10000
jne 0x100013d3
cmp dword [ebp - 0x18], 0x10000
jb 0x100013d3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100013c6
mov eax, dword [ebp - 8]
jmp 0x100013ef
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100013e8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.100014d0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000133a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10001400
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10001500
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x100014c5
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x10001445
mov eax, dword [ebp - 4]
cmp eax, dword [0x10016004]
ja 0x10001445
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10001415
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10005a30
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1000146b
jmp 0x100014c5
cmp dword [ebp - 0x14], 0x10000
jne 0x100014ae
cmp dword [ebp - 0x18], 0x10000
jb 0x100014ae
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100014a1
mov eax, dword [ebp - 8]
jmp 0x100014c7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100014c0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10001500
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10001415
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000e8d0
Capabilities:
Parse pe header

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

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 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 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], 0x405620
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.004056f0
sub esp, 4
jmp 0x4019ef
mov dword [esi + 0xd8], 3
mov eax, esp
mov dword [eax], str.tccetrplunbrnucdoletkahjtwobekapgdnyothnayrbawsxo
lea ecx, [esi + 0x78]
call fcn.004056f0
sub esp, 4
jmp 0x401a11
mov dword [esi + 0xd8], 5
mov eax, esp
mov dword [eax], str.tccetrplunbrnucdoletkahjtwobekapgdnyothnayrbawsxo
lea ecx, [esi + 0x60]
call fcn.004056f0
sub esp, 4
jmp 0x401a33
lea ecx, [esi + 0x60]
lea eax, [esi + 0x78]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004057e0
mov byte [esi + 0x13], al
lea ecx, [esi + 0x60]
call fcn.004056c0
lea ecx, [esi + 0x78]
call fcn.004056c0
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.004056f0
sub esp, 4
jmp 0x401ab3
mov dword [esi + 0xd8], 4
mov eax, esp
mov dword [eax], str.tccetrplunbrnucdoletkahjtwobekapgdnyothnayrbawsxo
lea ecx, [esi + 0x2c]
call fcn.004056f0
sub esp, 4
jmp 0x401ad5
lea ecx, [esi + 0x2c]
lea eax, [esi + 0x44]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004057b0
mov byte [esi + 0x12], al
lea ecx, [esi + 0x2c]
call fcn.004056c0
lea ecx, [esi + 0x44]
call fcn.004056c0
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.004056f0
sub esp, 4
jmp 0x401b55
lea ecx, [esi + 0x90]
call fcn.004056c0
mov ecx, dword [esi + 0x1c]
call fcn.004056c0
mov ecx, dword [esi + 0x20]
call fcn.004056c0
mov ecx, dword [esi + 0x24]
call fcn.004056c0
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], 0x405660
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.004056f0
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.004056c0
mov ecx, dword [esi + 0xc]
call fcn.004056c0
mov ecx, dword [esi + 0x10]
call fcn.004056c0
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:
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]
neg edi
imul esi
bswap eax
rcl edi, 0x23
inc ebx
imul edx
dec eax
bswap ebx
and eax, 0xb1
not esi
add edi, 0xdf
ror edi, 0xf9
add edi, 0x29
bswap ebx
rol edx, 0
sbb edx, 0xc7
bswap edi
and edx, 0xc
rcl edi, 0xbe
and edx, 0x30
and eax, 0x39
sub esi, 0xcf
ror edx, 0xd5
ror ebx, 0xac
ror ebx, 0x14
and esi, 0x96
not esi
inc eax
mov esi, 0x2c
inc ebx
mov edx, 0xd8
add esi, 0xfb
neg ebx
or esi, 0x9d
rcr ebx, 0xd
add edi, 0x30
rcr esi, 0xb3
imul edx
add edx, 0x75
imul eax
imul eax
neg edi
inc ebx
add edi, 0xff
mov esi, 0x3e
add ebx, 0x7a
dec ebx
or esi, 0x3e
rol esi, 0x90
not esi
xor ecx, ecx
xor edi, edi
add esi, 0x99
inc ebx
bswap ebx
inc eax
dec ebx
add esi, 0xa7
not esi
bswap ebx
rol edi, 0x70
sbb edx, 0x30
sub ebx, 0x4e
neg edi
or ebx, 0xd6
bswap edx
sub edx, 0x5a
not ebx
neg edi
inc ebx
and esi, 2
not esi
bswap edi
ror eax, 0x5a
neg eax
imul esi
not ebx
or edx, 0x89
ror edx, 0x29
inc eax
imul eax
bswap edi
imul edi
bswap edi
imul edi
neg edx
inc edx
dec edi
rcr ebx, 0xe1
add eax, 0x51
add edx, 0x33
dec eax
add ebx, 0x2f
sbb edi, 0x8c
dec eax
imul eax
mov ebx, 0xab
or ebx, 0x4c
rol ebx, 0x1d
sub esi, 0x2f
bswap edx
mov esi, 0x85
mov ecx, dword [ebp + 0xc]
or edi, 0x3f
sub eax, 0xc2
ror esi, 0x38
ror edx, 0xe4
dec esi
imul edx
not edi
sub ebx, 0xaa
sbb edx, 0x62
rcr esi, 0x4d
and ebx, 0x88
ror ebx, 0x20
neg esi
imul esi
not edx
mov edi, 0x36
bswap eax
and esi, 0x6e
sub edi, 0x45
bswap ebx
mov ebx, 0x17
neg edx
rol eax, 0x7e
sbb eax, 0x47
imul esi
ror edi, 0xee
rcr eax, 0xc
rcl edx, 0x3f
ror eax, 0xa
dec ebx
rcl edi, 0x6b
ror esi, 0x4c
bswap esi
rol esi, 0x15
ror edi, 0x24
dec eax
rcr esi, 0x16
rcl edi, 8
bswap edx
inc eax
sbb edx, 0xd3
ror esi, 0
neg edi
ror eax, 0xf0
imul ebx
not eax
rcl edi, 0xbe
rol ebx, 0xbd
neg edi
sub eax, 0xf0
mov edi, dword [ebp + 8]
xor eax, esi
xor esi, eax
mov eax, esi
mov esi, ebx
xor ebx, esi
xor eax, eax
mov eax, esi
xor esi, esi
xor eax, eax
mov ebx, eax
xor ebx, ebx
xor eax, eax
not byte [edi]
xor ebx, eax
mov esi, esi
xor esi, eax
mov esi, eax
mov eax, eax
mov ebx, eax
mov esi, eax
mov eax, ebx
xor eax, esi
add byte [edi], 0x26
mov eax, ebx
mov eax, esi
mov esi, ebx
mov esi, esi
xor eax, ebx
xor esi, esi
mov eax, ebx
mov ebx, eax
xor esi, eax
sub byte [edi], 0x87
xor ebx, ebx
xor esi, ebx
mov ebx, esi
mov esi, eax
mov ebx, eax
mov ebx, eax
mov esi, esi
mov eax, esi
xor ebx, eax
imul byte [edi]
inc edi
loop 0x4028a7
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40921b
Capabilities:
Parse pe header

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

Function at 0x40acd4
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 0x40acf5
jl 0x40acec
test edi, edi
jne 0x40acf5
xor eax, eax
xor edx, edx
jmp 0x40adb6
cmp dword [ebx + 0x38], 0
je 0x40ad0a
push eax
push edi
push dword [ebp + 8]
call fcn.0040adbc
jmp 0x40adb6
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40ad51
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40ad51
cmp eax, edi
jb 0x40ad2b
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040bc20
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 0x40ad57
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40adab
mov ecx, ebx
call fcn.0040a3c0
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40ad96
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00412e12
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 0x40adab
jmp 0x40ad69
test edx, edx
je 0x40adab
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00412e12
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 0x416a3d
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 0x416ada
push ebx
push esi
call fcn.00416a06
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.0041699a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x416a87
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x416ad9
push edi
push eax
call fcn.0041570b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x416aa7
call fcn.00415759
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x416ad8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041699a
add esp, 0x20
test eax, eax
jne 0x416ac6
push edi
call fcn.00415759
jmp 0x416ace
push ebx
call fcn.00415759
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 0x417310
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x470ef0
push 0x470ee8
push str.FlsAlloc
push 0x1f
call fcn.0041717b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417344
push dword [ebp + 8]
mov ecx, esi
call dword [0x422160]
call esi
jmp 0x41734a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41738e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x470f00
push 0x470ef8
push str.FlsGetValue
push 0x21
call fcn.0041717b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4173c5
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 0x4173cd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x470f08
push 0x470f00
push str.FlsSetValue
push 0x22
call fcn.0041717b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417407
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 0x41a1d9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00415420
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 0x41a248
cmp esi, dword [ebp - 4]
je 0x41a243
cmp dword [ebp + 0xc], 0
je 0x41a243
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41a220
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00419d2b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41a24a
xor eax, eax
inc eax
jmp 0x41a24a
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41a2af
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.00415420
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.00415420
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 0x41a326
cmp word [ecx], dx
je 0x41a326
mov eax, dword [0x47132c]
push edi
dec eax
push eax
push 0x471218
call fcn.0041a24e
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41a399
cmp word [eax], dx
je 0x41a399
mov eax, dword [edi]
test eax, eax
je 0x41a34a
cmp word [eax], dx
je 0x41a34a
lea eax, [ebp - 0x10]
push eax
call fcn.00419c31
jmp 0x41a353
lea eax, [ebp - 0x10]
push eax
call fcn.00419ccc
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41a3c3
mov eax, dword [0x471214]
push dword [ebp - 0x14]
dec eax
push eax
push 0x470f08
call fcn.0041a24e
add esp, 0xc
test al, al
je 0x41a3c3
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41a38e
cmp word [eax], di
je 0x41a38e
lea eax, [ebp - 0x10]
push eax
call fcn.00419c31
pop ecx
jmp 0x41a3c5
lea eax, [ebp - 0x10]
push eax
call fcn.00419ccc
jmp 0x41a38b
mov eax, dword [edi]
test eax, eax
je 0x41a3b0
cmp word [eax], dx
je 0x41a3b0
lea eax, [ebp - 0x10]
push eax
call fcn.00419be6
pop ecx
jmp 0x41a3c3
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 0x41a48e
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041a0d3
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41a48e
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41a48e
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41a48e
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41a41b
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041750d
test ebx, ebx
je 0x41a489
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041750d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41a48e
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 0x41a48e
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041f3ff
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41a490
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040947f
leave
ret
Function at 0x41bd89
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004088e0
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.0041a9d0
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41bdcb
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41bf27
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004217a0
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.0041cd86
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 0x41bf20
cmp eax, dword [ecx + edi + 0x24]
jne 0x41bf20
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 0x41bf20
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041cd86
add esp, 0x14
test edx, edx
jl 0x41bf20
jg 0x41be96
test eax, eax
jb 0x41bf20
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41bf20
jl 0x41beb0
cmp dword [ebp - 0x1008], eax
ja 0x41bf20
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41bece
test ebx, ebx
je 0x41bf07
cmp ecx, edi
jae 0x41bf07
mov al, byte [ecx]
cmp al, 0xd
jne 0x41bee8
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41bef4
cmp byte [ecx + 1], 0xa
jne 0x41bef4
inc ecx
jmp 0x41bef4
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 0x41bece
cmp edx, ebx
jne 0x41bece
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41bf25
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040947f
leave
ret