joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1012fb60
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 0x10
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
push ebp
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov ebp, edx
cmp dword [edi + 0x10], 0
je 0x1012fb95
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10151433
add esp, 0x10
ret
lea ecx, [edi + 0x38]
call fcn.10108d40
test eax, eax
jne 0x1012fcb2
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
push eax
push eax
push eax
mov dword [edi + 0x18], 1
mov dword [edi + 0x1c], eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x28], eax
test eax, eax
jne 0x1012fbda
call ebx
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
jne 0x1012fbfb
push 0
push 0
push 0
push 0
call esi
mov dword [edi + 0x2c], eax
test eax, eax
jne 0x1012fc10
call ebx
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
je 0x1012fc10
pop esi
pop ebx
pop edi
mov eax, ecx
pop ebp
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10151433
add esp, 0x10
ret
mov eax, dword [edi + 8]
mov dword [esp + 0x14], eax
or eax, dword [edi + 0xc]
lea eax, [esp + 0x18]
mov dword [edi + 0x14], 1
mov dword [edi + 0x20], 1
push eax
je 0x1012fc89
push 4
push dword [esp + 0x18]
push ebp
push 0
push 0
call fcn.10161c9f
mov ebp, eax
add esp, 0x18
mov dword [edi + 4], ebp
test ebp, ebp
je 0x1012fc64
push dword [esp + 0x14]
xor esi, esi
push ebp
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
push ebp
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x1012fc70
call ebx
test eax, eax
mov esi, 1
cmovne esi, eax
test esi, esi
je 0x1012fca7
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10151433
add esp, 0x10
ret
push 0
push dword [esp + 0x18]
push ebp
push 0
push 0
call fcn.10161c9f
add esp, 0x18
mov dword [edi + 4], eax
test eax, eax
je 0x1012fc64
xor esi, esi
jmp 0x1012fc70
pop esi
mov dword [edi + 0x10], 1
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
pop edi
pop ebp
xor ecx, esp
call fcn.10151433
add esp, 0x10
ret
Function at 0x10130ed0
Capabilities:
Create thread

Disassembly:
sub esp, 8
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10130ef2
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x10130f03
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x10], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10130f11
xor ecx, ecx
jmp 0x10130f1d
call edi
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
jne 0x10130f86
mov dword [esi + 8], ecx
cmp dword [esi + 0x14], ecx
jne 0x10130f56
lea eax, [esp + 8]
push eax
push ecx
push esi
push 0x101315f0
push ecx
push ecx
call fcn.10161c9f
add esp, 0x18
mov dword [esi + 0x14], eax
test eax, eax
jne 0x10130f56
call edi
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
jne 0x10130f86
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x10130f73
call edi
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
jne 0x10130f86
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.10151433
add esp, 8
ret
jle 0x10130f91
movzx ecx, cx
or ecx, 0x80070000
mov eax, ecx
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.10151433
add esp, 8
ret
Function at 0x101438b0
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
sub esp, 0x150
push ebp
mov ebp, ecx
xor edx, edx
push esi
push edi
mov dword [esp + 0x14], ebp
lea esi, [ebp + 0x1c]
mov eax, dword [esi]
lea esi, [esi + 4]
bswap eax
mov dword [esp + edx*4 + 0x1c], eax
inc edx
cmp edx, 0x10
jb 0x101438c4
lea eax, [esp + 0x24]
mov edx, 0x40
nop
mov ecx, dword [eax + 0x2c]
lea eax, [eax + 4]
xor ecx, dword [eax + 0x14]
xor ecx, dword [eax - 0xc]
xor ecx, dword [eax - 4]
ror ecx, 0x1f
mov dword [eax + 0x34], ecx
sub edx, 1
jne 0x101438e0
mov eax, dword [ebp + 8]
mov esi, eax
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
mov ebp, dword [ebp + 0x14]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
nop dword [eax]
mov ecx, ebx
mov eax, edi
not ecx
and eax, ebx
and ecx, ebp
mov edx, esi
xor ecx, eax
ror esi, 0x1b
mov eax, dword [esp + 0x14]
add esi, ecx
mov ecx, dword [esp + 0x10]
add eax, 0x5a827999
mov dword [esp + 0x14], ebp
mov ebp, edi
mov edi, ebx
shr ebx, 2
shl edi, 0x1e
add esi, dword [esp + ecx*4 + 0x20]
or edi, ebx
inc ecx
add esi, eax
mov dword [esp + 0x10], ecx
mov ebx, edx
cmp ecx, 0x14
jb 0x10143920
mov edx, 0x14
mov ecx, esi
mov eax, ebp
xor eax, edi
ror esi, 0x1b
xor eax, ebx
add esi, eax
mov eax, dword [esp + 0x14]
add esi, dword [esp + edx*4 + 0x20]
add eax, 0x6ed9eba1
mov dword [esp + 0x14], ebp
inc edx
mov ebp, edi
add esi, eax
mov edi, ebx
shr ebx, 2
shl edi, 0x1e
or edi, ebx
mov ebx, ecx
cmp edx, 0x28
jb 0x10143967
mov dword [esp + 0x10], 0x28
mov ecx, edi
mov eax, edi
and eax, ebx
xor ecx, ebx
and ecx, ebp
mov edx, esi
xor ecx, eax
ror esi, 0x1b
mov eax, dword [esp + 0x10]
add ecx, dword [esp + eax*4 + 0x20]
mov eax, dword [esp + 0x14]
add eax, 0x8f1bbcdc
mov dword [esp + 0x14], ebp
add esi, eax
mov ebp, edi
mov eax, dword [esp + 0x10]
mov edi, ebx
shr ebx, 2
inc eax
shl edi, 0x1e
add esi, ecx
or edi, ebx
mov dword [esp + 0x10], eax
mov ebx, edx
cmp eax, 0x3c
jb 0x101439a3
mov edx, dword [esp + 0x14]
mov ecx, 0x3c
mov dword [esp + 0x10], esi
add edx, 0xca62c1d6
ror esi, 0x1b
mov eax, ebp
xor eax, edi
add esi, edx
xor eax, ebx
mov edx, ebp
add eax, dword [esp + ecx*4 + 0x20]
mov ebp, edi
mov edi, ebx
inc ecx
shr ebx, 2
add esi, eax
shl edi, 0x1e
or edi, ebx
mov ebx, dword [esp + 0x10]
cmp ecx, 0x50
jb 0x101439f2
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
pop ebx
add eax, esi
add dword [ecx + 0x10], edi
add dword [ecx + 0x14], ebp
pop edi
mov dword [ecx + 8], eax
mov eax, dword [esp + 8]
add dword [ecx + 0xc], eax
add dword [ecx + 0x18], edx
pop esi
pop ebp
add esp, 0x150
ret
Function at 0x1014d470
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
sub eax, ecx
mul dword [esp + 0xc]
shrd eax, edx, 0x10
add eax, ecx
cmp dword [esp + 8], 0
je 0x1014d491
mov dword [esi + 8], eax
jmp 0x1014d49a
lea ecx, [eax + 1]
mov eax, dword [esi + 8]
mov dword [esi + 4], ecx
xor ecx, eax
cmp ecx, 0x1000000
jae 0x1014d4d8
mov ecx, dword [esi]
shr eax, 0x18
push eax
mov edx, dword [ecx]
call dword [edx]
mov eax, dword [esi + 8]
xor edx, edx
mov ecx, dword [esi + 4]
shl eax, 8
or eax, 0xff
shl ecx, 8
test ecx, ecx
mov dword [esi + 8], eax
sete dl
add edx, ecx
mov dword [esi + 4], edx
xor edx, eax
cmp edx, 0x1000000
jb 0x1014d4a4
pop esi
ret 8

Function at 0x1014d4e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x814]
mov eax, dword [eax + 8]
cmp byte [eax + 6], 0
je 0x1014d5ca
mov edx, dword [esi + 4]
push ebp
mov ebp, dword [esp + 0x10]
cmp ebp, 0xffffffff
jne 0x1014d542
mov dword [esi + 8], edx
mov ecx, dword [esi]
shr edx, 0x18
push edx
mov eax, dword [ecx]
call dword [eax]
mov edx, dword [esi + 8]
xor ecx, ecx
mov eax, dword [esi + 4]
shl edx, 8
or edx, 0xff
shl eax, 8
test eax, eax
mov dword [esi + 8], edx
sete cl
add ecx, eax
mov dword [esi + 4], ecx
xor ecx, edx
cmp ecx, 0x1000000
jb 0x1014d507
pop ebp
pop esi
pop ebx
ret 4
lea eax, [edx + 1]
mov edx, dword [esi + 8]
mov dword [esi + 4], eax
xor eax, edx
cmp eax, 0x1000000
jae 0x1014d589
mov ecx, dword [esi]
shr edx, 0x18
push edx
mov eax, dword [ecx]
call dword [eax]
mov edx, dword [esi + 8]
xor ecx, ecx
mov eax, dword [esi + 4]
shl edx, 8
or edx, 0xff
shl eax, 8
test eax, eax
mov dword [esi + 8], edx
sete cl
add ecx, eax
mov dword [esi + 4], ecx
xor ecx, edx
cmp ecx, 0x1000000
jb 0x1014d554
mov ebx, 7
lea eax, [esi + 0xc]
push edi
mov ecx, eax
call fcn.1011b940
mov ecx, ebx
mov edi, ebp
sar edi, cl
mov ecx, esi
and edi, 1
lea eax, [eax*2 + 1]
push eax
push edi
call fcn.1014d470
push edi
lea ecx, [esi + 0xc]
call fcn.1011b9e0
sub ebx, 1
lea eax, [esi + 0xc]
jns 0x1014d592
pop edi
pop ebp
pop esi
pop ebx
ret 4
mov eax, dword [esi + 4]
mov edx, eax
mov ebx, dword [esp + 0xc]
mov ecx, eax
shr edx, 0x18
test eax, eax
je 0x1014d629
test ebx, ebx
js 0x1014d5e8
cmp eax, dword [esi + 0x17828]
jne 0x1014d631
mov ecx, dword [esi]
push edx
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [esi]
movzx eax, byte [esi + 6]
push eax
mov edx, dword [ecx]
call dword [edx]
mov ecx, dword [esi]
movzx eax, byte [esi + 5]
push eax
mov edx, dword [ecx]
call dword [edx]
mov ecx, dword [esi]
movzx eax, byte [esi + 4]
push eax
mov edx, dword [ecx]
call dword [edx]
mov ecx, dword [esi]
push dword [esi + 4]
push dword [esi + 0x17824]
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esi + 4], 0
xor ecx, ecx
test ebx, ebx
js 0x1014d53d
lea eax, [ecx + 1]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x17824]
pop esi
mov byte [ecx + eax], bl
pop ebx
ret 4
Function at 0x1014ec30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101846a5
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x101e6040]
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 esi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [esi + 0x44]
movzx eax, byte [ebx + 9]
push eax
call fcn.10150f70
movzx eax, byte [ebx + 8]
lea ecx, [esi + 0x50]
push eax
call fcn.10150f70
lea ecx, [esi + 0x68]
call fcn.100ab940
push 0x40
call fcn.1015144f
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov byte [edi + 0xc], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov word [edi + 0x38], 0
mov ecx, dword [esi + 0x6c]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], edi
mov eax, dword [ebx + 0xc]
mov dword [edi + 8], eax
mov esi, dword [ebx]
test esi, esi
je 0x1014ecf3
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [edi]
test ecx, ecx
je 0x1014ecff
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi], esi
mov esi, dword [ebx + 4]
test esi, esi
je 0x1014ed0e
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x1014ed1b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 4], esi
mov esi, dword [ebx]
test esi, esi
jne 0x1014ed27
mov esi, dword [ebx + 4]
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
mov eax, dword [esi]
push ecx
push 0x101a1aa0
push esi
call dword [eax]
mov eax, dword [ebp - 0x14]
test eax, eax
setne cl
mov byte [edi + 0x38], cl
mov dword [ebp - 4], 1
test eax, eax
je 0x1014ed5f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 2
mov eax, dword [esi]
push ecx
push 0x101a1ad0
push esi
call dword [eax]
mov eax, dword [ebp - 0x14]
test eax, eax
setne cl
mov byte [edi + 0x39], cl
mov dword [ebp - 4], 3
test eax, eax
je 0x1014ed97
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
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.10151433
mov esp, ebp
pop ebp
ret 4
Function at 0x10155825
Capabilities:
Parse pe header

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

Function at 0x1015cced
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10178bb0
mov eax, dword [0x101e6040]
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.10162790
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1015cd2f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1015ce8b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10178910
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 + 0x101ea9b8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1016bd43
mov ecx, dword [esi*4 + 0x101ea9b8]
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 0x1015ce84
cmp eax, dword [ecx + edi + 0x24]
jne 0x1015ce84
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 0x1015ce84
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1016bd43
add esp, 0x14
test edx, edx
jl 0x1015ce84
jg 0x1015cdfa
test eax, eax
jb 0x1015ce84
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1015ce84
jl 0x1015ce14
cmp dword [ebp - 0x1008], eax
ja 0x1015ce84
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1015ce32
test ebx, ebx
je 0x1015ce6b
cmp ecx, edi
jae 0x1015ce6b
mov al, byte [ecx]
cmp al, 0xd
jne 0x1015ce4c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1015ce58
cmp byte [ecx + 1], 0xa
jne 0x1015ce58
inc ecx
jmp 0x1015ce58
movzx eax, al
movsx eax, byte [eax + 0x101e69c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1015ce32
cmp edx, ebx
jne 0x1015ce32
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1015ce89
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10151433
leave
ret
Function at 0x1015e298
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x101e6040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x1018645c
push esi
call fcn.1015fef4
pop ecx
pop ecx
test eax, eax
jne 0x1015e2c6
xor al, al
jmp 0x1015e343
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.1015dfcd
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x1015e300
push dword [ebp - 0x210]
call fcn.10154f5a
xor al, al
jmp 0x1015e341
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1015e306
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x1015e326
push edx
call fcn.1015e1cf
pop ecx
test al, al
je 0x1015e2f1
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1015e334
mov bl, 1
push dword [ebp - 0x210]
call fcn.10154f5a
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10151433
leave
ret

Function at 0x1016751d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101878a4
push 0x1018789c
push str.FlsAlloc
push 0x1f
call fcn.10167348
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10167551
push dword [ebp + 8]
mov ecx, esi
call dword [0x101852e0]
call esi
jmp 0x10167557
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1016759b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101878b4
push 0x101878ac
push str.FlsGetValue
push 0x21
call fcn.10167348
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101675d2
push dword [ebp + 8]
mov ecx, esi
call dword [0x101852e0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x101675da
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101878bc
push 0x101878b4
push str.FlsSetValue
push 0x22
call fcn.10167348
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10167614
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x101852e0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10168d11
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 0x10168dae
push ebx
push esi
call fcn.10168cda
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.10168c6e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10168d5b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10168dad
push edi
push eax
call fcn.10167a69
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10168d7b
call fcn.101678dc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10168dac
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10168c6e
add esp, 0x20
test eax, eax
jne 0x10168d9a
push edi
call fcn.101678dc
jmp 0x10168da2
push ebx
call fcn.101678dc
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 0x10168db1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10168dc2
pop esi
ret
push ebx
push edi
push esi
call fcn.10168cda
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10167a69
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10168dea
push ebx
push esi
push edi
call fcn.101528b0
add esp, 0xc
push 0
call fcn.101678dc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x101691ba
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10168dff
Function at 0x1016bdbf
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 + 0x101ea9b8]
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 0x1016bdff
cmp byte [ebx], 0xa
jne 0x1016bdff
or byte [edi + eax + 0x28], 4
jmp 0x1016be04
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 0x1016bf03
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1016bee6
inc eax
cmp dl, 0xd
je 0x1016be30
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1016be56
cmp eax, ecx
jae 0x1016be64
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 0x1016be18
jmp 0x1016bf03
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 0x1016bee1
cmp dword [ebp - 0x10], 0
je 0x1016bee1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x101ea9b8]
test byte [eax + edi + 0x28], 0x48
je 0x1016bebb
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1016bea6
mov byte [esi], dl
jmp 0x1016beb7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101ea9b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1016bf03
cmp byte [ebp - 1], 0xa
jne 0x1016beca
cmp esi, ebx
jne 0x1016beca
mov byte [esi], 0xa
jmp 0x1016bf02
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1016bd61
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1016bf03
mov byte [esi], 0xd
jmp 0x1016bf02
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x101ea9b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1016bf00
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1016bf03
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1016bf0c
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 + 0x101ea9b8]
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 0x1016bf52
cmp word [ebx], dx
jne 0x1016bf52
or byte [eax + edi + 0x28], 4
jmp 0x1016bf57
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 0x1016c0ba
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 0x1016c09a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1016bf98
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1016bfce
cmp eax, edx
jae 0x1016bfdc
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 0x1016bf73
jmp 0x1016c0ba
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 0x1016c095
cmp dword [ebp - 0x18], 0
je 0x1016c095
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x101ea9b8]
test byte [eax + edi + 0x28], 0x48
je 0x1016c06b
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 0x1016c02f
mov word [esi], cx
jmp 0x1016c066
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x101ea9b8]
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 + 0x101ea9b8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x101ea9b8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1016c0ba
pop eax
cmp word [ebp - 4], ax
jne 0x1016c07b
cmp esi, ebx
jne 0x1016c07b
mov word [esi], ax
jmp 0x1016c0b7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1016bd61
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1016c0ba
push 0xd
pop eax
jmp 0x1016c076
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x101ea9b8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1016c0b4
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1016c0ba
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 0x1016f6d0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10166db8
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 0x1016f73f
cmp esi, dword [ebp - 4]
je 0x1016f73a
cmp dword [ebp + 0xc], 0
je 0x1016f73a
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1016f717
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1016f222
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1016f741
xor eax, eax
inc eax
jmp 0x1016f741
xor eax, eax
pop edi
pop esi
leave
ret