joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6b4dcc
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x8d5f40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
xor eax, eax
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_socket]
inc eax
push 6
push eax
push 2
mov dword [ebp - 0x30], eax
pop eax
push eax
mov dword [ebp - 0x34], 0x10
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x6b4f47
push 2
pop eax
xorps xmm0, xmm0
mov word [ebp - 0x2c], ax
push 0x7f000001
movlpd qword [ebp - 0x24], xmm0
call dword [sym.imp.WS2_32.dll_htonl]
or dword [ebx + 4], 0xffffffff
or dword [ebx], 0xffffffff
mov dword [ebp - 0x28], eax
xor eax, eax
push 4
mov word [ebp - 0x2a], ax
lea eax, [ebp - 0x30]
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x6b4f35
push 0x10
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x6b4f35
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x6b4f35
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x6b4f35
push 0
push 1
push 2
pop eax
push eax
call edi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x6b4f35
push 0x10
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x6b4f35
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x6b4f35
push ebx
push 0x7b73b8
lea eax, [ebp - 0x1c]
push 0xc
push eax
call fcn.006b9cc0
lea edi, [ebp - 0x1c]
add esp, 0x10
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x6b4ee4
push 0
sub edi, ecx
lea eax, [ebp - 0x1c]
push edi
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, edi
jne 0x6b4f35
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, edi
jne 0x6b4f35
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.007166ae
add esp, 0xc
test eax, eax
jne 0x6b4f35
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x6b4f4a
push esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
push dword [ebx]
call esi
push dword [ebx + 4]
call esi
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006fedff
leave
ret
Function at 0x6bb994
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.006af7c4
push dword [ebp + 8]
mov esi, eax
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.006baee9
push dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 4], esi
call fcn.006baee9
add esp, 0xc
mov ebx, eax
jmp 0x6bba0b
lea eax, [ebp - 0x24]
push eax
call fcn.006af7c4
sub esp, 0xc
lea esi, [ebp - 0x14]
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.006af854
add esp, 0x20
test edx, edx
ja 0x6bba36
jb 0x6bba00
cmp eax, 0x3e8
ja 0x6bba36
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 4]
push 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x6bb9cb
test esi, esi
je 0x6bba24
push esi
call fcn.0072051c
pop ecx
test ebx, ebx
je 0x6bba2f
push ebx
call fcn.0072051c
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 4]
test eax, eax
je 0x6bba44
push eax
call fcn.0072051c
pop ecx
test ebx, ebx
je 0x6bba4f
push ebx
call fcn.0072051c
pop ecx
xor eax, eax
inc eax
jmp 0x6bba31
Function at 0x6bba73
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
xor esi, esi
push dword [ebp + 0xc]
and dword [ebp - 0x10], esi
push dword [ebp + 8]
and dword [edi], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x6bbbab
push ebx
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x6bbbbb
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x6bbaca
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x6bbabc
sub ecx, edx
lea eax, [ecx + 1]
jmp 0x6bbacc
xor eax, eax
cmp dword [ebx + 4], 2
mov dword [ebp - 8], eax
jne 0x6bbb79
cmp dword [ebx + 0x18], 0
je 0x6bbb79
cmp dword [ebx + 0x10], 0
jbe 0x6bbb79
cmp dword [ebx + 0x10], 0x10
jb 0x6bbb79
add eax, 0x30
push eax
call dword [0x8d5e5c]
mov edx, eax
mov dword [ebp - 0x14], edx
pop ecx
test edx, edx
je 0x6bbbaf
mov ecx, dword [ebx]
lea edi, [edx + 0x20]
mov dword [edx], ecx
mov ecx, dword [ebx + 4]
mov dword [edx + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [edx + 8], ecx
mov eax, dword [ebx + 0xc]
and dword [edx + 0x14], 0
and dword [edx + 0x1c], 0
mov ecx, dword [ebp - 8]
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], 0x10
mov dword [edx + 0x18], edi
mov esi, dword [ebx + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test ecx, ecx
je 0x6bbb61
mov eax, dword [edx + 0x18]
add eax, 0x10
push ecx
mov dword [edx + 0x14], eax
push dword [ebx + 0x14]
push eax
call fcn.00717660
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov esi, dword [ebp - 0xc]
test esi, esi
mov eax, dword [ebp - 0x10]
cmove esi, edx
mov dword [ebp - 0xc], esi
test eax, eax
je 0x6bbb76
mov dword [eax + 0x1c], edx
mov dword [ebp - 0x10], edx
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x6bbab2
mov ebx, dword [ebp - 0x18]
cmp dword [ebp - 4], 0
je 0x6bbb96
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x6bbbb4
push esi
call fcn.006bba54
pop ecx
xor esi, esi
mov edi, dword [ebp + 0x14]
mov eax, ebx
mov dword [edi], esi
pop ebx
pop edi
pop esi
leave
ret
push 8
pop ebx
jmp 0x6bbb87
test esi, esi
jne 0x6bbba3
mov edi, dword [ebp + 0x14]
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x6bbba6

Function at 0x6bbeab
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call fcn.00735cc8
add esp, 0x18
test eax, eax
je 0x6bbecb
cmp eax, 0xffffffff
jne 0x6bbecd
xor eax, eax
pop ebp
ret
Function at 0x6bcd38
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push edi
push 4
pop edi
push esi
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp + 0x14], esi
call fcn.00718210
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000040
push dword [ebp + 0x18]
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x6bcdf1
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push dword [ebp + 0x1c]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x6bcdd4
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x6bcdd4
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
call edi
test eax, eax
je 0x6bcdd4
cmp esi, dword [ebp - 0xc]
jb 0x6bcdd4
push ebx
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call edi
cmp dword [ebp - 4], ebx
je 0x6bcde2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], ebx
je 0x6bcdf1
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6c9bee
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 [0x8d5f40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
push 0xf0000040
inc ebx
mov dword [ebp - 0x1c], 8
push ebx
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x6c9c30
xor al, al
jmp 0x6c9cbd
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.006c9ccc
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.006ca414
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x6c9c84
xor bl, bl
jmp 0x6c9cb0
mov ecx, dword [ebp + 8]
push dword [ebp - 0x1c]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x1c]
push eax
push esi
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006fedff
leave
ret
Function at 0x6ca065
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x8d5e5c]
mov edi, eax
pop ecx
test edi, edi
je 0x6ca152
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 [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x6ca0d1
push ecx
call dword [esi]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call dword [esi + 4]
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
call dword [esi + 8]
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 0x10], ebx
jmp 0x6ca0d7
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push ecx
call dword [esi]
push dword [edi + 8]
call dword [esi]
mov eax, dword [ebp + 0x10]
xor ebx, ebx
pop ecx
pop ecx
test eax, eax
je 0x6ca14a
mov dword [ebp - 8], eax
mov ebx, eax
mov eax, dword [ebp - 4]
push 1
mov al, byte [eax]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
push dword [edi + 4]
call dword [esi + 4]
mov ecx, dword [ebp - 4]
push 1
mov al, byte [ecx]
xor al, 0x5c
inc ecx
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
push dword [edi + 8]
mov dword [ebp - 4], ecx
call dword [esi + 4]
add esp, 0x18
sub ebx, 1
jne 0x6ca0ef
mov ebx, dword [ebp - 8]
jmp 0x6ca14a
push 1
push 0x85a2e4
push dword [edi + 4]
call dword [esi + 4]
push 1
push 0x85a2e5
push dword [edi + 8]
call dword [esi + 4]
add esp, 0x18
inc ebx
cmp ebx, dword [esi + 0x10]
jb 0x6ca12c
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret

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

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

Function at 0x6ca414
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x6ca462
push edi
mov edi, dword [ebp + 8]
mov cl, byte [esi + edi]
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
and dl, 2
movzx ecx, cl
cmp dl, 2
cmovb ecx, eax
mov byte [esi + edi], cl
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x6ca423
pop edi
pop esi
pop ebp
ret
Function at 0x6ca465
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 0xf0000040
xor edi, edi
lea eax, [ebp - 0xc]
push 1
push edi
push edi
push eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x6ca49f
lea eax, [ebp - 8]
push eax
push edi
push edi
push 0x8002
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push dword [ebp + 0x10]
call fcn.00536c9a
pop ecx
push edi
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push edi
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [ebp - 4], 0x10
jne 0x6ca4e3
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [ebp - 8], edi
je 0x6ca4f1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0xc], edi
je 0x6ca500
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
leave
ret
Function at 0x7022d4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x72e755
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.006ffc90
mov eax, dword [0x8d5f40]
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.00732d65
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x72e797
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x72e8f3
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.006ff1a0
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 + 0x9369f0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0073664f
mov ecx, dword [esi*4 + 0x9369f0]
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 0x72e8ec
cmp eax, dword [ecx + edi + 0x24]
jne 0x72e8ec
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 0x72e8ec
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0073664f
add esp, 0x14
test edx, edx
jl 0x72e8ec
jg 0x72e862
test eax, eax
jb 0x72e8ec
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x72e8ec
jl 0x72e87c
cmp dword [ebp - 0x1008], eax
ja 0x72e8ec
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x72e89a
test ebx, ebx
je 0x72e8d3
cmp ecx, edi
jae 0x72e8d3
mov al, byte [ecx]
cmp al, 0xd
jne 0x72e8b4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x72e8c0
cmp byte [ecx + 1], 0xa
jne 0x72e8c0
inc ecx
jmp 0x72e8c0
movzx eax, al
movsx eax, byte [eax + 0x8d6160]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x72e89a
cmp edx, ebx
jne 0x72e89a
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x72e8f1
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.006fedff
leave
ret
Function at 0x72f85a
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x8d5f40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x867730
push esi
call fcn.00736355
pop ecx
pop ecx
test eax, eax
jne 0x72f888
xor al, al
jmp 0x72f905
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.0072f55c
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x72f8c2
push dword [ebp - 0x210]
call fcn.0072051c
xor al, al
jmp 0x72f903
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x72f8c8
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x72f8e8
push edx
call fcn.0072f791
pop ecx
test al, al
je 0x72f8b3
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x72f8f6
mov bl, 1
push dword [ebp - 0x210]
call fcn.0072051c
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.006fedff
leave
ret
Function at 0x7315ed
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00731569
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x73175c
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x73175c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x731711
jg 0x731649
test eax, eax
je 0x731707
push 1
push 0x1000
call fcn.0073bc44
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x73166c
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x7316fe
push 0x8000
push ebx
call fcn.00735a0d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x731695
jg 0x731690
cmp ecx, 0x1000
jb 0x731695
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00732b0d
add esp, 0x10
cmp eax, 0xffffffff
je 0x7316da
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x731690
jl 0x7316c1
test ecx, ecx
jne 0x731682
push dword [ebp - 0xc]
push ebx
call fcn.00735a0d
push esi
call fcn.0073bc0a
add esp, 0xc
xor ebx, ebx
jmp 0x73176a
cmp byte [edi + 0x24], 0
je 0x7316f1
cmp dword [edi + 0x20], 5
jne 0x7316f1
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x7316fc
mov ebx, dword [edi + 0x18]
jmp 0x7316fe
xor ebx, ebx
push esi
call fcn.0073bc0a
pop ecx
jmp 0x73176a
test ecx, ecx
jg 0x7316d3
jl 0x731711
test eax, eax
jae 0x7316d3
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0073666d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x731731
cmp byte [edi + 0x1c], 0
je 0x7316d3
jmp 0x731762
push ebx
call fcn.00733156
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x7316d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x73176a
cmp byte [edi + 0x1c], 0
je 0x731767
mov ebx, dword [edi + 0x18]
jmp 0x73176a
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0073666d
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x7318a3
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 + 0x9369f0]
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 0x7318e3
cmp byte [ebx], 0xa
jne 0x7318e3
or byte [edi + eax + 0x28], 4
jmp 0x7318e8
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 0x7319e7
mov dl, byte [eax]
cmp dl, 0x1a
je 0x7319ca
inc eax
cmp dl, 0xd
je 0x731914
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x73193a
cmp eax, ecx
jae 0x731948
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 0x7318fc
jmp 0x7319e7
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 0x7319c5
cmp dword [ebp - 0x10], 0
je 0x7319c5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x9369f0]
test byte [eax + edi + 0x28], 0x48
je 0x73199f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x73198a
mov byte [esi], dl
jmp 0x73199b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x9369f0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x7319e7
cmp byte [ebp - 1], 0xa
jne 0x7319ae
cmp esi, ebx
jne 0x7319ae
mov byte [esi], 0xa
jmp 0x7319e6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0073666d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x7319e7
mov byte [esi], 0xd
jmp 0x7319e6
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x9369f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x7319e4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x7319e7
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret