joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100032e6
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 0x10003301
xor eax, eax
jmp 0x10003339
call fcn.1000260f
mov dword [esi], eax
add esi, 4
xor ecx, ecx
test edi, edi
jbe 0x10003337
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 0x10003319
mov ebx, dword [ebp - 8]
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x1000333d
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 0x10003352
xor eax, eax
jmp 0x1000337d
mov eax, esi
add esi, 4
sub edi, 4
push 0
pop edx
je 0x1000337b
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 0x10003363
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x100034b7
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 [0x10036838]
push dword [0x10036830]
push dword [0x10036834]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x100034fb
xor eax, eax
inc eax
jmp 0x100035c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x100035ab
mov edx, dword [ebx]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003511
sub eax, esi
mov edi, 0x100
cmp eax, edi
jae 0x100035ab
push str.sysnative
push edx
call fcn.10013d30
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100035ab
push edi
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.1001b930
mov eax, dword [str.system32]
mov dword [esi], eax
mov eax, dword [0x1002c568]
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 0x10003563
sub eax, edi
push eax
lea eax, [ebp - 0x100]
push esi
push eax
call fcn.1001a750
lea eax, [ebp - 0x100]
add esp, 0xc
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003586
sub eax, edi
inc eax
push eax
lea eax, [ebp - 0x100]
push eax
dec esi
push esi
call fcn.1001a750
add esp, 0xc
push ebx
call fcn.100035c4
pop ecx
jmp 0x100035c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx]
push 0x45
call fcn.10001eb1
add esp, 0xc
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100035c4
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.1001b750
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.1001b930
add esp, 0xc
xor eax, eax
push esi
mov word [esp + 0x914], ax
lea eax, [esp + 0x916]
push ebx
push eax
call fcn.1001b930
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.100027c3
add esp, 0xc
test eax, eax
jne 0x10003650
push dword [edi + 4]
push 7
call fcn.10001e83
pop ecx
pop ecx
jmp 0x100037bd
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
call ebx
cmp eax, esi
jae 0x10003674
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 [0x1003682c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
je 0x100036a7
xor eax, eax
inc eax
jmp 0x100037bf
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
cmp eax, 0x522
jne 0x100036e3
test ebx, ebx
je 0x100036e3
cmp dword [0x10036840], 1
jne 0x100036e3
push dword [esp + 0xc]
lea eax, [esp + 0x114]
push eax
mov ebx, edi
call fcn.100034b7
pop ecx
pop ecx
jmp 0x100037bf
call esi
cmp eax, 0x57
jne 0x10003702
mov eax, dword [edi + 8]
cmp dword [eax], 0x48
jne 0x10003702
test ebx, ebx
je 0x10003702
call esi
push eax
push dword [edi]
push 0x4a
jmp 0x100037b5
call esi
cmp eax, 3
jne 0x100037ae
mov edx, dword [edi]
mov eax, edx
lea ecx, [eax + 1]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x10003714
sub eax, ecx
mov ebx, 0x100
cmp eax, ebx
jae 0x100037ae
push str.sysnative
push edx
call fcn.10013d30
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100037a8
push ebx
lea eax, [esp + 0x14]
push 0
push eax
call fcn.1001b930
mov eax, dword [str.system32]
mov dword [esi], eax
mov eax, dword [0x1002c568]
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 0x10003764
sub eax, ecx
push eax
lea eax, [esp + 0x14]
push esi
push eax
call fcn.1001a750
lea eax, [esp + 0x1c]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10003783
sub eax, ecx
inc eax
push eax
lea eax, [esp + 0x14]
push eax
dec esi
push esi
call fcn.1001a750
add esp, 0xc
push edi
call fcn.100035c4
jmp 0x100036dd
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push dword [edi]
push 0x29
call fcn.10001eb1
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100037c6
Capabilities:
Create process on windows

Disassembly:
push ecx
mov eax, dword [0x1003682c]
push ebx
push edi
xor edi, edi
cmp eax, edi
je 0x10003829
cmp dword [esi + 0x14], edi
jne 0x10003829
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 0x10003852
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x522
jne 0x10003816
cmp dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW], edi
je 0x10003816
push esi
call fcn.100035c4
pop ecx
jmp 0x10003855
call ebx
push eax
push dword [esi]
push 0x29
call fcn.10001eb1
add esp, 0xc
xor eax, eax
jmp 0x10003855
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 0x10003852
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi]
push 0x30
jmp 0x1000381d
xor eax, eax
inc eax
pop edi
pop ebx
pop ecx
ret

Function at 0x10003859
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 0x100038b9
mov ebx, dword [esi]
lea edi, [ebp - 0xc]
call fcn.1000124b
test eax, eax
je 0x100038b9
mov eax, dword [ebp - 0xc]
or dword [esi + 0x10], 4
mov dword [esi], eax
call fcn.100037c6
mov ebx, eax
mov eax, edi
mov edi, esi
mov esi, dword [edi + 0xc]
push eax
call fcn.10003381
test eax, eax
mov eax, dword [edi + 0xc]
pop ecx
jne 0x100038ac
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x100038be
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, ebx
jmp 0x100038be
call fcn.100037c6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100038c3
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.10006878
pop ecx
mov edi, eax
mov esi, 0x4000
push esi
push edi
mov dword [ebp - 0x1c], edi
call fcn.10006966
mov ebx, 0x400
push ebx
push edi
mov dword [ebp - 8], eax
call fcn.10006966
push ebx
push edi
mov dword [ebp - 0x10], eax
call fcn.10006966
push ebx
push edi
mov dword [ebp - 0x14], eax
call fcn.10006966
push ebx
push edi
mov dword [ebp - 0xc], eax
call fcn.10006966
push 0x44
pop edi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.1001b930
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.100027c3
add esp, 0xc
push ebx
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call fcn.100027c3
add esp, 0xc
push ebx
push dword [ebp - 0xc]
push dword [ebp + 0x10]
call fcn.100027c3
add esp, 0xc
push ebx
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.100027c3
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0xc
push edi
push edi
call esi
cmp eax, ebx
jae 0x100039b4
push dword [ebp - 4]
push ebx
call esi
mov eax, dword [ebp - 4]
jmp 0x100039b7
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 0x100039e7
xor edi, edi
inc edi
jmp 0x10003a06
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.10001ef6
add esp, 0x18
mov esi, dword [ebp - 0x1c]
call fcn.100068b8
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003baf
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 [0x10035fc8], edi
jne 0x10003bd1
push 0x80004
call fcn.10013c63
pop ecx
mov dword [0x10035fc8], eax
push dword [esi]
call sub.WS2_32.dll_htonl
mov ecx, dword [0x10035fc8]
mov dword [ecx], eax
mov ebx, dword [esi + 4]
cmp ebx, dword [ebp + 8]
jbe 0x10003c10
mov ebx, dword [ebp + 8]
jmp 0x10003c10
push dword [esi + 8]
mov eax, dword [0x10035fc8]
push ebx
lea eax, [eax + edi + 4]
push 1
push eax
call fcn.10015041
add esp, 0x10
test eax, eax
je 0x10003c16
add edi, eax
sub ebx, eax
sub dword [esi + 4], eax
test ebx, ebx
ja 0x10003bed
jmp 0x10003c1a
and dword [esi + 4], 0
push 8
add edi, 4
push edi
push dword [0x10035fc8]
call fcn.10001345
add esp, 0xc
call fcn.10003c38
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10003cfb
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.100068df
lea eax, [ebp - 0x10]
push 0x80
push eax
call fcn.100015e2
lea eax, [ebp - 0x20]
push eax
call fcn.100068f8
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10001632
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push eax
lea eax, [ebp - 0x10]
push 0x1002c584
push eax
call fcn.10001685
add esp, 0xc
push 0x16
lea eax, [ebp - 0x10]
call fcn.100016e7
push eax
lea eax, [ebp - 0x10]
call fcn.100016e4
push eax
call fcn.10001345
lea eax, [ebp - 0x10]
push eax
call fcn.100016c4
add esp, 0x10
leave
ret

Function at 0x10003d73
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 0x10003e54
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x4000
call fcn.10006878
pop ecx
mov edi, 0x2000
mov esi, eax
push edi
push esi
call fcn.10006966
mov ebx, eax
push edi
push esi
mov dword [ebp - 8], ebx
call fcn.10006966
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.100068df
add esp, 0x1c
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.10006a0a
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.10006a0a
add esp, 0x10
push 0
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x10003ed1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xd
call fcn.10001e83
pop ecx
pop ecx
call fcn.100068b8
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003edb
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x4000
call fcn.10006878
pop ecx
mov edi, 0x2000
mov esi, eax
push edi
push esi
call fcn.10006966
mov ebx, eax
push edi
push esi
mov dword [ebp - 8], ebx
call fcn.10006966
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.100068df
add esp, 0x1c
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.10006a0a
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.10006a0a
add esp, 0x10
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x10003f56
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xe
call fcn.10001e83
pop ecx
pop ecx
call fcn.100068b8
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003f60
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.10013c63
pop ecx
push esi
mov ebx, eax
push 0
push ebx
call fcn.1001b930
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push eax
call fcn.100068df
lea eax, [ebp - 0x10]
add esp, 0xc
push eax
call fcn.100068f8
pop ecx
mov edi, eax
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.10006a0a
lea eax, [ebp - 0x10]
push 0x200000
push eax
call fcn.100015e2
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.10001632
push esi
push 0x1002c590
push ebx
call fcn.1001516d
add esp, 0x24
test eax, eax
jne 0x10003ff2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 2
push 0x1002c594
push esi
push ebx
call fcn.10014595
add esp, 0x10
push ebx
lea eax, [ebp - 0x10]
push 0x1002c518
push eax
call fcn.10001685
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 0x10004053
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x34
call fcn.10001eb1
add esp, 0xc
push 0x16
lea eax, [ebp - 0x10]
call fcn.100016e7
push eax
lea eax, [ebp - 0x10]
call fcn.100016e4
push eax
call fcn.10001345
add esp, 0xc
push ebx
call fcn.10013b86
pop ecx
jmp 0x10004139
push ebx
call fcn.10013b86
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 0x100040bc
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.10001685
add esp, 0x24
jmp 0x10004100
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.10001685
add esp, 0x2c
lea eax, [ebp - 0x170]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000405a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x16
lea eax, [ebp - 0x10]
call fcn.100016e7
push eax
lea eax, [ebp - 0x10]
call fcn.100016e4
push eax
call fcn.10001345
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
call fcn.100016c4
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004148
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 0x10004166
xor eax, eax
jmp 0x10004187
lea eax, [edi + 1]
cmp eax, dword [ebp + 0x10]
jae 0x10004162
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call fcn.1001b930
add esp, 0xc
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebp
ret

Function at 0x100046dd
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push esi
push edi
push dword [ebp + 0x28]
call fcn.10009c22
pop ecx
push 0x44
pop esi
push esi
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.1001b930
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.10009a1f
add esp, 0x10
test eax, eax
je 0x100047cb
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.10004b15
add esp, 0x14
cmp dword [ebp + 8], 0
jbe 0x100047ae
push dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.10005aac
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.10005717
add esp, 0x1c
push dword [ebp + 0x28]
call fcn.10009c44
pop ecx
pop edi
pop esi
leave
ret
Function at 0x10004c90
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.10004c90
push esi
sub ebx, 0x10004c5a
lea eax, [ebx + 0x10]
push edi
push eax
mov dword [ebp - 0xc], eax
call fcn.10013c63
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 0x10004c5a
push eax
movsd dword es:[edi], dword [esi]
call fcn.1001a750
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 0x10004d0b
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 0x10004d0b
cmp dword [ebp - 4], edi
je 0x10004d0b
xor esi, esi
push dword [ebp - 8]
call fcn.10013b86
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10004d1b
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 0x10004e4c
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 8]
push dword [ebx]
call fcn.10004c90
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x10004e4c
push esi
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp + 8], eax
cmp eax, esi
je 0x10004e4c
lea ecx, [ebp - 0x34]
push ecx
push eax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10004e4c
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebx + 8]
jne 0x10004def
push dword [ebp - 0x2c]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 8], eax
test eax, eax
je 0x10004def
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 0x10004dbe
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 0x10004e4c
cmp dword [ebp - 4], 0x10
jne 0x10004e4c
cmp dword [ebp - 0xc], 0
jne 0x10004e52
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 0x10004e4e

Function at 0x10004e57
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 0x10004e79
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 0x10004e75
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 0x10004ea1
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