joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100023b7
Capabilities:
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
push ebx
push esi
push edi
xor ebx, ebx
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x30]
push 0x3ff
mov dword [ebp - 0x34], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x443]
push ebx
push eax
mov dword [ebp - 0x3c], 0x1002d530
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 0x444], bl
call fcn.1001c290
mov eax, dword [0x1003af04]
add esp, 0xc
lea esi, [ebp - 0x34]
call fcn.10007e16
push dword [ebp + 8]
mov edi, 0x1002d524
push edi
mov esi, 0x400
push esi
push dword [ebp - 0x2c]
call fcn.100149a6
add esp, 0x10
push ebx
push ebx
push dword [0x1003af04]
lea eax, [ebp - 0x34]
push 0x1003af08
push eax
push 0xc
pop edx
call fcn.10009f7b
push eax
call fcn.100077c3
mov eax, dword [ebp - 0x30]
add esp, 0x18
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1000244f
sub eax, ecx
lea eax, [ebp - 0x444]
jne 0x10002470
push dword [ebp - 0x2c]
push edi
push esi
push eax
call fcn.100149a6
add esp, 0x10
jmp 0x10002485
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push 0x1002d538
push esi
push eax
call fcn.100149a6
add esp, 0x14
push 0x10033c58
push dword [0x10033c5c]
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
lea eax, [ebp - 0x444]
push eax
push 0x1a
pop edx
call fcn.10009f7b
push eax
push dword [0x100375f8]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
push edi
call fcn.100020df
mov eax, dword [ebp - 0x34]
pop ecx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100024c1
push dword [ebp - 0x24]
sub eax, esi
push dword [ebp - 0x28]
push eax
push dword [ebp - 0x34]
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
lea eax, [ebp - 0x34]
call fcn.10007e93
push edi
call fcn.1000213e
pop ecx
test eax, eax
jne 0x100024fc
or ebx, 0xffffffff
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, ebx
jmp 0x1000257a
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x10002571
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jbe 0x10002571
cmp eax, dword [ebp + 0x10]
jae 0x10002571
cmp dword [ebp + 0x10], ebx
jbe 0x100024f1
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push 0x1000
add eax, esi
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1000254b
cmp dword [ebp - 8], ebx
je 0x1000254b
add esi, dword [ebp - 8]
mov dword [ebp - 0xc], esi
cmp esi, dword [ebp + 0x10]
jb 0x1000251e
cmp esi, dword [ebp + 0x10]
jae 0x100024f1
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp + 0x10]
push 0xb
pop edx
call fcn.10009f7b
mov ecx, dword [ebp + 0xc]
push eax
mov eax, esi
call fcn.10007ccb
pop ecx
pop ecx
jmp 0x1000257a
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100025a5
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
cmp dword [0x10037604], 1
je 0x10002632
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jge 0x100025da
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 1
call fcn.10014fac
push 0x14
pop edx
mov dword [0x10037604], 1
call fcn.10009f64
push 0x13
pop edx
mov dword [0x10037608], eax
call fcn.10009f64
push 0x3d
pop edx
mov dword [0x1003760c], eax
call fcn.10009f7b
push 0x3e
pop edx
mov dword [0x1003b31c], eax
call fcn.10009f7b
push 0x3f
pop edx
mov dword [0x1003b310], eax
call fcn.10009f7b
push 0x42
pop edx
mov dword [0x1003b314], eax
call fcn.10009f7b
mov dword [0x1003b318], eax
leave
ret

Function at 0x10002634
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.100025a5
push 0x100
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x10002671
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10002671
cmp word [eax + 8], 2
jne 0x10002671
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
je 0x10002671
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x10002673
xor eax, eax
pop ecx
pop ebp
ret

Function at 0x1000268a
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
cmp esi, 0x3ff
jg 0x100026c3
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x400]
push eax
call fcn.10015100
add esp, 0xc
lea eax, [ebp - 0x400]
push eax
mov byte [ebp + esi - 0x400], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
leave
ret

Function at 0x100029a0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.1001c290
mov dword [ebp - 0x70], edi
xor eax, eax
lea edi, [ebp - 0x24]
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 - 0x14]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
xor eax, eax
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 4]
push esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
push 0x10
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x44], 0x101
push dword [ebp + 8]
mov dword [ebp - 0x38], esi
call fcn.10007690
add esp, 0x18
test eax, eax
je 0x10002a57
push 0x2710
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
lea esi, [ebp - 0x24]
push dword [ebp - 8]
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.1000559e
add esp, 0x18
pop edi
pop esi
leave
ret
Function at 0x10002b59
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, 0x400
push esi
call fcn.10014855
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10002bf7
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push dword [ebp + 8]
push eax
call fcn.100067d0
add esp, 0xc
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.100068fb
pop ecx
pop ecx
test eax, eax
jne 0x10002ba1
push ebx
call fcn.10014778
jmp 0x10002bf6
push dword [ebp + 0x10]
push ebx
call fcn.100152e8
mov esi, eax
pop ecx
pop ecx
cmp esi, 0xffffffff
je 0x10002be0
test esi, esi
je 0x10002be0
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.1000689e
add esp, 4
push eax
push 1
lea eax, [ebp - 0x14]
call fcn.100068a9
push eax
call fcn.10015461
push esi
call fcn.1001555a
add esp, 0x14
jmp 0x10002b99
push ebx
call fcn.10014778
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 8
call fcn.10001e97
pop ecx
pop ecx
pop esi
pop ebx
leave
ret

Function at 0x10002c75
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x10002c93
or eax, 0xffffffff
jmp 0x10002ce2
push dword [ebp + 8]
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x10002c8e
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0xc]
push eax
call fcn.1001b0a0
add esp, 0xc
push 2
pop eax
push dword [ebp + 0xc]
mov word [ebp - 0x10], ax
call sub.WS2_32.dll_htons
mov word [ebp - 0xe], ax
push 0x10
lea eax, [ebp - 0x10]
push eax
push esi
call sub.WS2_32.dll_connect
test eax, eax
je 0x10002ce0
push esi
call sub.WS2_32.dll_closesocket
jmp 0x10002c8e
mov eax, esi
pop esi
leave
ret

Function at 0x10002ce5
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
or ebx, 0xffffffff
call esi
push dword [ebp + 0xc]
mov edi, eax
push dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
add edi, 0xea60
call fcn.100067d0
lea eax, [ebp - 0x20]
add esp, 0xc
push eax
call fcn.1000693f
mov dword [ebp - 8], eax
pop ecx
lea eax, [ebp - 0x20]
push eax
call fcn.100067e9
mov dword [ebp - 4], eax
pop ecx
lea eax, [ebp - 0x20]
call fcn.100068a9
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
call fcn.1000689e
add esp, 4
mov dword [ebp - 0xc], eax
call fcn.100025a5
jmp 0x10002d6d
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.10002c75
mov ebx, eax
pop ecx
pop ecx
cmp ebx, 0xffffffff
jne 0x10002d91
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
cmp eax, edi
jb 0x10002d4e
push 0x46
call fcn.10001ef5
pop ecx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call sub.WS2_32.dll_closesocket
pop edi
pop esi
pop ebx
leave
ret
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
call sub.WS2_32.dll_send
jmp 0x10002d7b
Function at 0x10002da1
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
add esi, 0xea60
call fcn.100067d0
add esp, 0xc
lea eax, [ebp - 0x24]
push pe_nt_image_headers32
push eax
lea ebx, [ebp - 0xa8]
call fcn.100068fb
lea eax, [ebp - 0x24]
call fcn.100068a9
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
call fcn.1000689e
add esp, 0xc
mov dword [ebp - 8], eax
xor ebx, ebx
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 4]
call fcn.10005983
pop ecx
test eax, eax
jne 0x10002e56
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x35
je 0x10002e39
call edi
cmp eax, esi
jae 0x10002e39
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jb 0x10002e03
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xa8]
push eax
push 0x32
call fcn.10001ec5
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], 0
jbe 0x10002ea7
mov ebx, 0x2000
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
sub eax, esi
cmp eax, ebx
jbe 0x10002e86
mov eax, ebx
push 0
lea ecx, [ebp - 0x10]
push ecx
push eax
mov eax, dword [ebp - 0x14]
add eax, esi
push eax
push dword [ebp - 4]
call edi
test eax, eax
je 0x10002ea7
add esi, dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
cmp esi, dword [ebp - 8]
jb 0x10002e78
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10002e51

Function at 0x1000307c
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp esi, 0x100
push ebx
jge 0x100030f1
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.1001b0a0
or dword [0x1003306c], 0xffffffff
or dword [0x1003201c], 0xffffffff
or dword [0x1003319c], 0xffffffff
add esp, 0xc
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push 2
push 4
push 3
lea eax, [ebp - 0x104]
push eax
mov byte [ebp + esi - 0x104], bl
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [0x1003201c], eax
cmp eax, ebx
je 0x100030f1
push ebx
push 0x10002f12
call fcn.1000a772
pop ecx
pop ecx
mov dword [0x1003319c], eax
pop ebx
leave
ret
Function at 0x100033a9
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 0x100033c4
xor eax, eax
jmp 0x100033fc
call fcn.100026ce
mov dword [esi], eax
add esi, 4
xor ecx, ecx
test edi, edi
jbe 0x100033fa
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 0x100033dc
mov ebx, dword [ebp - 8]
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x10003400
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 0x10003415
xor eax, eax
jmp 0x10003440
mov eax, esi
add esi, 4
sub edi, 4
push 0
pop edx
je 0x1000343e
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 0x10003426
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x1000357a
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 0x100035be
xor eax, eax
inc eax
jmp 0x10003683
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x1000366e
mov edx, dword [ebx]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100035d4
sub eax, esi
mov edi, 0x100
cmp eax, edi
jae 0x1000366e
push str.sysnative
push edx
call fcn.10014920
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1000366e
push edi
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.1001c290
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 0x10003626
sub eax, edi
push eax
lea eax, [ebp - 0x100]
push esi
push eax
call fcn.1001b0a0
lea eax, [ebp - 0x100]
add esp, 0xc
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003649
sub eax, edi
inc eax
push eax
lea eax, [ebp - 0x100]
push eax
dec esi
push esi
call fcn.1001b0a0
add esp, 0xc
push ebx
call fcn.10003687
pop ecx
jmp 0x10003683
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx]
push 0x45
call fcn.10001ec5
add esp, 0xc
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10003687
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.1001c0b0
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.1001c290
add esp, 0xc
xor eax, eax
push esi
mov word [esp + 0x914], ax
lea eax, [esp + 0x916]
push ebx
push eax
call fcn.1001c290
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.10002886
add esp, 0xc
test eax, eax
jne 0x10003713
push dword [edi + 4]
push 7
call fcn.10001e97
pop ecx
pop ecx
jmp 0x10003880
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
call ebx
cmp eax, esi
jae 0x10003737
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 0x1000376a
xor eax, eax
inc eax
jmp 0x10003882
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
cmp eax, 0x522
jne 0x100037a6
test ebx, ebx
je 0x100037a6
cmp dword [0x10037ea4], 1
jne 0x100037a6
push dword [esp + 0xc]
lea eax, [esp + 0x114]
push eax
mov ebx, edi
call fcn.1000357a
pop ecx
pop ecx
jmp 0x10003882
call esi
cmp eax, 0x57
jne 0x100037c5
mov eax, dword [edi + 8]
cmp dword [eax], 0x48
jne 0x100037c5
test ebx, ebx
je 0x100037c5
call esi
push eax
push dword [edi]
push 0x4a
jmp 0x10003878
call esi
cmp eax, 3
jne 0x10003871
mov edx, dword [edi]
mov eax, edx
lea ecx, [eax + 1]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x100037d7
sub eax, ecx
mov ebx, 0x100
cmp eax, ebx
jae 0x10003871
push str.sysnative
push edx
call fcn.10014920
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1000386b
push ebx
lea eax, [esp + 0x14]
push 0
push eax
call fcn.1001c290
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 0x10003827
sub eax, ecx
push eax
lea eax, [esp + 0x14]
push esi
push eax
call fcn.1001b0a0
lea eax, [esp + 0x1c]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10003846
sub eax, ecx
inc eax
push eax
lea eax, [esp + 0x14]
push eax
dec esi
push esi
call fcn.1001b0a0
add esp, 0xc
push edi
call fcn.10003687
jmp 0x100037a0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push dword [edi]
push 0x29
call fcn.10001ec5
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003889
Capabilities:
Create process on windows

Disassembly:
push ecx
mov eax, dword [0x10037e90]
push ebx
push edi
xor edi, edi
cmp eax, edi
je 0x100038ec
cmp dword [esi + 0x14], edi
jne 0x100038ec
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 0x10003915
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x522
jne 0x100038d9
cmp dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW], edi
je 0x100038d9
push esi
call fcn.10003687
pop ecx
jmp 0x10003918
call ebx
push eax
push dword [esi]
push 0x29
call fcn.10001ec5
add esp, 0xc
xor eax, eax
jmp 0x10003918
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 0x10003915
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi]
push 0x30
jmp 0x100038e0
xor eax, eax
inc eax
pop edi
pop ebx
pop ecx
ret

Function at 0x1000391c
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 0x1000397c
mov ebx, dword [esi]
lea edi, [ebp - 0xc]
call fcn.1000124b
test eax, eax
je 0x1000397c
mov eax, dword [ebp - 0xc]
or dword [esi + 0x10], 4
mov dword [esi], eax
call fcn.10003889
mov ebx, eax
mov eax, edi
mov edi, esi
mov esi, dword [edi + 0xc]
push eax
call fcn.10003444
test eax, eax
mov eax, dword [edi + 0xc]
pop ecx
jne 0x1000396f
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x10003981
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, ebx
jmp 0x10003981
call fcn.10003889
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003986
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.10006769
pop ecx
mov edi, eax
mov esi, 0x4000
push esi
push edi
mov dword [ebp - 0x1c], edi
call fcn.10006857
mov ebx, 0x400
push ebx
push edi
mov dword [ebp - 8], eax
call fcn.10006857
push ebx
push edi
mov dword [ebp - 0x10], eax
call fcn.10006857
push ebx
push edi
mov dword [ebp - 0x14], eax
call fcn.10006857
push ebx
push edi
mov dword [ebp - 0xc], eax
call fcn.10006857
push 0x44
pop edi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.1001c290
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.10002886
add esp, 0xc
push ebx
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call fcn.10002886
add esp, 0xc
push ebx
push dword [ebp - 0xc]
push dword [ebp + 0x10]
call fcn.10002886
add esp, 0xc
push ebx
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.10002886
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0xc
push edi
push edi
call esi
cmp eax, ebx
jae 0x10003a77
push dword [ebp - 4]
push ebx
call esi
mov eax, dword [ebp - 4]
jmp 0x10003a7a
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 0x10003aaa
xor edi, edi
inc edi
jmp 0x10003ac9
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.10001f0a
add esp, 0x18
mov esi, dword [ebp - 0x1c]
call fcn.100067a9
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret