joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484520
Capabilities:
Encode data using xor

Disassembly:
cmp byte [0x541340], 0
push ebx
push esi
push edi
jne 0x484637
mov byte [0x541340], 1
xor esi, esi
nop dword [eax]
xor eax, eax
mov edx, esi
shrd edx, eax, 1
mov ecx, esi
and ecx, 1
shr eax, 1
or ecx, 0
je 0x48455f
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov ecx, edx
and edx, 1
shrd ecx, eax, 1
shr eax, 1
or edx, 0
je 0x48457a
xor ecx, 0xd7870f42
xor eax, 0xc96c5795
mov edx, ecx
and ecx, 1
shrd edx, eax, 1
shr eax, 1
or ecx, 0
je 0x484595
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov ecx, edx
and edx, 1
shrd ecx, eax, 1
shr eax, 1
or edx, 0
je 0x4845b0
xor ecx, 0xd7870f42
xor eax, 0xc96c5795
mov edx, ecx
and ecx, 1
shrd edx, eax, 1
shr eax, 1
or ecx, 0
je 0x4845cb
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov ecx, edx
and edx, 1
shrd ecx, eax, 1
shr eax, 1
or edx, 0
je 0x4845e6
xor ecx, 0xd7870f42
xor eax, 0xc96c5795
mov edx, ecx
and ecx, 1
shrd edx, eax, 1
shr eax, 1
or ecx, 0
je 0x484601
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov ecx, edx
and edx, 1
shrd ecx, eax, 1
shr eax, 1
or edx, 0
je 0x48461c
xor ecx, 0xd7870f42
xor eax, 0xc96c5795
mov dword [esi*8 + 0x540b40], ecx
mov dword [esi*8 + 0x540b44], eax
inc esi
cmp esi, 0x100
jb 0x484540
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
not ebx
mov edi, dword [esp + 0x14]
not edx
test edi, edi
je 0x484675
mov esi, dword [esp + 0x10]
nop
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, bl
shrd ebx, edx, 8
xor ecx, eax
shr edx, 8
xor ebx, dword [ecx*8 + 0x540b40]
xor edx, dword [ecx*8 + 0x540b44]
sub edi, 1
jne 0x484650
pop edi
not ebx
not edx
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x4a03b0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4a0468
lea eax, [esp + 0x18]
push eax
push esi
push 2
call fcn.004c0130
add esp, 0xc
test eax, eax
jne 0x4a0468
lea eax, [esp + 4]
push eax
push esi
push 0x17
call fcn.004c0130
add esp, 0xc
test eax, eax
jne 0x4a0468
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4a03f5
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.004c0cc0
add esp, 0xc
test eax, eax
je 0x4a0429
sub eax, esi
push eax
push 0x2e
push esi
call fcn.004c0cc0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4a042b
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x4a045e
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.004ac320
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x4a0440
pop edi
movzx eax, bl
pop ebx
pop esi
add esp, 0x10
ret
xor eax, eax
pop esi
add esp, 0x10
ret
Function at 0x4a3b90
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x4a3baa
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x52690c
push esi
call fcn.00417740
add esp, 8
test eax, eax
je 0x4a3bf2
test ebp, ebp
je 0x4a3be3
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x4a3c18
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a3c18
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x4a3ccf
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a3c35
sub ecx, ebx
lea eax, [ecx + 1]
add eax, edx
push eax
call dword [0x53c698]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4a3cc5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4a3cc5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a3c67
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a3c80
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4a3c90
test ebp, ebp
je 0x4a3cbc
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x53c69c]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x53c69c]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x4a3e50
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub esp, 0x190
test byte [esp + 0x194], 2
je 0x4a3e93
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4a3e87
mov eax, dword [esp]
cmp al, 2
jne 0x4a3e81
shr eax, 8
cmp al, 2
je 0x4a3e93
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
add esp, 0x190
ret
call fcn.004c4d80
test eax, eax
jne 0x4a4095
push esi
push edi
push str.kernel32
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x4a3ec0
mov dword [0x541428], esi
jmp 0x4a3ff8
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LoadLibraryExA
push edi
call ebp
push 0x52690c
push str.iphlpapi.dll
mov ebx, eax
call fcn.00417740
add esp, 8
test eax, eax
je 0x4a3f10
test ebx, ebx
je 0x4a3efe
push 8
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x4a3fd3
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x4a3fd3
test ebx, ebx
je 0x4a3f35
push str.AddDllDirectory
push edi
call ebp
test eax, eax
je 0x4a3f35
push 0x800
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x4a3fd3
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x4a3fcd
lea ecx, [ebp + 0xd]
push ecx
call dword [0x53c698]
mov edi, eax
add esp, 4
test edi, edi
je 0x4a3fc3
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4a3fc3
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a3f70
sub ecx, edx
mov eax, 0x5c
mov word [ecx + edi], ax
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a3f87
sub ecx, edx
mov edx, str.iphlpapi.dll
sub ecx, edx
add ecx, edi
nop dword [eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x4a3fa0
test ebx, ebx
je 0x4a3fba
push 8
push 0
push edi
call ebx
jmp 0x4a3fc1
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push edi
call dword [0x53c69c]
add esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x541428], esi
test esi, esi
je 0x4a3ff6
push str.if_nametoindex
push esi
call ebp
mov ecx, dword [0x541424]
test eax, eax
cmovne ecx, eax
mov dword [0x541424], ecx
pop ebp
pop ebx
push 0x9c
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0041d430
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
mov dword [esp + 8], 0x9c
mov dword [esp + 0xc], 6
mov dword [esp + 0x10], 0
push 3
push 2
push 0
push 0
mov dword [esp + 0x28], 2
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
push 3
push 0x10
push edx
push eax
call esi
push 1
push 8
push edx
push eax
call esi
push edx
push eax
push 0x33
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
pop edi
pop esi
test eax, eax
je 0x4a408c
push 0x541e5c
mov byte [0x541e64], 1
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
add esp, 0x190
ret
mov byte [0x541e64], 0
xor eax, eax
add esp, 0x190
ret
Function at 0x4a4210
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x2f0], 2
je fcn.004a41c0
mov al, 1
ret

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

Disassembly:
mov edx, dword [esp + 8]
sub esp, 0x80
xor eax, eax
push ebx
mov ebx, dword [esp + 0x88]
push ebp
push esi
mov esi, 0x1e4
mov ecx, dword [ebx + 0x1c4]
cmp edx, ecx
push edi
sete al
lea eax, [eax*4 + 0x1c0]
mov ebp, dword [eax + ebx]
mov eax, 0x1f4
cmove esi, eax
mov eax, dword [ebx + 0x2e8]
add esi, ebx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x4a4a00
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x1d4]
cmp dword [eax + ebx], 0x4a4630
jne 0x4a4a00
cmp dword [esi], 0
je 0x4a4991
test edi, edi
je 0x4a4a00
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.004ab970
add esp, 0x14
cmp eax, 0xffffffff
je 0x4a4a00
test al, 1
je 0x4a4a00
cmp dword [esi], 0
jne 0x4a49da
mov eax, dword [ebx]
mov eax, dword [eax + 0x8fc]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x53c698]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov ecx, dword [esi]
test ecx, ecx
je 0x4a49f9
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4a4a00
add dword [esi + 8], eax
jmp 0x4a4a00
mov dword [esi + 4], 0
push 0
push dword [esp + 0xa4]
push dword [esp + 0xa4]
push ebp
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4a4a8a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4a4a49
mov ecx, dword [esp + 0xa4]
lea eax, [edi + 0x52]
pop edi
pop esi
pop ebp
mov dword [ecx], 0
pop ebx
add esp, 0x80
ret
push pe_nt_image_headers32
lea eax, [esp + 0x14]
push eax
push esi
call fcn.004c54a0
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.004a43c0
mov eax, dword [ebx]
add esp, 0x18
mov ecx, dword [esp + 0xa4]
mov dword [eax + 0xd04], esi
mov eax, 0x37
mov dword [ecx], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
mov ecx, dword [esp + 0xa4]
xor eax, eax
mov dword [ecx], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
Function at 0x4bf160
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1000
call fcn.004d8a40
push dword [esp + 0x1004]
call fcn.005001a7
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4bf1ac
push 0x1000
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4bf1ac
lea eax, [esp]
push eax
call dword [0x53c6a4]
add esp, 4
add esp, 0x1000
ret
xor eax, eax
add esp, 0x1000
ret

Function at 0x4bf810
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push esi
xor esi, esi
mov dword [esp + 4], esi
mov dword [eax], esi
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x4bf9c2
push ebx
mov ebx, dword [esp + 0xc]
push edi
test ebx, ebx
je 0x4bf9ac
push ebp
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x4bf85f
lea ebp, [eax + 0xe]
jmp 0x4bf86b
cmp eax, 0x17
jne 0x4bf919
lea ebp, [eax + 5]
cmp dword [ebx + 0x18], 0
je 0x4bf919
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x4bf919
cmp eax, ebp
jb 0x4bf919
push 0x20
call dword [0x53c698]
mov edi, eax
add esp, 4
test edi, edi
je 0x4bf9a1
mov ecx, dword [ebx]
mov dword [edi], ecx
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [edi + 8], ecx
mov eax, dword [ebx + 0xc]
push ebp
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ebp
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
call dword [0x53c698]
add esp, 4
mov dword [edi + 0x18], eax
test eax, eax
je 0x4bf990
push ebp
push dword [ebx + 0x18]
push eax
call fcn.00420bb0
mov eax, dword [ebx + 0x14]
add esp, 0xc
test eax, eax
je 0x4bf905
push eax
call dword [0x53c6a4]
add esp, 4
mov dword [edi + 0x14], eax
test eax, eax
je 0x4bf976
mov eax, dword [esp + 0x10]
test esi, esi
cmove esi, edi
test eax, eax
je 0x4bf915
mov dword [eax + 0x1c], edi
mov dword [esp + 0x10], edi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x4bf852
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop ebp
test eax, eax
je 0x4bf938
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x4bf9a8
test esi, esi
je 0x4bf965
push dword [esi + 0x18]
call dword [0x53c69c]
push dword [esi + 0x14]
call dword [0x53c69c]
mov edi, dword [esi + 0x1c]
push esi
call dword [0x53c69c]
add esp, 0xc
mov esi, edi
test edi, edi
jne 0x4bf940
mov eax, dword [esp + 0x28]
xor esi, esi
pop edi
mov dword [eax], esi
mov eax, ebx
pop ebx
pop esi
add esp, 0xc
ret
push dword [edi + 0x18]
mov ebx, 8
call dword [0x53c69c]
push edi
call dword [0x53c69c]
add esp, 8
jmp 0x4bf928
push edi
mov ebx, 8
call dword [0x53c69c]
add esp, 4
jmp 0x4bf928
mov ebx, 8
jmp 0x4bf928
test esi, esi
jne 0x4bf9b8
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], esi
mov eax, ebx
pop ebx
pop esi
add esp, 0xc
ret
Function at 0x4c93c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x30
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
push 6
push 1
push 2
mov dword [esp + 0x18], 0x10
mov dword [esp + 0x14], 1
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4c93f2
pop edi
or eax, eax
pop esi
add esp, 0x30
ret
push ebx
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [esp + 0x20], xmm0
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
xor eax, eax
push 4
mov word [esp + 0x1a], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push edi
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4c9583
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4c9583
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4c9583
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x4c9583
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x4c9583
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4c9583
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x4c9583
push ebx
push 0x52ce48
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.004b9d70
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4c94f0
push 0
sub esi, ecx
lea eax, [esp + 0x28]
push esi
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x4c9583
push 0
push 0xc
lea eax, [esp + 0x38]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x4c9583
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x4c9541
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4c9546
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4c9530
cmp esi, 0xfffffffc
je 0x4c9573
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4c9583
cmp esi, 0xfffffffd
je 0x4c9573
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4c9583
cmp esi, 0xfffffffe
je 0x4c9573
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4c9583
cmp esi, 0xffffffff
je 0x4c9573
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x4c9583
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x30
ret
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push edi
call esi
push dword [ebx]
call esi
push dword [ebx + 4]
call esi
pop ebx
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x30
ret
Function at 0x4d8b80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4d8bad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4d8bad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4fb904
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x53acb4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5303c0
push esi
call fcn.00413d29
pop ecx
pop ecx
test eax, eax
jne 0x4fb932
xor al, al
jmp 0x4fb9af
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.004fb597
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4fb96c
push dword [ebp - 0x210]
call fcn.004d91ef
xor al, al
jmp 0x4fb9ad
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4fb972
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x4fb992
push edx
call fcn.004fb83b
pop ecx
test al, al
je 0x4fb95d
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4fb9a0
mov bl, 1
push dword [ebp - 0x210]
call fcn.004d91ef
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00407bcf
leave
ret
Function at 0x4fc664
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004d8a40
mov eax, dword [0x53acb4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00419fef
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4fc6a6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4fc802
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004d9050
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x53f980]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041ccc0
mov ecx, dword [esi*4 + 0x53f980]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4fc7fb
cmp eax, dword [ecx + edi + 0x24]
jne 0x4fc7fb
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4fc7fb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041ccc0
add esp, 0x14
test edx, edx
jl 0x4fc7fb
jg 0x4fc771
test eax, eax
jb 0x4fc7fb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4fc7fb
jl 0x4fc78b
cmp dword [ebp - 0x1008], eax
ja 0x4fc7fb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4fc7a9
test ebx, ebx
je 0x4fc7e2
cmp ecx, edi
jae 0x4fc7e2
mov al, byte [ecx]
cmp al, 0xd
jne 0x4fc7c3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4fc7cf
cmp byte [ecx + 1], 0xa
jne 0x4fc7cf
inc ecx
jmp 0x4fc7cf
movzx eax, al
movsx eax, byte [eax + 0x53b408]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4fc7a9
cmp edx, ebx
jne 0x4fc7a9
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4fc800
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407bcf
leave
ret
Function at 0x505978
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.005057e7
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x505ae7
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x505ae7
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x505a9c
jg 0x5059d4
test eax, eax
je 0x505a92
push 1
push 0x1000
call fcn.0040d2a8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5059f7
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x505a89
push 0x8000
push ebx
call fcn.00408318
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x505a20
jg 0x505a1b
cmp ecx, 0x1000
jb 0x505a20
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041ac70
add esp, 0x10
cmp eax, 0xffffffff
je 0x505a65
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x505a1b
jl 0x505a4c
test ecx, ecx
jne 0x505a0d
push dword [ebp - 0xc]
push ebx
call fcn.00408318
push esi
call fcn.0040bcf0
add esp, 0xc
xor ebx, ebx
jmp 0x505af5
cmp byte [edi + 0x24], 0
je 0x505a7c
cmp dword [edi + 0x20], 5
jne 0x505a7c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x505a87
mov ebx, dword [edi + 0x18]
jmp 0x505a89
xor ebx, ebx
push esi
call fcn.0040bcf0
pop ecx
jmp 0x505af5
test ecx, ecx
jg 0x505a5e
jl 0x505a9c
test eax, eax
jae 0x505a5e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041ccde
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x505abc
cmp byte [edi + 0x1c], 0
je 0x505a5e
jmp 0x505aed
push ebx
call fcn.0040ec69
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x505a5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x505af5
cmp byte [edi + 0x1c], 0
je 0x505af2
mov ebx, dword [edi + 0x18]
jmp 0x505af5
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041ccde
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x50ca7c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x53acb4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x50cabf
call fcn.0040e64f
mov dword [eax], 0xf
call fcn.0040e662
mov dword [eax], 0xd
call fcn.0040cf4d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407bcf
leave
ret
test eax, eax
jne 0x50cac6
inc eax
jmp 0x50cab3
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x50cab1
xor eax, eax
cmp ecx, 1
setne al
jmp 0x50cab3