joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404980
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x50c
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x416de8
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [0x416de4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
je 0x4049f2
push 0x416de8
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [esp + 0x51c]
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push 0
lea ecx, [esp + 0x10]
push eax
push ecx
push 8
push esi
push edx
jmp 0x404a06
mov ecx, dword [esp + 0x51c]
lea eax, [esp + 8]
push 0
push eax
push 0
push 0
push esi
push ecx
call sub.DNSAPI.dll_DnsQuery_A
test eax, eax
jne 0x404b23
push ebx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x404b11
mov ebx, dword [esp + 0x520]
mov ax, word [ebp + 8]
cmp ax, 1
jne 0x404a9e
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, eax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
push edx
rep stosd dword es:[edi], eax
mov edx, dword [ebp + 4]
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
push ebx
lea eax, [esp + 0x28]
push str._s_t_s_t_s_r_n
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x11c]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x404aa4
cmp ax, 0xc
je 0x404ab1
mov ebp, dword [ebp]
test ebp, ebp
jne 0x404a28
jmp 0x404b11
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0x18]
lea ecx, [esp + 0x11c]
push eax
push ebx
push str._s_t_s_r_n
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x11c]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x11c]
push eax
call fcn.0040ebf0
add esp, 4
pop ebp
pop ebx
mov ecx, dword [esp + 8]
push 1
push ecx
call sub.DNSAPI.dll_DnsRecordListFree
pop edi
xor eax, eax
pop esi
add esp, 0x50c
ret 8
Function at 0x405dc0
Capabilities:
Send icmp echo request

Disassembly:
sub esp, 0xa0
push esi
mov esi, ecx
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0xac]
cmp edi, 0xffffffff
je 0x405e54
call sub.iphlpapi.dll_IcmpCreateFile
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x405e54
push 0x3e8
lea ecx, [esp + 0x2c]
push 0x3c
push ecx
push 0
lea edx, [esp + 0x18]
push 0x20
push edx
push edi
push eax
call sub.iphlpapi.dll_IcmpSendEcho
test eax, eax
je 0x405e54
cmp dword [esp + 0x28], edi
jne 0x405e54
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0xb0]
and eax, 0xff
pop edi
mov dword [ecx], eax
mov eax, 1
pop esi
add esp, 0xa0
ret 8
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret 8

Function at 0x405e70
Capabilities:
Create tcp socket

Disassembly:
push esi
mov esi, ecx
mov dword [esi], 0x4112d8
mov eax, dword [0x416e48]
test eax, eax
jle 0x405e9e
mov ecx, dword [0x416e44]
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esi + 8], eax
jmp 0x405ea5
mov dword [esi + 8], 0xd3d
mov eax, dword [0x4167a0]
test eax, eax
jbe 0x405ec4
push 6
push 1
push 2
mov dword [esi + 0xc], eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
mov eax, esi
pop esi
ret
push 6
push 1
push 2
mov dword [esi + 0xc], 0x7d0
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
mov eax, esi
pop esi
ret
Function at 0x409a20
Capabilities:
Create tcp socket

Disassembly:
push esi
mov esi, ecx
mov dword [esi], 0x411300
mov eax, dword [0x416e48]
test eax, eax
jle 0x409a4e
mov ecx, dword [0x416e44]
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esi + 0xc], eax
jmp 0x409a55
mov dword [esi + 0xc], 0x1bd
mov eax, dword [0x4167a0]
test eax, eax
jbe 0x409a63
mov dword [esi + 0x10], eax
jmp 0x409a6a
mov dword [esi + 0x10], 0x7d0
lea ecx, [esi + 0x14]
xor eax, eax
push 6
push 1
mov dword [ecx], eax
push 2
mov dword [ecx + 4], eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
mov eax, esi
pop esi
ret
Function at 0x40a000
Capabilities:
Create raw socket
Create tcp socket
Create udp socket
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov eax, 0x1188
call fcn.0040f7b0
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x119c]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 6
mov eax, ecx
mov esi, edi
mov edi, edx
push 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebx + 0x10]
mov edx, dword [esp + 0x119c]
push ecx
mov ebp, eax
push 0x87
push edx
push ebp
call fcn.0040df60
add esp, 0x10
cmp eax, 1
jge 0x40a0ac
cmp dword [0x41679c], 1
jbe 0x40a1e2
mov eax, dword [ebx + 0xc]
lea ecx, [esp + 0x28]
push eax
push ecx
push str._s__d_Closed__n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 0xc
jmp 0x40a1e2
mov ecx, 0x12
mov esi, 0x4160b0
lea edi, [esp + 0x48]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x3ff
lea edi, [esp + 0x199]
mov byte [esp + 0x198], 0
xor edx, edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x11], edx
lea ecx, [esp + 0x48]
mov dword [esp + 0x15], edx
mov byte [esp + 0x10], 0
mov dword [esp + 0x19], edx
mov dword [esp + 0x98], ebp
stosw word es:[edi], ax
mov word [esp + 0x1d], dx
mov dword [esp + 0x94], 1
push edx
push 0x49
stosb byte es:[edi], al
mov eax, dword [ebx + 0x10]
push ecx
push ebp
mov byte [esp + 0x2f], dl
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x40a13f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Recv_Error:__d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
jmp 0x40a1e2
lea edx, [esp + 0x20]
lea eax, [esp + 0x94]
push edx
push 0
push 0
lea ecx, [ebp + 1]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x40a16e
push str.time_out_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
jmp 0x40a1e2
lea edx, [esp + 0x94]
push edx
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x40a19b
push 0
lea eax, [esp + 0x19c]
push 0x1000
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x40a125
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, 4
lea edi, [esp + 0x10]
lea esi, [esp + 0x1bf]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
lea edx, [ebx + 0x14]
mov edi, 0x4160ac
je 0x40a1c5
mov edi, 0x4160a8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1188
ret 4
Function at 0x40a320
Capabilities:
Access peb ldr_data
Terminate process

Disassembly:
sub esp, 0x14
xor eax, eax
mov byte [esp], 0
mov dword [esp + 1], eax
mov ecx, dword [esp]
mov dword [esp + 5], eax
add ecx, 0x322e3276
mov dword [esp + 9], eax
mov edx, dword [esp + 8]
mov dword [esp + 0xd], eax
mov dword [esp], ecx
mov ecx, dword [esp + 0xc]
mov word [esp + 0x11], ax
add ecx, 0x30
mov byte [esp + 0x13], al
mov eax, dword [esp + 4]
mov dword [esp + 0xc], ecx
lea ecx, [esp]
add eax, 0x32303220
add edx, 0x31313130
push ecx
push 0x415e7c
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
push 0
call dword [sym.imp.MSVCRT.dll_exit]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0xffffffffffffffff
push 0x40ff78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
lea eax, [esp]
mov dword [esp], 0
push eax
call fcn.0040d3b0
add esp, 4
test eax, eax
je 0x40a412
lea ecx, [esp + 4]
call fcn.00409a20
mov ecx, dword [esp]
mov dword [esp + 0x28], 0
push ecx
lea ecx, [esp + 8]
call fcn.00409fd0
lea ecx, [esp + 4]
mov dword [esp + 0x28], 0xffffffff
call fcn.00409ab0
lea edx, [esp]
push edx
call fcn.0040d3b0
add esp, 4
test eax, eax
jne 0x40a3d1
mov ecx, dword [esp + 0x20]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x40d480
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4100d8
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
push 0
push 0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CString::GetBuffer
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push 0
push 0xfde9
call ebp
mov ebx, eax
lea edi, [ebx + ebx + 2]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
push esi
rep stosb byte es:[edi], al
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
push 0xfde9
call ebp
mov eax, dword [0x416ab8]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
lea edi, [ebp + 1]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, edi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
push 0
and ecx, 3
push ebp
push ebx
rep stosb byte es:[edi], al
mov eax, dword [0x416ab8]
push 0xffffffffffffffff
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [esp + 0x24]
mov ecx, edi
call sub.MFC42.DLL_CString::Empty
push ebx
mov ecx, edi
call fcn.0040f9d6
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 8
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret

Function at 0x40dd70
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40dd9f
pop edi
pop esi
pop ebp
or eax, eax
pop ebx
ret
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
ja 0x40ddb5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
mov dword [esp + 0x18], 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x14]
push 0
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ddf5
pop edi
pop esi
pop ebp
pop ebx
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.00403180
push esi
push ebx
mov ecx, edi
call fcn.00403000
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40df60
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
sub esp, 0x20
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push esi
push ecx
mov word [esp + 0x18], 2
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [esp + 0x28]
lea edx, [esp + 0x2c]
push edx
push 0x8004667e
push esi
mov word [esp + 0x22], ax
mov dword [esp + 0x38], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x40dfab
xor eax, eax
pop esi
add esp, 0x20
ret
lea eax, [esp + 0x14]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov ecx, dword [esp + 0x34]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
mov dword [esp + 0x10], esi
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov dword [esp + 4], edx
mov esi, 0x3e8
cdq
idiv esi
lea eax, [esp + 4]
mov dword [esp + 0xc], 1
mov dword [esp + 8], edx
xor edx, edx
test ecx, ecx
setle dl
dec edx
lea ecx, [esp + 0xc]
and edx, eax
push edx
push 0
push ecx
push 0
push 0
call dword [sym.imp.WS2_32.dll_select]
pop esi
add esp, 0x20
ret
Function at 0x40e9c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Set socket configuration

Disassembly:
sub esp, 0x120
mov eax, dword [esp + 0x124]
push esi
push edi
push eax
mov word [esp + 0x18], 2
call fcn.0040e4e0
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [esp + 0x130]
mov dword [esp + 0x18], eax
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov edi, 1
push 6
push edi
push 2
mov word [esp + 0x22], ax
call dword [sym.imp.WS2_32.dll_socket]
lea edx, [esp + 8]
mov esi, eax
push edx
push 0x8004667e
push esi
mov dword [esp + 0x14], edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x40ea33
pop edi
xor eax, eax
pop esi
add esp, 0x120
ret
lea eax, [esp + 0x14]
push 0x10
push eax
push esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], edi
call dword [sym.imp.WS2_32.dll_connect]
mov eax, 0x10624dd3
lea ecx, [esp + 0xc]
mul dword [0x4167a0]
shr edx, 6
mov dword [esp + 0xc], edx
push ecx
lea edx, [esp + 0x28]
push 0
push edx
push 0
push 0
mov dword [esp + 0x24], 0
call dword [sym.imp.WS2_32.dll_select]
xor ecx, ecx
push esi
test eax, eax
setg cl
mov edi, ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
pop edi
pop esi
add esp, 0x120
ret

Function at 0x40eba0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0x41659c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x40ebe9
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test ecx, ecx
jg 0x40ebd4
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
push esi
push 1
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop esi
ret
Function at 0x40f84c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411310
push 0x40f98a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x416fdc], 0xffffffff
or dword [0x416fe0], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x416fcc]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x416fc8]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x416fd8], eax
call fcn.0040f989
cmp dword [0x4165e8], 0
jne 0x40f8cf
push 0x40f986
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040f974
push 0x4130b4
push 0x4130b0
call sub.MSVCRT.dll__initterm
mov eax, dword [0x416fc4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x416fc0]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x4130ac
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.0040aa10
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x424000
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x228
mov eax, dword [0x462500]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x22c]
push ebx
push ebp
push esi
push edi
push 0x2c
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], 0
call fcn.0040732c
mov esi, dword [esp + 0x24c]
mov ebx, eax
mov edi, dword [esp + 0x248]
add esp, 4
xor ecx, ecx
mov dword [ebx], ebx
mov dword [ebx + 4], ebx
mov dword [ebx + 8], ebx
mov word [ebx + 0xc], 0x101
mov dword [esp + 0x14], ebx
nop dword [eax]
mov eax, ecx
mov byte [esp + ecx + 0x34], cl
cdq
idiv esi
mov al, byte [edx + edi]
mov byte [esp + ecx + 0x134], al
inc ecx
cmp ecx, 0x100
jl 0x424060
xor esi, esi
xor edi, edi
mov dl, byte [esp + esi + 0x34]
movzx eax, byte [esp + esi + 0x134]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x4240a3
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x34]
mov byte [esp + esi + 0x34], al
inc esi
mov byte [esp + edi + 0x34], dl
cmp esi, 0x100
jl 0x424080
xor ecx, ecx
xor ebp, ebp
xor edi, edi
cmp dword [esp + 0x240], ecx
jle 0x4241c0
movsd xmm0, qword [0x425448]
movsd qword [esp + 0x2c], xmm0
nop dword [eax]
inc ebp
and ebp, 0x800000ff
jns 0x4240f1
dec ebp
or ebp, 0xffffff00
inc ebp
mov bl, byte [esp + ebp + 0x34]
movzx esi, bl
add ecx, esi
and ecx, 0x800000ff
jns 0x42410a
dec ecx
or ecx, 0xffffff00
inc ecx
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], ecx
push eax
push 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call fcn.00401640
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
movzx eax, byte [esp + ecx + 0x34]
mov byte [esp + ebp + 0x34], al
mov byte [esp + ecx + 0x34], bl
movzx eax, byte [esp + ebp + 0x34]
add eax, esi
movzx eax, al
movzx eax, byte [esp + eax + 0x34]
xor byte [edx + edi], al
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x4241ae
mov ecx, dword [esp + 0x24]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x424188
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4241f6
push ecx
push edx
call fcn.0040735c
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
inc edi
cmp edi, dword [esp + 0x240]
jl 0x4240e0
mov ebx, dword [esp + 0x14]
push dword [ebx + 4]
lea eax, [esp + 0x18]
push eax
mov ecx, eax
call fcn.00401810
push 0x2c
push dword [esp + 0x18]
call fcn.0040735c
mov ecx, dword [esp + 0x23c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040736f
add esp, 0x228
ret
call fcn.0040bcef
int3
Function at 0x424610
Capabilities:
Create thread

Disassembly:
sub esp, 0x18
push str.Madino_Mino_n
push 0x463728
call fcn.004010d0
add esp, 8
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 4
call fcn.0040732c
add esp, 4
test eax, eax
je 0x424641
mov dword [eax], 0x424320
jmp 0x424643
xor eax, eax
lea ecx, [esp + 8]
push ecx
push 0
push eax
push 0x401ca0
push 0
push 0
call fcn.0040f276
add esp, 0x18
mov dword [esp + 4], eax
test eax, eax
je 0x424739
cmp dword [esp + 8], 0
je 0x424748
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [esp + 8]
cmp ecx, eax
je 0x42474f
push 0
push ecx
push dword [esp + 0xc]
call fcn.00404fd9
add esp, 0xc
test eax, eax
jne 0x424756
push esi
xorps xmm0, xmm0
mov dword [esp + 0x10], eax
xor ecx, ecx
movlpd qword [esp + 8], xmm0
push edi
mov dword [esp + 0x18], eax
lea edi, [eax + 0x64]
mov dword [esp + 0x1c], ecx
mov dword [esp + 8], eax
nop dword [eax + eax]
mov esi, 2
cmp eax, ecx
je 0x4246d8
mov dword [eax], 0
add eax, 4
mov dword [esp + 0x18], eax
jmp 0x4246ef
lea ecx, [esp + 8]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401480
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
sub esi, 1
jne 0x4246c5
sub edi, 1
jne 0x4246c0
mov edx, dword [esp + 0x14]
pop edi
pop esi
test edx, edx
je 0x42472c
sub ecx, edx
mov eax, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x424722
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42475d
push ecx
push edx
call fcn.0040735c
add esp, 8
cmp dword [esp + 8], 0
jne 0x424762
xor eax, eax
add esp, 0x18
ret
push 6
mov dword [esp + 0xc], 0
call fcn.004051c9
push 1
call fcn.004051c9
push 5
call fcn.004051c9
push 2
call fcn.004051c9
call fcn.0040bcef
call fcn.0040f0b6
int3
Function at 0x816058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8161a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x81607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x81606a
add dl, dl
jne 0x816089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8160dc
xor eax, eax
add dl, dl
jne 0x816096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x81617d
add dl, dl
jne 0x8160a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8160b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8160bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8160c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8160d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x816075
mov eax, 1
add dl, dl
jne 0x8160ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8160f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8160e1
sub eax, ebx
mov ebx, 1
jne 0x816128
mov ecx, 1
add dl, dl
jne 0x81610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x816119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x816105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x816075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x81613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x81614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x816136
cmp eax, 0x7d00
jae 0x81616d
cmp eax, 0x500
jb 0x816168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x816075
cmp eax, 0x7f
ja 0x816170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x816075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x81619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x816075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10