joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4777fc
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x477897
push edi
push 0xc63160
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0xc63150]
test edi, edi
je 0x47786a
push ebp
push esi
lea ebp, [edi + 8]
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x477863
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebp
push 0xc63150
call fcn.00493fe7
pop ecx
pop ecx
jmp 0x477865
mov edi, dword [edi]
test edi, edi
jne 0x477838
pop ebp
mov esi, dword [0xc61440]
push 0x10
push 0xc63150
lea eax, [esi + 1]
mov dword [0xc61440], eax
call fcn.00493fb8
pop ecx
pop ecx
push 0xc63160
mov dword [eax], ebx
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 8

Function at 0x478026
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push dword [0xc6319c]
call fcn.004884fc
mov esi, eax
or ebp, 0xffffffff
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, dword [esp + 0x28]
mov ecx, eax
movzx edx, word [ecx]
test dx, dx
je 0x478159
mov eax, dword [esi]
mov esi, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0x20
push 0x22
pop edi
movzx eax, si
cmp si, word [esp + 0x18]
jne 0x47808c
push 0x20
pop esi
add ecx, 2
movzx eax, word [ecx]
cmp ax, si
je 0x478081
mov dword [esp + 0x10], 1
cmp ax, di
jne 0x4780c6
add ecx, 2
mov edi, ecx
movzx eax, word [ecx]
mov esi, eax
test ax, ax
je 0x478124
push 0x22
mov edx, eax
pop ebx
movzx esi, dx
cmp dx, bx
je 0x478120
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
mov esi, eax
test ax, ax
jne 0x4780ad
jmp 0x478120
test ax, ax
je 0x478134
push 0x22
pop ebx
push 0x20
mov edi, ecx
movzx eax, ax
pop ebp
movzx esi, ax
cmp ax, bp
je 0x47811c
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
cmp ax, bx
jne 0x478111
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
je 0x478111
mov esi, eax
movzx edx, si
cmp si, bx
je 0x478111
add ecx, 2
movzx eax, word [ecx]
mov esi, eax
mov edx, eax
test ax, ax
jne 0x4780fa
movzx eax, dx
movzx esi, dx
test dx, dx
jne 0x4780d6
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
mov edx, ecx
test si, si
je 0x47812e
add ecx, 2
mov eax, dword [esp + 0x10]
jmp 0x478138
xor eax, eax
xor edi, edi
cmp dword [esp + 0x1c], ebp
jne 0x478142
test ebx, ebx
jne 0x478161
test eax, eax
je 0x47814b
inc ebp
mov dword [esp + 0x14], ebp
movzx eax, word [ecx]
mov esi, eax
test ax, ax
jne 0x478071
test ebx, ebx
jne 0x478175
mov eax, ebp
jmp 0x47817a
test edi, edi
je 0x478175
mov eax, dword [esp + 0x20]
sub edx, edi
sar edx, 1
mov dword [ebx], edx
inc dword [eax]
mov eax, edi
jmp 0x47817a
and dword [ebx], 0
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x478358
Capabilities:
Read file on windows

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x4783ac
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0x20]
sub eax, esi
push eax
lea eax, [esi + ebp]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47839a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x4783a6
add esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x18]
jl 0x47836b
jmp 0x4783aa
add esi, dword [esp + 0x10]
pop ebp
pop ebx
mov eax, esi
pop esi
ret 0xc
Function at 0x479384
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x4792d7
push 0x10
push 0x2c
call fcn.0048ac25
push 0
push 0
push 8
mov dword [0xc631e0], eax
call fcn.00488567
cmp word [0xc631d8], 0
mov dword [0xc631e8], eax
jne 0x47945d
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
push str.ws2_32.dll
sbb eax, eax
inc eax
mov word [0xc631d8], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0xc631e4], eax
test eax, eax
je 0x47945d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0xc631e4]
mov dword [0xc631c8], eax
call esi
push str.getnameinfo
push dword [0xc631e4]
mov dword [0xc631cc], eax
call esi
push str.WSAStringToAddressA
push dword [0xc631e4]
mov dword [0xc631d0], eax
call esi
cmp dword [0xc631c8], 0
mov dword [0xc631d4], eax
pop esi
je 0x47945d
cmp dword [0xc631cc], 0
je 0x47945d
cmp dword [0xc631d0], 0
je 0x47945d
test eax, eax
je 0x47945d
mov dword [0xc631dc], 1
add esp, 0x190
ret

Function at 0x4794f1
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
push edi
xor edi, edi
mov ebp, edi
cmp dword [esp + 0x10], edi
je 0x479577
push esi
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x479576
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0xc62924]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x47956e
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], ebx
jne 0x47955f
push ebx
push edi
push dword [esp + 0x1c]
call fcn.004bcae8
mov ebp, eax
push edi
push 0
push dword [0xc62924]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
pop edi
mov eax, ebp
pop ebp
ret 8

Function at 0x479b50
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0xc635d8], 0
jne 0x479bfd
push 0xc631f8
push 0
mov dword [0xc635d8], 1
mov dword [0xc635dc], 0x40
call fcn.004cad90
add esp, 8
test eax, eax
jne 0x479bfd
push 0x479a00
push 0x40
push 0x68
call fcn.0048ac25
mov dword [0xc631f0], eax
imul eax, dword [0xc635dc], 0x370
push eax
push 8
push dword [0xc62924]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0xc631f8
mov dword [0xc635e0], eax
call fcn.004cbd70
push eax
mov dword [0xc635e4], eax
call fcn.004c8a00
add esp, 8
lea eax, [esp]
push eax
push 0
push 0
push 0x479ab0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x479bf3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0xc631f4], 1
mov eax, dword [0xc631f0]
pop ecx
ret
Function at 0x47a799
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
push dword [edi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x47a7d1
push dword [edi]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov dword [esp + 0x10], 1
push dword [edi]
push esi
call fcn.004ecbc3
test byte [edi + 0x14], 8
mov dword [esp + 0x14], eax
je 0x47a8c2
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [edi], eax
jne 0x47a8c2
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
sub ebp, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x47a8f0
test ebp, ebp
jle 0x47a8f0
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x47a8f0
push ebp
push dword [esp + 0x30]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x30], eax
test eax, eax
je 0x47a8b9
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x10], 0
je 0x47a863
push 4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [edi + 0x10]
push eax
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x47a878
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push 2
pop eax
add dword [esp + 0x18], eax
add dword [esp + 0x1c], eax
sub dword [esp + 0x20], eax
sub dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawFocusRect]
push 0xcc0020
xor eax, eax
push eax
push eax
push ebx
push ebp
push dword [esp + 0x40]
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x47a8f0
cmp dword [edi + 0x10], ebx
je 0x47a8dc
push 4
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [edi + 0x10]
push ebx
push ebx
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x47a8f0
push ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
push dword [esp + 0x14]
push esi
call fcn.004ecccd
cmp dword [esp + 0x10], 0
je 0x47a90a
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x47a922
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call edi
movzx esi, ax
push 2
shr esi, 0xf
call edi
bt ax, 0xf
jae 0x47a943
or esi, 2
push 4
call edi
bt ax, 0xf
jae 0x47a951
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x47a957
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_GetMessagePos]
mov edi, dword [esp + 0x1c]
mov esi, eax
push 0xfffffffffffffff4
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [edi]
mov ebp, eax
call fcn.004eca7e
push eax
call fcn.00480d74
push dword [0xc6360c]
mov dword [esp + 0x20], eax
call fcn.0048ae6f
mov ebx, eax
movsx ecx, si
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
push eax
push dword [edi]
shr esi, 0x10
movsx ecx, si
mov dword [esp + 0x1c], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call edi
movzx esi, ax
push 0x12
shr esi, 0xf
call edi
bt ax, 0xf
jae 0x47a9cf
or esi, 2
push 0x11
call edi
bt ax, 0xf
jae 0x47a9dd
or esi, 4
mov eax, dword [esp + 0x10]
mov dword [ebx], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 4], eax
call fcn.0047a922
push 0x47a912
push ebx
push dword [esp + 0x28]
mov dword [ebx + 8], eax
push dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x14], eax
movzx eax, word [esp + 0x3c]
push ebp
push 0x332c
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x18], eax
call fcn.004ebe74
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x47d827
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0xc6392c]
call fcn.0048ab41
mov ebx, eax
test ebx, ebx
je 0x47d88b
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x47d850
push dword [esp + 0xc]
push ebx
call eax
jmp 0x47d88b
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.00493750
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call fcn.0049334b
pop ecx
sub edi, eax
push edi
call fcn.00494340
pop edi
pop esi
pop ebx
ret 8

Function at 0x480a62
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebp
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x114
push eax
mov esi, 0xc8
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x480be6
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x480bc9
sub eax, 1
jne 0x480be6
lea eax, [esp + 0x120]
xor edi, edi
push eax
call fcn.00480bf2
pop ecx
test eax, eax
je 0x480ad6
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
mov ebp, dword [esp + 0x12c]
cmp byte [esp + 0x23a], 1
jmp 0x480b07
lea eax, [esp + 0x23c]
mov dword [esp + 0x23c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x480be6
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp byte [esp + 0x356], 1
jne 0x480b0c
xor edi, edi
inc edi
sub ecx, 3
je 0x480bc5
sub ecx, 1
je 0x480bc1
sub ecx, 1
je 0x480b9c
sub ecx, 1
je 0x480b4c
sub ecx, 4
jne 0x480be6
test eax, eax
jne 0x480be6
cmp ebp, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x480be6
sub eax, 0
je 0x480b8e
sub eax, 1
je 0x480b80
sub eax, 1
je 0x480b72
sub eax, 1
jne 0x480be6
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x480be6
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x480be6
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x480be6
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x480be6
sub eax, 0
je 0x480bbd
sub eax, 1
je 0x480bb9
sub eax, 1
jne 0x480be6
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x480be6
push 0x3c
jmp 0x480be5
push 0x32
jmp 0x480be5
push 0x14
jmp 0x480be5
push 5
jmp 0x480be5
mov eax, dword [esp + 0x14]
test eax, eax
je 0x480be3
cmp eax, 0xa
je 0x480bdf
cmp eax, 0x5a
jne 0x480be6
push 0x28
jmp 0x480be5
push 0x1e
jmp 0x480be5
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x34c
ret
Function at 0x480ece
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0xc63da4]
call fcn.0048ab41
mov esi, eax
test esi, esi
je 0x480fa8
cmp dword [ebp + 0xc], 0
je 0x480f1a
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x480f0b
cmp dword [esi + 0x1c], 0
jne 0x480f0b
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x480fa8
test byte [ebp + 0x10], 3
je 0x480f35
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.004ef048
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x480f5a
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x480f6e
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x480f8b
test ebx, ebx
je 0x480f7f
push 8
jmp 0x480f91
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x480f9e
test ebx, ebx
je 0x480f94
push 3
pop ecx
jmp 0x480f9e
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x48182d
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x48184d
cmp dword [esp + 8], 0
je 0x48184d
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x48184f
xor eax, eax
ret 8

Function at 0x481852
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x4818ca
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.004942f3
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.0049334b
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x4818ab
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x4818a8
cmp ecx, 0x5c
je 0x4818a8
cmp ecx, 0x2f
jne 0x4818b5
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x481895
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4818cc
xor eax, eax
leave
ret 4
Function at 0x481c0d
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x481c36
test byte [esp + 8], 2
je 0x481c2a
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x481c38
xor eax, eax
ret 8

Function at 0x481d1b
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0xc63ee0]
push esi
test eax, eax
jne 0x481d40
push fcn.00481ce9
push 0x10
push 0x258
call fcn.0048ac25
mov dword [0xc63ee0], eax
push dword [esp + 0xc]
push eax
call fcn.0048aaad
mov esi, eax
test esi, esi
je 0x481e41
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x481d62
mov edi, 0x581684
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x481d72
xor eax, eax
cmp word [ebx], ax
jne 0x481d77
mov ebx, 0x580cf8
push edi
call fcn.0049334b
push ebx
mov dword [esp + 0x24], eax
call fcn.0049334b
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0xc62924]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x481e28
push edi
push eax
call fcn.00493329
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x481dd8
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x481ddc
push 0x57fc64
push edi
call fcn.004ae22e
pop ecx
pop ecx
jmp 0x481ddc
mov edi, dword [esp + 0x18]
push ebx
push edi
call fcn.004ae22e
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x481e00
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x481e16
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x481e14
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0xc62924]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x481e3f
cmp dword [esp + 0x14], 0xffffffff
je 0x481e33
mov esi, dword [esp + 0x14]
push esi
push dword [0xc63ee0]
call fcn.0048abd6
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x481e8c
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 0x481fd4
xor ecx, ecx
cmp word [eax], cx
je 0x481fd4
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.004942f3
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.0049334b
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x481ee5
cmp eax, 3
jne 0x481f1f
cmp word [esp + 0xa], 0x3a
jne 0x481f1f
cmp eax, 2
jne 0x481f03
lea eax, [esp + 8]
push 0x57fc64
push eax
call fcn.004ae22e
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x481fd4
push 0xfffffffffffffffe
pop edi
jmp 0x481fd4
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x481f34
cmp ax, bx
jne 0x481f3e
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x481f27
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x481f7d
test byte [esp + 0x21c], 0x10
je 0x481f64
push 0xfffffffffffffffe
pop edi
jmp 0x481f74
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x481fd2
cmp word [esp + 0x10], bp
jne 0x481f8b
cmp word [esp + 0x12], bp
je 0x481faa
cmp word [esp + 0x10], bx
jne 0x481f99
cmp word [esp + 0x12], bx
je 0x481faa
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x481fd2
cmp word [esp + 0x12], ax
jne 0x481fd2
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x481fbf
test al, 0x10
je 0x481fd2
jmp 0x481fcf
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x481fd2
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 0x482038
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x48204e
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x482051
or eax, 0xffffffff
ret 4

Function at 0x48220d
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x48221b
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8

Function at 0x4822b0
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 0x4822ec
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 0x482300
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x482319
push dword [0xc63ee4]
call fcn.0048ac78
pop edi
ret 4
push esi
push edi
push dword [0xc63ee4]
call fcn.0048ab41
mov esi, eax
test esi, esi
je 0x482383
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x48236f
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x48235e
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
push dword [esi + 4]
push 0
push dword [0xc62924]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0xc63ee4]
call fcn.0048abd6
pop esi
pop edi
ret 4

Function at 0x482830
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0xc63ee4]
call fcn.0048ab41
mov esi, eax
test esi, esi
je 0x4828af
cmp dword [esi + 4], 0
je 0x482880
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.004efa30
test eax, eax
je 0x482874
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 0x4828ba
cmp dword [esp + 8], 0
je 0x4828ba
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 0x482980
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov byte [esp + 7], 0
push dword [0xc63ee4]
call fcn.0048ab41
test eax, eax
je 0x4829cb
cmp dword [eax + 4], 0
je 0x4829b5
push 1
lea ecx, [esp + 7]
push ecx
push eax
call fcn.004efa30
movzx eax, byte [esp + 3]
pop ecx
ret 4
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
lea ecx, [esp + 0xf]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, byte [esp + 3]
pop ecx
ret 4

Function at 0x482bf0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x482c55
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x482c4d
push dword [esp + 0x10]
push dword [0xc63ee4]
call fcn.0048ab41
test eax, eax
je 0x482c43
cmp dword [eax + 4], 0
je 0x482c32
push edi
push esi
push eax
call fcn.004f0030
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc

Function at 0x482c60
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0xc63ee4]
call fcn.0048ab41
test eax, eax
je 0x482c7c
mov dword [esp + 4], eax
jmp fcn.00482c90
xor eax, eax
ret 0xc