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

Disassembly:
sub esp, 0x14
mov edx, dword [0x1019eea4]
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 + 0x1b94]
test al, 0x10
jne 0x100ed841
mov ebx, dword [ebp + 0x118]
test ebx, ebx
je 0x100ed741
cmp dword [edi + 0x1bc8], ebx
jne 0x100ed837
mov esi, dword [edi + 0x1c00]
xor eax, eax
cmp esi, 0xffffffff
cmove esi, eax
cmp byte [esi + edi + 0xec], al
je 0x100ed837
xor al, al
jmp 0x100ed7cb
cmp byte [edi + 0xec], 0
je 0x100ed837
test al, 8
je 0x100ed837
test byte [ebp + 0x11c], 1
jne 0x100ed777
cmp dword [edi + 0x1bc8], esi
je 0x100ed837
cmp dword [edi + 0x1bf8], ebp
jne 0x100ed837
lea esi, [ebp + 0x120]
mov ecx, ebp
push esi
call fcn.100df550
mov ebx, eax
mov ecx, esi
mov edx, ebx
mov dword [ebp + 0x118], ebx
call fcn.100df860
mov byte [esp + 0x17], al
test al, al
je 0x100ed7bb
cmp byte [edi + 0x3d8], 0
je 0x100ed7bb
mov edx, ebp
mov ecx, ebx
call fcn.100df610
mov ecx, ebp
call fcn.100e8000
mov al, byte [esp + 0x17]
cmp dword [edi + 0x1bc8], ebx
jne 0x100ed837
mov edx, dword [0x1019eea4]
xor esi, esi
mov byte [edi + 0x1bd5], al
cmp byte [edx + esi + 0xec], 0
mov ecx, dword [ebp + 0xc0]
mov eax, dword [ebp + 0xc8]
mov eax, dword [eax + ecx*4 - 4]
mov dword [esp + 0x18], eax
jne 0x100ed7f3
xor al, al
jmp 0x100ed80b
movss xmm1, dword [edx + 0x30]
movss xmm0, dword [edx + esi*4 + 0x444]
mulss xmm1, xmm1
comiss xmm0, xmm1
setae al
mov dword [edi + 0x1bdc], 0xffffffff
mov dword [edi + 0x1be0], 0xffffffff
mov dword [edi + 0x1be8], 0xffffffff
mov dword [edi + 0x1bec], 0xffffffff
test al, al
jne 0x100ed87b
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
xor ebp, ebp
or ebx, 0xffffffff
mov edx, 0x1017e04d
mov al, 0x23
or esi, 0xffffffff
cmp al, 0x23
jne 0x100ed85e
cmp byte [edx], al
jne 0x100ed85e
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 + 0x1017e258]
test al, al
jne 0x100ed850
not ebx
mov esi, ebp
cmp byte [edi + 0x1e3c], 0
jne 0x100ed8bf
call fcn.100ed600
mov eax, dword [esp + 0x18]
mov dword [edi + 0x1e58], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x1e54], ebx
mov byte [edi + 0x1e3c], 1
mov dword [edi + 0x1e40], eax
mov dword [edi + 0x1e48], esi
cmp ebx, dword [edi + 0x1bc8]
jne 0x100ed8bf
mov byte [edi + 0x1bd6], 1
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 0x1b38]
mov dword [edi + 0x1e44], eax
mov byte [edi + 0x1e3d], 1
test bl, 1
jne 0x100ed90d
xor edx, edx
xor ecx, ecx
call fcn.100e9900
cmp dword [edi + 0x1ea4], 0
je 0x100ed90d
test dword [edi + 0x1e98], 0x1000
je 0x100ed90d
mov eax, dword [edi + 0x1b94]
mov byte [eax + 0x8f], 1
mov byte [eax + 0xa8], 1
test bl, 0x12
jne 0x100ed919
and dword [ebp + 0x11c], 0xfffffffe
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x14
ret
Function at 0x100efef0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x100eff26
mov eax, dword [0x1019eea4]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x100eff16
dec dword [eax + 0x370]
push ecx
call fcn.1012bf89
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100eff5a
mov eax, dword [0x1019eea4]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x100eff4a
dec dword [eax + 0x370]
push ecx
call fcn.1012bf89
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x100eff8e
mov eax, dword [0x1019eea4]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x100eff7e
dec dword [eax + 0x370]
push ecx
call fcn.1012bf89
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 0x100effde
mov eax, dword [0x1019eea4]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x100effce
dec dword [eax + 0x370]
push ecx
call fcn.1012bf89
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x100f0012
mov eax, dword [0x1019eea4]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x100f0002
dec dword [eax + 0x370]
push ecx
call fcn.1012bf89
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x100f0046
mov eax, dword [0x1019eea4]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x100f0036
dec dword [eax + 0x370]
push ecx
call fcn.1012bf89
add esp, 4
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.100f2b00
Function at 0x100f38b0
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 [0x1019eea4]
test eax, eax
je 0x100f38f9
inc dword [eax + 0x370]
push ebx
call fcn.1012cec5
movzx edx, byte [esi]
add esp, 4
movzx ecx, byte [esi + 1]
mov ebp, eax
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 0x100f39a7
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 0x100f39a7
movzx ecx, byte [esi + 8]
movzx eax, byte [esi + 9]
movzx edi, byte [esi + 0xb]
shl ecx, 8
add ecx, eax
mov dword [0x1027df2c], esi
movzx eax, byte [esi + 0xa]
add esi, 0x10
shl ecx, 8
add ecx, eax
mov dword [0x1027df34], ebp
shl ecx, 8
add ecx, ebp
mov dword [0x1027df38], ebp
add edi, ecx
mov ecx, esi
mov dword [0x1027df30], edi
call fcn.100f6080
cmp eax, esi
je 0x100f39a7
cmp dword [0x1027df38], edi
ja 0x100f39a7
mov ecx, eax
mov esi, eax
call fcn.100f6080
cmp eax, esi
jne 0x100f3992
mov esi, dword [esp + 0x118]
test esi, esi
je 0x100f39bf
mov ecx, 0x1e
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
jmp 0x100f39ff
push 0x78
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.10120e50
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.100f3460
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xfc
ret 0x10
Function at 0x100f71b0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x30
push ebx
mov ebx, dword [0x1019eea4]
lea eax, [esp + 0x20]
push esi
push edi
push eax
push dword [0x101a15f8]
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 [0x101a15f0]
mov esi, dword [esp + 0x24]
mov edx, esi
sbb edx, dword [0x101a15f4]
call fcn.101487a0
mov edx, dword [0x101a15ec]
mov ecx, dword [0x101a15e8]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x10], xmm0
call fcn.101487a0
movss xmm1, dword [esp + 0x10]
cvtsd2ss xmm0, xmm0
push 0x11
divss xmm1, xmm0
movss dword [ebx + 0x18], xmm1
mov dword [0x101a15f4], esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [0x101a15f0], 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 ecx, dword [0x1019eea4]
shr eax, 0xf
and al, 1
mov byte [ebx + 0x1a1], al
cmp byte [ecx + 0x357], 0
lea esi, [ecx + 0xe4]
je 0x100f72fd
cvttss2si eax, dword [esi]
mov dword [esp + 0x10], eax
cvttss2si eax, dword [ecx + 0xe8]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push dword [0x101a15f8]
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 0x100f7369
mov ecx, dword [0x101a15f8]
cmp eax, ecx
je 0x100f732a
push ecx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x100f7369
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x100f7369
lea eax, [esp + 0x18]
push eax
push dword [0x101a15f8]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x100f7369
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 + 0xb0], 0
je 0x100f7377
or eax, 0xffffffff
jmp 0x100f7382
mov eax, dword [0x1019eea4]
mov eax, dword [eax + 0x1e38]
cmp dword [0x101939b8], eax
je 0x100f7394
mov dword [0x101939b8], eax
call fcn.100f7080
pop edi
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x101130a0
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword fs:[0x2c]
movaps xmm0, xmm1
mov edx, dword [0x101945dc]
push ebx
mov ebx, ecx
movss dword [ebp - 0x20], xmm0
push esi
mov ecx, dword [eax + edx*4]
mov eax, dword [0x101a1608]
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
cmp eax, dword [ecx + 4]
jle 0x1011310d
push 0x101a1608
call fcn.1011812c
add esp, 4
cmp dword [0x101a1608], 0xffffffff
jne 0x10113108
mov eax, dword [0x101939bc]
push 0x101a1608
mov eax, dword [eax + 0x178]
mov dword [0x101a1600], eax
call fcn.101180db
add esp, 4
movss xmm0, dword [ebp - 0x20]
mov eax, dword [ebx + 0x2950]
mov dword [ebp - 4], eax
test eax, eax
je 0x101131b5
cmp dword [ebp + 8], 0
jl 0x101131b5
pushal
movss xmm2, dword [ebp - 0x20]
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 4]
call dword [0x101a1600]
pop ecx
popal
mov ecx, dword [ebp - 0xc]
movss xmm0, dword [ebp - 8]
mov eax, dword [0x101a1604]
movss dword [ebp - 4], xmm0
cmp eax, dword [ecx + 4]
jle 0x1011319d
push 0x101a1604
call fcn.1011812c
add esp, 4
cmp dword [0x101a1604], 0xffffffff
jne 0x10113198
mov edx, 0xc60bf9f2
mov ecx, 0x10177e91
call fcn.1006f0b0
mov ecx, eax
call fcn.100b1a90
push 0x101a1604
mov dword [0x101a160c], eax
call fcn.101180db
add esp, 4
movss xmm0, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov eax, dword [0x101a160c]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0x10]
movss dword [eax + ecx], xmm0
movss xmm0, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10118af1
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 0x10118b18
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x10118b1b
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.10118acd
pop esi
leave
ret 8
Function at 0x1012d8eb
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1018b040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x101531b0
push esi
call fcn.1013a5c1
pop ecx
pop ecx
test eax, eax
jne 0x1012d919
xor al, al
jmp 0x1012d996
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.1012d62c
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x1012d953
push dword [ebp - 0x210]
call fcn.1012bf89
xor al, al
jmp 0x1012d994
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1012d959
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x1012d979
push edx
call fcn.1012d822
pop ecx
test al, al
je 0x1012d944
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1012d987
mov bl, 1
push dword [ebp - 0x210]
call fcn.1012bf89
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1011889f
leave
ret

Function at 0x10130516
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10148270
mov eax, dword [0x1018b040]
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.101354e5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10130b33
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10130c8f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10148100
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 + 0x10194ea8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10139e09
mov ecx, dword [esi*4 + 0x10194ea8]
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 0x10130c88
cmp eax, dword [ecx + edi + 0x24]
jne 0x10130c88
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 0x10130c88
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10139e09
add esp, 0x14
test edx, edx
jl 0x10130c88
jg 0x10130bfe
test eax, eax
jb 0x10130c88
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10130c88
jl 0x10130c18
cmp dword [ebp - 0x1008], eax
ja 0x10130c88
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10130c36
test ebx, ebx
je 0x10130c6f
cmp ecx, edi
jae 0x10130c6f
mov al, byte [ecx]
cmp al, 0xd
jne 0x10130c50
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10130c5c
cmp byte [ecx + 1], 0xa
jne 0x10130c5c
inc ecx
jmp 0x10130c5c
movzx eax, al
movsx eax, byte [eax + 0x1018d170]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10130c36
cmp edx, ebx
jne 0x10130c36
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10130c8d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1011889f
leave
ret
Function at 0x10138145
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10154a40
push 0x10154a38
push str.FlsAlloc
push 0x1f
call fcn.10137fb0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10138179
push dword [ebp + 8]
mov ecx, esi
call dword [0x1014e2ac]
call esi
jmp 0x1013817f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x101381c3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10154a50
push 0x10154a48
push str.FlsGetValue
push 0x21
call fcn.10137fb0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101381fa
push dword [ebp + 8]
mov ecx, esi
call dword [0x1014e2ac]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10138202
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10154a58
push 0x10154a50
push str.FlsSetValue
push 0x22
call fcn.10137fb0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1013823c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1014e2ac]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x101392a1
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 + 0x10194ea8]
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 0x101392e1
cmp byte [ebx], 0xa
jne 0x101392e1
or byte [edi + eax + 0x28], 4
jmp 0x101392e6
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 0x101393e5
mov dl, byte [eax]
cmp dl, 0x1a
je 0x101393c8
inc eax
cmp dl, 0xd
je 0x10139312
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10139338
cmp eax, ecx
jae 0x10139346
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 0x101392fa
jmp 0x101393e5
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 0x101393c3
cmp dword [ebp - 0x10], 0
je 0x101393c3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10194ea8]
test byte [eax + edi + 0x28], 0x48
je 0x1013939d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10139388
mov byte [esi], dl
jmp 0x10139399
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10194ea8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x101393e5
cmp byte [ebp - 1], 0xa
jne 0x101393ac
cmp esi, ebx
jne 0x101393ac
mov byte [esi], 0xa
jmp 0x101393e4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10139e27
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x101393e5
mov byte [esi], 0xd
jmp 0x101393e4
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10194ea8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x101393e2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x101393e5
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x101393ee
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 + 0x10194ea8]
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 0x10139434
cmp word [ebx], dx
jne 0x10139434
or byte [eax + edi + 0x28], 4
jmp 0x10139439
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 0x1013959c
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 0x1013957c
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1013947a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x101394b0
cmp eax, edx
jae 0x101394be
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 0x10139455
jmp 0x1013959c
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 0x10139577
cmp dword [ebp - 0x18], 0
je 0x10139577
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10194ea8]
test byte [eax + edi + 0x28], 0x48
je 0x1013954d
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 0x10139511
mov word [esi], cx
jmp 0x10139548
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10194ea8]
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 + 0x10194ea8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10194ea8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1013959c
pop eax
cmp word [ebp - 4], ax
jne 0x1013955d
cmp esi, ebx
jne 0x1013955d
mov word [esi], ax
jmp 0x10139599
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10139e27
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1013959c
push 0xd
pop eax
jmp 0x10139558
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10194ea8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10139596
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1013959c
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret