joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ae60
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.00425610
test eax, eax
je 0x42af4f
mov ecx, edi
call fcn.00425610
mov ecx, eax
call fcn.00422b80
test eax, eax
jne 0x42af4f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42af4f
mov eax, dword [0x557528]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x42aec2
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.00425610
mov ecx, eax
call fcn.00422db0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x42af4f
cmp ebx, eax
jne 0x42af4f
cmp dword [esp + 0x10], eax
jne 0x42af35
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x42db70
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46ec08
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x42dba9
inc eax
mov dword [esi + 0x10], eax
jmp 0x42dcbc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42dbbd
mov eax, 0xffffffc7
jmp 0x42dcbe
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42dbce
cmp dword [esi + 8], eax
jne 0x42dbbd
cmp dword [esi + 8], eax
jne 0x42dbe7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42dbe7
mov eax, 0xffffffc7
jmp 0x42dcbe
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42dbfb
push eax
mov ecx, ebx
call fcn.0042d3a0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00401760
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42dc2c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00401780
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042cb10
test eax, eax
mov dword [esp + 0x38], eax
je 0x42dc5f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x526130
call fcn.00401960
mov eax, dword [esp + 0x38]
jmp 0x42dcbe
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042d9d0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42dca3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042d9f0
mov esi, eax
test esi, esi
jne 0x42dcd3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042d9d0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42dc75
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x526130
call fcn.00401960
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x526130
call fcn.00401960
mov eax, esi
jmp 0x42dcbe

Function at 0x430de0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x430e40
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x430e40
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x430e40
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x430e40
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x430e80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x436da0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46f238
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.00468300
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00436740
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.0046822e
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.00464af2
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.00464af2
push 1
push 0
push 0
mov ecx, esi
call fcn.00464a9a
push 1
push 0
push 1
mov ecx, esi
call fcn.00464a9a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00468372
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x436f20
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46f258
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.00468300
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00436740
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.0046822e
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 0x436fe4
cmp dword [esp + 0x40], 1
jne 0x436fe2
cmp ecx, eax
jge 0x436fe4
mov eax, ecx
cmp eax, 0xc8
jge 0x436ff0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00436da0
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.00468372
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x437770
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46f2c3
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.00462f0f
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.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.004685a8
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00469ac4
test eax, eax
je 0x43788c
mov ecx, dword [esp + 0x3c]
call fcn.004685d5
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 0x437850
push edi
mov ecx, esi
call fcn.00465c3d
mov ecx, esi
call fcn.004379f0
cmp dword [esp + 0x38], 1
jne 0x437885
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.00465d78
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 0x43a2b0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43a2e3
push esi
call fcn.0043d3a0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43a2dc
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 0x43a369
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43a352
mov eax, dword [esi + 8]
test eax, eax
je 0x43a307
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 0x43a34e
cmp eax, 2
je 0x43a352
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43a2fa
cmp eax, 3
je 0x43a32d
cmp eax, 1
jne 0x43a2fa
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 0x43a2fa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43a2fa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043a390
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43a378
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043a390
add esp, 4
pop esi
ret
Function at 0x44c280
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x44c2cc
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x44c2cc
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x44c2b6
push eax
call ebp
test ax, ax
jl 0x44c2c4
inc esi
add edi, 4
cmp esi, 6
jb 0x44c2a8
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.0044bf80
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x44ff90
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x44fff0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x44fff0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x44fff0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x44fff0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x450000
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x463d05
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x463d3d
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.00461dbc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00461d94
jmp 0x463d49
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4653fa
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 0x46543c
call fcn.0046b03f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46543c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x465433
xor eax, eax
jmp 0x465444
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046544a
pop edi
pop esi
pop ebx
ret 4

Function at 0x46b56f
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 0x46b59d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46b5bb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046b4d5
jmp 0x46b5bb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46b5bb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046b4d5
test edi, edi
mov eax, edi
jne 0x46b5a5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403860
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x474
push ebx
push ebp
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x85]
mov byte [esp + 0x84], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x490]
lea edx, [esp + 0x84]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x494]
push eax
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_vsprintf]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edi, dword [esp + 0x48c]
mov ecx, dword [esp + 0x488]
mov eax, edi
shl eax, 4
add eax, edi
lea esi, [eax + eax*2]
shl esi, 5
test ecx, ecx
mov eax, dword [esi + 0x41dd34]
mov dword [esp + 0x20], eax
jne 0x4038e8
push 0
lea ecx, [esp + 0x28]
push str.C:_vcom_d_log.txt
push ecx
jmp 0x4038f3
push eax
lea edx, [esp + 0x28]
push str.C:_vcom_d_log.txt
push edx
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
call ebp
add esp, 0xc
lea eax, [esp + 0x24]
push 0x40d2b8
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x403a8e
mov eax, dword [esp + 0x488]
test eax, eax
jne 0x403a16
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x1a]
mov eax, dword [esp + 0x18]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x1a]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x1a]
push eax
mov eax, dword [esp + 0x1c]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esp + 0x5c]
push str._04d__02d__02d__02d:_02d:_02d_:__Main_Thread_
push ecx
call ebp
mov edi, dword [sym.imp.MSVCRT.dll_fputs]
lea edx, [esp + 0x64]
push ebx
push edx
call edi
lea eax, [esp + 0xac]
push 0x40d2d0
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0x30
test eax, eax
push ebx
je 0x4039ce
lea edi, [esp + 0x88]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
push ecx
lea ecx, [esp + 0x8c]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov edi, dword [sym.imp.MSVCRT.dll_fputs]
add esp, 0x10
jmp 0x4039db
lea edx, [esp + 0x88]
push edx
call edi
add esp, 8
mov eax, dword [esi + 0x41e384]
mov ecx, dword [esi + 0x41e38c]
mov edx, dword [esi + 0x41e380]
push eax
mov eax, dword [esi + 0x41e388]
push ecx
push edx
push eax
lea ecx, [esp + 0x94]
push str.._ComRecv_Com2Net_NetRecv_Net2Com_is__u__u__u__u_n
push ecx
call ebp
lea edx, [esp + 0x9c]
push ebx
push edx
call edi
add esp, 0x20
jmp 0x403a84
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x1a]
push edi
push eax
mov eax, dword [esp + 0x20]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x22]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x22]
push eax
mov eax, dword [esp + 0x24]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esp + 0x64]
push str._04d__02d__02d__02d:_02d:_02d_:__Thread__d__VCOM__3d_
push ecx
call ebp
mov esi, dword [sym.imp.MSVCRT.dll_fputs]
lea edx, [esp + 0x6c]
push ebx
push edx
call esi
lea eax, [esp + 0xb4]
push ebx
push eax
call esi
add esp, 0x38
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x474
ret
Function at 0x4040f0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x20]
push esi
push edi
xor edi, edi
test ebx, ebx
jle 0x4041a7
mov esi, dword [esp + 0x20]
mov ecx, 2
mov eax, dword [esi + 0x18]
mov dword [esi + 0x30], ecx
sub eax, edi
je 0x40414d
dec eax
je 0x40412a
dec eax
jne 0x4041a7
mov eax, dword [esi + 0x14]
test eax, eax
jbe 0x4041a7
jmp 0x404137
mov eax, dword [esi + 0x10]
test eax, eax
jbe 0x4041a7
cmp dword [esi + 0x1c], 1
jne 0x4041a7
mov ecx, dword [esp + 0x24]
push 0
push ebx
push ecx
push eax
call sub.WS2_32.dll_send
mov edi, eax
test edi, edi
jle 0x404199
jmp 0x404193
mov eax, dword [esi + 0x10]
test eax, eax
jbe 0x4041a7
lea eax, [esi + 0x3a]
mov word [esp + 0xc], cx
push eax
call sub.WS2_32.dll_inet_addr
mov cx, word [esi + 0x4a]
mov dword [esp + 0x10], eax
push ecx
call sub.WS2_32.dll_htons
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0xc]
push 0x10
mov word [esp + 0x12], ax
mov eax, dword [esp + 0x28]
push edx
push 4
push ebx
push eax
push ecx
call sub.WS2_32.dll_sendto
mov edi, eax
test edi, edi
jle 0x404199
add dword [esi + 0x650], edi
mov edx, dword [esi + 8]
push 9
push edx
call fcn.004044a0
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x4044e0
Capabilities:
Connect socket

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_time]
push ebp
push esi
push edi
push 0
call ebx
mov esi, dword [esp + 0x28]
add esp, 4
sub eax, dword [esi + 0x34]
cmp eax, 3
jle 0x40461c
mov eax, dword [esi + 0x70]
test eax, eax
je 0x40461c
cmp dword [esi + 0x18], 1
jne 0x40461c
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x40461c
cmp dword [esi + 0x10], 0xffffffff
jne 0x40455b
mov eax, dword [0x40d294]
test eax, eax
je 0x404550
mov eax, dword [esi + 8]
xor ecx, ecx
mov cx, word [esi + 0x4a]
add esi, 0x3a
push ecx
push esi
push str.Connecting_error__for_socket_is_INVALID_SOCKET_n
push eax
push eax
call fcn.00403860
add esp, 0x14
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret
lea edi, [esi + 0x3a]
mov word [esp + 0x10], 2
push edi
call sub.WS2_32.dll_inet_addr
mov dx, word [esi + 0x4a]
mov dword [esp + 0x14], eax
push edx
call sub.WS2_32.dll_htons
mov ecx, dword [esi + 0x20]
mov word [esp + 0x12], ax
inc ecx
mov eax, ecx
mov dword [esi + 0x20], ecx
cmp eax, 3
jle 0x4045ce
mov eax, dword [0x40d294]
test eax, eax
je 0x4045a7
mov eax, dword [esi + 8]
push str.Connecting_error_too_many_times_recreate_socket_n
push eax
push eax
call fcn.00403860
add esp, 0xc
mov eax, dword [esi + 8]
push eax
call fcn.00404630
push 0
mov dword [esi + 0x20], 0
call ebx
add esp, 8
add eax, 2
mov dword [esi + 0x34], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, dword [esi + 8]
push 4
push ecx
call fcn.004044a0
mov eax, dword [esi + 0x10]
add esp, 8
lea edx, [esp + 0x10]
push 0x10
push edx
push eax
call sub.WS2_32.dll_connect
mov ebp, eax
mov eax, dword [0x4f3ca8]
test eax, eax
je 0x40461c
mov ecx, dword [esi + 0x10]
mov ebx, dword [esi + 8]
push ecx
call sub.WS2_32.dll_WSAGetLastError
xor edx, edx
push eax
mov dx, word [esi + 0x4a]
push ebp
push edx
push edi
push str.Connecting__s:_d.._ret_d_error_d_sock_d_n
push ebx
push ebx
call fcn.00403860
add esp, 0x20
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x404f40
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x20]
mov dword [esp + 8], 1
mov eax, dword [edi + 0x18]
sub eax, 0
je 0x40502f
dec eax
je 0x404fe4
dec eax
jne 0x405071
push 6
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x404f85
pop edi
or eax, eax
pop esi
add esp, 0x14
ret
mov ax, word [edi + 0x38]
mov word [esp + 0xc], 2
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_htons
lea ecx, [esp + 0xc]
push 0x10
push ecx
push esi
mov word [esp + 0x1a], ax
call sub.WS2_32.dll_bind
cmp eax, 0xffffffff
jne 0x404fc4
push esi
call sub.WS2_32.dll_closesocket
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x14
ret
push 5
push esi
call sub.WS2_32.dll_listen
cmp eax, 0xffffffff
jne 0x405075
push esi
call sub.WS2_32.dll_closesocket
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x14
ret
push 6
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x404ffe
pop edi
or eax, eax
pop esi
add esp, 0x14
ret
lea edx, [esp + 8]
push edx
push 0x8004667e
push esi
call sub.WS2_32.dll_ioctlsocket
lea eax, [edi + 0x3a]
push eax
call sub.WS2_32.dll_inet_addr
mov cx, word [edi + 0x4a]
push ecx
call sub.WS2_32.dll_htons
mov ecx, dword [esp + 0x24]
pop edi
xor eax, eax
mov dword [ecx], esi
pop esi
add esp, 0x14
ret
push 0
push 2
push 2
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
je 0x404fdb
mov dx, word [edi + 0x38]
mov word [esp + 0xc], 2
push edx
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_htons
mov word [esp + 0xe], ax
lea eax, [esp + 0xc]
push 0x10
push eax
push esi
call sub.WS2_32.dll_bind
jmp 0x404fcc
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
pop edi
xor eax, eax
mov dword [ecx], esi
pop esi
add esp, 0x14
ret
Function at 0x405f90
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
push str.SYSTEMControlSet001ServicesTcpipParameters
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x405ffc
mov edx, dword [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 4]
push 4
push ecx
push 4
push eax
push str.TcpTimedWaitDelay
push edx
mov dword [esp + 0x1c], 2
call esi
mov ecx, dword [esp + 8]
lea eax, [esp + 4]
push 4
push eax
push 4
push 0
push str.MaxUserPort
push ecx
mov dword [esp + 0x1c], 0xfffe
call esi
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 8
ret
Function at 0x438c93
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop ebx
add eax, eax
call fcn.00438cc6
inc ecx
inc ecx
sub ecx, eax
xor dword [esi], ebx
dec eax
inc esi
sub eax, 1
sub ecx, 1
push ecx
mov eax, dword [esp]
add esp, 4
cmp esi, edx
jne fcn.00438c93
add eax, eax
sub eax, ecx
ret