joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443fee
Capabilities:
Set socket configuration

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edi, dword [esp + 0x1c]
and edi, 1
lea eax, [esi + 0x90]
cmp dword [eax], 0xffffffff
push 0x17
pop ecx
jne 0x444079
test edi, edi
je 0x44401d
cmp word [ebx], cx
je 0x44401d
push 0x57
pop eax
jmp 0x4440c8
movzx eax, word [ebx]
push 0
push 1
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x44403f
pop edi
pop esi
pop ebp
pop ebx
add esp, 4
jmp dword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx eax, word [ebx]
mov edx, esi
mov ecx, dword [esi + 4]
push 0
push eax
push ebp
call fcn.00443c5f
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
je 0x444068
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0x10]
jmp 0x4440c8
push 0x17
lea ebp, [esi + 0x90]
lea eax, [esi + 0x90]
pop ecx
jmp 0x44407b
mov ebp, eax
cmp word [ebx], cx
jne 0x444097
push 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edi
push ecx
push 0x1b
push 0x29
push dword [eax]
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [esp + 0x18]
push ebx
push dword [ebp]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4440bf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x2740
cmp eax, ecx
jne 0x4440c8
mov dword [esi + 0x94], ecx
or dword [esi + 0x2c], 0x2000
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4440ce
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, edx
push 0
push 1
mov eax, dword [edi + 0x2c]
mov ebp, dword [edi + 4]
and eax, 0x400000
neg eax
mov dword [esp + 0x18], ebp
sbb eax, eax
and eax, 0x15
add eax, 2
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x444131
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
test eax, eax
jg 0x444113
call ebx
jmp 0x44411d
call ebx
movzx eax, ax
or eax, 0x80070000
mov edx, esi
mov dword [esi + 0x20], eax
mov ecx, ebp
call fcn.0043b558
inc dword [edi + 0x3c]
jmp 0x44428a
push 0
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x444177
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
test eax, eax
jg 0x444150
call ebp
jmp 0x44415a
call ebp
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [esp + 0x10]
mov edx, esi
mov dword [esi + 0x20], eax
call fcn.0043b558
inc dword [edi + 0x3c]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x44428a
push 0x14
lea ebp, [esi + 0x20]
push 0
push ebp
call fcn.0051c010
add esp, 0xc
test dword [edi + 0x2c], 0x80000
je 0x44419c
mov eax, dword [esi + 0x160]
or eax, 1
mov dword [esi + 0x30], eax
push ebp
lea eax, [esp + 0x18]
push eax
mov eax, 0x80
push eax
push eax
push 0
lea eax, [esi + 0x40]
push eax
push ebx
push dword [edi + 0x90]
call dword [edi + 0xa4]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4441da
test dword [edi + 0x2c], 0x20000
je 0x444233
mov dword [esi + 0x3c], ebx
inc dword [edi + 0x3c]
jmp 0x44427f
call ebp
cmp eax, 0x3e5
je 0x444233
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebp
test eax, eax
jg 0x4441f3
call ebp
jmp 0x4441fd
call ebp
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [esp + 0x10]
mov edx, esi
mov dword [esi + 0x20], eax
call fcn.0043b558
inc dword [edi + 0x3c]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
test dword [edi + 0x2c], 0x80000
je 0x44428a
push dword [esi + 0x160]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x160], 0
jmp 0x44428a
mov dword [esi + 0x3c], ebx
inc dword [edi + 0x3c]
test dword [edi + 0x2c], 0x80000
je 0x44428a
lea eax, [esi + 0x164]
cmp dword [eax], 0xffffffff
jne 0x44428a
push 4
push 0xffffffffffffffff
push esi
push 0x4410f0
push dword [esi + 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x44428a
call ebp
test eax, eax
jg 0x444272
call ebp
jmp 0x44427c
call ebp
movzx eax, ax
or eax, 0x80070000
mov dword [esi + 0x20], eax
mov ecx, dword [esp + 0x10]
mov edx, esi
call fcn.0043b558
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x444291
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, edx
mov ebp, ecx
push 0x14
push 0
lea esi, [edi + 0x44]
lea ebx, [esi + 0x20]
push ebx
call fcn.0051c010
or dword [edi + 0x2c], 0x40000
and dword [esp + 0x24], 0
push 0x14
push 0
push ebx
mov dword [esp + 0x34], 0x606696
call fcn.0051c010
add esp, 0x18
test dword [edi + 0x2c], 0x80000
je 0x4442df
mov eax, dword [esi + 0x3c]
or eax, 1
mov dword [esi + 0x30], eax
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push 0
push ebx
push eax
lea eax, [esp + 0x20]
push eax
push 1
lea eax, [esp + 0x2c]
push eax
push dword [edi + 0x90]
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ecx, dword [edi + 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
or ecx, 0x10000
inc dword [edi + 0x3c]
mov dword [edi + 0x2c], ecx
test eax, eax
jne 0x44432e
test ecx, 0x20000
je 0x44434b
mov eax, dword [esp + 0x14]
mov dword [esi + 0x24], eax
jmp 0x44438b
call ebx
cmp eax, 0x3e5
je 0x44434b
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
test eax, eax
jg 0x444347
call edi
jmp 0x444388
call edi
jmp 0x444380
test dword [edi + 0x2c], 0x80000
je 0x444394
lea eax, [esi + 0x40]
cmp dword [eax], 0xffffffff
jne 0x444394
push 4
push 0xffffffffffffffff
push esi
push 0x4410f0
push dword [esi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x444394
call ebx
test eax, eax
jg 0x44437e
call ebx
jmp 0x444388
call ebx
movzx eax, ax
or eax, 0x80070000
mov dword [esi + 0x20], eax
mov edx, esi
mov ecx, ebp
call fcn.0043b558
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4449fa
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
push edi
mov edi, edx
mov ebp, ecx
push 0x14
push ebx
lea eax, [edi + 0x20]
mov dword [edi + 4], 3
push eax
mov dword [eax], ebx
mov dword [edi + 0x44], esi
mov dword [edi + 0x3c], 0x42df9f
call fcn.0051c010
add esp, 0xc
test dword [esi + 0x2c], 0x80000
je 0x444a52
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0x54], eax
test eax, eax
je 0x444ba2
or eax, 1
or dword [edi + 0x58], 0xffffffff
mov dword [edi + 0x30], eax
push ebx
lea eax, [edi + 0x20]
push eax
push ebx
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esi + 0x90]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x444aba
test dword [esi + 0x2c], 0x20000
je 0x444b02
mov dword [edi + 0x34], ebx
mov ecx, dword [esi + 0x40]
inc dword [esi + 0x3c]
inc dword [esi + 0x88]
lea eax, [ecx + 1]
mov dword [esi + 0x40], eax
test ecx, ecx
jne 0x444ab2
mov eax, dword [esi + 0x2c]
test al, 4
jne 0x444ab2
or eax, 4
mov dword [esi + 0x2c], eax
test al, 8
je 0x444ab2
mov eax, dword [esi + 4]
inc dword [eax + 4]
inc dword [ebp + 0x10]
jmp 0x444b92
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x444b02
mov dword [edi + 0x34], ebx
mov ecx, dword [esi + 0x40]
inc dword [esi + 0x3c]
inc dword [esi + 0x88]
lea eax, [ecx + 1]
mov dword [esi + 0x40], eax
test ecx, ecx
jne 0x444af7
mov eax, dword [esi + 0x2c]
test al, 4
jne 0x444af7
or eax, 4
mov dword [esi + 0x2c], eax
test al, 8
je 0x444af7
mov eax, dword [esi + 4]
inc dword [eax + 4]
inc dword [ebp + 0x10]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x444b7b
mov eax, ebx
cmp dword [esp + 0x1c], eax
jbe 0x444b18
mov ecx, dword [esp + 0x18]
add ebx, dword [ecx + eax*8]
inc eax
cmp eax, dword [esp + 0x1c]
jb 0x444b0e
mov dword [edi + 0x34], ebx
mov ecx, dword [esi + 0x40]
inc dword [esi + 0x3c]
inc dword [esi + 0x88]
lea eax, [ecx + 1]
mov dword [esi + 0x40], eax
test ecx, ecx
jne 0x444b48
mov eax, dword [esi + 0x2c]
test al, 4
jne 0x444b48
or eax, 4
mov dword [esi + 0x2c], eax
test al, 8
je 0x444b48
mov eax, dword [esi + 4]
inc dword [eax + 4]
inc dword [ebp + 0x10]
mov eax, dword [edi + 0x34]
add dword [esi + 0x30], eax
test dword [esi + 0x2c], 0x80000
je 0x444b9b
push 0xc
push 0xffffffffffffffff
push edi
push 0x441125
push dword [edi + 0x54]
lea eax, [edi + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x444b9b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x444b85
call esi
jmp 0x444b8f
call esi
movzx eax, ax
or eax, 0x80070000
mov dword [edi + 0x20], eax
mov edx, edi
mov ecx, ebp
call fcn.0043b558
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, str.CreateEvent
mov ecx, eax
call fcn.00449c84
int3
Function at 0x4450b8
Capabilities:
Set socket configuration

Disassembly:
push ecx
push ebx
push esi
mov esi, edx
mov ebx, ecx
sub dword [esi + 0x40], 1
jne 0x4450e1
mov ecx, dword [esi + 0x2c]
mov eax, ecx
and al, 5
cmp al, 4
jne 0x4450e1
and ecx, 0xfffffffb
mov dword [esi + 0x2c], ecx
test cl, 8
je 0x4450e1
mov eax, dword [esi + 4]
dec dword [eax + 4]
dec dword [ebx + 0x10]
xor edx, edx
mov eax, dword [esi + 0x94]
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, edx
test eax, eax
je 0x445100
mov dword [esi + 0x94], edx
jmp 0x445149
mov ecx, dword [ebp + 0x20]
test ecx, ecx
js 0x445144
test byte [esi + 0x2c], 1
je 0x445114
mov edi, 0x3e3
jmp 0x44514b
push edx
push edx
push 0x7010
push 0xffff
push dword [esi + 0x90]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x44513c
or dword [esi + 0x2c], 0xc080
inc dword [ebx + 0x5c]
jmp 0x44514b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x445149
call fcn.0044aa17
mov edi, eax
mov ecx, edi
call fcn.00449d08
push eax
push ebp
call dword [ebp + 0x3c]
mov eax, dword [esi + 0x2c]
pop ecx
pop ecx
mov ecx, dword [esi + 0x3c]
dec ecx
mov dword [esi + 0x3c], ecx
pop edi
pop ebp
test al, 1
je 0x445180
test ecx, ecx
jne 0x445180
test al, 0x20
jne 0x445180
or eax, 0x20
mov dword [esi + 0x2c], eax
mov eax, dword [ebx + 0x2c]
mov dword [esi + 0x28], eax
mov dword [ebx + 0x2c], esi
pop esi
pop ebx
pop ecx
ret
Function at 0x447519
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5c9040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x2c]
and ecx, 0xffffefff
sub dword [esi + 0x40], 1
mov dword [esi + 0x2c], ecx
mov edx, ecx
jne 0x44755f
mov eax, ecx
and al, 5
cmp al, 4
jne 0x44755f
and ecx, 0xfffffffb
mov dword [esi + 0x2c], ecx
mov edx, ecx
test cl, 8
je 0x44755f
mov eax, dword [esi + 4]
dec dword [eax + 4]
mov edx, dword [esi + 0x2c]
test edx, 0x10000
je 0x4475bf
test edx, 0x2000000
je 0x4475a8
push 0x14
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.0051c010
add esp, 0xc
push 0x10
pop eax
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x1c]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x90]
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x4475bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4475c1
mov edi, 0x200000
test edi, edx
jne 0x4475bf
mov ecx, esi
call fcn.004475cf
test eax, eax
jne 0x4475c1
or dword [esi + 0x2c], edi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0051b034
leave
ret

Function at 0x4475cf
Capabilities:
Log keystrokes
Manipulate console buffer

Disassembly:
sub esp, 0x1c
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov edi, 0x8936ac
mov ecx, edi
xor esi, esi
call fcn.0043f565
push 2
pop eax
mov edx, 0x8935ec
xchg dword [edx], eax
xor ebp, ebp
inc ebp
cmp eax, ebp
je 0x447610
mov ecx, edi
call fcn.0043f550
xor eax, eax
jmp 0x4476a8
push esi
push 0x80
push 3
push esi
push 3
push 0xc0000000
push str.conout_
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x44764a
push 0x893670
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x44764a
mov eax, 0x8936a0
lock or dword [eax], ebp
push 0xd
mov word [esp + 0x18], bp
mov dword [esp + 0x1c], ebp
mov word [esp + 0x20], bp
pop ebp
push esi
push ebp
mov word [esp + 0x26], bp
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov word [esp + 0x20], ax
lea eax, [esp + 0x10]
push eax
push 1
lea eax, [esp + 0x1c]
mov word [esp + 0x2a], bp
push eax
push dword [ebx + 0x90]
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x44769a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp edi, 0xffffffff
je 0x4476a6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051b034
add esp, 0x1c
ret
Function at 0x4477c6
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x1c
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
mov ebp, edx
mov ebx, ecx
cmp dword [esi], 0
je 0x4477e9
or eax, 0xffffffff
jmp 0x447846
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esp + 0x10]
push eax
push dword [ebx + 0x90]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x447809
call edi
mov dword [esi], eax
push dword [esp + 0x38]
lea edx, [esp + 0x14]
push dword [esp + 0x38]
push dword [esp + 0x38]
push ebp
call fcn.0044771d
add esp, 0x10
push eax
push dword [ebx + 0x90]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x447843
call edi
cmp eax, 0x57
je 0x4477f0
call edi
mov dword [esi], eax
or eax, 0xffffffff
jmp 0x447845
xor eax, eax
pop edi
mov ecx, dword [esp + 0x24]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051b034
add esp, 0x1c
ret

Function at 0x447858
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x24
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
push esi
xor eax, eax
mov esi, edx
mov dword [esp + 8], eax
mov ax, word [0x6038d8]
push edi
cmp dword [esi], 0
mov edi, ecx
movzx ebp, ax
je 0x447889
or eax, 0xffffffff
jmp 0x44792d
movzx eax, ax
push eax
push dword [edi + 0x90]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
test eax, eax
jne 0x4478a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x447881
push dword [esp + 0xc]
push dword [edi + 0x90]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
je 0x44789d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esp + 0x18]
push eax
push dword [edi + 0x90]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x447925
movsx eax, word [esp + 0x18]
movsx ecx, word [esp + 0x1a]
imul ecx, eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
push ecx
push 0x20
push dword [edi + 0x90]
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
test eax, eax
je 0x44791e
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
push dword [esp + 0x1c]
push ebp
push dword [edi + 0x90]
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
jne 0x44793f
call ebx
cmp eax, 0x57
je 0x4478c2
call ebx
mov dword [esi], eax
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0051b034
add esp, 0x24
ret
and dword [0x603c38], 0
lea ecx, [esp + 0x18]
call fcn.004476bb
push 0x8936a4
push dword [edi + 0x90]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
test eax, eax
je 0x447925
xor eax, eax
jmp 0x44792c
Function at 0x448ebd
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
mov ebx, ecx
mov esi, edx
push edi
test ebx, ebx
jne 0x448edd
xor edi, edi
test esi, esi
je 0x448ed0
mov dword [esi], edi
mov eax, dword [esp + 0x10]
mov dword [eax], edi
xor eax, eax
jmp 0x448fc0
push ebp
push ebx
call fcn.0052fd64
mov ebp, eax
pop ecx
mov edi, ebp
test edi, edi
je 0x448f00
dec edi
movzx eax, word [ebx + edi*2]
cmp eax, 0x5c
je 0x448efc
cmp eax, 0x2f
jne 0x448ee9
test edi, edi
jne 0x448f53
test esi, esi
je 0x448f44
xor edi, edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x448f3f
lea ecx, [ebp*2]
call fcn.004396f2
mov dword [esi], eax
test eax, eax
je 0x448fc4
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x448f44
mov ecx, dword [esi]
call fcn.00439702
mov dword [esi], edi
or eax, 0xffffffff
jmp 0x448fbf
push ebx
call fcn.0053ae65
pop ecx
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
jmp 0x448fbd
test esi, esi
je 0x448f80
lea ecx, [edi*2 + 4]
call fcn.004396f2
mov dword [esi], eax
test eax, eax
je 0x448fc4
lea ecx, [edi + 1]
push ecx
push ebx
push eax
call fcn.0052ea61
mov eax, dword [esi]
add esp, 0xc
xor ecx, ecx
mov word [eax + edi*2 + 2], cx
sub ebp, edi
lea esi, [ebp*2]
mov ecx, esi
call fcn.004396f2
mov ecx, eax
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x448fc4
lea eax, [ebp - 1]
push eax
lea eax, [ebx + 2]
lea eax, [eax + edi*2]
push eax
push ecx
call fcn.0052ea61
mov eax, dword [esp + 0x20]
add esp, 0xc
xor ecx, ecx
mov eax, dword [eax]
mov word [esi + eax - 2], cx
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov edx, str.uv__malloc
push 0xe
pop ecx
call fcn.00449c84
int3
Function at 0x44a8c8
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x418
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push esi
push 0x8c00d0
xor edx, edx
mov ecx, str.0.0.0.0
call fcn.00439f62
pop ecx
test eax, eax
jne 0x44aa05
push 0x8c00e0
xor edx, edx
mov ecx, 0x58a058
call fcn.00439f9f
pop ecx
test eax, eax
jne 0x44aa05
push 0x43
call dword [sym.imp.USER32.dll_GetSystemMetrics]
xor ebx, ebx
inc ebx
cmp eax, ebx
je 0x44a9f1
lea eax, [esp + 0x288]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x44aa0a
push eax
push ebx
mov dword [0x8c00c0], ebx
mov ebx, dword [sym.imp.WS2_32.dll_socket]
push 2
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x44a99d
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x274
push eax
lea eax, [esp + 0x14]
push eax
push 0x2005
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x44a996
test dword [esp + 0x10], 0x20000
je 0x44a996
and dword [0x8c00c0], eax
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
inc eax
push 0
push eax
push 0x17
mov dword [0x8c00bc], eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x44a9f1
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x274
push eax
lea eax, [esp + 0x14]
push eax
push 0x2005
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x44a9ea
test dword [esp + 0x10], 0x20000
je 0x44a9ea
and dword [0x8c00bc], eax
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x41c]
pop esi
pop ebx
xor ecx, esp
call fcn.0051b034
mov esp, ebp
pop ebp
ret
call fcn.00529b17
mov edx, str.WSAStartup
mov ecx, eax
call fcn.00449c84
int3

Function at 0x4590f5
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edx
mov ecx, ebp
shl ecx, 4
add ecx, 0x18
test ebp, ebp
push 0x10
pop esi
cmove ecx, esi
mov eax, ecx
not eax
cmp edx, eax
ja 0x459187
lea eax, [ecx + edx]
mov ecx, edi
push 0
push eax
push 7
pop edx
call fcn.00461990
mov ebx, eax
mov eax, dword [esp + 0x1c]
pop ecx
pop ecx
xor ecx, ecx
mov dword [ebx + 8], eax
mov word [ebx + 6], bp
mov dword [ebx + 0xc], ecx
test ebp, ebp
jle 0x459151
lea eax, [ebx + 0x20]
mov byte [eax], cl
add eax, esi
sub ebp, 1
jne 0x459148
mov eax, dword [edi + 0xc]
mov dword [eax], ebx
mov byte [eax + 8], 0x47
mov eax, dword [edi + 0x10]
add dword [edi + 0xc], esi
cmp dword [eax + 0xc], ecx
jle 0x45916c
mov ecx, edi
call fcn.004630d9
movzx eax, word [ebx + 6]
test ax, ax
je 0x45917d
mov esi, eax
shl esi, 4
add esi, 0x18
pop edi
lea eax, [esi + ebx]
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
mov ecx, edi
call fcn.0046e744
int3
Function at 0x45fee7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x18], edx
push edi
mov dword [esp + 0xc], esi
call fcn.00530f00
xorps xmm1, xmm1
mov eax, dword [eax]
movsx eax, byte [eax]
mov dword [esp + 0x14], eax
xor eax, eax
mov ebx, eax
mov dword [esp + 0x18], eax
mov edi, eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
movzx eax, byte [esi]
test byte [eax + 0x566961], 8
je 0x45ff3f
inc esi
movzx eax, byte [esi]
test byte [eax + 0x566961], 8
jne 0x45ff2e
mov dword [esp + 0xc], esi
lea ecx, [esp + 0xc]
call fcn.0045fecc
mov edx, dword [esp + 0xc]
mov dword [esp + 0x20], eax
cmp byte [edx], 0x30
jne 0x460076
mov cl, byte [edx + 1]
cmp cl, 0x78
je 0x45ff6a
cmp cl, 0x58
jne 0x460076
mov eax, dword [esp + 0x14]
add edx, 2
mov cl, byte [edx]
movsx esi, cl
cmp esi, eax
jne 0x45ff8b
cmp dword [esp + 0x10], 0
jne 0x45ffd9
mov dword [esp + 0x10], 1
jmp 0x45ffd6
movzx eax, cl
test byte [eax + 0x566961], 0x10
je 0x45ffd9
test ebx, ebx
jne 0x45ffa6
cmp cl, 0x30
jne 0x45ffa6
inc dword [esp + 0x18]
jmp 0x45ffca
inc ebx
cmp ebx, 0x1e
jg 0x45ffc9
mov ecx, esi
call fcn.0045feb8
mulsd xmm1, qword [0x5b2038]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
jmp 0x45ffca
inc edi
cmp dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
je 0x45ffd6
dec edi
inc edx
jmp 0x45ff71
mov ecx, dword [esp + 0x18]
lea eax, [ecx + ebx]
test eax, eax
je 0x460076
mov eax, dword [esp + 0x1c]
mov esi, edi
shl esi, 2
mov dword [eax], edx
mov al, byte [edx]
cmp al, 0x70
je 0x45fffd
cmp al, 0x50
jne 0x46004c
inc edx
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], edx
call fcn.0045fecc
mov edx, dword [esp + 0xc]
mov edi, eax
mov bl, byte [edx]
movzx ecx, bl
test byte [ecx + 0x566961], 2
je 0x460076
xor ecx, ecx
imul ecx, ecx, 0xa
movsx eax, bl
add eax, 0xffffffd0
add ecx, eax
inc edx
mov bl, byte [edx]
movzx eax, bl
test byte [eax + 0x566961], 2
jne 0x460021
mov eax, ecx
neg eax
test edi, edi
cmove eax, ecx
add esi, eax
mov eax, dword [esp + 0x1c]
mov dword [eax], edx
cmp dword [esp + 0x20], 0
je 0x46005a
xorps xmm1, xmmword [0x5b2160]
push esi
push ecx
push ecx
movsd qword [esp], xmm1
call fcn.00530f28
fstp qword [esp + 0x2c]
movsd xmm0, qword [esp + 0x2c]
add esp, 0xc
jmp 0x460079
xorps xmm0, xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4645ab
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov esi, edi
xor esi, dword [esp + 0x10]
test edi, edi
je 0x4645d6
movzx edx, byte [ebx + edi - 1]
mov eax, esi
shl eax, 5
mov ecx, esi
add edx, eax
shr ecx, 2
add edx, ecx
xor esi, edx
sub edi, 1
jne 0x4645bc
pop edi
mov eax, esi
pop esi
pop ebx
ret