joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x1d6a71e9
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x2fd76d69
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401a6e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b10d0]
jne 0x401a78
repz ret
jmp fcn.00402ba6

Function at 0x40f875
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004035f6
and dword [ebp - 4], 0
cmp dword [0x4b297c], 0
mov ebx, eax
jne 0x40f926
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f9d7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40f9d7
push eax
call fcn.00403584
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4b297c], eax
call esi
push eax
call fcn.00403584
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4b2980], eax
call esi
push eax
call fcn.00403584
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4b2984], eax
call esi
push eax
call fcn.00403584
pop ecx
mov dword [0x4b298c], eax
test eax, eax
je 0x40f926
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403584
pop ecx
mov dword [0x4b2988], eax
mov eax, dword [0x4b2988]
cmp eax, ebx
je 0x40f97e
cmp dword [0x4b298c], ebx
je 0x40f97e
push eax
call fcn.004035ff
push dword [0x4b298c]
mov esi, eax
call fcn.004035ff
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40f97e
test edi, edi
je 0x40f97e
call esi
test eax, eax
je 0x40f975
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f975
test byte [ebp - 0xc], 1
jne 0x40f97e
or dword [ebp + 0x10], 0x200000
jmp 0x40f9b7
mov eax, dword [0x4b2980]
cmp eax, ebx
je 0x40f9b7
push eax
call fcn.004035ff
pop ecx
test eax, eax
je 0x40f9b7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40f9b7
mov eax, dword [0x4b2984]
cmp eax, ebx
je 0x40f9b7
push eax
call fcn.004035ff
pop ecx
test eax, eax
je 0x40f9b7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4b297c]
call fcn.004035ff
pop ecx
test eax, eax
je 0x40f9d7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f9d9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ab111
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x804
mov eax, dword [0x4b10d0]
xor eax, esp
mov dword [esp + 0x800], eax
push esi
push edi
mov edi, 0x13ba1f
xor esi, esi
cmp dword [0x4b2e24], 0xbf9
jne 0x4ab141
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleDisplayMode]
cmp dword [0x4b2e24], 0x3dc
mov dword [0x4b2e18], 0x8e55ceaa
jne 0x4ab16c
push esi
push str.sutejoyuvefejavasayoz_kuradahehihugas
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
dec edi
jne 0x4ab12e
cmp esi, 0x8465cd
jne 0x4ab186
mov eax, dword [0x4b1e00]
add eax, 0xa231
mov dword [0x4b2e24], eax
cmp dword [0x4b2e24], 0x141
jne 0x4ab1b3
push str.gacepelorawagemuyutajewelaxizebu_hiyupehiliyi_toxayekuxo_ziyapemiket_siwiyorosahasopisuzofuwuxuv
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
or dword [0x4b2aec], 0xffffffff
mov dword [0x4b2ae8], 0xec58acac
inc esi
cmp esi, 0x125483c
jl 0x4ab16f
call fcn.004aad90
mov ecx, dword [esp + 0x808]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00401a6e
add esp, 0x804
ret 0x10
Function at 0x409764
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409818
jmp 0x40980d
cmp dword [esi + 0x10], 0x1000
jne 0x4097f9
test byte [esi + 0x15], 1
jne 0x4097f9
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x4097b8
cmp eax, 2
je 0x4097b8
cmp eax, 0x10
je 0x4097b8
cmp eax, 0x20
jne 0x4097cd
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4097cd
mov bl, 1
xor ebp, ebp
jmp 0x4097de
mov eax, dword [esi]
add eax, ebp
call fcn.0040975c
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x4097d1
test bl, bl
je 0x4097f9
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409818
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409790
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42e004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x45d057b2
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x17697e78
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x418f42c5
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0x5321a3f
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401f28
Capabilities:
Delete registry key

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x401f2e
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00403000
mov edx, dword [esp + 0x28]
lea ecx, [esp + 4]
call fcn.00403000
push dword [esp]
call fcn.00402422
push dword [esp + 4]
mov edx, 0x4080dc
pop ecx
call fcn.004030b0
je 0x401ff8
cmp dword [0x409130], 0
je 0x401fde
mov eax, str.Advapi32.dll
push eax
push 0xffffffff
call fcn.00404ad5
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x401fdc
mov eax, str.RegDeleteKeyExA
push eax
push dword [esp + 0xc]
call fcn.00404b2f
mov dword [esp + 0xc], eax
push 0
mov ebx, dword [0x409134]
or ebx, 0xf003f
push ebx
mov eax, dword [0x409120]
push eax
push dword [0x40912c]
push dword [esp + 0x1c]
call fcn.00404b9a
mov dword [esp + 0x10], eax
push dword [esp + 8]
call fcn.00404a15
jmp 0x401ff3
mov eax, dword [0x409120]
push eax
push dword [0x40912c]
call sub.ADVAPI32.dll_RegDeleteKeyW
mov dword [esp + 0x10], eax
jmp 0x402081
lea eax, [esp + 0x18]
push eax
push dword [0x40912c]
push dword [esp + 0xc]
call sub.ADVAPI32.dll_RegConnectRegistryW
mov dword [esp + 0x14], eax
cmp dword [0x409130], 0
je 0x40206e
mov eax, str.Advapi32.dll
push eax
push 0xffffffff
call fcn.00404ad5
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x40206c
push 0
mov ebx, dword [0x409134]
or ebx, 0xf003f
push ebx
mov eax, dword [0x409120]
push eax
push dword [esp + 0x24]
mov eax, str.RegDeleteKeyExA
push eax
push dword [esp + 0x1c]
call fcn.00404bb0
mov dword [esp + 0x10], eax
push dword [esp + 8]
call fcn.00404a15
jmp 0x402081
mov eax, dword [0x409120]
push eax
push dword [esp + 0x1c]
call sub.ADVAPI32.dll_RegDeleteKeyW
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
and ebx, ebx
jne 0x402090
mov eax, 1
jmp 0x402092
xor eax, eax
push dword [esp + 4]
call fcn.00406060
push dword [esp]
call fcn.00406060
add esp, 0x1c
pop ebx
ret 8
Function at 0x4027ae
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
mov edx, 0xb
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4027b4
mov edx, dword [esp + 0x34]
lea ecx, [esp]
call fcn.00403000
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 4]
call fcn.00403000
push dword [esp]
call fcn.00402422
lea eax, [esp + 0xc]
push dword [esp + 4]
mov edx, 0x4080dc
pop ecx
call fcn.004030b0
je 0x40284a
cmp dword [0x409130], 0
je 0x40282e
lea eax, [esp + 0x18]
push eax
mov ebx, dword [0x409134]
or ebx, 0xf003f
push ebx
push 0
push dword [0x409120]
push dword [0x40912c]
call sub.ADVAPI32.dll_RegOpenKeyExW
mov dword [esp + 0x14], eax
jmp 0x402848
lea eax, [esp + 0x18]
push eax
push dword [0x409120]
push dword [0x40912c]
call sub.ADVAPI32.dll_RegOpenKeyW
mov dword [esp + 0x14], eax
jmp 0x4028af
lea eax, [esp + 0x20]
push eax
push dword [0x40912c]
push dword [esp + 0xc]
call sub.ADVAPI32.dll_RegConnectRegistryW
mov dword [esp + 0x1c], eax
cmp dword [0x409130], 0
je 0x402897
lea eax, [esp + 0x18]
push eax
mov ebx, dword [0x409134]
or ebx, 0xf003f
push ebx
push 0
push dword [0x409120]
push dword [esp + 0x30]
call sub.ADVAPI32.dll_RegOpenKeyExW
mov dword [esp + 0x14], eax
jmp 0x4028af
lea eax, [esp + 0x18]
push eax
push dword [0x409120]
push dword [esp + 0x28]
call sub.ADVAPI32.dll_RegOpenKeyW
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
and ebx, ebx
jne 0x40294d
mov dword [esp + 0x24], 0xff
push dword [0x409158]
push dword [0x409158]
push 0xff
call fcn.00403200
lea eax, [esp + 0xc]
push eax
call fcn.00405f80
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x1c]
push eax
push dword [esp + 0x50]
push dword [esp + 0x34]
call sub.ADVAPI32.dll_RegEnumKeyExW
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
and ebx, ebx
jne 0x40293f
push dword [0x409158]
push dword [0x409158]
push dword [esp + 0x2c]
push dword [esp + 0x14]
call fcn.00403250
lea eax, [esp + 0x2c]
push eax
call fcn.00405f80
jmp 0x40294d
mov edx, 0x408028
lea ecx, [esp + 0x28]
call fcn.00403008
push dword [esp + 0x18]
call sub.ADVAPI32.dll_RegCloseKey
mov edx, dword [esp + 0x28]
push dword [0x409158]
push edx
call fcn.00406000
pop eax
add eax, dword [0x4087c0]
jmp 0x40297f
push dword [esp + 4]
call fcn.00406060
push dword [esp + 8]
call fcn.00406060
push dword [esp + 0x28]
call fcn.00406060
push dword [esp]
call fcn.00406060
add esp, 0x2c
pop ebx
ret 0xc
Function at 0x4040d5
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x40412a
push dword [esp + 0x10]
push 0x404054
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x40913c]
test esi, esi
je 0x404183
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x404122
cmp byte [esi + 0x10], 0
je 0x404122
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 0x4040fe
jmp 0x404183
mov esi, dword [0x40913c]
test esi, esi
je 0x404183
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 0x40417c
cmp byte [esi + 0x11], 0
je 0x404158
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x40416f
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 0x40913c
call fcn.00405eb1
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x404137
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x4042a8
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x409168]
call fcn.00405ca5
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x4043a8
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x4042fe
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x4042f6
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x40433e
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x404380
push 0x22
pop edx
cmp cx, dx
je 0x404330
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x404320
xor ecx, ecx
cmp word [eax], cx
je 0x404380
mov ecx, eax
add eax, 2
jmp 0x404382
test dx, dx
je 0x404388
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x404330
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x404376
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x404380
cmp cx, dx
je 0x404373
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x404363
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x404348
jmp 0x404330
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x40438a
xor edx, edx
cmp dword [ebp], ebx
jne 0x404393
test edi, edi
jne 0x4043b0
test edx, edx
je 0x404398
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x4042ec
test edi, edi
jne 0x4043c1
mov eax, ebx
jmp 0x4043c5
test esi, esi
je 0x4043c1
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x4043c5
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x404c80
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x404dc8
xor ecx, ecx
cmp word [eax], cx
je 0x404dc8
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x404cd9
cmp eax, 3
jne 0x404d13
cmp word [esp + 0xa], 0x3a
jne 0x404d13
cmp eax, 2
jne 0x404cf7
lea eax, [esp + 8]
push 0x407060
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x404dc8
push 0xfffffffffffffffe
pop edi
jmp 0x404dc8
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x404d28
cmp ax, bx
jne 0x404d32
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x404d1b
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x404d71
test byte [esp + 0x21c], 0x10
je 0x404d58
push 0xfffffffffffffffe
pop edi
jmp 0x404d68
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x404dc6
cmp word [esp + 0x10], bp
jne 0x404d7f
cmp word [esp + 0x12], bp
je 0x404d9e
cmp word [esp + 0x10], bx
jne 0x404d8d
cmp word [esp + 0x12], bx
je 0x404d9e
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x404dc6
cmp word [esp + 0x12], ax
jne 0x404dc6
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x404db3
test al, 0x10
je 0x404dc6
jmp 0x404dc3
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x404dc6
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x404de7
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x404e10
test byte [esp + 8], 2
je 0x404e04
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x404e12
xor eax, eax
ret 8

Function at 0x404ea0
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 0x404edc
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 0x405150
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x40918c]
call fcn.00405d0e
mov esi, eax
test esi, esi
je 0x4051cf
cmp dword [esi + 4], 0
je 0x4051a0
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.00405340
test eax, eax
je 0x405194
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 0x4051da
cmp dword [esp + 8], 0
je 0x4051da
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 0x405340
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x405361
push esi
call fcn.00404ea0
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
cmp ebx, edi
jl 0x4053d5
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x4053c2
dec ecx
je 0x4053ad
sub ecx, 2
je 0x40539a
push edi
push eax
push dword [esp + 0x1c]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x14]
mov word [eax], cx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esp + 0x14]
mov dl, byte [eax]
mov eax, edi
mov byte [ecx], dl
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
push ebp
mov ebp, dword [esp + 0x18]
sub eax, ebx
add eax, dword [esi + 4]
push ebx
push eax
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
push 0
cmp edi, eax
jl 0x40541a
lea eax, [esp + 0x18]
push eax
push edi
push ebp
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
add eax, ebx
pop esi
pop ebx
ret 0xc
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp edi, eax
jle 0x40543b
mov edi, eax
push edi
push dword [esi + 4]
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
lea eax, [ebx + edi]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret 0xc