joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464c10
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x654138]
mov edi, eax
add esp, 8
test edi, edi
je 0x464be7
nop word [eax + eax]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x464bff
cmp esi, ebx
je 0x464bff
cmp esi, 0x8000
ja 0x464bff
cmp esi, ebx
jb 0x464bf8
push esi
push edi
call dword [0x654138]
mov edi, eax
add esp, 8
test edi, edi
jne 0x464bb0
push ebp
call dword [0x654134]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x654134]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
jmp 0x464b90

Function at 0x466f10
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x6540c0]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
mov esi, dword [esp + 0x19c]
lea eax, [esp + 4]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x466f4e
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.0044d5d0
add esp, 0xc
jmp 0x466f89
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp + 4]
cmp al, 2
jne 0x466f7b
shr eax, 8
test al, al
jne 0x466f7b
xor eax, eax
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0043928a
add esp, 0x194
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.0044d5d0
add esp, 8
mov ecx, dword [esp + 0x194]
mov eax, 2
pop esi
xor ecx, esp
call fcn.0043928a
add esp, 0x194
ret

Function at 0x467830
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
mov byte [esp + 0x16], al
lea eax, [esp + 0x14]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x420]
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x46787c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0044d5d0
add esp, 0xc
push dword [esp + 0x18]
push ebx
push str.SENT
push dword [esi]
call fcn.00467130
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4679c0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x14
cmp dword [esp + 0x1c], 0x1f
mov eax, dword [esp + 0x18]
push ebx
mov eax, dword [eax]
mov dword [esp + 4], eax
mov ebx, dword [eax + 0x138]
jne 0x467b19
push ebp
push edi
lea ebp, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], ebp
cmp ebp, edi
jae 0x4679f9
mov byte [ebp], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x467a04
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x467a0f
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
mov word [esp + 0x14], ax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov ecx, dword [edi]
mov word [esp + 0x1c], ax
cmp ecx, edi
jae 0x467a42
mov al, byte [esp + 0x14]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x467a50
mov al, byte [esp + 0x15]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x467a5e
mov al, byte [esp + 0x1c]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x467a6c
mov al, byte [esp + 0x1d]
mov byte [ecx], al
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x467a77
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x467a82
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x1eb4], eax
sub eax, ebp
sub eax, 2
mov dword [edi], ebp
push eax
lea eax, [ebx + 0x1cb2]
push eax
push 0x3e
push esi
call fcn.00467240
mov edi, dword [esp + 0x38]
add esp, 0x10
push 0
push 3
push ebp
push dword [edi + 0x420]
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x467ad8
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0044d5d0
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push edi
call fcn.004678a0
add esp, 0xc
lea eax, [ebx + 0x1cb7]
push 0
push 2
push eax
push dword [edi + 0x420]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x467b16
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0044d5d0
add esp, 0xc
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x468b10
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8c
mov eax, dword [0x6540c0]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x90]
push ebx
push ebp
push esi
mov ebx, dword [eax]
push edi
mov edi, dword [eax + 0x720]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0x80
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edi + 0x154]
push 0
add eax, 4
push eax
push dword [edi + 0x15c]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x148], 0
mov dword [edi + 0x14c], eax
jne 0x468b99
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
lea eax, [edi + 0xc8]
push eax
call fcn.0048f690
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [edi + 0x148], eax
mov edx, dword [edi + 0x14c]
cmp edx, 4
jge 0x468bd4
push str.Received_too_short_packet
push ebx
call fcn.0044d5d0
add esp, 8
mov dword [edi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043928a
add esp, 0x8c
ret
mov eax, dword [edi + 0x15c]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
mov dword [edi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x468bf5
jmp dword [ecx*4 + 0x468d28]
cmp edx, 4
jle case.0x468bf5.4
mov eax, dword [edi + 0x15c]
mov ebp, dword [esp + 0x10]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [edi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x468cff
lea eax, [edx - 4]
push eax
mov eax, dword [edi + 0x15c]
add eax, 4
push eax
push 1
push ebp
call fcn.0044d510
mov esi, eax
add esp, 0x10
test esi, esi
je 0x468c5d
push 5
push edi
call fcn.004695d0
add esp, 8
mov eax, esi
jmp 0x468bbb
mov eax, dword [edi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x98], eax
adc dword [ebx + 0x9c], edx
push dword [ebx + 0x9c]
push dword [ebx + 0x98]
push ebx
call fcn.0045a130
add esp, 0xc
jmp 0x468cff
mov eax, dword [edi + 0x15c]
lea esi, [edx - 4]
mov ebp, dword [edi + 0x15c]
add ebp, 4
push esi
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
push ebp
mov dword [edi + 8], ecx
call fcn.00468790
add esp, 8
cmp eax, esi
jae case.0x468bf5.4
push ebp
push str.TFTP_error:__s_n
push ebx
call fcn.0044d6b0
jmp 0x468cf8
lea eax, [edx - 2]
push eax
mov eax, dword [edi + 0x15c]
add eax, 2
push eax
push edi
call fcn.004688a0
add esp, 0xc
test eax, eax
je case.0x468bf5.4
jmp 0x468bbb
push str.Internal_error:_Unexpected_packet
push 0x5d1e48
push ebx
call fcn.0044d5d0
add esp, 0xc
mov ebp, dword [esp + 0x10]
push ebp
call fcn.0045a420
add esp, 4
test eax, eax
je 0x468bb9
push 5
push edi
call fcn.004695d0
add esp, 8
mov eax, 0x2a
jmp 0x468bbb
Function at 0x46fe80
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x6540c0]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x9c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
push eax
mov ebp, dword [edi + 0x424]
or esi, 0xffffffff
mov ebx, dword [edi]
push ebp
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x46fee2
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x80
push eax
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
push ebp
push edi
call fcn.0044e010
add esp, 8
cmp esi, 0xffffffff
jne 0x46ff06
push str.Error_accept__ing_server_connect
push ebx
call fcn.0044d5d0
add esp, 8
mov eax, 0x1e
jmp 0x46ff75
push str.Connection_accepted_from_server_n
push ebx
call fcn.0044d6b0
push 1
mov byte [edi + 0x51e], 0
push esi
mov dword [edi + 0x424], esi
call fcn.00459f80
add esp, 0x10
mov byte [edi + 0x530], 1
cmp dword [ebx + 0x608], 0
je 0x46ff73
push 1
push ebx
call fcn.0043eb50
mov eax, dword [ebx + 0x608]
push 1
push esi
push dword [ebx + 0x60c]
call eax
push 0
push ebx
mov esi, eax
call fcn.0043eb50
add esp, 0x1c
test esi, esi
je 0x46ff73
push edi
call fcn.00470410
add esp, 4
mov eax, 0x2a
jmp 0x46ff75
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043928a
add esp, 0x88
ret
Function at 0x481bc0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x654130]
mov edi, eax
add esp, 4
test edi, edi
jne 0x481be7
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x481c2f
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [esp + 0x20], ebx
jmp 0x481c33
mov ebp, dword [esp + 0x1c]
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x481c95
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x481c54
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x481cc7
nop word [eax + eax]
mov eax, dword [esi + 4]
push 1
push str.6_3H
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x5d7957
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x481ca0
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x481fa0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
mov ecx, dword [ebp + 8]
call fcn.004024c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x481fcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x481fcf
xor al, al
jmp 0x481fd1
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x487a80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6540c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jne 0x487aa5
xor eax, eax
jmp 0x487b2d
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
cmp dword [ebp - 0xc], 0x400000
jbe 0x487ac0
mov dword [ebp - 0x10], 0x400000
jmp 0x487ac6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
cmp dword [ebp - 0x18], 0
jne 0x487b1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x487b2d
cmp dword [ebp - 8], 0
jne 0x487b25
jmp 0x487b2b
cmp dword [ebp - 0xc], 0
ja 0x487aae
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043928a
mov esp, ebp
pop ebp
ret

Function at 0x487c10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6540c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jne 0x487c35
xor eax, eax
jmp 0x487cbd
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
cmp dword [ebp - 0xc], 0x400000
jbe 0x487c50
mov dword [ebp - 0x10], 0x400000
jmp 0x487c56
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
cmp dword [ebp - 0x18], 0
jne 0x487cad
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x487cbd
cmp dword [ebp - 8], 0
jne 0x487cb5
jmp 0x487cbb
cmp dword [ebp - 0xc], 0
ja 0x487c3e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043928a
mov esp, ebp
pop ebp
ret
Function at 0x487d40
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x487d58
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jae 0x487daa
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x487d79
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jae 0x487d9b
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp - 8]
and ecx, 1
xor edx, edx
sub edx, ecx
and edx, 0xedb88320
xor eax, edx
mov dword [ebp - 8], eax
jmp 0x487d70
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax*4 + 0x65e220], ecx
jmp 0x487d4f
mov dword [ebp - 4], 0x100
jmp 0x487dbc
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x800
jae 0x487df4
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x65de20]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov eax, dword [ebp - 0x10]
shr eax, 8
xor eax, dword [edx*4 + 0x65e220]
mov ecx, dword [ebp - 4]
mov dword [ecx*4 + 0x65e220], eax
jmp 0x487db3
mov dword [0x660228], 0x4895c0
mov dword [0x660220], 0x4895c0
mov dword [0x660224], 0x4896d0
call fcn.004892d0
test eax, eax
jne 0x487e25
mov dword [0x660220], 0x4896d0
mov esp, ebp
pop ebp
ret
Function at 0x48a730
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
and eax, 0xfffffffc
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 4
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
jb 0x48a76a
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 8]
jmp 0x48a850
mov edx, dword [ebp - 8]
add edx, 4
mov dword [ebp - 8], edx
mov eax, 1
imul ecx, eax, 0xfffffffc
mov edx, dword [ebp - 8]
movzx eax, byte [edx + ecx]
cmp eax, 0x40
jne 0x48a79e
mov ecx, 1
imul edx, ecx, 0xfffffffd
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx]
and ecx, 0xc0
je 0x48a7c8
mov edx, 1
imul eax, edx, 0xfffffffc
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + eax]
cmp edx, 0x7f
jne 0x48a7ca
mov eax, 1
imul ecx, eax, 0xfffffffd
mov edx, dword [ebp - 8]
movzx eax, byte [edx + ecx]
cmp eax, 0xc0
jl 0x48a7ca
jmp 0x48a7cc
jmp 0x48a757
mov ecx, dword [ebp - 8]
mov edx, dword [ecx - 4]
bswap edx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
shl eax, 2
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
je 0x48a7f7
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 8]
add ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
jmp 0x48a808
mov edx, dword [ebp - 8]
sub edx, dword [ebp + 8]
add edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
sub eax, edx
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
and ecx, 0x1ffffff
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
sub edx, 0x1000000
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
xor eax, 0xff000000
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
or edx, 0x40000000
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
bswap eax
mov ecx, dword [ebp - 8]
mov dword [ecx - 4], eax
jmp 0x48a757
mov esp, ebp
pop ebp
ret
Function at 0x4a8231
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0043a530
mov eax, dword [0x6540c0]
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.004abcdc
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a8273
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a83cf
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004bac80
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 + 0x65a9c0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004a9b66
mov ecx, dword [esi*4 + 0x65a9c0]
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 0x4a83c8
cmp eax, dword [ecx + edi + 0x24]
jne 0x4a83c8
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 0x4a83c8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004a9b66
add esp, 0x14
test edx, edx
jl 0x4a83c8
jg 0x4a833e
test eax, eax
jb 0x4a83c8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a83c8
jl 0x4a8358
cmp dword [ebp - 0x1008], eax
ja 0x4a83c8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a8376
test ebx, ebx
je 0x4a83af
cmp ecx, edi
jae 0x4a83af
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a8390
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a839c
cmp byte [ecx + 1], 0xa
jne 0x4a839c
inc ecx
jmp 0x4a839c
movzx eax, al
movsx eax, byte [eax + 0x6543c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a8376
cmp edx, ebx
jne 0x4a8376
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a83cd
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043928a
leave
ret
Function at 0x4a9475
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6540c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5da00c
push esi
call fcn.004a85dd
pop ecx
pop ecx
test eax, eax
jne 0x4a94a3
xor al, al
jmp 0x4a9520
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.004a9177
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4a94dd
push dword [ebp - 0x210]
call fcn.00499896
xor al, al
jmp 0x4a951e
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4a94e3
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x4a9503
push edx
call fcn.004a93ac
pop ecx
test al, al
je 0x4a94ce
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4a9511
mov bl, 1
push dword [ebp - 0x210]
call fcn.00499896
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043928a
leave
ret

Function at 0x4aa96f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5db034
push 0x5db02c
push str.FlsAlloc
push 0x1f
call fcn.004aa79a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4aa9a3
push dword [ebp + 8]
mov ecx, esi
call dword [0x5cb768]
call esi
jmp 0x4aa9a9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4aa9ed
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5db044
push 0x5db03c
push str.FlsGetValue
push 0x21
call fcn.004aa79a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4aaa24
push dword [ebp + 8]
mov ecx, esi
call dword [0x5cb768]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4aaa2c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5db04c
push 0x5db044
push str.FlsSetValue
push 0x22
call fcn.004aa79a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4aaa66
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5cb768]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4ade33
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x65a9c0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4ade73
cmp byte [ebx], 0xa
jne 0x4ade73
or byte [edi + eax + 0x28], 4
jmp 0x4ade78
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4adf77
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4adf5a
inc eax
cmp dl, 0xd
je 0x4adea4
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4adeca
cmp eax, ecx
jae 0x4aded8
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4ade8c
jmp 0x4adf77
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 0x4adf55
cmp dword [ebp - 0x10], 0
je 0x4adf55
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x65a9c0]
test byte [eax + edi + 0x28], 0x48
je 0x4adf2f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4adf1a
mov byte [esi], dl
jmp 0x4adf2b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x65a9c0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4adf77
cmp byte [ebp - 1], 0xa
jne 0x4adf3e
cmp esi, ebx
jne 0x4adf3e
mov byte [esi], 0xa
jmp 0x4adf76
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004a9b84
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4adf77
mov byte [esi], 0xd
jmp 0x4adf76
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x65a9c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4adf74
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4adf77
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret