joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407b00
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.0040cd2e
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x407b6a
push esi
lea edi, [eax + 0x400]
call fcn.0040cd23
push edi
call fcn.0040cd2e
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x407b3a
push esi
xor edi, edi
call dword [0x424060]
add esp, 4
test eax, eax
je 0x407b86
push eax
push esi
call fcn.00409430
add esp, 8
mov edi, eax
push esi
call fcn.0040cd23
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x409980
Capabilities:
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x194
push ebx
push esi
push edi
mov esi, ecx
call fcn.00409b30
mov eax, dword [0x431540]
test eax, eax
jne 0x4099e1
lea eax, [esp + 0x10]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4099be
pop edi
pop esi
mov eax, 0xffffdcd8
pop ebx
add esp, 0x194
ret 0xc
mov ax, word [esp + 0x10]
cmp al, 1
jne 0x409af4
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x409af4
mov dword [0x431540], 1
push ebp
push 0
call fcn.0040e8b4
push eax
call fcn.0040e885
add esp, 8
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edx, dword [esp + 0x1a8]
mov dword [esi], eax
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi + 0x82c], eax
mov eax, dword [esp + 0x1ac]
lea ebp, [esi + 0x828]
push eax
mov word [ebp], 2
call fcn.0040cdc7
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_htons]
lea ebx, [esi + 8]
mov word [esi + 0x82a], ax
mov ecx, 0x104
xor eax, eax
mov edi, ebx
push 4
rep stosd dword es:[edi], eax
lea edi, [esi + 0x418]
mov ecx, 0x104
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1b4]
push ecx
mov ecx, esi
call fcn.00409c20
mov dword [ebx], eax
call fcn.0040e892
mov dword [esi + 0xc], eax
mov ecx, 0xe
xor eax, eax
lea edi, [esi + 0x838]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xaf3c2828
rep stosd dword es:[edi], eax
lea eax, [esi + 0x870]
xor edx, edx
push 0x10
push ebp
mov dword [eax], edx
mov dword [eax + 4], edx
push edx
push 0x10
mov dword [eax + 8], edx
mov ecx, dword [esi]
push ebx
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi]
lea edx, [esp + 0x10]
push edx
push ebp
push 0
lea edi, [esi + 0x418]
push 0x400
push edi
push eax
mov dword [esp + 0x28], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
pop ebp
jge 0x409b11
pop edi
pop esi
mov eax, 0xffffdcdb
pop ebx
add esp, 0x194
ret 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [esi], 0xffffffff
pop edi
pop esi
mov eax, 0xffffdcd9
pop ebx
add esp, 0x194
ret 0xc
push ebx
push edi
mov ecx, esi
call fcn.00409ce0
pop edi
pop esi
pop ebx
add esp, 0x194
ret 0xc
Function at 0x409b50
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx]
test eax, eax
ja 0x409b6c
pop edi
pop esi
mov eax, 0xffffdcd8
pop ebx
add esp, 0x10
ret 0xc
mov edx, dword [ebx + 0x10]
mov ecx, dword [esp + 0x28]
inc edx
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x24]
mov dword [ebx + 0x10], edx
mov edx, dword [esp + 0x20]
mov dword [ebx + 0x840], ecx
mov dword [ebx + 0x83c], edx
lea esi, [ebx + 0x838]
lea edi, [ebx + 0x18]
mov ecx, 0xe
lea edx, [ebx + 0x828]
push 0x10
rep movsd dword es:[edi], dword [esi]
push edx
lea esi, [ebx + 8]
push 0
push 0x48
push esi
push eax
mov dword [ebx + 0x14], 0xaede7346
mov dword [ebx + 0x83c], 0
mov dword [ebx + 0x840], 0
call dword [sym.imp.WS2_32.dll_sendto]
mov edx, dword [ebx]
lea eax, [esp + 0x28]
lea ecx, [esp + 0xc]
push eax
push ecx
lea edi, [ebx + 0x418]
push 0
push 0x400
push edi
push edx
mov dword [esp + 0x40], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jge 0x409c0c
pop edi
pop esi
mov eax, 0xffffdcdb
pop ebx
add esp, 0x10
ret 0xc
push esi
push edi
mov ecx, ebx
call fcn.00409ce0
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0xc

Function at 0x409fc0
Capabilities:
Create raw socket
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push ebx
push esi
mov esi, ecx
push eax
push 0x101
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40a00b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WSAStartup___failed:__d_n
call fcn.0040ea4f
add esp, 8
mov eax, esi
pop esi
pop ebx
add esp, 0x190
ret
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 0
push 0
push 1
push 3
push 2
mov word [esi + 8], ax
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x40a0bb
push edi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSASocket___failed:
push 0x431ac8
call fcn.0040a9f0
add esp, 8
mov ecx, eax
call fcn.0040a410
mov edi, eax
push 0xa
mov ecx, edi
call fcn.0040a790
mov ecx, dword [edi]
xor ebx, ebx
mov edx, dword [ecx + 4]
mov cl, byte [edx + edi + 4]
test cl, 6
lea eax, [edx + edi]
jne 0x40a08e
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x40a08e
mov ebx, 4
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
pop edi
test ebx, ebx
je 0x40a0e3
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x28]
or eax, ebx
test edx, edx
jne 0x40a0a8
or al, 4
push 0
push eax
call fcn.0041cbf6
mov eax, esi
pop esi
pop ebx
add esp, 0x190
ret
mov ecx, dword [esi + 4]
push 1
push ecx
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x2c
mov dword [esi + 0x10], 1
call fcn.0040d864
add esp, 4
mov dword [esi + 0xc], eax
test eax, eax
jne 0x40a0e3
mov dword [esi + 0x10], eax
mov eax, esi
pop esi
pop ebx
add esp, 0x190
ret
Function at 0x40a150
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x148
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40a31b
mov eax, dword [esp + 0x15c]
mov word [esp + 0x1c], 2
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 0x10
call fcn.0040a390
mov ebx, eax
mov ax, word [0x43154a]
inc ax
mov ecx, 0xb
mov word [0x43154a], ax
mov edi, dword [esi + 0xc]
mov dx, ax
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esi + 0xc]
mov word [esp + 0x12], dx
push 0x2c
mov dword [esp + 0x1c], ebx
mov byte [edi], 8
mov byte [edi + 1], al
mov cx, word [esi + 8]
mov word [edi + 6], dx
mov word [edi + 4], cx
mov dword [edi + 8], ebx
mov edx, dword [esi + 0xc]
mov ecx, esi
push edx
call fcn.0040a330
mov word [edi + 2], ax
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esi]
push ecx
push 0
push 0x2c
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x40a31b
mov ebp, dword [esp + 0x160]
test ebp, ebp
jne 0x40a218
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x148
ret 0xc
mov cx, word [0x431558]
xor eax, eax
mov word [esp + 0x58], cx
mov ecx, 0x3f
lea edi, [esp + 0x5a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
push 0x64
lea edi, [esi + 4]
push 0
push edi
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0x102
je 0x40a2c6
mov eax, dword [edi]
mov ecx, dword [esi]
lea edx, [esp + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test byte [esp + 0x2c], 1
je 0x40a2c6
mov ecx, esi
call fcn.0040a390
mov edi, eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esi]
push eax
push 0
lea ecx, [esp + 0x64]
push 0x100
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x40a2c6
mov cl, byte [esp + 0x58]
and cl, 0xf
movzx cx, cl
shl ecx, 2
mov edx, ecx
and edx, 0xffff
mov bx, word [esp + edx + 0x5c]
lea edx, [esp + edx + 0x58]
cmp bx, word [esi + 8]
jne 0x40a2c6
cmp byte [edx], 0
jne 0x40a2c6
mov bx, word [esp + 0x12]
cmp word [edx + 6], bx
je 0x40a2e3
mov ecx, esi
call fcn.0040a390
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x164]
sub eax, edx
cmp eax, ecx
jae 0x40a31b
jmp 0x40a233
and ecx, 0xffff
mov word [ebp], bx
mov ebx, dword [edx + 8]
sub eax, ecx
sub eax, 0xc
sub edi, ebx
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x60]
mov dword [ebp + 4], edi
and eax, 0xff
pop edi
mov dword [ebp + 0xc], eax
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x148
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x148
ret 0xc
Function at 0x40d2ce
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407cfb
mov dword [ebp - 0x14], eax
cmp dword [0x430a18], esi
jne 0x40d3c1
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d34e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d4a1
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d4a1
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d4a1
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x430a18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x430a1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x430a20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x430a28], eax
test eax, eax
je 0x40d3be
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x430a24], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d3e6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d3d9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d3fb
push 4
pop eax
jmp 0x40d4a3
cmp dword [ebp - 0x14], esi
je 0x40d3fb
push dword [0x430a18]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d3e0
mov eax, dword [0x430a24]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d459
cmp dword [0x430a28], edi
je 0x40d459
push eax
call ebx
push dword [0x430a28]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d459
test eax, eax
je 0x40d459
call ecx
test eax, eax
je 0x40d44e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d44e
test byte [ebp - 8], 1
jne 0x40d459
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d489
mov eax, dword [0x430a1c]
cmp eax, edi
je 0x40d486
push eax
call ebx
test eax, eax
je 0x40d486
call eax
mov esi, eax
test esi, esi
je 0x40d486
mov eax, dword [0x430a20]
cmp eax, edi
je 0x40d486
push eax
call ebx
test eax, eax
je 0x40d486
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x430a18]
call ebx
test eax, eax
je 0x40d4a1
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d4a3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040440e
mov esp, ebp
pop ebp
ret
Function at 0x401258
Capabilities:
Copy file
Delete file
Get file size
Get graphical window text
Read file on windows
Terminate process
Write file on windows

Disassembly:
push 0
push 0x401273
push 0
push 0x25
push 0
call dword [sym.imp.user32.dll_DialogBoxParamA]
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]

Function at 0x70748a
Capabilities:
Encode data using xor

Disassembly:
add byte [esi], ch
add byte [eax], dh
add byte [eax], dh
add byte [eax], al
add byte [eax], al
add byte [edx], dl
inc ebp
add byte [edi], al
inc ebp
add byte [eax + eax + 0x49], al
add byte [eax + eax], dl
add byte [eax], ch
add byte gs:[eax], bh
add byte [eax], al
add byte fs:[edi], dh
outsd dx, dword [esi]
add byte [edx], dh
add byte fs:[edx], bh
add byte [eax], al
add byte [eax], al
add byte [eax], dh
add byte [ecx], dh
add byte [edx], dh
add byte [ebx], dh
add byte [eax + eax], dh
xor eax, 0x37003600
add byte [eax], bh
add byte [ecx], bh
add byte [ecx], ah
bound eax, qword [eax]
arpl word [eax], ax
add byte fs:[ebp], ah
add byte [eax + eax], ch
pop esp
add byte [edx], cl
add byte [eax], ah
add byte [eax], ah
add byte [eax], al
add byte [ebx + edx*4 + 0x70], dl
add byte [eax], al
add byte [eax], al
add byte [eax], 0
add byte [eax], al
js 0x707441
jo 0x7074b0
add dword [eax], eax
add byte [eax + 1], al
pushfd
xchg ebx, eax
jo 0x7074bc
add al, byte [eax]
add byte [eax + 2], al
les edx, [ebx + 0x30070]
add byte [eax + 3], al
fcom qword [ebx + 0x50070]
add byte [eax + 4], al
add al, 0x94
jo 0x7074e0
push es
add byte [eax], al
add byte [eax], 0
add byte [eax], al
Function at 0x40a66e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, dword [ebp + 0xc]
and eax, 3
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
sub ecx, eax
je 0x40a6b8
rol edx, 5
xor edx, dword [esi + ebx]
add esi, 4
imul eax, edx, 0x9e3779b9
rol eax, 5
xor eax, 4
imul edx, eax, 0x9e3779b9
cmp esi, ecx
jb 0x40a687
jmp 0x40a6b8
movsx ecx, byte [esi + ebx]
rol edx, 5
xor edx, ecx
imul edx, edx, 0x9e3779b9
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x40a6a8
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x40b5db
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40b610
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x40b63a
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40b63a
test edi, edi
je 0x40b607
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40b607
test edi, edi
je 0x40b642
mov eax, edi
jmp 0x40b609
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40b609
mov esi, 0xc3
push esi
push str.c:_builds_moz2_slave_m_in_w32_d_0000000000000000000_build_src_mfbt_Poison.cpp
push str.no_usable_poison_region_identified
call fcn.0040f180
add esp, 0xc
int3
Function at 0x40f1b4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestNotNull.exe_gMozillaPoisonSize], eax
call fcn.0040b5db
pop ecx
mov ecx, dword [sym.TestNotNull.exe_gMozillaPoisonSize]
mov dword [sym.TestNotNull.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40f1ec
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestNotNull.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x401573
Capabilities:
Resume thread

Disassembly:
jmp 0x4120e0
push dword [ecx + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret

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

Disassembly:
jmp 0x4125c0
push esi
push edi
push 0
push 0x400
push 0x4beec8
push dword [0x4b6da0]
call dword [sym.imp.WS2_32.dll_recv]
push str.MonRecvCommand
push 0x495ff1
push 0
push 3
mov edi, eax
call fcn.004017f8
add esp, 0x10
cmp edi, 0xffffffff
jne 0x41261f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.0040182a
xor eax, eax
cmp esi, 0x2733
setne al
lea eax, [eax*2 + 1]
jmp 0x41268c
test edi, edi
jle 0x412671
xor esi, esi
test edi, edi
jle 0x41266d
mov eax, dword [0x4beec4]
mov edi, edi
cmp esi, eax
jne 0x412668
push 4
lea eax, [esi + 0x4beec9]
push str.END
push eax
call fcn.0041f9e0
inc dword [0x4beec0]
add esp, 0xc
test eax, eax
je 0x41266d
movsx ecx, byte [esi + 0x4beec8]
mov eax, dword [0x4beec4]
inc eax
add eax, ecx
mov dword [0x4beec4], eax
inc esi
cmp esi, edi
jl 0x412630
xor eax, eax
jmp 0x41268c
push str.Command_buffer_overflow
push 0x495ff1
push 0
push 3
call fcn.004017f8
add esp, 0x10
mov eax, 3
push 0x4beec8
push eax
push str.MonRecvCommand__d__s
push 0x495ff1
push 2
push 3
mov dword [0x4bf2c8], eax
call fcn.004017f8
mov eax, dword [0x4bf2c8]
add esp, 0x18
pop edi
pop esi
ret
Function at 0x404410
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4b6e40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x194]
push eax
push 0x202
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x404474
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x404474
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x404474
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push edi
push eax
push esi
call fcn.0041c3e0
add esp, 0xc
mov byte [edi + esi - 1], 0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c3d0
mov esp, ebp
pop ebp
ret
Function at 0x404df0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4b6e40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [eax]
push esi
push edi
mov edi, dword [ebp + 8]
push ebx
lea esi, [eax + 0x2c]
lea ecx, [eax + 0xc]
push esi
mov dword [ebp - 0x2c], ecx
mov ecx, dword [eax + 8]
push edi
push edi
mov dword [ebp - 0x28], ecx
call fcn.00404f80
lea eax, [ebx*4]
add esi, eax
mov eax, dword [ebp - 0x28]
add esp, 0x10
cmp eax, 1
jle 0x404e70
dec eax
mov dword [ebp - 0x28], eax
jmp 0x404e40
push str.cw
push ebx
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.00405050
push ebx
push esi
lea eax, [ebp - 0x24]
push eax
push edi
call fcn.00405110
lea eax, [ebx*4]
add esp, 0x24
add esi, eax
dec dword [ebp - 0x28]
jne 0x404e40
push str.cw
push ebx
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.00405050
push ebx
push esi
lea eax, [ebp - 0x24]
push eax
push edi
call fcn.00404f80
mov ecx, dword [ebp - 4]
add esp, 0x24
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041c3d0
mov esp, ebp
pop ebp
ret

Function at 0x404f80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
sub esp, 0xc
xor ecx, ecx
test edx, edx
jle 0x405042
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp edx, 4
jb 0x405023
lea eax, [edx - 1]
lea eax, [ebx + eax*4]
cmp edi, eax
ja 0x404fb8
lea eax, [edx - 1]
lea eax, [edi + eax*4]
cmp eax, ebx
jae 0x405023
lea eax, [edx - 1]
lea eax, [esi + eax*4]
cmp edi, eax
ja 0x404fcc
lea eax, [edx - 1]
lea eax, [edi + eax*4]
cmp eax, esi
jae 0x405023
mov eax, edx
and eax, reloc.WS2_32.dll_closesocket
jns 0x404fda
dec eax
or eax, 0xfffffffc
inc eax
mov dword [ebp - 4], edx
sub dword [ebp - 4], eax
mov edx, edi
sub edx, esi
mov dword [ebp - 8], edx
mov edi, edx
mov edx, ebx
sub edx, esi
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 0x14]
mov eax, esi
mov esi, dword [ebp - 0xc]
jmp 0x405000
movdqu xmm1, xmmword [esi + eax]
movdqu xmm0, xmmword [eax]
add ecx, 4
pxor xmm1, xmm0
movdqu xmmword [edi + eax], xmm1
lea eax, [eax + 0x10]
cmp ecx, dword [ebp - 4]
jl 0x405000
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
cmp ecx, edx
jge 0x40503f
sub esi, ebx
sub edi, ebx
lea eax, [ebx + ecx*4]
sub edx, ecx
mov ecx, dword [esi + eax]
xor ecx, dword [eax]
lea eax, [eax + 4]
mov dword [edi + eax - 4], ecx
dec edx
jne 0x405030
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405110
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
test ebx, ebx
jle 0x405171
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
add eax, 2
sub dword [ebp + 0x10], edi
lea esp, [esp]
movzx ecx, byte [eax + 1]
movzx edx, byte [eax - 1]
mov esi, dword [ecx*4 + 0x4b4d60]
movzx ecx, byte [eax - 2]
xor esi, dword [edx*4 + 0x4b4560]
lea eax, [eax + 4]
xor esi, dword [ecx*4 + 0x4b4160]
movzx ecx, byte [eax - 4]
lea edi, [edi + 4]
xor esi, dword [ecx*4 + 0x4b4960]
mov ecx, dword [ebp + 0x10]
xor esi, dword [ecx + edi - 4]
mov dword [edi - 4], esi
dec ebx
jne 0x405130
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x405180
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push edi
xor edi, edi
test ebx, ebx
jle 0x4051db
mov eax, dword [ebp + 0xc]
add eax, 2
push esi
jmp 0x4051a0
movzx ecx, byte [eax + 1]
movzx edx, byte [eax - 1]
mov esi, dword [ecx*4 + 0x4b5d60]
movzx ecx, byte [eax - 2]
xor esi, dword [edx*4 + 0x4b5560]
inc edi
xor esi, dword [ecx*4 + 0x4b5160]
movzx ecx, byte [eax]
lea eax, [eax + 4]
xor esi, dword [ecx*4 + 0x4b5960]
mov ecx, dword [ebp + 8]
mov dword [ecx + edi*4 - 4], esi
cmp edi, ebx
jl 0x4051a0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40b620
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4b6e40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
mov dword [ebp - 0x414], 0x201
mov esi, 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x40b74c
push 0x201
lea ecx, [ebp - 0x208]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40b74c
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0xf003f
push 0
push 0x495ff1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40b74c
mov eax, dword [ebp - 0x418]
cmp eax, 1
je 0x40b6ba
cmp eax, 2
jne 0x40b740
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0
push str.smmon
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40b71d
lea ecx, [ebp - 0x208]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b6f0
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x208]
push eax
push 1
push 0
push str.smmon
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor esi, esi
jmp 0x40b740
cmp dword [ebp + 0xc], 2
jne 0x40b73b
push str.smmon
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, 1
jmp 0x40b740
mov esi, 2
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041c3d0
mov esp, ebp
pop ebp
ret