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

Disassembly:
sub esp, 0x14
mov edx, dword [0x103d7bec]
mov eax, ecx
push ebx
push ebp
push esi
push edi
mov edi, edx
mov dword [esp + 0x1c], eax
xor esi, esi
mov dword [esp + 0x18], esi
mov ebp, dword [edi + 0x1bdc]
test al, 0x10
jne 0x10155fa1
mov ebx, dword [ebp + 0x118]
test ebx, ebx
je 0x10155ea1
cmp dword [edi + 0x1c10], ebx
jne 0x10155f97
mov esi, dword [edi + 0x1c48]
xor eax, eax
cmp esi, 0xffffffff
cmove esi, eax
cmp byte [esi + edi + 0x130], al
je 0x10155f97
xor al, al
jmp 0x10155f2b
cmp byte [edi + 0x130], 0
je 0x10155f97
test al, 8
je 0x10155f97
test byte [ebp + 0x11c], 1
jne 0x10155ed7
cmp dword [edi + 0x1c10], esi
je 0x10155f97
cmp dword [edi + 0x1c40], ebp
jne 0x10155f97
lea esi, [ebp + 0x120]
mov ecx, ebp
push esi
call fcn.10148680
mov ebx, eax
mov ecx, esi
mov edx, ebx
mov dword [ebp + 0x118], ebx
call fcn.101489b0
mov byte [esp + 0x17], al
test al, al
je 0x10155f1b
cmp byte [edi + 0x420], 0
je 0x10155f1b
mov edx, ebp
mov ecx, ebx
call fcn.10148760
mov ecx, ebp
call fcn.101509b0
mov al, byte [esp + 0x17]
cmp dword [edi + 0x1c10], ebx
jne 0x10155f97
mov edx, dword [0x103d7bec]
xor esi, esi
mov byte [edi + 0x1c1d], al
cmp byte [edx + esi + 0x130], 0
mov ecx, dword [ebp + 0xc0]
mov eax, dword [ebp + 0xc8]
mov eax, dword [eax + ecx*4 - 4]
mov dword [esp + 0x18], eax
jne 0x10155f53
xor al, al
jmp 0x10155f6b
movss xmm1, dword [edx + 0x74]
movss xmm0, dword [edx + esi*4 + 0x48c]
mulss xmm1, xmm1
comiss xmm0, xmm1
setae al
mov dword [edi + 0x1c24], 0xffffffff
mov dword [edi + 0x1c28], 0xffffffff
mov dword [edi + 0x1c30], 0xffffffff
mov dword [edi + 0x1c34], 0xffffffff
test al, al
jne 0x10155fdb
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
xor ebp, ebp
or ebx, 0xffffffff
mov edx, 0x101e3229
mov al, 0x23
or esi, 0xffffffff
cmp al, 0x23
jne 0x10155fbe
cmp byte [edx], al
jne 0x10155fbe
cmp byte [edx + 1], al
cmove ebx, esi
movzx ecx, bl
movzx eax, al
xor ecx, eax
shr ebx, 8
mov al, byte [edx]
inc edx
xor ebx, dword [ecx*4 + 0x101e3418]
test al, al
jne 0x10155fb0
not ebx
mov esi, ebp
cmp byte [edi + 0x1e8c], 0
jne 0x1015601f
call fcn.10155d60
mov eax, dword [esp + 0x18]
mov dword [edi + 0x1ea8], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x1ea4], ebx
mov byte [edi + 0x1e8c], 1
mov dword [edi + 0x1e90], eax
mov dword [edi + 0x1e98], esi
cmp ebx, dword [edi + 0x1c10]
jne 0x1015601f
mov byte [edi + 0x1c1e], 1
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 0x1b80]
mov dword [edi + 0x1e94], eax
mov byte [edi + 0x1e8d], 1
test bl, 1
jne 0x1015606d
xor edx, edx
xor ecx, ecx
call fcn.101521a0
cmp dword [edi + 0x1ef4], 0
je 0x1015606d
test dword [edi + 0x1ee8], 0x1000
je 0x1015606d
mov eax, dword [edi + 0x1bdc]
mov byte [eax + 0x8f], 1
mov byte [eax + 0xa8], 1
test bl, 0x12
jne 0x10156079
and dword [ebp + 0x11c], 0xfffffffe
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x14
ret
Function at 0x10157e70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10157ea6
mov eax, dword [0x103d7bec]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x10157e96
dec dword [eax + 0x3b4]
push ecx
call fcn.1019a439
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x10157eda
mov eax, dword [0x103d7bec]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x10157eca
dec dword [eax + 0x3b4]
push ecx
call fcn.1019a439
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x10157f0e
mov eax, dword [0x103d7bec]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x10157efe
dec dword [eax + 0x3b4]
push ecx
call fcn.1019a439
add esp, 4
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 0x10157f5e
mov eax, dword [0x103d7bec]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x10157f4e
dec dword [eax + 0x3b4]
push ecx
call fcn.1019a439
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x10157f92
mov eax, dword [0x103d7bec]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x10157f82
dec dword [eax + 0x3b4]
push ecx
call fcn.1019a439
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x10157fc6
mov eax, dword [0x103d7bec]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x10157fb6
dec dword [eax + 0x3b4]
push ecx
call fcn.1019a439
add esp, 4
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.1015ac00
Function at 0x1015eff0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x38
mov eax, dword [0x101f80c0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [0x103d7bec]
lea eax, [esp + 0x24]
push esi
push edi
push eax
push dword [0x103da340]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
movd xmm1, eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [esp + 0x20]
cvtdq2ps xmm0, xmm0
push eax
movss dword [ebx + 0x54], xmm1
movss dword [ebx + 0x58], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [esp + 0x20]
mov ecx, edi
sub ecx, dword [0x103da338]
mov esi, dword [esp + 0x24]
mov edx, esi
sbb edx, dword [0x103da33c]
call fcn.101b3fa0
mov edx, dword [0x103da334]
mov ecx, dword [0x103da330]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x10], xmm0
call fcn.101b3fa0
movss xmm1, dword [esp + 0x10]
cvtsd2ss xmm0, xmm0
push 0x11
divss xmm1, xmm0
movss dword [ebx + 0x5c], xmm1
mov dword [0x103da33c], esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [0x103da338], edi
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [ebx + 0x140], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [ebx + 0x141], al
call esi
shr eax, 0xf
and al, 1
mov byte [ebx + 0x143], 0
push 0xa0
mov byte [ebx + 0x142], al
call esi
shr eax, 0xf
and al, 1
push 0xa1
mov byte [ebx + 0x1e4], al
call esi
mov ecx, dword [0x103d7bec]
shr eax, 0xf
and al, 1
mov byte [ebx + 0x1e5], al
cmp byte [ecx + 0x39b], 0
lea esi, [ecx + 0x128]
je 0x1015f148
cvttss2si eax, dword [esi]
mov dword [esp + 0x10], eax
cvttss2si eax, dword [ecx + 0x12c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push dword [0x103da340]
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], 0xff7fffff
mov dword [esi + 4], 0xff7fffff
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x1015f1b4
mov ecx, dword [0x103da340]
cmp eax, ecx
je 0x1015f175
push ecx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x1015f1b4
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1015f1b4
lea eax, [esp + 0x18]
push eax
push dword [0x103da340]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1015f1b4
movd xmm0, dword [esp + 0x18]
movd xmm1, dword [esp + 0x1c]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [esi], xmm0
movss dword [esi + 4], xmm1
cmp byte [ebx + 0xf4], 0
je 0x1015f1c2
or eax, 0xffffffff
jmp 0x1015f1cd
mov eax, dword [0x103d7bec]
mov eax, dword [eax + 0x1e88]
cmp dword [0x102133fc], eax
je 0x1015f1df
mov dword [0x102133fc], eax
call fcn.1015eec0
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1018daa9
add esp, 0x38
ret
Function at 0x10183fe0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov edx, dword [esi + 8]
mov edi, edx
and edi, 7
je 0x10184008
cmp edx, edi
jge 0x10183ff8
call fcn.101839c0
mov eax, dword [esi + 0xc]
mov ecx, edi
shr eax, cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
mov dword [esi + 0xc], eax
xor eax, eax
mov ecx, edx
test edx, edx
jle 0x1018402e
mov edx, dword [esi + 0xc]
push ebx
mov bl, dl
mov byte [esp + eax + 0xc], bl
sub ecx, 8
shr edx, 8
inc eax
mov dword [esi + 0xc], edx
mov bl, dl
test ecx, ecx
jg 0x10184016
pop ebx
mov dword [esi + 8], ecx
test ecx, ecx
js 0x101840bc
cmp eax, 4
jge 0x10184057
mov edi, dword [esi + 4]
mov ecx, dword [esi]
cmp ecx, edi
jb 0x10184048
xor dl, dl
jmp 0x1018404d
mov dl, byte [ecx]
inc ecx
mov dword [esi], ecx
mov byte [esp + eax + 8], dl
inc eax
cmp eax, 4
jl 0x10184040
mov eax, dword [esp + 8]
movzx ecx, byte [esp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [esp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
jne 0x101840bc
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
ja 0x101840bc
mov edx, dword [esi + 0x10]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x101840a0
push edi
mov ecx, esi
call fcn.10183ae0
test eax, eax
je 0x101840bc
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.1018f2d0
add dword [esi], edi
add esp, 0xc
add dword [esi + 0x10], edi
mov eax, 1
pop edi
pop esi
pop ecx
ret
pop edi
xor eax, eax
pop esi
pop ecx
ret
Function at 0x101893a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
mov edx, ebx
push ebp
push esi
push edi
cmp dword [ebx + 0x14], 0xf
mov edi, dword [ebx + 0x10]
jbe 0x101893b8
mov edx, dword [ebx]
xor ecx, ecx
mov esi, 0x811c9dc5
test edi, edi
je 0x101893d4
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x101893c3
push esi
push ebx
lea eax, [esp + 0x18]
push eax
call fcn.1018a550
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x101893fc
mov eax, dword [esp + 0x20]
mov dword [eax], ecx
mov byte [eax + 4], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
cmp dword [0x103db53c], 0x71c71c7
je 0x1018955b
push 0x24
call fcn.1018ddb5
add esp, 4
mov edi, eax
push ebx
lea ecx, [edi + 8]
call fcn.1001fd50
mov dword [edi + 0x20], 0
mov ebp, dword [0x103db53c]
mov ebx, dword [0x103db550]
mov eax, ebx
shr eax, 0x1f
lea ecx, [ebp + 1]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x101eaba0]
cvtpd2ps xmm2, xmm0
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x101eaba0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x103db534]
comiss xmm1, xmm0
jbe 0x101894ed
divss xmm2, xmm0
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [esp + 0x18], xmm0
fld qword [esp + 0x18]
fstp qword [esp]
call fcn.101b1c30
fstp qword [esp + 0x18]
movsd xmm0, qword [esp + 0x18]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.101b3e30
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x101894ce
cmp ebx, 0x200
jae 0x101894cc
shl ebx, 3
cmp ebx, ecx
jae 0x101894ce
mov ebx, ecx
push ebx
call fcn.101896e0
push esi
lea eax, [edi + 8]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.1018a550
mov ebp, dword [0x103db53c]
mov edx, dword [eax]
jmp 0x101894f1
mov edx, dword [esp + 0x10]
mov ebx, dword [edx + 4]
inc ebp
mov dword [0x103db53c], ebp
mov dword [edi], edx
mov dword [edi + 4], ebx
mov dword [ebx], edi
mov dword [edx + 4], edi
mov eax, dword [0x103db54c]
mov ecx, dword [0x103db540]
and eax, esi
mov esi, dword [ecx + eax*8]
cmp esi, dword [0x103db538]
jne 0x10189522
mov dword [ecx + eax*8], edi
jmp 0x10189543
cmp esi, edx
jne 0x1018953d
mov dword [ecx + eax*8], edi
mov eax, dword [esp + 0x20]
mov dword [eax], edi
mov byte [eax + 4], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
cmp dword [ecx + eax*8 + 4], ebx
jne 0x10189547
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [esp + 0x20]
mov dword [eax], edi
pop edi
pop esi
pop ebp
mov byte [eax + 4], 1
pop ebx
add esp, 0xc
ret 8
push str.unordered_map_set_too_long
call fcn.1018c80a
int3
Function at 0x1018be6e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x1018be95
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x1018be98
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1018be4a
pop esi
leave
ret 8

Function at 0x1019bdfe
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x101f80c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x101bdf60
push esi
call fcn.101a7d52
pop ecx
pop ecx
test eax, eax
jne 0x1019be2c
xor al, al
jmp 0x1019bea9
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.1019bb3f
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x1019be66
push dword [ebp - 0x210]
call fcn.1019a439
xor al, al
jmp 0x1019bea7
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1019be6c
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x1019be8c
push edx
call fcn.1019bd35
pop ecx
test al, al
je 0x1019be57
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1019be9a
mov bl, 1
push dword [ebp - 0x210]
call fcn.1019a439
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1018daa9
leave
ret

Function at 0x1019ea79
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1018e900
mov eax, dword [0x101f80c0]
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.101a2d65
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1019f096
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1019f1f2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.101b3870
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 + 0x102148a0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.101a759a
mov ecx, dword [esi*4 + 0x102148a0]
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 0x1019f1eb
cmp eax, dword [ecx + edi + 0x24]
jne 0x1019f1eb
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 0x1019f1eb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.101a759a
add esp, 0x14
test edx, edx
jl 0x1019f1eb
jg 0x1019f161
test eax, eax
jb 0x1019f1eb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1019f1eb
jl 0x1019f17b
cmp dword [ebp - 0x1008], eax
ja 0x1019f1eb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1019f199
test ebx, ebx
je 0x1019f1d2
cmp ecx, edi
jae 0x1019f1d2
mov al, byte [ecx]
cmp al, 0xd
jne 0x1019f1b3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1019f1bf
cmp byte [ecx + 1], 0xa
jne 0x1019f1bf
inc ecx
jmp 0x1019f1bf
movzx eax, al
movsx eax, byte [eax + 0x101f8368]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1019f199
cmp edx, ebx
jne 0x1019f199
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1019f1f0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1018daa9
leave
ret
Function at 0x101a59c5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101bf688
push 0x101bf680
push str.FlsAlloc
push 0x1f
call fcn.101a5830
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101a59f9
push dword [ebp + 8]
mov ecx, esi
call dword [0x101bb2e4]
call esi
jmp 0x101a59ff
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x101a5a43
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101bf698
push 0x101bf690
push str.FlsGetValue
push 0x21
call fcn.101a5830
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101a5a7a
push dword [ebp + 8]
mov ecx, esi
call dword [0x101bb2e4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x101a5a82
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101bf6a0
push 0x101bf698
push str.FlsSetValue
push 0x22
call fcn.101a5830
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101a5abc
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x101bb2e4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x101a6a32
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 + 0x102148a0]
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 0x101a6a72
cmp byte [ebx], 0xa
jne 0x101a6a72
or byte [edi + eax + 0x28], 4
jmp 0x101a6a77
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 0x101a6b76
mov dl, byte [eax]
cmp dl, 0x1a
je 0x101a6b59
inc eax
cmp dl, 0xd
je 0x101a6aa3
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x101a6ac9
cmp eax, ecx
jae 0x101a6ad7
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 0x101a6a8b
jmp 0x101a6b76
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 0x101a6b54
cmp dword [ebp - 0x10], 0
je 0x101a6b54
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x102148a0]
test byte [eax + edi + 0x28], 0x48
je 0x101a6b2e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x101a6b19
mov byte [esi], dl
jmp 0x101a6b2a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x102148a0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x101a6b76
cmp byte [ebp - 1], 0xa
jne 0x101a6b3d
cmp esi, ebx
jne 0x101a6b3d
mov byte [esi], 0xa
jmp 0x101a6b75
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.101a75b8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x101a6b76
mov byte [esi], 0xd
jmp 0x101a6b75
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x102148a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x101a6b73
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x101a6b76
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x101a6b7f
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 + 0x102148a0]
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 0x101a6bc5
cmp word [ebx], dx
jne 0x101a6bc5
or byte [eax + edi + 0x28], 4
jmp 0x101a6bca
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 0x101a6d2d
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 0x101a6d0d
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x101a6c0b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x101a6c41
cmp eax, edx
jae 0x101a6c4f
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 0x101a6be6
jmp 0x101a6d2d
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 0x101a6d08
cmp dword [ebp - 0x18], 0
je 0x101a6d08
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x102148a0]
test byte [eax + edi + 0x28], 0x48
je 0x101a6cde
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 0x101a6ca2
mov word [esi], cx
jmp 0x101a6cd9
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x102148a0]
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 + 0x102148a0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x102148a0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x101a6d2d
pop eax
cmp word [ebp - 4], ax
jne 0x101a6cee
cmp esi, ebx
jne 0x101a6cee
mov word [esi], ax
jmp 0x101a6d2a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.101a75b8
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x101a6d2d
push 0xd
pop eax
jmp 0x101a6ce9
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x102148a0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x101a6d27
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x101a6d2d
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret