joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003412
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea ebx, [edi + 4]
push esi
mov esi, eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], ebx
cmp ebx, dword [ebp + 0xc]
jbe 0x1000342d
xor eax, eax
jmp 0x10003465
call fcn.10002734
mov dword [esi], eax
add esi, 4
xor ecx, ecx
test edi, edi
jbe 0x10003463
mov eax, dword [ebp + 8]
sub eax, esi
mov dword [ebp + 0xc], eax
mov ebx, dword [ebp - 4]
mov edx, ecx
and edx, 3
mov dl, byte [edx + ebx]
mov ebx, dword [ebp + 0xc]
lea eax, [ecx + esi]
xor dl, byte [ebx + eax]
inc ecx
mov byte [eax], dl
cmp ecx, edi
jb 0x10003445
mov ebx, dword [ebp - 8]
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x10003469
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, eax
lea eax, [edi - 4]
mov esi, ecx
cmp eax, dword [ebp + 0xc]
jbe 0x1000347e
xor eax, eax
jmp 0x100034a9
mov eax, esi
add esi, 4
sub edi, 4
push 0
pop edx
je 0x100034a7
sub esi, dword [ebp + 8]
push ebx
mov ecx, dword [ebp + 8]
mov ebx, edx
and ebx, 3
mov bl, byte [ebx + eax]
add ecx, edx
xor bl, byte [esi + ecx]
inc edx
mov byte [ecx], bl
cmp edx, edi
jb 0x1000348f
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x100035e3
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push edi
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebp + 0xc]
push 0
push dword [ebx + 0x10]
push dword [ebp + 8]
push 0
push 2
push dword [0x10037e9c]
push dword [0x10037e94]
push dword [0x10037e98]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x10003627
xor eax, eax
inc eax
jmp 0x100036ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x100036d7
mov edx, dword [ebx]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000363d
sub eax, esi
mov edi, 0x100
cmp eax, edi
jae 0x100036d7
push str.sysnative
push edx
call fcn.10014a20
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100036d7
push edi
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.1001c320
mov eax, dword [str.system32]
mov dword [esi], eax
mov eax, dword [0x1002d56c]
mov dword [esi + 4], eax
add esp, 0xc
add esi, 9
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000368f
sub eax, edi
push eax
lea eax, [ebp - 0x100]
push esi
push eax
call fcn.1001b130
lea eax, [ebp - 0x100]
add esp, 0xc
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100036b2
sub eax, edi
inc eax
push eax
lea eax, [ebp - 0x100]
push eax
dec esi
push esi
call fcn.1001b130
add esp, 0xc
push ebx
call fcn.100036f0
pop ecx
jmp 0x100036ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx]
push 0x45
call fcn.10001ed4
add esp, 0xc
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100036f0
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1104
call fcn.1001c140
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x7fe
push esi
mov word [esp + 0x114], ax
xor ebx, ebx
lea eax, [esp + 0x116]
push ebx
push eax
call fcn.1001c320
add esp, 0xc
xor eax, eax
push esi
mov word [esp + 0x914], ax
lea eax, [esp + 0x916]
push ebx
push eax
call fcn.1001c320
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
add esp, 0xc
mov dword [eax + 8], ebx
mov esi, 0x400
push esi
lea eax, [esp + 0x114]
push eax
push dword [edi]
mov dword [esp + 0x18], ebx
call fcn.100028ec
add esp, 0xc
test eax, eax
jne 0x1000377c
push dword [edi + 4]
push 7
call fcn.10001ea6
pop ecx
pop ecx
jmp 0x100038e9
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
call ebx
cmp eax, esi
jae 0x100037a0
lea eax, [esp + 0x910]
push eax
push esi
call ebx
lea eax, [esp + 0x910]
mov dword [esp + 0xc], eax
push dword [edi + 0xc]
lea eax, [esp + 0x114]
push dword [edi + 8]
push dword [esp + 0x14]
push 0
push dword [edi + 0x10]
push eax
push 0
push 2
push dword [0x10037e90]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
je 0x100037d3
xor eax, eax
inc eax
jmp 0x100038eb
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
cmp eax, 0x522
jne 0x1000380f
test ebx, ebx
je 0x1000380f
cmp dword [0x10037ea4], 1
jne 0x1000380f
push dword [esp + 0xc]
lea eax, [esp + 0x114]
push eax
mov ebx, edi
call fcn.100035e3
pop ecx
pop ecx
jmp 0x100038eb
call esi
cmp eax, 0x57
jne 0x1000382e
mov eax, dword [edi + 8]
cmp dword [eax], 0x48
jne 0x1000382e
test ebx, ebx
je 0x1000382e
call esi
push eax
push dword [edi]
push 0x4a
jmp 0x100038e1
call esi
cmp eax, 3
jne 0x100038da
mov edx, dword [edi]
mov eax, edx
lea ecx, [eax + 1]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x10003840
sub eax, ecx
mov ebx, 0x100
cmp eax, ebx
jae 0x100038da
push str.sysnative
push edx
call fcn.10014a20
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100038d4
push ebx
lea eax, [esp + 0x14]
push 0
push eax
call fcn.1001c320
mov eax, dword [str.system32]
mov dword [esi], eax
mov eax, dword [0x1002d56c]
mov dword [esi + 4], eax
add esp, 0xc
add esi, 9
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10003890
sub eax, ecx
push eax
lea eax, [esp + 0x14]
push esi
push eax
call fcn.1001b130
lea eax, [esp + 0x1c]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100038af
sub eax, ecx
inc eax
push eax
lea eax, [esp + 0x14]
push eax
dec esi
push esi
call fcn.1001b130
add esp, 0xc
push edi
call fcn.100036f0
jmp 0x10003809
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push dword [edi]
push 0x29
call fcn.10001ed4
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100038f2
Capabilities:
Create process on windows

Disassembly:
push ecx
mov eax, dword [0x10037e90]
push ebx
push edi
xor edi, edi
cmp eax, edi
je 0x10003955
cmp dword [esi + 0x14], edi
jne 0x10003955
push dword [esi + 0xc]
push dword [esi + 8]
push edi
push edi
push dword [esi + 0x10]
push 1
push edi
push edi
push dword [esi]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x1000397e
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x522
jne 0x10003942
cmp dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW], edi
je 0x10003942
push esi
call fcn.100036f0
pop ecx
jmp 0x10003981
call ebx
push eax
push dword [esi]
push 0x29
call fcn.10001ed4
add esp, 0xc
xor eax, eax
jmp 0x10003981
push dword [esi + 0xc]
push dword [esi + 8]
push edi
push edi
push dword [esi + 0x10]
push 1
push edi
push edi
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1000397e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi]
push 0x30
jmp 0x10003949
xor eax, eax
inc eax
pop edi
pop ebx
pop ecx
ret

Function at 0x10003985
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 0x10], 4
push edi
jne 0x100039e5
mov ebx, dword [esi]
lea edi, [ebp - 0xc]
call fcn.1000124b
test eax, eax
je 0x100039e5
mov eax, dword [ebp - 0xc]
or dword [esi + 0x10], 4
mov dword [esi], eax
call fcn.100038f2
mov ebx, eax
mov eax, edi
mov edi, esi
mov esi, dword [edi + 0xc]
push eax
call fcn.100034ad
test eax, eax
mov eax, dword [edi + 0xc]
pop ecx
jne 0x100039d8
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x100039ea
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, ebx
jmp 0x100039ea
call fcn.100038f2
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100039ef
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
push 0xa000
call fcn.10006863
pop ecx
mov edi, eax
mov esi, 0x4000
push esi
push edi
mov dword [ebp - 0x1c], edi
call fcn.10006951
mov ebx, 0x400
push ebx
push edi
mov dword [ebp - 8], eax
call fcn.10006951
push ebx
push edi
mov dword [ebp - 0x10], eax
call fcn.10006951
push ebx
push edi
mov dword [ebp - 0x14], eax
call fcn.10006951
push ebx
push edi
mov dword [ebp - 0xc], eax
call fcn.10006951
push 0x44
pop edi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.1001c320
mov dword [ebp - 0x68], edi
mov edi, dword [ebp + 0x1c]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x34
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push esi
push dword [ebp - 8]
xor edi, edi
push dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 0x3c], 0x101
mov word [ebp - 0x38], ax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x60], edi
call fcn.100028ec
add esp, 0xc
push ebx
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call fcn.100028ec
add esp, 0xc
push ebx
push dword [ebp - 0xc]
push dword [ebp + 0x10]
call fcn.100028ec
add esp, 0xc
push ebx
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.100028ec
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0xc
push edi
push edi
call esi
cmp eax, ebx
jae 0x10003ae0
push dword [ebp - 4]
push ebx
call esi
mov eax, dword [ebp - 4]
jmp 0x10003ae3
mov eax, dword [ebp - 0x18]
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x68]
push ecx
push eax
mov eax, dword [ebp + 0x18]
push edi
or eax, 0x8000400
push eax
push dword [ebp - 8]
push edi
push 1
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x10003b13
xor edi, edi
inc edi
jmp 0x10003b32
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x14]
push str._s_as__s_s:__d
push 0x35
call fcn.10001f19
add esp, 0x18
mov esi, dword [ebp - 0x1c]
call fcn.100068a3
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003cdb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
mov esi, eax
cmp dword [0x10037618], edi
jne 0x10003cfd
push 0x80004
call fcn.10014955
pop ecx
mov dword [0x10037618], eax
push dword [esi]
call sub.WS2_32.dll_htonl
mov ecx, dword [0x10037618]
mov dword [ecx], eax
mov ebx, dword [esi + 4]
cmp ebx, dword [ebp + 8]
jbe 0x10003d3c
mov ebx, dword [ebp + 8]
jmp 0x10003d3c
push dword [esi + 8]
mov eax, dword [0x10037618]
push ebx
lea eax, [eax + edi + 4]
push 1
push eax
call fcn.10015c8c
add esp, 0x10
test eax, eax
je 0x10003d42
add edi, eax
sub ebx, eax
sub dword [esi + 4], eax
test ebx, ebx
ja 0x10003d19
jmp 0x10003d46
and dword [esi + 4], 0
push 8
add edi, 4
push edi
push dword [0x10037618]
call fcn.100012cf
add esp, 0xc
call fcn.10003d64
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10003e27
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push dword [ebp + 8]
push eax
call fcn.100068ca
lea eax, [ebp - 0x10]
push 0x80
push eax
call fcn.100015ea
lea eax, [ebp - 0x20]
push eax
call fcn.100068e3
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.1000163a
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push eax
lea eax, [ebp - 0x10]
push 0x1002d588
push eax
call fcn.1000168d
add esp, 0xc
push 0x16
lea eax, [ebp - 0x10]
call fcn.100016ef
push eax
lea eax, [ebp - 0x10]
call fcn.100016ec
push eax
call fcn.100012cf
lea eax, [ebp - 0x10]
push eax
call fcn.100016cc
add esp, 0x10
leave
ret

Function at 0x10003e9f
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0x10
xor ecx, ecx
cmp al, 0x10
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x10003f80
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x4000
call fcn.10006863
pop ecx
mov edi, 0x2000
mov esi, eax
push edi
push esi
call fcn.10006951
mov ebx, eax
push edi
push esi
mov dword [ebp - 8], ebx
call fcn.10006951
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.100068ca
add esp, 0x1c
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.100069f5
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.100069f5
add esp, 0x10
push 0
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x10003ffd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xd
call fcn.10001ea6
pop ecx
pop ecx
call fcn.100068a3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004007
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x4000
call fcn.10006863
pop ecx
mov edi, 0x2000
mov esi, eax
push edi
push esi
call fcn.10006951
mov ebx, eax
push edi
push esi
mov dword [ebp - 8], ebx
call fcn.10006951
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.100068ca
add esp, 0x1c
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.100069f5
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.100069f5
add esp, 0x10
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x10004082
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xe
call fcn.10001ea6
pop ecx
pop ecx
call fcn.100068a3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000408c
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
push ebx
push esi
push edi
mov esi, 0x4000
push esi
call fcn.10014955
pop ecx
push esi
mov ebx, eax
push 0
push ebx
call fcn.1001c320
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push eax
call fcn.100068ca
lea eax, [ebp - 0x10]
add esp, 0xc
push eax
call fcn.100068e3
pop ecx
mov edi, eax
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.100069f5
lea eax, [ebp - 0x10]
push 0x200000
push eax
call fcn.100015ea
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.1000163a
push esi
push 0x1002d594
push ebx
call fcn.10015db8
add esp, 0x24
test eax, eax
jne 0x1000411e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 2
push 0x1002d598
push esi
push ebx
call fcn.100150b7
add esp, 0x10
push ebx
lea eax, [ebp - 0x10]
push 0x1002d520
push eax
call fcn.1000168d
add esp, 0xc
lea eax, [ebp - 0x170]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000417f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x34
call fcn.10001ed4
add esp, 0xc
push 0x16
lea eax, [ebp - 0x10]
call fcn.100016ef
push eax
lea eax, [ebp - 0x10]
call fcn.100016ec
push eax
call fcn.100012cf
add esp, 0xc
push ebx
call fcn.10014878
pop ecx
jmp 0x10004265
push ebx
call fcn.10014878
pop ecx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
test byte [ebp - 0x170], 0x10
je 0x100041e8
lea eax, [ebp - 0x144]
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x20]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1e]
push eax
lea eax, [ebp - 0x10]
push str.D_t0_t_02d__02d__02d__02d:_02d:_02d_t_s_n
push eax
call fcn.1000168d
add esp, 0x24
jmp 0x1000422c
mov ecx, dword [ebp - 0x154]
lea edx, [ebp - 0x144]
push edx
movzx edx, word [ebp - 0x14]
push edx
movzx edx, word [ebp - 0x16]
mov eax, dword [ebp - 0x150]
push edx
movzx edx, word [ebp - 0x18]
push edx
movzx edx, word [ebp - 0x20]
push edx
movzx edx, word [ebp - 0x1a]
push edx
movzx edx, word [ebp - 0x1e]
push edx
push ecx
push eax
lea eax, [ebp - 0x10]
push str.F_t_I64d_t_02d__02d__02d__02d:_02d:_02d_t_s_n
push eax
call fcn.1000168d
add esp, 0x2c
lea eax, [ebp - 0x170]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10004186
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x16
lea eax, [ebp - 0x10]
call fcn.100016ef
push eax
lea eax, [ebp - 0x10]
call fcn.100016ec
push eax
call fcn.100012cf
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
call fcn.100016cc
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004274
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push edi
push 0
push 0
push dword [ebp + 8]
call esi
mov edi, eax
test edi, edi
jne 0x10004292
xor eax, eax
jmp 0x100042b3
lea eax, [edi + 1]
cmp eax, dword [ebp + 0x10]
jae 0x1000428e
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call fcn.1001c320
add esp, 0xc
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebp
ret

Function at 0x1000489d
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push esi
push edi
push dword [ebp + 0x28]
call fcn.1000a913
pop ecx
push 0x44
pop esi
push esi
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.1001c320
and dword [ebp - 0x14], 0
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 0x100000
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
and dword [ebp - 0x3c], 0
xor eax, eax
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x28]
mov dword [ebp - 0x48], 0x101
push dword [ebp + 0x24]
call fcn.1000a359
add esp, 0x10
test eax, eax
je 0x1000498b
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 0x1c]
mov eax, dword [ebp - 0x20]
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0x28]
push dword [ebp + 0xc]
lea edx, [ebp - 0x28]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.10004cd5
add esp, 0x14
cmp dword [ebp + 8], 0
jbe 0x1000496e
push dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.10005a8b
pop ecx
pop ecx
push dword [ebp + 0x20]
lea esi, [ebp - 0x28]
push dword [ebp - 8]
push dword [ebp - 0xc]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.100056ca
add esp, 0x1c
push dword [ebp + 0x28]
call fcn.1000a935
pop ecx
pop edi
pop esi
leave
ret
Function at 0x10004e50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
mov ebx, fcn.10004e50
push esi
sub ebx, 0x10004e1a
lea eax, [ebx + 0x10]
push edi
push eax
mov dword [ebp - 0xc], eax
call fcn.10014955
mov esi, dword [ebp + 0x10]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
mov dword [ebp - 8], eax
add eax, 0x10
push 0x10004e1a
push eax
movsd dword es:[edi], dword [esi]
call fcn.1001b130
mov edi, dword [ebp - 0xc]
add esp, 0x10
push 0x40
push 0x3000
push edi
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x10004ecb
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 8]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x10004ecb
cmp dword [ebp - 4], edi
je 0x10004ecb
xor esi, esi
push dword [ebp - 8]
call fcn.10014878
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10004edb
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
xor eax, eax
push 6
pop ecx
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
push str.NtQueueApcThread
xor esi, esi
push str.ntdll
mov dword [ebp - 4], esi
mov dword [ebp - 0x34], 0x1c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + 0xc], eax
cmp eax, esi
je 0x1000500c
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 8]
push dword [ebx]
call fcn.10004e50
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x1000500c
push esi
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp + 8], eax
cmp eax, esi
je 0x1000500c
lea ecx, [ebp - 0x34]
push ecx
push eax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1000500c
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebx + 8]
jne 0x10004faf
push dword [ebp - 0x2c]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 8], eax
test eax, eax
je 0x10004faf
push 0
push 0
push edi
lea ecx, [edi + 0x10]
push ecx
push eax
call dword [ebp + 0xc]
push dword [ebp - 8]
call esi
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10004f7e
push dword [ebp + 8]
call esi
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 4]
push eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1000500c
cmp dword [ebp - 4], 0x10
jne 0x1000500c
cmp dword [ebp - 0xc], 0
jne 0x10005012
lea eax, [ebp - 4]
push eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebx]
mov dword [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
pop edi
pop esi
leave
ret
xor eax, eax
inc eax
jmp 0x1000500e

Function at 0x10005017
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push str.NtQueueApcThread
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10005039
xor eax, eax
pop ebp
ret
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call eax
test eax, eax
jne 0x10005035
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret

Function at 0x10005061
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
neg eax
sbb eax, eax
neg eax
pop ebp
ret