joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440ab4
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
mov dword [ebp - 0x58], eax
xor eax, eax
mov dword [ebp - 0x5c], eax
xor eax, eax
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x40
call fcn.00403c9c
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x10
call fcn.00403c9c
mov dword [ebp - 0x50], 0x67452301
mov dword [ebp - 0x4c], 0xefcdab89
mov dword [ebp - 0x48], 0x98badcfe
mov dword [ebp - 0x44], 0x10325476
mov eax, ebx
shr eax, 0x1d
add dword [ebp - 0x5c], eax
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
add dword [ebp - 0x60], eax
cmp eax, dword [ebp - 0x60]
jbe 0x440b28
inc dword [ebp - 0x5c]
test ebx, ebx
jbe 0x440b7e
mov edi, 0x40
sub edi, dword [ebp - 0x54]
cmp ebx, edi
jb 0x440b65
mov ecx, edi
mov eax, dword [ebp - 0x54]
lea edx, [ebp + eax - 0x40]
mov eax, esi
call fcn.0040333c
mov eax, 0x40
sub eax, dword [ebp - 0x54]
sub ebx, eax
mov eax, 0x40
sub eax, dword [ebp - 0x54]
add esi, eax
push ebp
call fcn.004401f8
pop ecx
jmp 0x440b7a
mov eax, dword [ebp - 0x54]
lea edx, [ebp + eax - 0x40]
mov eax, esi
mov ecx, ebx
call fcn.0040333c
add dword [ebp - 0x54], ebx
xor ebx, ebx
test ebx, ebx
ja 0x440b2c
mov eax, dword [ebp - 0x54]
mov byte [ebp + eax - 0x40], 0x80
cmp dword [ebp - 0x54], 0x38
jb 0x440b93
push ebp
call fcn.004401f8
pop ecx
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x60]
mov dword [eax], edx
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x5c]
mov dword [eax], edx
push ebp
call fcn.004401f8
pop ecx
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 0x50]
mov ecx, 0x10
call fcn.0040333c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x441ebc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jbe 0x441edd
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
movzx ebx, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x441eca
pop edi
pop esi
pop ebx
ret

Function at 0x441f18
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], edx
mov esi, eax
mov eax, dword [esi]
call fcn.00441ee4
mov ebx, eax
add esi, 4
mov eax, dword [esi]
call fcn.00441ee4
mov esi, eax
xor eax, eax
mov ecx, dword [0x5ebe6c]
mov edx, dword [0x5ebe70]
mov dword [esp + 4], edx
mov edx, dword [0x5ebe74]
mov dword [esp + 8], edx
mov edx, dword [0x5ebe78]
mov dword [esp + 0xc], edx
mov edx, 0x20
add eax, 0x9e3779b9
mov edi, esi
shl edi, 4
mov ebp, esi
xor ebp, ecx
add edi, ebp
mov ebp, esi
shr ebp, 5
xor ebp, eax
add edi, ebp
add edi, dword [esp + 4]
add ebx, edi
mov edi, ebx
shl edi, 4
mov ebp, dword [esp + 8]
xor ebp, ebx
add edi, ebp
mov ebp, ebx
shr ebp, 5
xor ebp, eax
add edi, ebp
add edi, dword [esp + 0xc]
add esi, edi
dec edx
jne 0x441f64
mov eax, ebx
call fcn.00441ee4
mov edx, dword [esp]
mov dword [edx], eax
mov eax, esi
call fcn.00441ee4
mov edx, dword [esp]
add edx, 4
mov dword [edx], eax
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x441fc8
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], edx
mov esi, eax
mov eax, dword [esi]
call fcn.00441ee4
mov ebx, eax
add esi, 4
mov eax, dword [esi]
call fcn.00441ee4
mov esi, eax
mov eax, 0xc6ef3720
mov ecx, dword [0x5ebe6c]
mov edx, dword [0x5ebe70]
mov dword [esp + 4], edx
mov edx, dword [0x5ebe74]
mov dword [esp + 8], edx
mov edx, dword [0x5ebe78]
mov dword [esp + 0xc], edx
mov edx, 0x20
mov edi, ebx
shl edi, 4
mov ebp, dword [esp + 8]
xor ebp, ebx
add edi, ebp
mov ebp, ebx
shr ebp, 5
xor ebp, eax
add edi, ebp
add edi, dword [esp + 0xc]
sub esi, edi
mov edi, esi
shl edi, 4
mov ebp, esi
xor ebp, ecx
add edi, ebp
mov ebp, esi
shr ebp, 5
xor ebp, eax
add edi, ebp
add edi, dword [esp + 4]
sub ebx, edi
sub eax, 0x9e3779b9
dec edx
jne 0x442017
mov eax, ebx
call fcn.00441ee4
mov edx, dword [esp]
mov dword [edx], eax
mov eax, esi
call fcn.00441ee4
mov edx, dword [esp]
add edx, 4
mov dword [edx], eax
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x442254
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov esi, dword [eax]
mov edi, dword [ecx]
mov eax, ebx
mov ecx, 3
xor edx, edx
div ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
lea ecx, [0x5ddcac]
xor eax, eax
xor ebx, ebx
xor edx, edx
cmp dword [ebp - 4], 0
je 0x4422bb
lodsw ax, word [esi]
mov bl, al
shr bl, 2
mov dl, byte [ebx + ecx]
mov bh, ah
and bh, 0xf
rol ax, 4
and ax, 0x3f
mov dh, byte [eax + ecx]
mov ax, dx
stosw word es:[edi], ax
lodsb al, byte [esi]
mov bl, al
shr bx, 6
mov dl, byte [ebx + ecx]
and al, 0x3f
xor ah, ah
mov dh, byte [eax + ecx]
mov ax, dx
stosw word es:[edi], ax
dec dword [ebp - 4]
jne 0x442281
cmp dword [ebp - 8], 0
je 0x44230b
xor eax, eax
xor ebx, ebx
xor edx, edx
lodsb al, byte [esi]
shl ax, 6
mov bl, ah
mov dl, byte [ebx + ecx]
dec dword [ebp - 8]
je 0x4422f6
shl ax, 2
and ah, 3
lodsb al, byte [esi]
shl ax, 4
mov bl, ah
mov dh, byte [ebx + ecx]
shl edx, 0x10
shr al, 2
mov bl, al
mov dl, byte [ebx + ecx]
mov dh, 0x3d
jmp 0x442305
shr al, 2
mov bl, al
mov dh, byte [ebx + ecx]
shl edx, 0x10
mov dh, 0x3d
mov dl, 0x3d
mov eax, edx
ror eax, 0x10
stosd dword es:[edi], eax
pop ecx
pop ecx
pop ebp
ret

Function at 0x44e9dc
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
mov ebx, dword [eax]
mov esi, ebx
xor esi, ecx
and esi, 0xff
shr ebx, 8
mov esi, dword [edx + esi*4]
xor esi, ebx
mov dword [eax], esi
and esi, 0xff
add dword [eax + 4], esi
imul ebx, dword [eax + 4], 0x8088405
inc ebx
mov dword [eax + 4], ebx
shr ebx, 0x18
mov esi, dword [eax + 8]
xor ebx, esi
and ebx, 0xff
shr esi, 8
mov edx, dword [edx + ebx*4]
xor edx, esi
mov dword [eax + 8], edx
mov eax, ecx
pop esi
pop ebx
ret
Function at 0x44ea60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
cmp dword [ebp - 0xc], 0xc
jge 0x44ea85
xor eax, eax
jmp 0x44ebb6
inc dword [0x5e0960]
mov edx, dword [0x5e0960]
cmp edx, 1
jne 0x44eaaa
push 0
call fcn.0044e554
pop ecx
xor eax, 0xbb40e64e
push eax
call fcn.0044e56c
pop ecx
mov ecx, edi
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0044ea28
xor ebx, ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], eax
call fcn.0044e560
sar eax, 7
and eax, 0xff
mov dword [ebp - 0x14], eax
mov edx, edi
mov eax, esi
call fcn.0044e9bc
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
mov edx, edi
mov eax, esi
call fcn.0044e9dc
mov dl, byte [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
xor dl, byte [ebp - 0x14]
mov byte [ecx], dl
inc ebx
inc dword [ebp - 0x24]
cmp ebx, 0xa
jl 0x44eabe
mov ecx, edi
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0044ea28
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x20]
mov edx, eax
xor ebx, ebx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ecx
mov edx, edi
mov eax, esi
call fcn.0044e9bc
mov dword [ebp - 0x10], eax
mov eax, esi
mov ecx, dword [ebp - 0x28]
mov edx, edi
movzx ecx, byte [ecx]
call fcn.0044e9dc
mov al, byte [ebp - 0x10]
mov edx, dword [ebp - 0x28]
xor al, byte [edx]
mov ecx, dword [ebp - 0x2c]
mov byte [ecx], al
inc ebx
inc dword [ebp - 0x2c]
inc dword [ebp - 0x28]
cmp ebx, 0xa
jl 0x44eb16
mov edx, edi
mov eax, esi
call fcn.0044e9bc
mov dword [ebp - 0x10], eax
mov eax, esi
mov ecx, dword [ebp + 8]
mov edx, edi
shr ecx, 0x10
and ecx, 0xff
call fcn.0044e9dc
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
shr eax, 0x10
mov cl, byte [ebp - 0x10]
and al, 0xff
xor cl, al
mov eax, esi
mov byte [edx + ebx], cl
mov edx, edi
inc ebx
call fcn.0044e9bc
mov dword [ebp - 0x10], eax
mov eax, esi
mov ecx, dword [ebp + 8]
mov edx, edi
shr ecx, 0x18
and ecx, 0xff
call fcn.0044e9dc
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
shr eax, 0x18
mov cl, byte [ebp - 0x10]
and al, 0xff
xor cl, al
mov byte [edx + ebx], cl
inc ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44fb18
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
xor esi, esi
test eax, eax
mov dword [esp + 4], ecx
mov dword [esp], edx
jne 0x44fb35
mov eax, 0xffffff9a
jmp 0x44fcfd
mov ebx, eax
cmp dword [ebx + 0x2c], 0
jne 0x44fb47
mov eax, 0xffffff9a
jmp 0x44fcfd
xor edx, edx
mov dword [ebx + 0x34], edx
cmp dword [ebx + 0x80], 8
jne 0x44fb9e
cmp dword [ebx + 0x84], 0
jne 0x44fb9e
test esi, esi
jne 0x44fb9e
cmp dword [ebx + 0x40], 0
jne 0x44fb80
mov eax, ebx
call fcn.0044f9a4
mov dword [ebx + 0x40], 0x10000
lea edx, [ebx + 0x88]
inc eax
mov dword [ebx + 0x3c], edx
mov edi, dword [ebx + 0x44]
lea eax, [ebx + 0x30]
mov edx, 4
call fcn.00451320
mov esi, eax
mov eax, dword [ebx + 0x44]
sub eax, edi
add dword [ebx + 0x6c], eax
test esi, esi
je 0x44fb62
cmp esi, 1
jne 0x44fba5
xor esi, esi
cmp dword [ebx + 0x6c], 0
jbe 0x44fbbc
test esi, esi
jne 0x44fbbc
mov eax, ebx
call fcn.0044f9a4
inc eax
jne 0x44fbbc
or esi, 0xffffffff
cmp dword [ebx + 0x80], 8
jne 0x44fbdd
cmp dword [ebx + 0x84], 0
jne 0x44fbdd
lea eax, [ebx + 0x30]
call fcn.004515e4
mov esi, eax
xor eax, eax
mov dword [ebx + 0x68], eax
cmp dword [ebx + 0x84], 0
jne 0x44fbf6
mov edx, dword [ebx + 0x1008c]
mov dword [esp + 4], edx
mov ecx, dword [ebx + 0x38]
mov dword [esp], ecx
mov edi, dword [ebx + 0x44]
add edi, dword [ebx + 0x100a4]
mov eax, dword [ebx + 0x74]
add eax, 0x10
mov ecx, 4
mov edx, dword [esp + 4]
call fcn.0044ed40
mov eax, dword [ebx + 0x74]
add eax, 0x14
mov ecx, 4
mov edx, edi
call fcn.0044ed40
cmp dword [ebx + 0x5c], 1
jne 0x44fc40
mov eax, dword [ebx + 0x74]
add eax, 0x24
mov ecx, 2
mov edx, 1
call fcn.0044ed40
mov eax, dword [ebx + 0x74]
add eax, 0x18
mov ecx, 4
mov edx, dword [esp]
call fcn.0044ed40
test esi, esi
jne 0x44fc67
lea eax, [ebx + 0x24]
mov ecx, dword [ebx + 0x78]
mov edx, dword [ebx + 0x74]
call fcn.0044ec18
mov esi, eax
mov eax, dword [ebx + 0x74]
push eax
call fcn.0044e534
pop ecx
test esi, esi
jne 0x44fcf0
mov edx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x1c]
call dword [ebx + 0xc]
mov dword [esp + 8], eax
push 0
mov ecx, dword [ebx + 0x70]
mov edx, dword [ebx + 0x20]
add ecx, 0xe
mov eax, dword [ebx + 0x1c]
call dword [ebx + 0x10]
test eax, eax
je 0x44fc9a
or esi, 0xffffffff
test esi, esi
jne 0x44fcb0
push 4
mov ecx, dword [esp + 8]
mov edx, dword [ebx + 0x20]
mov eax, ebx
call fcn.0044ecd4
mov esi, eax
test esi, esi
jne 0x44fcc4
push 4
mov ecx, edi
mov edx, dword [ebx + 0x20]
mov eax, ebx
call fcn.0044ecd4
mov esi, eax
test esi, esi
jne 0x44fcda
push 4
mov ecx, dword [esp + 4]
mov edx, dword [ebx + 0x20]
mov eax, ebx
call fcn.0044ecd4
mov esi, eax
push 0
mov ecx, dword [esp + 0xc]
mov edx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x1c]
call dword [ebx + 0x10]
test eax, eax
je 0x44fcf0
or esi, 0xffffffff
inc dword [ebx + 0x100b0]
xor eax, eax
mov dword [ebx + 0x2c], eax
mov eax, esi
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x4503a4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
cmp dword [0x5e09d4], 0
je 0x4504c6
xor eax, eax
xor esi, esi
mov dword [0x5e09d4], eax
mov eax, 0x5e09d8
xor ebx, ebx
xor edx, edx
mov ecx, 0x1f
mov dl, byte [eax]
inc eax
sub ecx, edx
mov edx, 1
shl edx, cl
or esi, edx
inc ebx
cmp ebx, 0xe
jl 0x4503c5
xor ebx, ebx
mov ecx, 0x5ebec4
mov eax, ebx
xor edx, edx
test al, 1
je 0x4503f7
mov edi, eax
shr edi, 1
xor edi, esi
jmp 0x4503fb
mov edi, eax
shr edi, 1
mov eax, edi
inc edx
cmp edx, 8
jl 0x4503eb
mov dword [ecx], eax
inc ebx
add ecx, 4
cmp ebx, 0x100
jl 0x4503e7
xor ebx, ebx
mov esi, 0x5ebec4
mov eax, dword [esi]
mov ecx, eax
mov edx, eax
shr ecx, 8
shr edx, 0x18
and ecx, 0xff00
add edx, ecx
mov ecx, eax
and ecx, 0xff00
shl ecx, 8
add edx, ecx
mov ecx, eax
and ecx, 0xff
shl ecx, 0x18
add edx, ecx
lea ecx, [esi + 0x400]
mov dword [esi + 0x1000], edx
mov edx, 1
mov edi, eax
and edi, 0xff
shr eax, 8
mov edi, dword [edi*4 + 0x5ebec4]
xor edi, eax
mov eax, edi
mov ebp, eax
mov edi, eax
shr ebp, 8
mov dword [ecx], eax
shr edi, 0x18
and ebp, 0xff00
add edi, ebp
mov ebp, eax
and ebp, 0xff00
shl ebp, 8
add edi, ebp
mov ebp, eax
and ebp, 0xff
shl ebp, 0x18
add edi, ebp
mov dword [ecx + 0x1000], edi
inc edx
add ecx, 0x400
cmp edx, 4
jl 0x450457
inc ebx
add esi, 4
cmp ebx, 0x100
jl 0x450418
xor eax, eax
mov dword [0x5e09d0], eax
jmp 0x4504cf
cmp dword [0x5e09d0], 0
jne 0x4504c6
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x455f5c
Capabilities:
Initialize winsock library

Disassembly:
add esp, 0xfffffe70
mov al, 1
cmp byte [0x5e1794], 0
jne 0x455f84
push esp
push 0x101
call sub.WS2_32.dll_WSAStartup_1
test eax, eax
sete al
mov byte [0x5e1794], 1
add esp, 0x190
ret

Function at 0x455fa0
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00405bc0
push eax
call sub.WS2_32.dll_gethostbyname_1
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00403c9c
test ebx, ebx
je 0x455fef
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
movzx ecx, byte [edx]
mov byte [esp + 4], cl
movzx ecx, byte [edx + 1]
mov byte [esp + 5], cl
movzx ecx, byte [edx + 2]
mov byte [esp + 6], cl
movzx eax, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret
Function at 0x456260
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4563ce
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x24], 0
jne 0x4563b3
call fcn.00455f5c
push 0
mov eax, dword [ebx + 0x1c]
push eax
push 2
call sub.WS2_32.dll_socket_1
mov esi, eax
mov dword [ebx + 0x28], esi
inc esi
jne 0x4562cf
push 0
call sub.WS2_32.dll_WSAGetLastError_1
lea edx, [ebp - 0x10]
call fcn.0040effc
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x4563e4
mov eax, ebx
call fcn.00456000
mov word [ebx + 4], 2
mov edx, dword [ebx + 0x14]
mov eax, ebx
call fcn.00455fa0
mov dword [ebx + 8], eax
movzx eax, word [ebx + 0x18]
push eax
call sub.WS2_32.dll_htons
mov word [ebx + 6], ax
push 0
push 0
push 0
mov eax, dword [ebx + 0x28]
push eax
call sub.WS2_32.dll_WSAAsyncSelect_1
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x8004667e
mov eax, dword [ebx + 0x28]
push eax
call sub.WS2_32.dll_ioctlsocket
push 0x10
lea eax, [ebx + 4]
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.WS2_32.dll_connect
test eax, eax
je 0x456351
push 0
call sub.WS2_32.dll_WSAGetLastError_1
lea edx, [ebp - 0x14]
call fcn.0040effc
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x456404
mov eax, ebx
call fcn.00456000
cmp dword [ebx + 0x28], 0xffffffff
setne al
mov byte [ebx + 0x24], al
lea eax, [ebp - 0x18]
push eax
movzx eax, byte [ebx + 8]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0
movzx eax, byte [ebx + 9]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
movzx eax, byte [ebx + 0xa]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
movzx eax, byte [ebx + 0xb]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
movzx eax, word [ebx + 0x18]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x40]
mov ecx, 4
mov eax, 0x456424
call fcn.0040c20c
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x2c]
call fcn.00405758
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4563d5
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00405728
ret
Function at 0x456448
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x4564dd
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
cmp byte [ebx + 0x24], 0
je 0x4564c7
push 0
mov eax, dword [ebp - 4]
push eax
push edx
mov eax, dword [ebx + 0x28]
push eax
call sub.WS2_32.dll_send_1
mov esi, eax
cmp esi, 0xffffffff
jne 0x4564c7
call sub.WS2_32.dll_WSAGetLastError_1
mov edi, eax
cmp edi, 0x2733
je 0x4564c7
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 4]
test edi, edi
je 0x4564c7
push 0
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.0040effc
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x4564f8
mov eax, ebx
call fcn.00456000
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4564e4
lea eax, [ebp - 0x10]
call fcn.00405704
ret

Function at 0x4565d8
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45668f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
cmp esi, 0xffffffff
jne 0x45661e
cmp byte [ebx + 0x24], 0
je 0x45661e
lea eax, [ebp - 4]
push eax
push 0x4004667f
mov eax, dword [ebx + 0x28]
push eax
call sub.WS2_32.dll_ioctlsocket
jmp 0x456679
cmp byte [ebx + 0x24], 0
je 0x456679
push 0
push esi
push edi
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x456679
call sub.WS2_32.dll_WSAGetLastError_1
mov esi, eax
cmp esi, 0x2733
je 0x456679
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 4]
test esi, esi
je 0x456679
push 0
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.0040effc
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x4566a8
mov eax, ebx
call fcn.00456000
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456696
lea eax, [ebp - 0x10]
call fcn.00405704
ret
Function at 0x4566c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x45678c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00405704
or ecx, 0xffffffff
xor edx, edx
mov eax, esi
call fcn.004565d8
mov ebx, eax
test ebx, ebx
jbe 0x45676e
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405e50
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x456711
sub ebx, 4
mov ebx, dword [ebx]
mov edx, dword [ebp - 4]
mov ecx, ebx
mov eax, esi
call fcn.004565d8
mov edx, eax
lea eax, [ebp - 4]
call fcn.00405e50
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004059fc
mov eax, dword [ebp - 8]
lea eax, [esi + 0x2c]
mov edx, dword [ebp - 4]
call fcn.004059fc
call sub.kernel32.dll_GetTickCount_3
mov edi, eax
or ecx, 0xffffffff
xor edx, edx
mov eax, esi
call fcn.004565d8
mov ebx, eax
push 1
call sub.kernel32.dll_Sleep_4
test ebx, ebx
ja 0x45676e
call sub.kernel32.dll_GetTickCount_3
sub eax, edi
cmp eax, 0x3e8
jbe 0x456747
test ebx, ebx
jne 0x4566e9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456793
lea eax, [ebp - 4]
call fcn.00405704
ret

Function at 0x45679c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
call sub.kernel32.dll_GetTickCount_3
mov edi, eax
mov edx, ebx
mov eax, esi
call fcn.004566c0
cmp dword [ebx], 0
jne 0x4567bf
push 1
call sub.kernel32.dll_Sleep_4
cmp dword [ebx], 0
jne 0x4567d0
call sub.kernel32.dll_GetTickCount_3
sub eax, edi
cmp eax, dword [esi + 0x20]
jb 0x4567aa
pop edi
pop esi
pop ebx
ret

Function at 0x4573e8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x45747a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x457488]
mov dword [ebp - 7], eax
mov ax, word [0x45748c]
mov word [ebp - 3], ax
mov al, byte [0x45748e]
mov byte [ebp - 1], al
push 6
lea eax, [ebp - 7]
push eax
push 0x1004
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_3
lea eax, [ebp - 0x2c]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00405984
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetACP_3
mov edx, eax
pop eax
call fcn.0040af6c
push 2
lea edx, [ebp - 0x27]
push edx
push eax
call sub.GDI32.dll_TranslateCharsetInfo_1
mov ebx, dword [ebp - 0x27]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457481
lea eax, [ebp - 0x2c]
call fcn.00405704
ret

Function at 0x4577d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push ecx
mov esi, ecx
mov ebx, edx
add ebx, ebx
add ebx, ebx
add ebx, eax
mov eax, ebx
call fcn.004071f8
test eax, eax
je 0x457811
push esp
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect_1
mov dword [ebx], esi
push esp
mov eax, dword [esp + 4]
push eax
push 4
push ebx
call sub.kernel32.dll_VirtualProtect_1
push 4
push ebx
call sub.kernel32.dll_GetCurrentProcess_1
push eax
call sub.kernel32.dll_FlushInstructionCache_1
pop edx
pop esi
pop ebx
ret
Function at 0x4579d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
push esp
push 0x40
push esi
push ebx
call sub.kernel32.dll_VirtualProtect_1
mov edx, ebx
mov eax, edi
mov ecx, esi
call fcn.0040333c
push esp
mov eax, dword [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_VirtualProtect_1
push esi
push ebx
call sub.kernel32.dll_GetCurrentProcess_1
push eax
call sub.kernel32.dll_FlushInstructionCache_1
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x45801c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp + 4], edx
mov dword [esp], eax
lea ebp, [esp + 0x10]
mov eax, dword [0x5ee758]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x45805f
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x5ee758]
call fcn.00421198
mov ebx, eax
mov eax, dword [esp]
cmp eax, dword [ebx]
jne 0x45805b
mov eax, dword [ebx + 4]
jmp 0x458123
inc edi
dec esi
jne 0x45803e
mov edi, dword [esp]
mov ebx, edi
xor esi, esi
mov edx, ebp
mov eax, ebx
call fcn.00457bcc
test al, al
jne 0x458077
mov byte [ebp], 1
movzx eax, byte [ebp]
add esi, eax
movzx eax, byte [ebp]
add ebx, eax
cmp esi, 5
jb 0x458066
mov edx, esi
mov eax, edi
call fcn.00457dbc
add eax, 5
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
call fcn.00402ffc
mov ebp, eax
mov eax, 0x14
call fcn.00402ffc
mov ebx, eax
mov eax, dword [esp]
mov dword [ebx], eax
mov dword [ebx + 4], ebp
mov eax, dword [esp + 8]
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], esi
mov eax, esi
call fcn.00402ffc
mov dword [ebx + 0xc], eax
mov edx, dword [ebx + 0xc]
mov eax, edi
mov ecx, esi
call fcn.0040333c
mov edx, ebx
mov eax, dword [0x5ee758]
call fcn.00420ff0
lea eax, [esp + 0xc]
push eax
push 0x40
mov eax, dword [esp + 0x10]
push eax
push ebp
call sub.kernel32.dll_VirtualProtect_1
mov edx, ebp
mov eax, edi
mov ecx, esi
call fcn.0040333c
mov ecx, esi
mov edx, edi
mov eax, ebp
call fcn.00457e70
lea edx, [esi + edi]
lea eax, [esi + ebp]
call fcn.00457a10
mov edx, dword [esp + 4]
mov eax, edi
call fcn.00457a10
mov eax, ebp
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x458388
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov ebx, eax
xor esi, esi
mov edx, 0x40
mov eax, ebx
call fcn.0043389c
test al, al
je 0x4583cc
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x4583cc
cmp dword [eax + 0x3c], 0
je 0x4583cc
mov esi, dword [eax + 0x3c]
add esi, ebx
mov edx, 0xf8
mov eax, esi
call fcn.0043389c
test al, al
je 0x4583ca
cmp dword [esi], 0x4550
je 0x4583cc
xor esi, esi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4599cc
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathA_1
mov eax, ebx
mov edx, esp
mov ecx, 0x104
call fcn.00405984
add esp, 0x104
pop ebx
ret