joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438cf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x493040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 0x3d0]
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [edi + 0x13c]
lea esi, [edi + 0x148]
push 0
add eax, 4
push eax
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x130], 0
mov dword [edi + 0x134], eax
jne 0x438d7e
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.0045c400
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [edi + 0x130], eax
mov edx, dword [edi + 0x134]
cmp edx, 4
jge 0x438db1
push str.Received_too_short_packet
push ebx
call fcn.0041ec20
add esp, 8
mov dword [edi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a978
mov esp, ebp
pop ebp
ret
push esi
call fcn.00438910
movzx eax, ax
add esp, 4
mov dword [edi + 0xc], eax
dec eax
cmp eax, 5
ja case.0x438dca.1
jmp dword [eax*4 + 0x438f0c]
cmp edx, 4
jle case.0x438dca.4
push esi
call fcn.004388f0
movzx ecx, word [edi + 0x144]
add esp, 4
inc ecx
cmp cx, ax
jne case.0x438dca.4
lea eax, [edx - 4]
push eax
mov eax, dword [esi]
add eax, 4
push eax
push 1
push ebx
call fcn.0041eb70
mov esi, eax
add esp, 0x10
test esi, esi
je 0x438e2d
push 5
push edi
call fcn.00439760
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a978
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x134]
sub eax, 4
cdq
add dword [ebx + 0x90], eax
adc dword [ebx + 0x94], edx
push dword [ebx + 0x94]
push dword [ebx + 0x90]
push ebx
call fcn.0042cb70
jmp 0x438ed5
mov eax, dword [esi]
lea esi, [edx - 4]
add eax, 4
mov dword [ebp - 0x8c], eax
lea eax, [edi + 0x148]
push eax
call fcn.004388f0
push esi
push dword [ebp - 0x8c]
movzx eax, ax
mov dword [edi + 8], eax
call fcn.00439890
add esp, 0xc
cmp eax, esi
jae case.0x438dca.4
push dword [ebp - 0x8c]
push str.TFTP_error:__s
push ebx
call fcn.0041ece0
jmp 0x438ed5
lea eax, [edx - 2]
push eax
mov eax, dword [esi]
add eax, 2
push eax
push edi
call fcn.00438ad0
add esp, 0xc
test eax, eax
je case.0x438dca.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a978
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x47c660
push ebx
call fcn.0041ec20
add esp, 0xc
push ebx
call fcn.0042ce80
add esp, 4
test eax, eax
je 0x438d9e
push 5
push edi
call fcn.00439760
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.0045a978
mov esp, ebp
pop ebp
ret
Function at 0x439760
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
cmp edx, 3
ja case.default.0x439770
jmp dword [edx*4 + 0x4397c4]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00439210
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00438f30
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004399c0
push str.TFTP_finished
push 0x47c660
push ecx
call fcn.0041ece0
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x47c660
push ecx
call fcn.0041ec20
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x440440
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x493040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x84]
push eax
mov ebx, dword [edi + 0xc]
mov esi, dword [ebx + 0x12c]
push esi
mov dword [ebp - 0x88], 0xffffffff
mov dword [ebp - 0x8c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4404b6
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebp - 0x88], eax
jmp 0x4404bc
mov eax, dword [ebp - 0x88]
cmp eax, 0xffffffff
jne 0x4404e5
push str.Error_accept__ing_server_connect
push edi
call fcn.0041ec20
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a978
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server
push edi
call fcn.0041ece0
mov byte [ebx + 0x205], 0
push 1
push dword [ebp - 0x88]
call fcn.0044bac0
lea eax, [ebp - 0x88]
push eax
push 1
push ebx
push edi
call fcn.0041f9a0
add esp, 0x20
test eax, eax
jne 0x440574
cmp dword [edi + 0x1b0], eax
je 0x440572
push 1
push edi
call fcn.00410690
mov eax, dword [edi + 0x1b0]
push 1
push dword [ebp - 0x88]
push dword [edi + 0x1b4]
call eax
push 0
push edi
mov esi, eax
call fcn.00410690
add esp, 0x1c
test esi, esi
je 0x440572
push ebx
push edi
call fcn.004409b0
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a978
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045a978
mov esp, ebp
pop ebp
ret

Function at 0x442a00
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ecx - 0xc8]
xor edi, edi
mov ebx, dword [esi + 0xc]
cmp eax, 0x64
jb 0x442a32
push str.Couldnt_set_desired_mode
push esi
call fcn.0041ec20
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x442a49
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.0041ece0
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x442a62
push ebx
push esi
call fcn.004426d0
add esp, 8
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x14
jne 0x442a77
push esi
call fcn.004416a0
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x15
jne 0x442a8c
push esi
call fcn.004426b0
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x16
jne 0x442a9c
push esi
call fcn.004428e0
add esp, 4
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x450ef0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x11
push str.WWW_Authenticate:
push esi
mov dword [ebp - 4], 0
lea ebx, [edi + 0xf0]
call fcn.004234c0
add esp, 0xc
test eax, eax
je 0x450f2a
mov eax, dword [ebx]
mov dword [ebp + 8], eax
cmp eax, 0x191
je 0x450f4a
push 0x13
push str.Proxy_authenticate:
push esi
call fcn.004234c0
add esp, 0xc
test eax, eax
je 0x450f95
mov eax, dword [ebx]
mov dword [ebp + 8], eax
cmp eax, 0x197
jne 0x450f95
push esi
call fcn.004267b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x450f63
pop edi
lea eax, [esi + 0x1b]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 0x197
push esi
sete al
movzx eax, al
push eax
push edi
call fcn.004282c0
push esi
mov edi, eax
call dword [0x493008]
add esp, 0x10
test edi, edi
je 0x4510d8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xf
push str.Content_Length:
push esi
call fcn.004234c0
add esp, 0xc
test eax, eax
je 0x450ff0
mov ecx, dword [ebx]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x450fce
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response
push edi
call fcn.0041ece0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
add eax, 0x1f8
push eax
push 0xa
lea eax, [esi + 0xf]
push 0
push eax
call fcn.00430e10
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 5
push str.close
push 0xb
push str.Connection:
push esi
call fcn.00426710
add esp, 0x14
test al, al
jne 0x4510ce
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.004234c0
add esp, 0xc
test eax, eax
je 0x45108a
mov ecx, dword [ebx]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x451048
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
push edi
call fcn.0041ece0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 7
push str.chunked
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.00426710
add esp, 0x14
test al, al
je 0x4510d8
push str.CONNECT_responded_chunked
push edi
call fcn.0041ece0
mov eax, dword [ebp + 0xc]
push edi
mov byte [eax + 0x204], 1
call fcn.0044d400
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 5
push str.close
push 0x11
push str.Proxy_Connection:
push esi
call fcn.00426710
add esp, 0x14
test al, al
jne 0x4510ce
push ebx
lea eax, [ebp - 4]
push eax
push str.HTTP_1._d__d
push esi
call fcn.00415590
add esp, 0x10
cmp eax, 2
jne 0x4510d8
mov eax, dword [ebx]
mov dword [edi + 0xd5c], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x205], 1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x456f30
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x456f63
push 0x2e
push edi
call fcn.0045cb50
add esp, 8
test eax, eax
je 0x456f61
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x4580f0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x493040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push edi
mov edi, dword [ebp + 0x10]
push 0xf0000040
push 1
push 0
push 0
push eax
mov dword [ebp - 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x458182
lea eax, [ebp - 0xc]
mov dword [ebp - 0x18], 0x208
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0x6601
push edi
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x10], 8
call fcn.004581e0
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.0045a890
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x458194
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a978
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push dword [ebp - 0x20]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x24]
mov dword [esi], ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0045a978
mov esp, ebp
pop ebp
ret
Function at 0x458450
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x493004]
mov esi, eax
add esp, 4
test esi, esi
jne 0x45847d
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebx
mov dword [esi + 4], ecx
mov eax, dword [ebx + 0xc]
add eax, ecx
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
push edi
lea edi, [ebx + 4]
cmp eax, dword [ebx + 0x10]
jbe 0x4584c8
mov eax, dword [ebx]
push ecx
call eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push dword [ebp + 0xc]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebx + 0xc]
push dword [esi + 4]
mov dword [ebp - 8], eax
push eax
mov eax, dword [ebx + 8]
call eax
mov eax, dword [ebx + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], eax
jmp 0x4584ce
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [esi + 4]
mov eax, dword [ebx]
call eax
push dword [esi + 8]
mov eax, dword [ebx]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x458529
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
nop
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x4584f0
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
cmp ebx, dword [eax + 0x10]
jae 0x458559
mov eax, dword [edi]
push 1
push 0x488dd4
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x488dd5
push dword [esi + 8]
call eax
mov eax, dword [ebp + 8]
inc ebx
add esp, 0x18
cmp ebx, dword [eax + 0x10]
jb 0x458531
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4585c0
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000040
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4585f2
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x800c
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
xor eax, eax
pop esi
pop ebp
ret

Function at 0x45a890
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x45a8dd
push ebx
mov ebx, dword [ebp + 8]
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 0x45a8a2
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x45a930
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x45a96f
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
pop esi
pop ebp
ret

Function at 0x45b7b6
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0045b380
mov eax, dword [0x493040]
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.0046f6d2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x466208
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x466364
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0045b2d0
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 + 0x4944b0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0046a599
mov ecx, dword [esi*4 + 0x4944b0]
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 0x46635d
cmp eax, dword [edi + ecx + 0x24]
jne 0x46635d
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 0x46635d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046a599
add esp, 0x14
test edx, edx
jl 0x46635d
jg 0x4662d3
test eax, eax
jb 0x46635d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x46635d
jl 0x4662ed
cmp dword [ebp - 0x1008], eax
ja 0x46635d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x46630b
test ebx, ebx
je 0x466344
cmp ecx, edi
jae 0x466344
mov al, byte [ecx]
cmp al, 0xd
jne 0x466325
lea eax, [edi - 1]
cmp ecx, eax
jae 0x466331
cmp byte [ecx + 1], 0xa
jne 0x466331
inc ecx
jmp 0x466331
movzx eax, al
movsx eax, byte [eax + 0x493130]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x46630b
cmp edx, ebx
jne 0x46630b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x466362
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0045a978
leave
ret
Function at 0x4699d3
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x493040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x48ae80
push esi
call fcn.004663fd
pop ecx
pop ecx
test eax, eax
jne 0x469a01
xor al, al
jmp 0x469a7e
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.0046970a
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x469a3b
push dword [ebp - 0x210]
call fcn.004600e5
xor al, al
jmp 0x469a7c
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x469a41
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x469a61
push edx
call fcn.00469909
pop ecx
test al, al
je 0x469a2c
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x469a6f
mov bl, 1
push dword [ebp - 0x210]
call fcn.004600e5
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045a978
leave
ret
Function at 0x46c675
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 + 0x4944b0]
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 0x46c6b5
cmp byte [ebx], 0xa
jne 0x46c6b5
or byte [eax + edi + 0x28], 4
jmp 0x46c6ba
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x46c7b8
mov al, byte [edx]
cmp al, 0x1a
je 0x46c79a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x46c6e9
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x46c70e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x46c718
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 0x46c6cb
jmp 0x46c7b8
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 0x46c795
cmp dword [ebp - 0xc], 0
je 0x46c795
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4944b0]
test byte [eax + edi + 0x28], 0x48
je 0x46c76f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46c75a
mov byte [esi], dl
jmp 0x46c76b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4944b0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46c7b8
cmp byte [ebp - 1], 0xa
jne 0x46c77e
cmp esi, ebx
jne 0x46c77e
mov byte [esi], 0xa
jmp 0x46c7b7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0046a5b7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46c7b8
mov byte [esi], 0xd
jmp 0x46c7b7
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4944b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46c7b4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46c7b8
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46c7c1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4944b0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46c804
cmp word [esi], dx
jne 0x46c804
or byte [edi + eax + 0x28], 4
jmp 0x46c809
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x46c95c
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x46c93c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x46c84b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46c881
cmp eax, edx
jae 0x46c88d
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x46c823
jmp 0x46c95c
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 0x46c938
cmp dword [ebp - 0x14], 0
je 0x46c938
mov eax, dword [ebx*4 + 0x4944b0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x46c910
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x46c8d9
mov word [esi], cx
jmp 0x46c90c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4944b0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4944b0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4944b0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x46c95c
pop ebx
cmp word [ebp - 4], bx
jne 0x46c921
cmp esi, dword [ebp + 0xc]
jne 0x46c921
mov word [esi], bx
jmp 0x46c959
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0046a5b7
add esp, 0x10
cmp word [ebp - 4], bx
je 0x46c95c
push 0xd
jmp 0x46c955
mov ecx, dword [ebx*4 + 0x4944b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46c953
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46c95c
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46e740
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48bb94
push 0x48bb8c
push str.FlsAlloc
push 0x1e
call fcn.0046e5c1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46e774
push dword [ebp + 8]
mov ecx, esi
call dword [0x47c3d0]
call esi
jmp 0x46e77a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x46e7be
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48bba4
push 0x48bb9c
push str.FlsGetValue
push 0x20
call fcn.0046e5c1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46e7f5
push dword [ebp + 8]
mov ecx, esi
call dword [0x47c3d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4702f7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00470168