joyce8/EMBER2024-capa huggingface dataset:
Function at 0xe86fb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0xee2014]
xor eax, esp
mov dword [esp + 0x184], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x84]
mov esi, ecx
push eax
push 0
call 0xbf08c2
nop
mov eax, 0x5a4d
cmp word [esi], ax
jne 0xe87199
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0xe87199
push 0x44
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.00eb3f50
add esp, 0xc
lea eax, [esp + 0x20]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [esp + 0xa4]
push eax
call 0xbf0957
nop
test eax, eax
je 0xe87199
push 4
push 0x1000
push 4
push 0
call 0xbf01b4
nop
push eax
mov dword [esp + 0x1c], eax
mov dword [eax], 0x10007
push dword [esp + 0x28]
call 0xb500a3
nop
test eax, eax
je 0xe87199
push 0
push 4
lea eax, [esp + 0x24]
push eax
push 0xed8d98
push dword [esp + 0x30]
call 0xb50584
nop
mov eax, dword [edi + 0x34]
cmp dword [esp + 0x1c], eax
jne 0xe870bc
push 0xed8d9c
push 0xed8db4
call 0xbe0d00
nop
push eax
call 0xb502bc
nop
push dword [esp + 0x1c]
push dword [esp + 0x24]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [esp + 0x30]
call 0xb5033c
nop
mov dword [esp + 0x14], eax
test eax, eax
je 0xe87199
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [esp + 0x30]
call 0xbf07c0
nop
xor eax, eax
mov dword [esp + 0x10], 0
cmp ax, word [edi + 6]
jae 0xe87153
mov dword [esp + 0xc], eax
call fcn.00e86e00
push eax
call 0xb90742
nop
mov ecx, dword [esp + 0xc]
add ecx, esi
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0x108]
mov eax, dword [ecx + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + 0x104]
add eax, dword [esp + 0x20]
push eax
push dword [esp + 0x30]
call 0xbf07c0
nop
mov ecx, dword [esp + 0x10]
movzx eax, word [edi + 6]
inc ecx
add dword [esp + 0xc], 0x28
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0xe87102
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xa4]
add eax, 8
push eax
push dword [esp + 0x30]
call 0xbf07c0
nop
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x28]
add eax, dword [esp + 0x14]
push ecx
mov dword [ecx + 0xb0], eax
push dword [esp + 0x28]
call 0xb5073c
nop
push dword [esp + 0x24]
call 0xbe0da3
nop
push 0x8000
push 0
push esi
call 0xbf06e4
nop
mov ecx, dword [esp + 0x18c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.00e9ce51
mov esp, ebp
pop ebp
ret
Function at 0x40aa98
Capabilities:
Encode data using xor

Disassembly:
js 0x40aaa4
sub ecx, ecx
add al, bl
test ebx, 0x11a6591e
movzx ebp, bl
dec esi
test ch, 0xb6
test edi, eax
jne 0x40aab1
xchg dl, bl
lea esi, [0xa6c7b011]
mov dl, al
imul ebx, ebp, 0xe8ade853
and cl, bh
push ebx
push ecx
movsx eax, dh
dec ebp
mov esi, 0x1f775937
call 0x40aad2
mov ebp, 0xc36bad63
mov bh, dh
mov ebx, 0xf6df02c0
adc eax, edx
and esi, 0xccbc6d11
dec esi
sbb dl, al
test edi, 0x72d7d3e2
push ebp
test dl, 0x92
pop ebp
dec edi
lea edx, [0x2d920ce7]
sub ecx, ebp
mov al, 0x90
pop ebx
mov ecx, 0x311c8dcd
inc ch
and eax, 0xccd86759
imul esi, edi, 0x8bd44dcc
movzx edx, ax
jmp 0x40ab22
inc edi
cmp edi, edx
imul esi, ebp, 0xdbb065e1
lea esi, [0x8477a8f]
mov cl, 8
xor eax, 0x9c21
imul edx, ebx
test dh, ah
test ah, 0x2e
mov ebp, edx
test bh, 0x44
mov cl, bl
and ecx, 0xe2c38796
movzx ebp, ax
dec eax
dec edx
push 0x2bf9fc
inc ecx
mov edi, 0x274507fd
test dl, bl
movzx esi, ah
imul ebp, edx, 0x8ca7ec2b
imul edi, eax
cmp eax, eax
jb 0x40ab7c
movsx eax, bx
imul ecx, eax, 0x65be531
add ebx, 0x38022
sub eax, 0x70487e6d
mov ah, 0x5e
xchg al, cl
sub ebx, 0x2decc
imul eax, esi
xchg dl, dl
push 0xe39d3
mov ecx, eax
cmp ebp, ebx
mov ebp, ebx
cmp edi, 0xd8a3
jne 0x40abb0
inc ecx
cmp cl, 0x37
lea ecx, [0xef97faa4]
test dh, ch
mov eax, ecx
or al, 0xaf
movsx ebp, si
jo 0x40abc4
imul eax, ebx
test esi, 0x1029e7e4
test ebp, 0x2245218e
imul eax, ebx, 0x885cbdb1
test edi, edi
jbe 0x40abdc
mov al, 0xd8
lea ecx, [0x105c0]
mov eax, ebx
test esi, ebx
xor ecx, 0x1b85
mov al, 0xf3
test edx, edx
lea edi, [ecx]
jno 0x40abf7
mov ebp, ebx
xor edi, 0x1155e
xor edi, 0x1155e
mov dl, 0xde
add eax, 0xf06764d1
xor al, 0x5f
test dh, 0x99
mov ah, 0xd3
sub edi, 0x789
mov dl, 0xc9
lea edx, [0x72b7b861]
add edi, 0x788
mov al, al
test ebx, 0xcdf63e71
mov edx, eax
and dl, 5
imul eax, ebp
inc eax
lea esi, [0xbfd46596]
mov eax, eax
cmp edi, 0x3d0
jne 0x40abfd
test edx, 0x7fbb8369
xchg eax, ebp
mov dh, 0x30
js 0x40ac61
imul ecx, eax
lea eax, [0x42b38ee6]
sbb ebp, eax
push ebx
imul eax, edi, 0xbe55d8be
ret
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

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

Disassembly:
pushal
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4073d6
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 0x407473
push ebx
push esi
call fcn.0040739f
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.004072e8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x407420
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x407472
push edi
push eax
call fcn.00407fd6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x407440
call fcn.00405f11
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x407471
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004072e8
add esp, 0x20
test eax, eax
jne 0x40745f
push edi
call fcn.00405f11
jmp 0x407467
push ebx
call fcn.00405f11
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 0x408759
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411178
push 0x411170
push str.FlsAlloc
push 0x1e
call fcn.0040861a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40878d
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f110]
call esi
jmp 0x408793
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4087d7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411188
push 0x411180
push str.FlsGetValue
push 0x20
call fcn.0040861a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40880e
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f110]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40dc90
Capabilities:
Parse pe header

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

Function at 0x58e58a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jns 0x58e59e
add ecx, 3
sar ecx, 2
xor eax, eax
cmp ecx, eax
jle 0x58e5af
xor dword [edx + eax*4], ebx
inc eax
cmp ecx, eax
jg 0x58e5a7
pop ebx
pop ebp
ret 0xc
Function at 0x1000d560
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002c548
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x1003c0c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x44], 7
lea eax, [edi + 0x30]
mov esi, dword [ebp + 8]
jbe 0x1000d59e
mov eax, dword [eax]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x1000d5ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
jmp 0x1000d643
cmp dword [edi + 0x2c], 7
lea eax, [edi + 0x18]
mov bl, 1
jbe 0x1000d5c7
mov eax, dword [eax]
push 1
push 0x40
push 0x20
push eax
lea ecx, [ebp - 0xe4]
call fcn.1000a090
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe4], vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xe8], eax
cmp dword [ebp - 0x94], 0
mov dword [ebp - 4], 0
je 0x1000d663
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x1000d61a
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.10009e40
add esp, 0xc
lea ecx, [ebp - 0xe4]
call fcn.1000d830
lea ecx, [ebp - 0xe4]
call fcn.1000a4e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000e9d8
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1000a7b0
add esp, 8
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.10006550
push 0x100382f0
lea eax, [ebp - 0x34]
push eax
call fcn.1000fcad
int3

Function at 0x10018d2a
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1000fc00
mov eax, dword [0x1003c0c0]
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.1001be80
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1001de77
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1001dfd3
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1000ea10
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 + 0x1003da50]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1001e25a
mov ecx, dword [esi*4 + 0x1003da50]
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 0x1001dfcc
cmp eax, dword [ecx + edi + 0x24]
jne 0x1001dfcc
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 0x1001dfcc
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001e25a
add esp, 0x14
test edx, edx
jl 0x1001dfcc
jg 0x1001df42
test eax, eax
jb 0x1001dfcc
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1001dfcc
jl 0x1001df5c
cmp dword [ebp - 0x1008], eax
ja 0x1001dfcc
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1001df7a
test ebx, ebx
je 0x1001dfb3
cmp ecx, edi
jae 0x1001dfb3
mov al, byte [ecx]
cmp al, 0xd
jne 0x1001df94
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001dfa0
cmp byte [ecx + 1], 0xa
jne 0x1001dfa0
inc ecx
jmp 0x1001dfa0
movzx eax, al
movsx eax, byte [eax + 0x1003ca40]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1001df7a
cmp edx, ebx
jne 0x1001df7a
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1001dfd1
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000e9d8
leave
ret

Function at 0x1001e837
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10032d28
push 0x10032d20
push str.FlsAlloc
push 0x1f
call fcn.1001e6ff
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e86b
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002d178]
call esi
jmp 0x1001e871
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x1001e8b5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10032d38
push 0x10032d30
push str.FlsGetValue
push 0x21
call fcn.1001e6ff
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e8ec
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002d178]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001e8f4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10032d40
push 0x10032d38
push str.FlsSetValue
push 0x22
call fcn.1001e6ff
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e92e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002d178]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10022b0c
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 0x10022ba9
push ebx
push esi
call fcn.10022ad5
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.100218aa
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10022b56
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10022ba8
push edi
push eax
call fcn.1001ec38
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10022b76
call fcn.1001bcdc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10022ba7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100218aa
add esp, 0x20
test eax, eax
jne 0x10022b95
push edi
call fcn.1001bcdc
jmp 0x10022b9d
push ebx
call fcn.1001bcdc
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 0x10024e26
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1001a32c
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 0x10024e95
cmp esi, dword [ebp - 4]
je 0x10024e90
cmp dword [ebp + 0xc], 0
je 0x10024e90
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10024e6d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10024978
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10024e97
xor eax, eax
inc eax
jmp 0x10024e97
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10024efc
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1003c0c0]
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.1001a32c
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.1001a32c
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 0x10024f73
cmp word [ecx], dx
je 0x10024f73
mov eax, dword [0x10033444]
push edi
dec eax
push eax
push 0x10033330
call fcn.10024e9b
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10024fe6
cmp word [eax], dx
je 0x10024fe6
mov eax, dword [edi]
test eax, eax
je 0x10024f97
cmp word [eax], dx
je 0x10024f97
lea eax, [ebp - 0x10]
push eax
call fcn.1002487e
jmp 0x10024fa0
lea eax, [ebp - 0x10]
push eax
call fcn.10024919
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10025010
mov eax, dword [0x1003332c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10033020
call fcn.10024e9b
add esp, 0xc
test al, al
je 0x10025010
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10024fdb
cmp word [eax], di
je 0x10024fdb
lea eax, [ebp - 0x10]
push eax
call fcn.1002487e
pop ecx
jmp 0x10025012
lea eax, [ebp - 0x10]
push eax
call fcn.10024919
jmp 0x10024fd8
mov eax, dword [edi]
test eax, eax
je 0x10024ffd
cmp word [eax], dx
je 0x10024ffd
lea eax, [ebp - 0x10]
push eax
call fcn.10024833
pop ecx
jmp 0x10025010
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 0x100250db
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10024d20
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100250db
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100250db
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100250db
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10025068
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1001ea34
test ebx, ebx
je 0x100250d6
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1001ea34
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100250db
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 0x100250db
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10029444
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100250dd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e9d8
leave
ret
Function at 0x10025263
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 + 0x1003da50]
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 0x100252a3
cmp byte [ebx], 0xa
jne 0x100252a3
or byte [edi + eax + 0x28], 4
jmp 0x100252a8
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 0x100253a7
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1002538a
inc eax
cmp dl, 0xd
je 0x100252d4
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100252fa
cmp eax, ecx
jae 0x10025308
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 0x100252bc
jmp 0x100253a7
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 0x10025385
cmp dword [ebp - 0x10], 0
je 0x10025385
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1003da50]
test byte [eax + edi + 0x28], 0x48
je 0x1002535f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1002534a
mov byte [esi], dl
jmp 0x1002535b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1003da50]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100253a7
cmp byte [ebp - 1], 0xa
jne 0x1002536e
cmp esi, ebx
jne 0x1002536e
mov byte [esi], 0xa
jmp 0x100253a6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001e278
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100253a7
mov byte [esi], 0xd
jmp 0x100253a6
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1003da50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100253a4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100253a7
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret