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

Disassembly:
sub esp, 0x8c
mov eax, dword [0x6a73c0]
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 + 0x124]
push esi
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x44ddfb
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 0x44ddff
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
jne 0x44de2f
push str.Error_accept__ing_server_connect
push edi
call fcn.004353d0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0046c80e
add esp, 0x8c
ret
push str.Connection_accepted_from_server
push edi
call fcn.004354a0
mov byte [ebx + 0x1cd], 0
push 1
push dword [esp + 0x18]
call fcn.00461bc0
lea eax, [esp + 0x1c]
push eax
push 1
push ebx
push edi
call fcn.00459050
add esp, 0x20
test eax, eax
jne 0x44dec9
cmp dword [edi + 0x1ac], eax
je 0x44dec7
push 1
push edi
call fcn.0042b4b0
mov eax, dword [edi + 0x1ac]
push 1
push dword [esp + 0x18]
push dword [edi + 0x1b0]
call eax
push 0
push edi
mov esi, eax
call fcn.0042b4b0
add esp, 0x1c
test esi, esi
je 0x44dec7
push 1
push edi
call fcn.00434d80
push 1
push ebx
push edi
call fcn.00434bf0
add esp, 0x14
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0046c80e
add esp, 0x8c
ret
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046c80e
add esp, 0x8c
ret
Function at 0x44fd70
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 0x44fda0
push str.Couldnt_set_desired_mode
push esi
call fcn.004353d0
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
ret
cmp ecx, 0xc8
je 0x44fdb7
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.004354a0
add esp, 0xc
mov al, byte [esp + 0x18]
push ebp
cmp al, 0x13
jne 0x44fdd1
push ebx
push esi
call fcn.0044fc70
add esp, 8
mov edi, eax
pop ebp
pop edi
pop esi
pop ebx
ret
cmp al, 0x14
jne 0x44fedd
mov edi, dword [esi + 0xc]
xor ebx, ebx
cmp byte [esi + 0x4d0], 2
mov dword [esp + 0x18], edi
jne 0x44fe4e
mov eax, dword [esi + 0x134]
mov eax, dword [eax]
test eax, eax
je 0x44fe4e
push 3
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push ecx
push ebx
push eax
call fcn.00457620
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x44ff08
push 0x2f
push dword [esp + 0x18]
call fcn.0046ffe0
add esp, 8
test eax, eax
je 0x44fe3d
mov ebx, dword [esp + 0x14]
mov ecx, 1
sub eax, ebx
cmovne ecx, eax
mov byte [ecx + ebx], 0
jmp 0x44fe4a
push dword [esp + 0x14]
call dword [0x6a7054]
add esp, 4
mov edi, dword [esp + 0x18]
mov ecx, dword [esi + 0x508]
test ecx, ecx
jne 0x44fe6c
cmp byte [esi + 0xd2f], 0
mov ecx, str.NLST
mov eax, str.LIST
cmove ecx, eax
mov edx, 0x497f80
test ebx, ebx
mov eax, edx
cmovne eax, ebx
push eax
mov eax, 0x68ff0c
cmove eax, edx
push eax
push ecx
push 0x6900c8
call fcn.00429b20
push ebx
mov ebp, eax
call dword [0x6a7054]
add esp, 0x14
test ebp, ebp
jne 0x44fea9
mov edi, 0x1b
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
push ebp
push 0x68f4a0
lea eax, [edi + 0x378]
push eax
push esi
call fcn.00466190
push ebp
mov edi, eax
call dword [0x6a7054]
add esp, 0x14
test edi, edi
jne 0x44ff08
mov eax, dword [esi + 0xc]
pop ebp
mov byte [eax + 0x40e], 0x1f
mov eax, edi
pop edi
pop esi
pop ebx
ret
cmp al, 0x15
jne 0x44fef5
push 0xd
push 1
push esi
call fcn.0044f7e0
add esp, 0xc
mov edi, eax
pop ebp
pop edi
pop esi
pop ebx
ret
cmp al, 0x16
jne 0x44ff08
push 0xe
push 1
push esi
call fcn.0044f7e0
add esp, 0xc
mov edi, eax
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x459230
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x6ca4bc]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x459281
push 3
push 2
push eax
push eax
push 6
call fcn.0045e0d0
add esp, 0x14
test al, al
je 0x459275
mov dword [0x6ca4bc], 2
add esp, 0xc
ret
mov dword [0x6ca4bc], 1
jmp 0x459286
cmp eax, 2
je 0x4592cc
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4592b1
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x4592cc
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x459d60
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x6a73c0]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
push ebx
mov ebx, dword [esp + 0x194]
push esi
mov esi, dword [eax + 8]
lea eax, [esp + 0xc]
push 0x80
push 0
push eax
mov dword [esp + 0x14], 0x80
call fcn.0046fbb0
add esp, 0xc
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x459e04
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x8c]
push 0x100
push eax
push esi
call fcn.00425870
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.004353d0
add esp, 0x1c
mov eax, 2
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0046c80e
add esp, 0x188
ret
lea eax, [esi + 0x100]
push eax
lea eax, [esi + 0xd0]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
call fcn.00435fb0
add esp, 0x10
test al, al
jne 0x459e77
push edi
call fcn.004785c5
mov esi, dword [eax]
call fcn.004785c5
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.00425870
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004353d0
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0046c80e
add esp, 0x188
ret
mov ecx, dword [esp + 0x18c]
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.0046c80e
add esp, 0x188
ret
Function at 0x45b680
Capabilities:
Check http status code

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x1c]
push 0x11
push str.WWW_Authenticate:
push esi
mov dword [esp + 0x1c], 0
lea ebx, [edi + 0xf0]
call fcn.00437c80
add esp, 0xc
test eax, eax
je 0x45b6b9
mov ebp, dword [ebx]
cmp ebp, 0x191
je 0x45b6d7
push 0x13
push str.Proxy_authenticate:
push esi
call fcn.00437c80
add esp, 0xc
test eax, eax
je 0x45b71f
mov ebp, dword [ebx]
cmp ebp, 0x197
jne 0x45b71f
push esi
call fcn.0043b280
mov esi, eax
add esp, 4
test esi, esi
jne 0x45b6ef
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.0043c420
push esi
mov edi, eax
call dword [0x6a7054]
add esp, 0x10
test edi, edi
je 0x45b861
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0xf
push str.Content_Length:
push esi
call fcn.00437c80
add esp, 0xc
test eax, eax
je 0x45b779
mov ecx, dword [ebx]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x45b757
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response
push edi
call fcn.004354a0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x20]
add eax, 0x200
push eax
push 0xa
lea eax, [esi + 0xf]
push 0
push eax
call fcn.0043ef70
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.0043b1d0
add esp, 0x14
test al, al
jne 0x45b856
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.00437c80
add esp, 0xc
test eax, eax
je 0x45b812
mov ecx, dword [ebx]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x45b7d0
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
push edi
call fcn.004354a0
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.0043b1d0
add esp, 0x14
test al, al
je 0x45b861
push str.CONNECT_responded_chunked
push edi
call fcn.004354a0
mov eax, dword [esp + 0x28]
push edi
mov byte [eax + 0x20c], 1
call fcn.0045e520
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.0043b1d0
add esp, 0x14
test al, al
jne 0x45b856
push ebx
lea eax, [esp + 0x14]
push eax
push str.HTTP_1._d__d
push esi
call fcn.0042e570
add esp, 0x10
cmp eax, 2
jne 0x45b861
mov eax, dword [ebx]
mov dword [edi + 0xd64], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x20]
mov byte [eax + 0x20d], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x462340
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x6a73c0]
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.00485dab
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4623bf
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00425960
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.004353d0
push esi
call dword [0x6a7054]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x46251f
push 0
push 0x80
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x462419
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00425960
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.004353d0
push 0
mov esi, 0x4d
call dword [0x6a7054]
add esp, 0x20
jmp 0x462511
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x462459
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00425960
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.004353d0
add esp, 0x1c
mov esi, 0x4d
jmp 0x4624fd
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x462487
jg 0x46246d
cmp edi, 0x100000
jbe 0x462487
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.004353d0
add esp, 0xc
mov esi, 0x4d
jmp 0x4624fd
lea eax, [edi + 1]
push eax
call dword [0x6a7050]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x46249f
lea esi, [eax + 0x1b]
jmp 0x4624fd
test edi, edi
je 0x4624e4
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 0x46253c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x462538
add esi, eax
cmp esi, edi
jb 0x4624b0
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.00462140
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x6a7054]
add esp, 4
push dword [esp + 0x20]
call fcn.0047233c
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046c80e
add esp, 0x120
ret
mov edi, esi
jmp 0x4624e4
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00425960
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.004353d0
add esp, 0x1c
mov esi, 0x4d
jmp 0x4624fd
Function at 0x469aa0
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 [0x6a7050]
mov esi, eax
add esp, 4
test esi, esi
jne 0x469acb
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 0x469b1a
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 0x469b22
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 0x469b93
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 0x469b50
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x469bc5
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x698bf5
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x698bf6
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x469ba0
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x469bd0
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.00436df0
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 [0x6a7050]
mov esi, eax
add esp, 8
test esi, esi
je 0x469d52
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 0x469c52
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 0x469cc3
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 0x469c80
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x469cf5
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x698bf5
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x698bf6
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x469cd0
push dword [esp + 0x30]
call fcn.00436df0
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 0x469d20
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 [0x6a7054]
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 0x46b530
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x46b57c
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 0x46b541
pop ebx
pop edi
pop esi
ret

Function at 0x46d553
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0046c970
mov eax, dword [0x6a73c0]
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.00488c97
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x47edfd
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x47ef59
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0046cd50
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 + 0x6caf90]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00480cce
mov ecx, dword [esi*4 + 0x6caf90]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x47ef52
cmp eax, dword [edi + ecx + 0x24]
jne 0x47ef52
push 0
lea eax, [ebp - 0x1014]
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 0x47ef52
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00480cce
add esp, 0x14
test edx, edx
jl 0x47ef52
jg 0x47eec8
test eax, eax
jb 0x47ef52
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x47ef52
jl 0x47eee2
cmp dword [ebp - 0x1008], eax
ja 0x47ef52
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x47ef00
test ebx, ebx
je 0x47ef39
cmp ecx, edi
jae 0x47ef39
mov al, byte [ecx]
cmp al, 0xd
jne 0x47ef1a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x47ef26
cmp byte [ecx + 1], 0xa
jne 0x47ef26
inc ecx
jmp 0x47ef26
movzx eax, al
movsx eax, byte [eax + 0x6a75a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x47ef00
cmp edx, ebx
jne 0x47ef00
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x47ef57
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0046c80e
leave
ret
Function at 0x480478
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6a73c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x69ba90
push esi
call fcn.0048b2a6
pop ecx
pop ecx
test eax, eax
jne 0x4804a6
xor al, al
jmp 0x480523
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.004801af
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4804e0
push dword [ebp - 0x210]
call fcn.0047233c
xor al, al
jmp 0x480521
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4804e6
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x480506
push edx
call fcn.004803ae
pop ecx
test al, al
je 0x4804d1
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x480514
mov bl, 1
push dword [ebp - 0x210]
call fcn.0047233c
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046c80e
leave
ret
Function at 0x485dff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x6caf90]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x485e3f
cmp byte [ebx], 0xa
jne 0x485e3f
or byte [eax + edi + 0x28], 4
jmp 0x485e44
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x485f42
mov al, byte [edx]
cmp al, 0x1a
je 0x485f24
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x485e73
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x485e98
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x485ea2
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x485e55
jmp 0x485f42
push 0
lea eax, [ebp - 0xc]
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 0x485f1f
cmp dword [ebp - 0xc], 0
je 0x485f1f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x6caf90]
test byte [eax + edi + 0x28], 0x48
je 0x485ef9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x485ee4
mov byte [esi], dl
jmp 0x485ef5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6caf90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x485f42
cmp byte [ebp - 1], 0xa
jne 0x485f08
cmp esi, ebx
jne 0x485f08
mov byte [esi], 0xa
jmp 0x485f41
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00480cec
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x485f42
mov byte [esi], 0xd
jmp 0x485f41
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x6caf90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x485f3e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x485f42
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret