joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48fd50
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4dd088
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004d4d14
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0048f6b0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004d4c42
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004d1500
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004d1500
push 1
push 0
push 0
mov ecx, esi
call fcn.004d14a8
push 1
push 0
push 1
mov ecx, esi
call fcn.004d14a8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004d4d86
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x48fed0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4dd0a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004d4d14
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0048f6b0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004d4c42
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x48ff94
cmp dword [esp + 0x40], 1
jne 0x48ff92
cmp ecx, eax
jge 0x48ff94
mov eax, ecx
cmp eax, 0xc8
jge 0x48ffa0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0048fd50
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004d4d86
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4907a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4dd153
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.004cf91d
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004d4fbc
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004d65d2
test eax, eax
je 0x4908bc
mov ecx, dword [esp + 0x3c]
call fcn.004d4fe9
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x490880
push edi
mov ecx, esi
call fcn.004d264b
mov ecx, esi
call fcn.00490a60
cmp dword [esp + 0x38], 1
jne 0x4908b5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004d2786
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x492aa0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x492ad3
push esi
call fcn.004a0e50
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x492acc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x492b59
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x492b42
mov eax, dword [esi + 8]
test eax, eax
je 0x492af7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x492b3e
cmp eax, 2
je 0x492b42
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x492aea
cmp eax, 3
je 0x492b1d
cmp eax, 1
jne 0x492aea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x492aea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x492aea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00492b80
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x492b68
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00492b80
add esp, 4
pop esi
ret

Function at 0x4933f0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x493411
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x493411
mov eax, dword [eax + 0x44]
test eax, eax
je 0x493411
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4ae6f0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4ae739
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4aebb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dd650
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004ae760
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004ae7e0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004ae7e0
lea ecx, [esi + 0xc]
call fcn.004ce2d0
lea ecx, [esi + 0x10]
call fcn.004ce2d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004afd70
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004afd70
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004afd70
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004ce345
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004ce345
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4aff60
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4affc6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4affc6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4affa7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4d0713
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d074b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ce7a0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ce778
jmp 0x4d0757
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4d1e08
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4d1e4a
call fcn.004d7a82
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d1e4a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d1e41
xor eax, eax
jmp 0x4d1e52
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d1e58
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d7fb2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4d7fe0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d7ffe
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d7f18
jmp 0x4d7ffe
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d7ffe
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d7f18
test edi, edi
mov eax, edi
jne 0x4d7fe8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x410170
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x410210
push ebx
push ebp
push esi
mov esi, dword [ecx]
push edi
xor eax, eax
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov edi, dword [ecx + 4]
xor esi, esi
cmp edi, edx
jle 0x4101c2
mov ebp, dword [ecx]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x52439c]
xor eax, edx
inc esi
cmp esi, edi
jl 0x4101a3
xor edx, edx
mov edi, dword [ecx + 0xc]
xor esi, esi
cmp edi, edx
jle 0x4101eb
mov ebp, dword [ecx + 8]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x52439c]
xor eax, edx
inc esi
cmp esi, edi
jl 0x4101ce
mov edx, dword [ecx]
pop edi
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
shr eax, 0x18
pop esi
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret
Function at 0x416a70
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x576fc8]
sub esp, 0xc
movzx ecx, byte [ebp + 8]
push ebx
lea eax, [eax + ecx*2]
push esi
sub eax, 1
push edi
mov dword [0x576fc8], eax
jns 0x416a99
mov dword [0x576fc8], 0
movzx ecx, byte [ebp + 0xc]
xor edx, edx
test eax, eax
cmovns edx, eax
mov eax, dword [0x576fc4]
lea eax, [eax + ecx*2]
sub eax, 1
mov dword [0x576fc4], eax
jns 0x416ac0
mov dword [0x576fc4], 0
test edx, edx
jle 0x416af8
call fcn.00412de0
mov esi, eax
cmp byte [esi + 0x20], 0
jne 0x416b3d
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
mov byte [esi + 0x20], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00412de0
mov esi, eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp byte [esi + 0x20], 0
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 8]
je 0x416b25
mov ecx, ebx
mov eax, edi
sub ecx, dword [esi + 8]
sbb eax, dword [esi + 0xc]
add dword [esi + 0x18], ecx
adc dword [esi + 0x1c], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], edi
mov byte [esi + 0x20], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419d80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x515040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x419e5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x419e5c
test esi, esi
je 0x419dd9
push esi
lea eax, [ebp - 0x108]
push 0x100
push eax
call fcn.004d978e
mov cl, byte [ebp - 0x108]
add esp, 0xc
jmp 0x419de1
xor cl, cl
mov byte [ebp - 0x108], cl
lea eax, [ebp - 0x108]
test cl, cl
je 0x419e00
nop dword [eax + eax]
cmp cl, 0x5c
jne 0x419df8
mov byte [eax], 0x2f
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x419df0
lea eax, [ebp - 0x108]
push 0x2f
push eax
call fcn.004d0870
add esp, 8
test eax, eax
je 0x419e4b
mov ecx, eax
lea edx, [ebp - 0x108]
sub ecx, edx
test ecx, ecx
jle 0x419e4b
mov ecx, edx
mov byte [eax], 0
call fcn.00419d80
test al, al
je 0x419e4b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x419e5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x419e5c
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cf01b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004cf01b
mov esp, ebp
pop ebp
ret

Function at 0x419e70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x515040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x110]
push edi
push 0x104
push 0
push eax
mov edi, edx
call fcn.004d0d20
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push 0x801a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x419ee9
push edi
lea eax, [ebp - 0x110]
push eax
push 0x502e30
push esi
call fcn.00412620
add esp, 0x10
mov ecx, esi
call fcn.00419d80
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cf01b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.004cf01b
mov esp, ebp
pop ebp
ret

Function at 0x41a6d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
test eax, eax
je 0x41a6f6
push eax
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004dad28
add esp, 0x10
cmp eax, 1
jne 0x41a6f6
mov al, al
pop ebp
ret 8
xor al, al
pop ebp
ret 8

Function at 0x41a700
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
test eax, eax
je 0x41a71f
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.004dad28
add esp, 0x10
pop ebp
ret 8
xor eax, eax
pop ebp
ret 8
Function at 0x41ab80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, edx
lea eax, [ecx + 2]
push edi
mov dword [ebp - 4], ebx
xor esi, esi
mov edi, 0x116
movzx ecx, byte [eax - 2]
lea eax, [eax + 4]
add ecx, esi
imul ecx, ecx, 0x401
mov edx, ecx
shr edx, 6
xor edx, ecx
movzx ecx, byte [eax - 5]
add edx, ecx
imul ecx, edx, 0x401
mov edx, ecx
shr edx, 6
xor edx, ecx
movzx ecx, byte [eax - 4]
add edx, ecx
imul ecx, edx, 0x401
mov edx, ecx
shr edx, 6
xor edx, ecx
movzx ecx, byte [eax - 3]
add edx, ecx
imul esi, edx, 0x401
mov ecx, esi
shr ecx, 6
xor esi, ecx
sub edi, 1
jne 0x41ab96
lea ecx, [esi + esi*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul ecx, eax, 0x8001
movzx eax, bl
pop edi
pop esi
pop ebx
add eax, ecx
imul eax, eax, 0x401
mov ecx, eax
shr ecx, 6
xor ecx, eax
movzx eax, byte [ebp - 3]
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor ecx, eax
movzx eax, byte [ebp - 2]
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor ecx, eax
movzx eax, byte [ebp - 1]
add ecx, eax
imul ecx, ecx, 0x401
mov eax, ecx
shr eax, 6
xor ecx, eax
lea ecx, [ecx + ecx*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
mov esp, ebp
pop ebp
ret
Function at 0x41f010
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
mov eax, dword [0x515040]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
push edi
mov esi, ecx
call fcn.004acb70
test al, al
je 0x41f0d9
xor edx, edx
lea ecx, [esp + 0x10]
call fcn.004acd50
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
test eax, eax
je 0x41f0d9
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x10
push eax
lea edi, [esi + 0x328]
push edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x41f07d
push str.UNKNOWN
push 0x10
push edi
call fcn.004d978e
add esp, 0xc
xorps xmm0, xmm0
mov eax, 2
push 0xb00b
movlpd qword [esp + 0x1c], xmm0
mov word [esp + 0x14], ax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 0x12], ax
mov edx, 0xb00b
mov dword [esp + 0x14], 0xffffffff
mov cl, 1
movups xmm0, xmmword [esp + 0x10]
movups xmmword [esi + 0x10], xmm0
call fcn.004acc30
cmp eax, 0xffffffff
mov dword [esi + 0x20], eax
setne al
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004cf01b
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x2c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004cf01b
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x834
mov eax, dword [0x515040]
xor eax, esp
mov dword [esp + 0x830], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
cmp dword [esi + 8], 0xffffffff
push edi
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x14], eax
je 0x41f966
mov ebx, dword [sym.imp.WSOCK32.dll_recvfrom]
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x41f966
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x10
push ecx
lea ecx, [esp + 0x24]
push ecx
push 0
push 0x800
lea ecx, [esp + 0x40]
push ecx
push eax
call ebx
cmp eax, 0xffffffff
je 0x41f940
test eax, eax
jle 0x41f94d
push dword [esp + 0x14]
lea ecx, [esp + 0x34]
mov dword [esp + 0x834], eax
push dword [esp + 0x1c]
mov eax, dword [edi]
push 0
push dword [esp + 0x30]
push ecx
push dword [esp + 0x30]
mov ecx, edi
call dword [eax + 0xc]
jmp 0x41f8e7
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x41f966
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x830]
xor ecx, esp
call fcn.004cf01b
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x83c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004cf01b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x422ba0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, edx
mov dword [esp + 4], ecx
push esi
push edi
mov eax, dword [ebx + 0x458]
and eax, 7
cmp al, 6
je 0x422ce1
xor edi, edi
lea edx, [ebx + 2]
mov esi, 0x11c
nop dword [eax + eax]
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
add eax, edi
imul eax, eax, 0x401
mov ecx, eax
shr ecx, 6
xor ecx, eax
movzx eax, byte [edx - 5]
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor ecx, eax
movzx eax, byte [edx - 4]
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor ecx, eax
movzx eax, byte [edx - 3]
add ecx, eax
imul edi, ecx, 0x401
mov eax, edi
shr eax, 6
xor edi, eax
sub esi, 1
jne 0x422bd0
lea ecx, [edi + edi*8]
mov eax, ecx
lea esi, [ebx + 2]
shr eax, 0xb
xor eax, ecx
mov ecx, dword [esp + 0xc]
imul eax, eax, 0x8001
cmp eax, ecx
je 0x422ce1
mov ecx, ebx
call fcn.004b58c0
mov dword [esp + 0xc], eax
lea edx, [esp + 0xc]
push ebx
lea eax, [ebx + 0x464]
push eax
lea eax, [ebx + 0x45c]
push eax
lea ecx, [ebx + 0x458]
call fcn.004b4820
add esp, 0xc
mov edx, 0x11c
xor ecx, ecx
movzx eax, byte [esi - 2]
lea esi, [esi + 4]
add eax, ecx
imul eax, eax, 0x401
mov ecx, eax
shr ecx, 6
xor ecx, eax
movzx eax, byte [esi - 5]
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor ecx, eax
movzx eax, byte [esi - 4]
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor ecx, eax
movzx eax, byte [esi - 3]
add ecx, eax
imul ecx, ecx, 0x401
mov eax, ecx
shr eax, 6
xor ecx, eax
sub edx, 1
jne 0x422c76
lea ecx, [ecx + ecx*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x426730
Capabilities:
Encode data using xor

Disassembly:
push esi
xor eax, eax
lea edx, [ecx + 2]
mov esi, 0x116
nop dword [eax + eax]
movzx ecx, byte [edx - 2]
lea edx, [edx + 4]
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor ecx, eax
movzx eax, byte [edx - 5]
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor ecx, eax
movzx eax, byte [edx - 4]
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor ecx, eax
movzx eax, byte [edx - 3]
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor eax, ecx
sub esi, 1
jne 0x426740
lea ecx, [eax + eax*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
pop esi
imul eax, eax, 0x8001
ret