joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100023be
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], 0x1002c534
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.1001bdd0
mov eax, dword [0x10039884]
add esp, 0xc
lea esi, [ebp - 0x34]
call fcn.10007de1
push dword [ebp + 8]
mov edi, 0x1002c528
push edi
mov esi, 0x400
push esi
push dword [ebp - 0x2c]
call fcn.100145c6
add esp, 0x10
push ebx
push ebx
push dword [0x10039884]
lea eax, [ebp - 0x34]
push 0x10039888
push eax
push 0xc
pop edx
call fcn.10009f46
push eax
call fcn.1000778e
mov eax, dword [ebp - 0x30]
add esp, 0x18
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10002456
sub eax, ecx
lea eax, [ebp - 0x444]
jne 0x10002477
push dword [ebp - 0x2c]
push edi
push esi
push eax
call fcn.100145c6
add esp, 0x10
jmp 0x1000248c
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push 0x1002c53c
push esi
push eax
call fcn.100145c6
add esp, 0x14
push 0x10032c40
push dword [0x10032c44]
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
lea eax, [ebp - 0x444]
push eax
push 0x1a
pop edx
call fcn.10009f46
push eax
push dword [0x10035f88]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
push edi
call fcn.100020e6
mov eax, dword [ebp - 0x34]
pop ecx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100024c8
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.10007e5e
push edi
call fcn.10002145
pop ecx
test eax, eax
jne 0x10002503
or ebx, 0xffffffff
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, ebx
jmp 0x10002581
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x10002578
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jbe 0x10002578
cmp eax, dword [ebp + 0x10]
jae 0x10002578
cmp dword [ebp + 0x10], ebx
jbe 0x100024f8
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 0x10002552
cmp dword [ebp - 8], ebx
je 0x10002552
add esi, dword [ebp - 8]
mov dword [ebp - 0xc], esi
cmp esi, dword [ebp + 0x10]
jb 0x10002525
cmp esi, dword [ebp + 0x10]
jae 0x100024f8
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp + 0x10]
push 0xb
pop edx
call fcn.10009f46
mov ecx, dword [ebp + 0xc]
push eax
mov eax, esi
call fcn.10007c96
pop ecx
pop ecx
jmp 0x10002581
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100025ac
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
cmp dword [0x10035f94], 1
je 0x10002605
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jge 0x100025e1
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 1
call fcn.10014d1c
push 0x14
pop edx
mov dword [0x10035f94], 1
call fcn.10009f2f
push 0x13
pop edx
mov dword [0x10035f98], eax
call fcn.10009f2f
mov dword [0x10035f9c], eax
leave
ret

Function at 0x10002607
Capabilities:
Get hostname
Resolve dns

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

Function at 0x1000265d
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
cmp esi, 0x3ff
jg 0x10002696
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x400]
push eax
call fcn.10014680
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 0x1000296a
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.1001bdd0
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.1000765b
add esp, 0x18
test eax, eax
je 0x10002a21
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.10005568
add esp, 0x18
pop edi
pop esi
leave
ret
Function at 0x10002b23
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.10014469
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10002bc1
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push dword [ebp + 8]
push eax
call fcn.1000679b
add esp, 0xc
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.100068c6
pop ecx
pop ecx
test eax, eax
jne 0x10002b6b
push ebx
call fcn.1001438c
jmp 0x10002bc0
push dword [ebp + 0x10]
push ebx
call fcn.10014f2d
mov esi, eax
pop ecx
pop ecx
cmp esi, 0xffffffff
je 0x10002baa
test esi, esi
je 0x10002baa
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.10006869
add esp, 4
push eax
push 1
lea eax, [ebp - 0x14]
call fcn.10006874
push eax
call fcn.100150a6
push esi
call fcn.1001519f
add esp, 0x14
jmp 0x10002b63
push ebx
call fcn.1001438c
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 8
call fcn.10001e9e
pop ecx
pop ecx
pop esi
pop ebx
leave
ret

Function at 0x10002c3f
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 0x10002c5d
or eax, 0xffffffff
jmp 0x10002cac
push dword [ebp + 8]
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x10002c58
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0xc]
push eax
call fcn.1001abf0
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 0x10002caa
push esi
call sub.WS2_32.dll_closesocket
jmp 0x10002c58
mov eax, esi
pop esi
leave
ret

Function at 0x10002caf
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.1000679b
lea eax, [ebp - 0x20]
add esp, 0xc
push eax
call fcn.1000690a
mov dword [ebp - 8], eax
pop ecx
lea eax, [ebp - 0x20]
push eax
call fcn.100067b4
mov dword [ebp - 4], eax
pop ecx
lea eax, [ebp - 0x20]
call fcn.10006874
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
call fcn.10006869
add esp, 4
mov dword [ebp - 0xc], eax
call fcn.100025ac
jmp 0x10002d37
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.10002c3f
mov ebx, eax
pop ecx
pop ecx
cmp ebx, 0xffffffff
jne 0x10002d5b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
cmp eax, edi
jb 0x10002d18
push 0x46
call fcn.10001efc
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 0x10002d45
Function at 0x10002d6b
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.1000679b
add esp, 0xc
lea eax, [ebp - 0x24]
push pe_nt_image_headers32
push eax
lea ebx, [ebp - 0xa8]
call fcn.100068c6
lea eax, [ebp - 0x24]
call fcn.10006874
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
call fcn.10006869
add esp, 0xc
mov dword [ebp - 8], eax
xor ebx, ebx
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 4]
call fcn.1000594d
pop ecx
test eax, eax
jne 0x10002e20
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x35
je 0x10002e03
call edi
cmp eax, esi
jae 0x10002e03
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jb 0x10002dcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xa8]
push eax
push 0x32
call fcn.10001ecc
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 0x10002e71
mov ebx, 0x2000
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
sub eax, esi
cmp eax, ebx
jbe 0x10002e50
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 0x10002e71
add esi, dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
cmp esi, dword [ebp - 8]
jb 0x10002e42
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 0x10002e1b

Function at 0x10003046
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp esi, 0x100
push ebx
jge 0x100030bb
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.1001abf0
or dword [0x1003218c], 0xffffffff
or dword [0x1003205c], 0xffffffff
or dword [0x10032190], 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 [0x1003205c], eax
cmp eax, ebx
je 0x100030bb
push ebx
push 0x10002edc
call fcn.1000a386
pop ecx
pop ecx
mov dword [0x10032190], eax
pop ebx
leave
ret
Function at 0x10003373
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 0x1000338e
xor eax, eax
jmp 0x100033c6
call fcn.100026a1
mov dword [esi], eax
add esi, 4
xor ecx, ecx
test edi, edi
jbe 0x100033c4
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 0x100033a6
mov ebx, dword [ebp - 8]
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x100033ca
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 0x100033df
xor eax, eax
jmp 0x1000340a
mov eax, esi
add esi, 4
sub edi, 4
push 0
pop edx
je 0x10003408
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 0x100033f0
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x10003544
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 [0x10036818]
push dword [0x10036810]
push dword [0x10036814]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x10003588
xor eax, eax
inc eax
jmp 0x1000364d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x10003638
mov edx, dword [ebx]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000359e
sub eax, esi
mov edi, 0x100
cmp eax, edi
jae 0x10003638
push str.sysnative
push edx
call fcn.10014540
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10003638
push edi
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.1001bdd0
mov eax, dword [str.system32]
mov dword [esi], eax
mov eax, dword [0x1002c570]
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 0x100035f0
sub eax, edi
push eax
lea eax, [ebp - 0x100]
push esi
push eax
call fcn.1001abf0
lea eax, [ebp - 0x100]
add esp, 0xc
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003613
sub eax, edi
inc eax
push eax
lea eax, [ebp - 0x100]
push eax
dec esi
push esi
call fcn.1001abf0
add esp, 0xc
push ebx
call fcn.10003651
pop ecx
jmp 0x1000364d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx]
push 0x45
call fcn.10001ecc
add esp, 0xc
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10003651
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.1001bbf0
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.1001bdd0
add esp, 0xc
xor eax, eax
push esi
mov word [esp + 0x914], ax
lea eax, [esp + 0x916]
push ebx
push eax
call fcn.1001bdd0
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.10002850
add esp, 0xc
test eax, eax
jne 0x100036dd
push dword [edi + 4]
push 7
call fcn.10001e9e
pop ecx
pop ecx
jmp 0x1000384a
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
call ebx
cmp eax, esi
jae 0x10003701
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 [0x1003680c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
je 0x10003734
xor eax, eax
inc eax
jmp 0x1000384c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
cmp eax, 0x522
jne 0x10003770
test ebx, ebx
je 0x10003770
cmp dword [0x10036820], 1
jne 0x10003770
push dword [esp + 0xc]
lea eax, [esp + 0x114]
push eax
mov ebx, edi
call fcn.10003544
pop ecx
pop ecx
jmp 0x1000384c
call esi
cmp eax, 0x57
jne 0x1000378f
mov eax, dword [edi + 8]
cmp dword [eax], 0x48
jne 0x1000378f
test ebx, ebx
je 0x1000378f
call esi
push eax
push dword [edi]
push 0x4a
jmp 0x10003842
call esi
cmp eax, 3
jne 0x1000383b
mov edx, dword [edi]
mov eax, edx
lea ecx, [eax + 1]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x100037a1
sub eax, ecx
mov ebx, 0x100
cmp eax, ebx
jae 0x1000383b
push str.sysnative
push edx
call fcn.10014540
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10003835
push ebx
lea eax, [esp + 0x14]
push 0
push eax
call fcn.1001bdd0
mov eax, dword [str.system32]
mov dword [esi], eax
mov eax, dword [0x1002c570]
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 0x100037f1
sub eax, ecx
push eax
lea eax, [esp + 0x14]
push esi
push eax
call fcn.1001abf0
lea eax, [esp + 0x1c]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10003810
sub eax, ecx
inc eax
push eax
lea eax, [esp + 0x14]
push eax
dec esi
push esi
call fcn.1001abf0
add esp, 0xc
push edi
call fcn.10003651
jmp 0x1000376a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push dword [edi]
push 0x29
call fcn.10001ecc
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003853
Capabilities:
Create process on windows

Disassembly:
push ecx
mov eax, dword [0x1003680c]
push ebx
push edi
xor edi, edi
cmp eax, edi
je 0x100038b6
cmp dword [esi + 0x14], edi
jne 0x100038b6
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 0x100038df
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x522
jne 0x100038a3
cmp dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW], edi
je 0x100038a3
push esi
call fcn.10003651
pop ecx
jmp 0x100038e2
call ebx
push eax
push dword [esi]
push 0x29
call fcn.10001ecc
add esp, 0xc
xor eax, eax
jmp 0x100038e2
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 0x100038df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi]
push 0x30
jmp 0x100038aa
xor eax, eax
inc eax
pop edi
pop ebx
pop ecx
ret

Function at 0x100038e6
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 0x10003946
mov ebx, dword [esi]
lea edi, [ebp - 0xc]
call fcn.1000124b
test eax, eax
je 0x10003946
mov eax, dword [ebp - 0xc]
or dword [esi + 0x10], 4
mov dword [esi], eax
call fcn.10003853
mov ebx, eax
mov eax, edi
mov edi, esi
mov esi, dword [edi + 0xc]
push eax
call fcn.1000340e
test eax, eax
mov eax, dword [edi + 0xc]
pop ecx
jne 0x10003939
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x1000394b
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, ebx
jmp 0x1000394b
call fcn.10003853
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003950
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.10006734
pop ecx
mov edi, eax
mov esi, 0x4000
push esi
push edi
mov dword [ebp - 0x1c], edi
call fcn.10006822
mov ebx, 0x400
push ebx
push edi
mov dword [ebp - 8], eax
call fcn.10006822
push ebx
push edi
mov dword [ebp - 0x10], eax
call fcn.10006822
push ebx
push edi
mov dword [ebp - 0x14], eax
call fcn.10006822
push ebx
push edi
mov dword [ebp - 0xc], eax
call fcn.10006822
push 0x44
pop edi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.1001bdd0
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.10002850
add esp, 0xc
push ebx
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call fcn.10002850
add esp, 0xc
push ebx
push dword [ebp - 0xc]
push dword [ebp + 0x10]
call fcn.10002850
add esp, 0xc
push ebx
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.10002850
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0xc
push edi
push edi
call esi
cmp eax, ebx
jae 0x10003a41
push dword [ebp - 4]
push ebx
call esi
mov eax, dword [ebp - 4]
jmp 0x10003a44
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 0x10003a74
xor edi, edi
inc edi
jmp 0x10003a93
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.10001f11
add esp, 0x18
mov esi, dword [ebp - 0x1c]
call fcn.10006774
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003c3c
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 [0x10035fa8], edi
jne 0x10003c5e
push 0x80004
call fcn.10014469
pop ecx
mov dword [0x10035fa8], eax
push dword [esi]
call sub.WS2_32.dll_htonl
mov ecx, dword [0x10035fa8]
mov dword [ecx], eax
mov ebx, dword [esi + 4]
cmp ebx, dword [ebp + 8]
jbe 0x10003c9d
mov ebx, dword [ebp + 8]
jmp 0x10003c9d
push dword [esi + 8]
mov eax, dword [0x10035fa8]
push ebx
lea eax, [eax + edi + 4]
push 1
push eax
call fcn.10015851
add esp, 0x10
test eax, eax
je 0x10003ca3
add edi, eax
sub ebx, eax
sub dword [esi + 4], eax
test ebx, ebx
ja 0x10003c7a
jmp 0x10003ca7
and dword [esi + 4], 0
push 8
add edi, 4
push edi
push dword [0x10035fa8]
call fcn.10001345
add esp, 0xc
call fcn.10003cc5
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10003d88
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.1000679b
lea eax, [ebp - 0x10]
push pe_nt_image_headers32
push eax
call fcn.100015e2
lea eax, [ebp - 0x20]
push eax
call fcn.100067b4
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 0x1002c58c
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 0x10003e00
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 0x10003ee1
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x4000
call fcn.10006734
pop ecx
mov edi, 0x2000
mov esi, eax
push edi
push esi
call fcn.10006822
mov ebx, eax
push edi
push esi
mov dword [ebp - 8], ebx
call fcn.10006822
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.1000679b
add esp, 0x1c
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.100068c6
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.100068c6
add esp, 0x10
push 0
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x10003f5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xd
call fcn.10001e9e
pop ecx
pop ecx
call fcn.10006774
pop edi
pop esi
pop ebx
leave
ret