joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c2fc0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x4efdab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x104
push esi
mov esi, ecx
push edi
push str.CSocket::CSocket___begin._n
mov dword [esp + 0xc], esi
mov dword [esi], 0x4fb874
call fcn.004ceb00
add esp, 4
mov dword [esi + 4], 0xffffffff
xor edi, edi
push str.CGMSSock::CGMSSock__:_begin._n
mov dword [esp + 0x118], edi
mov dword [esi], 0x4fb880
call fcn.004ceb00
add esp, 4
lea eax, [esp + 0xc]
mov dword [esi + 0x2000c], edi
mov dword [esi + 0x20008], edi
push 0x100
push eax
mov dword [esi + 0x20010], edi
call sub.WSOCK32.dll_gethostname
lea ecx, [esp + 0xc]
push ecx
call sub.WSOCK32.dll_gethostbyname
cmp eax, edi
je 0x4c3057
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call sub.WSOCK32.dll_ntohl
jmp 0x4c3059
xor eax, eax
mov ecx, dword [esp + 0x10c]
mov dword [esi + 0x20014], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x110
ret

Function at 0x4c30f0
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4efdd9
push eax
mov eax, dword [0xcc516c]
mov dword fs:[0], esp
sub esp, 0x104
push ebp
push edi
xor edi, edi
mov ebp, ecx
cmp eax, edi
mov dword [0xc7f95c], edi
je 0x4c3234
cmp dword [eax + 4], 0xffffffff
je 0x4c3234
cmp dword [0x541be4], edi
jl 0x4c3234
push edi
call fcn.004e0ade
mov ecx, dword [0xd15b04]
sub eax, 0x3c
add esp, 4
cmp ecx, eax
jge 0x4c3234
cmp dword [0xcc505c], edi
jne 0x4c321a
push esi
push 0x20018
call fcn.004ddf8e
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
cmp esi, edi
mov dword [esp + 0x118], edi
je 0x4c3206
push str.CSocket::CSocket___begin._n
mov dword [esi], 0x4fb874
call fcn.004ceb00
add esp, 4
mov dword [esi + 4], 0xffffffff
push str.CGMSSock::CGMSSock__:_begin._n
mov byte [esp + 0x11c], 1
mov dword [esi], 0x4fb880
call fcn.004ceb00
add esp, 4
lea eax, [esp + 0x10]
mov dword [esi + 0x2000c], edi
mov dword [esi + 0x20008], edi
push 0x100
push eax
mov dword [esi + 0x20010], edi
call sub.WSOCK32.dll_gethostname
lea ecx, [esp + 0x10]
push ecx
call sub.WSOCK32.dll_gethostbyname
cmp eax, edi
je 0x4c31fc
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call sub.WSOCK32.dll_ntohl
mov dword [esi + 0x20014], eax
jmp 0x4c3208
xor eax, eax
mov dword [esi + 0x20014], eax
jmp 0x4c3208
xor esi, esi
mov dword [0xcc505c], esi
mov dword [esp + 0x118], 0xffffffff
pop esi
push 0x14b4
mov ecx, ebp
call fcn.004c30e0
push edi
call fcn.004e0ade
add esp, 4
mov dword [0xd15b04], eax
mov ecx, dword [esp + 0x10c]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x110
ret 4
Function at 0x4c3250
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x30c
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x4c3282
mov eax, dword [0xcc51bc]
test eax, eax
jne 0x4c33ca
push str.dunno__select_with_invalid_socket
call fcn.004c30f0
pop edi
pop esi
add esp, 0x30c
ret
mov edx, dword [esi + 0x2000c]
mov ecx, 1
test edx, edx
mov dword [esp + 8], 0
mov dword [esp + 0x214], eax
mov dword [esp + 0x210], ecx
jle 0x4c32af
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 0x10c], ecx
lea ecx, [esp + 0x10c]
push 0xd15ae0
push ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x118], eax
lea ecx, [esp + 0x218]
push edx
inc eax
push ecx
push eax
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
je 0x4c33ca
mov eax, dword [esi + 4]
lea edx, [esp + 0x10c]
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4c3326
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x4c3311
push eax
call sub.WSOCK32.dll_closesocket
mov dword [esi + 4], 0xffffffff
push str.exception_state_on_socket
mov ecx, esi
call fcn.004c30f0
pop edi
pop esi
add esp, 0x30c
ret
mov edx, dword [esi + 4]
lea ecx, [esp + 0x210]
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4c33a0
mov eax, dword [esi + 0x20008]
mov edi, 0x10000
sub edi, eax
test edi, edi
jle 0x4c336a
mov ecx, dword [esi + 4]
push 0
lea eax, [eax + esi + 8]
push edi
push eax
push ecx
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
je 0x4c3376
add dword [esi + 0x20008], eax
jmp 0x4c336c
xor eax, eax
cmp eax, edi
jne 0x4c33a0
test edi, edi
jle 0x4c33a0
jmp 0x4c333b
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x4c338b
push eax
call sub.WSOCK32.dll_closesocket
mov dword [esi + 4], 0xffffffff
push str.Exiting_due_to_closed_connection.
mov ecx, esi
call fcn.004c30f0
pop edi
pop esi
add esp, 0x30c
ret
mov eax, dword [esi + 4]
lea edx, [esp + 8]
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4c33b9
mov ecx, esi
call fcn.004c33e0
mov eax, dword [esi + 0x20008]
test eax, eax
jle 0x4c33ca
mov ecx, esi
call fcn.004c34a0
pop edi
pop esi
add esp, 0x30c
ret
Function at 0x4c33e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
mov esi, ecx
or ebx, 0xffffffff
push edi
cmp dword [esi + 4], ebx
jne 0x4c3406
mov eax, dword [0xcc51bc]
test eax, eax
jne 0x4c3400
push str.dunno__select_with_invalid_socket
call fcn.004c30f0
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [esi + 0x2000c]
lea edi, [esi + 0x10008]
push 0
mov byte [eax + esi + 0x10008], 0
mov ecx, dword [esi + 0x2000c]
mov edx, dword [esi + 4]
push ecx
push edi
push edx
call sub.WSOCK32.dll_send
cmp eax, ebx
jne 0x4c3453
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4c3441
push eax
call sub.WSOCK32.dll_closesocket
mov dword [esi + 4], ebx
push str.socket_error_in_send
mov ecx, esi
call fcn.004c30f0
pop edi
pop esi
xor eax, eax
pop ebx
ret
test eax, eax
jle 0x4c347c
mov edx, dword [esi + 0x2000c]
mov ecx, eax
cmp eax, edx
jge 0x4c347c
mov bl, byte [edi + ecx]
mov edx, ecx
sub edx, eax
inc ecx
mov byte [edx + esi + 0x10008], bl
mov edx, dword [esi + 0x2000c]
cmp ecx, edx
jl 0x4c3463
mov ecx, dword [esi + 0x2000c]
pop edi
sub ecx, eax
mov eax, 0
mov dword [esi + 0x2000c], ecx
pop esi
setne al
pop ebx
ret

Function at 0x4c3750
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push 0x20019
push 0
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c37fe
push esi
lea ecx, [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
mov dword [esp + 0x18], eax
push eax
mov eax, dword [esp + 0x18]
push str.MHz
push eax
mov dword [esp + 0x28], 4
call edi
mov esi, eax
test esi, esi
je 0x4c37e5
mov eax, dword [esp + 8]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push edx
push 0
push 0
push str.Mhz
push eax
call edi
mov esi, eax
test esi, esi
je 0x4c37e5
mov eax, dword [esp + 8]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push edx
push 0
push 0
push 0x54bd88
push eax
call edi
mov esi, eax
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
test esi, esi
pop esi
jne 0x4c37fe
mov eax, dword [esp + 4]
add esp, 0xc
ret
xor eax, eax
add esp, 0xc
ret
Function at 0x4c97d0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4f0108
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045ae70
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esi], 0x4fc2dc
mov dword [esi + 0x30], eax
xor ebp, ebp
mov dword [esi + 0x34], ecx
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov dword [esi + 8], str.InputControl_gump
mov dword [esi + 0x60], ebp
mov dword [esi + 0x54], ebp
mov dword [esi + 0x260], ebp
mov word [esi + 0xe4], bp
mov word [esi + 0xe8], bp
mov word [esi + 0xe6], bp
mov dword [esi + 0x64], ebp
mov dword [esi + 0x50], ebp
mov dword [esi + 0x4c], ebp
and edx, 0xffff
and eax, 0xffff
push str.framedata_for_CUnicodeInputControlGump
mov dword [esi + 0x48], ebp
push 8
mov dword [esp + 0x20], ebp
mov dword [esi + 0x44], ebp
mov dword [esi + 0x40], ebp
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
mov dword [esi + 0xcc], 1
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], 1
call fcn.00479630
mov ecx, dword [esi + 0x18]
mov edi, eax
shl ecx, 3
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 0x3c], edi
push str.inpctrl_frame0
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x24]
imul eax, dword [esi + 0x20]
lea ecx, [eax + eax + 4]
push ecx
call fcn.00479630
mov edx, dword [esi + 0x3c]
add esp, 0x10
mov dword [edx + 4], eax
mov ecx, dword [esi + 0x24]
imul ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x3c]
xor eax, eax
shl ecx, 1
mov edi, dword [edx + 4]
mov edx, ecx
add edi, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x3c]
mov dx, word [esi + 0x20]
mov ecx, dword [eax + 4]
mov word [ecx], dx
mov eax, dword [esi + 0x3c]
mov dx, word [esi + 0x24]
mov ecx, dword [eax + 4]
mov al, byte [esp + 0x34]
mov word [ecx + 2], dx
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x38]
mov dword [esi + 0xb4], edx
xor edx, edx
cmp edi, ebp
mov dword [esi + 0x264], ecx
mov ecx, dword [esp + 0x48]
setne dl
cmp al, 1
mov byte [esi + 0xec], al
mov dword [esi + 0xc0], ecx
mov dword [esi + 0xc8], edx
mov dword [esi + 0xbc], ebp
mov dword [esi + 0xb8], ebp
mov dword [esi + 0xc4], ebp
mov dword [esi + 0xe0], ebp
mov dword [esi + 0xdc], ebp
mov dword [esi + 0xd8], ebp
mov dword [esi + 0xd4], ebp
mov dword [esi + 0xd0], ebp
mov byte [esi + 0xea], 3
mov byte [esi + 0xeb], 2
mov word [esi + 0xf4], bp
mov dword [esi + 0xf0], ebp
jne 0x4c998c
mov dword [esi + 0x268], 1
jmp 0x4c9992
mov dword [esi + 0x268], ebp
mov cx, word [esp + 0x40]
mov ax, word [esp + 0x3c]
mov word [esi + 0x272], cx
mov ecx, esi
mov dword [esi + 0x26c], ebp
mov word [esi + 0x270], ax
mov dword [esi + 0x274], ebp
call fcn.004c9a70
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x30
Function at 0x4ce840
Capabilities:
Check mutex on windows

Disassembly:
mov al, byte [0xd5756c]
sub esp, 0x100
test al, al
mov al, byte [0xd5756d]
je 0x4ce8f3
test al, al
je 0x4ce8e4
mov al, byte [0xd5756e]
test al, al
jne 0x4ce9d4
mov eax, dword [0xd57568]
lea ecx, [esp]
push eax
push str.UOErrata_d.log
push ecx
mov byte [0xd5756e], 1
call fcn.004de113
add esp, 0xc
lea edx, [esp]
push edx
push str.UOReport::start:_already_started__stopped__look_in_file__s_for_further_information._n
call fcn.004cead0
lea eax, [esp + 8]
push 0x5094c0
push eax
call fcn.004de798
add esp, 0x10
mov dword [0xd57d70], eax
test eax, eax
jne 0x4ce8cd
lea ecx, [esp]
push ecx
push str.UOReport:_cannot_open_file__s_for_writing._n
call fcn.004cead0
add esp, 8
jmp 0x4ce9d4
lea edx, [esp]
push edx
push str.UOReport:_created_file__s_for_writing._n
call fcn.004ceb00
add esp, 8
jmp 0x4ce9d4
push str.UOReport::start:_already_started__n
call fcn.004cead0
jmp 0x4ce9d1
test al, al
jne 0x4ce9c7
mov eax, dword [0xd57568]
lea ecx, [esp]
push eax
push str.UOReport_d.log
push ecx
mov byte [0xd5756c], 1
call fcn.004de113
lea edx, [esp + 0xc]
push 0x5094c0
push edx
call fcn.004de798
add esp, 0x14
mov dword [0xd57d70], eax
test eax, eax
jne 0x4ce943
lea eax, [esp]
push eax
push str.UOReport:_cannot_open_file__s_for_writing._n
call fcn.004cead0
jmp 0x4ce952
lea ecx, [esp]
push ecx
push str.UOReport:_created_file__s_for_writing._n
call fcn.004ceb00
add esp, 8
push str.UOReport:_starting_up..._n
call fcn.004ceb00
add esp, 4
push str.UOReport::startup
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x4ce97d
inc dword [0xd57568]
jmp 0x4ce9d4
push str.UOReport::startup
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x4ce9b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4ce9a5
inc dword [0xd57568]
jmp 0x4ce9d4
mov dword [0xd57568], 0
jmp 0x4ce9d4
push 0
push str.UOReport::startup:
push str.Cannot_CreateMutex.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4ce9d4
push str.UOReport::start:__started__stopped___freak_occurance__n
call fcn.004cea60
add esp, 4
call fcn.00479700
push str.UOReport:_started._n
call fcn.004ceb00
add esp, 0x104
ret

Function at 0x4cea60
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push ecx
push str.UOReport::fatal:
mov dword [0x54c5a0], 0x3f
call fcn.004ceb60
mov al, byte [0x54c5a0]
add esp, 0xc
test al, 1
je 0x4cea95
test al, 0x20
je 0x4cea9c
push 0
call fcn.004de7d8
push 0
call fcn.004de7d8
ret
Function at 0x4cfa10
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
cmp ebx, 7
push edi
jle 0x4cfa20
sub ebx, 0x10
mov edi, dword [esp + 0x2c]
cmp edi, 7
jle 0x4cfa2c
sub edi, 0x10
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, ecx
sub ecx, edi
imul ecx, edx
imul eax, edx
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
sub ecx, ebx
add eax, esi
add ecx, esi
mov esi, dword [esp + 0x18]
lea eax, [ebp + eax*2]
lea ecx, [esi + ecx*2]
lea esi, [edx + edx]
sub ecx, eax
mov edx, 0x10
mov di, word [ecx + eax]
mov word [eax], di
mov di, word [ecx + eax + 2]
mov word [eax + 2], di
mov di, word [ecx + eax + 4]
mov word [eax + 4], di
mov di, word [ecx + eax + 6]
mov word [eax + 6], di
mov di, word [ecx + eax + 8]
mov word [eax + 8], di
mov di, word [ecx + eax + 0xa]
mov word [eax + 0xa], di
mov di, word [ecx + eax + 0xc]
mov word [eax + 0xc], di
mov di, word [ecx + eax + 0xe]
mov word [eax + 0xe], di
mov di, word [ecx + eax + 0x10]
mov word [eax + 0x10], di
mov di, word [ecx + eax + 0x12]
mov word [eax + 0x12], di
mov di, word [ecx + eax + 0x14]
mov word [eax + 0x14], di
mov di, word [ecx + eax + 0x16]
mov word [eax + 0x16], di
mov di, word [ecx + eax + 0x18]
mov word [eax + 0x18], di
mov di, word [ecx + eax + 0x1a]
mov word [eax + 0x1a], di
mov di, word [ecx + eax + 0x1c]
mov word [eax + 0x1c], di
mov di, word [ecx + eax + 0x1e]
mov word [eax + 0x1e], di
add eax, esi
dec edx
jne 0x4cfa61
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4d2080
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x25c
push ebx
push esi
push edi
mov edi, dword [esp + 0x270]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
lea ebx, [esp + 0x164]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0xc], 0x44
mov eax, ecx
mov esi, edi
mov edi, ebx
lea ebx, [esp + 0x60]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x10], edx
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x274]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], edx
mov eax, ecx
mov esi, edi
mov edi, ebx
mov dword [esp + 0x18], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x1c], edx
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x60]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x60]
neg ecx
sbb ecx, ecx
mov dword [esp + 0x20], edx
and ecx, eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x10]
push eax
push ecx
push edx
push edx
push edx
push edx
lea ecx, [esp + 0x180]
push edx
push ecx
push edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edx
mov word [esp + 0x64], dx
mov word [esp + 0x66], dx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
test eax, eax
pop ebx
je 0x4d2180
mov edx, dword [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x44]
add esp, 0x25c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x10b
sete cl
mov dword [0xd57f84], ecx
or eax, 0xffffffff
add esp, 0x25c
ret
Function at 0x4d21a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x510
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push 1
push 0
push str..html
push bind
mov dword [esp + 0x28], 0x104
call ebx
test eax, eax
jne 0x4d2272
lea ecx, [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x120]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push 0x74166c
push eax
mov dword [esp + 0x30], 0x400
call ebp
test eax, eax
jne 0x4d2272
mov edi, str._shellopencommand
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x120]
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
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 1
lea ecx, [esp + 0x128]
push 0
push ecx
push bind
call ebx
test eax, eax
jne 0x4d2272
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push 0
push 0x74166c
push ecx
call ebp
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x14], eax
jne 0x4d227f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x510
ret
lea edx, [esp + 0x1c]
push 0x4fc480
push edx
call fcn.004def60
add esp, 8
test eax, eax
je 0x4d2298
mov byte [eax], 0
mov edi, 0x508a04
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x528]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 eax, dword [esp + 0x52c]
mov edx, dword [esp + 0x524]
mov ecx, ebx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.004d2080
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x510
ret
Function at 0x4d2c10
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x100
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4d2d81
cmp byte [eax], 0
je 0x4d2d81
push edi
push 0x5072a8
push eax
call fcn.004de798
mov edi, eax
add esp, 8
test edi, edi
je 0x4d2c60
push 2
push 0
push edi
call fcn.004df3c3
push edi
call fcn.004de9e6
push edi
mov dword [esi + 8], eax
call fcn.004de560
add esp, 0x14
jmp 0x4d2c67
mov dword [esi + 8], 0
mov eax, dword [esi + 0x10]
push 0
push 0x10000080
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4d2ce4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 8
jne 0x4d2ca1
push 0
call fcn.0047f3f0
add esp, 4
mov ecx, dword [esi + 0x10]
push edi
push ecx
lea edx, [esp + 0x10]
push str.Failed_to_open_mmf__s:_Error__d.
push edx
call fcn.004de113
mov ecx, dword [0xd58724]
add esp, 0x10
lea eax, [esp + 8]
push 0
push str.MMF_Error
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0xc]
pop edi
pop esi
add esp, 0x100
ret
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 4], eax
jne 0x4d2d56
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 8
jne 0x4d2d13
push 0
call fcn.0047f3f0
add esp, 4
mov edx, dword [esi + 0x10]
push edi
push edx
lea eax, [esp + 0x10]
push str.Failed_to_create_mapping_for_mmf__s:_Error__d.
push eax
call fcn.004de113
mov edx, dword [0xd58724]
add esp, 0x10
lea ecx, [esp + 8]
push 0
push str.MMF_Error
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0xc]
pop edi
pop esi
add esp, 0x100
ret
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x4d2d75
push eax
call fcn.0047f3f0
add esp, 4
mov eax, dword [esi + 0xc]
pop edi
pop esi
add esp, 0x100
ret
xor eax, eax
pop esi
add esp, 0x100
ret
Function at 0x4d6100
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, dword [0xd58724]
push ebx
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4d61be
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
test ebx, ebx
jne 0x4d612b
call dword [sym.imp.USER32.dll_CloseClipboard]
pop ebx
ret
push ebp
push esi
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, dword [0xb6612c]
test ecx, ecx
jne 0x4d6157
cmp edi, 0xf0
jle 0x4d618e
mov edi, 0xf0
jmp 0x4d618e
mov edx, dword [ecx]
call dword [edx + 0x10c]
test eax, eax
jne 0x4d6184
mov ecx, dword [0xb6612c]
mov eax, dword [ecx]
call dword [eax + pe_nt_image_headers32]
test eax, eax
jne 0x4d6184
cmp edi, 0x3e8
jle 0x4d6193
mov edi, 0x3e8
jmp 0x4d6193
cmp edi, 0x50
jle 0x4d618e
mov edi, 0x50
mov ebp, 1
xor esi, esi
test edi, edi
jle 0x4d61b5
test ebp, ebp
je 0x4d61a3
cmp byte [esi + ebx], 0xd
je 0x4d61b5
movsx ecx, byte [esi + ebx]
push ecx
call fcn.0047fbd0
add esp, 4
inc esi
cmp esi, edi
jl 0x4d6199
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4d7e20
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4d7e43
push 1
call fcn.004de7d8
ret

Function at 0x4dba50
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
mov eax, dword [esp + 0x18]
test ebx, ebx
jne 0x4dba65
mov eax, dword [esp + 0x1c]
xor edi, eax
mov ebp, 4
mov ecx, edi
shr ecx, 0x18
mov byte [esp + 0x10], cl
mov al, cl
mov edx, dword [esp + 0x10]
and al, 0x80
and edx, 0xff
neg al
sbb eax, eax
mov esi, edx
and eax, 0x14d
and esi, 0x7f
and eax, 0xff
and cl, 1
shl esi, 1
xor esi, eax
mov eax, edx
neg cl
sbb ecx, ecx
and ecx, 0xa6
shr eax, 1
xor ecx, eax
xor ecx, esi
mov eax, ecx
shl eax, 8
xor eax, esi
shl eax, 8
xor eax, ecx
xor eax, edi
shl eax, 8
xor eax, edx
dec ebp
mov edi, eax
jne 0x4dba6c
inc ebx
cmp ebx, 2
jl 0x4dba59
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret