joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1014f1c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x78]
test eax, eax
je 0x1014f1e5
push dword [edi + 0x74]
call eax
add esp, 4
push ebx
push esi
mov esi, dword [edi + 0x54]
test esi, esi
je 0x1014f24b
nop
mov ebx, dword [esi + 4]
xor edx, edx
mov eax, dword [ebx + 0x60]
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x1014f244
mov ecx, dword [eax + 8]
cmp eax, esi
je 0x1014f217
mov edx, eax
mov eax, ecx
test eax, eax
jne 0x1014f206
jmp 0x1014f244
test edx, edx
jne 0x1014f220
mov dword [ebx + 0x54], ecx
jmp 0x1014f223
mov dword [edx + 8], ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1014f230
push esi
call eax
add esp, 4
push esi
call fcn.1014f6e0
mov eax, dword [esp + 0x20]
push esi
push eax
mov eax, dword [eax + 8]
call eax
add esp, 0xc
mov esi, dword [edi + 0x54]
test esi, esi
jne 0x1014f1f0
lea eax, [edi + 0x6c]
test eax, eax
je 0x1014f2ce
test ebp, ebp
je 0x1014f2ce
mov ebx, dword [eax]
test ebx, ebx
je 0x1014f2c1
nop dword [eax]
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x1014f277
push esi
call eax
add esp, 4
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x1014f28b
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x1014f29c
push eax
mov eax, dword [ebp + 8]
push ebp
call eax
add esp, 8
mov dword [esi + 0x28], 0
mov eax, dword [ebp + 8]
push esi
push ebp
call eax
mov eax, dword [ebp + 8]
push ebx
push ebp
call eax
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x1014f260
lea eax, [edi + 0x6c]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [edi + 0x30]
mov dword [edi + 0x58], 0
test eax, eax
je 0x1014f2e2
push edi
call eax
add esp, 4
push ebp
push edi
call fcn.1014f140
mov eax, dword [esp + 0x18]
add esp, 8
mov eax, dword [eax + 0x34]
test eax, eax
je 0x1014f2fd
push edi
call eax
add esp, 4
mov esi, dword [edi + 0x68]
mov eax, dword [edi + 8]
mov dword [esp + 0x20], eax
test esi, esi
je 0x1014f32f
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
test eax, eax
je 0x1014f31b
push esi
call eax
add esp, 4
test dword [esp + 0x20], 0x400
jne 0x1014f32f
mov eax, dword [ebx + 8]
push esi
push ebx
call eax
add esp, 8
mov eax, dword [edi + 0x80]
mov dword [edi + 0x68], 0
pop esi
pop ebx
test eax, eax
je 0x1014f356
push eax
mov eax, dword [ebp + 8]
push ebp
call eax
add esp, 8
mov dword [edi + 0x80], 0
mov eax, dword [ebp + 8]
push edi
push ebp
call eax
add esp, 8
pop edi
pop ebp
pop ecx
ret
Function at 0x10198ad0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esi + 0x58]
mov dword [eax], 0
cmp byte [esi + 0x35c], 0
mov dword [esp + 0x10], edi
jne 0x10198b07
push dword [esi + 0x68]
push esi
call fcn.1019fdc0
add esp, 8
test eax, eax
jne 0x10198cc0
mov edx, dword [esi + 0x348]
push ebx
mov ebx, dword [esi + 0x358]
add edx, 8
mov esi, 6
mov dword [esp + 0xc], esi
push ebp
lea ebp, [edx + ebx*4]
test edi, edi
je 0x10198b8f
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10198b8f
mov ecx, eax
lea eax, [ecx + 1]
mov dword [esp + 0x14], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10198b40
sub ecx, dword [esp + 0x14]
mov dword [esp + 0x14], ecx
je 0x10198b8f
test ebx, ebx
je 0x10198b8f
movzx esi, byte [edx + 2]
lea edi, [edx + 4]
movzx eax, byte [edi - 1]
movzx ecx, byte [edx]
shl esi, 8
or esi, eax
shl ecx, 8
movzx eax, byte [edx + 1]
mov edx, dword [esp + 0x18]
or ecx, eax
movzx eax, word [edx + 0xe]
cmp ecx, eax
je 0x10198b99
lea eax, [esi + esi*4]
mov edx, edi
lea ebp, [ebp + eax*2]
sub ebx, 1
jne 0x10198b55
mov esi, dword [esp + 0x10]
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret
test esi, esi
je 0x10198b8b
lea edi, [ebp + 1]
movzx ebx, byte [edi + 4]
test bl, 0x10
je case.default.0x10198c22
movzx ecx, byte [edi - 1]
movzx eax, byte [edi]
movzx ebp, byte [edi + 5]
mov edx, dword [esp + 0x20]
shl ecx, 8
or ecx, eax
shl ebp, 8
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 6]
or ebp, eax
movzx eax, byte [edi + 7]
shl ebp, 8
or ebp, eax
movzx eax, byte [edi + 8]
shl ebp, 8
or ebp, eax
mov eax, dword [edx + 0x354]
cmp ecx, eax
jae case.default.0x10198c22
sub eax, ecx
cmp dword [esp + 0x14], eax
jae case.default.0x10198c22
push eax
mov eax, dword [edx + 0x350]
add eax, ecx
push eax
push dword [esp + 0x2c]
call fcn.102718c0
add esp, 0xc
test eax, eax
jne case.default.0x10198c22
and ebx, 0xf
cmp ebx, 3
ja case.default.0x10198c22
jmp dword [ebx*4 + 0x10198cc8]
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x354]
cmp ebp, eax
jae case.default.0x10198c22
push eax
mov eax, dword [edx + 0x350]
add eax, ebp
push 0
push eax
call fcn.10266910
add esp, 0xc
test eax, eax
jne 0x10198c69
add edi, 0xa
sub esi, 1
jne 0x10198ba0
mov esi, dword [esp + 0x10]
mov eax, esi
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xc
ret
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov dword [ecx], 1
mov eax, dword [esi + 0x350]
add eax, ebp
xor esi, esi
pop ebp
pop ebx
mov dword [ecx + 4], eax
mov eax, esi
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x28]
xor esi, esi
mov dword [eax + 4], ebp
pop ebp
pop ebx
mov dword [eax], 2
mov eax, esi
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x28]
xor esi, esi
mov dword [eax + 4], ebp
pop ebp
pop ebx
mov dword [eax], 3
mov eax, esi
pop edi
pop esi
add esp, 0xc
ret
mov esi, eax
pop edi
pop esi
add esp, 0xc
ret
Function at 0x101aa300
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x101aa314
lea eax, [esi + 0x28]
pop esi
add esp, 0xc
ret
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x101aa343
pop ebx
mov eax, 1
pop esi
add esp, 0xc
ret
push ebp
push edi
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x101aa455
mov ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x101aa455
mov eax, dword [esp + 0x14]
jl 0x101aa37c
cmp eax, 0x7fffffff
ja 0x101aa455
or eax, ecx
je 0x101aa455
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
je 0x101aa455
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
push 4
push edi
mov dword [esi + 4], ecx
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov dword [esi], eax
call ebp
cmp dword [esi], 0
je 0x101aa3cd
mov eax, 0x101aa4d0
jmp 0x101aa41d
push dword [esi + 4]
mov eax, dword [esi + 0x1c]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x101aa455
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
xor edi, edi
nop dword [eax + eax]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi + 4]
sub eax, edi
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call ebp
test eax, eax
je 0x101aa440
add edi, dword [esp + 0x10]
cmp edi, dword [esi + 4]
jne 0x101aa3f0
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x101aa4a0
push ebx
mov dword [esi + 0x18], eax
call ebp
mov eax, dword [esi]
pop edi
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x20]
pop ebp
mov dword [esi + 0x10], eax
xor eax, eax
pop ebx
mov dword [esi + 0x14], 0
pop esi
add esp, 0xc
ret
push dword [esi]
mov eax, dword [esi + 0x1c]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call ebp
pop edi
pop ebp
pop ebx
mov dword [esi], 0
mov eax, 0x51
mov dword [esi + 4], 0
mov dword [esi + 8], 0
pop esi
add esp, 0xc
ret
Function at 0x101b34f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
cmp dword [esp + 0x1c], 0
jle 0x101b35e3
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
mov ecx, dword [eax + 8]
mov ebx, ecx
add ebx, dword [eax]
mov edx, dword [eax + 0xc]
mov esi, edx
mov edi, dword [eax + 4]
adc edi, edx
mov dword [esp + 0x18], ebx
shld edx, ecx, 0xd
shr esi, 0x13
xor ebp, ebp
shl ecx, 0xd
or ebp, edx
mov edx, dword [eax + 0x1c]
or esi, ecx
mov ecx, dword [eax + 0x18]
xor esi, ebx
xor ebp, edi
mov dword [esp + 0x14], esi
mov esi, ecx
mov dword [esp + 0x20], ebp
add esi, dword [eax + 0x10]
mov ebp, edx
mov ebx, edx
mov dword [esp + 0x10], edi
adc ebp, dword [eax + 0x14]
xor edi, edi
shld edx, ecx, 0x10
shr ebx, 0x10
shl ecx, 0x10
or edi, edx
or ebx, ecx
mov dword [esp + 0x1c], esi
mov ecx, dword [esp + 0x10]
xor ebx, esi
xor edi, ebp
xor esi, esi
or esi, dword [esp + 0x18]
mov edx, edi
add ecx, ebx
mov dword [esp + 0x10], ecx
adc esi, edi
mov dword [eax], ecx
shld edi, ebx, 0x15
xor ecx, ecx
shr edx, 0xb
or ecx, edi
shl ebx, 0x15
mov edi, dword [esp + 0x14]
or edx, ebx
xor edx, dword [esp + 0x10]
xor ecx, esi
add edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov dword [eax + 4], esi
mov esi, ebx
adc esi, ebp
mov dword [eax + 0x18], edx
mov ebp, dword [esp + 0x14]
mov edx, ebx
mov dword [eax + 0x1c], ecx
xor ecx, ecx
shld ebx, ebp, 0x11
shr edx, 0xf
or ecx, ebx
shl ebp, 0x11
xor ecx, esi
mov dword [eax + 0x10], esi
mov dword [eax + 0xc], ecx
or edx, ebp
xor ecx, ecx
xor edx, edi
or ecx, edi
mov dword [eax + 8], edx
sub dword [esp + 0x2c], 1
mov dword [eax + 0x14], ecx
jne 0x101b3506
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x10263807
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 0x10263828
jl 0x1026381f
test edi, edi
jne 0x10263828
xor eax, eax
xor edx, edx
jmp 0x102638e9
cmp dword [ebx + 0x38], 0
je 0x1026383d
push eax
push edi
push dword [ebp + 8]
call fcn.102638ef
jmp 0x102638e9
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10263884
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x10263884
cmp eax, edi
jb 0x1026385e
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.10266230
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 0x1026388a
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x102638de
mov ecx, ebx
call fcn.10263059
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x102638c9
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.1027879c
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 0x102638de
jmp 0x1026389c
test edx, edx
je 0x102638de
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.1027879c
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 0x1027a27e
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1032e6c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x102f63a0
push esi
call fcn.10287f45
pop ecx
pop ecx
test eax, eax
jne 0x1027a2ac
xor al, al
jmp 0x1027a329
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.10279fbf
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x1027a2e6
push dword [ebp - 0x210]
call fcn.1026cbe4
xor al, al
jmp 0x1027a327
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1027a2ec
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x1027a30c
push edx
call fcn.1027a1b5
pop ecx
test al, al
je 0x1027a2d7
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1027a31a
mov bl, 1
push dword [ebp - 0x210]
call fcn.1026cbe4
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1026465b
leave
ret

Function at 0x1027af9c
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1032e6c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x1027bcf4
call fcn.1026d4e7
mov dword [eax], 0xf
call fcn.1026d4fa
mov dword [eax], 0xd
call fcn.1026cf1e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1026465b
leave
ret
test eax, eax
jne 0x1027bcfb
inc eax
jmp 0x1027bce8
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x1027bce6
xor eax, eax
cmp ecx, 1
setne al
jmp 0x1027bce8

Function at 0x1027db5b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10264a30
mov eax, dword [0x1032e6c0]
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.10282981
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1027db9d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1027dcf9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10264b30
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 + 0x1033a000]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.102886db
mov ecx, dword [esi*4 + 0x1033a000]
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 0x1027dcf2
cmp eax, dword [ecx + edi + 0x24]
jne 0x1027dcf2
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 0x1027dcf2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.102886db
add esp, 0x14
test edx, edx
jl 0x1027dcf2
jg 0x1027dc68
test eax, eax
jb 0x1027dcf2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1027dcf2
jl 0x1027dc82
cmp dword [ebp - 0x1008], eax
ja 0x1027dcf2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1027dca0
test ebx, ebx
je 0x1027dcd9
cmp ecx, edi
jae 0x1027dcd9
mov al, byte [ecx]
cmp al, 0xd
jne 0x1027dcba
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1027dcc6
cmp byte [ecx + 1], 0xa
jne 0x1027dcc6
inc ecx
jmp 0x1027dcc6
movzx eax, al
movsx eax, byte [eax + 0x1032e888]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1027dca0
cmp edx, ebx
jne 0x1027dca0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1027dcf7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1026465b
leave
ret
Function at 0x1028042e
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 + 0x1033a000]
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 0x1028046e
cmp byte [ebx], 0xa
jne 0x1028046e
or byte [edi + eax + 0x28], 4
jmp 0x10280473
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 0x10280572
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10280555
inc eax
cmp dl, 0xd
je 0x1028049f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x102804c5
cmp eax, ecx
jae 0x102804d3
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 0x10280487
jmp 0x10280572
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 0x10280550
cmp dword [ebp - 0x10], 0
je 0x10280550
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1033a000]
test byte [eax + edi + 0x28], 0x48
je 0x1028052a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10280515
mov byte [esi], dl
jmp 0x10280526
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1033a000]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10280572
cmp byte [ebp - 1], 0xa
jne 0x10280539
cmp esi, ebx
jne 0x10280539
mov byte [esi], 0xa
jmp 0x10280571
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.102886f9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10280572
mov byte [esi], 0xd
jmp 0x10280571
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1033a000]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1028056f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10280572
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1028057b
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 + 0x1033a000]
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 0x102805c1
cmp word [ebx], dx
jne 0x102805c1
or byte [eax + edi + 0x28], 4
jmp 0x102805c6
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 0x10280729
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 0x10280709
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10280607
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1028063d
cmp eax, edx
jae 0x1028064b
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 0x102805e2
jmp 0x10280729
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 0x10280704
cmp dword [ebp - 0x18], 0
je 0x10280704
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1033a000]
test byte [eax + edi + 0x28], 0x48
je 0x102806da
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 0x1028069e
mov word [esi], cx
jmp 0x102806d5
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1033a000]
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 + 0x1033a000]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1033a000]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10280729
pop eax
cmp word [ebp - 4], ax
jne 0x102806ea
cmp esi, ebx
jne 0x102806ea
mov word [esi], ax
jmp 0x10280726
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.102886f9
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10280729
push 0xd
pop eax
jmp 0x102806e5
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1033a000]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10280723
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10280729
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 0x10285fd6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x102f7eec
push 0x102f7ee4
push str.FlsAlloc
push 0x1f
call fcn.10285e41
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1028600a
push dword [ebp + 8]
mov ecx, esi
call dword [0x102a2384]
call esi
jmp 0x10286010
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10286054
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x102f7efc
push 0x102f7ef4
push str.FlsGetValue
push 0x21
call fcn.10285e41
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1028608b
push dword [ebp + 8]
mov ecx, esi
call dword [0x102a2384]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10286093
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x102f7f04
push 0x102f7efc
push str.FlsSetValue
push 0x22
call fcn.10285e41
mov esi, eax
add esp, 0x10
test esi, esi
je 0x102860cd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x102a2384]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]