joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407190
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x45b99b
mov eax, dword fs:[0]
push eax
sub esp, 0x88c
mov eax, dword [0x4751f0]
xor eax, esp
mov dword [esp + 0x888], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4751f0]
xor eax, esp
push eax
lea eax, [esp + 0x8a0]
mov dword fs:[0], eax
mov esi, dword [esp + 0x8b0]
mov ebp, dword [esp + 0x8b4]
push 0x208
xor edi, edi
lea eax, [esp + 0x288]
push edi
push eax
call fcn.004449b0
push 0x208
lea ecx, [esp + 0x6a4]
push edi
push ecx
call fcn.004449b0
add esp, 0x18
push esi
lea edx, [esp + 0x288]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x4602fc
lea eax, [esp + 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x288]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x407389
lea ebx, [edi + 7]
lea esp, [esp]
test byte [esp + 0x34], 0x10
je 0x40728d
cmp word [esp + 0x60], 0x2e
je 0x40728d
lea eax, [esp + 0x60]
push eax
push esi
lea ecx, [esp + 0x69c]
push 0x45f83c
push ecx
call fcn.00401040
lea edx, [esp + 0x6a4]
push ebp
push edx
call fcn.00407190
add esp, 0x18
jmp 0x407366
push 0x4602f8
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x407366
push 0x4602f0
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x407366
push 0x208
lea edx, [esp + 0x490]
push edi
push edx
call fcn.004449b0
lea eax, [esp + 0x6c]
push eax
push esi
lea ecx, [esp + 0x4a0]
push 0x45f83c
push ecx
call fcn.00401040
add esp, 0x1c
xor edx, edx
lea eax, [esp + 0x48c]
mov word [esp + 0x1c], dx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x407304
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x490]
push eax
lea ecx, [esp + 0x20]
call fcn.00403400
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
mov dword [esp + 0x8ac], edi
call fcn.00406a50
cmp dword [esp + 0x30], 8
mov dword [esp + 0x8a8], 0xffffffff
jb 0x407357
mov edx, dword [esp + 0x1c]
push edx
call fcn.0044475c
add esp, 4
xor eax, eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], ax
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407250
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x8a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x888]
xor ecx, esp
call fcn.00444b03
add esp, 0x898
ret
Function at 0x407bb0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x407c0c
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp]
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret

Function at 0x408470
Capabilities:
Modify service

Disassembly:
xor eax, eax
cmp byte [esp + 8], al
push ebp
sete al
push edi
push 0xf003f
push 0
push 0
add eax, 2
mov ebp, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jbe 0x4084e4
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x18], 0x10
jb 0x4084a4
mov eax, dword [eax + 4]
jmp 0x4084a7
add eax, 4
push ebx
push esi
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jbe 0x4084df
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
push ebp
push 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
pop ebp
ret
Function at 0x409bb0
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x45bd28
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4751f0]
xor eax, esp
mov dword [esp + 0x54], eax
push ebp
push esi
push edi
mov eax, dword [0x4751f0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x78]
mov ebp, dword [esp + 0x80]
xor eax, eax
mov word [esp + 0x4c], ax
mov eax, ecx
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
lea edi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x409c10
sub eax, edi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x50]
call fcn.00403400
push 1
push 0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x1c], 0x3a
call fcn.004019c0
mov edi, 8
cmp eax, 0xffffffff
je 0x409d35
inc eax
push eax
push 0
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x54]
call fcn.004041f0
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x409c7a
lea eax, [esp + 0x30]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x409d22
mov edx, dword [esp + 0x14]
fild dword [esp + 0x14]
test edx, edx
jge 0x409caa
fadd qword [0x4609b8]
mov eax, dword [esp + 0x18]
fmul qword [0x4609b0]
fild dword [esp + 0x18]
test eax, eax
jge 0x409cc2
fadd qword [0x4609b8]
fmul qword [0x4609a8]
sub esp, 8
faddp st(1)
fstp qword [esp]
push str._.1f
push ebp
call fcn.00401040
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
add esp, 0x10
mov dword [esi], ecx
mov dword [esi + 4], edx
cmp dword [esp + 0x44], edi
jb 0x409cfe
mov eax, dword [esp + 0x30]
push eax
call fcn.0044475c
add esp, 4
xor ecx, ecx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], cx
cmp dword [esp + 0x60], edi
jb 0x409d51
mov edx, dword [esp + 0x4c]
push edx
jmp 0x409d49
cmp dword [esp + 0x44], edi
jb 0x409d35
mov eax, dword [esp + 0x30]
push eax
call fcn.0044475c
add esp, 4
xor eax, eax
xor ecx, ecx
mov dword [esi], ecx
mov dword [esi + 4], eax
cmp dword [esp + 0x60], edi
jb 0x409d51
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0044475c
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00444b03
add esp, 0x64
ret 0xc

Function at 0x40b310
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov byte [esi + 0x68], al
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov eax, dword [esp + 8]
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
cmp dword [eax + 0x18], 0x10
mov ecx, dword [eax + 0x14]
jb 0x40b358
mov eax, dword [eax + 4]
push ecx
push eax
mov ecx, esi
call fcn.0040af50
mov eax, esi
pop esi
ret 4
push ecx
add eax, 4
push eax
mov ecx, esi
call fcn.0040af50
mov eax, esi
pop esi
ret 4
Function at 0x40ca20
Capabilities:
Create thread

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
push 0
mov esi, ecx
push esi
push 0x4073c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
mov ecx, esi
call fcn.0041bbba
pop esi
pop ecx
ret 0x10

Function at 0x40cc30
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x4751f0]
xor eax, esp
mov dword [esp + 0x9c], eax
push esi
push 0x98
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004449b0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x9c
call esi
test eax, eax
jne 0x40cc9d
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x9c
call esi
test eax, eax
jne 0x40cc9d
xor al, al
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00444b03
add esp, 0xa0
ret
cmp dword [esp + 8], 5
jne 0x40ccf2
cmp dword [esp + 0xc], 1
jne 0x40ccf2
lea eax, [esp + 0x18]
push 0x460f84
push eax
call fcn.00446250
add esp, 8
test eax, eax
jne 0x40ccd7
lea ecx, [esp + 0x18]
push 0x460f80
push ecx
call fcn.00446250
add esp, 8
test eax, eax
je 0x40ccf2
mov eax, 1
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00444b03
add esp, 0xa0
ret
mov ecx, dword [esp + 0xa0]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00444b03
add esp, 0xa0
ret

Function at 0x40cd10
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push 0x460f88
push eax
call fcn.00446766
mov esi, eax
add esp, 8
test esi, esi
je 0x40cd6b
mov ecx, dword [esp + 0xc]
push edi
push 0
push ecx
push esi
call fcn.0044661d
push esi
push 1
lea edx, [esp + 0x1c]
push 4
push edx
mov dword [esp + 0x24], 0
call fcn.00446576
push esi
mov edi, eax
call fcn.00446021
add esp, 0x20
cmp edi, 1
pop edi
jne 0x40cd6b
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov al, 1
pop esi
pop ecx
ret
xor al, al
pop esi
pop ecx
ret
Function at 0x40cd70
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xfffffffffffffffe
push 0x46fc08
push 0x446850
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4751f0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
xor ebx, ebx
mov byte [ebp], bl
push 0x103
push ebx
lea eax, [ebp + 1]
push eax
call fcn.004449b0
add esp, 0xc
push ebx
push 0x25
lea ecx, [ebp]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x40cde3
xor al, al
jmp 0x40ce5b
mov dword [ebp - 0x1c], 5
push str._sfc_os.dll
push 0x104
lea edx, [ebp]
push edx
call fcn.004467d0
add esp, 0xc
test eax, eax
jne 0x40cddf
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x40ce53
push 5
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40ce4c
mov dword [ebp - 4], ebx
push 0xffffffffffffffff
push edi
push ebx
call eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x40ce4c
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
cmp dword [ebp - 0x1c], eax
sete al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.00444b03
add ebp, 0x108
mov esp, ebp
pop ebp
ret

Function at 0x40ce80
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebp
push esi
xor ebp, ebp
push ebp
push ebp
push 3
push ebp
push ebp
push 0xc0000000
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ceb9
push ebp
push ebp
push 3
push ebp
push 1
push 0xc0000000
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x40cefd
mov eax, dword [esp + 0x18]
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40cef1
mov ecx, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x1c]
push eax
push esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, eax
cmp esi, 0xffffffff
je 0x40cefd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
test ebp, ebp
pop ebp
setne al
pop ebx
add esp, 8
ret
Function at 0x40cf10
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [ebx + 0x3c]
movzx ecx, word [eax + ebx + 0x14]
add eax, ebx
push ebp
movzx ebp, word [eax + 6]
push esi
xor edx, edx
xor esi, esi
push edi
lea edi, [ecx + eax + 0x18]
cmp dx, bp
je 0x40cf6f
nop
movzx eax, si
lea eax, [eax + eax*4]
mov ecx, str.INIT
lea eax, [edi + eax*8]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40cf60
test dl, dl
je 0x40cf5c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40cf60
add eax, 2
add ecx, 2
test dl, dl
jne 0x40cf40
xor eax, eax
jmp 0x40cf65
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40cf76
inc esi
cmp si, bp
jne 0x40cf30
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
movzx eax, si
lea ecx, [eax + eax*4]
mov edx, dword [edi + ecx*8 + 0x10]
lea eax, [edi + ecx*8]
mov eax, dword [eax + 0x14]
add eax, ebx
xor ecx, ecx
mov byte [esp + 0xc], 0xff
mov byte [esp + 0xd], 0xd6
mov byte [esp + 0xe], 0xc7
mov byte [esp + 0xf], 5
test edx, edx
je 0x40cf6f
mov esi, dword [esp + 0xc]
cmp dword [ecx + eax], esi
je 0x40cfb7
inc ecx
cmp ecx, edx
jne 0x40cfa6
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
pop edi
pop esi
lea eax, [ecx + eax + 8]
pop ebp
pop ecx
ret

Function at 0x40cfc0
Capabilities:
Get file size
Parse pe header

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push 0xc0000000
xor bl, bl
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov byte [esp + 0x2b], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40d0a6
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 4
push esi
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
mov dword [esp + 0x1c], ebx
cmp ebx, esi
je 0x40d093
push esi
push esi
push esi
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x40d08c
mov ecx, 0x5a4d
cmp word [esi], cx
jne 0x40d085
mov edx, dword [esi + 0x3c]
cmp dword [esi + edx], 0x4550
jne 0x40d085
mov ebx, dword [sym.imp.imagehlp.dll_CheckSumMappedFile]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push edi
push esi
call ebx
test eax, eax
je 0x40d081
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x14], ecx
je 0x40d081
lea edx, [esp + 0x18]
push edx
mov dword [eax + 0x58], ecx
lea eax, [esp + 0x18]
push eax
push edi
push esi
call ebx
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x18]
sete byte [esp + 0x13]
mov ebx, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x10
ret
Function at 0x40d0b0
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ecx
mov eax, dword [0x4742b0]
push ebp
mov ebp, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x40d0c8
mov dword [ebp], eax
mov al, 1
pop ebp
pop ecx
ret
mov eax, dword [esp + 0xc]
push esi
push 0
push 0
push 3
push 0
push 1
push 0x120089
push eax
mov byte [esp + 0x27], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40d162
push edi
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
je 0x40d15a
push ebx
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x40d152
mov ecx, 0x5a4d
cmp word [ebx], cx
jne 0x40d14b
mov edx, dword [ebx + 0x3c]
cmp dword [ebx + edx], 0x4550
jne 0x40d14b
call fcn.0040cf10
test eax, eax
je 0x40d14b
sub eax, ebx
mov dword [ebp], eax
mov dword [0x4742b0], eax
mov byte [esp + 0x13], 1
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, byte [esp + 0xb]
pop esi
pop ebp
pop ecx
ret

Function at 0x40d1f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x45c2a6
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x4751f0]
xor eax, esp
mov dword [esp + 0x13c], eax
push ebx
mov eax, dword [0x4751f0]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [0x4742e0], ebx
jne 0x40d31f
push 0x103
lea eax, [esp + 0x45]
push ebx
push eax
mov byte [esp + 0x4c], bl
call fcn.004449b0
add esp, 0xc
push ebx
push 0x25
lea ecx, [esp + 0x48]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x40d267
xor al, al
jmp 0x40d330
lea eax, [esp + 0x40]
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xc], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40d280
sub eax, edx
push eax
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x10]
call fcn.00403320
push str.drivers_tcpip.sys
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x15c], ebx
call fcn.004084f0
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x4742cc
mov byte [esp + 0x15c], 1
call fcn.00402d60
cmp dword [esp + 0x3c], 0x10
jb 0x40d2e0
mov edx, dword [esp + 0x28]
push edx
call fcn.0044475c
add esp, 4
cmp dword [esp + 0x20], 0x10
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
mov dword [esp + 0x150], 0xffffffff
jb 0x40d30f
mov eax, dword [esp + 0xc]
push eax
call fcn.0044475c
add esp, 4
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xc], bl
push 0xffffffffffffffff
push ebx
push 0x4742cc
mov ecx, edi
call fcn.00402d60
mov al, 1
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.00444b03
add esp, 0x14c
ret
Function at 0x40d660
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x45c350
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4751f0]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4751f0]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov eax, dword [0x4742b0]
cmp eax, 0xffffffff
je 0x40d6d6
xor esi, esi
mov ebx, eax
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], esi
mov byte [esp + 0x18], 0
lea edi, [esp + 0x14]
mov dword [esp + 0x74], esi
call fcn.0040d1f0
test al, al
jne 0x40d6dd
cmp dword [esp + 0x2c], 0x10
jb 0x40d6d6
mov eax, dword [esp + 0x18]
push eax
call fcn.0044475c
add esp, 4
xor al, al
jmp 0x40d820
xor ecx, ecx
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], esi
mov word [esp + 0x50], cx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x7c], 1
call fcn.0040d570
mov ecx, dword [esp + 0x58]
add esp, 8
cmp dword [esp + 0x64], 8
jae 0x40d716
lea ecx, [esp + 0x50]
call fcn.0040cd70
test al, al
jne 0x40d743
lea ecx, [esp + 0x4c]
call fcn.00402300
cmp dword [esp + 0x2c], 0x10
jb 0x40d6d6
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0044475c
add esp, 4
xor al, al
jmp 0x40d820
push str._backup
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.004084f0
mov ecx, dword [esp + 0x40]
mov ebp, 0x10
add esp, 0xc
cmp dword [esp + 0x48], ebp
jae 0x40d76d
lea ecx, [esp + 0x34]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x2c], ebp
jae 0x40d77b
lea eax, [esp + 0x18]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push ecx
push eax
call esi
mov edi, dword [esp + 0x34]
cmp dword [esp + 0x48], ebp
jae 0x40d794
lea edi, [esp + 0x34]
mov ecx, dword [esp + 0x7c]
push ecx
push ebx
call fcn.0040ce80
add esp, 8
test al, al
jne 0x40d7c5
lea ecx, [esp + 0x30]
call fcn.00402290
lea ecx, [esp + 0x4c]
call fcn.00402300
lea ecx, [esp + 0x14]
call fcn.00402290
xor al, al
jmp 0x40d820
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebp
jae 0x40d7d3
lea eax, [esp + 0x34]
call fcn.0040cfc0
test al, al
je 0x40d7a6
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x2c], ebp
jae 0x40d7ea
lea ecx, [esp + 0x18]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebp
jae 0x40d7f8
lea eax, [esp + 0x34]
push 0
push ecx
push eax
call esi
test eax, eax
lea ecx, [esp + 0x30]
setne bl
call fcn.00402290
lea ecx, [esp + 0x4c]
call fcn.00402300
lea ecx, [esp + 0x14]
call fcn.00402290
mov al, bl
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00444b03
add esp, 0x64
ret 4
Function at 0x40f190
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push edi
xor edi, edi
mov ebp, ecx
cmp ebx, edi
jne 0x40f1b1
push edi
push edi
push edi
push 2
call fcn.004119b0
pop edi
pop ebp
xor al, al
pop ebx
ret 8
push esi
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x40f1d1
lea esp, [esp]
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x40]
push 1
call edx
cmp esi, edi
jne 0x40f1c0
push 2
or eax, 0xffffffff
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x1c], edi
push edi
push ebx
mov dword [ebp + 8], eax
mov dword [ebp + 4], eax
call fcn.0044661d
push ebx
call fcn.00447022
push 0
push 0
push ebx
mov edi, eax
call fcn.0044661d
add esp, 0x1c
test edi, edi
jg 0x40f21a
push 0
push 0
push 0
push 0xc
mov ecx, ebp
call fcn.004119b0
pop esi
pop edi
pop ebp
xor al, al
pop ebx
ret 8
lea eax, [edi + 1]
push eax
call fcn.00419974
push ebx
push 1
mov esi, eax
push edi
push esi
mov byte [esi], 0
call fcn.00446576
add esp, 0x14
cmp eax, 1
je 0x40f25b
push esi
call fcn.00444af8
add esp, 4
push 0
push 0
push 0
push 2
mov ecx, ebp
call fcn.004119b0
pop esi
pop edi
pop ebp
xor al, al
pop ebx
ret 8
mov byte [esi + edi], 0
cmp byte [esi], 0
mov eax, esi
mov ecx, esi
je 0x40f284
mov dl, byte [eax]
cmp dl, 0xd
jne 0x40f27b
mov byte [ecx], 0xa
inc eax
inc ecx
cmp byte [eax], 0xa
jne 0x40f27f
jmp 0x40f27e
mov byte [ecx], dl
inc ecx
inc eax
cmp byte [eax], 0
jne 0x40f268
mov eax, dword [esp + 0x18]
push eax
mov byte [ecx], 0
mov edx, dword [ebp]
mov edx, dword [edx + 8]
push 0
push esi
mov ecx, ebp
call edx
push esi
call fcn.00444af8
add esp, 4
pop esi
xor eax, eax
cmp byte [ebp + 0x44], al
pop edi
pop ebp
sete al
pop ebx
ret 8