joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451fa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4bcc50
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x57e030]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 0x24]
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], esi
add edi, 0x8c
call fcn.00404990
xor ebp, ebp
mov dword [esp + 0x98], ebp
mov ebx, dword [esi + 0x24]
mov eax, dword [ebx]
mov edx, dword [eax + 4]
mov ecx, ebx
mov dword [esp + 0x3c], vtable.AutoLock.0
mov dword [esp + 0x40], ebx
call edx
push 0x4c8df0
lea ecx, [esp + 0x24]
mov byte [esp + 0x9c], 1
call fcn.00405d10
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4520da
xor eax, eax
mov ecx, 0xd
mov edx, 0xa
mov word [esp + 0x48], ax
mov eax, ebp
mov word [esp + 0x44], cx
mov word [esp + 0x46], dx
call fcn.00440970
mov esi, eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x1c], eax
cmp eax, dword [esi + 0x14]
jbe 0x452078
call fcn.00480e22
mov esi, dword [esi + 4]
test esi, esi
jne 0x4521c3
call fcn.00480e22
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esi + 0x10]
jb 0x452096
call fcn.00480e22
mov edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00404c90
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00404c90
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebp
add eax, edx
cmp ebp, eax
jb 0x452043
mov esi, dword [esp + 0x18]
mov edi, dword [esi + 0x24]
mov edx, dword [edi + 0xcc]
mov eax, dword [edx + 4]
lea esi, [edi + 0xcc]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov edi, dword [edi + 0xa4]
mov ecx, esi
call eax
push 0xa
lea ecx, [esp + 0x50]
push ecx
push edi
call fcn.0049032f
mov edi, dword [esp + 0x24]
mov edx, dword [edi + 0x34]
mov edx, dword [edx + 8]
lea ecx, [edi + 0x34]
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
call edx
mov byte [esp + 0x98], 0
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
mov eax, dword [esp + 0x30]
mov esi, eax
cmp eax, dword [esp + 0x34]
jbe 0x452145
call fcn.00480e22
mov eax, dword [esp + 0x24]
xor ebx, ebx
cmp eax, ebx
jne 0x4521ca
call fcn.00480e22
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x452160
call fcn.00480e22
mov eax, dword [edi + 0x28]
mov edx, dword [eax + 8]
lea ecx, [edi + 0x28]
push esi
call edx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], vtable.StringStorage.0
cmp eax, ebx
je 0x452185
push eax
call fcn.00480e32
add esp, 4
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.00480e32
add esp, 4
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004807f8
add esp, 0x88
ret
mov esi, dword [esi]
jmp 0x452088
mov eax, dword [eax]
jmp 0x452156
Function at 0x458c20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bacfd
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], 0x6d
mov dword [esi + 0xc], vtable.Control.0
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esi], vtable.EditIpAccessRuleDialog.0
mov eax, vtable.TextBox.0
mov dword [esi + 0x28], ebx
mov dword [esi + 0x24], eax
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], eax
push 0x44e0d0
push 0x44e0c0
push 3
push 0xc
lea eax, [esi + 0x3c]
push eax
mov byte [esp + 0x30], 2
call fcn.00481daa
mov byte [esp + 0x1c], 3
lea edi, [esi + 0x68]
push edi
mov dword [esi + 0x60], ebx
mov byte [esi + 0x64], bl
call fcn.00460b30
lea ebx, [esi + 0xa4]
push ebx
mov byte [esp + 0x20], 4
call fcn.00460b30
mov byte [esp + 0x1c], 5
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
push 2
mov ecx, edi
call eax
mov ebp, dword [edi]
push 0x9c66
call fcn.00401bb0
mov edx, dword [ebp + 8]
add esp, 4
push eax
mov ecx, edi
call edx
mov ebp, dword [edi]
push 0x9c65
call fcn.00401bb0
add esp, 4
push eax
mov eax, dword [ebp + 0xc]
mov ecx, edi
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x18]
push 2
mov ecx, ebx
call eax
mov edi, dword [ebx]
push 0x9c67
call fcn.00401bb0
mov edx, dword [edi + 8]
add esp, 4
push eax
mov ecx, ebx
call edx
mov edi, dword [ebx]
push 0x9c43
call fcn.00401bb0
add esp, 4
push eax
mov eax, dword [edi + 0xc]
mov ecx, ebx
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4

Function at 0x458d70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4b8c1e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.EditIpAccessRuleDialog.0
lea ecx, [esi + 0xa4]
mov dword [esp + 0x18], 2
call fcn.00460bc0
lea ecx, [esi + 0x68]
call fcn.00460bc0
push 0x44e0d0
push 3
push 0xc
lea eax, [esi + 0x3c]
push eax
call fcn.00481d47
mov edi, vtable.Control.0
mov dword [esi + 0x30], edi
mov dword [esi + 0x24], edi
mov eax, dword [esi + 0x20]
mov dword [esi], vtable.BaseDialog.0
test eax, eax
je 0x458deb
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 4]
test eax, eax
je 0x458dfb
push eax
call fcn.00481665
add esp, 4
mov dword [esi + 0xc], edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x459da0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bac22
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], 0x6f
mov dword [esi + 0xc], vtable.Control.0
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esi], vtable.ChangePasswordDialog.0
mov eax, vtable.TextBox.0
mov dword [esi + 0x28], ebx
mov dword [esi + 0x24], eax
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], eax
lea ecx, [esi + 0x3c]
mov byte [esp + 0x1c], 2
call fcn.00404990
lea edi, [esi + 0x58]
push edi
mov byte [esp + 0x20], 3
call fcn.00460b30
lea ebp, [esi + 0x94]
push ebp
mov byte [esp + 0x20], 4
call fcn.00460b30
mov al, byte [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x1c], 5
mov byte [esi + 0xd1], bl
mov ebx, dword [edi]
push 0x9c57
mov byte [esi + 0xd0], al
mov dword [esi + 0x18], ecx
call fcn.00401bb0
mov edx, dword [ebx + 8]
add esp, 4
push eax
mov ecx, edi
call edx
mov ebx, dword [edi]
push 0x9c55
call fcn.00401bb0
add esp, 4
push eax
mov eax, dword [ebx + 0xc]
mov ecx, edi
call eax
mov edi, dword [ebp]
push 0x9c58
call fcn.00401bb0
mov edx, dword [edi + 8]
add esp, 4
push eax
mov ecx, ebp
call edx
mov edi, dword [ebp]
push 0x9c55
call fcn.00401bb0
add esp, 4
push eax
mov eax, dword [edi + 0xc]
mov ecx, ebp
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc

Function at 0x45a3e0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b9b5b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
push 0x24
call fcn.00480ed5
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 0
test eax, eax
je 0x45a438
mov ecx, dword [esi + 0x68]
mov edi, dword [ebp + 8]
push ecx
push eax
call fcn.0045a4a0
mov esi, eax
jmp 0x45a43a
xor esi, esi
mov dword [esp + 0x20], 0xffffffff
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne al
mov byte [esi + 0xc], al
mov edx, dword [vtable.LocalMutex.0]
mov eax, dword [edx + 4]
mov ecx, 0x583ba0
call eax
mov edx, dword [vtable.LocalMutex.0]
mov eax, dword [edx + 8]
mov ecx, 0x583ba0
call eax
mov ecx, dword [0x5949d0]
push esi
call fcn.004141e0
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x45a4a0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4b8238
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
lea eax, [esi + 8]
push eax
push 4
push esi
push 0x413f30
push 0
mov dword [esi], vtable.Thread.0
mov byte [esi + 0xc], 0
push 0
mov byte [esi + 0xd], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
mov dword [esi + 0x10], edi
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
push 0xc
mov dword [esi], vtable.HttpClient.0
mov dword [esi + 0x20], ecx
call fcn.00480ed5
add esp, 4
test eax, eax
je 0x45a52b
mov dword [eax + 4], vtable.OutputStream.0
mov dword [eax], vtable.SocketStream.0
mov dword [eax + 4], vtable.SocketStream.1.0
mov dword [eax + 8], edi
jmp 0x45a52d
xor eax, eax
push 8
mov dword [esi + 0x14], eax
call fcn.00480ed5
add esp, 4
test eax, eax
je 0x45a54c
mov ecx, dword [esi + 0x14]
mov dword [eax], vtable.DataInputStream.0
mov dword [eax + 4], ecx
jmp 0x45a54e
xor eax, eax
push 8
mov dword [esi + 0x18], eax
call fcn.00480ed5
add esp, 4
test eax, eax
je 0x45a581
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x45a574
add ecx, 4
mov dword [eax], vtable.DataOutputStream.0
mov dword [eax + 4], ecx
jmp 0x45a583
xor ecx, ecx
mov dword [eax], vtable.DataOutputStream.0
mov dword [eax + 4], ecx
jmp 0x45a583
xor eax, eax
mov dword [esi + 0x1c], eax
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 8
Function at 0x45e3e0
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ecx
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
push ebx
push ebp
push esi
mov esi, dword [ecx + 4]
mov ecx, eax
shr ecx, 4
xor ecx, esi
and ecx, 0xf0f0f0f
xor esi, ecx
shl ecx, 4
xor eax, ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, esi
and ecx, 0xffff
xor esi, ecx
shl ecx, 0x10
xor eax, ecx
mov ecx, esi
shr ecx, 2
xor ecx, eax
and ecx, 0x33333333
xor eax, ecx
add ecx, ecx
add ecx, ecx
xor esi, ecx
mov ecx, esi
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor eax, ecx
shl ecx, 8
xor ecx, esi
rol ecx, 1
mov esi, ecx
xor ecx, eax
and ecx, 0xaaaaaaaa
xor esi, ecx
xor ecx, eax
rol ecx, 1
push edi
mov edi, ecx
mov dword [esp + 0x10], 8
jmp 0x45e460
mov eax, esi
ror eax, 4
xor eax, dword [edx]
add edx, 4
mov ecx, eax
shr ecx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x57f4d8]
or ecx, dword [ebx*4 + 0x57f6d8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x57f8d8]
and eax, 0x3f
or ecx, dword [eax*4 + 0x57fad8]
mov eax, dword [edx]
xor eax, esi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x57f5d8]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x57f7d8]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x57f9d8]
and eax, 0x3f
or ebx, dword [eax*4 + 0x57fbd8]
add edx, 4
or ebx, ecx
xor edi, ebx
mov eax, edi
ror eax, 4
xor eax, dword [edx]
add edx, 4
mov ecx, eax
shr ecx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x57f4d8]
or ecx, dword [ebx*4 + 0x57f6d8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x57f8d8]
and eax, 0x3f
or ecx, dword [eax*4 + 0x57fad8]
mov eax, dword [edx]
xor eax, edi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x57f5d8]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x57f7d8]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x57f9d8]
and eax, 0x3f
or ebx, dword [eax*4 + 0x57fbd8]
add edx, 4
or ebx, ecx
xor esi, ebx
sub dword [esp + 0x10], 1
jne 0x45e460
ror esi, 1
mov eax, esi
xor eax, edi
and eax, 0xaaaaaaaa
xor esi, eax
xor eax, edi
ror eax, 1
mov ecx, eax
shr ecx, 8
xor ecx, esi
and ecx, 0xff00ff
xor esi, ecx
shl ecx, 8
xor eax, ecx
mov ecx, eax
shr ecx, 2
xor ecx, esi
and ecx, 0x33333333
xor esi, ecx
lea edx, [ecx*4]
mov ecx, esi
shr ecx, 0x10
xor eax, edx
mov edx, dword [esp + 0x18]
xor ecx, eax
and ecx, 0xffff
xor eax, ecx
shl ecx, 0x10
xor esi, ecx
mov ecx, esi
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
mov edi, ecx
shl edi, 4
xor edi, esi
mov dword [edx], edi
pop edi
pop esi
xor ecx, eax
pop ebp
mov dword [edx + 4], ecx
pop ebx
pop ecx
ret
Function at 0x45e5f0
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x4be756
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebp
push esi
push edi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
lea eax, [edi + 8]
push eax
push 4
push edi
push 0x413f30
push 0
mov dword [edi], vtable.Thread.0
mov byte [edi + 0xc], 0
push 0
mov byte [edi + 0xd], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 4], eax
lea esi, [edi + 0x10]
mov dword [esp + 0x48], 0
push esi
mov dword [edi], vtable.TcpServer.0
call fcn.0045ee60
push ebx
lea ecx, [edi + 0x48]
push ecx
mov byte [esp + 0x50], 1
call fcn.004049f0
push ebp
lea edx, [esp + 0x14]
push ebx
mov byte [esp + 0x50], 2
push edx
mov word [edi + 0x64], bp
call fcn.0045ecb0
add esp, 0xc
cmp byte [esp + 0x5c], 0
mov byte [esp + 0x48], 3
je 0x45e696
mov ecx, esi
call fcn.0045f870
lea ecx, [esp + 0x10]
call fcn.0045f1c0
mov eax, dword [edi + 0x34]
push 0xa
push eax
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x45e6c9
lea ecx, [esp + 0x1c]
push ecx
call fcn.0045fcc0
push 0x56ea00
lea edx, [esp + 0x20]
push edx
call fcn.004841dc
cmp byte [esp + 0x58], 0
je 0x45e6e3
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne cl
mov byte [edi + 0xc], cl
mov dword [esp + 0x10], vtable.WsaStartup.0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, edi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x3c
ret 0x10

Function at 0x45e8a0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b8
mov eax, dword [0x57e030]
xor eax, esp
mov dword [esp + 0x1b4], eax
cmp byte [0x594816], 0
je 0x45e8e1
push str.WindowsSocket_already_initialized.
lea eax, [esp + 4]
push eax
call fcn.004048f0
push 0x56e6e0
lea ecx, [esp + 4]
push ecx
call fcn.004841dc
lea edx, [esp + 0x20]
push edx
push 0x102
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x45e913
push str.Failed_to_initialize_WindowsSocket.
lea eax, [esp + 4]
push eax
call fcn.004048f0
push 0x56e6e0
lea ecx, [esp + 4]
push ecx
call fcn.004841dc
mov ecx, dword [esp + 0x1b4]
xor ecx, esp
mov byte [0x594816], 1
call fcn.004807f8
mov esp, ebp
pop ebp
ret
Function at 0x45e9a0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x110
mov eax, dword [0x57e030]
xor eax, esp
mov dword [esp + 0x10c], eax
push pe_nt_image_headers32
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x45e9f0
push 0x400
push str.Host_name_unavailable
push edi
call fcn.00490790
add esp, 0xc
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004807f8
add esp, 0x110
ret
push ebp
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebp, eax
test ebp, ebp
jne 0x45ea2b
push 0x400
push str.IP_address_unavailable
push edi
call fcn.00490790
add esp, 0xc
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004807f8
add esp, 0x110
ret
mov byte [edi], 0
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
mov dword [esp + 4], 0
je 0x45eafe
push ebx
push esi
xor ebx, ebx
xor eax, eax
xor esi, esi
cmp ax, word [ebp + 0xa]
jge 0x45ea9a
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebx + ecx]
movzx eax, byte [edx + esi]
push eax
lea ecx, [esp + 0x14]
push 0x562c3c
push ecx
call fcn.004905c6
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45ea72
sub eax, edx
mov edx, 0x3ff
sub edx, eax
push edx
lea eax, [esp + 0x14]
push eax
push edi
call fcn.00490650
movsx ecx, word [ebp + 0xa]
inc esi
add esp, 0xc
cmp esi, ecx
jl 0x45ea50
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45eaa0
sub eax, edx
mov byte [edi + eax - 1], cl
mov edx, dword [ebp + 0xc]
cmp dword [ebx + edx + 4], 0
je 0x45eadf
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45eac0
sub eax, edx
mov ecx, 0x3ff
sub ecx, eax
push ecx
push 0x562c40
push edi
call fcn.00490650
add esp, 0xc
mov eax, dword [esp + 0xc]
mov edx, dword [ebp + 0xc]
inc eax
lea ebx, [eax*4]
cmp dword [ebx + edx], 0
mov dword [esp + 0xc], eax
jne 0x45ea46
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
pop ebp
xor ecx, esp
call fcn.004807f8
add esp, 0x110
ret
Function at 0x45ecb0
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x4be6c1
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebp
push esi
push edi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x8c]
xor edi, edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x14], edi
call fcn.0041e6c0
xor eax, eax
mov dword [esi + 8], edi
mov word [esi + 4], ax
mov ecx, dword [esp + 0x90]
push ecx
lea edx, [esp + 0x40]
mov dword [esp + 0x88], edi
push edx
mov dword [esp + 0x1c], 1
call fcn.004049f0
mov dword [esp + 0x84], 1
mov eax, dword [vtable.LocalMutex.0]
mov edx, dword [eax + 4]
mov ecx, 0x580d5c
mov dword [esp + 0x18], vtable.AutoLock.0
mov dword [esp + 0x1c], ecx
call edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x8c], 2
call fcn.0045cdf0
mov byte [esp + 0x84], 3
mov eax, dword [esp + 0x30]
mov ebp, eax
cmp eax, dword [esp + 0x34]
jbe 0x45ed6f
call fcn.00480e22
mov eax, dword [esp + 0x24]
cmp eax, edi
jne 0x45edac
call fcn.00480e22
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x45ed88
call fcn.00480e22
push ebp
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, edi
jne 0x45edb0
lea edx, [esp + 0x58]
push edx
call fcn.0045fcc0
push 0x56ea00
lea eax, [esp + 0x5c]
push eax
call fcn.004841dc
mov eax, dword [eax]
jmp 0x45ed7e
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], vtable.AnsiStringStorage.0
cmp eax, edi
je 0x45edda
push eax
call fcn.00480e32
add esp, 4
mov ecx, dword [esp + 0x24]
push ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.00480e32
mov byte [esp + 0x88], 1
mov edx, dword [vtable.LocalMutex.0]
mov eax, dword [edx + 8]
add esp, 4
mov ecx, 0x580d5c
call eax
mov eax, dword [esp + 0x4c]
mov cx, word [esp + 0x94]
mov word [esi + 4], cx
mov dword [esp + 0x3c], vtable.StringStorage.0
cmp eax, edi
je 0x45ee30
push eax
call fcn.00480e32
add esp, 4
mov edx, dword [esp + 0x40]
push edx
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
call fcn.00480e32
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x78
ret
Function at 0x45ee60
Capabilities:
Access peb ldr_data
Create tcp socket
Create udp socket

Disassembly:
push 0xffffffffffffffff
push 0x4bcb86
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov edi, dword [esp + 0x44]
lea esi, [edi + 4]
mov dword [edi], vtable.SocketIPv4.0
call fcn.0041e6c0
lea eax, [edi + 0xc]
xor ebx, ebx
mov dword [esp + 0x3c], ebx
push eax
mov dword [edi + 8], vtable.LocalMutex.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 6
mov byte [esp + 0x40], 1
push 1
push 2
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov byte [edi + 0x34], bl
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0x24], eax
mov byte [edi + 0x28], bl
cmp eax, 0xffffffff
jne 0x45eeed
lea ecx, [esp + 0x10]
push ecx
call fcn.0045fcc0
push 0x56ea00
lea edx, [esp + 0x14]
push edx
call fcn.004841dc
mov eax, edi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x30
ret 4

Function at 0x45f070
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4be663
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x57e030]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push edi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 8]
mov eax, 2
push ecx
mov word [esp + 0x44], ax
call dword [sym.imp.WS2_32.dll_htonl]
movzx edx, word [edi + 4]
push edx
mov dword [esp + 0x48], eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 0x24]
mov word [esp + 0x42], ax
push 0x10
lea eax, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x45f0ff
lea edx, [esp + 0x1c]
push edx
call fcn.0045fcc0
push 0x56ea00
lea eax, [esp + 0x20]
push eax
call fcn.004841dc
mov edx, dword [esi + 8]
mov eax, dword [edx + 4]
lea edi, [esi + 8]
mov ecx, edi
mov dword [esp + 0x10], vtable.AutoLock.0
mov dword [esp + 0x14], edi
call eax
mov dword [esp + 0x60], 0
mov ebx, dword [esi + 0x30]
test ebx, ebx
je 0x45f13c
mov dword [ebx], vtable.WsaStartup.0
call dword [sym.imp.WS2_32.dll_WSACleanup]
push ebx
call fcn.00480e32
add esp, 4
push 0xc
call fcn.00480ed5
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x60], 1
test eax, eax
je 0x45f17c
mov ecx, dword [esp + 0x40]
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [esp + 0x54]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x5c]
mov dword [edx + 0xc], ecx
mov ecx, eax
call fcn.0045eb20
jmp 0x45f17e
xor eax, eax
mov dword [esi + 0x30], eax
mov dword [esp + 0x60], 0xffffffff
mov byte [esi + 0x34], 0
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004807f8
mov esp, ebp
pop ebp
ret