joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406be0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x41317c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 4]
call sub.MFC42.DLL_CStringArray::CStringArray
mov dword [esi], 0x415998
push 0x4056e0
push 0x40b4e0
lea edi, [esi + 0x24]
push 1
xor ebx, ebx
push 0xc
push edi
mov dword [esp + 0x34], ebx
call fcn.00412086
mov dword [esi + 0x38], 0x415900
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], 0xa
lea ecx, [esi + 0x64]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString
lea eax, [esi + 0x1c]
mov dword [esi], 0x4159b0
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 3
mov byte [eax], bl
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
call sub.MFC42.DLL_CString::CString
push str.filenamebuf
mov ecx, edi
mov byte [esp + 0x24], 4
call fcn.00411de6
lea ecx, [esp + 0x14]
mov dword [esi + 0x28], 0x4071b0
mov dword [esi + 0x2c], 0x407280
mov byte [esi + 0x54], bl
mov byte [esi + 0x55], bl
mov dword [esi + 0x58], 2
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x20], 1
mov dword [esi + 0x18], 1
mov byte [esp + 0x20], 3
call fcn.00411daa
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x406bf9
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x41317c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 4]
call sub.MFC42.DLL_CStringArray::CStringArray
mov dword [esi], 0x415998
push 0x4056e0
push 0x40b4e0
lea edi, [esi + 0x24]
push 1
xor ebx, ebx
push 0xc
push edi
mov dword [esp + 0x34], ebx
call fcn.00412086
mov dword [esi + 0x38], 0x415900
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], 0xa
lea ecx, [esi + 0x64]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString
lea eax, [esi + 0x1c]
mov dword [esi], 0x4159b0
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 3
mov byte [eax], bl
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
call sub.MFC42.DLL_CString::CString
push str.filenamebuf
mov ecx, edi
mov byte [esp + 0x24], 4
call fcn.00411de6
lea ecx, [esp + 0x14]
mov dword [esi + 0x28], 0x4071b0
mov dword [esi + 0x2c], 0x407280
mov byte [esi + 0x54], bl
mov byte [esi + 0x55], bl
mov dword [esi + 0x58], 2
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x20], 1
mov dword [esi + 0x18], 1
mov byte [esp + 0x20], 3
call fcn.00411daa
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x40b320
Capabilities:
Check for peb beingdebugged flag
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x413afa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
call sub.MFC42.DLL_CStringArray::CStringArray
mov dword [esi], 0x415998
push 0x4056e0
push 0x40b4e0
lea eax, [esi + 0x24]
push 3
push 0xc
push eax
mov dword [esp + 0x34], 0
call fcn.00412086
lea edi, [esi + 0x50]
mov byte [esp + 0x20], 1
mov ecx, edi
mov dword [esp + 0x10], edi
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [edi + 0x14]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CStringArray::CStringArray
lea ebp, [esi + 0x78]
mov byte [esp + 0x20], 3
mov ecx, ebp
mov dword [esp + 0x10], ebp
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [ebp + 0x14]
mov byte [esp + 0x20], 4
call sub.MFC42.DLL_CStringArray::CStringArray
lea ebx, [esi + 0xa0]
mov byte [esp + 0x20], 5
mov ecx, ebx
mov dword [esp + 0x10], ecx
call sub.MFC42.DLL_CStringArray::CStringArray
mov eax, ebx
mov byte [esp + 0x20], 6
lea ecx, [eax + 0x14]
call sub.MFC42.DLL_CStringArray::CStringArray
lea edx, [esi + 0x1c]
xor ecx, ecx
mov dword [esi], 0x415a40
xor eax, eax
mov word [edx], cx
push str.CRC_H
mov byte [esp + 0x24], 7
mov byte [edx + 2], cl
lea ecx, [esi + 0x24]
mov dword [esi + 0x4c], eax
mov dword [esi + 0x48], eax
call fcn.00411de6
mov dword [esi + 0x28], 0x40bab0
mov dword [esi + 0x2c], 0x40bcc0
mov eax, dword [edi + 8]
push str._0X0
push eax
mov ecx, edi
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov edx, dword [esi + 0x6c]
lea ecx, [esi + 0x64]
push str.0XFF_
push edx
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
push str.CRC_L
lea ecx, [esi + 0x30]
call fcn.00411de6
mov dword [esi + 0x34], 0x40bb60
mov dword [esi + 0x38], 0x40bf90
mov eax, dword [ebp + 8]
push str._0x0
push eax
mov ecx, ebp
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov edx, dword [esi + 0x94]
lea ecx, [esi + 0x8c]
push str.0XFF_
push edx
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
push 0x419708
lea ecx, [esi + 0x3c]
call fcn.00411de6
mov dword [esi + 0x40], 0x40bc10
mov dword [esi + 0x44], 0x40c280
mov eax, dword [ebx + 8]
push str._0Xc0
push eax
mov ecx, ebx
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov edx, dword [esi + 0xbc]
lea ecx, [esi + 0xb4]
push str.0Xc0_
push edx
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov ecx, dword [esp + 0x18]
mov eax, 3
mov dword [esi + 0x20], eax
mov dword [esi + 0x18], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40b33a
Capabilities:
Check for peb beingdebugged flag
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x413afa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
call sub.MFC42.DLL_CStringArray::CStringArray
mov dword [esi], 0x415998
push 0x4056e0
push 0x40b4e0
lea eax, [esi + 0x24]
push 3
push 0xc
push eax
mov dword [esp + 0x34], 0
call fcn.00412086
lea edi, [esi + 0x50]
mov byte [esp + 0x20], 1
mov ecx, edi
mov dword [esp + 0x10], edi
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [edi + 0x14]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CStringArray::CStringArray
lea ebp, [esi + 0x78]
mov byte [esp + 0x20], 3
mov ecx, ebp
mov dword [esp + 0x10], ebp
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [ebp + 0x14]
mov byte [esp + 0x20], 4
call sub.MFC42.DLL_CStringArray::CStringArray
lea ebx, [esi + 0xa0]
mov byte [esp + 0x20], 5
mov ecx, ebx
mov dword [esp + 0x10], ecx
call sub.MFC42.DLL_CStringArray::CStringArray
mov eax, ebx
mov byte [esp + 0x20], 6
lea ecx, [eax + 0x14]
call sub.MFC42.DLL_CStringArray::CStringArray
lea edx, [esi + 0x1c]
xor ecx, ecx
mov dword [esi], 0x415a40
xor eax, eax
mov word [edx], cx
push str.CRC_H
mov byte [esp + 0x24], 7
mov byte [edx + 2], cl
lea ecx, [esi + 0x24]
mov dword [esi + 0x4c], eax
mov dword [esi + 0x48], eax
call fcn.00411de6
mov dword [esi + 0x28], 0x40bab0
mov dword [esi + 0x2c], 0x40bcc0
mov eax, dword [edi + 8]
push str._0X0
push eax
mov ecx, edi
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov edx, dword [esi + 0x6c]
lea ecx, [esi + 0x64]
push str.0XFF_
push edx
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
push str.CRC_L
lea ecx, [esi + 0x30]
call fcn.00411de6
mov dword [esi + 0x34], 0x40bb60
mov dword [esi + 0x38], 0x40bf90
mov eax, dword [ebp + 8]
push str._0x0
push eax
mov ecx, ebp
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov edx, dword [esi + 0x94]
lea ecx, [esi + 0x8c]
push str.0XFF_
push edx
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
push 0x419708
lea ecx, [esi + 0x3c]
call fcn.00411de6
mov dword [esi + 0x40], 0x40bc10
mov dword [esi + 0x44], 0x40c280
mov eax, dword [ebx + 8]
push str._0Xc0
push eax
mov ecx, ebx
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov edx, dword [esi + 0xbc]
lea ecx, [esi + 0xb4]
push str.0Xc0_
push edx
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov ecx, dword [esp + 0x18]
mov eax, 3
mov dword [esi + 0x20], eax
mov dword [esi + 0x18], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40e6b6
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov dword [ebp - 0x200], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1f8]
push eax
push 2
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x40e70c
push 0
push 0
push str.SOCK
call sub.MFC42.DLL_AfxMessageBox
mov dword [0x42a3e4], 0
xor eax, eax
jmp 0x40e7e3
mov dword [0x42a3e4], 1
push 0x50
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.WSOCK32.dll_gethostname]
lea edx, [ebp - 0x68]
push edx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40e73c
xor eax, eax
jmp 0x40e7e3
lea eax, [ebp - 0x68]
push eax
push 0x419840
push 0x42a3b8
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x254]
cmp dword [edx + eax*4], 0
je 0x40e7de
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x254]
mov ecx, dword [edx + eax*4]
mov edx, dword [ebp - 0x254]
mov eax, dword [ecx]
mov dword [ebp + edx*4 - 0x250], eax
mov ecx, dword [ebp - 0x254]
mov edx, dword [ebp + ecx*4 - 0x250]
mov dword [ebp - 0x1fc], edx
mov eax, dword [ebp - 0x1fc]
push eax
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
mov dword [ebp - 0x200], eax
mov ecx, dword [ebp - 0x200]
push ecx
push 0x419844
mov edx, dword [ebp - 0x254]
lea eax, [edx*4 + 0x42a3bc]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, dword [ebp - 0x254]
add ecx, 1
mov dword [ebp - 0x254], ecx
jmp 0x40e752
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x40e7e7
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0
push 2
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [0x42cfd0], eax
cmp dword [0x42cfd0], 0xffffffff
jne 0x40e81c
mov dword [0x42a3e4], 0
push 0
push 0
push 0x419848
call sub.MFC42.DLL_AfxMessageBox
mov word [0x42d0f0], 2
mov ecx, 0x42a3bc
call fcn.00411b20
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [0x42d0f4], eax
mov ecx, 0x42d1c8
call fcn.00411b20
push eax
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [0x42d0f2], ax
push 8
push 0
push 0x42d0f8
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x10
push 0x42d0f0
mov eax, dword [0x42cfd0]
push eax
call dword [sym.imp.WSOCK32.dll_bind]
test eax, eax
je 0x40e89c
mov dword [0x42a3e4], 0
push 0
push 0
push 0x419858
call sub.MFC42.DLL_AfxMessageBox
pop ebp
ret

Function at 0x40eb47
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x42a3e4], 0
je 0x40eb9c
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x40e89e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x42d21c], eax
cmp dword [0x42d21c], 0
jne 0x40eb9c
mov dword [0x42a3e4], 0
push 0
push 0
push str.sock1
call sub.MFC42.DLL_AfxMessageBox
mov esp, ebp
pop ebp
ret
Function at 0x40ecd6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x42d1f4]
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x14]
jae 0x40ed0c
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x24], edx
jmp 0x40ed12
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jbe 0x40ede3
mov edx, dword [ebp - 4]
imul edx, edx, 0x14
add edx, 0x42d028
push edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x42d1f4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40ede3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40edc3
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
imul eax, eax, 0x14
add eax, 0x42d028
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x42d1f4]
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x40edc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x3e4
jne 0x40eda1
jmp 0x40ed66
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x42d1f4]
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov dword [ebp - 8], 0
jmp 0x40ede3
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x42d1f4]
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x40edea
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 1
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x42d1f4]
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x14]
jae 0x40ee20
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x24], edx
jmp 0x40ee26
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jbe 0x40eef7
mov edx, dword [ebp - 4]
imul edx, edx, 0x14
add edx, 0x42d028
push edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x42d1f4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40eef7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40eed7
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
imul eax, eax, 0x14
add eax, 0x42d028
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x42d1f4]
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x40eed5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x3e4
jne 0x40eeb5
jmp 0x40ee7a
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x42d1f4]
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov dword [ebp - 8], 0
jmp 0x40eef7
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x42d1f4]
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x40eefe
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 2
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x42d1f4]
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x14]
jae 0x40ef34
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x24], edx
jmp 0x40ef3a
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jbe 0x40f00b
mov edx, dword [ebp - 4]
imul edx, edx, 0x14
add edx, 0x42d028
push edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x42d1f4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40f00b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40efeb
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
imul eax, eax, 0x14
add eax, 0x42d028
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x42d1f4]
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x40efe9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x3e4
jne 0x40efc9
jmp 0x40ef8e
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x42d1f4]
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov dword [ebp - 8], 0
jmp 0x40f00b
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x42d1f4]
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x40f012
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 3
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x42d1f4]
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x14]
jae 0x40f048
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x24], edx
jmp 0x40f04e
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jbe 0x40f11f
mov edx, dword [ebp - 4]
imul edx, edx, 0x14
add edx, 0x42d028
push edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x42d1f4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40f11f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40f0ff
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
imul eax, eax, 0x14
add eax, 0x42d028
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x42d1f4]
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x40f0fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x3e4
jne 0x40f0dd
jmp 0x40f0a2
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x42d1f4]
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov dword [ebp - 8], 0
jmp 0x40f11f
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x42d1f4]
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x40f126
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 4
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x42d1f4]
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x14]
jae 0x40f15c
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x24], edx
jmp 0x40f162
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jbe 0x40f233
mov edx, dword [ebp - 4]
imul edx, edx, 0x14
add edx, 0x42d028
push edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x42d1f4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40f233
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40f213
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
imul eax, eax, 0x14
add eax, 0x42d028
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x42d1f4]
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x40f211
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x3e4
jne 0x40f1f1
jmp 0x40f1b6
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x42d1f4]
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov dword [ebp - 8], 0
jmp 0x40f233
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x42d1f4]
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x40f23a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 5
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x42d1f4]
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x14]
jae 0x40f270
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x24], edx
jmp 0x40f276
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jbe 0x40f347
mov edx, dword [ebp - 4]
imul edx, edx, 0x14
add edx, 0x42d028
push edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x42d1f4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40f347
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40f327
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
imul eax, eax, 0x14
add eax, 0x42d028
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x42d1f4]
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x40f325
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x3e4
jne 0x40f305
jmp 0x40f2ca
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x42d1f4]
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov dword [ebp - 8], 0
jmp 0x40f347
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x42d1f4]
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x40f34e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 6
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x42d1f4]
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x14]
jae 0x40f384
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x24], edx
jmp 0x40f38a
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jbe 0x40f45b
mov edx, dword [ebp - 4]
imul edx, edx, 0x14
add edx, 0x42d028
push edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x42d1f4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40f45b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40f43b
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
imul eax, eax, 0x14
add eax, 0x42d028
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x42d1f4]
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x40f439
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x3e4
jne 0x40f419
jmp 0x40f3de
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x42d1f4]
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov dword [ebp - 8], 0
jmp 0x40f45b
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x42d1f4]
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret