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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10049305
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10059040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], edx
cmp dword [edx + 0x14], 0xf
mov dword [ebp - 0x14], edx
jbe 0x1000fb54
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x1000fb78
mov edi, dword [ebp - 0x14]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x1000fb63
mov edi, dword [ebp - 0x1c]
push esi
push edx
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.100100d0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1000fba8
mov dword [edi], eax
mov eax, edi
mov byte [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebx + 8], 0x71c71c7
je 0x1000fcf4
lea eax, [ebx + 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
push 0x24
mov dword [ebp - 0x14], 0
call fcn.1002965b
add esp, 4
mov edi, eax
mov dword [ebp - 0x14], edi
push dword [ebp - 0x10]
lea ecx, [edi + 8]
call fcn.10003620
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x18]
mov dword [edi + 0x20], ecx
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
inc eax
movss xmm3, dword [ebx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10054220]
mov eax, dword [ebx + 0x1c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x10054220]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x1000fc85
divss xmm0, xmm3
call fcn.10001450
call fcn.10048220
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x1000fc69
cmp eax, 0x200
jae 0x1000fc67
shl eax, 3
cmp eax, ecx
jae 0x1000fc69
mov eax, ecx
push eax
mov ecx, ebx
call fcn.1000f7a0
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.100100d0
mov edx, dword [eax]
jmp 0x1000fc88
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov dword [edi + 4], eax
mov dword [edi], edx
mov dword [eax], edi
mov dword [edx + 4], edi
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
and eax, esi
mov dword [ebp - 0x14], 0
mov esi, dword [ecx + eax*8]
cmp esi, dword [ebx + 4]
jne 0x1000fcb7
mov dword [ecx + eax*8], edi
jmp 0x1000fcc9
cmp esi, edx
jne 0x1000fcc0
mov dword [ecx + eax*8], edi
jmp 0x1000fccd
mov edx, dword [ebp - 0x10]
cmp dword [ecx + eax*8 + 4], edx
jne 0x1000fccd
mov dword [ecx + eax*8 + 4], edi
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
mov dword [esi], edi
mov byte [esi + 4], 1
call fcn.1000f710
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.10028306
int3
Function at 0x1000fd00
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10049285
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10059040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], edx
cmp dword [edx + 0x14], 0xf
mov dword [ebp - 0x14], edx
jbe 0x1000fd44
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x1000fd68
mov edi, dword [ebp - 0x14]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x1000fd53
mov edi, dword [ebp - 0x1c]
push esi
push edx
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.100100d0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1000fd98
mov dword [edi], eax
mov eax, edi
mov byte [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebx + 8], 0x71c71c7
je 0x1000fed3
lea eax, [ebx + 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
push 0x24
mov dword [ebp - 0x20], 0
call fcn.1002965b
add esp, 4
mov edi, eax
mov dword [ebp - 0x20], edi
push dword [ebp - 0x10]
lea ecx, [edi + 8]
call fcn.10003620
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x18]
mov dword [edi + 0x20], ecx
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
inc eax
movss xmm3, dword [ebx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10054220]
mov eax, dword [ebx + 0x1c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x10054220]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x1000fe75
divss xmm0, xmm3
call fcn.10001450
call fcn.10048220
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x1000fe59
cmp eax, 0x200
jae 0x1000fe57
shl eax, 3
cmp eax, ecx
jae 0x1000fe59
mov eax, ecx
push eax
mov ecx, ebx
call fcn.1000f7a0
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.100100d0
mov edx, dword [eax]
jmp 0x1000fe78
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov dword [edi + 4], eax
mov dword [edi], edx
mov dword [eax], edi
mov dword [edx + 4], edi
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
and eax, esi
mov esi, dword [ecx + eax*8]
cmp esi, dword [ebx + 4]
jne 0x1000fea0
mov dword [ecx + eax*8], edi
jmp 0x1000feb2
cmp esi, edx
jne 0x1000fea9
mov dword [ecx + eax*8], edi
jmp 0x1000feb6
mov edx, dword [ebp - 0x10]
cmp dword [ecx + eax*8 + 4], edx
jne 0x1000feb6
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebp - 0x1c]
mov dword [eax], edi
mov byte [eax + 4], 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 8
push str.unordered_map_set_too_long
call fcn.10028306
int3
Function at 0x1000fee0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10048745
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10059040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x18], edi
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor ecx, eax
movzx eax, byte [ebx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.10010160
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1000ff63
mov dword [edi], eax
mov byte [edi + 4], 0
jmp 0x100100a0
cmp dword [0x1005b194], 0xfffffff
je 0x100100b6
mov dword [ebp - 0x28], 0x1005b190
mov dword [ebp - 4], 0
push 0x10
mov dword [ebp - 0x24], 0
call fcn.1002965b
mov ecx, dword [ebx]
mov esi, eax
lea edi, [esi + 8]
add esp, 4
mov dword [edi], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x24], esi
mov ecx, dword [ecx]
mov dword [edi + 4], ecx
mov dword [ebp - 4], 1
mov ecx, dword [0x1005b194]
mov ebx, dword [0x1005b1a8]
lea eax, [ecx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10054220]
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm3, xmm0
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
movaps xmm2, xmm3
addsd xmm0, qword [eax*8 + 0x10054220]
cvtpd2ps xmm1, xmm0
movss xmm0, dword [0x1005b18c]
divss xmm2, xmm1
comiss xmm2, xmm0
jbe 0x1001004f
divss xmm3, xmm0
movaps xmm0, xmm3
call fcn.10001450
call fcn.10048220
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x10010032
cmp ebx, 0x200
jae 0x10010030
shl ebx, 3
cmp ebx, ecx
jae 0x10010032
mov ebx, ecx
push ebx
call fcn.1000f990
push dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.10010160
mov ecx, dword [0x1005b194]
mov edx, dword [eax]
jmp 0x10010052
mov edx, dword [ebp - 0x20]
mov ebx, dword [edx + 4]
inc ecx
mov dword [0x1005b194], ecx
mov dword [esi], edx
mov dword [esi + 4], ebx
mov dword [ebx], esi
mov dword [edx + 4], esi
mov eax, dword [0x1005b1a4]
and eax, dword [ebp - 0x14]
mov ecx, dword [0x1005b198]
mov edi, dword [ecx + eax*8]
cmp edi, dword [0x1005b190]
jne 0x10010084
mov dword [ecx + eax*8], esi
jmp 0x10010093
cmp edi, edx
jne 0x1001008d
mov dword [ecx + eax*8], esi
jmp 0x10010097
cmp dword [ecx + eax*8 + 4], ebx
jne 0x10010097
mov dword [ecx + eax*8 + 4], esi
mov edi, dword [ebp - 0x18]
mov dword [edi], esi
mov byte [edi + 4], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push str.unordered_map_set_too_long
call fcn.10028306
int3
Function at 0x10020120
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, edx
mov dword [ebp - 4], eax
and edi, 0x1f
mov dword [ebp - 8], edi
cmp edi, 8
jb 0x10020246
mov ecx, edi
shr ecx, 3
cmp dword [ebp + 0x10], 1
jne 0x100201c5
mov dword [ebp - 8], ecx
push 0xc2b2ae3d
push 0x27d4eb4f
push dword [eax + 4]
push dword [eax]
call fcn.1002a000
add dword [ebp - 4], 8
mov ecx, eax
push 0x9e3779b1
shld ecx, edx, 0x1f
shld edx, eax, 0x1f
push 0x85ebca87
push edx
push ecx
call fcn.1002a000
mov ecx, eax
xor edx, esi
xor ecx, ebx
mov eax, ecx
push 0x9e3779b1
shld eax, edx, 0x1b
shld edx, ecx, 0x1b
push 0x85ebca87
push edx
push eax
call fcn.1002a000
mov ebx, eax
mov esi, edx
mov eax, dword [ebp - 4]
add ebx, 0xc2b2ae63
adc esi, 0x85ebca77
sub edi, 8
sub dword [ebp - 8], 1
jne 0x10020153
jmp 0x10020240
mov dword [ebp - 8], ecx
nop dword [eax + eax]
push 0xc2b2ae3d
push 0x27d4eb4f
push dword [eax + 4]
push dword [eax]
call fcn.1002a000
add dword [ebp - 4], 8
mov ecx, eax
push 0x9e3779b1
shld ecx, edx, 0x1f
shld edx, eax, 0x1f
push 0x85ebca87
push edx
push ecx
call fcn.1002a000
mov ecx, eax
xor edx, esi
xor ecx, ebx
mov eax, ecx
push 0x9e3779b1
shld eax, edx, 0x1b
shld edx, ecx, 0x1b
push 0x85ebca87
push edx
push eax
call fcn.1002a000
mov ebx, eax
mov esi, edx
mov eax, dword [ebp - 4]
add ebx, 0xc2b2ae63
adc esi, 0x85ebca77
sub edi, 8
sub dword [ebp - 8], 1
jne 0x100201d0
mov eax, dword [ebp - 4]
mov dword [ebp - 8], edi
mov ecx, eax
cmp edi, 4
jb 0x1002029d
add eax, 4
mov dword [ebp - 4], eax
mov eax, 0x9e3779b1
mul dword [ecx]
push 0xc2b2ae3d
mov edi, eax
mov eax, 0x85ebca87
mul dword [ecx]
push 0x27d4eb4f
add edi, edx
xor eax, ebx
xor edi, esi
mov ecx, eax
shld ecx, edi, 0x17
shld edi, eax, 0x17
push edi
push ecx
call fcn.1002a000
mov edi, dword [ebp - 8]
mov ebx, eax
mov eax, dword [ebp - 4]
add ebx, 0x9e3779f9
mov esi, edx
adc esi, 0x165667b1
sub edi, 4
test edi, edi
je 0x100202e4
movzx eax, byte [eax]
push 0x27d4eb2f
cdq
push 0x165667c5
push edx
push eax
call fcn.1002a000
inc dword [ebp - 4]
xor ebx, eax
xor esi, edx
mov eax, ebx
push 0x9e3779b1
shld eax, esi, 0xb
push 0x85ebca87
shld esi, ebx, 0xb
push esi
push eax
call fcn.1002a000
mov ebx, eax
mov eax, dword [ebp - 4]
mov esi, edx
sub edi, 1
jne 0x100202a1
push 0xc2b2ae3d
xor ecx, ecx
mov edx, esi
push 0x27d4eb4f
shr edx, 1
xor ecx, esi
xor edx, ebx
push ecx
push edx
call fcn.1002a000
mov esi, eax
mov ecx, edx
shrd esi, ecx, 0x1d
push 0x165667b1
shr ecx, 0x1d
xor esi, eax
push 0x9e3779f9
xor ecx, edx
push ecx
push esi
call fcn.1002a000
mov ecx, edx
xor esi, esi
pop edi
xor eax, ecx
xor edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100339af
Capabilities:
Parse pe header

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

Function at 0x10038cf5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004e380
push 0x1004e378
push str.FlsAlloc
push 0x1f
call fcn.10038bbd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10038d29
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004a1c0]
call esi
jmp 0x10038d2f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10038d73
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004e390
push 0x1004e388
push str.FlsGetValue
push 0x21
call fcn.10038bbd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10038daa
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004a1c0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10038db2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004e398
push 0x1004e390
push str.FlsSetValue
push 0x22
call fcn.10038bbd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10038dec
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1004a1c0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1003ac9c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1002a560
mov eax, dword [0x10059040]
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.10035c8a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1003acde
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1003ae3a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10047810
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 + 0x1005aba0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1003be72
mov ecx, dword [esi*4 + 0x1005aba0]
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 0x1003ae33
cmp eax, dword [ecx + edi + 0x24]
jne 0x1003ae33
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 0x1003ae33
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1003be72
add esp, 0x14
test edx, edx
jl 0x1003ae33
jg 0x1003ada9
test eax, eax
jb 0x1003ae33
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1003ae33
jl 0x1003adc3
cmp dword [ebp - 0x1008], eax
ja 0x1003ae33
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1003ade1
test ebx, ebx
je 0x1003ae1a
cmp ecx, edi
jae 0x1003ae1a
mov al, byte [ecx]
cmp al, 0xd
jne 0x1003adfb
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1003ae07
cmp byte [ecx + 1], 0xa
jne 0x1003ae07
inc ecx
jmp 0x1003ae07
movzx eax, al
movsx eax, byte [eax + 0x100592f0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1003ade1
cmp edx, ebx
jne 0x1003ade1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1003ae38
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10029593
leave
ret
Function at 0x1003b30a
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 + 0x1005aba0]
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 0x1003b34a
cmp byte [ebx], 0xa
jne 0x1003b34a
or byte [edi + eax + 0x28], 4
jmp 0x1003b34f
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 0x1003b44e
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1003b431
inc eax
cmp dl, 0xd
je 0x1003b37b
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1003b3a1
cmp eax, ecx
jae 0x1003b3af
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 0x1003b363
jmp 0x1003b44e
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 0x1003b42c
cmp dword [ebp - 0x10], 0
je 0x1003b42c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1005aba0]
test byte [eax + edi + 0x28], 0x48
je 0x1003b406
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1003b3f1
mov byte [esi], dl
jmp 0x1003b402
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1005aba0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1003b44e
cmp byte [ebp - 1], 0xa
jne 0x1003b415
cmp esi, ebx
jne 0x1003b415
mov byte [esi], 0xa
jmp 0x1003b44d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1003be90
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1003b44e
mov byte [esi], 0xd
jmp 0x1003b44d
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1005aba0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1003b44b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1003b44e
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1003b457
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 + 0x1005aba0]
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 0x1003b49d
cmp word [ebx], dx
jne 0x1003b49d
or byte [eax + edi + 0x28], 4
jmp 0x1003b4a2
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 0x1003b605
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 0x1003b5e5
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1003b4e3
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1003b519
cmp eax, edx
jae 0x1003b527
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 0x1003b4be
jmp 0x1003b605
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 0x1003b5e0
cmp dword [ebp - 0x18], 0
je 0x1003b5e0
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1005aba0]
test byte [eax + edi + 0x28], 0x48
je 0x1003b5b6
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 0x1003b57a
mov word [esi], cx
jmp 0x1003b5b1
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1005aba0]
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 + 0x1005aba0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1005aba0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1003b605
pop eax
cmp word [ebp - 4], ax
jne 0x1003b5c6
cmp esi, ebx
jne 0x1003b5c6
mov word [esi], ax
jmp 0x1003b602
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1003be90
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1003b605
push 0xd
pop eax
jmp 0x1003b5c1
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1005aba0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1003b5ff
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1003b605
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 0x1003e47d
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 0x1003e51a
push ebx
push esi
call fcn.1003e446
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.1003d21b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1003e4c7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003e519
push edi
push eax
call fcn.10034d19
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1003e4e7
call fcn.10034cdf
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003e518
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1003d21b
add esp, 0x20
test eax, eax
jne 0x1003e506
push edi
call fcn.10034cdf
jmp 0x1003e50e
push ebx
call fcn.10034cdf
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 0x10042141
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10036389
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 0x100421b0
cmp esi, dword [ebp - 4]
je 0x100421ab
cmp dword [ebp + 0xc], 0
je 0x100421ab
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10042188
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10041c93
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100421b2
xor eax, eax
inc eax
jmp 0x100421b2
xor eax, eax
pop edi
pop esi
leave
ret