joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4932c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x8c
mov eax, dword [0x508040]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x9c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
mov ebx, dword [edi + 0xc]
mov esi, dword [ebx + 0x12c]
push esi
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x49332b
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x80
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esp + 0xc], eax
jmp 0x49332f
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
jne 0x49335f
push str.Error_accept__ing_server_connect
push edi
call fcn.004727e0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.004af2b0
add esp, 0x8c
ret
push str.Connection_accepted_from_server
push edi
call fcn.004728b0
mov byte [ebx + 0x205], 0
push 1
push dword [esp + 0x18]
call fcn.0049e590
lea eax, [esp + 0x1c]
push eax
push 1
push ebx
push edi
call fcn.004739a0
add esp, 0x20
test eax, eax
jne 0x4933f9
cmp dword [edi + 0x1b0], eax
je 0x4933f7
push 1
push edi
call fcn.00462f20
mov eax, dword [edi + 0x1b0]
push 1
push dword [esp + 0x18]
push dword [edi + 0x1b4]
call eax
push 0
push edi
mov esi, eax
call fcn.00462f20
add esp, 0x1c
test esi, esi
je 0x4933f7
push 1
push edi
call fcn.00482330
push 1
push ebx
push edi
call fcn.004822c0
add esp, 0x14
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.004af2b0
add esp, 0x8c
ret
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004af2b0
add esp, 0x8c
ret
Function at 0x495280
Capabilities:
Check http status code

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
lea eax, [ecx - 0xc8]
xor edi, edi
mov ebx, dword [esi + 0xc]
cmp eax, 0x64
jb 0x4952b0
push str.Couldnt_set_desired_mode
push esi
call fcn.004727e0
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
ret
cmp ecx, 0xc8
je 0x4952c7
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.004728b0
add esp, 0xc
mov eax, dword [esp + 0x18]
push ebp
cmp eax, 0x13
jne 0x4952e2
push ebx
push esi
call fcn.00495180
add esp, 8
mov edi, eax
pop ebp
pop edi
pop esi
pop ebx
ret
cmp eax, 0x14
jne 0x4953f2
mov edi, dword [esi + 0xc]
xor ebx, ebx
cmp byte [esi + 0x4e0], 2
mov dword [esp + 0x18], edi
jne 0x495360
mov eax, dword [esi + 0x134]
mov eax, dword [eax]
test eax, eax
je 0x495360
push 3
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push ecx
push ebx
push eax
call fcn.0049d130
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x49541f
push 0x2f
push dword [esp + 0x18]
call fcn.004b2740
add esp, 8
test eax, eax
je 0x49534f
mov ebx, dword [esp + 0x14]
mov ecx, 1
sub eax, ebx
cmovne ecx, eax
mov byte [ecx + ebx], 0
jmp 0x49535c
push dword [esp + 0x14]
call dword [0x508004]
add esp, 4
mov edi, dword [esp + 0x18]
mov ecx, dword [esi + 0x520]
test ecx, ecx
jne 0x49537e
cmp byte [esi + 0xd24], 0
mov ecx, str.NLST
mov eax, str.LIST
cmove ecx, eax
mov edx, 0x4f547e
test ebx, ebx
mov eax, edx
cmovne eax, ebx
push eax
mov eax, 0x4f9e0c
cmove eax, edx
push eax
push ecx
push 0x4e3608
call fcn.004776e0
push ebx
mov ebp, eax
call dword [0x508004]
add esp, 0x14
test ebp, ebp
jne 0x4953bb
mov edi, 0x1b
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
push ebp
push 0x4f5940
lea eax, [edi + 0x3d0]
push eax
push esi
call fcn.004a9ec0
push ebp
mov edi, eax
call dword [0x508004]
add esp, 0x14
test edi, edi
jne 0x49541f
mov eax, dword [esi + 0xc]
pop ebp
mov dword [eax + 0x454], 0x1f
mov eax, edi
pop edi
pop esi
pop ebx
ret
cmp eax, 0x15
jne 0x49540b
push 0xd
push 1
push esi
call fcn.00494d10
add esp, 0xc
mov edi, eax
pop ebp
pop edi
pop esi
pop ebx
ret
cmp eax, 0x16
jne 0x49541f
push 0xe
push 1
push esi
call fcn.00494d10
add esp, 0xc
mov edi, eax
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x4a3990
Capabilities:
Check http status code

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x18]
push 0x11
push str.WWW_Authenticate:
push esi
mov dword [esp + 0x1c], 0
lea ebx, [edi + 0xf0]
call fcn.00478cd0
add esp, 0xc
test eax, eax
je 0x4a39c9
mov ebp, dword [ebx]
cmp ebp, 0x191
je 0x4a39e7
push 0x13
push str.Proxy_authenticate:
push esi
call fcn.00478cd0
add esp, 0xc
test eax, eax
je 0x4a3a2f
mov ebp, dword [ebx]
cmp ebp, 0x197
jne 0x4a3a2f
push esi
call fcn.0047e5e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4a39ff
pop edi
lea eax, [esi + 0x1b]
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp ebp, 0x197
push esi
sete al
movzx eax, al
push eax
push edi
call fcn.004800f0
push esi
mov edi, eax
call dword [0x508004]
add esp, 0x10
test edi, edi
je 0x4a3b71
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0xf
push str.Content_Length:
push esi
call fcn.00478cd0
add esp, 0xc
test eax, eax
je 0x4a3a89
mov ecx, dword [ebx]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x4a3a67
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response
push edi
call fcn.004728b0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x1c]
add eax, 0x1f8
push eax
push 0xa
lea eax, [esi + 0xf]
push 0
push eax
call fcn.00484290
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 5
push str.close
push 0xb
push str.Connection:
push esi
call fcn.0047e530
add esp, 0x14
test al, al
jne 0x4a3b66
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.00478cd0
add esp, 0xc
test eax, eax
je 0x4a3b22
mov ecx, dword [ebx]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x4a3ae0
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
push edi
call fcn.004728b0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 7
push str.chunked
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.0047e530
add esp, 0x14
test al, al
je 0x4a3b71
push str.CONNECT_responded_chunked
push edi
call fcn.004728b0
mov eax, dword [esp + 0x24]
push edi
mov byte [eax + 0x204], 1
call fcn.0049fe00
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 5
push str.close
push 0x11
push str.Proxy_Connection:
push esi
call fcn.0047e530
add esp, 0x14
test al, al
jne 0x4a3b66
push ebx
lea eax, [esp + 0x14]
push eax
push str.HTTP_1._d__d
push esi
call fcn.00406a50
add esp, 0x10
cmp eax, 2
jne 0x4a3b71
mov eax, dword [ebx]
mov dword [edi + 0xd5c], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x1c]
mov byte [eax + 0x205], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x4a6070
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x508040]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call fcn.004c7b2c
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4a60ef
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045e920
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.004727e0
push esi
call dword [0x508004]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x4a624f
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x4a6149
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045e920
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.004727e0
push 0
mov esi, 0x4d
call dword [0x508004]
add esp, 0x20
jmp 0x4a6241
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4a6189
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045e920
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.004727e0
add esp, 0x1c
mov esi, 0x4d
jmp 0x4a622d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x4a61b7
jg 0x4a619d
cmp edi, 0x100000
jbe 0x4a61b7
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.004727e0
add esp, 0xc
mov esi, 0x4d
jmp 0x4a622d
lea eax, [edi + 1]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4a61cf
lea esi, [eax + 0x1b]
jmp 0x4a622d
test edi, edi
je 0x4a6214
nop dword [eax]
nop word [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a626c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4a6268
add esi, eax
cmp esi, edi
jb 0x4a61e0
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.004a5e70
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x508004]
add esp, 4
push dword [esp + 0x20]
call fcn.004ba650
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004af2b0
add esp, 0x120
ret
mov edi, esi
jmp 0x4a6214
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045e920
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.004727e0
add esp, 0x1c
mov esi, 0x4d
jmp 0x4a622d
Function at 0x4ac990
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4ac9bb
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x4aca0a
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [edi]
push ebx
push dword [esp + 0x2c]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov ebx, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x28], ebx
jmp 0x4aca12
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x30]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4aca83
mov ebp, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x4aca40
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x4acab5
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x4ecb74
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x4ecb75
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x4aca90
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x4acac0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push dword [esp + 0x24]
call fcn.004757f0
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [section..data]
mov esi, eax
add esp, 8
test esi, esi
je 0x4acc42
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x4acb42
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x38], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4acbb3
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x4acb70
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x4acbe5
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x4ecb74
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x4ecb75
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x4acbc0
push dword [esp + 0x30]
call fcn.004757f0
mov ecx, dword [esi]
push eax
push dword [esp + 0x34]
push dword [esi + 4]
mov eax, dword [ecx + 4]
call eax
mov edi, dword [esp + 0x44]
add esp, 0x10
mov ebx, dword [esi]
test edi, edi
jne 0x4acc10
mov edi, dword [ebx + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebx + 8]
push edi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebx + 8]
push edi
call eax
push esi
call dword [0x508004]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0xc
ret
Function at 0x4af1a0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x4af1ec
push ebx
mov ebx, dword [esp + 0x10]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0x4af1b1
pop ebx
pop edi
pop esi
ret

Function at 0x4b056d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4b05ac
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4b05ac
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b05ac
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4b05ac
cmp dword [ecx + 0x74], 0xe
jbe 0x4b05ac
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4b6028
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.004afcf0
mov eax, dword [0x508040]
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.004cbab4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4b606a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4b61e1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004afc40
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x57e8f0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004c4556
mov ecx, dword [esi*4 + 0x57e8f0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4b61da
cmp eax, dword [edi + ecx + 0x24]
jne 0x4b61da
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b61da
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004c4556
add esp, 0x14
cmp edx, esi
jl 0x4b61da
jg 0x4b6135
cmp eax, esi
jb 0x4b61da
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x4b61da
jl 0x4b6157
cmp dword [ebp - 0x1008], eax
ja 0x4b61da
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x4b617c
cmp ebx, esi
je 0x4b61c1
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x4b61c1
mov al, byte [ecx]
cmp al, 0xd
jne 0x4b61a2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4b61ae
cmp byte [ecx + 1], 0xa
jne 0x4b61ae
inc ecx
jmp 0x4b61ae
movzx eax, al
movsx eax, byte [eax + 0x508298]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4b6188
cmp edx, ebx
jne 0x4b6188
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x4b61df
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004af2b0
leave
ret
Function at 0x4c3fb9
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x508040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x4f00d8
push esi
call fcn.004cfee9
pop ecx
pop ecx
test eax, eax
jne 0x4c3fe7
xor al, al
jmp 0x4c4064
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.004c3ccf
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4c4021
push dword [ebp - 0x210]
call fcn.004ba650
xor al, al
jmp 0x4c4062
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4c4027
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x4c4047
push edx
call fcn.004c3ef0
pop ecx
test al, al
je 0x4c4012
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4c4055
mov bl, 1
push dword [ebp - 0x210]
call fcn.004ba650
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004af2b0
leave
ret
Function at 0x4c7bf5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x57e8f0]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4c7c37
cmp byte [ebx], 0xa
jne 0x4c7c37
or byte [edi + eax + 0x28], 4
jmp 0x4c7c3c
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4c7d3f
mov cl, byte [eax]
cmp cl, 0x1a
je 0x4c7d1a
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x4c7c6b
mov eax, dword [ebp - 8]
jmp 0x4c7c8b
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x4c7ca7
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x4c7c85
add eax, 2
mov cl, 0xa
jmp 0x4c7c88
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x4c7c4d
jmp 0x4c7d3f
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c7d15
cmp dword [ebp - 0x10], 0
je 0x4c7d15
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x57e8f0]
test byte [eax + edi + 0x28], 0x48
je 0x4c7cf4
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x4c7ce4
mov byte [esi], 0xa
jmp 0x4c7d3e
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x57e8f0]
mov byte [eax + edi + 0x2a], cl
jmp 0x4c7d3e
cmp byte [ebp - 1], 0xa
jne 0x4c7cfe
cmp esi, ebx
je 0x4c7cdf
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004c4574
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4c7d3f
mov byte [esi], 0xd
jmp 0x4c7d3e
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x57e8f0]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x4c7d3c
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x4c7d3f
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4c7d48
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x57e8f0]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4c7d8c
push 0xa
pop esi
cmp word [ebx], si
jne 0x4c7d8c
or byte [eax + edi + 0x28], 4
jmp 0x4c7d91
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x4c7efc
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x4c7ed4
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x4c7dde
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x4c7e08
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x4c7e27
push 0xa
pop ebx
cmp word [edx], bx
jne 0x4c7df5
push ebx
add eax, 4
pop edx
jmp 0x4c7dfd
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x4c7da3
jmp 0x4c7efc
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c7ecf
cmp dword [ebp - 0x14], 0
je 0x4c7ecf
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x57e8f0]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x4c7eab
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4c7e73
mov word [esi], ax
jmp 0x4c7ef9
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x57e8f0]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x57e8f0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x57e8f0]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x4c7ef9
cmp word [ebp - 4], ax
jne 0x4c7eb5
cmp esi, ebx
je 0x4c7e6b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004c4574
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4c7efc
push 0xd
pop eax
jmp 0x4c7e6b
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x57e8f0]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x4c7ef6
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x4c7efc
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret