joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402733
Capabilities:
Terminate process

Disassembly:
call section..text
push 0
push 0x405018
push 0x405014
call fcn.00402c58
push 0
push 0x405020
push 0x40501c
call fcn.00402c58
add esp, 0x18
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4030f6
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x405744]
test eax, eax
je 0x40310f
call eax
test eax, eax
jne 0x40310f
push 0xfffffffffffffffe
jmp 0x403129
push 1
push 0x405010
push 0x405008
call fcn.00402c58
add esp, 0xc
test eax, eax
je 0x40312f
push 0xfffffffffffffffd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
push 0
push 0x405004
push section..data
call fcn.00402c58
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
test esi, esi
jne 0x403155
mov esi, 0x404561
mov cl, 0x20
jmp 0x40315e
cmp al, 0x20
ja 0x403168
inc esi
mov al, byte [esi]
test al, al
jne 0x403159
cmp al, 0x20
jbe 0x40317f
mov al, byte [esi]
cmp al, 0x22
jne 0x403171
xor cl, 0x20
inc esi
mov al, byte [esi]
cmp al, cl
ja 0x40316a
jmp 0x40317f
cmp al, cl
ja 0x403185
inc esi
mov al, byte [esi]
test al, al
jne 0x40317a
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test eax, 0xa0d0a0d
sub eax, 0x54524357
sub eax, 0xa0d0a0d
test byte [ebp - 0x18], 1
je 0x4031ae
movzx eax, word [ebp - 0x14]
jmp 0x4031b1
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00402733
pop ecx
pop esi
leave
ret

Function at 0x4031e8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40515c], eax
push 0
push dword [ebp + 8]
push 0
push 0
push 0
push 0x80000000
push 0xfffffc18
push 0xfffffc18
push 0xcf0000
push 0x4055a0
push 0x405608
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403232
xor eax, eax
jmp 0x403249
push 0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 4]

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

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408e54
mov ecx, 0x166e6f87
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x6b1cff
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
or esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
push edx
pop edi
rep stosb byte es:[edi], al
pop edi
push edx
pop eax
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
push esi
pop eax
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
push esi
pop eax
sub eax, edi
push eax
pop esi
or eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0x4d5b3136
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x1b66302e
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x1000f910
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov al, byte [0x100dbada]
mov byte [ebp - 0x170], al
push 0x103
push 0
lea ecx, [ebp - 0x16f]
push ecx
call fcn.1004f3f0
add esp, 0xc
push 0x58
push 0
lea edx, [ebp - 0x6c]
push edx
call fcn.1004f3f0
add esp, 0xc
mov dword [ebp - 0x6c], 0x58
mov dword [ebp - 0x60], 0x100dc4c8
lea eax, [ebp - 0x170]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 0x104
mov dword [ebp - 0x3c], 0x100dc4f8
mov dword [ebp - 0x38], 0x1800
lea ecx, [ebp - 0x6c]
push ecx
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
cmp eax, 1
jne 0x1000fa57
push 0x100dc504
lea edx, [ebp - 0x170]
push edx
call fcn.10052b34
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000fa43
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.100536ee
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call fcn.10052914
add esp, 4
mov dword [ebp - 0xc], eax
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.100536ee
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
call fcn.1004da34
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 1
mov ecx, dword [ebp - 8]
push ecx
call fcn.10056589
add esp, 0x10
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov byte [edx], 0
mov eax, dword [ebp - 4]
push eax
call fcn.10052e32
add esp, 4
push 0x40
push 0x100dc508
mov ecx, dword [ebp - 8]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.1004d5f7
add esp, 4
jmp 0x1000fa57
push 0x10
push 0x100dc518
push 0x100dc520
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esp, ebp
pop ebp
ret
Function at 0x10052674
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1004e620
mov eax, dword [0x10070040]
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.1005a0d2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100526b6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10052812
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1006c960
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 + 0x100c8410]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1005a2e1
mov ecx, dword [esi*4 + 0x100c8410]
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 0x1005280b
cmp eax, dword [ecx + edi + 0x24]
jne 0x1005280b
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 0x1005280b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1005a2e1
add esp, 0x14
test edx, edx
jl 0x1005280b
jg 0x10052781
test eax, eax
jb 0x1005280b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1005280b
jl 0x1005279b
cmp dword [ebp - 0x1008], eax
ja 0x1005280b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100527b9
test ebx, ebx
je 0x100527f2
cmp ecx, edi
jae 0x100527f2
mov al, byte [ecx]
cmp al, 0xd
jne 0x100527d3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100527df
cmp byte [ecx + 1], 0xa
jne 0x100527df
inc ecx
jmp 0x100527df
movzx eax, al
movsx eax, byte [eax + 0x100702c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100527b9
cmp edx, ebx
jne 0x100527b9
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10052810
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1004ddc3
leave
ret

Function at 0x10058d52
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10058d91
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10058d91
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10058d91
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10058d91
cmp dword [ecx + 0x74], 0xe
jbe 0x10058d91
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1005c077
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100c8410]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1005c0b7
cmp byte [ebx], 0xa
jne 0x1005c0b7
or byte [edi + eax + 0x28], 4
jmp 0x1005c0bc
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1005c1bb
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1005c19e
inc eax
cmp dl, 0xd
je 0x1005c0e8
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1005c10e
cmp eax, ecx
jae 0x1005c11c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1005c0d0
jmp 0x1005c1bb
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005c199
cmp dword [ebp - 0x10], 0
je 0x1005c199
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100c8410]
test byte [eax + edi + 0x28], 0x48
je 0x1005c173
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1005c15e
mov byte [esi], dl
jmp 0x1005c16f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100c8410]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1005c1bb
cmp byte [ebp - 1], 0xa
jne 0x1005c182
cmp esi, ebx
jne 0x1005c182
mov byte [esi], 0xa
jmp 0x1005c1ba
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1005a2ff
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1005c1bb
mov byte [esi], 0xd
jmp 0x1005c1ba
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100c8410]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1005c1b8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1005c1bb
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1005c1c4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100c8410]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1005c20a
cmp word [ebx], dx
jne 0x1005c20a
or byte [eax + edi + 0x28], 4
jmp 0x1005c20f
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1005c372
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1005c352
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1005c250
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1005c286
cmp eax, edx
jae 0x1005c294
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1005c22b
jmp 0x1005c372
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005c34d
cmp dword [ebp - 0x18], 0
je 0x1005c34d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100c8410]
test byte [eax + edi + 0x28], 0x48
je 0x1005c323
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1005c2e7
mov word [esi], cx
jmp 0x1005c31e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100c8410]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100c8410]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100c8410]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1005c372
pop eax
cmp word [ebp - 4], ax
jne 0x1005c333
cmp esi, ebx
jne 0x1005c333
mov word [esi], ax
jmp 0x1005c36f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1005a2ff
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1005c372
push 0xd
pop eax
jmp 0x1005c32e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100c8410]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1005c36c
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1005c372
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1005d5ec
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100d7dd0
push 0x100d7dc8
push 0x100d56ac
push 0x1f
call fcn.1005d457
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005d620
push dword [ebp + 8]
mov ecx, esi
call dword [0x100d3bc4]
call esi
jmp 0x1005d626
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1005d66a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100d7de0
push 0x100d7dd8
push 0x100d56d0
push 0x21
call fcn.1005d457
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005d6a1
push dword [ebp + 8]
mov ecx, esi
call dword [0x100d3bc4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1005d6a9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100d7de8
push 0x100d7de0
push 0x100d56e4
push 0x22
call fcn.1005d457
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005d6e3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100d3bc4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100639cc
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 0x10063a69
push ebx
push esi
call fcn.10063995
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.1005dd0f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10063a16
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10063a68
push edi
push eax
call fcn.1005dc31
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10063a36
call fcn.1005d178
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10063a67
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1005dd0f
add esp, 0x20
test eax, eax
jne 0x10063a55
push edi
call fcn.1005d178
jmp 0x10063a5d
push ebx
call fcn.1005d178
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 0x100664a4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1005a6c7
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 0x10066513
cmp esi, dword [ebp - 4]
je 0x1006650e
cmp dword [ebp + 0xc], 0
je 0x1006650e
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100664eb
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10065ff6
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10066515
xor eax, eax
inc eax
jmp 0x10066515
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1006657a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10070040]
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.1005a6c7
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.1005a6c7
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 0x100665f1
cmp word [ecx], dx
je 0x100665f1
mov eax, dword [0x100d84dc]
push edi
dec eax
push eax
push 0x100d83c8
call fcn.10066519
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10066664
cmp word [eax], dx
je 0x10066664
mov eax, dword [edi]
test eax, eax
je 0x10066615
cmp word [eax], dx
je 0x10066615
lea eax, [ebp - 0x10]
push eax
call fcn.10065efc
jmp 0x1006661e
lea eax, [ebp - 0x10]
push eax
call fcn.10065f97
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1006668e
mov eax, dword [0x100d83c4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100d80b8
call fcn.10066519
add esp, 0xc
test al, al
je 0x1006668e
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10066659
cmp word [eax], di
je 0x10066659
lea eax, [ebp - 0x10]
push eax
call fcn.10065efc
pop ecx
jmp 0x10066690
lea eax, [ebp - 0x10]
push eax
call fcn.10065f97
jmp 0x10066656
mov eax, dword [edi]
test eax, eax
je 0x1006667b
cmp word [eax], dx
je 0x1006667b
lea eax, [ebp - 0x10]
push eax
call fcn.10065eb1
pop ecx
jmp 0x1006668e
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 0x10066759
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1006639e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10066759
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10066759
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10066759
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100666e6
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1005d7e9
test ebx, ebx
je 0x10066754
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1005d7e9
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10066759
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 0x10066759
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1006a65f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1006675b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004ddc3
leave
ret