joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18d277b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
push eax
push 0x40
push 5
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 5
mov edx, dword [ebp + 8]
push edx
call fcn.18d25190
add esp, 8
movzx eax, al
test eax, eax
je 0x18d27819
mov byte [ebp - 0x10], 0xe9
mov ecx, dword [ebp + 8]
add ecx, 5
mov edx, dword [ebp + 0xc]
sub edx, ecx
mov dword [ebp - 0xf], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov dl, byte [ebp - 0xc]
mov byte [eax + 4], dl
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 5
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [ebp - 5], 1
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x18d278b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov dword [ebp - 8], 0
mov byte [ebp - 1], 0
cmp dword [ebp + 8], 0
jne 0x18d278ce
jmp 0x18d279d9
cmp dword [ebp + 0xc], 0
jne 0x18d278d9
jmp 0x18d279d9
push 0x24
call fcn.18d33570
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x18d278f1
jmp 0x18d279d9
mov eax, dword [ebp - 8]
mov dword [eax], 1
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
push 0x19
call fcn.18d33770
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x18d27924
jmp 0x18d279d9
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x14], eax
push 0x2e
call fcn.18d33770
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x18d27945
jmp 0x18d279d9
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov ecx, 0xb
mov esi, 0x18d37754
mov edi, dword [ebp - 0x14]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [eax + 7], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov dword [edx + 0x1d], eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0xc], 0x18d235a0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x22], 0x18d23540
lea eax, [ebp - 0x10]
push eax
push 0x40
push 0x2e
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 8]
add edx, 0x18
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.18d27110
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x18d279b9
jmp 0x18d279d9
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.18d27860
add esp, 4
mov byte [ebp - 1], al
xor edx, edx
jne 0x18d278c3
movzx eax, byte [ebp - 1]
test eax, eax
jne 0x18d279f4
mov ecx, dword [ebp - 8]
push ecx
call fcn.18d27820
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x18d27a00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
push eax
push 0x40
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call fcn.18d25190
add esp, 8
movzx eax, al
test eax, eax
jne 0x18d27a43
jmp 0x18d27aaa
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov byte [ebp - 1], 1
xor ecx, ecx
jne 0x18d27a0a
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x18d28ce0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 0x14], 0
jne 0x18d28cf1
jmp 0x18d28ea4
xor eax, eax
mov word [ebp - 0x10], ax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, 8
div ecx
test edx, edx
je 0x18d28d41
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, 8
div ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
shr edx, 3
mov eax, dword [ebp + 8]
movzx cx, byte [eax + edx]
mov word [ebp - 0x10], cx
movzx edx, word [ebp - 0x10]
mov ecx, 8
sub ecx, dword [ebp - 0x14]
sar edx, cl
mov word [ebp - 0x10], dx
mov eax, dword [ebp + 0xc]
shr eax, 3
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x14]
add ecx, 7
shr ecx, 3
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
jmp 0x18d28d68
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jge 0x18d28ea4
mov ecx, dword [ebp - 8]
sub ecx, 1
cmp dword [ebp - 4], ecx
je 0x18d28da0
movzx edx, word [ebp - 0x10]
shl edx, 8
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
xor edx, ecx
mov word [ebp - 0x10], dx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
jmp 0x18d28df9
mov eax, dword [ebp + 0x14]
xor edx, edx
mov ecx, 8
div ecx
test edx, edx
jne 0x18d28db9
mov dword [ebp - 0x24], 8
jmp 0x18d28dc8
mov eax, dword [ebp + 0x14]
xor edx, edx
mov ecx, 8
div ecx
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x18], edx
movzx eax, word [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
shl eax, cl
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
mov ecx, 8
sub ecx, dword [ebp - 0x18]
sar edx, cl
or eax, edx
mov word [ebp - 0x10], ax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
sub ecx, 1
xor edx, edx
cmp dword [ebp - 4], ecx
setne dl
xor eax, eax
cmp dword [ebp - 0x14], 8
setge al
and edx, eax
jne 0x18d28e2f
mov ecx, dword [ebp - 8]
sub ecx, 1
xor edx, edx
cmp dword [ebp - 4], ecx
sete dl
xor eax, eax
cmp dword [ebp - 0x14], 0
setg al
and edx, eax
je 0x18d28e9f
cmp dword [ebp - 0x14], 8
jle 0x18d28e3e
mov dword [ebp - 0x28], 8
jmp 0x18d28e44
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], edx
movzx eax, word [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x1c]
sar eax, cl
mov byte [ebp - 0x1d], al
movzx edx, byte [ebp - 0x1d]
mov ecx, 8
sub ecx, dword [ebp - 0x1c]
shl edx, cl
mov byte [ebp - 0x1d], dl
mov eax, 0xff00
mov ecx, dword [ebp - 0x1c]
sar eax, cl
movzx ecx, byte [ebp - 0x1d]
and ecx, eax
mov byte [ebp - 0x1d], cl
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0xc]
mov al, byte [ebp - 0x1d]
mov byte [edx], al
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edx
jmp 0x18d28df9
jmp 0x18d28d5f
mov esp, ebp
pop ebp
ret
Function at 0x18d2e340
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.18d2f8c0
add esp, 8
mov dword [ebp + 0xc], eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.18d2e080
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x18d2e4de
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
mov ecx, dword [eax + 0x108]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0xc]
je 0x18d2e4de
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.18d2e290
add esp, 8
movzx edx, al
test edx, edx
je 0x18d2e4de
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.18d2e120
add esp, 8
movzx edx, ax
and edx, 0xd
jne 0x18d2e4de
push 1
push 0
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.18d2f9e0
add esp, 0x14
mov eax, dword [ebp - 4]
push eax
call fcn.18d2e4f0
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x18d2e454
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 8], eax
push 1
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
jmp 0x18d2e472
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x30]
and eax, 0x400
jne 0x18d2e4de
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x778]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0x18d2e2e0
mov eax, dword [ebp + 0xc]
push eax
push 0x18d370a0
push 0
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x778]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x108], edx
push 3
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esp, ebp
pop ebp
ret
Function at 0x18d2faa0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push 0xa0743ab4
push 0xd
push 0x18d34e18
call fcn.18d217f0
add esp, 0xc
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.18d26d40
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x18d2fb9e
mov dword [ebp - 0x258], 0
push 0x24c
push 0
lea edx, [ebp - 0x254]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0xffffffff
je 0x18d2fb9c
mov edx, dword [ebp - 0x258]
and edx, 0x10
jne 0x18d2fb33
jmp 0x18d2fb77
movzx eax, word [ebp - 0x22c]
cmp eax, 0x2e
jne 0x18d2fb41
jmp 0x18d2fb77
lea ecx, [ebp - 0x22c]
push ecx
push 0xe09d886a
push 0xb
push 0x18d34e28
call fcn.18d217f0
add esp, 0xc
push eax
lea edx, [ebp - 8]
push edx
call fcn.18d26d40
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x18d2fb77
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp - 0x25c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18d2fb26
mov edx, dword [ebp - 0x25c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x18d2fba6
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
push eax
call fcn.18d33970
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x18d2fbc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 0
je 0x18d2fbe6
cmp dword [ebp + 0x10], 0
jne 0x18d2fbed
xor eax, eax
jmp 0x18d2fc6d
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp + 0x10], ecx
je 0x18d2fc5d
push 0
lea edx, [ebp - 8]
push edx
push 1
lea eax, [ebp - 0xd]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18d2fc18
cmp dword [ebp - 8], 1
je 0x18d2fc1a
jmp 0x18d2fc5d
movsx edx, byte [ebp - 0xd]
cmp edx, 0xa
jne 0x18d2fc2d
cmp dword [ebp - 4], 0
je 0x18d2fc2b
jmp 0x18d2fc5d
jmp 0x18d2fc5b
movsx eax, byte [ebp - 0xd]
cmp eax, 0xd
jne 0x18d2fc40
cmp dword [ebp - 4], 0
je 0x18d2fc3e
jmp 0x18d2fc5d
jmp 0x18d2fc5b
mov dword [ebp - 4], 1
movsx cx, byte [ebp - 0xd]
mov edx, dword [ebp - 0xc]
mov word [edx], cx
mov eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0xc], eax
jmp 0x18d2fbed
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov word [edx], cx
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0xc]
sar eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x18d301f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov byte [ebp - 5], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x18d30224
jmp 0x18d3033f
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0xc], 0
je 0x18d3023e
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
lea ecx, [eax + edx + 0x1b]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
shl edx, 1
push edx
call fcn.18d33770
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x18d3026f
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x18d3033f
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x18d3028f
jmp 0x18d3033f
cmp dword [ebp + 0xc], 0
je 0x18d302a3
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0xfbda1361
push 6
push 0x18d34ec8
call fcn.18d217f0
add esp, 0xc
push eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0xf6efd142
push 9
push 0x18d34ed0
call fcn.18d217f0
add esp, 0xc
push eax
lea edx, [ebp - 4]
push edx
call fcn.18d26d40
add esp, 0x10
push 0xfbda1361
push 6
push 0x18d34ec8
call fcn.18d217f0
add esp, 0xc
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 0x5c21e4eb
push 9
push 0x18d34ba0
call fcn.18d217f0
add esp, 0xc
push eax
call fcn.18d325e0
add esp, 0xc
test eax, eax
setne al
mov byte [ebp - 5], al
xor ecx, ecx
jne 0x18d30208
mov edx, dword [ebp - 4]
push edx
call fcn.18d33970
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call fcn.18d33970
add esp, 4
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x18d319f0
Capabilities:
Clear file content
Delete file
Print debug messages
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 0x58], 0
push 0x30
push 0
lea eax, [ebp - 0x54]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0x80
mov dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x60], 0
xor edx, edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 8], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x18d31a60
mov edx, dword [ebp - 0x58]
mov dword [ebp - 4], edx
push 0
push 0x80
push 2
push 0
push 0
push 0x120116
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x18d31aac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push str.__CopyFileW___luCreateFileW__ws__n
call dword [sym.imp.ntdll.dll_DbgPrint]
add esp, 0xc
mov eax, dword [ebp - 0x20]
jmp 0x18d31b89
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
push 0
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ecx, 1
test ecx, ecx
je 0x18d31b4c
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], 0
jne 0x18d31b06
jmp 0x18d31b4c
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18d31b43
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push str.__CopyFileByHandleW___luWriteFile__ws__n
call dword [sym.imp.ntdll.dll_DbgPrint]
add esp, 0xc
jmp 0x18d31b4c
mov dword [ebp - 0x10], 0
jmp 0x18d31ada
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], 0
je 0x18d31b86
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret
Function at 0x18d31b90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0x2000080
mov dword [ebp - 0xc], 0
push 0
mov eax, dword [ebp - 4]
push eax
push 3
push 0
push 7
push 0x120089
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x18d31c1c
mov edx, dword [ebp - 4]
and edx, 0xfdffffff
mov dword [ebp - 4], edx
push 0
mov eax, dword [ebp - 4]
push eax
push 3
push 0
push 7
push 0x120089
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x18d31c1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
push str.__CopyFileW___luCreateFileW__ws__n
call dword [sym.imp.ntdll.dll_DbgPrint]
add esp, 0xc
mov eax, dword [ebp - 0xc]
jmp 0x18d31c44
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.18d319f0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x18d31f70
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov dword [ebp - 0x244], 0xffffffff
mov dword [ebp - 0x23c], 0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0xffffffff
jne 0x18d31fad
xor eax, eax
jmp 0x18d32084
mov dword [ebp - 0x238], 0x22c
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x18d31fe3
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18d32084
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18d32055
mov edx, dword [ebp - 0x230]
push edx
push 0
push 0xc50
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
jne 0x18d32035
mov eax, dword [ebp - 0x230]
push eax
push 0
push 0x450
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x18d32055
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x23c], 0
lea edx, [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x18d31fe3
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x23c]
mov esp, ebp
pop ebp
ret
Function at 0x18d32850
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x60], 0
push 0x40
push 0
lea eax, [ebp - 0x5c]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x10], 0
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x58], 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 4]
mov dword [ebp - 0x68], eax
cmp dword [ebp + 0xc], 0
je 0x18d328c5
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 0x68]
lea eax, [edx + eax*2]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.18d33770
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x18d3295f
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp + 0xc], 0
je 0x18d3290f
push 0x18d3507c
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x60]
push edx
push 0
push 0
push 0x4000000
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x18d32938
jmp 0x18d32953
mov dword [ebp - 0x64], 1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
push eax
call fcn.18d33970
add esp, 4
mov eax, dword [ebp - 0x64]
mov esp, ebp
pop ebp
ret