joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10037210
Capabilities:
Log keystrokes via polling

Disassembly:
mov ecx, dword [0x10092c50]
mov edx, 0x210
push esi
push edi
call fcn.10015d80
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
cmp byte [eax], 0
je 0x100372a6
mov ecx, dword [0x10092c50]
mov edx, 0x210
call fcn.10007f20
cmp byte [eax + 8], 0
jne 0x100372a6
push 0xa0
call edi
shr eax, 0xf
test al, 1
jne 0x100372a6
cmp dword [0x10092c50], 0
jne 0x10037271
push 0x1093
push str.C:UsersUserDocumentsDYOM_ImGUI_InputImGuiimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.10060e17
add esp, 0xc
mov esi, dword [0x10092c50]
cmp byte [esi + 0x3771], 0
je 0x10037292
push 0
push 0x210
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.100085c0
mov dword [esi + 0x33c], 0x210
mov dword [esi + 0x8fc], 0xa0
mov ecx, dword [0x10092c50]
mov edx, 0x214
call fcn.10015d80
cmp byte [eax], 0
je 0x10037334
mov ecx, dword [0x10092c50]
mov edx, 0x214
call fcn.10007f20
cmp byte [eax + 8], 0
jne 0x10037334
push 0xa1
call edi
shr eax, 0xf
test al, 1
jne 0x10037334
cmp dword [0x10092c50], 0
jne 0x100372ff
push 0x1093
push str.C:UsersUserDocumentsDYOM_ImGUI_InputImGuiimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.10060e17
add esp, 0xc
mov esi, dword [0x10092c50]
cmp byte [esi + 0x3771], 0
je 0x10037320
push 0
push 0x214
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.100085c0
mov dword [esi + 0x340], 0x214
mov dword [esi + 0x90c], 0xa1
mov ecx, dword [0x10092c50]
mov edx, 0x212
call fcn.10015d80
cmp byte [eax], 0
je 0x100373bf
mov ecx, dword [0x10092c50]
mov edx, 0x212
call fcn.10007f20
cmp byte [eax + 8], 0
jne 0x100373bf
push 0x5b
call edi
shr eax, 0xf
test al, 1
jne 0x100373bf
cmp dword [0x10092c50], 0
jne 0x1003738a
push 0x1093
push str.C:UsersUserDocumentsDYOM_ImGUI_InputImGuiimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.10060e17
add esp, 0xc
mov esi, dword [0x10092c50]
cmp byte [esi + 0x3771], 0
je 0x100373ab
push 0
push 0x212
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.100085c0
mov dword [esi + 0x228], 0x212
mov dword [esi + 0x904], 0x5b
mov ecx, dword [0x10092c50]
mov edx, 0x216
call fcn.10015d80
cmp byte [eax], 0
je 0x1003744b
mov ecx, dword [0x10092c50]
mov edx, 0x216
call fcn.10007f20
cmp byte [eax + 8], 0
jne 0x1003744b
push 0x5c
call edi
shr eax, 0xf
test al, 1
jne 0x1003744b
mov esi, dword [0x10092c50]
test esi, esi
jne 0x1003741c
push 0x1093
push str.C:UsersUserDocumentsDYOM_ImGUI_InputImGuiimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.10060e17
mov esi, dword [0x10092c50]
add esp, 0xc
cmp byte [esi + 0x3771], 0
je 0x10037437
push 0
push 0x216
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.100085c0
mov dword [esi + 0x22c], 0x216
mov dword [esi + 0x914], 0x5c
pop edi
pop esi
ret
Function at 0x10044bf0
Capabilities:
Hash data with crc32

Disassembly:
test dword [ecx + 0xc], 0x100000
push esi
push edi
je 0x10044c60
mov cl, byte [edx]
lea esi, [edx + 1]
or eax, 0xffffffff
test cl, cl
je 0x10044c38
or edi, 0xffffffff
nop word [eax + eax]
cmp cl, 0x23
jne 0x10044c1f
cmp byte [esi], cl
jne 0x10044c1f
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x100809c0]
test cl, cl
jne 0x10044c10
mov ecx, dword [0x10092c50]
not eax
cmp dword [ecx + 0x3eac], eax
jne 0x10044c4e
mov dword [ecx + 0x3eb0], eax
cmp dword [ecx + 0x3ed4], eax
jne 0x10044c72
mov byte [ecx + 0x3ed8], 1
pop edi
pop esi
ret
mov eax, dword [0x10092c50]
push ecx
push edx
mov ecx, dword [eax + 0x3e60]
call fcn.1000b910
pop edi
pop esi
ret
Function at 0x100471b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor esi, esi
mov dword [ebp - 8], ecx
cmp byte [ebp + 0xc], 0
mov eax, edx
push edi
cmovne esi, eax
mov dword [ebp - 4], eax
xor edi, edi
mov dword [ebp - 0x18], edi
test esi, esi
jne 0x100471d7
xor bl, bl
jmp 0x100471fc
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push 0x40
push esi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [ebp - 0x18]
test eax, eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
setne bl
push eax
push dword [ebp + 8]
mov byte [ebp - 0xc], bl
push ecx
call fcn.100543a0
add esp, 0xc
test bl, bl
je 0x10047225
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0xc], eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10047230
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x18]
push esi
mov esi, dword [ebp + 8]
push edi
push eax
push 0x40
push 1
push esi
mov edi, ecx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], esi
call ebx
test eax, eax
setne byte [ebp - 0x14]
mov cl, byte [esi]
mov byte [ebp - 5], cl
test eax, eax
je 0x1004727e
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x20]
call ebx
mov cl, byte [ebp - 5]
movzx eax, cl
sub eax, 0xe8
je 0x1004733c
sub eax, 1
je 0x1004733c
sub eax, 0x16
jne 0x1004732d
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push 0x40
inc esi
mov dword [ebp - 0x1c], 1
push 1
push esi
mov dword [ebp - 0x20], esi
call ebx
test eax, eax
setne byte [ebp - 0x14]
mov cl, byte [esi]
mov byte [ebp - 5], cl
test eax, eax
je 0x100472dc
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x20]
call ebx
mov cl, byte [ebp - 5]
cmp cl, 0x15
je 0x100472e6
cmp cl, 0x25
jne 0x1004732d
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push 0x40
add esi, 2
mov dword [ebp - 0x1c], 4
push 4
push esi
mov dword [ebp - 0x20], esi
call ebx
test eax, eax
setne byte [ebp - 0x14]
mov esi, dword [esi]
test eax, eax
je 0x10047320
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x20]
call ebx
mov eax, dword [esi]
mov dword [edi], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push 0x40
inc esi
mov dword [ebp - 0x1c], 4
push 4
push esi
mov dword [ebp - 0x20], esi
call ebx
test eax, eax
setne byte [ebp - 0x14]
mov ecx, dword [esi]
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x1004737a
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x20]
call ebx
mov ecx, dword [ebp - 0x10]
lea eax, [esi + 4]
add eax, ecx
mov dword [edi], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10047390
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push ecx
mov edx, esp
mov dword [ebp - 4], ecx
mov dword [edx], eax
call fcn.10047230
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 4
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
push eax
push 0x40
push 1
push esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov byte [esi], 0xe8
test eax, eax
je 0x100473ea
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov edi, dword [ebp + 0xc]
inc esi
push eax
push 0x40
push 4
sub edi, esi
mov dword [ebp - 0x14], 4
push esi
sub edi, 4
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov dword [esi], edi
test eax, eax
je 0x1004742a
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004abb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
je 0x1004abdf
mov byte [esi + 0x24], 0
mov edx, dword [esi + 0x1c]
call fcn.1004c000
mov eax, dword [esi + 0x1c]
mov ecx, esi
mov dword [eax], eax
mov eax, dword [esi + 0x1c]
mov dword [eax + 4], eax
mov dword [esi + 0x20], 0
pop esi
jmp fcn.100487b0
pop esi
ret

Function at 0x1004c550
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x44ca44]
mov dword [0x10092c70], eax
jmp fcn.10048360

Function at 0x1004f960
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1008f210]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], edx
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x1004fa5a
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1004fa53
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x1004fa39
call ebx
cmp dword [ebp - 0x14], eax
jne 0x1004fa39
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1004fa39
mov edx, dword [esi]
test edx, edx
jne 0x1004fa02
push 0x200
push edx
push dword [0x10092c68]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1004fa53
jmp 0x1004fa2d
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1004fa2d
shl eax, 3
push eax
push edx
push 0
push dword [0x10092c68]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1004fa53
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 dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1004f9c1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x1004fa9f
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x1004fa9f
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1004fa99
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.1004f7f0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x1004fa66
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10050e60
mov esp, ebp
pop ebp
ret
Function at 0x1004fab0
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
je 0x1004fafc
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x1004faeb
push edi
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1004fae4
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 8]
jb 0x1004fac1
pop edi
push dword [ebx]
push 0
push dword [0x10092c68]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
ret

Function at 0x1004fb00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
imul esi, ecx, 0x2c
push edi
add esi, dword [0x10092ef0]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ebx, [eax*2 + 5]
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1004fb46
pop edi
pop esi
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
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 0x1004fb61
mov eax, dword [esi]
mov word [eax], 0xf9eb
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [esi + 0x14], 6
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1004fb90
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [0x10092ef8]
push ebx
push esi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x1004fc6d
mov eax, dword [0x10092ef0]
add eax, 0x14
test byte [eax], 2
je 0x1004fbca
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x1004fbb5
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x1004fc6d
push edi
push 1
or edx, 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.1004f960
mov ecx, dword [0x10092ef8]
add esp, 4
cmp esi, ecx
jae 0x1004fc1b
imul edi, esi, 0x2c
mov eax, dword [0x10092ef0]
test byte [edi + eax + 0x14], 2
jne 0x1004fc10
mov ecx, esi
call fcn.1004fb00
mov ebx, eax
test ebx, ebx
jne 0x1004fc18
mov ecx, dword [0x10092ef8]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x1004fbf1
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1004fc6c
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x1004fc5d
mov ebx, eax
nop dword [eax + eax]
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1004fc51
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x1004fc30
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x10092c68]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10051dea
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.10051dc6
pop esi
leave
ret 8

Function at 0x10054e12
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10070370
mov eax, dword [0x1008f210]
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.100628e8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10054e54
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10054fb0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100702c0
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 + 0x10092768]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10062af7
mov ecx, dword [esi*4 + 0x10092768]
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 0x10054fa9
cmp eax, dword [ecx + edi + 0x24]
jne 0x10054fa9
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 0x10054fa9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10062af7
add esp, 0x14
test edx, edx
jl 0x10054fa9
jg 0x10054f1f
test eax, eax
jb 0x10054fa9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10054fa9
jl 0x10054f39
cmp dword [ebp - 0x1008], eax
ja 0x10054fa9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10054f57
test ebx, ebx
je 0x10054f90
cmp ecx, edi
jae 0x10054f90
mov al, byte [ecx]
cmp al, 0xd
jne 0x10054f71
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10054f7d
cmp byte [ecx + 1], 0xa
jne 0x10054f7d
inc ecx
jmp 0x10054f7d
movzx eax, al
movsx eax, byte [eax + 0x1008f3c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10054f57
cmp edx, ebx
jne 0x10054f57
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10054fae
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10050e60
leave
ret
Function at 0x100619ae
Capabilities:
Parse pe header

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

Function at 0x10063268
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 + 0x10092768]
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 0x100632a8
cmp byte [ebx], 0xa
jne 0x100632a8
or byte [edi + eax + 0x28], 4
jmp 0x100632ad
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 0x100633ac
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1006338f
inc eax
cmp dl, 0xd
je 0x100632d9
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100632ff
cmp eax, ecx
jae 0x1006330d
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 0x100632c1
jmp 0x100633ac
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 0x1006338a
cmp dword [ebp - 0x10], 0
je 0x1006338a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10092768]
test byte [eax + edi + 0x28], 0x48
je 0x10063364
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1006334f
mov byte [esi], dl
jmp 0x10063360
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10092768]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100633ac
cmp byte [ebp - 1], 0xa
jne 0x10063373
cmp esi, ebx
jne 0x10063373
mov byte [esi], 0xa
jmp 0x100633ab
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10062b15
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100633ac
mov byte [esi], 0xd
jmp 0x100633ab
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10092768]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100633a9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100633ac
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100633b5
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 + 0x10092768]
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 0x100633fb
cmp word [ebx], dx
jne 0x100633fb
or byte [eax + edi + 0x28], 4
jmp 0x10063400
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 0x10063563
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 0x10063543
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10063441
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10063477
cmp eax, edx
jae 0x10063485
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 0x1006341c
jmp 0x10063563
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 0x1006353e
cmp dword [ebp - 0x18], 0
je 0x1006353e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10092768]
test byte [eax + edi + 0x28], 0x48
je 0x10063514
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 0x100634d8
mov word [esi], cx
jmp 0x1006350f
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10092768]
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 + 0x10092768]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10092768]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10063563
pop eax
cmp word [ebp - 4], ax
jne 0x10063524
cmp esi, ebx
jne 0x10063524
mov word [esi], ax
jmp 0x10063560
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10062b15
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10063563
push 0xd
pop eax
jmp 0x1006351f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10092768]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1006355d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10063563
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 0x100641d2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10077f28
push 0x10077f20
push str.FlsAlloc
push 0x1f
call fcn.1006406e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10064206
push dword [ebp + 8]
mov ecx, esi
call dword [0x10074240]
call esi
jmp 0x1006420c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10064250
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10077f38
push 0x10077f30
push str.FlsGetValue
push 0x21
call fcn.1006406e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10064287
push dword [ebp + 8]
mov ecx, esi
call dword [0x10074240]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1006428f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10077f40
push 0x10077f38
push str.FlsSetValue
push 0x22
call fcn.1006406e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100642c9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10074240]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10067fa0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10067f22