joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100037f8
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.1001c790
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.10006057
add esp, 0x18
test eax, eax
je 0x100038af
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.10006923
add esp, 0x18
pop edi
pop esi
leave
ret

Function at 0x100039a4
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.100149cc
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10003a33
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x14]
call fcn.10007b06
push esi
push eax
call fcn.10007bc0
pop ecx
pop ecx
test eax, eax
jne 0x100039e1
push ebx
call fcn.100148ef
jmp 0x10003a32
push dword [ebp + 0x10]
push ebx
call fcn.100154af
mov esi, eax
pop ecx
pop ecx
cmp esi, 0xffffffff
je 0x10003a1c
test esi, esi
je 0x10003a1c
push esi
lea eax, [ebp - 0x14]
call fcn.10007b6a
push eax
push 1
lea eax, [ebp - 0x14]
call fcn.10007b6e
push eax
call fcn.10015628
push esi
call fcn.10015721
add esp, 0x14
jmp 0x100039d9
push ebx
call fcn.100148ef
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 8
call fcn.10001ad4
pop ecx
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x10003a37
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x10032010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x3ff
xor ebx, ebx
push esi
lea eax, [ebp - 0x807]
push ebx
push eax
mov byte [ebp - 0x808], bl
call fcn.1001c790
add esp, 0xc
push esi
lea eax, [ebp - 0x407]
push ebx
push eax
mov byte [ebp - 0x408], bl
call fcn.1001c790
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x830]
call fcn.10007b06
inc esi
push esi
push eax
lea ebx, [ebp - 0x808]
call fcn.10007bc0
pop ecx
pop ecx
test eax, eax
je 0x10003baf
lea eax, [ebp - 0x830]
push esi
push eax
lea ebx, [ebp - 0x408]
call fcn.10007bc0
pop ecx
pop ecx
test eax, eax
je 0x10003baf
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ebx, ebx
push ebx
push 0x2000080
push 3
push ebx
push 1
push connect
lea eax, [ebp - 0x808]
push eax
call esi
mov edi, eax
cmp edi, ebx
jne 0x10003b0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x808]
push eax
push 0x31
call fcn.10001b02
add esp, 0xc
jmp 0x10003baf
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x810]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x10003b45
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 9
call fcn.10001ad4
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10003baf
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push ebx
push 0x2000000
push 3
push ebx
push 2
push 0x40000000
lea eax, [ebp - 0x408]
push eax
call esi
mov esi, eax
cmp esi, ebx
jne 0x10003b7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x408]
jmp 0x10003afc
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x810]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x10003bac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xa
call fcn.10001ad4
pop ecx
pop ecx
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100148e0
leave
ret

Function at 0x10003bbe
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x10032010]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x7ff
lea eax, [ebp - 0x803]
push 0
push eax
mov byte [ebp - 0x804], 0
call fcn.1001c790
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jbe 0x10003c16
push 0x13
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.10001355
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100148e0
leave
ret
Function at 0x10003c42
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, 0x18
mov eax, dword [0x10032010]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x10003c6a
or eax, 0xffffffff
jmp 0x10003cb7
push edi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x10003c65
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.1001b5b0
add esp, 0xc
push 2
pop eax
push dword [ebp + 8]
mov word [ebp - 0x18], ax
call sub.WS2_32.dll_htons
mov word [ebp - 0x16], ax
push 0x10
lea eax, [ebp - 0x18]
push eax
push esi
call sub.WS2_32.dll_connect
test eax, eax
je 0x10003cb5
push esi
call sub.WS2_32.dll_closesocket
jmp 0x10003c65
mov eax, esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.100148e0
leave
ret

Function at 0x10003cc4
Capabilities:
Check for time delay via gettickcount
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
or dword [ebp - 0x18], 0xffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
call ebx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov edi, eax
add edi, 0xea60
lea eax, [ebp - 0x28]
mov dword [ebp - 0xc], edi
call fcn.10007b06
push eax
call fcn.10007c00
pop ecx
lea esi, [ebp - 0x28]
mov dword [ebp - 8], eax
call fcn.10007b12
mov dword [ebp - 4], eax
mov eax, esi
call fcn.10007b6e
mov dword [ebp - 0x14], eax
mov eax, esi
call fcn.10007b6a
mov dword [ebp - 0x10], eax
call fcn.1000229b
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp eax, edi
jae 0x10003d5f
push dword [ebp - 4]
mov edi, dword [ebp - 8]
call fcn.10003c42
mov edi, eax
pop ecx
cmp edi, 0xffffffff
jne 0x10003d4f
push 0x3e8
call esi
call ebx
cmp eax, dword [ebp - 0xc]
jb 0x10003d2c
jmp 0x10003d62
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
call sub.WS2_32.dll_send
jmp 0x10003d6a
mov edi, dword [ebp - 0x18]
push 0x46
call fcn.10001b32
pop ecx
push 0x3e8
call esi
push edi
call sub.WS2_32.dll_closesocket
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003d7c
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x10032010]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x94], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov esi, eax
lea eax, [ebp - 0xac]
add esi, 0xea60
call fcn.10007b06
push 0x80
push eax
lea ebx, [ebp - 0x88]
call fcn.10007bc0
pop ecx
pop ecx
lea eax, [ebp - 0xac]
call fcn.10007b6e
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0xac]
call fcn.10007b6a
mov dword [ebp - 0x90], eax
xor ebx, ebx
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x8c]
call fcn.10006cb2
pop ecx
test eax, eax
jne 0x10003e51
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x35
je 0x10003e2a
call edi
cmp eax, esi
jae 0x10003e2a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jb 0x10003df1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x88]
push eax
push 0x32
call fcn.10001b02
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100148e0
leave
ret
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x98]
push eax
push 4
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x8c]
call edi
cmp dword [ebp - 0x90], 0
jbe 0x10003ec6
mov ebx, 0x2000
mov eax, dword [ebp - 0x90]
mov esi, dword [ebp - 0x94]
sub eax, esi
cmp eax, ebx
jbe 0x10003e93
mov eax, ebx
push 0
lea ecx, [ebp - 0x98]
push ecx
push eax
mov eax, dword [ebp - 0x9c]
add eax, esi
push eax
push dword [ebp - 0x8c]
call edi
test eax, eax
je 0x10003ec6
add esi, dword [ebp - 0x98]
mov dword [ebp - 0x94], esi
cmp esi, dword [ebp - 0x90]
jb 0x10003e7f
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10003e42
Function at 0x10004260
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push edi
push 8
pop ecx
xor ebx, ebx
push 0xf003f
push ebx
xor eax, eax
mov dword [ebp - 0x34], ebx
lea edi, [ebp - 0x30]
push ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x10004295
xor eax, eax
jmp 0x1000431b
push esi
push 0x24
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, ebx
je 0x10004318
lea eax, [ebp - 0x34]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10004318
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
call esi
test eax, eax
je 0x10004318
mov ebx, 0x7530
cmp dword [ebp - 0x30], 1
je 0x1000431f
call edi
sub eax, dword [ebp - 0xc]
cmp eax, ebx
ja 0x10004318
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jbe 0x100042fc
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 4]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push dword [ebp - 8]
call esi
test eax, eax
jne 0x100042e4
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x10]
call esi
xor eax, eax
inc eax
jmp 0x1000431a

Function at 0x1000449b
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x10032010]
xor eax, ebp
mov dword [ebp - 8], eax
cmp esi, 0x100
mov eax, dword [ebp + 8]
push ebx
jge 0x1000451b
push esi
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.1001b5b0
or dword [0x1003429c], 0xffffffff
or dword [0x1003416c], 0xffffffff
or dword [0x100342a0], 0xffffffff
add esp, 0xc
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push 2
push 4
push 3
lea eax, [ebp - 0x10c]
push eax
mov byte [ebp + esi - 0x10c], bl
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [0x1003416c], eax
cmp eax, ebx
je 0x1000451b
push ebx
push 0x1000413a
call fcn.1000a944
pop ecx
pop ecx
mov dword [0x100342a0], eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop ebx
call fcn.100148e0
leave
ret

Function at 0x100048da
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 0x100048f5
xor eax, eax
jmp 0x1000492d
call fcn.1000338c
mov dword [esi], eax
add esi, 4
xor ecx, ecx
test edi, edi
jbe 0x1000492b
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 0x1000490d
mov ebx, dword [ebp - 8]
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x10004931
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 0x10004946
xor eax, eax
jmp 0x10004971
mov eax, esi
add esi, 4
sub edi, 4
push 0
pop edx
je 0x1000496f
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 0x10004957
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10032010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
push esi
mov edi, dword [ebp + 8]
push edx
push ecx
push 0
push dword [ebp + 0x14]
mov dword [ebp - 0x10c], edi
push eax
push 0
push 2
push dword [0x1003e930]
mov dword [ebp - 0x114], edx
push dword [0x1003e928]
mov dword [ebp - 0x110], esi
push dword [0x1003e92c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x10004b56
xor eax, eax
inc eax
jmp 0x10004c4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x10004c36
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10004b6a
sub eax, edx
mov edi, 0x100
cmp eax, edi
jae 0x10004c36
push str.sysnative
push dword [ebp - 0x10c]
call fcn.10014aa0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10004c36
push edi
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.1001c790
mov eax, dword [str.system32]
mov dword [esi], eax
mov eax, dword [0x1002d8d4]
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 0x10004bc5
sub eax, ecx
push eax
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.1001b5b0
lea eax, [ebp - 0x108]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10004be8
sub eax, ecx
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
dec esi
push esi
call fcn.1001b5b0
mov eax, dword [ebp - 0x10c]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10004c0d
push dword [ebp + 0x14]
sub eax, ecx
push dword [ebp - 0x110]
push dword [ebp - 0x114]
push eax
push dword [ebp - 0x10c]
call fcn.10004c5d
add esp, 0x14
jmp 0x10004c4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x10c]
push 0x45
call fcn.10001b02
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100148e0
leave
ret
Function at 0x10004e8e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1003e924]
push ebx
push esi
xor esi, esi
cmp eax, esi
je 0x10004f00
cmp dword [ebp + 0x18], esi
jne 0x10004f00
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
push dword [ebp + 0x14]
push 1
push esi
push esi
push edi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x10004f27
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x522
jne 0x10004eee
cmp dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW], esi
je 0x10004eee
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call fcn.10004c5d
add esp, 0x14
jmp 0x10004f2a
call ebx
push eax
push edi
push 0x29
call fcn.10001b02
add esp, 0xc
xor eax, eax
jmp 0x10004f2a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
push dword [ebp + 0x14]
push 1
push esi
push esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x10004f27
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x30
jmp 0x10004ef4
xor eax, eax
inc eax
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x10004f2f
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
test byte [ebp + 0x10], 4
push ebx
push esi
push edi
mov esi, eax
mov ebx, ecx
jne 0x10004f94
lea edi, [ebp - 0xc]
call fcn.10001241
test eax, eax
je 0x10004f94
push dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp - 0xc]
or eax, 4
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10004e8e
mov edi, eax
lea eax, [ebp - 0xc]
add esp, 0x14
push eax
call fcn.10004975
pop ecx
test eax, eax
jne 0x10004f87
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x10004fab
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
jmp 0x10004fab
push dword [ebp + 0x14]
mov edi, ebx
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10004e8e
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10005137
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 [0x1003e0b8], edi
jne 0x10005159
push 0x80004
call fcn.100149cc
pop ecx
mov dword [0x1003e0b8], eax
push dword [esi]
call sub.WS2_32.dll_htonl
mov ecx, dword [0x1003e0b8]
mov dword [ecx], eax
mov ebx, dword [esi + 4]
cmp ebx, dword [ebp + 8]
jbe 0x10005194
mov ebx, dword [ebp + 8]
jmp 0x10005194
push dword [esi + 8]
mov eax, dword [0x1003e0b8]
push ebx
lea eax, [eax + edi + 4]
push 1
push eax
call fcn.10015dd3
add esp, 0x10
add edi, eax
sub ebx, eax
sub dword [esi + 4], eax
test ebx, ebx
ja 0x10005175
push 8
add edi, 4
push edi
push dword [0x1003e0b8]
call fcn.10001355
add esp, 0xc
call fcn.100051b6
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100052e1
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 0x100053ab
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x4000
call fcn.10007a9f
mov edi, eax
pop ecx
mov esi, 0x2000
mov edx, edi
call fcn.10007b4f
mov ebx, eax
mov dword [ebp - 8], ebx
call fcn.10007b4f
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
call fcn.10007b06
push esi
push eax
call fcn.10007bc0
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.10007bc0
add esp, 0x10
push 0
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x1000541f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xd
call fcn.10001ad4
pop ecx
pop ecx
mov esi, edi
call fcn.10007adf
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000542b
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x4000
call fcn.10007a9f
mov edi, eax
pop ecx
mov esi, 0x2000
mov edx, edi
call fcn.10007b4f
mov ebx, eax
mov dword [ebp - 8], ebx
call fcn.10007b4f
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
call fcn.10007b06
push esi
push eax
call fcn.10007bc0
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.10007bc0
add esp, 0x10
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x1000549d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xe
call fcn.10001ad4
pop ecx
pop ecx
mov esi, edi
call fcn.10007adf
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100054a9
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x10032010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x4000
push edi
call fcn.100149cc
pop ecx
push edi
mov ebx, eax
push 0
push ebx
call fcn.1001c790
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x158]
call fcn.10007b06
mov esi, eax
call fcn.10007b12
mov esi, eax
lea eax, [ebp - 0x158]
push edi
push eax
call fcn.10007bc0
lea eax, [ebp - 0x158]
push 0x200000
push eax
call fcn.1000176d
push esi
lea esi, [ebp - 0x158]
call fcn.100017a0
add esp, 0x14
push edi
push 0x1002d8ec
push ebx
call fcn.10015eff
add esp, 0xc
test eax, eax
jne 0x1000554c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 2
push 0x1002d8f0
push edi
push ebx
call fcn.10015327
add esp, 0x10
push ebx
push 0x1002d578
lea esi, [ebp - 0x158]
call fcn.100017f3
pop ecx
pop ecx
lea eax, [ebp - 0x148]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100055ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x34
call fcn.10001b02
add esp, 0xc
push 0x16
mov eax, esi
call fcn.10007b6a
push eax
mov eax, esi
call fcn.10001846
push eax
call fcn.10001355
add esp, 0xc
push ebx
call fcn.100148ef
pop ecx
jmp 0x100056c3
push ebx
call fcn.100148ef
pop ecx
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x178]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
test byte [ebp - 0x148], 0x10
lea esi, [ebp - 0x158]
je 0x10005632
lea eax, [ebp - 0x11c]
push eax
movzx eax, word [ebp - 0x15c]
push eax
movzx eax, word [ebp - 0x15e]
push eax
movzx eax, word [ebp - 0x160]
push eax
movzx eax, word [ebp - 0x168]
push eax
movzx eax, word [ebp - 0x162]
push eax
movzx eax, word [ebp - 0x166]
push eax
push str.D_t0_t_02d__02d__02d__02d:_02d:_02d_t_s_n
call fcn.100017f3
add esp, 0x20
jmp 0x10005684
mov ecx, dword [ebp - 0x12c]
lea edx, [ebp - 0x11c]
push edx
movzx edx, word [ebp - 0x15c]
push edx
movzx edx, word [ebp - 0x15e]
mov eax, dword [ebp - 0x128]
push edx
movzx edx, word [ebp - 0x160]
push edx
movzx edx, word [ebp - 0x168]
push edx
movzx edx, word [ebp - 0x162]
push edx
movzx edx, word [ebp - 0x166]
push edx
push ecx
push eax
push str.F_t_I64d_t_02d__02d__02d__02d:_02d:_02d_t_s_n
call fcn.100017f3
add esp, 0x28
lea eax, [ebp - 0x148]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100055b3
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x16
lea eax, [ebp - 0x158]
call fcn.10007b6a
push eax
lea eax, [ebp - 0x158]
call fcn.10001846
push eax
call fcn.10001355
add esp, 0xc
lea eax, [ebp - 0x158]
call fcn.1000182d
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100148e0
leave
ret