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

Disassembly:
sub esp, 0x188
mov eax, dword [0x4770c0]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
mov ebx, dword [esp + 0x190]
lea eax, [esp + 8]
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [esp + 0x1a4]
push 0x80
push 0
push eax
mov dword [esp + 0x18], 0x80
call fcn.0043bb80
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1a4]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x41cbd7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.00431fd0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x41cc18
push edi
push esi
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.0041c7b0
add esp, 0x10
test al, al
jne 0x41cc21
call fcn.004434dc
mov esi, eax
call fcn.004434dc
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push dword [esi]
call fcn.00431fd0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0041bf40
add esp, 0x1c
mov ecx, dword [esp + 0x190]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043a453
add esp, 0x188
ret

Function at 0x41d350
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x478314]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x41d3a1
push 3
push 2
push eax
push eax
push 6
call fcn.00432dd0
add esp, 0x14
test al, al
je 0x41d395
mov dword [0x478314], 2
add esp, 0xc
ret
mov dword [0x478314], 1
jmp 0x41d3a6
cmp eax, 2
je 0x41d3ec
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x41d3d1
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x41d3ec
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x41e040
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x4770c0]
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 0x41e0a0
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.0041c010
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0043a453
add esp, 0x18
ret
push dword [esi + 0x6b8]
mov dword [esp + 0x14], 1
call fcn.0041e2c0
push dword [esi + 0x6bc]
imul eax, eax, 0x3e8
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
call fcn.0041e2c0
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 0x41e117
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.0041c010
add esp, 0x10
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.0043a453
add esp, 0x18
ret

Function at 0x41e130
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x108
mov eax, dword [0x4770c0]
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 0x41e195
push 0x100
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00431fd0
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.0041c010
add esp, 0x18
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.0043a453
add esp, 0x108
ret
Function at 0x41e300
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x4637f0
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x41e31a
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 0x46380c
push esi
call fcn.00444cc0
add esp, 8
test eax, eax
je 0x41e362
test ebp, ebp
je 0x41e353
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 0x41e388
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41e388
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 0x41e43f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41e3a5
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 0x41e435
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x41e435
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41e3d7
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 0x41e3f0
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 0x41e400
test ebp, ebp
je 0x41e42c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x477004]
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 [0x477004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x422c80
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x422c9c
cmp dword [esi + 0x78], 0
je 0x422c9c
push 2
push 3
push esi
call fcn.0041f490
add esp, 0xc
push dword [esp + 0xc]
call fcn.00422790
add esp, 4
test esi, esi
je 0x422cbd
cmp dword [esi + 0x78], 0
je 0x422cbd
push 3
push esi
call fcn.0041f4d0
add esp, 8
pop esi
ret
Function at 0x42af10
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 [0x4770c0]
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 0x42b102
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 0x42b0f0
push 0x10
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x42b0f0
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 0x42b0f0
cmp dword [esp + 8], 0x10
jl 0x42b0f0
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x42b0f0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x42b0f0
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x42b0f0
push 1
push esi
call fcn.00432be0
add esp, 8
test eax, eax
js 0x42b0f0
push 0
push 0x2710
lea eax, [esp + 0x14]
mov dword [esp + 0x14], esi
push 1
push eax
mov dword [esp + 0x20], 0x300
call fcn.004281b0
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 0x42b0f0
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 0x42b0f0
cmp dword [esp + 8], 0x10
jl 0x42b0f0
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 0x42b0f0
cmp dword [esp + 8], 0x10
jl 0x42b0f0
mov ax, word [esp + 0x18]
cmp ax, word [esp + 0x28]
jne 0x42b0f0
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x2c]
jne 0x42b0f0
mov ax, word [esp + 0x1a]
cmp ax, word [esp + 0x2a]
jne 0x42b0f0
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.0043a453
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.0043a453
add esp, 0x34
ret
Function at 0x42b150
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 0x42b2cc
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x42b2b7
push ebp
push edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42b1ae
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42b1a0
sub eax, edx
lea ebp, [eax + 1]
jmp 0x42b1b0
xor ebp, ebp
cmp dword [esi + 4], 2
jne 0x42b259
cmp dword [esi + 0x18], 0
je 0x42b259
mov eax, dword [esi + 0x10]
test eax, eax
je 0x42b259
cmp eax, 0x10
jb 0x42b259
lea eax, [ebp + 0x30]
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
je 0x42b2a8
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 0x42b245
mov eax, dword [edi + 0x18]
add eax, 0x10
push ebp
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.0043bce0
add esp, 0xc
mov eax, dword [esp + 0x14]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x42b255
mov dword [eax + 0x1c], edi
mov dword [esp + 0x14], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x42b192
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
pop edi
pop ebp
test eax, eax
je 0x42b279
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x42b2b3
test ebx, ebx
je 0x42b298
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x477004]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x42b281
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 0x42b268
test ebx, ebx
jne 0x42b2c3
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 0x42f400
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 [0x477008]
mov edi, eax
add esp, 8
test edi, edi
je 0x42f3d7
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 0x42f3ef
cmp esi, ebx
je 0x42f3ef
cmp esi, 0x8000
ja 0x42f3ef
cmp esi, ebx
jb 0x42f3e8
push esi
push edi
call dword [0x477008]
mov edi, eax
add esp, 8
test edi, edi
jne 0x42f3a0
push ebp
call dword [0x477004]
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 [0x477004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
jmp 0x42f380

Function at 0x433330
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.00422340
push dword [esp + 0x38]
movdqu xmm0, xmmword [eax]
movdqu xmmword [esp + 0x18], xmm0
call fcn.0044e162
push dword [esp + 0x40]
mov edi, eax
call fcn.0044e162
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 0x4333c9
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
lea eax, [esp + 0x20]
push eax
call fcn.00422340
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.004223e0
add esp, 0x20
test edx, edx
ja 0x4333ed
jb 0x4333bb
cmp eax, 0x3e8
ja 0x4333ed
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x433380
test edi, edi
je 0x4333d6
push edi
call fcn.00442959
add esp, 4
test esi, esi
je 0x4333e3
push esi
call fcn.00442959
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x4333fa
push edi
call fcn.00442959
add esp, 4
test esi, esi
je 0x433407
push esi
call fcn.00442959
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x434ff0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x4770c0]
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.0044e162
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x435068
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004320c0
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.0041bf40
add esp, 0x1c
lea esi, [ebx + 0x4d]
jmp 0x4351a7
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 0x4350ba
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004320c0
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.0041bf40
add esp, 0x1c
mov esi, 0x4d
jmp 0x4351a7
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4350fa
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004320c0
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.0041bf40
add esp, 0x1c
mov esi, 0x4d
jmp 0x43519d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x435128
jg 0x43510e
cmp edi, 0x100000
jbe 0x435128
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.0041bf40
add esp, 0xc
mov esi, 0x4d
jmp 0x43519d
lea eax, [edi + 1]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x435140
lea esi, [eax + 0x1b]
jmp 0x43519d
test edi, edi
je 0x435184
jmp 0x435150
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 0x4351e5
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4351dd
add esi, eax
cmp esi, edi
jb 0x435150
mov byte [edi + ebx], 0
push ebp
push dword [esp + 0x14]
push edi
push ebx
push dword [esp + 0x2c]
call fcn.00434df0
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x477004]
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x4351c2
push eax
call fcn.00442959
add esp, 4
mov ecx, dword [esp + 0x12c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043a453
add esp, 0x120
ret
mov edi, esi
mov byte [esi + ebx], 0
jmp 0x435188
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004320c0
push eax
push dword [esp + 0x20]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.0041bf40
add esp, 0x1c
mov esi, 0x4d
jmp 0x43519d
Function at 0x43b2dc
Capabilities:
Parse pe header

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

Function at 0x4439c8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0043ad60
mov eax, dword [0x4770c0]
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.00451b4f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x443a0a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x443b66
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0043a800
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 + 0x478de0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0045499c
mov ecx, dword [esi*4 + 0x478de0]
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 0x443b5f
cmp eax, dword [ecx + edi + 0x24]
jne 0x443b5f
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 0x443b5f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0045499c
add esp, 0x14
test edx, edx
jl 0x443b5f
jg 0x443ad5
test eax, eax
jb 0x443b5f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x443b5f
jl 0x443aef
cmp dword [ebp - 0x1008], eax
ja 0x443b5f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x443b0d
test ebx, ebx
je 0x443b46
cmp ecx, edi
jae 0x443b46
mov al, byte [ecx]
cmp al, 0xd
jne 0x443b27
lea eax, [edi - 1]
cmp ecx, eax
jae 0x443b33
cmp byte [ecx + 1], 0xa
jne 0x443b33
inc ecx
jmp 0x443b33
movzx eax, al
movsx eax, byte [eax + 0x477290]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x443b0d
cmp edx, ebx
jne 0x443b0d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x443b64
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043a453
leave
ret
Function at 0x4464e3
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4770c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x46be30
push esi
call fcn.00455ccb
pop ecx
pop ecx
test eax, eax
jne 0x446511
xor al, al
jmp 0x44658e
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.00446218
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x44654b
push dword [ebp - 0x210]
call fcn.00442959
xor al, al
jmp 0x44658c
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x446551
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x446571
push edx
call fcn.0044641a
pop ecx
test al, al
je 0x44653c
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x44657f
mov bl, 1
push dword [ebp - 0x210]
call fcn.00442959
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043a453
leave
ret
Function at 0x44e1b6
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 + 0x478de0]
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 0x44e1f6
cmp byte [ebx], 0xa
jne 0x44e1f6
or byte [edi + eax + 0x28], 4
jmp 0x44e1fb
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 0x44e2fa
mov dl, byte [eax]
cmp dl, 0x1a
je 0x44e2dd
inc eax
cmp dl, 0xd
je 0x44e227
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x44e24d
cmp eax, ecx
jae 0x44e25b
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 0x44e20f
jmp 0x44e2fa
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 0x44e2d8
cmp dword [ebp - 0x10], 0
je 0x44e2d8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x478de0]
test byte [eax + edi + 0x28], 0x48
je 0x44e2b2
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x44e29d
mov byte [esi], dl
jmp 0x44e2ae
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x478de0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x44e2fa
cmp byte [ebp - 1], 0xa
jne 0x44e2c1
cmp esi, ebx
jne 0x44e2c1
mov byte [esi], 0xa
jmp 0x44e2f9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004549ba
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44e2fa
mov byte [esi], 0xd
jmp 0x44e2f9
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x478de0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44e2f7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44e2fa
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret