joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a10
Capabilities:
Hash data using crc32b

Disassembly:
push ebx
xor edx, edx
push edi
xor eax, eax
test dl, 1
je 0x403a20
mov eax, 0x80
mov ecx, edx
shr ecx, 1
test cl, 1
je 0x403a2c
or eax, 0x40
shr ecx, 1
test cl, 1
je 0x403a36
or eax, 0x20
shr ecx, 1
test cl, 1
je 0x403a40
or eax, 0x10
shr ecx, 1
test cl, 1
je 0x403a4a
or eax, 8
shr ecx, 1
test cl, 1
je 0x403a54
or eax, 4
shr ecx, 1
test cl, 1
je 0x403a5e
or eax, 2
test cl, 2
je 0x403a66
or eax, 1
shl eax, 0x18
mov ecx, eax
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
xor edi, edi
mov dword [esi + edx*4], ecx
mov eax, ecx
lea ecx, [edi + 0x1f]
jmp 0x403b20
test al, 1
je 0x403b2d
mov ebx, 1
shl ebx, cl
or edi, ebx
dec ecx
shr eax, 1
cmp ecx, 0xffffffff
jg 0x403b20
mov dword [esi + edx*4], edi
inc edx
cmp edx, 0xff
jle 0x403a14
pop edi
pop ebx
ret

Function at 0x403b50
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x428428
lea eax, [ebp - 4]
push str..ProtectProtect.sse
push eax
mov dword [esi], 0xffffffff
mov dword [ebp - 4], 0
call fcn.0040dec6
add esp, 0xc
test eax, eax
je 0x403b85
xor al, al
mov esp, ebp
pop ebp
ret 4
push edi
push 0x400
call fcn.0040df0d
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x403bb1
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040e00e
add esp, 4
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 4]
push edx
push 0x400
push 1
push edi
call fcn.0040e2cc
add esp, 0x10
test eax, eax
je 0x403c12
push ebx
lea ebx, [ebx]
mov ecx, eax
mov edx, edi
test eax, eax
je 0x403bf9
mov eax, dword [esi]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr eax, 8
xor eax, dword [ebx + edi*4]
inc edx
dec ecx
mov dword [esi], eax
jne 0x403bd8
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
push eax
push 0x400
push 1
push edi
call fcn.0040e2cc
add esp, 0x10
test eax, eax
jne 0x403bd0
pop ebx
push edi
call fcn.0040e2e9
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040e00e
mov edx, dword [esi]
add esp, 8
not edx
mov dword [esi], edx
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x403ed0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2b4
mov eax, dword [0x42c670]
xor eax, esp
mov dword [esp + 0x2b0], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
jmp 0x403f02
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x4073e0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x430760
push 0x66
push esi
mov dword [0x4307e8], eax
call edi
push 0x64
push 0x4306f8
push 0x68
push esi
call edi
mov eax, esi
call fcn.004040d0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, esi
call fcn.00404150
add esp, 4
test eax, eax
jne 0x403f68
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2b0]
xor ecx, esp
call fcn.0040d6a3
mov esp, ebp
pop ebp
ret 0x10
mov edi, 0x42f680
call fcn.00409ed0
push 1
mov ecx, 0x448eb8
call fcn.00407970
push str.STANDBY
lea ecx, [esp + 0x1bc]
push str.__2.0.4___MHPServer___s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x4306f0]
add esp, 0xc
lea edx, [esp + 0x1b8]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [0x4306f0]
push ecx
mov ecx, 0x42e4c8
call fcn.00409a30
lea edx, [esp + 0x28]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
jne 0x404007
movzx eax, word [0x42f68c]
push eax
mov ecx, 0x448f00
call fcn.0040a2c0
test al, al
je 0x40401d
call fcn.00409e60
mov ecx, dword [0x4306f0]
push 0
push 0x3e8
push 0x64
push ecx
call ebx
jmp 0x40401d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAStartup___failed_with_error:__d
push 1
call fcn.0040b3f0
add esp, 0xc
mov edx, dword [0x4306f0]
push 0
push 0x7d0
push 0x65
push edx
call ebx
push 0x68
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
mov esi, eax
push 0
lea eax, [esp + 0x18]
push eax
call edi
test eax, eax
je 0x40408f
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
push esi
push edx
call ebx
test eax, eax
jne 0x40407e
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea edx, [esp + 0x18]
push edx
call edi
test eax, eax
jne 0x404057
mov eax, dword [0x4307e8]
push eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
jmp 0x4040ad
mov ecx, dword [esp + 0x2bc]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040d6a3
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404150
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x42c670]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
mov edi, dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, ecx
push esi
push 0
push 0
push 0x258
push 0x258
push 0
push closesocket
push 0xa0000
push 0x430760
push 0x4306f8
push 0
mov dword [0x4306f4], esi
call edi
mov dword [0x4306f0], eax
test eax, eax
jne 0x4041b4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d6a3
mov esp, ebp
pop ebp
ret
push 0
push esi
push 0x69
push eax
push 0
push 0
push 0
push 0
push 0x50000000
push 0
push str.msctls_statusbar32
push 0
call edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov esi, eax
push 0
push esi
call edi
lea eax, [ebp - 0x10]
push eax
push 3
push 0x404
push esi
mov dword [ebp - 0x10], 0x8c
mov dword [ebp - 0xc], 0x106
mov dword [ebp - 8], 0xffffffff
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 8]
mov edx, dword [0x4306f0]
push ecx
push edx
call edi
mov eax, dword [0x4306f0]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0040d6a3
mov esp, ebp
pop ebp
ret

Function at 0x406c20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x42c670]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x42e47c]
push ebx
push esi
push edi
test eax, eax
js 0x406d28
cmp eax, 2
jge 0x406d28
mov esi, eax
imul esi, esi, 0x214
push ecx
add esi, 0x42e054
inc eax
lea edi, [esi + 4]
push 0x100
mov dword [0x42e47c], eax
push edi
mov dword [esi], 1
call fcn.0040ddab
add esp, 0xc
cmp dword [esi], 0
je 0x406d28
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
movzx ecx, word [ebp - 0x12]
movzx edx, word [ebp - 0x14]
push eax
push ecx
push edx
push edi
lea ebx, [esi + 0x110]
push str.._s_04d__02d__02d.txt
push ebx
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
mov dword [esi + 0x10c], edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x406d03
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d6a3
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x406d28
mov ecx, dword [esi + 0x210]
push ecx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d6a3
mov esp, ebp
pop ebp
ret
Function at 0x406d40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x42c670]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
js 0x406f37
cmp eax, dword [ecx + 0x42c]
jge 0x406f37
imul eax, eax, 0x214
cmp dword [eax + ecx + 4], 0
lea esi, [eax + ecx + 4]
je 0x406f37
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x812]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
cmp ecx, dword [esi + 0x104]
jne 0x406dc6
movzx edx, word [ebp - 0x816]
cmp edx, dword [esi + 0x108]
jne 0x406dc6
movzx eax, word [ebp - 0x818]
cmp eax, dword [esi + 0x10c]
je 0x406e83
mov ecx, dword [esi + 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [ebp - 0x812]
movzx ecx, word [ebp - 0x816]
movzx edx, word [ebp - 0x818]
push eax
push ecx
push edx
mov dword [esi + 0x10c], edx
lea edx, [esi + 4]
push edx
lea edi, [esi + 0x110]
push str.._s_04d__02d__02d.txt
push edi
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
call ebx
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x406e4d
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d6a3
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x406e83
mov eax, dword [esi + 0x210]
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d6a3
mov esp, ebp
pop ebp
ret
push 0x3ff
lea ecx, [ebp - 0x807]
push 0
push ecx
mov byte [ebp - 0x808], 0
call fcn.0040f6c0
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
push edx
push eax
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call fcn.0040e5bd
push 0x3ff
lea edx, [ebp - 0x407]
push 0
push edx
mov byte [ebp - 0x408], 0
call fcn.0040f6c0
movzx ecx, word [ebp - 0x80c]
movzx edx, word [ebp - 0x80e]
lea eax, [ebp - 0x808]
push eax
movzx eax, word [ebp - 0x810]
push ecx
push edx
push eax
lea ecx, [ebp - 0x408]
push str._02d:_02d:_02d__s_r_n
push ecx
call ebx
lea eax, [ebp - 0x408]
add esp, 0x40
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406f10
mov ecx, dword [esi + 0x210]
sub eax, edx
push 0
lea edx, [ebp - 0x81c]
push edx
push eax
lea eax, [ebp - 0x408]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d6a3
mov esp, ebp
pop ebp
ret
Function at 0x406f90
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push eax
mov esi, ecx
lea ebx, [esi + 0xc]
push 0x100
push ebx
call fcn.0040ddab
add esp, 0xc
push 0
push 0x20
push 3
push 0
push 1
push closesocket
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x406fe7
push ebx
push str.__s__Could_not_open_file
add esi, 0x218
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x40700a
push eax
call fcn.0040e5da
add esp, 4
mov dword [esi + 4], 0
mov ecx, dword [esi + 8]
push ecx
call fcn.0040ce43
add esp, 4
mov dword [esi + 4], eax
test eax, eax
jne 0x407043
push ebx
push str.__s__Could_not_alloc_file_buffer
add esi, 0x218
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 8]
push 0
lea edx, [ebp - 4]
push edx
push ecx
push eax
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407068
push ebx
push str.__s__Could_not_read_file
jmp 0x407023
mov eax, dword [esi + 4]
cmp byte [eax], 0xef
jne 0x407084
cmp byte [eax + 1], 0xbb
jne 0x407084
cmp byte [eax + 2], 0xbf
jne 0x407084
push ebx
push str.__s__The_file_is_codified_in_UTF_8_BOM_and_cannot_be_read._Change_it_to_UTF_8_and_try_again
jmp 0x407023
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop edi
mov dword [esi + 0x214], eax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4075c0
Capabilities:
Get common file path
Get disk information
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x42c670]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
jmp 0x4075e8
jmp 0x4075fa
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x407621
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d6a3
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10c]
push ecx
push 0
push 0
lea edx, [ebp - 0x108]
push edx
mov byte [ebp - 0x105], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x407610
push ebx
push esi
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10c]
mov edx, dword [ebp - 0x11c]
movzx esi, word [ebp - 0x130]
movzx ebx, word [ebp - 0x10e]
mov ecx, eax
imul ecx, eax
shl edx, 0x10
or edx, eax
shr eax, 2
imul edx, edx, 0x14ce1989
shl esi, 0xe
or esi, eax
mov eax, dword [ebp - 0x110]
and eax, 0xf5fb
shl ebx, 0x10
or eax, ebx
xor eax, 0x15ca2020
push eax
push esi
push edx
sub ecx, 0x13b06451
push ecx
push 0x12ba1074
push 0x64
push 0x42dd78
mov ecx, edi
call fcn.00408150
push eax
add edi, 8
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
jmp 0x4076df
jmp 0x4076f6
mov ecx, dword [ebp - 4]
pop esi
pop ebx
xor ecx, ebp
mov al, 1
pop edi
call fcn.0040d6a3
mov esp, ebp
pop ebp
ret

Function at 0x407710
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42c670]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
jmp 0x407736
jmp 0x407748
cmp dword [esi + 4], 0xffffffff
je 0x407762
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d6a3
mov esp, ebp
pop ebp
ret 8
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x40774e
mov ecx, dword [ebp + 0xc]
mov eax, 2
push ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [ebp + 8]
push edi
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x4077c1
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4077c1
movsx edx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
push edx
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.0040f350
add esp, 0xc
mov ecx, dword [esi + 4]
push 0x10
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4077e7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40774e
jmp 0x4077f9
jmp 0x407810
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0040d6a3
mov esp, ebp
pop ebp
ret 8
Function at 0x407830
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42c670]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
jmp 0x407858
jmp 0x40786a
call fcn.004075c0
test al, al
jne 0x407886
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d6a3
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
movzx edx, word [0x43075c]
push eax
lea ecx, [esi + 8]
push ecx
push edx
push 0x90
push 0x42dca0
mov ecx, esi
call fcn.00408150
push eax
lea edx, [ebp - 0x108]
call fcn.00408290
add esp, 0x10
push str.Content_type:_application_x_www_form_urlencoded
push 0x48
push 0x42dd30
mov ecx, esi
call fcn.00408150
push eax
push str._HTTP_1.1_r_nHost:__s_r_n_s_r_n_r_n
lea edx, [ebp - 0x20c]
call fcn.00408290
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x108]
push 0x104
push ecx
call fcn.0040ec0a
lea eax, [ebp - 0x108]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407900
sub eax, edx
push 0
push eax
mov eax, dword [esi + 4]
lea edx, [ebp - 0x108]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x407933
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x407873
jmp 0x407945
jmp 0x40795c
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.0040d6a3
mov esp, ebp
pop ebp
ret 4
Function at 0x407d00
Capabilities:
Terminate process

Disassembly:
push esi
push edi
push 0x2d
push 0
push 0x448ec0
call fcn.0040f6c0
add esp, 0xc
push 0x10
xor eax, eax
push 0x18
push 0x42dddc
mov ecx, 0x448eb8
mov dword [0x448eed], eax
mov dword [0x448ef1], eax
mov dword [0x448ef5], eax
call fcn.00408150
push eax
push 0x8c
push 0x42ddf8
mov ecx, 0x448eb8
call fcn.00408150
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
call edi
push eax
call esi
jmp dword [pe_dos_header]

Function at 0x407d70
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
jmp 0x407d8e
jmp 0x407da0
jmp 0x407db2
push 0x10000000
pop dword [0x4491a4]
jmp 0x407dcb
cmp dword [0x4491a4], 0x10000000
je 0x407e3d
xor eax, eax
mov dword [0x4281f8], eax
mov dword [0x4281fc], eax
mov dword [0x428200], eax
mov dword [str.Rwu__], eax
mov dword [0x428208], eax
mov dword [0x42820c], eax
mov dword [0x428210], eax
mov dword [0x428214], eax
mov dword [0x428218], eax
mov dword [0x42821c], eax
mov dword [str.p_H:], eax
mov dword [0x428224], eax
mov dword [0x428228], eax
mov dword [0x42822c], eax
mov dword [0x428230], eax
mov dword [0x428234], eax
mov dword [0x428238], eax
mov dword [str.r_], eax
mov dword [0x428240], eax
mov dword [0x428244], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
push 0xc
lea eax, [ebp - 0x28]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleInformation]
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
lea edx, [ebp - 0x10]
add ebx, eax
push edx
mov dword [ebp - 0x14], ebx
call fcn.00407ff0
test al, al
je 0x407f36
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
mov eax, edi
call fcn.004080a0
test al, al
je 0x407f36
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 4]
push ecx
push 0x40
push 0x10
push edi
call ebx
mov ecx, 0x428208
mov eax, edi
sub ecx, edi
mov esi, 0x10
mov dl, byte [ecx + eax]
xor dl, 0x9f
mov byte [eax], dl
inc eax
dec esi
jne 0x407eb5
mov ecx, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push ecx
push 0x10
push edi
call ebx
mov esi, dword [ebp - 0x18]
lea edx, [ebp - 0xc]
push edx
push 0x40
push 0x10
push esi
call ebx
mov ecx, 0x428218
mov eax, esi
sub ecx, esi
mov dword [ebp - 8], 0x10
lea esp, [esp]
mov dl, byte [ecx + eax]
xor dl, 0x9f
mov byte [eax], dl
inc eax
dec dword [ebp - 8]
jne 0x407ef0
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0xc]
push eax
push ecx
push 0x10
push esi
call ebx
mov ecx, dword [ebp - 0x1c]
mov edx, esi
sub edx, edi
sub edx, 0x10
push edx
add edi, 0x10
push edi
call fcn.00407f70
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x10]
call fcn.00407ff0
test al, al
jne 0x407e80
jmp 0x407f48
jmp 0x407f5f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407f70
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
jmp 0x407f89
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push edi
push esi
call ebx
xor eax, eax
test edi, edi
jle 0x407fbf
mov ecx, eax
and ecx, 0xf
mov dl, byte [ecx + 0x4281f8]
xor dl, byte [eax + esi]
inc eax
add dl, 0x51
mov byte [eax + esi - 1], dl
cmp eax, edi
jl 0x407fa5
mov ecx, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push ecx
push edi
push esi
call ebx
jmp 0x407fdd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x408150
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
jmp 0x408165
push 0x104
push 0
push 0x448f98
call fcn.0040f6c0
mov ecx, dword [ebp + 0xc]
add esp, 0xc
xor eax, eax
test ecx, ecx
jle 0x4081a2
push esi
mov esi, dword [ebp + 8]
jmp 0x408190
mov dl, byte [esi + eax*4]
xor dl, 0x80
mov byte [eax + 0x448f98], dl
inc eax
cmp eax, ecx
jl 0x408190
pop esi
jmp 0x4081b4
mov eax, 0x448f98
pop ebp
ret 8

Function at 0x409c60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x42c670]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x42e4cc]
push ebx
push esi
push edi
push 0x69
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e8
mov esi, eax
call fcn.0040b550
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea ecx, [ebp - 0x104]
push str.UserCount:__d__d
push ecx
call ebx
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0x10
lea edx, [ebp - 0x104]
push edx
push 0
push 0x401
push esi
call edi
push 0x448f40
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x448f68]
push 0x448f40
mov dword [ebp - 0x108], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x108]
push 0x2000
push ecx
lea edx, [ebp - 0x104]
push str.QueueSize:__d__d
push edx
call ebx
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
push 1
push 0x401
push esi
call edi
mov ecx, 0x448eb8
call fcn.004081c0
push eax
lea ecx, [ebp - 0x104]
push ecx
call ebx
add esp, 8
lea edx, [ebp - 0x104]
push edx
push 2
push 0x401
push esi
call edi
push 0
push 3
push 0x401
push esi
call edi
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d6a3
mov esp, ebp
pop ebp
ret