joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c570
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax], 0xc9
jne 0x1000c5a3
cmp dword [ebp + 0xc], 3
mov dl, byte [eax + 1]
jbe 0x1000c593
add eax, 2
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], edx
pop ebp
jmp fcn.1000c5b0
mov dword [ebp + 0xc], 0
mov dword [ebp + 8], edx
pop ebp
jmp fcn.1000c5b0
pop ebp
ret 8
Function at 0x1000c8d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
lea eax, [ebp - 0x20]
push esi
push eax
push 0xf003f
xor esi, esi
lea eax, [ecx + 8]
push esi
push eax
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000ca77
push eax
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push esi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x1000c926
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1000ca77
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1000ca77
push ebx
lea ebx, [eax + 1]
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x1c]
add eax, 0x64
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 8], eax
lea esi, [eax + 1]
mov dword [ebp - 0x3c], eax
add esi, ebx
imul esi, ecx
add esi, 0x16
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0x2c], edi
call fcn.10013850
movq xmm0, qword [ebp - 0x40]
mov byte [edi], 0xca
movq qword [edi + 1], xmm0
mov dword [edi + 9], ebx
push dword [ebp - 8]
call fcn.1001b38b
push dword [ebp - 4]
mov ebx, eax
call fcn.1001b38b
lea esi, [edi + 0xd]
mov dword [ebp - 0x10], eax
xor edi, edi
add esp, 0x14
cmp dword [ebp - 0x14], edi
jbe 0x1000ca61
push dword [ebp - 8]
push 0
push ebx
call fcn.10013850
push dword [ebp - 4]
push 0
push dword [ebp - 0x10]
call fcn.10013850
mov eax, dword [ebp - 0x18]
add esp, 0x18
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x1c]
add eax, 0x64
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push ebx
push edi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov eax, dword [ebp - 0xc]
cmp eax, 1
jne 0x1000ca06
mov byte [esi], 0
mov eax, dword [ebp - 0xc]
cmp eax, 4
jne 0x1000ca11
mov byte [esi], 1
mov eax, dword [ebp - 0xc]
cmp eax, 3
jne 0x1000ca1c
mov byte [esi], 2
mov eax, dword [ebp - 0xc]
cmp eax, 2
jne 0x1000ca24
mov byte [esi], 3
inc esi
mov eax, ebx
mov edx, esi
sub edx, ebx
nop dword [eax + eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x1000ca30
mov eax, dword [ebp - 0x24]
add esi, dword [ebp - 0x28]
inc eax
push eax
push dword [ebp - 0x10]
push esi
call fcn.100132d0
mov eax, dword [ebp - 0x24]
inc edi
inc eax
add esp, 0xc
add esi, eax
cmp edi, dword [ebp - 0x14]
jb 0x1000c9b1
push ebx
call fcn.1001b370
push dword [ebp - 0x10]
call fcn.1001b370
mov esi, dword [ebp - 0x2c]
add esp, 8
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000cd20
Capabilities:
Open clipboard
Read clipboard data
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], ebx
movzx eax, byte [edi]
add eax, 0xffffffec
cmp eax, 0xa
ja case.default.0x1000cd45
movzx eax, byte [eax + 0x1000ce9c]
push esi
jmp dword [eax*4 + 0x1000ce84]
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [sym.imp.USER32.dll_BlockInput]
push 0
call esi
mov eax, dword [ebp + 0xc]
mov ecx, ebx
dec eax
push eax
lea eax, [edi + 1]
push eax
call fcn.1000ceb0
push dword [ebx + 0x20]
call esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
movzx eax, byte [edi + 1]
push eax
mov dword [ebx + 0x20], eax
call dword [sym.imp.USER32.dll_BlockInput]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je case.0x1000cd45.25
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
mov dword [ebp + 0xc], esi
test esi, esi
je 0x1000ce75
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov edi, eax
push esi
lea ebx, [edi + 1]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov esi, eax
call fcn.100118d3
mov ebx, eax
push edi
push esi
lea ecx, [ebx + 1]
mov byte [ebx], 0x76
push ecx
call fcn.100132d0
add esp, 0x10
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 4]
lea eax, [edi + 1]
push eax
push ebx
mov ecx, dword [ecx + 8]
call fcn.1000b970
push ebx
call fcn.10011890
add esp, 4
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 0xc]
push 0
dec ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je case.0x1000cd45.25
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x1000ce75
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
lea ecx, [edi + 1]
push ecx
push eax
call fcn.100132d0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1000cd9d
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], ebx
movzx eax, byte [edi]
add eax, 0xffffffec
cmp eax, 0xa
ja case.default.0x1000cd45
movzx eax, byte [eax + 0x1000ce9c]
push esi
jmp dword [eax*4 + 0x1000ce84]
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [sym.imp.USER32.dll_BlockInput]
push 0
call esi
mov eax, dword [ebp + 0xc]
mov ecx, ebx
dec eax
push eax
lea eax, [edi + 1]
push eax
call fcn.1000ceb0
push dword [ebx + 0x20]
call esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
movzx eax, byte [edi + 1]
push eax
mov dword [ebx + 0x20], eax
call dword [sym.imp.USER32.dll_BlockInput]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je case.0x1000cd45.25
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
mov dword [ebp + 0xc], esi
test esi, esi
je 0x1000ce75
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov edi, eax
push esi
lea ebx, [edi + 1]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov esi, eax
call fcn.100118d3
mov ebx, eax
push edi
push esi
lea ecx, [ebx + 1]
mov byte [ebx], 0x76
push ecx
call fcn.100132d0
add esp, 0x10
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 4]
lea eax, [edi + 1]
push eax
push ebx
mov ecx, dword [ecx + 8]
call fcn.1000b970
push ebx
call fcn.10011890
add esp, 4
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 0xc]
push 0
dec ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je case.0x1000cd45.25
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x1000ce75
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
lea ecx, [edi + 1]
push ecx
push eax
call fcn.100132d0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1000ce21
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], ebx
movzx eax, byte [edi]
add eax, 0xffffffec
cmp eax, 0xa
ja case.default.0x1000cd45
movzx eax, byte [eax + 0x1000ce9c]
push esi
jmp dword [eax*4 + 0x1000ce84]
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [sym.imp.USER32.dll_BlockInput]
push 0
call esi
mov eax, dword [ebp + 0xc]
mov ecx, ebx
dec eax
push eax
lea eax, [edi + 1]
push eax
call fcn.1000ceb0
push dword [ebx + 0x20]
call esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
movzx eax, byte [edi + 1]
push eax
mov dword [ebx + 0x20], eax
call dword [sym.imp.USER32.dll_BlockInput]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je case.0x1000cd45.25
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
mov dword [ebp + 0xc], esi
test esi, esi
je 0x1000ce75
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov edi, eax
push esi
lea ebx, [edi + 1]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov esi, eax
call fcn.100118d3
mov ebx, eax
push edi
push esi
lea ecx, [ebx + 1]
mov byte [ebx], 0x76
push ecx
call fcn.100132d0
add esp, 0x10
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 4]
lea eax, [edi + 1]
push eax
push ebx
mov ecx, dword [ecx + 8]
call fcn.1000b970
push ebx
call fcn.10011890
add esp, 4
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 0xc]
push 0
dec ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je case.0x1000cd45.25
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x1000ce75
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
lea ecx, [edi + 1]
push ecx
push eax
call fcn.100132d0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1000ceb0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov eax, 0x24924925
mul esi
push edi
mov edi, esi
mov dword [ebp - 4], ecx
sub edi, edx
shr edi, 1
add edi, edx
shr edi, 4
lea eax, [edi*8]
sub eax, edi
shl eax, 2
sub esi, eax
jne 0x1000d07d
test edi, edi
je 0x1000d07d
mov esi, dword [ebp + 8]
mov ecx, dword [sym.imp.USER32.dll_MapVirtualKeyA]
add esi, 8
push ebx
mov ebx, dword [sym.imp.USER32.dll_mouse_event]
nop dword [eax]
mov eax, dword [esi - 4]
add eax, 0xfffffe00
cmp eax, 8
ja case.default.0x1000cf14
movzx eax, byte [eax + 0x1000d08c]
jmp dword [eax*4 + 0x1000d088]
mov edx, dword [ebp - 4]
movzx eax, word [esi + 4]
movzx ecx, word [esi + 6]
mov dword [ebp + 8], eax
mov edx, dword [edx + 0x18]
mov dword [ebp + 0xc], ecx
cmp byte [edx + 0xcc], 0
je 0x1000cf66
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [edx + 0xd0]
cvttsd2si eax, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mov dword [ebp + 8], eax
mulsd xmm0, qword [edx + 0xd8]
cvttsd2si ecx, xmm0
mov dword [ebp + 0xc], ecx
push ecx
push eax
call dword [sym.imp.USER32.dll_SetCursorPos]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_WindowFromPoint]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov eax, dword [esi - 4]
cmp eax, 0x201
ja 0x1000cfd7
je 0x1000cfc8
sub eax, 0x100
cmp eax, 5
ja case.0x1000cfe5.521
jmp dword [eax*4 + 0x1000d098]
push 0
push 0
push 0
push dword [esi]
call ecx
push eax
movzx eax, byte [esi]
push eax
call dword [sym.imp.USER32.dll_keybd_event]
jmp case.0x1000cfe5.521
push 0
push 2
jmp 0x1000cfac
push 0
push 0
push 0
push 0
push 2
jmp 0x1000d068
sub eax, 0x202
cmp eax, 8
ja case.0x1000cfe5.521
jmp dword [eax*4 + 0x1000d0b0]
push 0
push 0
push 0
push 0
push 4
jmp 0x1000d068
push 0
push 0
push 0
push 0
push 8
jmp 0x1000d068
push 0
push 0
push 0
push 0
push 0x10
jmp 0x1000d068
push 0
push 0
push 0
push 0
push 6
call ebx
push 0
push 0
push 0
push 0
push 6
jmp 0x1000d068
push 0
push 0
push 0
push 0
push 0x18
call ebx
push 0
push 0
push 0
push 0
push 0x18
jmp 0x1000d068
push 0
push 0
push 0
push 0
push 0x20
jmp 0x1000d068
push 0
push 0
push 0
push 0
push 0x40
jmp 0x1000d068
movsx eax, word [esi + 2]
push 0
push eax
push 0
push 0
push 0x800
call ebx
mov ecx, dword [sym.imp.USER32.dll_MapVirtualKeyA]
add esi, 0x1c
sub edi, 1
jne 0x1000cf00
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1000dc40
Capabilities:
Modify service
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10042040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
lea ebx, [eax + 1]
movzx eax, byte [eax]
dec eax
mov dword [ebp - 0x24], ebx
cmp eax, 3
ja case.default.0x1000dc6b
push esi
jmp dword [eax*4 + 0x1000ddf0]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x1000ddab
push 0xf01ff
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x1000dcb0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
jmp 0x1000dda5
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x1000ddab
push 0xf01ff
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x1000dcb0
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
jmp 0x1000dda5
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x1000ddab
push 0xf01ff
push dword [ebp - 0x24]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1000dda4
push ebx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
jmp 0x1000dd87
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x1000ddab
push 0xf01ff
push dword [ebp - 0x24]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1000dda4
push ebx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push dword [ebp - 0x24]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push esi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.1000d7c0
mov esi, eax
test esi, esi
je 0x1000dddb
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, dword [edi + 8]
push eax
push esi
call fcn.1000b970
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10011882
mov esp, ebp
pop ebp
ret 8
Function at 0x1000e280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi], 0x1e
je 0x1000e2b2
mov edx, dword [ebp + 0xc]
push 0
mov dword [ebp + 8], 0
lea eax, [edx - 2]
mov dword [ecx + 0x24], eax
lea eax, [ebp + 8]
push eax
push edx
push esi
push dword [ecx + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebp
ret 8
push dword [ecx + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
pop ebp
ret 8

Function at 0x1000e2c0
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov dword [0x10042ab8], 0
push edi
push 0
push dword [esi + 0x28]
mov dword [esi], vtable.CShellManager.0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1000e315
push eax
call ebx
push dword [esi + 0x10]
call edi
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1000e32b
push eax
call ebx
push dword [esi + 0x14]
call edi
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1000e341
push eax
call ebx
push dword [esi + 0x18]
call edi
mov dword [esi + 0x18], 0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1000e357
push eax
call ebx
push dword [esi + 0x1c]
call edi
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x1000e368
push eax
call edi
mov dword [esi + 0x20], 0
mov eax, dword [esi + 0xc]
mov dword [esi], vtable.CManager.0
test eax, eax
je 0x1000e37f
push eax
call edi
mov dword [esi + 0xc], 0
pop edi
pop esi
pop ebx
ret
Function at 0x10010926
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x10010947
jl 0x1001093e
test edi, edi
jne 0x10010947
xor eax, eax
xor edx, edx
jmp 0x10010a08
cmp dword [ebx + 0x38], 0
je 0x1001095c
push eax
push edi
push dword [ebp + 8]
call fcn.10010a0e
jmp 0x10010a08
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x100109a3
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x100109a3
cmp eax, edi
jb 0x1001097d
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.100132d0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x100109a9
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x100109fd
mov ecx, ebx
call fcn.10010008
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x100109e8
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.1001c729
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x100109fd
jmp 0x100109bb
test edx, edx
je 0x100109fd
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.1001c729
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x1001eb0c
Capabilities:
Parse pe header

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

Function at 0x1002031a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10038868
push 0x10038860
push str.FlsAlloc
push 0x1f
call fcn.10020162
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002034e
push dword [ebp + 8]
mov ecx, esi
call dword [0x100313e0]
call esi
jmp 0x10020354
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10020398
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10038878
push 0x10038870
push str.FlsGetValue
push 0x21
call fcn.10020162
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100203cf
push dword [ebp + 8]
mov ecx, esi
call dword [0x100313e0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x100203d7
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10038880
push 0x10038878
push str.FlsSetValue
push 0x22
call fcn.10020162
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10020411
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100313e0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x10023e69
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10023deb
Function at 0x1002550f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10012930
mov eax, dword [0x10042040]
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.100219ae
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10025551
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100256ad
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10012050
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 + 0x10043c30]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100266e5
mov ecx, dword [esi*4 + 0x10043c30]
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 0x100256a6
cmp eax, dword [ecx + edi + 0x24]
jne 0x100256a6
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 0x100256a6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100266e5
add esp, 0x14
test edx, edx
jl 0x100256a6
jg 0x1002561c
test eax, eax
jb 0x100256a6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100256a6
jl 0x10025636
cmp dword [ebp - 0x1008], eax
ja 0x100256a6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10025654
test ebx, ebx
je 0x1002568d
cmp ecx, edi
jae 0x1002568d
mov al, byte [ecx]
cmp al, 0xd
jne 0x1002566e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1002567a
cmp byte [ecx + 1], 0xa
jne 0x1002567a
inc ecx
jmp 0x1002567a
movzx eax, al
movsx eax, byte [eax + 0x100422e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10025654
cmp edx, ebx
jne 0x10025654
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100256ab
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10011882
leave
ret