joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002a810
Capabilities:
Hash data with crc32

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [0x100c6d88]
push ebp
push esi
mov esi, ebx
mov dword [esp + 0x10], 0
push edi
mov edi, ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], edi
mov ecx, dword [esi + 0x2c6c]
mov ebp, dword [esi + 0x2c70]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov byte [esp + 0x2c], 0
cmp ecx, ebp
jne 0x1002a910
lea edi, [ecx + 1]
test ebp, ebp
je 0x1002a880
mov eax, ebp
cdq
sub eax, edx
sar eax, 1
add eax, ebp
jmp 0x1002a885
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, ebp
jle 0x1002a90c
inc dword [esi + 0x36c]
lea eax, [edi*8]
sub eax, edi
shl eax, 2
push eax
call fcn.100643d2
mov ebx, eax
add esp, 4
mov eax, dword [esi + 0x2c74]
test eax, eax
je 0x1002a8f4
mov ecx, dword [esi + 0x2c6c]
lea edx, [ecx*8]
sub edx, ecx
shl edx, 2
push edx
push eax
push ebx
call fcn.10056e20
mov ecx, dword [esi + 0x2c74]
add esp, 0xc
test ecx, ecx
je 0x1002a8eb
mov eax, dword [0x100c6d88]
test eax, eax
je 0x1002a8eb
dec dword [eax + 0x36c]
push ecx
call fcn.1005ad82
add esp, 4
mov ecx, dword [esi + 0x2c6c]
mov dword [esi + 0x2c74], ebx
mov ebx, dword [0x100c6d88]
mov dword [esi + 0x2c70], edi
mov edi, dword [esp + 0x10]
movups xmm0, xmmword [esp + 0x14]
mov eax, dword [esp + 0x2c]
lea edx, [ecx*8]
sub edx, ecx
mov ecx, dword [esi + 0x2c74]
movups xmmword [ecx + edx*4], xmm0
movq xmm0, qword [esp + 0x24]
movq qword [ecx + edx*4 + 0x10], xmm0
mov dword [ecx + edx*4 + 0x18], eax
inc dword [esi + 0x2c6c]
mov eax, dword [esi + 0x2c6c]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x2c74]
mov esi, edi
lea ebp, [eax + ecx*4]
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x1002a960
sub esi, ecx
test ebx, ebx
je 0x1002a973
inc dword [ebx + 0x36c]
inc esi
push esi
call fcn.100643d2
push esi
push edi
push eax
call fcn.10056e20
mov dword [ebp - 0x1c], eax
lea esi, [edi + 1]
mov al, byte [edi]
add esp, 0x10
or edx, 0xffffffff
test al, al
je 0x1002a9be
or edi, 0xffffffff
cmp al, 0x23
jne 0x1002a9a5
cmp byte [esi], al
jne 0x1002a9a5
cmp byte [esi + 1], al
cmove edx, edi
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x10089010]
test al, al
jne 0x1002a997
pop edi
not edx
lea eax, [ebp - 0x1c]
pop esi
mov dword [ebp - 0x18], edx
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x1002a9d0
Capabilities:
Hash data with crc32

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, edx
mov edx, dword [0x100c6d88]
mov dword [esp + 0x14], edx
push edi
mov edi, ecx
test esi, esi
jne 0x1002a9f9
mov esi, edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x1002a9f0
sub esi, ecx
test edx, edx
je 0x1002aa03
inc dword [edx + 0x36c]
lea eax, [esi + 1]
push eax
call fcn.100643d2
push esi
push edi
push eax
lea ebp, [eax + esi]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], ebp
call fcn.10056e20
mov edx, dword [esp + 0x2c]
xor ecx, ecx
add esp, 0x10
mov byte [ebp], 0
xor ebx, ebx
mov dword [esp + 0x14], ecx
mov edi, edx
cmp edx, ebp
jae 0x1002aba7
nop dword [eax]
mov al, byte [edi]
cmp al, 0xa
je 0x1002abd3
cmp al, 0xd
je 0x1002abd3
mov esi, edi
cmp edi, ebp
jae 0x1002aa67
mov al, byte [esi]
cmp al, 0xa
je 0x1002aa67
cmp al, 0xd
je 0x1002aa67
inc esi
cmp esi, ebp
jb 0x1002aa58
mov byte [esi], 0
mov al, byte [edi]
cmp al, 0x3b
je 0x1002ab98
cmp al, 0x5b
jne 0x1002ab7d
cmp esi, edi
jbe 0x1002ab7d
cmp byte [esi - 1], 0x5d
lea ebp, [esi - 1]
jne 0x1002ab79
lea ebx, [edi + 1]
mov byte [ebp], 0
mov eax, ebp
sub eax, ebx
push eax
push 0x5d
push ebx
call fcn.10057510
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
je 0x1002aad0
lea ecx, [eax + 1]
sub ebp, ecx
push ebp
push 0x5b
push ecx
call fcn.10057510
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x1002aad0
mov eax, dword [esp + 0x14]
mov byte [eax], 0
jmp 0x1002aad7
mov ebx, str.Window
mov ecx, edi
mov ebp, dword [0x100c6d88]
lea eax, [ecx + 1]
mov cl, byte [ebx]
lea edi, [ebx + 1]
mov dword [esp + 0x14], eax
or eax, 0xffffffff
test cl, cl
je 0x1002ab21
or ebp, 0xffffffff
cmp cl, 0x23
jne 0x1002ab02
cmp byte [edi], cl
jne 0x1002ab02
cmp byte [edi + 1], cl
cmove eax, ebp
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [edi]
inc edi
xor eax, dword [edx*4 + 0x10089010]
test cl, cl
jne 0x1002aaf3
mov ebp, dword [0x100c6d88]
mov edi, dword [ebp + 0x2c60]
xor ecx, ecx
not eax
test edi, edi
jle 0x1002ab44
mov ebx, dword [ebp + 0x2c68]
lea edx, [ebx + 4]
cmp dword [edx], eax
je 0x1002ab52
inc ecx
add edx, 0x18
cmp ecx, edi
jl 0x1002ab38
xor ebx, ebx
mov ebp, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x14], ecx
jmp 0x1002ab98
lea eax, [ecx + ecx*2]
lea ebx, [ebx + eax*8]
test ebx, ebx
je 0x1002ab46
push dword [esp + 0x14]
mov eax, dword [ebx + 8]
push ebx
push dword [esp + 0x20]
call eax
mov ebp, dword [esp + 0x1c]
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x14], ecx
jmp 0x1002ab98
mov ebp, dword [esp + 0x10]
test ebx, ebx
je 0x1002ab98
test ecx, ecx
je 0x1002ab98
mov eax, dword [ebx + 0xc]
push edi
push ecx
push ebx
push dword [esp + 0x24]
call eax
mov ecx, dword [esp + 0x24]
add esp, 0x10
lea edi, [esi + 1]
cmp edi, ebp
jb 0x1002aa40
mov edx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
test edx, edx
je 0x1002abbe
mov eax, dword [0x100c6d88]
test eax, eax
je 0x1002abbe
dec dword [eax + 0x36c]
push edx
call fcn.1005ad82
mov eax, dword [esp + 0xc]
mov byte [eax + 0x2c4c], 1
add esp, 0x14
ret
inc edi
jmp 0x1002aa40
Function at 0x1002e400
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, ecx
mov dword [esp + 8], 0xffffffff
push ebp
push esi
mov eax, edx
mov dword [esp + 0xc], ebx
movq xmm0, qword [ebx + 0x70]
mov esi, dword [ebx + 0x78]
movq qword [esp + 0x20], xmm0
mov dword [esp + 0x14], eax
push edi
mov edi, dword [esp + 0x24]
test esi, esi
js 0x1002e572
xor edx, edx
test esi, esi
jle 0x1002e574
mov cl, byte [edi]
mov edx, 1
test cl, cl
je 0x1002e574
cmp cl, 3
jne 0x1002e4f6
cmp edx, esi
jl 0x1002e45f
xor al, al
jmp 0x1002e463
mov al, byte [edi + edx]
inc edx
movzx ecx, al
cmp edx, esi
jl 0x1002e46e
xor al, al
jmp 0x1002e472
mov al, byte [edi + edx]
inc edx
shl ecx, 8
movzx eax, al
or ecx, eax
mov dword [esp + 0x1c], ecx
cmp edx, esi
jl 0x1002e486
xor al, al
jmp 0x1002e48a
mov al, byte [edi + edx]
inc edx
movzx ebp, al
cmp edx, esi
jl 0x1002e495
xor al, al
jmp 0x1002e499
mov al, byte [edi + edx]
inc edx
shl ebp, 8
xor ebx, ebx
movzx eax, al
or ebp, eax
test ecx, ecx
je 0x1002e4f2
cmp edx, esi
jl 0x1002e4af
xor al, al
jmp 0x1002e4b3
mov al, byte [edi + edx]
inc edx
movzx eax, al
mov dword [esp + 0x20], eax
cmp edx, esi
jl 0x1002e4c2
xor al, al
jmp 0x1002e4c6
mov al, byte [edi + edx]
inc edx
movzx eax, al
cmp edx, esi
jl 0x1002e4d1
xor cl, cl
jmp 0x1002e4d5
mov cl, byte [edi + edx]
inc edx
shl eax, 8
movzx ecx, cl
or eax, ecx
mov ecx, dword [esp + 0x18]
cmp ecx, ebp
jl 0x1002e4e9
cmp ecx, eax
jl 0x1002e568
inc ebx
mov ebp, eax
cmp ebx, dword [esp + 0x1c]
jl 0x1002e4a7
mov ebx, dword [esp + 0x10]
movq xmm0, qword [ebx + 0x64]
sub esp, 0xc
mov eax, dword [ebx + 0x6c]
mov edx, esp
mov ecx, dword [esp + 0x20]
movq qword [edx], xmm0
mov dword [edx + 8], eax
lea eax, [esp + 0x30]
push eax
call fcn.1002cb30
add esp, 4
mov ecx, esp
sub esp, 0xc
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ecx], xmm0
movq xmm0, qword [ebx + 0x34]
mov dword [ecx + 8], eax
mov ecx, esp
mov eax, dword [ebx + 0x3c]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea eax, [esp + 0x48]
push eax
call fcn.1002ccf0
mov edx, dword [esp + 0x5c]
add esp, 0x1c
movq xmm0, qword [eax]
mov ecx, dword [eax + 8]
mov eax, edx
pop edi
pop esi
pop ebp
movq qword [edx], xmm0
mov dword [edx + 8], ecx
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
jmp 0x1002e4f2
mov edx, esi
add eax, edx
cmp eax, esi
jg 0x1002e591
test eax, eax
js 0x1002e591
cmp eax, esi
jge 0x1002e591
mov al, byte [edi + eax]
movzx eax, al
mov dword [esp + 0x14], eax
jmp 0x1002e4f6
xor al, al
movzx eax, al
mov dword [esp + 0x14], eax
jmp 0x1002e4f6
Function at 0x1004c1e0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
sub eax, 0
je 0x1004c217
sub eax, 1
jne 0x1004c20f
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push dword [esp + 0xc]
push 0x1004bf20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
ret 0xc
cmp dword [esp + 0xc], 0
jne 0x1004c20f
call fcn.1004c020
ret 0xc
Function at 0x1004ff30
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x1005002e
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10050027
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop
cmp dword [esp + 0x14], 0x10
jb 0x1005000b
call ebx
cmp dword [esp + 0x20], eax
jne 0x1005000b
call ebp
cmp dword [esp + 0x1c], eax
je 0x1005000b
mov edx, dword [esi]
test edx, edx
jne 0x1004ffd0
push 0x200
push edx
push dword [0x100c6d90]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10050027
jmp 0x1004fffb
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1004fffb
shl eax, 3
push eax
push edx
push 0
push dword [0x100c6d90]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10050027
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x1c]
mov dword [edx + ecx*4], eax
lea eax, [ecx + 1]
mov dword [esi + 8], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1004ff90
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x10050078
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x10050078
mov ebp, dword [esp + 0x34]
nop
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10050072
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [esp + 0x10]
mov ecx, ebx
push ebp
call fcn.1004fde0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10050040
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret

Function at 0x10050080
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx]
test eax, eax
je 0x100500d9
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x100500c9
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
nop dword [eax]
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x100500bf
push edi
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 8]
jb 0x100500a0
mov eax, dword [ebx]
pop edi
pop ebp
push eax
push 0
push dword [0x100c6d90]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
ret
Function at 0x100500e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push ebx
push ebp
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x100c8af0]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ebp, [eax*2 + 5]
lea eax, [esp + 0x10]
push eax
push 0x40
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10050126
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
pop ecx
ret
test ebx, ebx
je 0x10050147
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x10050168
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10050168
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x10050162
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x10050168
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, byte [esi + 0x14]
and bl, 1
mov cl, bl
and al, 0xfd
add cl, cl
shl bl, 2
or cl, al
and cl, 0xfb
or cl, bl
xor eax, eax
pop edi
mov byte [esi + 0x14], cl
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x1005ef16
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100563c0
mov eax, dword [0x100c005c]
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.10068e36
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1005ef58
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1005f0b4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100787d0
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 + 0x100c3578]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1006b970
mov ecx, dword [esi*4 + 0x100c3578]
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 0x1005f0ad
cmp eax, dword [ecx + edi + 0x24]
jne 0x1005f0ad
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 0x1005f0ad
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1006b970
add esp, 0x14
test edx, edx
jl 0x1005f0ad
jg 0x1005f023
test eax, eax
jb 0x1005f0ad
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1005f0ad
jl 0x1005f03d
cmp dword [ebp - 0x1008], eax
ja 0x1005f0ad
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1005f05b
test ebx, ebx
je 0x1005f094
cmp ecx, edi
jae 0x1005f094
mov al, byte [ecx]
cmp al, 0xd
jne 0x1005f075
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1005f081
cmp byte [ecx + 1], 0xa
jne 0x1005f081
inc ecx
jmp 0x1005f081
movzx eax, al
movsx eax, byte [eax + 0x100c02d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1005f05b
cmp edx, ebx
jne 0x1005f05b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1005f0b2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10055aaa
leave
ret

Function at 0x1006659b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100665da
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100665da
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100665da
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100665da
cmp dword [ecx + 0x74], 0xe
jbe 0x100665da
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1006a884
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10081420
push 0x10081418
push str.FlsAlloc
push 0x1f
call fcn.1006a74c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1006a8b8
push dword [ebp + 8]
mov ecx, esi
call dword [0x1007d230]
call esi
jmp 0x1006a8be
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1006a902
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10081430
push 0x10081428
push str.FlsGetValue
push 0x21
call fcn.1006a74c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1006a939
push dword [ebp + 8]
mov ecx, esi
call dword [0x1007d230]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1006a941
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10081438
push 0x10081430
push str.FlsSetValue
push 0x22
call fcn.1006a74c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1006a97b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1007d230]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1006ae08
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 + 0x100c3578]
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 0x1006ae48
cmp byte [ebx], 0xa
jne 0x1006ae48
or byte [edi + eax + 0x28], 4
jmp 0x1006ae4d
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 0x1006af4c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1006af2f
inc eax
cmp dl, 0xd
je 0x1006ae79
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1006ae9f
cmp eax, ecx
jae 0x1006aead
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 0x1006ae61
jmp 0x1006af4c
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 0x1006af2a
cmp dword [ebp - 0x10], 0
je 0x1006af2a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100c3578]
test byte [eax + edi + 0x28], 0x48
je 0x1006af04
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1006aeef
mov byte [esi], dl
jmp 0x1006af00
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100c3578]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1006af4c
cmp byte [ebp - 1], 0xa
jne 0x1006af13
cmp esi, ebx
jne 0x1006af13
mov byte [esi], 0xa
jmp 0x1006af4b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1006b98e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1006af4c
mov byte [esi], 0xd
jmp 0x1006af4b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100c3578]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1006af49
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1006af4c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1006af55
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 + 0x100c3578]
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 0x1006af9b
cmp word [ebx], dx
jne 0x1006af9b
or byte [eax + edi + 0x28], 4
jmp 0x1006afa0
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 0x1006b103
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 0x1006b0e3
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1006afe1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1006b017
cmp eax, edx
jae 0x1006b025
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 0x1006afbc
jmp 0x1006b103
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 0x1006b0de
cmp dword [ebp - 0x18], 0
je 0x1006b0de
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100c3578]
test byte [eax + edi + 0x28], 0x48
je 0x1006b0b4
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 0x1006b078
mov word [esi], cx
jmp 0x1006b0af
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100c3578]
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 + 0x100c3578]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100c3578]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1006b103
pop eax
cmp word [ebp - 4], ax
jne 0x1006b0c4
cmp esi, ebx
jne 0x1006b0c4
mov word [esi], ax
jmp 0x1006b100
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1006b98e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1006b103
push 0xd
pop eax
jmp 0x1006b0bf
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100c3578]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1006b0fd
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1006b103
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 0x100712e3
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 0x10071380
push ebx
push esi
call fcn.100712ac
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.10070081
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1007132d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1007137f
push edi
push eax
call fcn.1006bbdc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1007134d
call fcn.10069ecc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1007137e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10070081
add esp, 0x20
test eax, eax
jne 0x1007136c
push edi
call fcn.10069ecc
jmp 0x10071374
push ebx
call fcn.10069ecc
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 0x100735fd
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10067475
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 0x1007366c
cmp esi, dword [ebp - 4]
je 0x10073667
cmp dword [ebp + 0xc], 0
je 0x10073667
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10073644
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1007314f
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1007366e
xor eax, eax
inc eax
jmp 0x1007366e
xor eax, eax
pop edi
pop esi
leave
ret