joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40218b
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
push ebx
mov edx, 0xa
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x402192
call fcn.0040e990
mov edx, dword [esp + 0x34]
lea ecx, [esp]
call fcn.00404000
mov edx, dword [esp + 0x38]
lea ecx, [esp + 4]
call fcn.00404000
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 8]
call fcn.00404000
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0xc]
call fcn.00404000
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x10]
call fcn.00404000
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x14]
call fcn.00404000
push dword [esp]
mov edx, 0x43c01e
pop ecx
call fcn.00404180
jne 0x402229
push dword [esp + 4]
mov edx, 0x43c01e
pop ecx
call fcn.00404180
jne 0x402229
mov ebx, dword [esp + 0x48]
and ebx, ebx
jl 0x402229
mov ebx, dword [esp + 0x54]
and ebx, ebx
jl 0x402229
mov eax, 1
jmp 0x40222b
xor eax, eax
and eax, eax
je 0x402233
xor eax, eax
jmp 0x402238
mov eax, 1
and eax, eax
je 0x402243
xor eax, eax
jmp 0x40237c
push 0
call sub.OLE32.DLL_CoInitialize
lea eax, [esp + 0x18]
push eax
mov ebp, 0x43c770
push ebp
push 1
push 0
mov ebp, 0x43c760
push ebp
call sub.OLE32.DLL_CoCreateInstance
mov ebx, eax
and ebx, ebx
jne 0x40236f
sub esp, 4
push dword [esp + 4]
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
push eax
pop eax
add esp, 4
sub esp, 4
push dword [esp + 0xc]
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
push eax
pop eax
add esp, 4
sub esp, 4
push dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
push eax
pop eax
add esp, 4
sub esp, 4
push dword [esp + 0x10]
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
push eax
pop eax
add esp, 4
push dword [esp + 0x48]
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 0x3c]
push dword [esp + 0x4c]
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 0x34]
sub esp, 4
push dword [esp + 0x58]
push dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [eax]
call dword [eax + 0x44]
push eax
pop eax
add esp, 4
lea eax, [esp + 0x1c]
push eax
mov ebp, 0x43c780
push ebp
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax]
mov ebx, eax
and ebx, ebx
jne 0x402365
sub esp, 4
push 1
push dword [esp + 0xc]
call fcn.0040e9f0
push eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
push eax
push dword [esp + 4]
call fcn.0040ea60
pop eax
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 1
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 8]
jmp 0x402365
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 8]
call sub.OLE32.DLL_CoUninitialize
mov eax, dword [esp + 0x24]
jmp 0x40237c
push dword [esp]
call fcn.0040ea80
push dword [esp + 8]
call fcn.0040ea80
push dword [esp + 0x10]
call fcn.0040ea80
push dword [esp + 0x14]
call fcn.0040ea80
push dword [esp + 4]
call fcn.0040ea80
push dword [esp + 0xc]
call fcn.0040ea80
add esp, 0x28
pop ebx
pop ebp
ret 0x24
Function at 0x404f8e
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x404fe3
push dword [esp + 0x10]
push 0x404f0d
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x43e0a8]
test esi, esi
je 0x40503c
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x404fdb
cmp byte [esi + 0x10], 0
je 0x404fdb
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x404fb7
jmp 0x40503c
mov esi, dword [0x43e0a8]
test esi, esi
je 0x40503c
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x405035
cmp byte [esi + 0x11], 0
je 0x405011
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x405028
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x43e0a8
call fcn.0040e721
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x404ff0
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x405e4c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x405ed6
cmp dword [ebp + 0xc], edi
je 0x405ed6
push esi
push 0x28
push 8
push dword [0x43e01c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
or dword [esi + 4], 0xffffffff
mov dword [esi], edi
call sub.MSVCRT.dll__strdup
push dword [ebp + 0xc]
mov dword [esi + 8], eax
call sub.MSVCRT.dll__strdup
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
pop ecx
pop ecx
test al, 1
je 0x405ec5
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x405fda
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x405ebd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x405ed5
push esi
call fcn.004061f7
jmp 0x405ed4
push esi
call fcn.00405eef
push esi
mov edi, eax
call fcn.004061f7
pop ecx
pop ecx
pop esi
mov eax, edi
pop edi
pop ebp
ret 0xc

Function at 0x405eef
Capabilities:
Delete file

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov eax, dword [esi + 8]
mov ebp, dword [esi + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebp
call fcn.0040f340
mov edi, eax
test edi, edi
je 0x405fbf
push dword [esp + 0x18]
call fcn.004344f0
push ebx
push pe_nt_image_headers32
push 2
push ebx
push 1
push 0xc0000000
push ebp
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x405faf
test byte [esi + 0x1c], 2
mov dword [esi + 0x10], ebp
jne 0x405f58
push 1
push 0x34
push edi
call fcn.0040f3d0
add esp, 0xc
push dword [esp + 0x18]
push 0x2712
push edi
call fcn.0040f3d0
push 0x405fe9
push 0x4e2b
push edi
call fcn.0040f3d0
push esi
push 0x2711
push edi
call fcn.0040f3d0
push edi
call fcn.0040f3c0
add esp, 0x28
test eax, eax
jne 0x405f9a
xor ebx, ebx
mov dword [esi + 4], 0xfffffffe
inc ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x405faf
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [esp + 0x18]
call fcn.004344e0
push edi
call fcn.0040f320
pop ecx
cmp dword [esi + 4], 0xfffffffe
je 0x405fd2
cmp dword [esi + 4], 0xfffffffc
je 0x405fd2
mov dword [esi + 4], 0xfffffffd
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x4062dc
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push edi
xor edi, edi
inc edi
cmp dword [0x43e0c0], 0
jne 0x406308
push 0x40622b
push 0x10
push 0x2c
mov dword [0x43e0c0], edi
call fcn.0040e0ec
mov dword [0x43e0bc], eax
cmp word [0x43e0b4], 0
jne 0x4063a4
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x406333
mov word [0x43e0b4], di
jmp 0x40633b
xor eax, eax
mov word [0x43e0b4], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x43e0d0], eax
test eax, eax
je 0x4063a4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x435040
push eax
call esi
push 0x43504c
push dword [0x43e0d0]
mov dword [0x43e0c4], eax
call esi
push str.getnameinfo
push dword [0x43e0d0]
mov dword [0x43e0c8], eax
call esi
cmp dword [0x43e0c4], 0
mov dword [0x43e0cc], eax
pop esi
je 0x4063a4
cmp dword [0x43e0c8], 0
je 0x4063a4
test eax, eax
je 0x4063a4
mov dword [0x43e0b8], edi
movsx eax, word [0x43e0b4]
pop edi
add esp, 0x190
ret
Function at 0x407000
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
lea eax, [ebp - 0x64]
push esi
push 0x40
push 0
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
cmp esi, 6
jne 0x40702e
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
jmp 0x407089
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x407087
sub esi, 0
je 0x40707f
dec esi
je 0x407077
dec esi
je 0x40706f
dec esi
je 0x407067
dec esi
je 0x40705f
dec esi
jne 0x407087
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
jmp 0x40708b
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
jmp 0x40708b
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
jmp 0x40708b
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
jmp 0x40708b
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x50]
jmp 0x40708b
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x58]
jmp 0x40708b
xor eax, eax
xor edx, edx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4070d9
Capabilities:
Check os version

Disassembly:
sub esp, 0x24c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x94
push eax
mov esi, 0xc8
xor ebx, ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x407231
mov eax, dword [esp + 0x20]
dec eax
je 0x407214
dec eax
jne 0x407231
lea eax, [esp + 0x140]
xor ebp, ebp
push eax
call fcn.00407092
pop ecx
test eax, eax
je 0x407145
mov ebx, dword [esp + 0x144]
mov edi, dword [esp + 0x148]
cmp byte [esp + 0x25a], 1
jmp 0x407172
lea eax, [esp + 0xa4]
mov dword [esp + 0xa4], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x407177
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x13e], 1
jne 0x407177
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x407210
dec ebx
je 0x40720c
dec ebx
je 0x4071eb
dec ebx
je 0x4071a5
sub ebx, 4
jne 0x407231
test edi, edi
jne 0x407231
push 0x6e
jmp 0x407230
sub edi, 0
je 0x4071dd
dec edi
je 0x4071cf
dec edi
je 0x4071c1
dec edi
jne 0x407231
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x407231
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x407231
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x407231
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x407231
sub edi, 0
je 0x407208
dec edi
je 0x407204
dec edi
jne 0x407231
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x407231
push 0x3c
jmp 0x407230
push 0x32
jmp 0x407230
push 0x14
jmp 0x407230
push 5
jmp 0x407230
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40722e
cmp eax, 0xa
je 0x40722a
cmp eax, 0x5a
jne 0x407231
push 0x28
jmp 0x407230
push 0x1e
jmp 0x407230
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret
Function at 0x408304
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov ebx, eax
test ebx, ebx
je 0x40837e
push 9
call esi
test al, al
jns 0x40837e
push 0x11
call esi
test al, al
js 0x40837e
push 0x10
call esi
test al, al
js 0x40837e
push 0x12
call esi
test al, al
js 0x40837e
push 5
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [ebp - 0xc]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x40837e
push eax
push eax
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x40837e
xor eax, eax
jmp 0x4083ff
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4083a6
push 0x11
call esi
test al, al
js 0x40839e
push 0x10
call esi
test al, al
js 0x40839e
push 0x12
call esi
test al, al
jns 0x4083a6
push 1
push edi
call fcn.00408407
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test ebx, ebx
je 0x4083bc
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x4083fc
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x4083fc
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x4083fc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x4083fc
lea eax, [esi - 1]
push eax
push dword [0x43e390]
call fcn.0040e019
test eax, eax
je 0x4083fc
mov eax, dword [eax + 8]
jmp 0x4083fe
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409a2f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x43e1bc], eax
test eax, eax
je 0x409a5f
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x43e1b8], eax
lea eax, [ebp - 0x1c]
mov dword [0x43e1c0], 1
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x409aaf
cmp dword [ebp - 0xc], 1
jne 0x409a8d
and dword [0x43e1c0], 0
jmp 0x409ac7
cmp dword [ebp - 0xc], 2
jne 0x409aaf
cmp dword [ebp - 0x18], 5
jb 0x409a84
jne 0x409aaf
mov eax, dword [ebp - 0x14]
neg eax
sbb eax, eax
and eax, dword [0x43e1c0]
mov dword [0x43e1c0], eax
jmp 0x409ab4
mov eax, dword [0x43e1c0]
test eax, eax
je 0x409ac7
call fcn.0040989a
neg eax
sbb eax, eax
and dword [0x43e1c0], eax
lea esp, [ebp + 0x78]
pop ebp
ret

Function at 0x40ac20
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x40ac52
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40ac4d
cmp dword [esp + 0xc], esi
je 0x40ac69
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret
Function at 0x40cf2c
Capabilities:
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x248
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x40cfb6
cmp byte [eax], 0
je 0x40cfb6
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 0
push eax
call sub.MSVCRT.dll_strlen
mov ecx, eax
add esp, 0x10
lea eax, [ebp + ecx - 0x109]
cmp ecx, 2
je 0x40cf80
cmp ecx, 3
jne 0x40cfc2
cmp byte [ebp - 0x107], 0x3a
jne 0x40cfc2
cmp ecx, 2
jne 0x40cfa1
lea eax, [ebp - 0x108]
push 0x435318
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x40cfb6
push 0xfffffffffffffffe
pop edi
mov eax, edi
mov edx, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov cl, byte [eax]
cmp cl, 0x5c
je 0x40cfce
cmp cl, 0x2f
jne 0x40cfd4
mov byte [eax], 0
dec eax
jmp 0x40cfc2
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, esi
je 0x40d011
test byte [ebp - 0x248], 0x10
je 0x40cffa
push 0xfffffffffffffffe
pop edi
jmp 0x40d008
mov esi, dword [ebp - 0x22c]
xor edi, edi
or edi, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40cfb6
mov cl, byte [ebp - 0x108]
mov al, byte [ebp - 0x107]
cmp cl, 0x5c
jne 0x40d026
cmp al, 0x5c
je 0x40d02f
cmp cl, 0x2e
jne 0x40cfb6
cmp al, cl
jne 0x40cfb6
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, esi
je 0x40cfa1
test al, 0x10
je 0x40cfb6
jmp 0x40cfb3

Function at 0x40d051
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x40d0c2
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 0
push eax
call sub.MSVCRT.dll_strlen
lea ecx, [ebp - 0x108]
add esp, 0x10
add eax, ecx
jmp 0x40d0a4
mov cl, byte [eax - 1]
cmp cl, 0x20
je 0x40d0a3
cmp cl, 0x5c
je 0x40d0a3
cmp cl, 0x2f
jne 0x40d0ae
dec eax
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x40d091
mov byte [eax], 0
lea eax, [ebp - 0x108]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x40d0c4
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40d1cc
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x40d1f5
test byte [esp + 8], 2
je 0x40d1e9
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40d1f7
xor eax, eax
ret 8

Function at 0x40d290
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x40d2cc
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4
Function at 0x40d6d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x43e4dc]
call fcn.0040e019
mov esi, eax
test esi, esi
je 0x40d74f
cmp dword [esi + 4], 0
je 0x40d720
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.0040dc20
test eax, eax
je 0x40d714
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d75a
cmp dword [esp + 8], 0
je 0x40d75a
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4
Function at 0x40d770
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push 0x1000
push 0
push dword [0x43e01c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [esp + 8], ecx
test ecx, ecx
je 0x40d91d
mov ax, word [esp]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], 0x1000
mov dword [esp + 0x1c], 0x7ff
cmp ebp, 0xffffffff
je 0x40d7c4
test ebp, ebp
je 0x40d87d
dec ebp
cmp dword [ebx + 4], 0
je 0x40d7dd
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.0040dc20
mov dword [esp + 0x14], eax
jmp 0x40d7f7
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp eax, 2
mov ax, word [esp + 0x10]
jne 0x40d87d
test ax, ax
je 0x40d811
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov esi, edi
mov edx, dword [esp + 0x1c]
sub esi, ecx
sar esi, 1
cmp esi, edx
jle 0x40d858
mov eax, dword [esp + 0x20]
add edx, 0x800
add eax, 0x1000
mov dword [esp + 0x1c], edx
push eax
push ecx
push 8
push dword [0x43e01c]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
mov ax, word [esp + 0x10]
mov dword [esp + 0x18], ecx
lea edi, [ecx + esi*2]
test ax, ax
je 0x40d87d
cmp dword [esp + 0x30], 0
jne 0x40d7b6
cmp ax, 0xd
je 0x40d884
cmp ax, 0xa
jne 0x40d7b6
sub edi, 2
jmp 0x40d8fc
cmp dword [esp + 0x30], 0
jne 0x40d8fc
cmp ax, 0xa
jne 0x40d88f
sub edi, 2
jmp 0x40d8fc
cmp ax, 0xd
jne 0x40d8fc
sub edi, 2
cmp dword [ebx + 4], 0
je 0x40d8b1
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.0040dc20
mov dword [esp + 0x14], eax
jmp 0x40d8c7
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x10], 0xa
je 0x40d8fc
cmp dword [ebx + 4], 0
je 0x40d8db
add dword [ebx + 0xc], 2
jmp 0x40d8fc
push 1
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x38]
mov ecx, edi
sub ecx, dword [esp + 0x18]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
xor eax, eax
add esp, 0x18
ret 0x10
Function at 0x40d930
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x43e01c]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x40da80
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 3]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, edx
cmp edi, 0xffffffff
je 0x40d97c
test edi, edi
je 0x40d9ed
dec edi
push esi
push ebp
call fcn.0040dd40
mov dword [esp + 0x20], eax
test eax, eax
jne 0x40d98f
xor cl, cl
jmp 0x40d991
mov cl, byte [esi]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x14]
mov ebx, esi
sub ebx, edx
mov byte [esp + 0x13], cl
add eax, 0xfffffffb
cmp ebx, eax
jle 0x40d9d4
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x43e01c]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [ebx + edx]
mov eax, dword [esp + 0x2c]
test cl, cl
je 0x40d9ed
test eax, eax
jne 0x40d972
cmp cl, 0xd
je 0x40d9f1
cmp cl, 0xa
jne 0x40d972
dec esi
jmp 0x40da63
test eax, eax
jne 0x40da63
cmp cl, 0xa
jne 0x40d9f9
dec esi
jmp 0x40da63
cmp cl, 0xd
jne 0x40da63
dec esi
cmp dword [ebp + 4], 0
je 0x40da18
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.0040dc20
mov dword [esp + 0x20], eax
jmp 0x40da2f
push 0
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x40da63
cmp dword [ebp + 4], 0
je 0x40da41
inc dword [ebp + 0xc]
jmp 0x40da63
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebp]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10