joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4599b9
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004054b1
mov eax, dword [ebp - 8]
call fcn.004054b1
xor eax, eax
push ebp
push 0x459a58
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.004054c1
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x459a38
push 4
mov eax, dword [ebp - 8]
call fcn.004054c1
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov edi, eax
test edi, edi
jbe 0x459a2e
lea eax, [ebp - 0x24]
push eax
push edi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x459a28
mov esi, dword [ebp - 0x20]
push edi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
mov ebx, esi
jmp 0x459a3d
mov ebx, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459a5f
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405025
ret

Function at 0x459ad1
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004054b1
mov eax, dword [ebp - 8]
call fcn.004054b1
xor eax, eax
push ebp
push 0x459baa
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x24], eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.004054c1
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x459b88
push 0x14
mov eax, dword [ebp - 8]
call fcn.004054c1
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jbe 0x459b82
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push esi
call sub.advapi32.dll_StartServiceA
test eax, eax
je 0x459b7c
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x459b7c
jmp 0x459b76
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x459b7c
cmp edi, dword [ebp - 0x14]
ja 0x459b7c
cmp dword [ebp - 0x24], 4
jne 0x459b57
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x24], 4
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459bb1
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405025
ret
Function at 0x459bbd
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004054b1
mov eax, dword [ebp - 8]
call fcn.004054b1
xor eax, eax
push ebp
push 0x459caf
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x459c8a
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.004054c1
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x459c78
push 0x24
mov eax, dword [ebp - 8]
call fcn.004054c1
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jbe 0x459c72
lea eax, [ebp - 0x28]
push eax
push 1
push esi
call sub.advapi32.dll_ControlService
test eax, eax
je 0x459c6c
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x459c6c
jmp 0x459c66
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x459c6c
cmp edi, dword [ebp - 0x14]
ja 0x459c6c
cmp dword [ebp - 0x24], 1
jne 0x459c47
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x24], 1
sete byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x459c94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459cb6
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405025
ret
Function at 0x459cc1
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004054b1
mov eax, dword [ebp + 8]
call fcn.004054b1
xor eax, eax
push ebp
push 0x459e95
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x459e60
push dword fs:[edx]
mov dword fs:[edx], esp
mov byte [ebp - 5], 0
push 0xf003f
push 0
push 0x459ea9
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jne 0x459d51
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x18]
call fcn.0040c999
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x4085f9]
call fcn.0040d1c5
call fcn.0040499d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x459e6a
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004054c1
push eax
push 0
push 2
push 0x110
push 0xf01ff
push edi
push esi
push ebx
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x459db1
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x1c]
call fcn.0040c999
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x4085f9]
call fcn.0040d1c5
call fcn.0040499d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x459e6a
mov byte [ebp - 5], 1
mov eax, dword [0x4a5b4c]
cmp dword [eax], 0
je 0x459e4d
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x400
mov edx, 1
mov eax, dword [ebp + 8]
call fcn.00405521
mov eax, 4
call fcn.00402dc9
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
call fcn.004052c1
inc eax
call fcn.00402dc9
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax], ebx
xor eax, eax
push ebp
push 0x459e46
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.0040a1b1
mov eax, dword [ebp - 0x10]
push eax
push 1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x4a5b4c]
mov eax, dword [eax]
call eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459e4d
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.00402de9
mov eax, dword [ebp - 0x10]
call fcn.00402de9
ret
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x459e6a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459e9c
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00405025
lea eax, [ebp - 4]
call fcn.00405001
lea eax, [ebp + 8]
call fcn.00405001
ret
Function at 0x459ead
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004054b1
xor eax, eax
push ebp
push 0x459f8a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x459f6a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0x459f9d
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
je 0x459f60
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.004054c1
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
je 0x459f5a
mov eax, dword [ebp - 8]
sub eax, 1
jb 0x459f20
je 0x459f27
dec eax
je 0x459f2e
jmp 0x459f33
mov edi, 2
jmp 0x459f33
mov edi, 3
jmp 0x459f33
mov edi, 4
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
push 0xffffffffffffffff
push esi
call sub.advapi32.dll_ChangeServiceConfigA
test eax, eax
je 0x459f54
mov byte [ebp - 9], 1
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x459f74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459f91
lea eax, [ebp - 4]
call fcn.00405001
ret

Function at 0x459fa1
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004054b1
xor eax, eax
push ebp
push 0x45a0d1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x45a0bb
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.004054c1
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x45a0b2
lea eax, [ebp - 0x14]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceConfigA
mov eax, dword [ebp - 0x14]
call fcn.00409241
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x45a0a2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceConfigA
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
sub eax, 2
je 0x45a054
dec eax
je 0x45a062
dec eax
je 0x45a070
jmp 0x45a07e
mov eax, ebx
mov edx, 0x45a0e5
call fcn.00405055
jmp 0x45a08a
mov eax, ebx
mov edx, 0x45a0f1
call fcn.00405055
jmp 0x45a08a
mov eax, ebx
mov edx, 0x45a0fd
call fcn.00405055
jmp 0x45a08a
mov eax, ebx
mov edx, 0x45a109
call fcn.00405055
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a0a9
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00402de9
ret
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a0d8
lea eax, [ebp - 4]
call fcn.00405001
ret
Function at 0x45a291
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004054b1
xor eax, eax
push ebp
push 0x45a349
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x45a333
xor eax, eax
push ebp
push 0x45a329
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
push 0xf003f
push 0
push 0x45a35d
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
je 0x45a311
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.004054c1
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov edi, eax
test edi, edi
je 0x45a30b
push edi
call sub.advapi32.dll_DeleteService
mov esi, 1
push edi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
test esi, esi
jle 0x45a31b
mov byte [ebp - 5], 1
jmp 0x45a31f
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45a333
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a350
lea eax, [ebp - 4]
call fcn.00405001
ret
Function at 0x45afd9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
cmp edx, dword [ebp + 8]
jne 0x45affa
mov esi, eax
mov eax, edx
test eax, eax
jbe 0x45aff6
mov dl, byte [esi]
xor dl, 8
mov byte [ecx], dl
inc esi
inc ecx
dec eax
jne 0x45afea
mov al, 1
jmp 0x45affc
xor eax, eax
pop esi
pop ebp
ret 4

Function at 0x45b001
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
cmp edx, dword [ebp + 8]
jne 0x45b022
mov esi, eax
mov eax, edx
test eax, eax
jbe 0x45b01e
mov dl, byte [esi]
xor dl, 8
mov byte [ecx], dl
inc esi
inc ecx
dec eax
jne 0x45b012
mov al, 1
jmp 0x45b024
xor eax, eax
pop esi
pop ebp
ret 4

Function at 0x45b2d9
Capabilities:
Encrypt data using des

Disassembly:
push ebx
mov ecx, edx
and cl, 0x20
mov ebx, edx
and bl, 0x1e
and ebx, 0xff
shr ebx, 1
or cl, bl
and dl, 1
shl edx, 4
or cl, dl
mov edx, ecx
and edx, 0xff
and eax, 0xff
shl eax, 3
lea eax, [eax*8 + 0x4a3f50]
mov al, byte [eax + edx]
and al, 0xf
pop ebx
ret

Function at 0x45b5d5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x45b5ee
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x45b5e7
mov ecx, esp
mov ebx, edx
test ebx, ebx
js 0x45b600
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x45b5f9
mov eax, esp
mov dword [ebp - 4], ecx
push 5
lea ecx, [ebp - 0xa]
call fcn.0045b1c9
mov ebx, 6
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
xor byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x45b61a
mov al, byte [ebp - 0xa]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0x12], dl
and al, 3
shl eax, 4
mov dl, byte [ebp - 9]
xor ecx, ecx
mov cl, dl
shr ecx, 4
or al, cl
mov byte [ebp - 0x11], al
and dl, 0xf
shl edx, 2
mov al, byte [ebp - 8]
xor ecx, ecx
mov cl, al
shr ecx, 6
or dl, cl
mov byte [ebp - 0x10], dl
and al, 0x3f
mov byte [ebp - 0xf], al
mov al, byte [ebp - 7]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0xe], dl
and al, 3
shl eax, 4
xor edx, edx
mov dl, byte [ebp - 6]
shr edx, 4
or al, dl
mov byte [ebp - 0xd], al
mov al, byte [ebp - 6]
and al, 0xf
shl eax, 2
xor edx, edx
mov dl, byte [ebp - 5]
shr edx, 6
or al, dl
mov byte [ebp - 0xc], al
mov al, byte [ebp - 5]
and al, 0x3f
mov byte [ebp - 0xb], al
xor ebx, ebx
lea esi, [ebp - 0x12]
mov eax, ebx
mov dl, byte [esi]
call fcn.0045b2d9
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 8
jne 0x45b69f
mov ebx, 4
lea eax, [ebp - 0x12]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
shl ecx, 4
or cl, byte [eax + 1]
mov byte [edx], cl
inc edx
add eax, 2
dec ebx
jne 0x45b6bc
lea eax, [ebp - 0xa]
mov edx, 5
call fcn.0045b259
mov ebx, 4
lea eax, [ebp - 0xa]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x45b6e5
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45b6fd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x45b716
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x45b70f
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x45b72a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0045b0c1
test bl, bl
jne 0x45b7fd
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x4a6d2c
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x45b761
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x45b775
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0045b5d5
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov bl, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x45b7a7
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x45b756
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x45b7ca
mov eax, 4
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x45b7db
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x45b7ef
jmp 0x45b8b8
cmp bl, 1
jne 0x45b8b8
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x4a6d86
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x45b81d
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x45b831
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0045b5d5
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
mov cl, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x45b863
sub ebx, 6
inc dword [ebp - 8]
jne 0x45b812
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
mov cl, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x45b88a
mov eax, 4
mov ebx, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x45b89b
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov cl, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x45b8af
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0045b145
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x45cbf9
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x45cc82
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4a6d94
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x45cc6c
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040c999
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x45cc99
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4a5a4c]
mov dl, 1
mov eax, dword [0x45bc25]
call fcn.0040d2bd
call fcn.0040499d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45cc89
lea eax, [ebp - 0x1c]
call fcn.00405001
ret

Function at 0x45d351
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0045d275
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.0040440d
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x45d3b5
call fcn.0045cb41
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x45d3a7
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.0040440d
pop esi
pop ebx
ret

Function at 0x45d3d9
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0045d0f5
xor eax, eax
push ebp
push 0x45d458
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00405001
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x45d412
call fcn.00404a49
jmp 0x45d45f
mov dword [ebp - 8], 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_getsockname
test eax, eax
jne 0x45d442
push dword [ebp - 0x14]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, ebx
call fcn.004051f9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d45f
mov eax, dword [ebp - 4]
call fcn.0045d101
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45d465
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0045d0f5
xor eax, eax
push ebp
push 0x45d4de
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00405001
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x45d4a1
call fcn.00404a49
jmp 0x45d4e5
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
call sub.wsock32.dll_gethostname
test eax, eax
jne 0x45d4c8
mov eax, ebx
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00405271
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d4e5
mov eax, dword [ebp - 4]
call fcn.0045d101
ret
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45d4ed
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0045d0f5
xor eax, eax
push ebp
push 0x45d568
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x45d523
call fcn.00404a49
jmp 0x45d56f
mov dword [ebp - 0xc], 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_getsockname
test eax, eax
jne 0x45d552
mov ax, word [ebp - 0x1a]
push eax
call sub.wsock32.dll_ntohs
movzx eax, ax
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d56f
mov eax, dword [ebp - 4]
call fcn.0045d101
ret
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x45d6a9
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.004054c1
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00403949
test ebx, ebx
je 0x45d6f4
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, 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 0x45d7d1
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x45d802
mov ecx, dword [0x4a5ba4]
mov dl, 1
mov eax, dword [0x45bc25]
call fcn.0040d281
call fcn.0040499d
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x45d82f
mov ecx, dword [0x4a5868]
mov dl, 1
mov eax, dword [0x45bc25]
call fcn.0040d281
call fcn.0040499d
xor eax, eax
push ebp
push 0x45d8b0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.0040440d
cmp byte [ebp + 8], 0
je 0x45d88a
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0045d739
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0045d2d1
jmp 0x45d8a6
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0045ce2d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45d8cd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10