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

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x100f4058
mov eax, dword [0x1034edb4]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x100f4046
dec dword [eax + 0x370]
mov edx, dword [0x1034edb8]
call fcn.100e06e0
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100f408e
mov eax, dword [0x1034edb4]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x100f407c
dec dword [eax + 0x370]
mov edx, dword [0x1034edb8]
call fcn.100e06e0
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x100f40c4
mov eax, dword [0x1034edb4]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x100f40b2
dec dword [eax + 0x370]
mov edx, dword [0x1034edb8]
call fcn.100e06e0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x100f4116
mov eax, dword [0x1034edb4]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x100f4104
dec dword [eax + 0x370]
mov edx, dword [0x1034edb8]
call fcn.100e06e0
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x100f414c
mov eax, dword [0x1034edb4]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x100f413a
dec dword [eax + 0x370]
mov edx, dword [0x1034edb8]
call fcn.100e06e0
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x100f4182
mov eax, dword [0x1034edb4]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x100f4170
dec dword [eax + 0x370]
mov edx, dword [0x1034edb8]
call fcn.100e06e0
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.100f6c60
Function at 0x100f7af0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xfc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10c]
push edi
movss dword [esp + 0x10], xmm3
mov dword [esp + 0x14], ecx
movzx ebx, byte [esi + 8]
movzx eax, byte [esi + 9]
shl ebx, 8
add ebx, eax
movzx eax, byte [esi + 0xa]
shl ebx, 8
add ebx, eax
movzx eax, byte [esi + 0xb]
shl ebx, 8
add ebx, eax
mov eax, dword [0x1034edb4]
test eax, eax
je 0x100f7b39
inc dword [eax + 0x370]
mov edx, dword [0x1034edb8]
mov ecx, ebx
call fcn.100e06d0
movzx edx, byte [esi]
mov ebp, eax
movzx ecx, byte [esi + 1]
shl edx, 8
add edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
add edx, ecx
movzx ecx, byte [esi + 3]
shl edx, 8
add edx, ecx
cmp edx, 0x57bc0000
jne 0x100f7beb
movzx ecx, byte [esi + 4]
movzx eax, byte [esi + 5]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 6]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 7]
shl ecx, 8
add ecx, eax
jne 0x100f7beb
movzx edi, byte [esi + 8]
movzx eax, byte [esi + 9]
shl edi, 8
add edi, eax
mov dword [0x1034e48c], esi
movzx eax, byte [esi + 0xa]
shl edi, 8
add edi, eax
mov dword [0x1034e494], ebp
movzx eax, byte [esi + 0xb]
add esi, 0x10
shl edi, 8
mov ecx, esi
add edi, eax
mov dword [0x1034e498], ebp
add edi, ebp
mov dword [0x1034e490], edi
call fcn.100fa260
cmp eax, esi
je 0x100f7beb
cmp dword [0x1034e498], edi
ja 0x100f7beb
mov ecx, eax
mov esi, eax
call fcn.100fa260
cmp eax, esi
jne 0x100f7bd6
mov esi, dword [esp + 0x118]
test esi, esi
je 0x100f7c03
mov ecx, 0x1e
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
jmp 0x100f7c43
push 0x78
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.1011df10
mov eax, 0xffff
mov byte [esp + 0x2c], 1
add esp, 0xc
mov dword [esp + 0x2c], 3
mov dword [esp + 0x30], 1
mov dword [esp + 0x50], 0x7f7fffff
mov dword [esp + 0x5c], 0x3f800000
mov word [esp + 0x60], ax
mov eax, dword [esp + 0x11c]
lea esi, [esp + 0x18]
movss xmm0, dword [esp + 0x10]
lea edi, [esp + 0x90]
mov ecx, 0x1e
test eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x1e
mov byte [esp + 0x98], 1
lea esi, [esp + 0x90]
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x48]
cmovne ecx, eax
mov dword [esp + 0x18], ebp
lea eax, [esp + 0x18]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x14]
push eax
mov dword [esp + 0x20], ebx
movss dword [esp + 0x2c], xmm0
call fcn.100f76b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xfc
ret 0x10
Function at 0x100f8030
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], edi
test byte [edi], 4
jne 0x100f81e3
mov eax, dword [edi + 0x464]
mov ecx, dword [edi + 0x48]
mov dword [esp + 0x14], ecx
lea edx, [eax*8]
sub edx, eax
lea eax, [edi + 0x58]
mov dword [esp + 0x1c], edx
xor ebx, ebx
mov dword [esp + 0x18], eax
nop dword [eax]
movzx ebp, word [ecx + edx*4]
movzx ecx, word [ecx + edx*4 + 6]
mov esi, ebp
mov eax, dword [esp + 0x14]
add ecx, ebx
imul ecx, dword [edi + 0x1c]
sub esi, ebx
shr esi, 1
sub ebp, esi
movzx eax, word [eax + edx*4 + 4]
sub ebp, ebx
add ecx, eax
mov eax, dword [edi + 0x14]
test eax, eax
je 0x100f80d8
lea edi, [eax + ecx]
test esi, esi
je 0x100f80ae
push esi
push 0
push edi
call fcn.1011df10
add esp, 0xc
add edi, esi
test ebx, ebx
je 0x100f80c3
push ebx
push 0xff
push edi
call fcn.1011df10
add esp, 0xc
test ebp, ebp
je 0x100f8108
push ebp
lea eax, [edi + ebx]
push 0
push eax
call fcn.1011df10
add esp, 0xc
jmp 0x100f8108
mov eax, dword [edi + 0x18]
lea edx, [eax + ecx*4]
test esi, esi
je 0x100f80ea
mov ecx, esi
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
test ebx, ebx
je 0x100f80f8
lea edi, [edx + esi*4]
mov ecx, ebx
or eax, 0xffffffff
rep stosd dword es:[edi], eax
test ebp, ebp
je 0x100f8108
lea eax, [esi + ebx]
mov ecx, ebp
lea edi, [edx + eax*4]
xor eax, eax
rep stosd dword es:[edi], eax
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
movzx ecx, word [ebp + edx*4 + 4]
add ecx, esi
movzx edx, word [ebp + edx*4 + 6]
add edx, ebx
lea eax, [ecx - 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101797a0]
lea eax, [ebx + 1]
inc ebx
add eax, ecx
mov ecx, ebp
cvtpd2ps xmm3, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulss xmm3, dword [edi + 0x24]
addsd xmm0, qword [eax*8 + 0x101797a0]
lea eax, [edx + 1]
movss dword [esp + 0x24], xmm3
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulss xmm2, dword [edi + 0x24]
addsd xmm0, qword [eax*8 + 0x101797a0]
mov eax, dword [esp + 0x18]
movss dword [esp + 0x2c], xmm2
cvtpd2ps xmm1, xmm0
movd xmm0, edx
cvtdq2pd xmm0, xmm0
shr edx, 0x1f
addsd xmm0, qword [edx*8 + 0x101797a0]
mov edx, dword [esp + 0x1c]
cvtpd2ps xmm0, xmm0
addss xmm1, xmm0
mulss xmm1, dword [edi + 0x28]
mulss xmm1, dword [0x10178e88]
movss dword [esp + 0x28], xmm1
movss dword [esp + 0x30], xmm1
movups xmm0, xmmword [esp + 0x24]
movups xmmword [eax], xmm0
add eax, 0x10
mov dword [esp + 0x18], eax
cmp ebx, 0x40
jb 0x100f8070
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x100fb380
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x30
push ebx
mov ebx, dword [0x1034edb4]
lea eax, [esp + 0x20]
push esi
push edi
push eax
push dword [0x10351508]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
movd xmm1, eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [esp + 0x20]
cvtdq2ps xmm0, xmm0
push eax
movss dword [ebx + 0x10], xmm1
movss dword [ebx + 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [esp + 0x20]
mov ecx, edi
sub ecx, dword [0x10351500]
mov esi, dword [esp + 0x24]
mov edx, esi
sbb edx, dword [0x10351504]
call fcn.10142da0
mov edx, dword [0x103514fc]
mov ecx, dword [0x103514f8]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x10], xmm0
call fcn.10142da0
movss xmm1, dword [esp + 0x10]
cvtsd2ss xmm0, xmm0
push 0x11
divss xmm1, xmm0
movss dword [ebx + 0x18], xmm1
mov dword [0x10351504], esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [0x10351500], edi
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [ebx + 0xfc], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [ebx + 0xfd], al
call esi
shr eax, 0xf
and al, 1
mov byte [ebx + 0xff], 0
push 0xa0
mov byte [ebx + 0xfe], al
call esi
shr eax, 0xf
and al, 1
push 0xa1
mov byte [ebx + 0x1a0], al
call esi
mov esi, dword [0x1034edb4]
shr eax, 0xf
and al, 1
mov byte [ebx + 0x1a1], al
cmp byte [esi + 0x357], 0
je 0x100fb4cb
cvttss2si eax, dword [esi + 0xe4]
mov dword [esp + 0x10], eax
cvttss2si eax, dword [esi + 0xe8]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push dword [0x10351508]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetCursorPos]
mov dword [esi + 0xe4], 0xff7fffff
mov dword [esi + 0xe8], 0xff7fffff
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x100fb545
mov ecx, dword [0x10351508]
cmp eax, ecx
je 0x100fb4ff
push ecx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x100fb545
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x100fb545
lea eax, [esp + 0x18]
push eax
push dword [0x10351508]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x100fb545
movd xmm0, dword [esp + 0x18]
movd xmm1, dword [esp + 0x1c]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [esi + 0xe4], xmm0
movss dword [esi + 0xe8], xmm1
cmp byte [ebx + 0xb0], 0
je 0x100fb553
or eax, 0xffffffff
jmp 0x100fb55e
mov eax, dword [0x1034edb4]
mov eax, dword [eax + 0x1e38]
cmp dword [0x10189810], eax
je 0x100fb570
mov dword [0x10189810], eax
call fcn.100fb250
pop edi
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x10119d80
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0x2c]
sub esp, 0xc
mov ecx, dword [0x1018a32c]
push ebx
push esi
mov esi, dword [eax + ecx*4]
mov eax, dword [0x10352e90]
cmp eax, dword [esi + 4]
jle 0x10119e2d
push 0x10352e90
call fcn.1011c323
add esp, 4
cmp dword [0x10352e90], 0xffffffff
jne 0x10119e2d
mov eax, dword [0x10189820]
movq xmm0, qword [str.URYPiCAI__]
push edi
mov edi, dword [eax + 8]
mov ax, word [0x10178d2c]
movq qword [esp + 0xe], xmm0
mov word [esp + 0x16], ax
test ah, ah
je 0x10119e0c
xor ebx, ebx
mov eax, 0x1f7047dd
mov cl, bl
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul eax, eax, 0x39
sub cl, al
add cl, 0x32
xor byte [esp + ebx + 0xe], cl
inc ebx
cmp ebx, 0xa
jl 0x10119de3
mov eax, dword [edi]
lea ecx, [esp + 0xe]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x3c]
call eax
push 0x10352e90
mov dword [0x10352e8c], eax
call fcn.1011c2d9
add esp, 4
pop edi
mov eax, dword [0x10352e94]
cmp eax, dword [esi + 4]
jle 0x10119ec9
push 0x10352e94
call fcn.1011c323
add esp, 4
cmp dword [0x10352e94], 0xffffffff
jne 0x10119ec9
mov eax, dword [0x10189820]
movq xmm0, qword [str.URYPiZW___]
mov esi, dword [eax + 8]
mov ax, word [0x10178d20]
movq qword [esp + 0xa], xmm0
mov word [esp + 0x12], ax
test ah, ah
je 0x10119ea9
xor ebx, ebx
nop dword [eax + eax]
mov eax, 0x1f7047dd
mov cl, bl
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul eax, eax, 0x39
sub cl, al
add cl, 0x32
xor byte [esp + ebx + 0xa], cl
inc ebx
cmp ebx, 0xa
jl 0x10119e80
mov eax, dword [esi]
lea ecx, [esp + 0xa]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x3c]
call eax
push 0x10352e94
mov dword [0x10352e98], eax
call fcn.1011c2d9
add esp, 4
mov ecx, dword [0x10352e8c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
pop esi
pop ebx
cmp eax, 6
ja case.default.0x10119efe
jmp dword [eax*4 + 0x10119fb4]
mov ecx, dword [0x10352e98]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
cmp eax, 3
ja case.default.0x10119efe
jmp dword [eax*4 + 0x10119fd0]
mov eax, 1
add esp, 0xc
ret
mov eax, 2
add esp, 0xc
ret
mov eax, 3
add esp, 0xc
ret
mov eax, 4
add esp, 0xc
ret
mov ecx, dword [0x10352e98]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
sub eax, 0
je 0x10119f57
sub eax, 1
je 0x10119f4e
sub eax, 1
jne case.default.0x10119efe
mov eax, 7
add esp, 0xc
ret
mov eax, 6
add esp, 0xc
ret
mov eax, 5
add esp, 0xc
ret
mov eax, 8
add esp, 0xc
ret
mov eax, 9
add esp, 0xc
ret
mov ecx, dword [0x10352e98]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
sub eax, 0
je 0x10119f92
sub eax, 1
jne case.default.0x10119efe
mov eax, 0xb
add esp, 0xc
ret
mov eax, 0xa
add esp, 0xc
ret
mov eax, 0xc
add esp, 0xc
ret
mov eax, 0xd
add esp, 0xc
ret
xor eax, eax
add esp, 0xc
ret
Function at 0x10129c0e
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10182098]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x1014c1a8
push esi
call fcn.10135cd4
pop ecx
pop ecx
test eax, eax
jne 0x10129c3c
xor al, al
jmp 0x10129cb9
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.1012994f
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x10129c76
push dword [ebp - 0x210]
call fcn.10128249
xor al, al
jmp 0x10129cb7
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10129c7c
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x10129c9c
push edx
call fcn.10129b45
pop ecx
test al, al
je 0x10129c67
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x10129caa
mov bl, 1
push dword [ebp - 0x210]
call fcn.10128249
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1011c60c
leave
ret

Function at 0x1012c836
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1012c875
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1012c875
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1012c875
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1012c875
cmp dword [ecx + 0x74], 0xe
jbe 0x1012c875
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1012ce11
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1011ce80
mov eax, dword [0x10182098]
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.10130d46
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1012ce53
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1012cfaf
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.101423c0
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 + 0x1018a9c8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1013551c
mov ecx, dword [esi*4 + 0x1018a9c8]
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 0x1012cfa8
cmp eax, dword [ecx + edi + 0x24]
jne 0x1012cfa8
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 0x1012cfa8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1013551c
add esp, 0x14
test edx, edx
jl 0x1012cfa8
jg 0x1012cf1e
test eax, eax
jb 0x1012cfa8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1012cfa8
jl 0x1012cf38
cmp dword [ebp - 0x1008], eax
ja 0x1012cfa8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1012cf56
test ebx, ebx
je 0x1012cf8f
cmp ecx, edi
jae 0x1012cf8f
mov al, byte [ecx]
cmp al, 0xd
jne 0x1012cf70
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1012cf7c
cmp byte [ecx + 1], 0xa
jne 0x1012cf7c
inc ecx
jmp 0x1012cf7c
movzx eax, al
movsx eax, byte [eax + 0x10182310]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1012cf56
cmp edx, ebx
jne 0x1012cf56
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1012cfad
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1011c60c
leave
ret
Function at 0x101339a6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1014d8b0
push 0x1014d8a8
push str.FlsAlloc
push 0x1f
call fcn.10133811
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101339da
push dword [ebp + 8]
mov ecx, esi
call dword [0x101492b4]
call esi
jmp 0x101339e0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10133a24
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1014d8c0
push 0x1014d8b8
push str.FlsGetValue
push 0x21
call fcn.10133811
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10133a5b
push dword [ebp + 8]
mov ecx, esi
call dword [0x101492b4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10133a63
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1014d8c8
push 0x1014d8c0
push str.FlsSetValue
push 0x22
call fcn.10133811
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10133a9d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x101492b4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x101349b4
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 + 0x1018a9c8]
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 0x101349f4
cmp byte [ebx], 0xa
jne 0x101349f4
or byte [edi + eax + 0x28], 4
jmp 0x101349f9
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 0x10134af8
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10134adb
inc eax
cmp dl, 0xd
je 0x10134a25
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10134a4b
cmp eax, ecx
jae 0x10134a59
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 0x10134a0d
jmp 0x10134af8
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 0x10134ad6
cmp dword [ebp - 0x10], 0
je 0x10134ad6
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1018a9c8]
test byte [eax + edi + 0x28], 0x48
je 0x10134ab0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10134a9b
mov byte [esi], dl
jmp 0x10134aac
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1018a9c8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10134af8
cmp byte [ebp - 1], 0xa
jne 0x10134abf
cmp esi, ebx
jne 0x10134abf
mov byte [esi], 0xa
jmp 0x10134af7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1013553a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10134af8
mov byte [esi], 0xd
jmp 0x10134af7
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1018a9c8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10134af5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10134af8
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10134b01
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 + 0x1018a9c8]
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 0x10134b47
cmp word [ebx], dx
jne 0x10134b47
or byte [eax + edi + 0x28], 4
jmp 0x10134b4c
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 0x10134caf
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 0x10134c8f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10134b8d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10134bc3
cmp eax, edx
jae 0x10134bd1
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 0x10134b68
jmp 0x10134caf
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 0x10134c8a
cmp dword [ebp - 0x18], 0
je 0x10134c8a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1018a9c8]
test byte [eax + edi + 0x28], 0x48
je 0x10134c60
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 0x10134c24
mov word [esi], cx
jmp 0x10134c5b
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1018a9c8]
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 + 0x1018a9c8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1018a9c8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10134caf
pop eax
cmp word [ebp - 4], ax
jne 0x10134c70
cmp esi, ebx
jne 0x10134c70
mov word [esi], ax
jmp 0x10134cac
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1013553a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10134caf
push 0xd
pop eax
jmp 0x10134c6b
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1018a9c8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10134ca9
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10134caf
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret