joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402280
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x204
lea eax, [esp + 0x2cc]
lea ecx, [esp + 4]
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push edi
push eax
push str.___s_r_n
push ecx
call ebp
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov esi, dword [esp + 0x218]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
not ecx
lea edx, [esp + 0x10]
push 0
dec ecx
push edx
lea eax, [esp + 0x1c]
push ecx
push eax
push esi
call ebx
lea ecx, [esp + 0xd80]
lea edx, [esp + 0x1a28]
push ecx
push edx
lea eax, [esp + 0x1c]
push str.Content_Type:__s__name__s__r_n
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x10]
lea edi, [esp + 0x14]
xor eax, eax
push 0
push ecx
or ecx, 0xffffffff
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call ebx
lea eax, [esp + 0xd80]
lea ecx, [esp + 0x14]
push eax
push str.Content_Disposition:_attachment__r_n_filename__s__r_n
push ecx
call ebp
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x10]
push 0
dec ecx
push edx
lea eax, [esp + 0x1c]
push ecx
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push str.Content_Transfer_Encoding:_base64_r_n
push ecx
call ebp
add esp, 8
lea edx, [esp + 0x10]
push 0
push edx
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x1c]
push ecx
push eax
push esi
call ebx
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, 0x40d244
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x40d244
push esi
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret

Function at 0x4023a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x204
lea eax, [esp + 0x2cc]
lea ecx, [esp + 4]
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push edi
push eax
push str.___s_r_n
push ecx
call ebp
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov esi, dword [esp + 0x218]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
not ecx
lea edx, [esp + 0x10]
push 0
dec ecx
push edx
lea eax, [esp + 0x1c]
push ecx
push eax
push esi
call ebx
lea ecx, [esp + 0x29c]
lea edx, [esp + 0x14]
push ecx
push str.Content_Type:__s_r_n
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
push 0
push eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x20]
push ecx
push esi
call ebx
lea edx, [esp + 0x25c]
lea eax, [esp + 0x14]
push edx
push str.Content_Transfer_Encoding:__s_r_n
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
lea edi, [esp + 0x14]
xor eax, eax
push 0
push ecx
or ecx, 0xffffffff
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push 0
push eax
mov edi, 0x40d244
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x40d244
push esi
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret
Function at 0x402490
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x204
lea eax, [esp]
or ecx, 0xffffffff
push ebx
push esi
push edi
push 0
push eax
mov edi, 0x40d244
xor eax, eax
mov esi, dword [esp + 0x21c]
repne scasb al, byte es:[edi]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
not ecx
dec ecx
push ecx
push 0x40d244
push esi
call ebx
lea ecx, [esp + 0x2d8]
lea edx, [esp + 0x10]
push ecx
push str.___s___r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0xc]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
push 0
push eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x1c]
push ecx
push esi
call ebx
mov edi, 0x40d244
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
push 0
dec ecx
push edx
push ecx
push 0x40d244
push esi
call ebx
pop edi
pop esi
pop ebx
add esp, 0x204
ret

Function at 0x402530
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x204
lea eax, [esp + 0x210]
lea ecx, [esp + 4]
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push edi
push eax
push str.MIME_Version:__s_r_n
push ecx
call ebp
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov esi, dword [esp + 0x218]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
not ecx
lea edx, [esp + 0x10]
push 0
dec ecx
push edx
lea eax, [esp + 0x1c]
push ecx
push eax
push esi
call ebx
mov ecx, dword [esp + 0x21c]
mov edx, dword [esp + 0x1cb0]
mov eax, dword [esp + 0x1cac]
add ecx, 0xe29
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
push str.Content_Type:_message_partial__number_d__total_d__id__s__r_n
push ecx
call ebp
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x10]
push 0
dec ecx
push edx
lea eax, [esp + 0x1c]
push ecx
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push str.Content_Transfer_Encoding:_7bit_r_n
push ecx
call ebp
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x10]
push 0
dec ecx
push edx
lea eax, [esp + 0x1c]
push ecx
push eax
push esi
call ebx
push str.E_MailPrinting_Version_2.0.1
lea ecx, [esp + 0x18]
push str.X_Mailer:__s_r_n
push ecx
call ebp
add esp, 0xc
push 0
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
lea eax, [esp + 0x1c]
push ecx
push eax
push esi
call ebx
mov eax, dword [esp + 0x21c]
mov ecx, dword [eax + 0xb58]
test ecx, ecx
je 0x402647
push eax
push esi
call fcn.00401f70
add esp, 8
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, 0x40d244
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x40d244
push esi
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret
Function at 0x402950
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x214
push ebx
push ebp
mov ebp, dword [esp + 0x220]
push esi
push edi
or ecx, 0xffffffff
lea ebx, [ebp + 0xe84]
xor eax, eax
mov edi, ebx
mov esi, dword [ebp + 0xb50]
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor edx, edx
mov eax, ecx
mov dword [esp + 0x18], ecx
div esi
xor edx, edx
mov edi, eax
mov eax, ecx
div esi
mov dword [esp + 0x1c], edi
test edx, edx
je 0x402998
inc edi
mov dword [esp + 0x1c], edi
xor esi, esi
mov dword [esp + 0x10], ebx
test edi, edi
mov dword [esp + 0x20], esi
jle 0x402b76
mov eax, dword [esp + 0x1cbc]
push esi
push eax
lea ecx, [esp + 0x2c]
push str._sTmpAttFiles__d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x24]
push 0
push 0x4000000
push 4
push 0
push 0
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp + 0xe74]
mov dword [ecx + esi*4], eax
mov edx, dword [ebp + 0xe74]
mov ebx, dword [edx + esi*4]
cmp ebx, 0xffffffff
je 0x402b69
test esi, esi
jne 0x402abe
mov eax, dword [esp + 0x1cb8]
lea esi, [esp + 0x22c]
push eax
push 1
mov eax, 0x1a8c
call fcn.00406ba0
mov ecx, 0x6a3
mov edi, esp
push ebp
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.00402680
mov eax, dword [esp + 0x1dd8]
add esp, 0x1a9c
test eax, eax
je 0x402a68
mov eax, 0x1a8c
lea esi, [esp + 0x22c]
call fcn.00406ba0
mov ecx, 0x6a3
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push ebx
call fcn.004023a0
add esp, 0x1a90
mov edx, dword [ebp + 0xb50]
mov edi, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
push edi
push ebx
call esi
mov eax, dword [ebp + 0xb50]
push 0
add edi, eax
or ecx, 0xffffffff
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x1c]
sub edi, eax
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], edi
push eax
mov edi, 0x40d244
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x40d244
push ebx
call esi
jmp 0x402b61
mov ecx, dword [esp + 0x1cb8]
inc esi
push ecx
push esi
mov eax, 0x1a8c
lea esi, [esp + 0x234]
call fcn.00406ba0
mov ecx, 0x6a3
mov edi, esp
push ebp
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.00402530
mov eax, dword [ebp + 0xb50]
mov esi, dword [esp + 0x1ab4]
add esp, 0x1a9c
cmp esi, eax
push 0
jbe 0x402b1c
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0xb50]
jmp 0x402b32
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
add edi, eax
lea ecx, [esp + 0x14]
push 0
mov dword [esp + 0x14], edi
sub esi, eax
push ecx
mov edi, 0x40d244
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x20], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x40d244
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
inc esi
cmp esi, edi
mov dword [esp + 0x20], esi
jl 0x4029aa
mov dword [ebp + 0xe80], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
Function at 0x404d30
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x148
push ebx
mov ebx, dword [esp + 0x15c]
cmp ebx, 0x40
push esi
jle 0x404d87
lea eax, [esp + 0xf8]
push eax
call fcn.00401000
mov ecx, dword [esp + 0x160]
push ebx
lea edx, [esp + 0x100]
push ecx
push edx
call fcn.00401030
lea eax, [esp + 0x108]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.004010e0
add esp, 0x18
lea edx, [esp + 8]
mov ebx, 0x10
jmp 0x404d8e
mov edx, dword [esp + 0x15c]
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xb8]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x74]
mov esi, edx
rep stosd dword es:[edi], eax
mov ecx, ebx
stosb byte es:[edi], al
mov eax, ecx
lea edi, [esp + 0xb8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
mov esi, edx
mov edx, ecx
lea edi, [esp + 0x74]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
pop edi
mov cl, byte [esp + eax + 0xb4]
mov bl, byte [esp + eax + 0x70]
xor cl, 0x36
xor bl, 0x5c
mov byte [esp + eax + 0xb4], cl
mov byte [esp + eax + 0x70], bl
inc eax
cmp eax, 0x40
jl 0x404de0
lea eax, [esp + 0x18]
push eax
call fcn.00401000
lea ecx, [esp + 0xb8]
push 0x40
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.00401030
mov eax, dword [esp + 0x168]
mov ecx, dword [esp + 0x164]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.00401030
mov esi, dword [esp + 0x180]
lea eax, [esp + 0x34]
push eax
push esi
call fcn.004010e0
lea ecx, [esp + 0x3c]
push ecx
call fcn.00401000
lea edx, [esp + 0x98]
push 0x40
lea eax, [esp + 0x44]
push edx
push eax
call fcn.00401030
push 0x10
lea ecx, [esp + 0x50]
push esi
push ecx
call fcn.00401030
add esp, 0x40
lea edx, [esp + 0x18]
push edx
push esi
call fcn.004010e0
add esp, 8
pop esi
pop ebx
add esp, 0x148
ret

Function at 0x404ea0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov ecx, dword [esp + 4]
cmp eax, 0xffffffff
mov dword [ecx], eax
jne 0x404ebe
call sub.WSOCK32.dll_WSAGetLastError
xor eax, eax
ret
mov eax, 1
ret
Function at 0x404ef0
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 8], 0x800
push edi
call sub.WSOCK32.dll_inet_addr
mov esi, eax
cmp esi, 0xffffffff
jne 0x404f25
push edi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x404f1e
pop edi
pop esi
add esp, 0x14
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov esi, dword [ecx]
mov eax, dword [esp + 0x28]
xor edx, edx
mov dword [esp + 0xc], edx
push eax
mov dword [esp + 0x14], edx
mov word [esp + 0x10], 2
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
call sub.WSOCK32.dll_htons
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0xc]
push 0x10
push ecx
push esi
mov word [esp + 0x1a], ax
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x404f74
call sub.WSOCK32.dll_WSAGetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
lea edx, [esp + 8]
push 4
push edx
push 0x1001
push 0xffff
push esi
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x404f9d
call sub.WSOCK32.dll_WSAGetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
lea eax, [esp + 8]
push 4
push eax
push 0x1002
push 0xffff
push esi
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x404fc6
call sub.WSOCK32.dll_WSAGetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
pop edi
mov eax, 1
pop esi
add esp, 0x14
ret

Function at 0x404fe0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x405003
call sub.WSOCK32.dll_WSAGetLastError
xor eax, eax
ret
mov eax, 1
ret

Function at 0x405010
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0x405033
call sub.WSOCK32.dll_WSAGetLastError
or eax, 0xffffffff
ret

Function at 0x405040
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push ecx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405063
xor eax, eax
ret
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
ret
Function at 0x4050a0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push ecx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4050c3
xor eax, eax
ret
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov eax, dword [edx]
mov edx, dword [esp + 0x14]
push eax
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
ret
Function at 0x4055c0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x1668
call fcn.00406ba0
push ebx
mov ebx, dword [esp + 0x24ec]
push ebp
xor ebp, ebp
push esi
push edi
test ebx, ebx
je 0x4056fa
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x40560f
lea eax, [esp + 0x167c]
push eax
call fcn.00404920
add esp, 4
mov eax, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1668
ret
test eax, eax
mov byte [esp + 0x98], 0
jbe 0x4056fa
lea edi, [esp + 0x98]
or ecx, 0xffffffff
xor eax, eax
mov edx, 0x15e0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
mov edi, ecx
lea ecx, [esp + 0x14]
sub edx, edi
push ecx
lea eax, [esp + edi + 0xa0]
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
push 0
add ebp, ecx
push 0
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x10]
lea esi, [esp + 0x98]
add edx, edi
mov dword [esp + 0x10], edx
je 0x4056f0
mov al, byte [esi]
lea ecx, [esp + 0x18]
cmp al, 0x3b
je 0x405692
test edx, edx
jbe 0x4056c5
mov byte [ecx], al
mov al, byte [esi + 1]
inc ecx
inc esi
dec edx
cmp al, 0x3b
mov dword [esp + 0x10], edx
jne 0x40567e
mov edx, dword [esp + 0x167c]
mov byte [ecx], 0
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.00404710
mov edi, eax
add esp, 8
test edi, edi
jne 0x405707
mov edx, dword [esp + 0x10]
inc esi
dec edx
mov dword [esp + 0x10], edx
jne 0x405674
mov byte [esp + 0x98], al
jmp 0x4056f0
mov byte [ecx], 0
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x98]
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]
cmp ebp, dword [esp + 0x14]
jb 0x40561f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1668
ret
lea ecx, [esp + 0x167c]
push ecx
call fcn.00404920
push edi
call fcn.004049a0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1668
ret
Function at 0x405990
Capabilities:
Hide graphical window
Initialize winsock library

Disassembly:
sub esp, 0x3dc
mov dl, byte [0x40ff20]
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x151]
mov byte [esp + 0x150], dl
mov byte [esp + 0x4c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x4d]
mov edx, dword [esp + 0x3f0]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x150]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x150]
push eax
push ecx
push edx
call fcn.004060b0
add esp, 0xc
test eax, eax
jne 0x405a08
pop edi
pop esi
add esp, 0x3dc
ret 0x10
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x405a42
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, str.SystemCurrentControlSetControlPrintMonitorsPort_Set_Up_Port
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]
lea eax, [esp + 0x254]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x405b8e
mov eax, dword [esp + 0x3ec]
mov esi, dword [esp + 0x3e8]
test eax, eax
jne 0x405af5
push 0
push 0x10
push 0x10
push 1
push 0x75
push esi
mov dword [esp + 0x20], 3
mov dword [esp + 0x24], 0x405ba0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], esi
call dword [sym.imp.USER32.dll_LoadImageA]
push 0x7f00
push 0
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 1
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], str.E_mail_Printing
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x405af5
pop edi
xor eax, eax
pop esi
add esp, 0x3dc
ret 0x10
push 0
push esi
push 0
push 0
push 0x64
push 0x78
push connect
push connect
lea edx, [esp + 0x170]
push 0xcf0000
push edx
push str.E_mail_Printing
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x405b35
pop edi
pop esi
add esp, 0x3dc
ret 0x10
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea eax, [esp + 0x38]
push 0
push eax
call esi
test eax, eax
je 0x405b89
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [esp + 0x34]
push ecx
call edi
lea edx, [esp + 0x34]
push edx
call ebx
push 0
push 0
lea eax, [esp + 0x3c]
push 0
push eax
call esi
test eax, eax
jne 0x405b69
pop ebx
call sub.WSOCK32.dll_WSACleanup
mov eax, dword [0x410dc0]
pop edi
pop esi
add esp, 0x3dc
ret 0x10
Function at 0x409a95
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40fd70
cmp edx, dword [eax]
je 0x409ab7
add eax, 8
inc ecx
cmp eax, 0x40fe00
jl 0x409aa8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40fd70]
jne 0x409be5
mov eax, dword [0x413724]
cmp eax, 1
je 0x409bbf
test eax, eax
jne 0x409ae8
cmp dword [0x40d984], 1
je 0x409bbf
cmp edx, 0xfc
je 0x409be5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x409b1f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040a9e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408f50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x409b62
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408f50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c4e8
push edi
call fcn.0040a8a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040a9e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040a9f0
lea eax, [ebp - 0xa0]
push 0x40c4c8
push eax
call fcn.0040a9f0
push dword [esi + 0x40fd74]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040a9f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040ae05
add esp, 0x2c
pop edi
jmp 0x409be5
lea eax, [ebp + 8]
lea esi, [esi + 0x40fd74]
push 0
push eax
push dword [esi]
call fcn.00408f50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x265b47fe
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section._RDATA
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x372f086c
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219