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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003a1bd
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1004d070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov ebx, dword [ebp + 8]
mov edx, ebx
cmp dword [ebx + 0x14], 0x10
mov esi, dword [ebx + 0x10]
jb 0x1000cedb
mov edx, dword [ebx]
xor ecx, ecx
mov edi, 0x811c9dc5
test esi, esi
je 0x1000cef7
movzx eax, byte [ecx + edx]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, esi
jb 0x1000cee6
mov eax, dword [0x1004ff68]
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
jne 0x1000cf57
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x20], ecx
cmp ecx, edi
je 0x1000cfae
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x1000cf3b
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x1000cf37
cmp eax, dword [ecx + 8]
jne 0x1000cf37
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x1000cf27
mov eax, ecx
jmp 0x1000cf51
mov eax, ecx
mov edx, dword [eax]
cmp byte [edx + 0xd], 0
jne 0x1000cf51
mov ecx, dword [edx]
mov eax, edx
mov edx, ecx
cmp byte [ecx + 0xd], 0
je 0x1000cf45
cmp byte [eax + 0xd], 0
je 0x1000cf04
cmp dword [ebx + 0x14], 0x10
jb 0x1000cf5f
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x14]
lea esi, [eax + 8]
push esi
push ebx
push dword [eax + 0x28]
call dword [sym.imp.d3dx9_43.dll_D3DXCreateTextureFromFileA]
test eax, eax
sets byte [ebp - 0xd]
test eax, eax
js 0x1000d038
mov eax, dword [esi]
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov eax, dword [0x1004ff68]
mov edx, eax
mov dword [ebp - 0x18], eax
mov esi, dword [eax + 4]
cmp byte [esi + 0xd], bl
jne 0x1000cfdb
mov eax, esi
nop dword [eax]
mov ecx, dword [eax + 0x10]
mov esi, eax
cmp ecx, edi
jge 0x1000cfca
mov eax, dword [eax + 8]
jmp 0x1000cfce
mov eax, dword [ebp - 0x14]
mov dword [eax + 8], edx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, eax
mov eax, dword [eax]
xor ebx, ebx
cmp ecx, edi
setge bl
cmp byte [eax + 0xd], 0
je 0x1000cfa0
cmp byte [edx + 0xd], 0
jne 0x1000cfe6
cmp edi, dword [edx + 0x10]
jge 0x1000d038
cmp dword [0x1004ff6c], 0xaaaaaaa
je 0x1000d04f
mov dword [ebp - 0x20], 0x1004ff68
mov dword [ebp - 4], 0
push 0x18
mov dword [ebp - 0x1c], 0
call fcn.10017735
mov ecx, dword [ebp - 0x14]
add esp, 4
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x10], edi
mov dword [eax], ecx
push eax
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, 0x1004ff68
push ebx
push esi
mov word [eax + 0xc], 0
call fcn.1000bfe0
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.10002ae0
int3
Function at 0x1000e7c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003a31f
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x1004d070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x58], esi
mov eax, dword [ebp + 8]
lea ecx, [esi + 0xc]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov byte [esi + 8], 0
mov dword [esi + 4], eax
mov dword [esi], vtable.HUD_SpeedometerDigital.0
movups xmmword [ecx + 0x1c], xmm0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0xf
mov byte [ecx + 0x1c], 0
movups xmmword [ecx + 0x3c], xmm0
mov dword [ecx + 0x4c], 0
mov dword [ecx + 0x50], 0xf
mov byte [ecx + 0x3c], 0
movups xmmword [ecx + 0x54], xmm0
mov dword [ecx + 0x64], 0
mov dword [ecx + 0x68], 0xf
mov byte [ecx + 0x54], 0
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 1
push eax
call fcn.1000ec00
xor edi, edi
push 0x3c
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.10019200
mov eax, dword [esi + 0x1c]
lea ecx, [ebp - 0x30]
movups xmm0, xmmword [esi + 0xc]
mov dword [ebp - 0x3c], eax
add esp, 0xc
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x34], eax
lea eax, [esi + 0x28]
push eax
movups xmmword [ebp - 0x4c], xmm0
call fcn.100095a0
mov al, byte [esi + 0x40]
mov byte [ebp - 0x18], al
mov eax, dword [esi + 0x44]
mov dword [ebp - 0x14], eax
xor eax, eax
mov byte [ebp - 4], 2
test edi, edi
jne 0x1000e8b6
mov eax, 0x10002760
jmp 0x1000e903
cmp edi, 1
jne 0x1000e8ce
cmp dword [esi + 0x58], 0
mov eax, 0x100027a0
mov dword [ebp - 0x50], eax
je 0x1000e903
lea eax, [esi + 0x48]
jmp 0x1000e8e4
cmp edi, 2
jne 0x1000e903
cmp dword [esi + 0x70], 0
mov eax, 0x100027f0
mov dword [ebp - 0x50], eax
je 0x1000e903
lea eax, [esi + 0x60]
lea ecx, [ebp - 0x30]
cmp ecx, eax
je 0x1000e900
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x1000e8f6
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.1000ad30
mov eax, dword [ebp - 0x50]
movss xmm0, dword [esi + 0x18]
push 0x4c
mov dword [ebp - 0x38], eax
movss dword [ebp - 0x40], xmm0
call fcn.10017735
mov esi, eax
mov dword [ebp - 0x5c], esi
push 0x4c
push 0
push esi
mov byte [ebp - 4], 3
call fcn.10019200
add esp, 0x10
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
push dword [ebp + 8]
call fcn.1000e540
mov esi, dword [ebp - 0x54]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
mov dword [esi + edi*4 + 0x80], eax
cmp ecx, 0x10
jb 0x1000e979
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000e96f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000e9aa
push ecx
push edx
call fcn.1001776a
add esp, 8
inc edi
cmp edi, 3
jl 0x1000e863
lea ecx, [ebp + 0xc]
call fcn.100062d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10017542
mov esp, ebp
pop ebp
ret 0x78
call fcn.1001c3af
int3
Function at 0x1000ed30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003a31f
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x1004d070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp + 8]
lea esi, [eax + 0xc]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov byte [eax + 8], 0
mov dword [eax + 4], ecx
mov dword [eax], vtable.HUD_TachometerDigital.0
movups xmmword [esi + 0x1c], xmm0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0xf
mov byte [esi + 0x1c], 0
movups xmmword [esi + 0x3c], xmm0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0xf
mov byte [esi + 0x3c], 0
movups xmmword [esi + 0x54], xmm0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0xf
mov dword [ebp - 0x54], esi
mov byte [esi + 0x54], 0
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call fcn.1000ec00
xor edi, edi
push 0x3c
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.10019200
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 0x30]
movups xmm0, xmmword [esi]
mov dword [ebp - 0x3c], eax
add esp, 0xc
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x34], eax
lea eax, [esi + 0x1c]
push eax
movups xmmword [ebp - 0x4c], xmm0
call fcn.100095a0
mov al, byte [esi + 0x34]
mov byte [ebp - 0x18], al
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x14], eax
xor eax, eax
mov byte [ebp - 4], 2
cmp edi, 3
ja case.default.0x1000ee24
jmp dword [edi*4 + 0x1000eef8]
mov eax, 0x10002840
jmp case.default.0x1000ee24
mov eax, 0x10002880
jmp case.default.0x1000ee24
mov eax, 0x100028d0
jmp case.default.0x1000ee24
mov eax, 0x10002920
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x50]
push 0x4c
movss xmm0, dword [eax + 0x18]
movss dword [ebp - 0x40], xmm0
call fcn.10017735
mov esi, eax
mov dword [ebp - 0x5c], esi
push 0x4c
push 0
push esi
mov byte [ebp - 4], 3
call fcn.10019200
add esp, 0x10
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
push dword [ebp + 8]
call fcn.1000e540
mov esi, dword [ebp - 0x50]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
mov dword [esi + edi*4 + 0x80], eax
cmp ecx, 0x10
jb 0x1000eebe
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000eeb4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000eef3
push ecx
push edx
call fcn.1001776a
add esp, 8
inc edi
cmp edi, 4
jge 0x1000eecc
mov esi, dword [ebp - 0x54]
jmp 0x1000edd8
lea ecx, [ebp + 0xc]
call fcn.100062d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10017542
mov esp, ebp
pop ebp
ret 0x78
call fcn.1001c3af
sub ebp, esi
add byte [eax], dl
xor ch, dh
add byte [eax], dl
cmp esi, ebp
add byte [eax], dl
inc eax
out dx, al
add byte [eax], dl
int3
Function at 0x10013820
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1004d070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, ecx
push ebx
push esi
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], edx
mov dword [ecx], eax
mov ecx, edx
call fcn.10001370
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 4
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
push eax
push 0x40
push 1
push esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov byte [esi], 0xe9
test eax, eax
je 0x10013888
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov edi, dword [ebp + 0xc]
inc esi
push eax
push 0x40
push 4
sub edi, esi
mov dword [ebp - 0x14], 4
push esi
sub edi, 4
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov dword [esi], edi
test eax, eax
je 0x100138c8
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 8], ecx
push dword [ebp - 0x18]
call ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10017542
mov esp, ebp
pop ebp
ret
Function at 0x1001578d
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1004d070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, 0xffffffff
je 0x10015898
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10015891
inc edi
cmp dword [ebp - 0x20], 0x10
jb 0x10015855
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x10015855
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10015855
mov edx, dword [esi]
test edx, edx
jne 0x1001581e
push 0x200
push edx
push dword [0x1004f60c]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1001587a
lea ebx, [esi + 8]
jmp 0x10015848
mov eax, dword [esi + 4]
lea ebx, [esi + 8]
cmp dword [ebx], eax
jb 0x10015848
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x1004f60c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x100158a9
mov dword [esi], edx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [ebx]
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x100157d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10015891
xor edi, edi
cmp dword [esi], edi
je 0x10015891
push dword [esi]
push edi
push dword [0x1004f60c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi], edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10017542
leave
ret
mov ebx, dword [ebp - 0x24]
jmp 0x1001587a

Function at 0x100158ae
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
xor esi, esi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.1001578d
test eax, eax
jne 0x100158d2
push 9
pop esi
jmp 0x10015919
cmp dword [edi], esi
je 0x10015919
push ebx
mov ebx, esi
cmp dword [edi + 8], esi
jbe 0x10015918
mov eax, dword [edi]
push dword [eax + ebx*4]
push esi
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 4], eax
test eax, eax
je 0x10015912
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.1001563a
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [edi + 8]
jb 0x100158de
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x1001591f
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x1001596b
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x1001595a
push ebx
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 0x10015953
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 0x10015930
pop ebx
push dword [esi]
push 0
push dword [0x1004f60c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
ret

Function at 0x1001596d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
imul edi, ecx, 0x2c
add edi, dword [0x1004ffc0]
mov al, byte [edi + 0x14]
mov esi, dword [edi]
and al, 1
je 0x10015989
sub esi, 5
movzx eax, al
lea ebx, [eax*2 + 5]
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100159aa
push 0xa
pop eax
jmp 0x100159e9
mov byte [esi], 0xe9
mov eax, dword [edi + 4]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
test byte [edi + 0x14], 1
je 0x100159c5
mov eax, dword [edi]
mov word [eax], 0xf9eb
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [edi + 0x14], 6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10015ebb
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x1004ffbc]
push esi
xor esi, esi
jmp 0x10015ecd
cmp dword [edx + 4], esi
jne 0x10015f21
mov edx, dword [edx]
test edx, edx
jne 0x10015ec6
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x10015f1d
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 0x10015ef4
mov eax, dword [0x1004ffbc]
mov dword [edx], eax
mov dword [0x1004ffbc], edx
pop edi
test edx, edx
jne 0x10015f21
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 0x100281a3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003f2ac
push 0x1003f2a4
push str.FlsAlloc
push 0x1e
call fcn.1002802d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100281d7
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003b1c0]
call esi
jmp 0x100281dd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x10028221
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003f2bc
push 0x1003f2b4
push str.FlsGetValue
push 0x20
call fcn.1002802d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10028258
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003b1c0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1002af23
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1002ad94

Function at 0x1002b3c8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100185d0
mov eax, dword [0x1004d070]
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.100294c8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1002b40a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1002b566
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10037eb0
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 + 0x1004f298]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1002c1b6
mov ecx, dword [esi*4 + 0x1004f298]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x1002b55f
cmp eax, dword [edi + ecx + 0x24]
jne 0x1002b55f
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002b55f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1002c1b6
add esp, 0x14
test edx, edx
jl 0x1002b55f
jg 0x1002b4d5
test eax, eax
jb 0x1002b55f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1002b55f
jl 0x1002b4ef
cmp dword [ebp - 0x1008], eax
ja 0x1002b55f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1002b50d
test ebx, ebx
je 0x1002b546
cmp ecx, edi
jae 0x1002b546
mov al, byte [ecx]
cmp al, 0xd
jne 0x1002b527
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1002b533
cmp byte [ecx + 1], 0xa
jne 0x1002b533
inc ecx
jmp 0x1002b533
movzx eax, al
movsx eax, byte [eax + 0x1004d2e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1002b50d
cmp edx, ebx
jne 0x1002b50d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1002b564
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10017542
leave
ret
Function at 0x1002b66e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x1004f298]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1002b6ae
cmp byte [ebx], 0xa
jne 0x1002b6ae
or byte [eax + edi + 0x28], 4
jmp 0x1002b6b3
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1002b7b1
mov al, byte [edx]
cmp al, 0x1a
je 0x1002b793
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1002b6e2
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1002b707
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1002b711
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x1002b6c4
jmp 0x1002b7b1
push 0
lea eax, [ebp - 0xc]
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 0x1002b78e
cmp dword [ebp - 0xc], 0
je 0x1002b78e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1004f298]
test byte [eax + edi + 0x28], 0x48
je 0x1002b768
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1002b753
mov byte [esi], dl
jmp 0x1002b764
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1004f298]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1002b7b1
cmp byte [ebp - 1], 0xa
jne 0x1002b777
cmp esi, ebx
jne 0x1002b777
mov byte [esi], 0xa
jmp 0x1002b7b0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1002c1d4
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1002b7b1
mov byte [esi], 0xd
jmp 0x1002b7b0
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1004f298]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1002b7ad
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1002b7b1
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1002b7ba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x1004f298]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1002b7fd
cmp word [esi], dx
jne 0x1002b7fd
or byte [edi + eax + 0x28], 4
jmp 0x1002b802
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x1002b93b
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x1002b91b
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1002b844
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1002b87a
cmp eax, edx
jae 0x1002b886
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x1002b81c
jmp 0x1002b93b
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002b917
cmp dword [ebp - 0x14], 0
je 0x1002b917
mov eax, dword [ebx*4 + 0x1004f298]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1002b8ef
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x1002b935
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1004f298]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x1004f298]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1004f298]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x1002b938
pop ebx
cmp word [ebp - 4], bx
jne 0x1002b900
cmp esi, dword [ebp + 0xc]
jne 0x1002b900
mov word [esi], bx
jmp 0x1002b938
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1002c1d4
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1002b93b
push 0xd
jmp 0x1002b934
mov ecx, dword [ebx*4 + 0x1004f298]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1002b932
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1002b93b
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret