joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59f5ec
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetTickCount
mov ebx, eax
jmp 0x59f605
mov eax, dword [0x6afcb4]
mov eax, dword [eax]
call fcn.0046ff74
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp esi, eax
ja 0x59f5f9
pop esi
pop ebx
ret

Function at 0x59f69c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
xor edx, edx
mov dword [ebp - 0x3f0], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x59f70b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x3f0]
lea edx, [ebp - 0x3e9]
mov ecx, 0x3e9
call fcn.00404c04
mov eax, dword [ebp - 0x3f0]
mov edx, ebx
call fcn.0054677c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59f712
lea eax, [ebp - 0x3f0]
call fcn.0040498c
ret

Function at 0x59f718
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
push ebx
xor edx, edx
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x88], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x59f7d6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x7f
lea eax, [ebp - 0x80]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x88]
lea edx, [ebp - 0x80]
mov ecx, 0x80
call fcn.00404c04
mov eax, dword [ebp - 0x88]
mov ecx, 1
mov edx, 0x80
call fcn.00404eac
mov eax, dword [ebp - 0x84]
mov edx, 0x59f7ec
call fcn.00404d98
je 0x59f7a9
mov eax, ebx
lea edx, [ebp - 0x80]
mov ecx, 0x80
call fcn.00404c04
mov eax, ebx
mov edx, 0x59f7ec
call fcn.00404c5c
jmp 0x59f7b8
mov eax, ebx
lea edx, [ebp - 0x80]
mov ecx, 0x80
call fcn.00404c04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59f7dd
lea eax, [ebp - 0x88]
mov edx, 2
call fcn.004049b0
ret

Function at 0x59f7f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
push ebx
xor edx, edx
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x84], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x59f87b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x7f
lea eax, [ebp - 0x80]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x84]
lea edx, [ebp - 0x80]
mov ecx, 0x80
call fcn.00404c04
mov eax, dword [ebp - 0x84]
mov edx, ebx
call fcn.00409874
lea edx, [ebp - 0x88]
mov eax, dword [ebx]
call fcn.0040ecb0
mov edx, dword [ebp - 0x88]
mov eax, ebx
call fcn.004049e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59f882
lea eax, [ebp - 0x88]
mov edx, 2
call fcn.004049b0
ret
Function at 0x5a2dcf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x6a7dfe
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x5a2e27
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x6a7e1f
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x5a2e1d
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x5a2e2b
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x5b6704
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x5b6732
mov eax, ebx
call fcn.005b71bc
cmp dword [ebx + 0x3c], 0
je 0x5b672b
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x5b67a3
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x5b6795
cmp dword [ebx + 8], 0
je 0x5b6754
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x5b6766
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x5b6795
cmp dword [ebx + 8], 0
je 0x5b6747
cmp eax, 3
je 0x5b6779
dec eax
jne 0x5b6747
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x5b6747
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x5b6747
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x5b67c1
cmp dword [ebx + 0x10], 0xcc
je 0x5b67c1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.005b67cc
pop ebx
ret

Function at 0x5c80dc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e3c
xor eax, eax
push ebp
push 0x5c8159
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0040a1c8
test al, al
je 0x5c813e
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0xb
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x5c8170
call fcn.0040af08
mov eax, dword [ebp - 8]
call fcn.00404e4c
push eax
call sub.kernel32.dll_WinExec
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c8160
lea eax, [ebp - 8]
mov edx, 2
call fcn.004049b0
ret
Function at 0x5c8838
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e3c
xor eax, eax
push ebp
push 0x5c8936
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x5c8911
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x5c8944
call sub.user32.dll_FindWindowA
mov ebx, eax
push ebx
call sub.user32.dll_IsWindow
test eax, eax
jne 0x5c8892
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5c891b
lea eax, [ebp - 8]
mov edx, 0x400
call fcn.00404fd8
push 0x400
lea eax, [ebp - 8]
call fcn.00404ea4
push eax
push ebx
call sub.user32.dll_GetWindowTextA
mov eax, dword [ebp - 8]
call fcn.00404e4c
mov edx, eax
lea eax, [ebp - 8]
call fcn.00404b8c
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00409ee8
mov esi, eax
push esi
call sub.user32.dll_IsWindow
test eax, eax
jne 0x5c88e5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5c891b
mov eax, dword [ebp - 4]
call fcn.00404e4c
push eax
push 0
push 0xc
push esi
call sub.user32.dll_SendMessageA
push 0
push 0
push 0x7e9
push ebx
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5c891b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c893d
lea eax, [ebp - 8]
mov edx, 2
call fcn.004049b0
ret

Function at 0x5c9d28
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e3c
xor eax, eax
push ebp
push 0x5c9dbf
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.00404e4c
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x5c9da9
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x24], eax
fild qword [ebp - 0x28]
fdiv dword [0x5c9dd0]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
fild qword [ebp - 0x30]
fmulp st(1)
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x34], eax
fild qword [ebp - 0x38]
fmulp st(1)
fstp qword [ebp - 0x10]
wait
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c9dc6
lea eax, [ebp - 4]
call fcn.0040498c
ret

Function at 0x5cbd1c
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.00408378
ret
Function at 0x5d1ca4
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
add esp, 0xfffffeb4
mov esi, 0x6ab478
mov ecx, 0x4b
mov dword [esp], eax
mov ax, word [0x6ab476]
lea edi, [esp + 0x10]
mov word [esp + 8], ax
rep movsd dword es:[edi], dword [esi]
cmp dword [0x6cb3b8], 0
jne 0x5d1db5
push 0x6cb53c
call sub.kernel32.dll_EnterCriticalSection_1
push 0
push 0
push 4
push 0
push 3
push 0xc0000000
push 0x6ab218
call sub.kernel32.dll_CreateFileA_1
mov dword [esp + 4], eax
lea eax, [esp + 0x13c]
push eax
call sub.kernel32.dll_GetLocalTime
mov edx, dword [esp]
push edx
movzx ecx, word [esp + 0x14c]
push ecx
movzx eax, word [esp + 0x14e]
push eax
movzx edx, word [esp + 0x150]
push edx
movzx ecx, word [esp + 0x152]
push ecx
movzx eax, word [esp + 0x152]
push eax
movzx edx, word [esp + 0x154]
push edx
push 0x6aecb2
lea ecx, [esp + 0x30]
push ecx
call fcn.005cf664
add esp, 0x24
push 2
push 0
push 0
mov eax, dword [esp + 0x10]
push eax
call sub.kernel32.dll_SetFilePointer_1
push 0
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
push ecx
call sub.kernel32.dll_lstrlenA_1
inc eax
push eax
lea eax, [esp + 0x1c]
push eax
mov edx, dword [esp + 0x14]
push edx
call sub.kernel32.dll_WriteFile_1
push 0
lea ecx, [esp + 0x10]
push ecx
push 2
lea eax, [esp + 0x14]
push eax
mov edx, dword [esp + 0x14]
push edx
call sub.kernel32.dll_WriteFile_1
mov ecx, dword [esp + 4]
push ecx
call sub.kernel32.dll_CloseHandle_1
push 0x6cb53c
call sub.kernel32.dll_LeaveCriticalSection_1
add esp, 0x14c
pop edi
pop esi
ret
Function at 0x5d3a9c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcac
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, 0x6abbb7
lea edi, [ebp - 0x248]
mov ecx, 0x82
rep movsd dword es:[edi], dword [esi]
cmp dword [0x6cb42c], 0
je 0x5d3bc9
mov word [ebp - 0x26], 0x109
mov byte [ebp - 0x354], 0x13
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_lstrlenA_1
inc eax
push eax
mov edx, dword [ebp - 4]
push edx
lea ecx, [ebp - 0x353]
push ecx
call fcn.005cc0fc
add esp, 0xc
push 1
mov eax, dword [ebp - 8]
push eax
lea edx, [ebp - 0x24f]
push edx
call fcn.005cc0fc
add esp, 0xc
push 1
mov ecx, dword [ebp - 0xc]
push ecx
lea eax, [ebp - 0x24e]
push eax
call fcn.005cc0fc
add esp, 0xc
push 1
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x24d]
push ecx
call fcn.005cc0fc
add esp, 0xc
push 1
mov eax, dword [ebp + 0xc]
push eax
lea edx, [ebp - 0x24c]
push edx
call fcn.005cc0fc
add esp, 0xc
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x354]
push 6
mov dx, word [ebp - 0x26]
call fcn.005d85c4
mov word [ebp - 0x28], ax
push 2
lea ecx, [ebp - 0x30]
push ecx
lea eax, [ebp - 0x28]
push eax
call fcn.005cc0fc
add esp, 0xc
lea edx, [ebp - 0x2e]
push 1
push edx
mov ecx, dword [ebp - 8]
push ecx
call fcn.005cc0fc
add esp, 0xc
lea eax, [ebp - 0x2d]
push 1
push eax
mov edx, dword [ebp - 0xc]
push edx
call fcn.005cc0fc
add esp, 0xc
lea ecx, [ebp - 0x2c]
push 1
push ecx
mov eax, dword [ebp + 0x10]
push eax
call fcn.005cc0fc
add esp, 0xc
lea edx, [ebp - 0x2b]
push 1
push edx
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005cc0fc
movsx eax, word [ebp - 0x28]
add esp, 0xc
jmp 0x5d3c88
lea eax, [ebp - 0x248]
mov edx, dword [ebp - 4]
call fcn.005d7af8
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea ecx, [ebp - 0x248]
push ecx
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x5d3c05
mov eax, 0xffffff37
jmp 0x5d3c88
xor edx, edx
mov dword [ebp - 0x18], edx
push 0
lea ecx, [ebp - 0x24]
push ecx
push 1
lea eax, [ebp - 0x40]
add eax, dword [ebp - 0x18]
push eax
mov edx, dword [ebp - 0x10]
push edx
call sub.kernel32.dll_ReadFile_1
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0xf
jle 0x5d3c0a
mov ecx, dword [ebp - 0x10]
push ecx
call sub.kernel32.dll_CloseHandle_1
push 0x6aecca
push 1
push 1
push 0
call sub.kernel32.dll_CreateSemaphoreA
mov dword [ebp - 0x1c], eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.005cfcc4
mov dword [ebp - 0x14], eax
push 0
push 1
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_ReleaseSemaphore
mov edx, dword [ebp - 0x1c]
push edx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5d3f20
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
add esp, 0xfffffba4
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
mov esi, 0x6abec0
lea edi, [esp + 0x48]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
cmp dword [0x6cb42c], 0
je 0x5d3ff5
mov word [esp + 0x34], 0x209
mov byte [esp + 0x148], 0x15
mov eax, dword [esp]
push eax
call sub.kernel32.dll_lstrlenA_1
inc eax
push eax
mov edx, dword [esp + 4]
push edx
lea ecx, [esp + 0x151]
push ecx
call fcn.005cc0fc
add esp, 0xc
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_lstrlenA_1
inc eax
push eax
mov edx, dword [esp + 8]
push edx
lea ecx, [esp + 0x255]
push ecx
call fcn.005cc0fc
add esp, 0xc
push 0x106
lea ecx, [esp + 0x358]
lea eax, [esp + 0x14c]
mov dx, word [esp + 0x38]
call fcn.005d85c4
mov word [esp + 0x36], ax
push 2
lea eax, [esp + 0x358]
push eax
lea edx, [esp + 0x3e]
push edx
call fcn.005cc0fc
add esp, 0xc
lea ecx, [esp + 0x356]
push ecx
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_lstrcpyA
movsx eax, word [esp + 0x36]
jmp 0x5d4161
xor edx, edx
mov byte [esp + 0x26], dl
mov byte [esp + 0x25], dl
mov byte [esp + 0x24], dl
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [esp + 0x1c]
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0xffffffff
jne 0x5d4031
mov eax, 0xffffff37
jmp 0x5d4161
push 0
lea edx, [esp + 0x34]
push edx
push 0x10
lea ecx, [esp + 0x44]
push ecx
mov eax, dword [esp + 0x1c]
push eax
call sub.kernel32.dll_ReadFile_1
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x2c], 0
jne 0x5d405e
mov eax, 0xffffff35
jmp 0x5d4161
mov edx, dword [esp + 0xc]
push edx
call sub.kernel32.dll_CloseHandle_1
mov ecx, dword [esp]
push ecx
call sub.kernel32.dll_lstrlenA_1
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], 0x100
jle 0x5d4089
mov eax, 0xffffff2b
jmp 0x5d4161
push 0x6aecca
push 1
push 1
push 0
call sub.kernel32.dll_CreateSemaphoreA
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 1
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x1c]
jg 0x5d4146
mov ecx, dword [esp]
mov al, byte [ecx]
push 0xffffffffffffffff
mov edx, dword [esp + 0x24]
mov byte [0x6cb1f4], al
push edx
call sub.kernel32.dll_WaitForSingleObject
lea ecx, [esp + 0x24]
push ecx
lea eax, [esp + 0x2a]
push eax
push 0x6aecb1
lea ecx, [esp + 0x31]
mov edx, 0x6cb1f4
lea eax, [esp + 0x44]
call fcn.005cfcc4
mov dword [esp + 0x10], eax
push 0
push 1
mov edx, dword [esp + 0x28]
push edx
call sub.kernel32.dll_ReleaseSemaphore
cmp dword [esp + 0x10], 0
je 0x5d4113
mov ecx, dword [esp + 0x20]
push ecx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp + 0x10]
jmp 0x5d4161
mov dl, byte [0x6cb1f4]
lea ecx, [esp + 0x27]
mov byte [esp + 0x27], dl
mov byte [esp + 0x28], 0
push ecx
lea eax, [esp + 0x4c]
push eax
call sub.kernel32.dll_lstrcatA
inc dword [esp]
inc dword [esp + 0x14]
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x1c]
jle 0x5d40b3
lea ecx, [esp + 0x48]
push ecx
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_lstrcpyA
mov edx, dword [esp + 0x20]
push edx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
add esp, 0x45c
pop edi
pop esi
ret
Function at 0x5d58a8
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff680
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea edi, [ebp - 0x228]
mov ecx, 0x82
mov esi, 0x6acc24
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x570]
mov ecx, 0x82
mov esi, 0x6ace2d
mov edx, 0x5c
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.005cf71c
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 4]
inc ecx
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_lstrlenA_1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x18], 0
je 0x5d5914
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x1c]
je 0x5d5922
push 0x6aecf5
mov ecx, dword [ebp - 4]
push ecx
call sub.kernel32.dll_lstrcatA
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x570]
push edx
call sub.kernel32.dll_lstrcpyA
mov ecx, dword [ebp - 0xc]
push ecx
lea eax, [ebp - 0x570]
push eax
call sub.kernel32.dll_lstrcatA
lea edx, [ebp - 0x368]
push edx
lea ecx, [ebp - 0x570]
push ecx
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x5d5964
xor eax, eax
jmp 0x5d5a83
push 0x208
push 0
lea edx, [ebp - 0x228]
push edx
call fcn.005cc0e4
add esp, 0xc
lea ecx, [ebp - 0x33c]
push ecx
lea eax, [ebp - 0x228]
push eax
call sub.kernel32.dll_lstrcpyA
test byte [ebp - 0x368], 0x10
je 0x5d5a0c
push 0x6aecf7
lea edx, [ebp - 0x228]
push edx
call sub.kernel32.dll_lstrcmpiA
test eax, eax
je 0x5d5a60
push 0x6aecf9
lea ecx, [ebp - 0x228]
push ecx
call sub.kernel32.dll_lstrcmpiA
test eax, eax
je 0x5d5a60
lea edi, [ebp - 0x778]
mov esi, 0x6ad036
mov ecx, 0x82
lea eax, [ebp - 0x228]
rep movsd dword es:[edi], dword [esi]
push eax
mov edx, dword [ebp - 4]
push edx
call sub.kernel32.dll_lstrcatA
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.005d58a8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5d5a60
mov eax, dword [ebp - 0x10]
jmp 0x5d5a83
mov esi, 0x6ad23f
lea edi, [ebp - 0x980]
mov ecx, 0x82
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x980]
push edx
call sub.kernel32.dll_lstrcpyA
lea ecx, [ebp - 0x228]
push ecx
lea eax, [ebp - 0x980]
push eax
call sub.kernel32.dll_lstrcatA
lea edx, [ebp - 0x980]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 8]
call fcn.005d53b0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5d5a60
mov eax, dword [ebp - 0x10]
jmp 0x5d5a83
lea edx, [ebp - 0x368]
push edx
mov ecx, dword [ebp - 0x14]
push ecx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x5d5964
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x5d5cb8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb0
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, 0x6ad448
lea edi, [ebp - 0x22c]
mov ecx, 0x82
rep movsd dword es:[edi], dword [esi]
cmp dword [0x6cb42c], 0
je 0x5d5d94
mov word [ebp - 0x22], 0x109
mov byte [ebp - 0x348], 5
push 2
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0x347]
push edx
call fcn.005cc0fc
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
call sub.kernel32.dll_lstrlenA_1
inc eax
push eax
mov eax, dword [ebp - 8]
push eax
lea edx, [ebp - 0x345]
push edx
call fcn.005cc0fc
add esp, 0xc
push 2
lea ecx, [ebp - 0xc]
push ecx
lea eax, [ebp - 0x241]
push eax
call fcn.005cc0fc
add esp, 0xc
lea ecx, [ebp - 0x450]
lea eax, [ebp - 0x348]
push 0x106
mov dx, word [ebp - 0x22]
call fcn.005d85c4
mov word [ebp - 0x24], ax
push 2
lea ecx, [ebp - 0x450]
push ecx
lea eax, [ebp - 0x24]
push eax
call fcn.005cc0fc
add esp, 0xc
lea edx, [ebp - 0x44e]
push 0x104
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.005cc0fc
movsx eax, word [ebp - 0x24]
add esp, 0xc
jmp 0x5d5e66
lea eax, [ebp - 0x22c]
mov edx, dword [ebp - 8]
call fcn.005d7af8
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea ecx, [ebp - 0x22c]
push ecx
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x5d5dd0
mov eax, 0xffffff37
jmp 0x5d5e66
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0x18]
push ecx
call sub.kernel32.dll_SetFilePointer_1
lea eax, [ebp - 0x14]
push 0
push eax
lea edx, [ebp - 0x23c]
push 0x10
push edx
mov ecx, dword [ebp - 0x18]
push ecx
call sub.kernel32.dll_ReadFile_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x5d5e12
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, 0xffffff34
jmp 0x5d5e66
mov edx, dword [ebp - 0x18]
push edx
call sub.kernel32.dll_CloseHandle_1
push 0x6aecca
push 1
push 1
push 0
call sub.kernel32.dll_CreateSemaphoreA
mov dword [ebp - 0x1c], eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.kernel32.dll_WaitForSingleObject
lea edx, [ebp - 0x23c]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.005d0a5c
mov dword [ebp - 0x20], eax
push 0
push 1
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_ReleaseSemaphore
mov edx, dword [ebp - 0x1c]
push edx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x20]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x5d8188
Capabilities:
Get file attributes
Set file attributes

Disassembly:
add esp, 0xfffffff8
mov dword [esp], eax
mov eax, dword [esp]
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [esp + 4], eax
mov edx, dword [esp + 4]
and edx, 0
push edx
mov ecx, dword [esp + 4]
push ecx
call sub.kernel32.dll_SetFileAttributesA
pop ecx
pop edx
ret

Function at 0x5d85c4
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 0xc], ecx
mov word [ebp - 6], dx
mov dword [ebp - 4], eax
mov ax, word [ebp - 6]
mov word [ebp - 0x1a], ax
push 0x6cb3fc
call sub.kernel32.dll_EnterCriticalSection_1
push 2
lea edx, [ebp - 0x1a]
push edx
lea ecx, [ebp - 0x12]
push ecx
call fcn.005cc0fc
add esp, 0xc
lea eax, [ebp - 0x12]
mov edx, dword [0x6cb398]
push 0
push 2
push eax
push edx
call sub.Ws2_32.dll_send
inc eax
jne 0x5d863c
call sub.Ws2_32.dll_WSAGetLastError
mov dword [0x6cb39c], eax
mov edx, 0x6aed06
mov eax, 0x6aed22
call fcn.005d93b8
push 0x6cb3fc
call sub.kernel32.dll_LeaveCriticalSection_1
mov eax, 0xfffffbc0
jmp 0x5d8781
push 0
push 2
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [0x6cb398]
push ecx
call sub.Ws2_32.dll_recv
inc eax
sete al
and eax, 1
mov dword [ebp - 0x18], eax
test eax, eax
je 0x5d868b
call sub.Ws2_32.dll_WSAGetLastError
mov dword [0x6cb39c], eax
mov edx, 0x6aed06
mov eax, 0x6aed2e
call fcn.005d93b8
push 0x6cb3fc
call sub.kernel32.dll_LeaveCriticalSection_1
mov eax, 0xfffffbc0
jmp 0x5d8781
push 2
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0xe]
push ecx
call fcn.005cc0fc
mov ax, word [ebp - 0xe]
add esp, 0xc
cmp ax, word [ebp - 6]
je 0x5d86bb
push 0x6cb3fc
call sub.kernel32.dll_LeaveCriticalSection_1
mov eax, 0xfffff81a
jmp 0x5d8781
push 0
movsx edx, word [ebp - 6]
push edx
mov ecx, dword [ebp - 4]
push ecx
mov eax, dword [0x6cb398]
push eax
call sub.Ws2_32.dll_send
inc eax
jne 0x5d8701
call sub.Ws2_32.dll_WSAGetLastError
mov dword [0x6cb39c], eax
mov edx, 0x6aed06
mov eax, 0x6aed22
call fcn.005d93b8
push 0x6cb3fc
call sub.kernel32.dll_LeaveCriticalSection_1
mov eax, 0xfffffbc0
jmp 0x5d8781
push 0
movsx edx, word [ebp + 8]
push edx
mov ecx, dword [ebp - 0xc]
push ecx
mov eax, dword [0x6cb398]
push eax
call sub.Ws2_32.dll_recv
inc eax
sete dl
and edx, 1
mov dword [ebp - 0x18], edx
test edx, edx
je 0x5d874f
call sub.Ws2_32.dll_WSAGetLastError
mov dword [0x6cb39c], eax
mov edx, 0x6aed06
mov eax, 0x6aed2e
call fcn.005d93b8
push 0x6cb3fc
call sub.kernel32.dll_LeaveCriticalSection_1
mov eax, 0xfffffbc0
jmp 0x5d8781
push 0x6cb3fc
call sub.kernel32.dll_LeaveCriticalSection_1
cmp dword [ebp - 0x18], 0xffffffff
jne 0x5d877f
call sub.Ws2_32.dll_WSAGetLastError
mov dword [0x6cb39c], eax
mov edx, 0x6aed06
mov eax, 0x6aed3a
call fcn.005d93b8
mov eax, 0xfffffbc0
jmp 0x5d8781
xor eax, eax
mov esp, ebp
pop ebp
ret 4