joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000283b
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 0xc], 0
push esi
push edi
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
lea esi, [ebp - 0x18]
call fcn.1000274b
pop ecx
lea eax, [ebp - 0xc]
push eax
push 0
push 4
pop ecx
call fcn.1000b086
push eax
call fcn.1000b086
push eax
push 0xff
push 6
push 3
push 0xf
pop ecx
call fcn.1000b091
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov esi, eax
lea eax, [ebp - 0x18]
call fcn.1000280d
cmp esi, 0xffffffff
jne 0x100028ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x17
call fcn.10002242
pop ecx
pop ecx
xor eax, eax
jmp 0x100028be
xor eax, eax
mov dword [0x1003a1a0], 2
mov dword [0x1003ac78], esi
inc eax
pop edi
pop esi
leave
ret

Function at 0x100029c5
Capabilities:
Create raw socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0
push 1
push 2
mov dword [0x1003a1a0], 3
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
or esi, 0xffffffff
mov dword [ebp - 8], edi
cmp edi, esi
jne 0x100029fe
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push 2
pop eax
push eax
pop ecx
mov word [ebp - 0x18], ax
call fcn.1000b07b
movzx eax, ax
push eax
call sub.WS2_32.dll_htons
mov word [ebp - 0x16], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, esi
jne 0x10002a33
push edi
jmp 0x100029f1
push 0x78
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, esi
je 0x10002a30
call fcn.1000500e
mov dword [0x1003ac7c], eax
cmp eax, esi
jne 0x10002a5b
xor esi, esi
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
jmp 0x100029f9
lea ebx, [ebp - 0x3c]
call fcn.1000292d
sub esp, 0x20
push 8
pop ecx
mov esi, eax
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.10002467
mov edi, dword [ebp - 8]
xor esi, esi
add esp, 0x20
inc esi
jmp 0x10002a50

Function at 0x10002b1a
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
cmp esi, 0x3ff
jg 0x10002b53
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x400]
push eax
call fcn.100178b0
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 0x10002e35
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.1001ec90
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.10008941
add esp, 0x18
test eax, eax
je 0x10002ef5
push 0x2710
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x34], eax
je 0x10002edd
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.10006328
add esp, 0x18
pop edi
pop esi
leave
ret

Function at 0x10002ff7
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.1001709f
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10003099
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push dword [ebp + 8]
push eax
call fcn.100076c7
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.100078b6
add esp, 0x14
test eax, eax
jne 0x1000303d
push ebx
call fcn.10016fc2
jmp 0x10003098
push dword [ebp + 0x10]
push ebx
call fcn.10017a98
mov esi, eax
pop ecx
pop ecx
cmp esi, 0xffffffff
je 0x10003082
test esi, esi
je 0x10003082
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.10007859
add esp, 4
push eax
push 1
lea eax, [ebp - 0x14]
call fcn.10007864
push eax
call fcn.10017c11
push esi
call fcn.10017d0a
push ebx
call fcn.10016fc2
add esp, 0x18
jmp 0x10003099
push ebx
call fcn.10016fc2
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 8
call fcn.10002242
pop ecx
pop ecx
pop esi
pop ebx
leave
ret

Function at 0x1000309d
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.1001ec90
add esp, 0xc
lea eax, [ebp - 0x800]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jbe 0x100030eb
push 0x13
push eax
lea eax, [ebp - 0x800]
push eax
call fcn.100012c1
add esp, 0xc
leave
ret
Function at 0x10003161
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 0x1000317f
or eax, 0xffffffff
jmp 0x100031ce
push dword [ebp + 8]
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x1000317a
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0xc]
push eax
call fcn.1001daa0
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 0x100031cc
push esi
call sub.WS2_32.dll_closesocket
jmp 0x1000317a
mov eax, esi
pop esi
leave
ret

Function at 0x100031d1
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.100076c7
lea eax, [ebp - 0x20]
add esp, 0xc
push eax
call fcn.100078fa
mov dword [ebp - 8], eax
pop ecx
lea eax, [ebp - 0x20]
push eax
call fcn.100076e0
mov dword [ebp - 4], eax
pop ecx
lea eax, [ebp - 0x20]
call fcn.10007864
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
call fcn.10007859
add esp, 4
mov dword [ebp - 0xc], eax
call fcn.10002314
jmp 0x10003259
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.10003161
mov ebx, eax
pop ecx
pop ecx
cmp ebx, 0xffffffff
jne 0x1000327d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
cmp eax, edi
jb 0x1000323a
push 0x46
call fcn.100022a5
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 0x10003267
Function at 0x1000328d
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.100076c7
lea eax, [ebp - 0x24]
push 0x80
push eax
lea ebx, [ebp - 0xa8]
call fcn.100078b6
lea eax, [ebp - 0x24]
call fcn.10007864
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
call fcn.10007859
add esp, 0x18
mov dword [ebp - 8], eax
xor ebx, ebx
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 4]
call fcn.1000676a
pop ecx
test eax, eax
jne 0x1000333f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x35
je 0x10003322
call edi
cmp eax, esi
jae 0x10003322
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jb 0x100032ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xa8]
push eax
push 0x32
call fcn.10002270
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 0x10003390
mov ebx, 0x2000
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
sub eax, esi
cmp eax, ebx
jbe 0x1000336f
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 0x10003390
add esi, dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
cmp esi, dword [ebp - 8]
jb 0x10003361
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.1000c25b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000333a

Function at 0x1000364a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.100035d2
test eax, eax
je 0x10003696
mov eax, dword [0x1003dfec]
shl esi, 5
add eax, esi
xor esi, esi
cmp dword [eax + 0x10], esi
jne 0x10003696
cmp dword [eax + 0x14], esi
je 0x10003696
cmp dword [eax + 0x18], esi
jbe 0x1000368f
mov ecx, dword [eax + 0x14]
mov edx, esi
and edx, 3
mov dl, byte [edx + 0x1003ac80]
add ecx, esi
xor byte [ecx], dl
inc esi
cmp esi, dword [eax + 0x18]
jb 0x10003677
mov dword [eax + 0x10], 1
pop esi
pop ebp
ret

Function at 0x10003699
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.100035d2
test eax, eax
je 0x100036e4
mov eax, dword [0x1003dfec]
shl esi, 5
add eax, esi
cmp dword [eax + 0x10], 0
je 0x100036e4
cmp dword [eax + 0x14], 0
je 0x100036e4
xor esi, esi
cmp dword [eax + 0x18], esi
jbe 0x100036e0
mov ecx, dword [eax + 0x14]
mov edx, esi
and edx, 3
mov dl, byte [edx + 0x1003ac80]
add ecx, esi
xor byte [ecx], dl
inc esi
cmp esi, dword [eax + 0x18]
jb 0x100036c8
and dword [eax + 0x10], 0
pop esi
pop ebp
ret
Function at 0x10003da9
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
cmp esi, 0x100
jge 0x10003e1f
push ebx
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x100]
push eax
call fcn.1001daa0
or dword [0x1003a190], 0xffffffff
or dword [0x1003605c], 0xffffffff
or dword [0x1003a194], 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 [0x1003605c], eax
cmp eax, ebx
je 0x10003e1e
push ebx
push 0x10003c40
call fcn.1000c7ba
pop ecx
pop ecx
mov dword [0x1003a194], eax
pop ebx
leave
ret

Function at 0x100040e8
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 [0x1003e8b8]
push dword [0x1003e8b0]
push dword [0x1003e8b4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x10004127
xor eax, eax
inc eax
leave
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x100041d8
mov edx, dword [ebx]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000413f
sub eax, esi
mov edi, pe_nt_image_headers32
cmp eax, edi
jae 0x100041d8
push str.sysnative
push edx
call fcn.10017170
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100041d8
push edi
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.1001ec90
mov eax, dword [str.system32]
mov dword [esi], eax
mov eax, dword [0x1002f578]
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 0x10004191
sub eax, edi
push eax
lea eax, [ebp - 0x100]
push esi
push eax
call fcn.1001daa0
lea eax, [ebp - 0x100]
add esp, 0xc
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100041b4
sub eax, edi
inc eax
push eax
lea eax, [ebp - 0x100]
push eax
dec esi
push esi
call fcn.1001daa0
push ebx
call fcn.100041f1
add esp, 0x10
jmp 0x100041ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx]
push 0x45
call fcn.10002270
add esp, 0xc
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100041f1
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1104
call fcn.1001eab0
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.1001ec90
xor eax, eax
push esi
mov word [ebp - 0x1104], ax
lea eax, [ebp - 0x1102]
push ebx
push eax
call fcn.1001ec90
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.10002d16
add esp, 0x24
test eax, eax
jne 0x1000426e
push dword [esi + 4]
push 7
call fcn.10002242
pop ecx
pop ecx
jmp 0x100043e5
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
call ebx
cmp eax, edi
jae 0x1000428f
lea eax, [ebp - 0x1104]
push eax
push edi
call ebx
lea eax, [ebp - 0x1104]
mov dword [ebp - 4], eax
call fcn.1000c868
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 [0x1003e8ac]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
mov edi, eax
call fcn.1000c8ab
test edi, edi
je 0x100042cc
xor eax, eax
inc eax
jmp 0x100043e7
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
cmp eax, 0x522
jne 0x10004306
test ebx, ebx
je 0x10004306
cmp dword [0x1003e8c0], 1
jne 0x10004306
push dword [ebp - 4]
lea eax, [ebp - 0x904]
push eax
mov ebx, esi
call fcn.100040e8
pop ecx
pop ecx
jmp 0x100043e7
call edi
cmp eax, 0x57
jne 0x10004325
mov eax, dword [esi + 8]
cmp dword [eax], 0x48
jne 0x10004325
test ebx, ebx
je 0x10004325
call edi
push eax
push dword [esi]
push 0x4a
jmp 0x100043dd
call edi
cmp eax, 3
jne 0x100043d6
mov edx, dword [esi]
mov eax, edx
lea ecx, [eax + 1]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x10004337
sub eax, ecx
mov ebx, pe_nt_image_headers32
cmp eax, ebx
jae 0x100043d6
push str.sysnative
push edx
call fcn.10017170
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100043d0
push ebx
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.1001ec90
mov eax, dword [str.system32]
mov dword [edi], eax
mov eax, dword [0x1002f578]
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 0x10004389
sub eax, ecx
push eax
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.1001daa0
lea eax, [ebp - 0x104]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100043ac
sub eax, ecx
inc eax
push eax
lea eax, [ebp - 0x104]
push eax
dec edi
push edi
call fcn.1001daa0
push esi
call fcn.100041f1
add esp, 0x10
jmp 0x100043e7
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push dword [esi]
push 0x29
call fcn.10002270
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100043ec
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [0x1003e8ac]
push ebx
push edi
xor edi, edi
cmp eax, edi
je 0x1000444e
cmp dword [esi + 0x14], edi
jne 0x1000444e
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 0x10004477
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x522
jne 0x1000443b
cmp dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW], edi
je 0x1000443b
push esi
call fcn.100041f1
pop ecx
jmp 0x1000447a
call ebx
push eax
push dword [esi]
push 0x29
call fcn.10002270
add esp, 0xc
xor eax, eax
jmp 0x1000447a
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 0x10004477
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi]
push 0x30
jmp 0x10004442
xor eax, eax
inc eax
pop edi
pop ebx
ret

Function at 0x1000447d
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 0x100044dd
push ebx
mov ebx, dword [esi]
lea edi, [ebp - 0xc]
call fcn.1000124b
pop ebx
test eax, eax
je 0x100044dd
mov eax, dword [ebp - 0xc]
or dword [esi + 0x10], 4
mov dword [esi], eax
call fcn.100043ec
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0xc]
call fcn.10003f63
pop ecx
test eax, eax
mov eax, dword [esi + 0xc]
pop ecx
jne 0x100044d0
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x100044e2
push dword [eax + 4]
call fcn.1000bfac
pop ecx
mov eax, edi
jmp 0x100044e2
call fcn.100043ec
pop edi
pop esi
leave
ret
Function at 0x100044e6
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.10007655
mov edi, eax
mov esi, 0x4000
push esi
push edi
mov dword [ebp - 0x1c], edi
call fcn.10007812
mov ebx, 0x400
push ebx
push edi
mov dword [ebp - 8], eax
call fcn.10007812
push ebx
push edi
mov dword [ebp - 0x10], eax
call fcn.10007812
push ebx
push edi
mov dword [ebp - 0x14], eax
call fcn.10007812
push ebx
push edi
mov dword [ebp - 0xc], eax
call fcn.10007812
push 0x44
pop edi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.1001ec90
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.10002d16
push ebx
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call fcn.10002d16
push ebx
push dword [ebp - 0xc]
push dword [ebp + 0x10]
call fcn.10002d16
push ebx
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.10002d16
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0x30
push edi
push edi
call esi
cmp eax, ebx
jae 0x100045cd
push dword [ebp - 4]
push ebx
call esi
mov eax, dword [ebp - 4]
jmp 0x100045d0
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 0x10004600
xor edi, edi
inc edi
jmp 0x1000461f
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.100022ba
add esp, 0x18
mov esi, dword [ebp - 0x1c]
call fcn.100076a0
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100047bf
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
xor ebx, ebx
push edi
mov esi, eax
cmp dword [0x1003dffc], ebx
jne 0x100047de
push 0x80004
call fcn.1001709f
pop ecx
mov dword [0x1003dffc], eax
push dword [esi]
call sub.WS2_32.dll_htonl
mov ecx, dword [0x1003dffc]
mov dword [ecx], eax
mov edi, dword [esi + 4]
mov eax, 0x40000
cmp edi, eax
jbe 0x1000481e
mov edi, eax
push dword [esi + 8]
mov eax, dword [0x1003dffc]
push edi
lea eax, [eax + ebx + 4]
push 1
push eax
call fcn.100183bc
add esp, 0x10
test eax, eax
je 0x10004824
add ebx, eax
sub edi, eax
sub dword [esi + 4], eax
test edi, edi
ja 0x100047fb
jmp 0x10004828
and dword [esi + 4], 0
push 8
add ebx, 4
push ebx
push dword [0x1003dffc]
call fcn.100012c1
push fcn.100012c1
call fcn.1000484a
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x10004903
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.100076c7
lea eax, [ebp - 0x10]
push 0x80
push eax
call fcn.1000139d
lea eax, [ebp - 0x20]
push eax
call fcn.100076e0
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.100013ed
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push eax
lea eax, [ebp - 0x10]
push 0x1002f594
push eax
call fcn.100014f7
add esp, 0xc
push 0x16
lea eax, [ebp - 0x10]
call fcn.10001559
push eax
lea eax, [ebp - 0x10]
call fcn.10001556
push eax
call fcn.100012c1
lea eax, [ebp - 0x10]
push eax
call fcn.10001536
add esp, 0x10
leave
ret

Function at 0x1000497b
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 0x10004a5c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x4000
call fcn.10007655
mov edi, 0x2000
mov esi, eax
push edi
push esi
call fcn.10007812
mov ebx, eax
push edi
push esi
mov dword [ebp - 8], ebx
call fcn.10007812
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.100076c7
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.100078b6
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.100078b6
add esp, 0x30
push 0
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x10004ad5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xd
call fcn.10002242
pop ecx
pop ecx
call fcn.100076a0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004adf
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x4000
call fcn.10007655
mov edi, 0x2000
mov esi, eax
push edi
push esi
call fcn.10007812
mov ebx, eax
push edi
push esi
mov dword [ebp - 8], ebx
call fcn.10007812
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.100076c7
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.100078b6
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.100078b6
add esp, 0x30
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x10004b56
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xe
call fcn.10002242
pop ecx
pop ecx
call fcn.100076a0
pop edi
pop esi
pop ebx
leave
ret