joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4200fb
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x481db0
call fcn.0047e070
sub esp, 0x78
and byte [ebp - 0x4c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov esi, dword [esi + 0xc]
lea ecx, [ebp - 0x48]
mov ebx, eax
call fcn.0042bb84
mov eax, dword [edi + 0x14]
and dword [ebp - 4], 0
add eax, 0x400
lea ecx, [ebp - 0x48]
push eax
call fcn.0042bc94
lea ecx, [ebp - 0x48]
call fcn.0042c48e
push 0x40
mov dword [ebp + 8], eax
pop ecx
mov eax, ebx
cmp esi, ecx
ja 0x420153
mov ecx, esi
add ecx, ebx
cmp ebx, ecx
jae 0x420161
xor byte [eax], 0x7f
inc eax
cmp eax, ecx
jb 0x420159
lea eax, [esi + esi*4]
lea ecx, [ebp - 0x84]
shl eax, 2
push eax
push esi
push dword [ebp + 8]
push ebx
call fcn.0042023a
mov esi, eax
mov eax, dword [edi + 0x14]
cmp esi, eax
push esi
je 0x4201a2
push eax
lea eax, [ebp - 0x20]
push str.NTS_filesize_shoule_be__u_instead_of__u
push eax
call fcn.0042a481
add esp, 0x10
lea eax, [ebp - 0x20]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [ebp + 8]
lea ecx, [ebp - 0x30]
call fcn.00454c30
lea eax, [edi + 0x18]
push 0x10
push eax
lea eax, [ebp - 0x30]
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
je 0x4201e1
lea eax, [ebp - 0x20]
push str.NTS_MD5_error_for_new_downloaded_file
push eax
call fcn.0042a481
pop ecx
lea eax, [ebp - 0x20]
pop ecx
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp - 0x14]
call fcn.0042a7a6
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0042f61b
push eax
lea ecx, [ebp - 0x14]
call fcn.0042a7eb
push esi
lea ecx, [ebp - 0x14]
push dword [ebp + 8]
call fcn.0042a8d8
lea ecx, [ebp - 0x14]
call fcn.0042a75e
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0042a729
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0042bc46
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4204a1
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
test eax, eax
je 0x42050c
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 4
push eax
push 0xffffff7f
push 0xffff
push dword [esi + 0x24]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x4204f2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.setsockopt_SO_DONTLINGER__error_d
push 0x4b39b0
call fcn.0042b4a1
add esp, 0xc
push dword [esi + 0x24]
call dword [sym.imp.WS2_32.dll_closesocket]
and dword [esi + 0x24], 0
push 0x18e
lea ecx, [esi + 4]
call fcn.0042bd68
pop esi
leave
ret
Function at 0x420855
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
push 0
push 0x4000
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
push esi
push dword [esp + 0xc]
push str.ReTranslator::SimpleRead1__X__read__d_bytes
push 0x4b39b0
call fcn.0042b4b9
add esp, 0x10
test esi, esi
jle 0x42088c
mov eax, esi
pop esi
ret
jge 0x42089f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x42089f
xor eax, eax
pop esi
ret
or eax, 0xffffffff
pop esi
ret

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

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
lea esi, [ebx + 4]
push edi
mov edi, dword [esi + 0xc]
sub edi, dword [esi + 0x10]
test edi, edi
jle 0x4208fb
mov eax, 0x4000
cmp edi, eax
jg 0x4208c2
mov eax, edi
push 0
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
mov ebp, eax
push ebp
push dword [ebx]
push str.ReTranslator::SimpleSend___X__send__d_bytes
push 0x4b39b0
call fcn.0042b4b9
add esp, 0x10
test ebp, ebp
jle 0x42090c
cmp ebp, edi
mov ecx, esi
jne 0x420902
mov eax, dword [esi]
call dword [eax + 8]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
ret
push ebp
push 0
call fcn.0042be8e
jmp 0x4208fb
jge 0x42091b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4208fb
xor al, al
jmp 0x4208fd
Function at 0x42091f
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x24]
mov eax, dword [esi]
mov ecx, dword [edi]
xor ebx, ebx
xor edx, edx
inc ebx
mov dword [ebp - 0x104], edx
mov dword [ebp - 0x204], eax
mov dword [ebp - 0x208], ebx
cmp dword [ebp + edx*4 - 0x204], ecx
je 0x420959
inc edx
cmp edx, ebx
jb 0x42094b
cmp edx, ebx
jne 0x42096d
mov dword [ebp - 0x200], ecx
mov dword [ebp - 0x208], 2
mov edx, dword [esi + 0x10]
sub edx, dword [esi + 0x14]
je 0x420985
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x104], 1
mov eax, dword [esi + 0x34]
sub eax, dword [esi + 0x38]
je 0x4209bd
mov edx, dword [ebp - 0x104]
xor eax, eax
test edx, edx
jbe 0x4209a7
cmp dword [ebp + eax*4 - 0x100], ecx
je 0x4209a7
inc eax
cmp eax, edx
jb 0x420999
cmp eax, edx
jne 0x4209bd
cmp edx, 0x40
jae 0x4209bd
mov dword [ebp + eax*4 - 0x100], ecx
inc dword [ebp - 0x104]
xor ebx, ebx
lea eax, [ebp - 0x104]
push ebx
push ebx
push eax
lea eax, [ebp - 0x208]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jle 0x420a41
cmp eax, 4
jg 0x420a41
lea eax, [ebp - 0x208]
push eax
push dword [esi]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x420a02
lea eax, [esi + 0x28]
push eax
push dword [esi]
call fcn.00420a60
pop ecx
test al, al
pop ecx
je 0x420a5b
lea eax, [ebp - 0x208]
push eax
push dword [edi]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x420a25
lea eax, [esi + 4]
push eax
push dword [edi]
call fcn.00420a60
pop ecx
test al, al
pop ecx
je 0x420a5b
mov ecx, edi
call fcn.004208a4
test al, al
je 0x420a5b
mov ecx, esi
call fcn.004208a4
test al, al
jne 0x420930
jmp 0x420a5b
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReTranslate__1_error_d__d
push 0x4b39b0
call fcn.0042b4a1
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, 0x4000
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
add ecx, edi
push ecx
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi]
push 0
push edi
mov ecx, esi
call dword [eax + 0x18]
push eax
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x420a9f
push eax
push 0
mov ecx, esi
call fcn.0042bd21
mov al, 1
jmp 0x420ad1
jge 0x420acf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x420a9b
cmp eax, 0x2746
je 0x420acf
cmp eax, 0x2745
je 0x420acf
push eax
push str.ReTranslator::SimpleRead__1_error_d
push 0x4b39b0
call fcn.0042b4a1
add esp, 0xc
xor al, al
pop edi
pop esi
ret

Function at 0x420e12
Capabilities:
Identify system language via api

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edx, 0x3ff
mov ecx, 0x4a7d34
and eax, edx
xor esi, esi
mov di, word [ecx]
and di, dx
cmp ax, di
je 0x420e48
add ecx, 0x18
inc esi
cmp ecx, 0x4a7ee4
jl 0x420e28
mov ax, word [0x4a7d34]
pop edi
pop esi
ret
lea eax, [esi + esi*2]
mov ax, word [eax*8 + 0x4a7d34]
jmp 0x420e45
Function at 0x4222d1
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0x14]
mov byte [eax], bl
mov eax, dword [ebp + 0xc]
push edi
push 0xf003f
push ebx
mov byte [eax], bl
mov eax, dword [ebp + 0x10]
push ebx
mov edi, ecx
mov byte [eax], bl
mov byte [esi], bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp + 0x14], eax
je 0x422363
push 0xf01ff
lea ecx, [edi + 4]
call fcn.0042f61b
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
cmp edi, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x422358
lea eax, [ebp - 0x1c]
mov byte [esi], 1
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x422353
cmp dword [ebp - 0x18], 4
jne 0x422347
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
cmp dword [ebp - 0x18], 1
jne 0x422353
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
push edi
call ebx
jmp 0x42235e
mov eax, dword [ebp + 8]
mov byte [eax], 1
push dword [ebp + 0x14]
call ebx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x42236a
Capabilities:
Create service
Persist via windows service

Disassembly:
mov eax, 0x482010
call fcn.0047e070
sub esp, 0x24
push ebx
xor ebx, ebx
push esi
lea eax, [ebp - 0x20]
push ebx
push eax
mov esi, ecx
call fcn.0040c107
lea eax, [ebp - 0x20]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x24]
push 0x4a866c
push eax
call fcn.0042f1f1
push str.___service
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
call fcn.0042f186
add esp, 0x20
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0042eea2
mov ecx, esi
call fcn.0042f61b
push eax
lea ecx, [ebp - 0x14]
call fcn.0042ef62
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 4
call fcn.0042f383
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0042eea2
lea ecx, [esi + 4]
call fcn.0042f61b
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042ef62
lea ecx, [esi + 8]
mov byte [ebp - 4], 5
call fcn.0042f61b
push eax
lea ecx, [ebp - 0x18]
call fcn.0042ef62
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.0042f61b
push eax
push 1
push 2
push 0x10
push 0xf01ff
lea ecx, [ebp - 0x18]
call fcn.0042f61b
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042f61b
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp eax, ebx
jne 0x422497
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x422477
lea eax, [ebp - 0x30]
push str.The_Ammyy_service_is_already_registered
push eax
call fcn.0042a481
pop ecx
lea eax, [ebp - 0x30]
pop ecx
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
push eax
lea eax, [ebp - 0x30]
push str.ERROR__d_CreateServiceW___while_registering_the_Ammyy_service
push eax
call fcn.0042a481
add esp, 0xc
lea eax, [ebp - 0x30]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 1
mov ecx, esi
call fcn.004224e6
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.0042eea2
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.0042eea2
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0042eea2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0042eea2
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4224e6
Capabilities:
Manipulate safe mode programs

Disassembly:
mov eax, 0x482034
call fcn.0047e070
push ecx
push ecx
add ecx, 4
lea eax, [ebp - 0x10]
push ecx
push str.SYSTEMCurrentControlSetControlSafeBootNetwork_
push eax
call fcn.0042db6c
add esp, 0xc
and dword [ebp - 4], 0
cmp byte [ebp + 8], 0
je 0x422569
lea ecx, [ebp + 8]
call fcn.0042b4d7
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0042f61b
push eax
push reloc.WS2_32.dll_bind
lea ecx, [ebp + 8]
call fcn.0042b540
push 0x4a8670
lea ecx, [ebp - 0x14]
call fcn.0042d89e
push eax
push 0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0042b7b5
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0042d82b
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0042b4dd
jmp 0x42257e
lea ecx, [ebp - 0x10]
call fcn.0042f61b
push eax
push reloc.WS2_32.dll_bind
call fcn.0042b808
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042d82b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x422598
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, ecx
push esi
push edi
push 0xf01ff
lea ecx, [ebx + 4]
call fcn.0042f61b
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x42270c
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x28]
push eax
push edi
call esi
test eax, eax
jne 0x422604
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
lea eax, [ebp - 0xc]
push str.ERROR__d_QueryServiceStatus__
push eax
call fcn.0042a481
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp dword [ebp - 0x24], 1
je 0x422692
lea eax, [ebp - 0x28]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x42265c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
lea eax, [ebp - 0xc]
push str.ERROR__d_ControlService__
push eax
call fcn.0042a481
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp dword [ebp - 0x24], 3
jne 0x422667
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x28]
push eax
push edi
call esi
test eax, eax
jne 0x42264e
cmp dword [ebp - 0x24], 1
je 0x422692
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [ebp - 0xc]
push str.The_Ammyy_service_could_not_be_stopped
push eax
call fcn.0042a481
pop ecx
lea eax, [ebp - 0xc]
pop ecx
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp dword [ebp + 0xc], 0
je 0x4226fe
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4226f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp esi, 0x430
lea eax, [ebp - 0xc]
jne 0x4226d8
push str.The_Ammyy_service_is_already_marked_for_removing
push eax
call fcn.0042a481
pop ecx
lea eax, [ebp - 0xc]
pop ecx
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
push esi
push str.The_Ammyy_service_could_not_be_removed__error_d
push eax
call fcn.0042a481
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0
mov ecx, ebx
call fcn.004224e6
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
leave
ret 8
lea eax, [ebp - 0xc]
push str.The_Ammyy_service_could_not_be_found
push eax
call fcn.0042a481
pop ecx
lea eax, [ebp - 0xc]
pop ecx
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
Function at 0x42272a
Capabilities:
Start service

Disassembly:
mov eax, 0x482048
call fcn.0047e070
sub esp, 0x18
push esi
push 0xf01ff
add ecx, 4
call fcn.0042f61b
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x422773
lea eax, [ebp - 0x18]
push str.The_Ammyy_service_could_not_be_found
push eax
call fcn.0042a481
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x4227c4
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [ebp + 8]
push edi
push eax
call fcn.0040c4f2
push dword [ebp + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push edi
push str.ERROR__d___S__while_starting_the_AMMYY_service
push eax
call fcn.0042a481
add esp, 0x18
lea eax, [ebp - 0x24]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
pop edi
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x422ae9
Capabilities:
Delete service
Query service status
Start service

Disassembly:
mov eax, 0x4820d0
call fcn.0047e070
sub esp, 0xa8
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ebx
jge 0x422b29
lea eax, [ebp - 0x54]
push str.JustLunch___Invalid_Session
push eax
call fcn.0042a481
pop ecx
lea eax, [ebp - 0x54]
pop ecx
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x422b63
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x6c]
push str.OpenSCManager___error__d
push eax
call fcn.0042a481
add esp, 0xc
lea eax, [ebp - 0x6c]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
push 1
push eax
mov ecx, ebx
mov dword [ebp - 4], esi
call fcn.00422598
jmp 0x422b7d
push 2
mov ecx, ebx
pop edi
mov dword [ebp - 0x14], esi
push dword [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.0042236a
lea ecx, [ebx + 4]
call fcn.0042f61b
push 0xf01ff
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
mov dword [ebp - 0x14], esi
jne 0x422bd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x30]
push str.OpenService___error__d
push eax
call fcn.0042a481
add esp, 0xc
lea eax, [ebp - 0x30]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [ebp + 8]
lea eax, [ebp - 0xb4]
push 0x4a8840
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
lea eax, [ebp - 0xb4]
add esp, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x422c33
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x78]
push str.StartService___error__d
push eax
call fcn.0042a481
add esp, 0xc
lea eax, [ebp - 0x78]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x94]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x422c6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x3c]
push str.QueryServiceStatus___error__d
push eax
call fcn.0042a481
add esp, 0xc
lea eax, [ebp - 0x3c]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp dword [ebp - 0x90], 1
je 0x422c7e
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x422c33
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x422caf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x48]
push str.DeleteService___error__d
push eax
call fcn.0042a481
add esp, 0xc
lea eax, [ebp - 0x48]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x18]
call esi
push 0
mov ecx, ebx
call fcn.004224e6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x425b30
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4825f8
call fcn.0047e070
push ecx
push ecx
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
lea eax, [esi + 0x10]
push eax
call fcn.0042d53b
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.0042e001
test eax, eax
je 0x425b73
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.0042cfd1
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0042d960
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0042d82b
push 1
push ebx
push ebx
lea ecx, [ebp - 0x10]
call fcn.0042f61b
push eax
push 0x4a6868
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042d82b
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x425ea5
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi], 0xffffffff
je 0x425ed1
lea eax, [ebp - 0xc]
push str.CreateInternal__1
push eax
call fcn.0042a481
pop ecx
lea eax, [ebp - 0xc]
pop ecx
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x425f0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xc]
push str.Error__d_socket__
push eax
call fcn.0042a481
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
pop esi
leave
ret

Function at 0x426023
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
xor edx, edx
mov ecx, 0x3e8
push edi
div ecx
xor edi, edi
mov dword [ebp - 0x118], 1
mov dword [ebp - 8], eax
mov eax, dword [esi]
imul edx, edx, 0x3e8
mov dword [ebp - 0x114], eax
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x118]
push edi
push eax
push edi
mov dword [ebp - 4], edx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, edi
jne 0x42607d
or eax, 0xffffffff
pop edi
pop esi
leave
ret 4
jle 0x4260c6
lea eax, [ebp - 0x118]
push eax
push dword [esi]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4260c6
push edi
push edi
push dword [esi]
call dword [sym.imp.WS2_32.dll_accept]
cmp eax, 0xffffffff
jne 0x426077
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x14]
push str.accept___error_d
push eax
call fcn.0042a481
add esp, 0xc
lea eax, [ebp - 0x14]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x14]
push str.select___error_d
push eax
call fcn.0042a481
add esp, 0xc
lea eax, [ebp - 0x14]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
Function at 0x4260ec
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push esi
push dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0xc], eax
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
pop esi
je 0x426127
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
leave
ret 8

Function at 0x42617f
Capabilities:
Connect socket
Get socket status

Disassembly:
mov eax, 0x4826e0
call fcn.0047e070
sub esp, 0x230
push ebx
push esi
push edi
lea ecx, [ebp - 0x10]
call fcn.00425e9a
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00425ea5
push ebx
push dword [ebp - 0x10]
call fcn.00426eca
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov dword [ebp - 0x30], eax
push dword [ebp + 0xc]
mov word [ebp - 0x34], 2
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [ebp - 0x10]
mov word [ebp - 0x32], ax
lea eax, [ebp - 0x34]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
xor esi, esi
inc esi
test eax, eax
je 0x4262a0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4262b5
mov eax, dword [ebp + 0x10]
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x18], eax
imul edx, edx, 0x3e8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], edx
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x23c]
push eax
push ebx
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jl 0x4262dc
cmp eax, esi
jg 0x4262dc
cmp eax, ebx
je 0x4262d2
cmp eax, esi
jne 0x426269
lea eax, [ebp - 0x138]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x4262d2
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x4262a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x24]
push str.select___error_d
push eax
call fcn.0042a481
add esp, 0xc
lea eax, [ebp - 0x24]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
push esi
push dword [ebp - 0x10]
call fcn.00426eca
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
call fcn.00425f7c
mov ebx, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00425ea0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
lea ecx, [ebp - 0x10]
call fcn.00425f0d
jmp 0x4262b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x24]
push str.select___error_d
push eax
call fcn.0042a481
add esp, 0xc
lea eax, [ebp - 0x24]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException

Function at 0x426302
Capabilities:
Set socket configuration

Disassembly:
push dword [esp + 4]
call fcn.00426311
pop ecx
jmp fcn.0042635b