joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000151e
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100925eb
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100bd040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 0x30]
test edi, edi
je 0x10001559
mov ecx, edi
call fcn.100011d4
mov ecx, edi
call fcn.10006c52
mov edi, dword [esi + 0x34]
test edi, edi
je 0x1000156e
mov ecx, edi
call fcn.100011d4
mov ecx, edi
call fcn.10006c52
and dword [ebp - 4], 0
lea eax, [esi + 0x64]
push 0x1001b3b7
push 2
push 0xc
push eax
call fcn.10069d8d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
leave
ret

Function at 0x10002fbb
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
mov edx, dword [esp + 8]
push edi
mov edi, ecx
not edx
movzx eax, byte [edi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x1009ec48]
inc edi
sub esi, 1
jne 0x10002fc7
pop edi
not edx
pop esi
mov eax, edx
ret

Function at 0x10002fe6
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov edx, ebx
test edi, edi
je 0x10003048
mov al, byte [esi]
dec edi
inc esi
cmp al, 0x23
jne 0x10003010
cmp edi, 2
jb 0x10003010
cmp byte [esi], al
jne 0x10003010
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x1009ec48]
test edi, edi
jne 0x10002ff9
jmp 0x1000304f
cmp al, 0x23
jne 0x10003036
cmp byte [esi], al
jne 0x10003036
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x1009ec48]
mov al, byte [esi]
inc esi
test al, al
jne 0x10003028
pop edi
not edx
pop esi
mov eax, edx
pop ebx
ret

Function at 0x1000315d
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x1000316c
and dword [edi], 0
mov edx, 0x1009cde4
call fcn.10003057
mov esi, eax
test esi, esi
je 0x100031cf
mov ecx, esi
call fcn.10003109
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100031c8
mov ecx, ebx
call fcn.10006c3a
mov ebp, eax
test ebp, ebp
je 0x100031c8
push esi
push ebx
push 1
push ebp
call fcn.10075174
add esp, 0x10
push esi
cmp eax, ebx
je 0x100031b8
call fcn.10071b7e
pop ecx
mov ecx, ebp
call fcn.10006c52
jmp 0x100031cf
call fcn.10071b7e
pop ecx
test edi, edi
je 0x100031c4
mov dword [edi], ebx
mov eax, ebp
jmp 0x100031d1
push esi
call fcn.10071b7e
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x100423af
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
mov eax, dword [0x100c353c]
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
lea edi, [eax + 8]
call esi
shr eax, 0xf
mov ecx, edi
and al, 1
movzx eax, al
push eax
push 0x1000
call fcn.10002a34
push 0x10
call esi
shr eax, 0xf
mov ecx, edi
and al, 1
movzx eax, al
push eax
push 0x2000
call fcn.10002a34
push 0x12
call esi
shr eax, 0xf
mov ecx, edi
and al, 1
movzx eax, al
push eax
push 0x4000
call fcn.10002a34
push 0x5d
call esi
shr eax, 0xf
mov ecx, edi
and al, 1
movzx eax, al
push eax
push 0x8000
call fcn.10002a34
pop edi
pop esi
pop ecx
ret
Function at 0x10066c27
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x100c496c]
push esi
xor esi, esi
jmp 0x10066c39
cmp dword [edx + 4], esi
jne 0x10066c8d
mov edx, dword [edx]
test edx, edx
jne 0x10066c32
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x10066c89
push edi
push 0x20
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop edi
mov dword [ecx], esi
mov eax, ecx
mov dword [edx + 4], ecx
add edi, 0x20
add ecx, 0x20
mov esi, eax
cmp edi, 0xfe0
jbe 0x10066c60
mov eax, dword [0x100c496c]
mov dword [edx], eax
mov dword [0x100c496c], edx
pop edi
test edx, edx
jne 0x10066c8d
xor eax, eax
pop esi
ret
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret

Function at 0x10067537
Capabilities:
Enumerate threads

Disassembly:
sub esp, 0x20
mov eax, dword [0x100bd040]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x10067644
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x1c
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1006763d
inc edi
push ebx
cmp dword [esp + 0x10], 0x10
jb 0x100675fe
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x1c], eax
jne 0x100675fe
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esp + 0x18], eax
je 0x100675fe
mov edx, dword [esi]
test edx, edx
jne 0x100675c9
push 0x200
push edx
push dword [0x100c354c]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10067625
lea ebx, [esi + 8]
jmp 0x100675f3
mov eax, dword [esi + 4]
lea ebx, [esi + 8]
cmp dword [ebx], eax
jb 0x100675f3
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x100c354c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10067625
mov dword [esi], edx
mov ecx, dword [ebx]
mov eax, dword [esp + 0x18]
mov dword [edx + ecx*4], eax
inc dword [ebx]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x1c
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1006757e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1006763c
xor edi, edi
cmp dword [esi], edi
je 0x1006763c
push dword [esi]
push edi
push dword [0x100c354c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi], edi
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x28]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10069b82
add esp, 0x20
ret
Function at 0x10067658
Capabilities:
Suspend thread

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov dword [esp + 8], edx
xor esi, esi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.10067537
test eax, eax
jne 0x10067679
push 9
pop esi
jmp 0x100676c0
cmp dword [edi], esi
je 0x100676c0
push ebx
mov ebx, esi
cmp dword [edi + 8], esi
jbe 0x100676bf
push ebp
mov eax, dword [edi]
push dword [eax + ebx*4]
push esi
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebp, eax
test ebp, ebp
je 0x100676b8
push ebp
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, ebp
call fcn.100673e6
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [edi + 8]
jb 0x10067686
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
pop ecx
ret

Function at 0x100676c6
Capabilities:
Resume thread

Disassembly:
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp dword [esi], ebp
je 0x10067712
push edi
mov edi, ebp
cmp dword [esi + 8], ebp
jbe 0x10067702
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push ebp
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x100676fb
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x100676d9
pop ebx
push dword [esi]
push ebp
push dword [0x100c354c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
ret
Function at 0x10067715
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x10
mov eax, dword [0x100bd040]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push ebp
imul ebp, ecx, 0x2c
push esi
push edi
mov esi, edx
mov dword [esp + 0x14], esi
add ebp, dword [0x100c4960]
mov eax, dword [ebp]
mov cl, byte [ebp + 0x14]
and cl, 1
lea ebx, [eax - 5]
cmove ebx, eax
movzx eax, cl
lea edi, [eax*2 + 5]
lea eax, [esp + 0x18]
mov dword [esp + 0x10], edi
push eax
push 0x40
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1006776e
push 0xa
pop eax
jmp 0x100677f0
test esi, esi
je 0x10067790
mov byte [ebx], 0xe9
mov eax, dword [ebp + 4]
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
test byte [ebp + 0x14], 1
je 0x100677b0
mov eax, dword [ebp]
mov word [eax], 0xf9eb
jmp 0x100677b0
test byte [ebp + 0x14], 1
je 0x100677a5
mov edi, ebx
lea esi, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
jmp 0x100677b0
mov eax, dword [ebp + 0xc]
mov dword [ebx], eax
mov al, byte [ebp + 0x10]
mov byte [ebx + 4], al
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [esp + 0x14]
mov cl, dl
add cl, cl
shl dl, 2
xor cl, byte [ebp + 0x14]
and cl, 2
xor cl, byte [ebp + 0x14]
xor dl, cl
and dl, 4
xor dl, cl
xor eax, eax
mov byte [ebp + 0x14], dl
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10069b82
add esp, 0x10
ret

Function at 0x1006875d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x1006879a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
mov dword [0x100c35cc], 4
push eax
push eax
push dword [ebp + 8]
push 0x100687b7
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x100687b0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100687b0
cmp dword [ebp + 0xc], 0
jne 0x100687b0
cmp dword [ebp + 0x10], 0
jne 0x100687b0
call fcn.1006989b
call fcn.10067912
xor eax, eax
inc eax
pop ebp
ret 0xc
Function at 0x1006c129
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x1006c14a
jl 0x1006c141
test edi, edi
jne 0x1006c14a
xor eax, eax
xor edx, edx
jmp 0x1006c20b
cmp dword [ebx + 0x38], 0
je 0x1006c15f
push eax
push edi
push dword [ebp + 8]
call fcn.1006c211
jmp 0x1006c20b
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1006c1a6
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x1006c1a6
cmp eax, edi
jb 0x1006c180
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.1006dd10
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x1006c1ac
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x1006c200
mov ecx, ebx
call fcn.1006b92e
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x1006c1eb
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.10075174
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x1006c200
jmp 0x1006c1be
test edx, edx
je 0x1006c200
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.10075174
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x10071294
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1008e3a0
mov eax, dword [0x100bd040]
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.1007da65
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100712d6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10071432
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1008e2f0
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 + 0x100c3088]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1007dc74
mov ecx, dword [esi*4 + 0x100c3088]
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 0x1007142b
cmp eax, dword [ecx + edi + 0x24]
jne 0x1007142b
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 0x1007142b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1007dc74
add esp, 0x14
test edx, edx
jl 0x1007142b
jg 0x100713a1
test eax, eax
jb 0x1007142b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1007142b
jl 0x100713bb
cmp dword [ebp - 0x1008], eax
ja 0x1007142b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100713d9
test ebx, ebx
je 0x10071412
cmp ecx, edi
jae 0x10071412
mov al, byte [ecx]
cmp al, 0xd
jne 0x100713f3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100713ff
cmp byte [ecx + 1], 0xa
jne 0x100713ff
inc ecx
jmp 0x100713ff
movzx eax, al
movsx eax, byte [eax + 0x100bd2d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100713d9
cmp edx, ebx
jne 0x100713d9
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10071430
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10069b82
leave
ret

Function at 0x1007ad4c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1007ad8b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1007ad8b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1007ad8b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1007ad8b
cmp dword [ecx + 0x74], 0xe
jbe 0x1007ad8b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1007fa0a
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 + 0x100c3088]
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 0x1007fa4a
cmp byte [ebx], 0xa
jne 0x1007fa4a
or byte [edi + eax + 0x28], 4
jmp 0x1007fa4f
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 0x1007fb4e
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1007fb31
inc eax
cmp dl, 0xd
je 0x1007fa7b
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1007faa1
cmp eax, ecx
jae 0x1007faaf
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 0x1007fa63
jmp 0x1007fb4e
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 0x1007fb2c
cmp dword [ebp - 0x10], 0
je 0x1007fb2c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100c3088]
test byte [eax + edi + 0x28], 0x48
je 0x1007fb06
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1007faf1
mov byte [esi], dl
jmp 0x1007fb02
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100c3088]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1007fb4e
cmp byte [ebp - 1], 0xa
jne 0x1007fb15
cmp esi, ebx
jne 0x1007fb15
mov byte [esi], 0xa
jmp 0x1007fb4d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1007dc92
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1007fb4e
mov byte [esi], 0xd
jmp 0x1007fb4d
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100c3088]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1007fb4b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1007fb4e
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1007fb57
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 + 0x100c3088]
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 0x1007fb9d
cmp word [ebx], dx
jne 0x1007fb9d
or byte [eax + edi + 0x28], 4
jmp 0x1007fba2
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 0x1007fd05
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 0x1007fce5
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1007fbe3
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1007fc19
cmp eax, edx
jae 0x1007fc27
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 0x1007fbbe
jmp 0x1007fd05
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 0x1007fce0
cmp dword [ebp - 0x18], 0
je 0x1007fce0
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100c3088]
test byte [eax + edi + 0x28], 0x48
je 0x1007fcb6
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 0x1007fc7a
mov word [esi], cx
jmp 0x1007fcb1
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100c3088]
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 + 0x100c3088]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100c3088]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1007fd05
pop eax
cmp word [ebp - 4], ax
jne 0x1007fcc6
cmp esi, ebx
jne 0x1007fcc6
mov word [esi], ax
jmp 0x1007fd02
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1007dc92
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1007fd05
push 0xd
pop eax
jmp 0x1007fcc1
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100c3088]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1007fcff
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1007fd05
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 0x100809f0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10098190
push 0x10098188
push str.FlsAlloc
push 0x1f
call fcn.100808b8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10080a24
push dword [ebp + 8]
mov ecx, esi
call dword [0x1009423c]
call esi
jmp 0x10080a2a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10080a6e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100981a0
push 0x10098198
push str.FlsGetValue
push 0x21
call fcn.100808b8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10080aa5
push dword [ebp + 8]
mov ecx, esi
call dword [0x1009423c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10080aad
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100981a8
push 0x100981a0
push str.FlsSetValue
push 0x22
call fcn.100808b8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10080ae7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1009423c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10084c5e
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 0x10084cfb
push ebx
push esi
call fcn.10084c27
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.10084bbb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10084ca8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10084cfa
push edi
push eax
call fcn.10081dc0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10084cc8
call fcn.100805d9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10084cf9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10084bbb
add esp, 0x20
test eax, eax
jne 0x10084ce7
push edi
call fcn.100805d9
jmp 0x10084cef
push ebx
call fcn.100805d9
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 0x10088d43
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1007e05a
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 0x10088db2
cmp esi, dword [ebp - 4]
je 0x10088dad
cmp dword [ebp + 0xc], 0
je 0x10088dad
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10088d8a
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10088895
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10088db4
xor eax, eax
inc eax
jmp 0x10088db4
xor eax, eax
pop edi
pop esi
leave
ret