joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10024c70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [0x100b109c]
cmp byte [esi + 0x2d94], 0
jne 0x10024daa
cmp dword [esi + 0x2db4], 0
je 0x10024caa
push 0x2533
push str.C:UsersAdministratorDesktopSamQTE_Source_srcimguiimgui.cpp
push str.g.SettingsWindows.empty__
call fcn.1004d7ba
add esp, 0xc
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10024da3
push edi
push 0x1007764c
push eax
call fcn.10019bf0
mov edi, eax
add esp, 8
test edi, edi
je 0x10024da2
push ebx
push edi
call fcn.100543d2
add esp, 4
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x10024d98
push 2
push 0
push edi
call fcn.1004bd80
add esp, 0xc
test eax, eax
jne 0x10024d98
push edi
call fcn.100543d2
mov ebx, eax
add esp, 4
mov dword [ebp - 4], ebx
cmp ebx, 0xffffffff
je 0x10024d98
push 0
push dword [ebp - 8]
push edi
call fcn.1004bd80
add esp, 0xc
test eax, eax
jne 0x10024d98
mov eax, dword [0x100b109c]
test eax, eax
je 0x10024d31
inc dword [eax + 0x374]
push dword [0x100b10a4]
push ebx
call dword [0x100ae4f8]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10024d98
push edi
push dword [ebp - 4]
push 1
push ebx
call fcn.1004b8f5
add esp, 0x10
push edi
cmp eax, dword [ebp - 4]
je 0x10024d66
call fcn.1004b036
add esp, 4
jmp 0x10024d77
call fcn.1004b036
push dword [ebp - 4]
push ebx
call fcn.1001b490
add esp, 0xc
mov eax, dword [0x100b109c]
test eax, eax
je 0x10024d86
dec dword [eax + 0x374]
push dword [0x100b10a4]
push ebx
call dword [0x100ae4fc]
add esp, 8
jmp 0x10024da1
push edi
call fcn.1004b036
add esp, 4
pop ebx
pop edi
mov byte [esi + 0x2d94], 1
movss xmm0, dword [esi + 0x2d98]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x10024dfc
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x2d98], xmm0
jb 0x10024dfc
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10024deb
push eax
call fcn.10022820
add esp, 4
mov dword [esi + 0x2d98], 0
pop esi
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x35c], 1
mov dword [esi + 0x2d98], 0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100361d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x100ae940]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.10019510
mov edi, eax
mov ecx, dword [edi + 0x90]
cmp dword [ecx + 0x34], 0
jle 0x10036201
cmp dword [ecx + 0x14], 0
jne 0x10036218
cmp dword [ecx + 0x18], 0
jne 0x10036218
push 0xd9
push str.C:UsersAdministratorDesktopSamQTE_Source_srcimguiimgui_impl_win32.cpp
push str.io.Fonts__IsBuilt_____Font_atlas_not_built__It_is_generally_built_by_the_renderer_back_end._Missing_call_to_renderer__NewFrame___function__e.g._ImGui_ImplOpenGL3_NewFrame__._
call fcn.1004d7ba
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
push dword [0x100b10e0]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
movd xmm1, eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [ebp - 0x14]
cvtdq2ps xmm0, xmm0
push eax
movss dword [edi + 8], xmm1
movss dword [edi + 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [0x100b10e8]
mov edx, dword [ebp - 0x10]
sbb edx, dword [0x100b10ec]
call fcn.10045b50
mov edx, dword [0x100b10f4]
mov ecx, dword [0x100b10f0]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 8], xmm0
call fcn.10045b50
movss xmm1, dword [ebp - 8]
cvtsd2ss xmm0, xmm0
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
divss xmm1, xmm0
movss dword [edi + 0x10], xmm1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [0x100b10e8], eax
mov dword [0x100b10ec], ecx
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [edi + 0xf8], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [edi + 0xf9], al
call esi
shr eax, 0xf
and al, 1
mov byte [edi + 0xfb], 0
mov byte [edi + 0xfa], al
call fcn.10019510
cmp byte [eax + 0x353], 0
lea esi, [eax + 0xe0]
je 0x10036326
cvttss2si eax, dword [eax + 0xe4]
cvttss2si ecx, dword [esi]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [0x100b10e0]
mov dword [ebp - 0xc], ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [ebp - 8]
push dword [ebp - 0xc]
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 0x1003638e
mov ecx, dword [0x100b10e0]
cmp eax, ecx
je 0x10036353
push ecx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x1003638e
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1003638e
lea eax, [ebp - 0x1c]
push eax
push dword [0x100b10e0]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1003638e
movd xmm0, dword [ebp - 0x1c]
movd xmm1, dword [ebp - 0x18]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [esi], xmm0
movss dword [esi + 4], xmm1
cmp byte [edi + 0xa8], 0
pop edi
pop esi
je 0x1003639e
or eax, 0xffffffff
jmp 0x100363a3
call fcn.100195c0
cmp dword [0x100ae6b0], eax
je 0x100363b5
mov dword [0x100ae6b0], eax
call fcn.10036680
call fcn.100363e0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100459fc
mov esp, ebp
pop ebp
ret
Function at 0x10042c00
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006fcc0
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x100ae940]
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, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0
push eax
mov dword [ebp - 0x98], 0x42c80000
mov dword [ebp - 0x94], 0
call fcn.10041560
mov dword [esp + 4], 0xbf800000
mov dword [esp], 0
call fcn.10022760
add esp, 8
cmp byte [0x100b10fc], 0
jne 0x10042ce2
mov esi, dword [edi]
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
lea ecx, [esi - 0x21]
cmp ecx, 0x84
ja case.0x10042c8c.41
movzx ecx, byte [ecx + 0x10042df4]
jmp dword [ecx*4 + 0x10042dec]
or eax, 0x100
push 0x80
lea ecx, [ebp - 0x90]
shl eax, 0x10
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
lea eax, [ebp - 0x98]
test esi, esi
push eax
lea ecx, [ebp - 0x90]
mov eax, str.None
cmovne eax, ecx
push eax
call fcn.10037b40
add esp, 8
test al, al
je 0x10042dbc
mov byte [0x100b10fc], 1
jmp 0x10042dbc
lea eax, [ebp - 0x98]
push eax
push 0x100754c4
call fcn.10037b40
add esp, 8
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x1007dc40
push 0
push 1
mov dword [ebp - 4], 0
call fcn.1001aaf0
add esp, 8
mov dword [ebp - 4], 0xffffffff
test al, al
jne 0x10042da6
push 0
push 2
mov dword [ebp - 4], 1
call fcn.1001aaf0
add esp, 8
mov dword [ebp - 4], 0xffffffff
test al, al
jne 0x10042da6
push 0
push 0x12
mov dword [ebp - 4], 2
call fcn.1001aaf0
add esp, 8
mov dword [ebp - 4], 0xffffffff
test al, al
jne 0x10042da6
push 0
push 0x1b
mov dword [ebp - 4], 3
call fcn.1001aaf0
add esp, 8
mov dword [ebp - 4], 0xffffffff
test al, al
jne 0x10042ddf
mov eax, dword [esi]
mov dword [ebp - 4], 4
test eax, eax
jne 0x10042d90
xor al, al
jmp 0x10042d9b
push 0
push eax
call fcn.1001aaf0
add esp, 8
mov dword [ebp - 4], 0xffffffff
test al, al
jne 0x10042dd7
add esi, 4
cmp esi, str.Kiero
jne 0x10042d03
mov al, 1
mov byte [0x100b10fc], al
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.100459fc
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov dword [edi], eax
xor al, al
jmp 0x10042db7
mov dword [edi], 0
xor al, al
jmp 0x10042db7
Function at 0x10042c93
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006fcc0
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x100ae940]
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, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0
push eax
mov dword [ebp - 0x98], 0x42c80000
mov dword [ebp - 0x94], 0
call fcn.10041560
mov dword [esp + 4], 0xbf800000
mov dword [esp], 0
call fcn.10022760
add esp, 8
cmp byte [0x100b10fc], 0
jne 0x10042ce2
mov esi, dword [edi]
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
lea ecx, [esi - 0x21]
cmp ecx, 0x84
ja case.0x10042c8c.41
movzx ecx, byte [ecx + 0x10042df4]
jmp dword [ecx*4 + 0x10042dec]
or eax, 0x100
push 0x80
lea ecx, [ebp - 0x90]
shl eax, 0x10
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
lea eax, [ebp - 0x98]
test esi, esi
push eax
lea ecx, [ebp - 0x90]
mov eax, str.None
cmovne eax, ecx
push eax
call fcn.10037b40
add esp, 8
test al, al
je 0x10042dbc
mov byte [0x100b10fc], 1
jmp 0x10042dbc
lea eax, [ebp - 0x98]
push eax
push 0x100754c4
call fcn.10037b40
add esp, 8
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x1007dc40
push 0
push 1
mov dword [ebp - 4], 0
call fcn.1001aaf0
add esp, 8
mov dword [ebp - 4], 0xffffffff
test al, al
jne 0x10042da6
push 0
push 2
mov dword [ebp - 4], 1
call fcn.1001aaf0
add esp, 8
mov dword [ebp - 4], 0xffffffff
test al, al
jne 0x10042da6
push 0
push 0x12
mov dword [ebp - 4], 2
call fcn.1001aaf0
add esp, 8
mov dword [ebp - 4], 0xffffffff
test al, al
jne 0x10042da6
push 0
push 0x1b
mov dword [ebp - 4], 3
call fcn.1001aaf0
add esp, 8
mov dword [ebp - 4], 0xffffffff
test al, al
jne 0x10042ddf
mov eax, dword [esi]
mov dword [ebp - 4], 4
test eax, eax
jne 0x10042d90
xor al, al
jmp 0x10042d9b
push 0
push eax
call fcn.1001aaf0
add esp, 8
mov dword [ebp - 4], 0xffffffff
test al, al
jne 0x10042dd7
add esi, 4
cmp esi, str.Kiero
jne 0x10042d03
mov al, 1
mov byte [0x100b10fc], al
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.100459fc
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov dword [edi], eax
xor al, al
jmp 0x10042db7
mov dword [edi], 0
xor al, al
jmp 0x10042db7

Function at 0x10043270
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x100b1e2c]
test eax, eax
je 0x1004328c
nop dword [eax]
cmp dword [eax + 4], 0
jne 0x100432e2
mov eax, dword [eax]
test eax, eax
jne 0x10043280
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x100432df
push esi
push edi
xor edi, edi
mov dword [eax + 8], 0
lea edx, [eax + 0x20]
lea esi, [edi + 0x20]
mov dword [edx], edi
mov ecx, edx
mov dword [eax + 4], edx
add esi, 0x20
add edx, 0x20
mov edi, ecx
cmp esi, 0xfe0
jbe 0x100432b5
mov ecx, dword [0x100b1e2c]
mov dword [eax], ecx
mov dword [0x100b1e2c], eax
pop edi
pop esi
test eax, eax
jne 0x100432e2
xor eax, eax
ret
mov edx, dword [eax + 4]
mov ecx, dword [edx]
inc dword [eax + 8]
mov dword [eax + 4], ecx
mov eax, edx
ret
Function at 0x10043ca0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100ae940]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
imul esi, eax, 0x2c
push edi
add esi, dword [0x100b1e20]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10043d00
pop edi
mov eax, 0xa
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100459fc
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x10043d25
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x10043d46
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10043d46
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x10043d40
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x10043d46
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
xor eax, eax
add cl, cl
shl bl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
mov ecx, dword [ebp - 4]
mov byte [esi + 0x14], bl
xor ecx, ebp
pop ebx
pop edi
pop esi
call fcn.100459fc
mov esp, ebp
pop ebp
ret
Function at 0x10043e30
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100ae940]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x10043f28
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10043f21
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
jb 0x10043f08
call ebx
cmp dword [ebp - 0x14], eax
jne 0x10043f08
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10043f08
mov edx, dword [esi]
test edx, edx
jne 0x10043ed1
push 0x200
push edx
mov dword [esi + 4], 0x80
push dword [0x100b110c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10043f21
jmp 0x10043efc
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10043efc
shl eax, 3
push eax
push edx
push 0
push dword [0x100b110c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10043f21
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10043e90
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x10043f6c
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0x10043f6c
mov eax, dword [esi]
push dword [eax + ebx*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10043f66
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.10044200
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [esi + 8]
jb 0x10043f34
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100459fc
mov esp, ebp
pop ebp
ret

Function at 0x10044370
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi], 0
je 0x100443c0
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x100443af
push ebx
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x100443a8
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x10044385
pop ebx
push dword [edi]
push 0
push dword [0x100b110c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
pop ebp
ret
Function at 0x10054195
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10045ab0
mov eax, dword [0x100ae940]
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.1005f00c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100541d7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10054333
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10045bd0
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 + 0x100b1ac0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.100610d6
mov ecx, dword [esi*4 + 0x100b1ac0]
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 0x1005432c
cmp eax, dword [edi + ecx + 0x24]
jne 0x1005432c
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 0x1005432c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100610d6
add esp, 0x14
test edx, edx
jl 0x1005432c
jg 0x100542a2
test eax, eax
jb 0x1005432c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1005432c
jl 0x100542bc
cmp dword [ebp - 0x1008], eax
ja 0x1005432c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100542da
test ebx, ebx
je 0x10054313
cmp ecx, edi
jae 0x10054313
mov al, byte [ecx]
cmp al, 0xd
jne 0x100542f4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10054300
cmp byte [ecx + 1], 0xa
jne 0x10054300
inc ecx
jmp 0x10054300
movzx eax, al
movsx eax, byte [eax + 0x100aebf8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100542da
cmp edx, ebx
jne 0x100542da
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10054331
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100459fc
leave
ret

Function at 0x1005e879
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100827a0
push 0x10082798
push str.FlsAlloc
push 0x1e
call fcn.1005e6c3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005e8ad
push dword [ebp + 8]
mov ecx, esi
call dword [0x10071250]
call esi
jmp 0x1005e8b3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x1005e8f7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100827b0
push 0x100827a8
push str.FlsGetValue
push 0x20
call fcn.1005e6c3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005e92e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10071250]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10060138
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1005ffa9

Function at 0x10060574
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 + 0x100b1ac0]
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 0x100605b4
cmp byte [ebx], 0xa
jne 0x100605b4
or byte [eax + edi + 0x28], 4
jmp 0x100605b9
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100606b7
mov al, byte [edx]
cmp al, 0x1a
je 0x10060699
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x100605e8
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1006060d
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10060617
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 0x100605ca
jmp 0x100606b7
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 0x10060694
cmp dword [ebp - 0xc], 0
je 0x10060694
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x100b1ac0]
test byte [eax + edi + 0x28], 0x48
je 0x1006066e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10060659
mov byte [esi], dl
jmp 0x1006066a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100b1ac0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100606b7
cmp byte [ebp - 1], 0xa
jne 0x1006067d
cmp esi, ebx
jne 0x1006067d
mov byte [esi], 0xa
jmp 0x100606b6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100610f4
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100606b7
mov byte [esi], 0xd
jmp 0x100606b6
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100b1ac0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100606b3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100606b7
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100606c0
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 + 0x100b1ac0]
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 0x10060703
cmp word [esi], dx
jne 0x10060703
or byte [edi + eax + 0x28], 4
jmp 0x10060708
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 0x1006085b
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 0x1006083b
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1006074a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10060780
cmp eax, edx
jae 0x1006078c
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 0x10060722
jmp 0x1006085b
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 0x10060837
cmp dword [ebp - 0x14], 0
je 0x10060837
mov eax, dword [ebx*4 + 0x100b1ac0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1006080f
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x100607d8
mov word [esi], cx
jmp 0x1006080b
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100b1ac0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x100b1ac0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100b1ac0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x1006085b
pop ebx
cmp word [ebp - 4], bx
jne 0x10060820
cmp esi, dword [ebp + 0xc]
jne 0x10060820
mov word [esi], bx
jmp 0x10060858
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100610f4
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1006085b
push 0xd
jmp 0x10060854
mov ecx, dword [ebx*4 + 0x100b1ac0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10060852
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1006085b
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
Function at 0x10061c08
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10061b8a