joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d070
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, eax
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x34]
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [esi]
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
push edx
call ebx
mov eax, dword [esi + 4]
or edi, 0xffffffff
push eax
mov dword [esi], edi
call ebx
mov ecx, dword [esi + 8]
push ecx
mov dword [esi + 4], edi
call ebx
lea ebp, [esi + 0x2e4]
push ebp
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [esi + 0xe4]
mov dword [esp + 0x10], 0x80
mov eax, dword [edi]
test eax, eax
je 0x44d0d5
mov edx, dword [eax]
push edx
call ebx
mov eax, dword [edi]
mov dword [eax], 0xffffffff
add edi, 4
sub dword [esp + 0x10], 1
jne 0x44d0c2
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ebp, [esi + 0xc8]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [esi + 0x48]
mov dword [esp + 0x10], 0x20
mov edi, edi
mov eax, dword [edi]
test eax, eax
je 0x44d115
mov ecx, dword [eax + 4]
push ecx
call ebx
mov edx, dword [edi]
mov dword [edx + 4], 0xffffffff
add edi, 4
sub dword [esp + 0x10], 1
jne 0x44d100
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ebp, [esi + 0x340]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add esi, 0x300
mov edi, 0x10
mov edi, edi
mov eax, dword [esi]
test eax, eax
je 0x44d153
mov eax, dword [eax]
push eax
call ebx
mov ecx, dword [esi]
mov dword [ecx], 0xffffffff
add esi, 4
sub edi, 1
jne 0x44d140
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x44ef00
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x511e40
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x5566e0]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x18], 0x44
mov dword [esp + 0x1c], ebx
mov word [esp + 0x4a], bx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 1
mov word [esp + 0x48], bx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call fcn.004c2ca4
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x44ef94
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0x64], ebx
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x44efce
push 0x104
lea ecx, [esp + 0x14]
call fcn.00405200
mov esi, dword [esp + 0x10]
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp esi, ebx
jne 0x44efe3
xor eax, eax
jmp 0x44eff9
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x44efe8
sub eax, edx
js 0x44f0f0
cmp eax, dword [esi - 8]
jg 0x44f0f0
push 0x5c
mov dword [esi - 0xc], eax
push esi
mov byte [eax + esi], bl
call fcn.004e16f2
add esp, 8
cmp eax, ebx
jne 0x44f01c
or eax, 0xffffffff
jmp 0x44f01e
sub eax, esi
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.00404c00
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 1
call fcn.00404e60
mov byte [esp + 0x64], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44f060
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xc
push str.httpsvr.dll
lea ecx, [esp + 0x18]
call fcn.0041b2d0
mov edi, dword [esp + 0x10]
add edi, 0xfffffff0
push edi
call fcn.00405250
mov ecx, dword [esp + 0x70]
add esp, 4
add ecx, 0x34
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea esi, [eax + 0x10]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44f0ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x64], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44f0db
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x58
ret 4
push 0x80070057
call fcn.00404150
int3
Function at 0x453f90
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x512ee8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x5566e0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
call fcn.004c2ca4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x453fce
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 8], eax
push 0x2d
push str.SoftwareMicrosoftWindowsCurrentVersionRun
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0
call fcn.00405170
mov esi, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push esi
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x454029
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x45405c
mov ecx, dword [esp + 0xc]
push str.iSee
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454068
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x4541a0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x512eab
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x5566e0]
xor eax, esp
mov dword [esp + 0x104], eax
push ebp
push esi
mov eax, dword [0x5566e0]
xor eax, esp
push eax
lea eax, [esp + 0x114]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
call fcn.004c2ca4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4541fb
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
push 0x100
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x124], 0
call dword [sym.imp.WS2_32.dll_gethostname]
or ebp, 0xffffffff
cmp eax, ebp
jne 0x454251
push 0
mov ecx, edi
call fcn.0041aa20
lea eax, [esi - 0x10]
mov dword [esp + 0x11c], ebp
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x4542b3
mov ecx, dword [eax]
push eax
jmp 0x4542ac
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x454285
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea edx, [esp + 0x10]
push 0x52989c
push edx
call fcn.00405670
mov esi, dword [esp + 0x18]
add esp, 0xc
add esi, 0xfffffff0
push esi
call fcn.00405250
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [esp + 0x11c], ebp
lea eax, [esi + 0xc]
lock xadd dword [eax], ebp
dec ebp
test ebp, ebp
jg 0x4542b3
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004e0b83
add esp, 0x114
ret
Function at 0x454560
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x512e18
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5566e0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], ebx
call fcn.004caa87
push ebx
mov byte [esp + 0x3c], 1
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push ebx
call edi
mov esi, eax
cmp esi, ebx
je 0x454641
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
mov ebp, eax
push 8
push ebp
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push esi
push 0
push ebp
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_HeapSize]
push eax
call edi
mov al, byte [esi]
test al, al
je 0x454637
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp al, 0x41
je 0x454621
cmp al, 0x42
je 0x454621
push esi
call edi
cmp eax, 4
je 0x454621
push esi
call edi
cmp eax, 5
je 0x454621
push esi
call edi
cmp eax, 6
je 0x454621
push esi
call edi
test eax, eax
je 0x454621
push esi
call edi
cmp eax, 2
je 0x454621
mov eax, dword [esp + 0x24]
push esi
push eax
lea ecx, [esp + 0x24]
call fcn.004cad3e
push 0
push esi
call fcn.004e22e6
add eax, 1
mov esi, eax
mov al, byte [esi]
add esp, 8
test al, al
jne 0x4545e3
push ebx
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x529b37
lea ecx, [esp + 0x18]
call fcn.0041aa20
mov byte [esp + 0x38], 2
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x40]
xor esi, esi
test eax, eax
jle 0x4546b8
test esi, esi
jl 0x45473e
cmp esi, eax
jge 0x45473e
mov ecx, dword [esp + 0x20]
lea eax, [ecx + esi*4]
push eax
lea ecx, [esp + 0x18]
call fcn.00404e60
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x454727
push ecx
push edi
call fcn.004e3135
add esp, 8
test eax, eax
sete al
test al, al
jne 0x454731
mov eax, dword [esp + 0x24]
add esi, 1
cmp esi, eax
jl 0x454662
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4546dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 0
call fcn.004cab25
lea eax, [edi - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45470f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push 0x80004005
call fcn.00404150
mov dword [esp + 0x18], 1
jmp 0x4546b8
jmp fcn.004c463b
Function at 0x454750
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x512dd8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5566e0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea ecx, [esp + 0x1c]
call fcn.004caa87
push 0
mov dword [esp + 0x3c], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
call edi
mov esi, eax
test esi, esi
je 0x45482e
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
mov ebp, eax
push 8
push ebp
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push esi
push 0
push ebp
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_HeapSize]
push eax
call edi
mov al, byte [esi]
test al, al
je 0x454824
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edi, edi
cmp al, 0x41
je 0x45480e
cmp al, 0x42
je 0x45480e
push esi
call edi
cmp eax, 4
je 0x45480e
push esi
call edi
cmp eax, 5
je 0x45480e
push esi
call edi
cmp eax, 6
je 0x45480e
push esi
call edi
test eax, eax
je 0x45480e
push esi
call edi
cmp eax, 2
je 0x45480e
mov eax, dword [esp + 0x24]
push esi
push eax
lea ecx, [esp + 0x24]
call fcn.004cad3e
push 0
push esi
call fcn.004e22e6
add eax, 1
mov esi, eax
mov al, byte [esi]
add esp, 8
test al, al
jne 0x4547d0
push ebx
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x529b37
lea ecx, [esp + 0x1c]
call fcn.0041aa20
push 0x529b37
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call fcn.0041aa20
mov ebx, dword [esp + 0x40]
mov byte [esp + 0x38], 2
mov eax, dword [ebx + 8]
xor edi, edi
test eax, eax
jle 0x454901
test edi, edi
jl 0x454986
cmp edi, eax
jge 0x454986
mov ecx, dword [ebx + 4]
lea eax, [ecx + edi*4]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404e60
mov eax, dword [esp + 0x24]
xor esi, esi
test eax, eax
jle 0x4548e6
nop
test esi, esi
jl 0x454986
cmp esi, eax
jge 0x454986
mov edx, dword [esp + 0x20]
lea eax, [edx + esi*4]
push eax
lea ecx, [esp + 0x18]
call fcn.00404e60
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x45497c
mov eax, dword [esp + 0x18]
push ecx
push eax
call fcn.004e3135
add esp, 8
test eax, eax
sete al
test al, al
jne 0x4548f3
mov eax, dword [esp + 0x24]
add esi, 1
cmp esi, eax
jl 0x454890
push 1
push edi
mov ecx, ebx
call fcn.004cac7a
sub edi, 1
mov eax, dword [ebx + 8]
add edi, 1
cmp edi, eax
jl 0x454865
xor ecx, ecx
cmp dword [ebx + 8], ecx
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x14]
setne cl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov esi, ecx
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x454930
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454955
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004cab25
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push 0x80004005
call fcn.00404150
jmp fcn.004c463b
Function at 0x456920
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5176cb
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5566e0]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
mov eax, dword [esp + 0x64]
movzx ecx, byte [eax + 0x456f6c]
jmp dword [ecx*4 + 0x456f58]
Function at 0x458900
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_recv]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
xor edi, edi
mov esi, 4
push 0
push esi
lea eax, [esp + edi + 0x18]
push eax
push ebp
call ebx
test eax, eax
je 0x458969
cmp eax, 0xffffffff
je 0x458969
sub esi, eax
add edi, eax
test esi, esi
jg 0x458916
mov eax, dword [esp + 0x10]
xor edi, edi
test eax, eax
mov esi, eax
jle 0x45896b
mov edi, edi
mov ecx, dword [esp + 0x1c]
push 0
push esi
lea edx, [edi + ecx]
push edx
push ebp
call ebx
test eax, eax
je 0x458969
cmp eax, 0xffffffff
je 0x458969
sub esi, eax
add edi, eax
test esi, esi
jg 0x458940
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x458980
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
push esi
mov esi, dword [ebx]
push edi
xor edi, edi
test esi, esi
jle 0x4589bf
mov ebp, dword [sym.imp.WS2_32.dll_send]
cmp esi, 0x3fc
mov eax, 0x3fc
jg 0x4589a0
mov eax, esi
mov ecx, dword [esp + 0x10]
push 0
push eax
lea eax, [edi + ebx]
push eax
push ecx
call ebp
test eax, eax
je 0x4589c8
cmp eax, 0xffffffff
je 0x4589c8
sub esi, eax
add edi, eax
test esi, esi
jg 0x458991
pop edi
pop esi
mov eax, 1
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_recv]
push esi
push edi
xor edi, edi
mov esi, 4
mov ecx, dword [esp + 0x10]
push 0
push esi
lea eax, [edi + ebx]
push eax
push ecx
call ebp
test eax, eax
je 0x458a31
cmp eax, 0xffffffff
je 0x458a31
sub esi, eax
add edi, eax
test esi, esi
jg 0x4589e0
mov esi, dword [ebx]
sub esi, 4
test esi, esi
jle 0x458a37
mov eax, dword [esp + 0x10]
push 0
push esi
lea edx, [edi + ebx]
push edx
push eax
call ebp
test eax, eax
je 0x458a31
cmp eax, 0xffffffff
je 0x458a31
sub esi, eax
add edi, eax
test esi, esi
jle 0x458a37
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x458a08
pop edi
pop esi
xor eax, eax
pop ebp
ret
mov eax, dword [ebx]
pop edi
pop esi
pop ebp
ret
Function at 0x45b900
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [esi + 0xc], 0xffffffff
je 0x45b9f9
push ebp
lea ebp, [esi + 0x40]
push ebx
cmp dword [ebp], 0x19
jge 0x45b9e5
mov eax, dword [esi + 0xa8]
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + ecx*4 + 0x44]
push 0
sub eax, edi
push eax
mov eax, dword [esi + 0xc]
add edx, edi
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x45b9f7
cmp eax, 0xffffffff
je 0x45b9f7
add edi, eax
cmp edi, 4
jle 0x45b9ed
jmp 0x45b960
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + eax*4 + 0x44]
mov ebx, dword [ecx]
cmp ebx, edi
mov dword [esp + 0xc], eax
je 0x45b9c9
jge 0x45b9ed
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esi + 0x38]
add eax, 1
cdq
mov ecx, 0x19
idiv ecx
sub edi, ebx
cmp dword [ebp], ecx
mov dword [esi + 0x38], edx
jl 0x45b9a6
cmp dword [esi + 0xc], 0xffffffff
je 0x45b9f7
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp], 0x19
jge 0x45b992
mov edx, dword [esp + 0xc]
mov eax, dword [esi + edx*4 + 0x44]
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + ecx*4 + 0x44]
push edi
add eax, ebx
push eax
push edx
call fcn.004ef8a0
add esp, 0xc
cmp edi, 4
jg 0x45b960
jmp 0x45b9ed
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esi + 0x38]
add eax, 1
cdq
mov ecx, 0x19
idiv ecx
xor edi, edi
mov dword [esi + 0x38], edx
jmp 0x45b9ed
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0xc], 0xffffffff
jne 0x45b913
pop ebx
pop ebp
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0xc], 0xffffffff
pop edi
pop ecx
ret
Function at 0x45c080
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ecx
cmp dword [esi + 0xb0], 0
jne 0x45c0f6
mov eax, dword [esi + 0xd4]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.004c6f68
mov ecx, dword [eax + 4]
call fcn.004c231a
mov eax, dword [esi + 0xb4]
test eax, eax
mov dword [esi + 0xac], 0
je 0x45c0cb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xb4], 0
push 0
push 0
push esi
push 0x45b8e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x14
mov dword [esi + 0xb4], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 3]
call fcn.00405f50
mov eax, 1
pop ecx
ret
Function at 0x470f40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x510e58
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5566e0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], vtable.CPen.0
mov dword [esp + 0x38], 0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x20]
call fcn.004ca7ae
mov ecx, dword [esi + 4]
lea eax, [esp + 0x1c]
push eax
call fcn.004ca886
mov ecx, dword [esi + 4]
push 0xd
mov dword [esp + 0x18], eax
call fcn.004c9e09
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x90]
cmp dword [eax + 8], 0
jle 0x4710d5
mov eax, dword [eax + 4]
mov ecx, dword [eax]
mov dword [esi + 0x24], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esi + 4]
mov dword [esi + 0x28], edx
mov edx, dword [eax]
mov eax, dword [eax + 4]
push eax
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.004ca1f0
mov ecx, dword [esi + 0x90]
xor edi, edi
cmp dword [ecx + 8], edi
jle 0x471065
test edi, edi
mov eax, dword [esi + 0x90]
jl 0x4710d5
cmp edi, dword [eax + 8]
jge 0x4710d5
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
lea ebx, [edi*8]
mov edx, dword [eax + ebx]
add eax, ebx
mov eax, dword [eax + 4]
push eax
push edx
call fcn.004c9ed2
mov eax, dword [esi + 0x90]
cmp edi, dword [eax + 8]
jge 0x4710d5
mov eax, dword [eax + 4]
mov edx, dword [eax + ebx]
mov ecx, dword [esi + 4]
add eax, ebx
mov eax, dword [eax + 4]
push eax
push edx
call fcn.004c9ed2
mov edx, dword [esi + 0x90]
add edi, 1
cmp edi, dword [edx + 8]
jl 0x471000
mov ecx, dword [esi + 0x90]
lea eax, [edi - 1]
test eax, eax
jl 0x4710d5
cmp eax, dword [ecx + 8]
jge 0x4710d5
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax*8]
lea eax, [ecx + eax*8]
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push edx
call fcn.004c9ed2
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 4]
push edx
call fcn.004ca886
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 4]
push eax
call fcn.004c9e09
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.CGdiObject.0
call fcn.004ca801
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jmp fcn.004c463b
Function at 0x471500
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x510df8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5566e0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], vtable.CPen.0
mov dword [esp + 0x38], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x28]
call fcn.004ca7ae
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x24]
push eax
call fcn.004ca886
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x20]
push eax
call edx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x10]
push eax
call fcn.004c9ddb
mov esi, dword [ebx + 0x90]
mov eax, dword [esi + 8]
cmp eax, edi
mov dword [esp + 0x14], eax
jge 0x4715a1
call fcn.004c463b
lea edi, [eax + 1]
call fcn.00471750
mov eax, dword [esp + 0x14]
mov esi, dword [esi + 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [esi + eax*8], ecx
mov dword [esi + eax*8 + 4], edx
mov eax, dword [ebx + 0x90]
mov ecx, dword [eax + 8]
add ecx, 0xffffffff
js 0x47159c
cmp ecx, dword [eax + 8]
jge 0x47159c
mov eax, dword [eax + 4]
lea eax, [eax + ecx*8]
mov ecx, dword [eax]
mov dword [ebx + 0x24], ecx
mov edx, dword [eax + 4]
mov ecx, dword [ebx + 4]
push 0xd
mov dword [ebx + 0x28], edx
call fcn.004c9e09
mov edx, dword [ebx + 0x28]
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 4]
push edx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004ca1f0
mov edx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 4]
push edx
push eax
call fcn.004c9ed2
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [ebx + 4]
call fcn.004ca886
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebx + 4]
push edx
call fcn.004c9ddb
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
mov edx, dword [esp + 0x20]
mov eax, dword [eax + 0x2c]
push edx
call eax
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], vtable.CGdiObject.0
call fcn.004ca801
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8