joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c2e30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101213a3
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x101a30c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x100c304a
cmp dword [0x101a3d60], 0
je 0x100c304a
mov ebx, dword [eax + 8]
mov eax, dword [0x101dcc8c]
test al, 1
jne 0x100c2ec0
or eax, 1
mov dword [0x101dcc8c], eax
mov edx, 0x990704d7
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.1005f730
push 0xda7d68cb
mov edx, eax
mov ecx, 0x101dcc98
call fcn.1005fb30
add esp, 4
push 0x10129720
call fcn.100ef32a
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x101dcc98]
call eax
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ebx, ebx
je 0x100c2f35
test ecx, ecx
je 0x100c2f35
mov ebx, dword [ebx + 0x18]
test ebx, ebx
je 0x100c2f35
nop dword [eax + eax]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
mov eax, dword [ebx]
and eax, 0xffffff
push eax
call edx
mov esi, eax
test esi, esi
je 0x100c2f29
mov edi, 0x811c9dc5
xor ecx, ecx
nop dword [eax]
inc ecx
cmp byte [esi + ecx], 0
jne 0x100c2f00
xor edx, edx
test ecx, ecx
je 0x100c2f29
nop dword [eax]
movsx eax, byte [esi + edx]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x100c2f10
cmp edi, 0x11ab48ff
je 0x100c2f37
mov ebx, dword [ebx + 0x14]
test ebx, ebx
je 0x100c2f35
mov ecx, dword [ebp - 0x10]
jmp 0x100c2ee0
xor ebx, ebx
movsx eax, byte [ebx + 0x10]
dec eax
cmp eax, 6
ja case.0x100c2f41.2
jmp dword [eax*4 + 0x100c3060]
push dword [ebx + 4]
call fcn.10100c24
add esp, 4
mov edx, eax
jmp 0x100c2fc2
push dword [ebx + 8]
call fcn.10100be5
add esp, 4
mov edx, eax
jmp 0x100c2fc2
movss xmm3, dword [ebx + 0xc]
movss xmm4, dword [0x101926a8]
movaps xmm0, xmm3
movss xmm2, dword [0x101926a0]
andps xmm4, xmm3
xorps xmm0, xmm4
movss xmm5, dword [0x1019243c]
cmpltss xmm0, xmm2
movaps xmm1, xmm3
andps xmm2, xmm0
orps xmm2, xmm4
addss xmm1, xmm2
subss xmm1, xmm2
movaps xmm0, xmm1
subss xmm0, xmm3
cmpnless xmm0, xmm4
andps xmm0, xmm5
subss xmm1, xmm0
cvttss2si edx, xmm1
jmp 0x100c2fc2
xor edx, edx
jmp 0x100c2fc2
mov edx, dword [ebx + 0xc]
mov ecx, dword [0x101d4434]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov ecx, dword [0x101d4434]
mov esi, eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
call edx
cmp esi, eax
jne 0x100c304a
mov ecx, dword [0x101d514c]
xor edx, edx
mov esi, dword [0x101d5150]
movss xmm1, dword [0x101926a4]
add esi, ecx
cmp ecx, esi
je 0x100c304a
mov edi, dword [0x101d5144]
mov ebx, dword [0x101d5148]
nop dword [eax + eax]
lea eax, [ebx - 1]
and eax, ecx
mov eax, dword [edi + eax*4]
cmp byte [eax + 0x30], 0
jne 0x100c303d
mov edi, dword [0x101d4498]
movss xmm0, dword [edi]
subss xmm0, dword [eax + 8]
mov edi, dword [0x101d5144]
comiss xmm1, xmm0
jb 0x100c303d
movaps xmm1, xmm0
mov edx, eax
inc ecx
cmp ecx, esi
jne 0x100c3010
test edx, edx
je 0x100c304a
mov byte [edx + 0x30], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100c8b70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x100c8d01
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x280]
call eax
test al, al
je 0x100c8d01
mov eax, dword [0x101d44b8]
cmp dword [eax + 0x174], 0xffffffff
je 0x100c8d01
mov eax, dword [0x101d47c4]
add eax, 0xffffff90
xor eax, 0xe5878ce
cmp dword [eax + ebx], 0
mov eax, dword [0x101d478c]
setle cl
add eax, 0xffffff9e
xor eax, 0xe5878c0
xor edi, edi
mov byte [eax + ebx], cl
mov eax, dword [0x101d4780]
add eax, 0xffffffa1
xor eax, 0xe5878bd
mov dword [eax + ebx + 0xc], 0
mov eax, dword [0x101d4784]
add eax, 0xffffffa0
xor eax, 0xe5878be
mov dword [eax + ebx + 0xc], 0
mov ecx, dword [0x101d4788]
lea eax, [ecx - 0x61]
xor eax, 0xe5878bf
mov edx, dword [eax + ebx + 0xc]
mov dword [ebp - 4], edx
test edx, edx
je 0x100c8c5e
lea eax, [ecx - 0x61]
xor eax, 0xe5878bf
mov eax, dword [eax + ebx]
mov esi, dword [eax + edi*4]
lea ebx, [eax + edi*4]
test esi, esi
je 0x100c8c56
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x100c8c4a
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x100c8c47
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov edx, dword [ebp - 4]
mov dword [ebx], 0
mov ecx, dword [0x101d4788]
mov ebx, dword [ebp + 8]
inc edi
cmp edi, edx
jb 0x100c8c13
lea eax, [ecx - 0x61]
xor eax, 0xe5878bf
lea ecx, [ebx + 8]
push 0
mov dword [eax + ebx + 0xc], 0
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x1c]
call eax
mov eax, dword [ebx + 8]
lea ecx, [ebx + 8]
push 0
mov eax, dword [eax + 0x14]
call eax
mov ecx, dword [0x101d44cc]
xor ebx, ebx
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 0x28]
mov dword [ebp - 8], eax
test eax, eax
je 0x100c8cf2
nop dword [eax]
mov eax, dword [ecx + 0x1c]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov esi, eax
mov edi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [esi + ecx], 0
jne 0x100c8cb6
xor edx, edx
test ecx, ecx
je 0x100c8cdc
movsx eax, byte [esi + edx]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x100c8cc3
cmp edi, 0x79705c5e
je 0x100c8ce7
inc ebx
cmp ebx, dword [ebp - 8]
jae 0x100c8cf2
mov ecx, dword [ebp - 4]
jmp 0x100c8ca0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax + ebx*4]
jmp 0x100c8cf4
xor ecx, ecx
push 0
push dword [ebp + 8]
push 0
call dword [0x101d45ec]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100d9040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x10], eax
mov ebx, ecx
dec eax
push edi
mov edi, edx
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 0xc]
mov esi, edi
sar eax, 1
mov ecx, edi
mov dword [ebp - 4], edx
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp edi, eax
jge 0x100d909e
nop dword [eax]
lea esi, [ecx + ecx]
push dword [ebx + esi*4 + 4]
push dword [ebx + esi*4 + 8]
call fcn.100d7c50
movzx ecx, al
xor ecx, 1
inc ecx
add ecx, esi
mov eax, dword [ebx + ecx*4]
mov dword [ebx + edi*4], eax
mov edi, ecx
mov eax, dword [ebp - 0xc]
cmp ecx, eax
jl 0x100d9070
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, ecx
cmp ecx, eax
jne 0x100d90b5
mov eax, dword [ebp - 0x10]
test al, 1
jne 0x100d90b5
mov eax, dword [ebx + eax*4 - 4]
mov edi, dword [ebp - 0x14]
mov dword [ebx + ecx*4], eax
cmp esi, edi
jge 0x100d9100
nop dword [eax]
push dword [edx]
lea esi, [edi - 1]
sar esi, 1
push dword [ebx + esi*4]
call fcn.100d7c50
test al, al
je 0x100d90f1
mov eax, dword [ebx + esi*4]
mov edx, dword [ebp - 4]
mov dword [ebx + edi*4], eax
mov edi, esi
cmp dword [ebp - 8], esi
jl 0x100d90c0
mov eax, edx
mov eax, dword [eax]
mov dword [ebx + edi*4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebx + edi*4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edx]
mov dword [ebx + edi*4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100e0cd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x101a30c0]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.100ee7e0
cmp eax, 2
jae 0x100e0cf1
mov eax, 2
jmp 0x100e0cfb
mov ecx, 0x10
cmp eax, ecx
cmova eax, ecx
push edi
push 0x14
push eax
mov dword [0x101be3c8], eax
call fcn.100fa699
xor edi, edi
mov dword [0x101dcc48], eax
add esp, 8
cmp dword [0x101be3c8], edi
jbe 0x100e0da5
xor ecx, ecx
push ebx
mov dword [ebp - 0xc], ecx
push esi
lea ebx, [ecx + eax]
mov dword [ebx + 0xc], edi
push 0x18
call fcn.100eeee0
add esp, 4
mov esi, eax
mov dword [ebp - 0x10], esi
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 8]
mov dword [ebx + 4], esi
push eax
push 0
push ebx
push 0x100e0ba0
push 0
push 0
mov dword [ebx + 8], 0x101d9620
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xf
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test esi, esi
je 0x100e0d78
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 4
call fcn.101038c5
mov ecx, dword [ebp - 8]
inc edi
mov dword [ebx + 0x10], eax
add esp, 4
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0x14
mov dword [ebp - 0xc], ecx
cmp edi, dword [0x101be3c8]
jae 0x100e0da3
mov eax, dword [0x101dcc48]
jmp 0x100e0d26
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.100eeec4
mov esp, ebp
pop ebp
ret
Function at 0x100ee1d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x100ee1f7
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x100ee1fa
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.100ee1ac
pop esi
leave
ret 8

Function at 0x10101110
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100f0250
mov eax, dword [0x101a30c0]
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.1010825c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10101152
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x101012ae
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1011a2f0
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 + 0x101bbe30]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1010e5ee
mov ecx, dword [esi*4 + 0x101bbe30]
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 0x101012a7
cmp eax, dword [ecx + edi + 0x24]
jne 0x101012a7
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 0x101012a7
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1010e5ee
add esp, 0x14
test edx, edx
jl 0x101012a7
jg 0x1010121d
test eax, eax
jb 0x101012a7
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x101012a7
jl 0x10101237
cmp dword [ebp - 0x1008], eax
ja 0x101012a7
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10101255
test ebx, ebx
je 0x1010128e
cmp ecx, edi
jae 0x1010128e
mov al, byte [ecx]
cmp al, 0xd
jne 0x1010126f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1010127b
cmp byte [ecx + 1], 0xa
jne 0x1010127b
inc ecx
jmp 0x1010127b
movzx eax, al
movsx eax, byte [eax + 0x101a3360]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10101255
cmp edx, ebx
jne 0x10101255
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x101012ac
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100eeec4
leave
ret
Function at 0x1010647c
Capabilities:
Parse pe header

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

Function at 0x1010a91a
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1010a89c
Function at 0x1010d42c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10130d98
push 0x10130d90
push str.FlsAlloc
push 0x1f
call fcn.1010d217
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1010d460
push dword [ebp + 8]
mov ecx, esi
call dword [0x1012c274]
call esi
jmp 0x1010d466
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1010d4aa
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10130da8
push 0x10130da0
push str.FlsGetValue
push 0x21
call fcn.1010d217
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1010d4e1
push dword [ebp + 8]
mov ecx, esi
call dword [0x1012c274]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1010d4e9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10130db0
push 0x10130da8
push str.FlsSetValue
push 0x22
call fcn.1010d217
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1010d523
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1012c274]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1010da86
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 + 0x101bbe30]
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 0x1010dac6
cmp byte [ebx], 0xa
jne 0x1010dac6
or byte [edi + eax + 0x28], 4
jmp 0x1010dacb
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 0x1010dbca
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1010dbad
inc eax
cmp dl, 0xd
je 0x1010daf7
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1010db1d
cmp eax, ecx
jae 0x1010db2b
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 0x1010dadf
jmp 0x1010dbca
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 0x1010dba8
cmp dword [ebp - 0x10], 0
je 0x1010dba8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x101bbe30]
test byte [eax + edi + 0x28], 0x48
je 0x1010db82
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1010db6d
mov byte [esi], dl
jmp 0x1010db7e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101bbe30]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1010dbca
cmp byte [ebp - 1], 0xa
jne 0x1010db91
cmp esi, ebx
jne 0x1010db91
mov byte [esi], 0xa
jmp 0x1010dbc9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1010e60c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1010dbca
mov byte [esi], 0xd
jmp 0x1010dbc9
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x101bbe30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1010dbc7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1010dbca
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1010dbd3
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 + 0x101bbe30]
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 0x1010dc19
cmp word [ebx], dx
jne 0x1010dc19
or byte [eax + edi + 0x28], 4
jmp 0x1010dc1e
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 0x1010dd81
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 0x1010dd61
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1010dc5f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1010dc95
cmp eax, edx
jae 0x1010dca3
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 0x1010dc3a
jmp 0x1010dd81
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 0x1010dd5c
cmp dword [ebp - 0x18], 0
je 0x1010dd5c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x101bbe30]
test byte [eax + edi + 0x28], 0x48
je 0x1010dd32
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 0x1010dcf6
mov word [esi], cx
jmp 0x1010dd2d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x101bbe30]
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 + 0x101bbe30]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x101bbe30]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1010dd81
pop eax
cmp word [ebp - 4], ax
jne 0x1010dd42
cmp esi, ebx
jne 0x1010dd42
mov word [esi], ax
jmp 0x1010dd7e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1010e60c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1010dd81
push 0xd
pop eax
jmp 0x1010dd3d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x101bbe30]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1010dd7b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1010dd81
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 0x10111d35
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 0x10111dd2
push ebx
push esi
call fcn.10111cfe
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.1010e7bc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10111d7f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10111dd1
push edi
push eax
call fcn.10107324
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10111d9f
call fcn.101072ea
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10111dd0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1010e7bc
add esp, 0x20
test eax, eax
jne 0x10111dbe
push edi
call fcn.101072ea
jmp 0x10111dc6
push ebx
call fcn.101072ea
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 0x10111dd5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10111de6
pop esi
ret
push ebx
push edi
push esi
call fcn.10111cfe
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10107324
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10111e0e
push ebx
push esi
push edi
call fcn.100f0ca0
add esp, 0xc
push 0
call fcn.101072ea
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x101121de
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10111e23

Function at 0x10115d4b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10108895
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 0x10115dba
cmp esi, dword [ebp - 4]
je 0x10115db5
cmp dword [ebp + 0xc], 0
je 0x10115db5
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10115d92
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1011589d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10115dbc
xor eax, eax
inc eax
jmp 0x10115dbc
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10115e21
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101a30c0]
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.10108895
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.10108895
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 0x10115e98
cmp word [ecx], dx
je 0x10115e98
mov eax, dword [0x101312f4]
push edi
dec eax
push eax
push 0x101311e0
call fcn.10115dc0
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10115f0b
cmp word [eax], dx
je 0x10115f0b
mov eax, dword [edi]
test eax, eax
je 0x10115ebc
cmp word [eax], dx
je 0x10115ebc
lea eax, [ebp - 0x10]
push eax
call fcn.101157a3
jmp 0x10115ec5
lea eax, [ebp - 0x10]
push eax
call fcn.1011583e
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10115f35
mov eax, dword [0x101311dc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10130ed0
call fcn.10115dc0
add esp, 0xc
test al, al
je 0x10115f35
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10115f00
cmp word [eax], di
je 0x10115f00
lea eax, [ebp - 0x10]
push eax
call fcn.101157a3
pop ecx
jmp 0x10115f37
lea eax, [ebp - 0x10]
push eax
call fcn.1011583e
jmp 0x10115efd
mov eax, dword [edi]
test eax, eax
je 0x10115f22
cmp word [eax], dx
je 0x10115f22
lea eax, [ebp - 0x10]
push eax
call fcn.10115758
pop ecx
jmp 0x10115f35
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 0x10116000
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10115c45
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10116000
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10116000
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10116000
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10115f8d
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1010d6c5
test ebx, ebx
je 0x10115ffb
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1010d6c5
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10116000
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 0x10116000
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1010a57c
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10116002
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100eeec4
leave
ret