joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e3f0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x4780c0]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
xor eax, eax
push edi
mov edi, dword [esp + 0x28]
push 4
cmp byte [esi + 0x71b], al
setne al
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x41e450
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.0041c3c0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0043a7f3
add esp, 0x18
ret
push dword [esi + 0x6b8]
mov dword [esp + 0x14], 1
call fcn.0041e670
push dword [esi + 0x6bc]
imul eax, eax, 0x3e8
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
call fcn.0041e670
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x28]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x41e4c7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
push esi
call fcn.0041c3c0
add esp, 0x10
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.0043a7f3
add esp, 0x18
ret

Function at 0x41e4e0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x108
mov eax, dword [0x4780c0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
lea eax, [esp + 4]
push 4
push eax
push 1
push 6
push dword [esp + 0x124]
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x41e545
push 0x100
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00432380
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.0041c3c0
add esp, 0x18
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.0043a7f3
add esp, 0x108
ret
Function at 0x41e6b0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x4647f0
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x41e6ca
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x46480c
push esi
call fcn.00445060
add esp, 8
test eax, eax
je 0x41e712
test ebp, ebp
je 0x41e703
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x41e738
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41e738
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x41e7ef
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41e755
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41e7e5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x41e7e5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41e787
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41e7a0
sub ecx, edx
add ecx, ebx
sub ecx, esi
lea ecx, [ecx]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x41e7b0
test ebp, ebp
je 0x41e7dc
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x478004]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x478004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x423030
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x42304c
cmp dword [esi + 0x78], 0
je 0x42304c
push 2
push 3
push esi
call fcn.0041f840
add esp, 0xc
push dword [esp + 0xc]
call fcn.00422b40
add esp, 4
test esi, esi
je 0x42306d
cmp dword [esi + 0x78], 0
je 0x42306d
push 3
push esi
call fcn.0041f880
add esp, 8
pop esi
ret
Function at 0x42b2b0
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
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x34
mov eax, dword [0x4780c0]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
push edi
mov edi, dword [esp + 0x4c]
push 6
push 1
push 2
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x42b4a2
xorps xmm0, xmm0
mov eax, 2
movdqu xmmword [esp + 0x18], xmm0
push 0x7f000001
mov word [esp + 0x1c], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x1c], eax
xor eax, eax
push 4
mov word [esp + 0x1e], ax
lea eax, [esp + 0x18]
push eax
push 4
push 0xffff
push esi
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x42b490
push 0x10
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x42b490
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x42b490
cmp dword [esp + 8], 0x10
jl 0x42b490
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x42b490
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x42b490
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x42b490
push 1
push esi
call fcn.00432f90
add esp, 8
test eax, eax
js 0x42b490
push 0
push 0x2710
lea eax, [esp + 0x14]
mov dword [esp + 0x14], esi
push 1
push eax
mov dword [esp + 0x20], 0x300
call fcn.00428560
add esp, 0x10
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x42b490
lea eax, [esp + 8]
mov dword [esp + 8], 0x10
push eax
lea eax, [esp + 0x1c]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x42b490
cmp dword [esp + 8], 0x10
jl 0x42b490
lea eax, [esp + 8]
mov dword [esp + 8], 0x10
push eax
lea eax, [esp + 0x2c]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x42b490
cmp dword [esp + 8], 0x10
jl 0x42b490
mov ax, word [esp + 0x18]
cmp ax, word [esp + 0x28]
jne 0x42b490
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x2c]
jne 0x42b490
mov ax, word [esp + 0x1a]
cmp ax, word [esp + 0x2a]
jne 0x42b490
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0043a7f3
add esp, 0x34
ret
push esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
push dword [edi]
call esi
push dword [edi + 4]
call esi
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.0043a7f3
add esp, 0x34
ret
Function at 0x42b4f0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
xor ebx, ebx
mov dword [esp + 8], ebx
mov dword [eax], ebx
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x42b66c
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x42b657
push ebp
push edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42b54e
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42b540
sub eax, edx
lea ebp, [eax + 1]
jmp 0x42b550
xor ebp, ebp
cmp dword [esi + 4], 2
jne 0x42b5f9
cmp dword [esi + 0x18], 0
je 0x42b5f9
mov eax, dword [esi + 0x10]
test eax, eax
je 0x42b5f9
cmp eax, 0x10
jb 0x42b5f9
lea eax, [ebp + 0x30]
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
je 0x42b648
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
lea ecx, [edi + 0x20]
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0x10
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], ecx
mov eax, dword [esi + 0x18]
movdqu xmm0, xmmword [eax]
movdqu xmmword [ecx], xmm0
test ebp, ebp
je 0x42b5e5
mov eax, dword [edi + 0x18]
add eax, 0x10
push ebp
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.0043c080
add esp, 0xc
mov eax, dword [esp + 0x14]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x42b5f5
mov dword [eax + 0x1c], edi
mov dword [esp + 0x14], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x42b532
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
pop edi
pop ebp
test eax, eax
je 0x42b619
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x42b653
test ebx, ebx
je 0x42b638
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x478004]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x42b621
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x24]
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0xc
ret
mov esi, 8
mov dword [esp + 0x10], esi
jmp 0x42b608
test ebx, ebx
jne 0x42b663
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x24]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x42f7a0
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 [0x478008]
mov edi, eax
add esp, 8
test edi, edi
je 0x42f777
lea ebx, [ebx]
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 0x42f78f
cmp esi, ebx
je 0x42f78f
cmp esi, 0x8000
ja 0x42f78f
cmp esi, ebx
jb 0x42f788
push esi
push edi
call dword [0x478008]
mov edi, eax
add esp, 8
test edi, edi
jne 0x42f740
push ebp
call dword [0x478004]
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 [0x478004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
jmp 0x42f720

Function at 0x4336e0
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.004226f0
push dword [esp + 0x38]
movdqu xmm0, xmmword [eax]
movdqu xmmword [esp + 0x18], xmm0
call fcn.0044e504
push dword [esp + 0x40]
mov edi, eax
call fcn.0044e504
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x433779
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
lea eax, [esp + 0x20]
push eax
call fcn.004226f0
movdqu xmm0, xmmword [esp + 0x14]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movdqu xmmword [ecx], xmm0
mov ecx, esp
movdqu xmm0, xmmword [eax]
movdqu xmmword [ecx], xmm0
call fcn.00422790
add esp, 0x20
test edx, edx
ja 0x43379d
jb 0x43376b
cmp eax, 0x3e8
ja 0x43379d
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x433730
test edi, edi
je 0x433786
push edi
call fcn.00442cf9
add esp, 4
test esi, esi
je 0x433793
push esi
call fcn.00442cf9
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x4337aa
push edi
call fcn.00442cf9
add esp, 4
test esi, esi
je 0x4337b7
push esi
call fcn.00442cf9
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x435390
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x4780c0]
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 + 0x14], edi
call fcn.0044e504
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x435408
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00432470
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.0041c2f0
add esp, 0x1c
lea esi, [ebx + 0x4d]
jmp 0x435547
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x43545a
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00432470
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.0041c2f0
add esp, 0x1c
mov esi, 0x4d
jmp 0x435547
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x43549a
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00432470
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.0041c2f0
add esp, 0x1c
mov esi, 0x4d
jmp 0x43553d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x4354c8
jg 0x4354ae
cmp edi, 0x100000
jbe 0x4354c8
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.0041c2f0
add esp, 0xc
mov esi, 0x4d
jmp 0x43553d
lea eax, [edi + 1]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4354e0
lea esi, [eax + 0x1b]
jmp 0x43553d
test edi, edi
je 0x435524
jmp 0x4354f0
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 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 0x435585
mov eax, dword [esp + 0x14]
test eax, eax
je 0x43557d
add esi, eax
cmp esi, edi
jb 0x4354f0
mov byte [edi + ebx], 0
push ebp
push dword [esp + 0x14]
push edi
push ebx
push dword [esp + 0x2c]
call fcn.00435190
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x478004]
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x435562
push eax
call fcn.00442cf9
add esp, 4
mov ecx, dword [esp + 0x12c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043a7f3
add esp, 0x120
ret
mov edi, esi
mov byte [esi + ebx], 0
jmp 0x435528
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00432470
push eax
push dword [esp + 0x20]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.0041c2f0
add esp, 0x1c
mov esi, 0x4d
jmp 0x43553d
Function at 0x43b67c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43b6bb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43b6bb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43b6bb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43b6bb
cmp dword [ecx + 0x74], 0xe
jbe 0x43b6bb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x443d68
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0043b100
mov eax, dword [0x4780c0]
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.00451ef1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x443daa
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x443f06
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0043aba0
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 + 0x479de0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00454d3e
mov ecx, dword [esi*4 + 0x479de0]
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 0x443eff
cmp eax, dword [ecx + edi + 0x24]
jne 0x443eff
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 0x443eff
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00454d3e
add esp, 0x14
test edx, edx
jl 0x443eff
jg 0x443e75
test eax, eax
jb 0x443eff
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x443eff
jl 0x443e8f
cmp dword [ebp - 0x1008], eax
ja 0x443eff
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x443ead
test ebx, ebx
je 0x443ee6
cmp ecx, edi
jae 0x443ee6
mov al, byte [ecx]
cmp al, 0xd
jne 0x443ec7
lea eax, [edi - 1]
cmp ecx, eax
jae 0x443ed3
cmp byte [ecx + 1], 0xa
jne 0x443ed3
inc ecx
jmp 0x443ed3
movzx eax, al
movsx eax, byte [eax + 0x478290]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x443ead
cmp edx, ebx
jne 0x443ead
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x443f04
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043a7f3
leave
ret
Function at 0x446882
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4780c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x46ce30
push esi
call fcn.0045606d
pop ecx
pop ecx
test eax, eax
jne 0x4468b0
xor al, al
jmp 0x44692d
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.004465b7
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4468ea
push dword [ebp - 0x210]
call fcn.00442cf9
xor al, al
jmp 0x44692b
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4468f0
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x446910
push edx
call fcn.004467b9
pop ecx
test al, al
je 0x4468db
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x44691e
mov bl, 1
push dword [ebp - 0x210]
call fcn.00442cf9
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043a7f3
leave
ret
Function at 0x44e558
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 + 0x479de0]
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 0x44e598
cmp byte [ebx], 0xa
jne 0x44e598
or byte [edi + eax + 0x28], 4
jmp 0x44e59d
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 0x44e69c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x44e67f
inc eax
cmp dl, 0xd
je 0x44e5c9
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x44e5ef
cmp eax, ecx
jae 0x44e5fd
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 0x44e5b1
jmp 0x44e69c
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 0x44e67a
cmp dword [ebp - 0x10], 0
je 0x44e67a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x479de0]
test byte [eax + edi + 0x28], 0x48
je 0x44e654
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x44e63f
mov byte [esi], dl
jmp 0x44e650
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x479de0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x44e69c
cmp byte [ebp - 1], 0xa
jne 0x44e663
cmp esi, ebx
jne 0x44e663
mov byte [esi], 0xa
jmp 0x44e69b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00454d5c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44e69c
mov byte [esi], 0xd
jmp 0x44e69b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x479de0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44e699
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44e69c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44e6a5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x479de0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x44e6eb
cmp word [ebx], dx
jne 0x44e6eb
or byte [eax + edi + 0x28], 4
jmp 0x44e6f0
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x44e853
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x44e833
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x44e731
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x44e767
cmp eax, edx
jae 0x44e775
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x44e70c
jmp 0x44e853
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44e82e
cmp dword [ebp - 0x18], 0
je 0x44e82e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x479de0]
test byte [eax + edi + 0x28], 0x48
je 0x44e804
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x44e7c8
mov word [esi], cx
jmp 0x44e7ff
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x479de0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x479de0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x479de0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x44e853
pop eax
cmp word [ebp - 4], ax
jne 0x44e814
cmp esi, ebx
jne 0x44e814
mov word [esi], ax
jmp 0x44e850
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00454d5c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x44e853
push 0xd
pop eax
jmp 0x44e80f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x479de0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x44e84d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x44e853
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret