joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002636
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
cmp dword [0x10037604], 1
je 0x100026c3
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jge 0x1000266b
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 1
call fcn.1001585e
push 0x14
pop edx
mov dword [0x10037604], 1
call fcn.1000a604
push 0x13
pop edx
mov dword [0x10037608], eax
call fcn.1000a604
push 0x3d
pop edx
mov dword [0x1003760c], eax
call fcn.1000a61b
push 0x3e
pop edx
mov dword [0x1003b33c], eax
call fcn.1000a61b
push 0x3f
pop edx
mov dword [0x1003b330], eax
call fcn.1000a61b
push 0x42
pop edx
mov dword [0x1003b334], eax
call fcn.1000a61b
mov dword [0x1003b338], eax
leave
ret

Function at 0x10002771
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
cmp esi, 0x3ff
jg 0x100027aa
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x400]
push eax
call fcn.100159b0
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 0x10002a92
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.1001cd70
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.10007aba
add esp, 0x18
test eax, eax
je 0x10002b49
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.100059b6
add esp, 0x18
pop edi
pop esi
leave
ret
Function at 0x10002c4c
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.1001517f
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10002cea
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push dword [ebp + 8]
push eax
call fcn.10006bfa
add esp, 0xc
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.10006d25
pop ecx
pop ecx
test eax, eax
jne 0x10002c94
push ebx
call fcn.100150a2
jmp 0x10002ce9
push dword [ebp + 0x10]
push ebx
call fcn.10015b98
mov esi, eax
pop ecx
pop ecx
cmp esi, 0xffffffff
je 0x10002cd3
test esi, esi
je 0x10002cd3
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.10006cc8
add esp, 4
push eax
push 1
lea eax, [ebp - 0x14]
call fcn.10006cd3
push eax
call fcn.10015d11
push esi
call fcn.10015e0a
add esp, 0x14
jmp 0x10002c8c
push ebx
call fcn.100150a2
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 8
call fcn.10001f17
pop ecx
pop ecx
pop esi
pop ebx
leave
ret

Function at 0x10002d68
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 0x10002d86
or eax, 0xffffffff
jmp 0x10002dd5
push dword [ebp + 8]
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x10002d81
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0xc]
push eax
call fcn.1001bb80
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 0x10002dd3
push esi
call sub.WS2_32.dll_closesocket
jmp 0x10002d81
mov eax, esi
pop esi
leave
ret

Function at 0x10002dd8
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.10006bfa
lea eax, [ebp - 0x20]
add esp, 0xc
push eax
call fcn.10006d69
mov dword [ebp - 8], eax
pop ecx
lea eax, [ebp - 0x20]
push eax
call fcn.10006c13
mov dword [ebp - 4], eax
pop ecx
lea eax, [ebp - 0x20]
call fcn.10006cd3
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
call fcn.10006cc8
add esp, 4
mov dword [ebp - 0xc], eax
call fcn.10002636
jmp 0x10002e60
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.10002d68
mov ebx, eax
pop ecx
pop ecx
cmp ebx, 0xffffffff
jne 0x10002e84
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
cmp eax, edi
jb 0x10002e41
push 0x46
call fcn.10001f75
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 0x10002e6e
Function at 0x10002e94
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.10006bfa
add esp, 0xc
lea eax, [ebp - 0x24]
push 0x80
push eax
lea ebx, [ebp - 0xa8]
call fcn.10006d25
lea eax, [ebp - 0x24]
call fcn.10006cd3
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
call fcn.10006cc8
add esp, 0xc
mov dword [ebp - 8], eax
xor ebx, ebx
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 4]
call fcn.10005d9b
pop ecx
test eax, eax
jne 0x10002f49
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x35
je 0x10002f2c
call edi
cmp eax, esi
jae 0x10002f2c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jb 0x10002ef6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xa8]
push eax
push 0x32
call fcn.10001f45
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 0x10002f9a
mov ebx, 0x2000
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
sub eax, esi
cmp eax, ebx
jbe 0x10002f79
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 0x10002f9a
add esi, dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
cmp esi, dword [ebp - 8]
jb 0x10002f6b
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 0x10002f44

Function at 0x100031d1
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp esi, 0x100
push ebx
jge 0x10003246
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.1001bb80
or dword [0x1003319c], 0xffffffff
or dword [0x1003306c], 0xffffffff
or dword [0x100331a0], 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 [0x1003306c], eax
cmp eax, ebx
je 0x10003246
push ebx
push 0x10003067
call fcn.1000aea9
pop ecx
pop ecx
mov dword [0x100331a0], eax
pop ebx
leave
ret
Function at 0x100034fe
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 0x10003519
xor eax, eax
jmp 0x10003551
call fcn.100027b5
mov dword [esi], eax
add esi, 4
xor ecx, ecx
test edi, edi
jbe 0x1000354f
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 0x10003531
mov ebx, dword [ebp - 8]
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x10003555
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 0x1000356a
xor eax, eax
jmp 0x10003595
mov eax, esi
add esi, 4
sub edi, 4
push 0
pop edx
je 0x10003593
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 0x1000357b
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x100036e2
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 0x10003726
xor eax, eax
inc eax
jmp 0x100037eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x100037d6
mov edx, dword [ebx]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000373c
sub eax, esi
mov edi, 0x100
cmp eax, edi
jae 0x100037d6
push str.sysnative
push edx
call fcn.10015250
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100037d6
push edi
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.1001cd70
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 0x1000378e
sub eax, edi
push eax
lea eax, [ebp - 0x100]
push esi
push eax
call fcn.1001bb80
lea eax, [ebp - 0x100]
add esp, 0xc
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100037b1
sub eax, edi
inc eax
push eax
lea eax, [ebp - 0x100]
push eax
dec esi
push esi
call fcn.1001bb80
add esp, 0xc
push ebx
call fcn.100037ef
pop ecx
jmp 0x100037eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx]
push 0x45
call fcn.10001f45
add esp, 0xc
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100037ef
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.1001cb90
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.1001cd70
add esp, 0xc
xor eax, eax
push esi
mov word [esp + 0x914], ax
lea eax, [esp + 0x916]
push ebx
push eax
call fcn.1001cd70
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.1000296e
add esp, 0xc
test eax, eax
jne 0x1000387b
push dword [edi + 4]
push 7
call fcn.10001f17
pop ecx
pop ecx
jmp 0x100039e8
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
call ebx
cmp eax, esi
jae 0x1000389f
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 0x100038d2
xor eax, eax
inc eax
jmp 0x100039ea
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
cmp eax, 0x522
jne 0x1000390e
test ebx, ebx
je 0x1000390e
cmp dword [0x10037ea4], 1
jne 0x1000390e
push dword [esp + 0xc]
lea eax, [esp + 0x114]
push eax
mov ebx, edi
call fcn.100036e2
pop ecx
pop ecx
jmp 0x100039ea
call esi
cmp eax, 0x57
jne 0x1000392d
mov eax, dword [edi + 8]
cmp dword [eax], 0x48
jne 0x1000392d
test ebx, ebx
je 0x1000392d
call esi
push eax
push dword [edi]
push 0x4a
jmp 0x100039e0
call esi
cmp eax, 3
jne 0x100039d9
mov edx, dword [edi]
mov eax, edx
lea ecx, [eax + 1]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x1000393f
sub eax, ecx
mov ebx, 0x100
cmp eax, ebx
jae 0x100039d9
push str.sysnative
push edx
call fcn.10015250
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100039d3
push ebx
lea eax, [esp + 0x14]
push 0
push eax
call fcn.1001cd70
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 0x1000398f
sub eax, ecx
push eax
lea eax, [esp + 0x14]
push esi
push eax
call fcn.1001bb80
lea eax, [esp + 0x1c]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100039ae
sub eax, ecx
inc eax
push eax
lea eax, [esp + 0x14]
push eax
dec esi
push esi
call fcn.1001bb80
add esp, 0xc
push edi
call fcn.100037ef
jmp 0x10003908
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push dword [edi]
push 0x29
call fcn.10001f45
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100039f1
Capabilities:
Create process on windows

Disassembly:
push ecx
mov eax, dword [0x10037e90]
push ebx
push edi
xor edi, edi
cmp eax, edi
je 0x10003a54
cmp dword [esi + 0x14], edi
jne 0x10003a54
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 0x10003a7d
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x522
jne 0x10003a41
cmp dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW], edi
je 0x10003a41
push esi
call fcn.100037ef
pop ecx
jmp 0x10003a80
call ebx
push eax
push dword [esi]
push 0x29
call fcn.10001f45
add esp, 0xc
xor eax, eax
jmp 0x10003a80
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 0x10003a7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi]
push 0x30
jmp 0x10003a48
xor eax, eax
inc eax
pop edi
pop ebx
pop ecx
ret

Function at 0x10003a84
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 0x10003ae4
mov ebx, dword [esi]
lea edi, [ebp - 0xc]
call fcn.1000124c
test eax, eax
je 0x10003ae4
mov eax, dword [ebp - 0xc]
or dword [esi + 0x10], 4
mov dword [esi], eax
call fcn.100039f1
mov ebx, eax
mov eax, edi
mov edi, esi
mov esi, dword [edi + 0xc]
push eax
call fcn.10003599
test eax, eax
mov eax, dword [edi + 0xc]
pop ecx
jne 0x10003ad7
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x10003ae9
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, ebx
jmp 0x10003ae9
call fcn.100039f1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003aee
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.10006b7f
pop ecx
mov edi, eax
mov ebx, 0x4000
push ebx
push edi
mov dword [ebp - 0x1c], edi
call fcn.10006c81
mov esi, 0x400
push esi
push edi
mov dword [ebp - 8], eax
call fcn.10006c81
push esi
push edi
mov dword [ebp - 0x10], eax
call fcn.10006c81
push esi
push edi
mov dword [ebp - 0x14], eax
call fcn.10006c81
push esi
push edi
mov dword [ebp - 0xc], eax
call fcn.10006c81
push 0x44
pop edi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.1001cd70
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 ebx
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.1000296e
add esp, 0xc
push esi
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call fcn.1000296e
add esp, 0xc
push esi
push dword [ebp - 0xc]
push dword [ebp + 0x10]
call fcn.1000296e
add esp, 0xc
push esi
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.1000296e
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0xc
push edi
push edi
call ebx
cmp eax, esi
jae 0x10003bdf
push dword [ebp - 4]
push esi
call ebx
mov eax, dword [ebp - 4]
jmp 0x10003be2
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 0x10003c12
xor edi, edi
inc edi
jmp 0x10003c31
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.10001f8a
add esp, 0x18
push dword [ebp - 0x1c]
call fcn.10006bca
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003de4
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 [0x10037618], edi
jne 0x10003e06
push 0x80004
call fcn.1001517f
pop ecx
mov dword [0x10037618], eax
push dword [esi]
call sub.WS2_32.dll_htonl
mov ecx, dword [0x10037618]
mov dword [ecx], eax
mov ebx, dword [esi + 4]
cmp ebx, dword [ebp + 8]
jbe 0x10003e45
mov ebx, dword [ebp + 8]
jmp 0x10003e45
push dword [esi + 8]
mov eax, dword [0x10037618]
push ebx
lea eax, [eax + edi + 4]
push 1
push eax
call fcn.100164bc
add esp, 0x10
test eax, eax
je 0x10003e4b
add edi, eax
sub ebx, eax
sub dword [esi + 4], eax
test ebx, ebx
ja 0x10003e22
jmp 0x10003e4f
and dword [esi + 4], 0
push 8
add edi, 4
push edi
push dword [0x10037618]
call fcn.100012d0
add esp, 0xc
call fcn.10003e6d
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10003f30
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.10006bfa
lea eax, [ebp - 0x10]
push 0x80
push eax
call fcn.10001669
lea eax, [ebp - 0x20]
push eax
call fcn.10006c13
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.100016b9
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push eax
lea eax, [ebp - 0x10]
push 0x1002d588
push eax
call fcn.1000170c
add esp, 0xc
push 0x16
lea eax, [ebp - 0x10]
call fcn.1000176e
push eax
lea eax, [ebp - 0x10]
call fcn.1000176b
push eax
call fcn.100012d0
lea eax, [ebp - 0x10]
push eax
call fcn.1000174b
add esp, 0x10
leave
ret

Function at 0x10003fa8
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 0x10004089
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x4000
call fcn.10006b7f
pop ecx
mov esi, 0x2000
mov edi, eax
push esi
push edi
call fcn.10006c81
mov ebx, eax
push esi
push edi
mov dword [ebp - 8], ebx
call fcn.10006c81
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.10006bfa
add esp, 0x1c
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.10006d25
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.10006d25
add esp, 0x10
push 0
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x10004106
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xd
call fcn.10001f17
pop ecx
pop ecx
push edi
call fcn.10006bca
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004112
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x4000
call fcn.10006b7f
pop ecx
mov esi, 0x2000
mov edi, eax
push esi
push edi
call fcn.10006c81
mov ebx, eax
push esi
push edi
mov dword [ebp - 8], ebx
call fcn.10006c81
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.10006bfa
add esp, 0x1c
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.10006d25
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.10006d25
add esp, 0x10
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x1000418d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xe
call fcn.10001f17
pop ecx
pop ecx
push edi
call fcn.10006bca
pop ecx
pop edi
pop esi
pop ebx
leave
ret