joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430db8
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x447280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push esi
lea eax, [ebp - 0x108]
push eax
push esi
push 2
push esi
push esi
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x430e01
mov edx, eax
mov ecx, str.loadAtStartup:_Failed_openning_registry_key
call fcn.0043178f
or eax, 0xffffffff
jmp 0x430e4f
push dword [0x44f1c8]
lea eax, [ebp - 0x104]
push str.ruon._s
push eax
call fcn.0041b70d
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x430e41
mov edx, eax
mov ecx, str.loadAtStartup:_Failed_removing_entry
call fcn.0043178f
or esi, 0xffffffff
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041b6fe
leave
ret

Function at 0x431115
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x447280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push connect
push 0x44a2c0
push 0
or edi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x431194
push ebx
push 0x20
call fcn.004314bb
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x431180
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x43116d
xor edi, edi
jmp 0x431177
mov ecx, str.ServiceStop:_Sending_stop_signal_failed
call fcn.0043177c
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x43118a
mov ecx, str.ServiceStop:_Cant_open_service__assuming_not_there
call fcn.0043177c
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
jmp 0x43119e
mov ecx, str.UninstallService:_Cant_open_the_Service_database
call fcn.0043177c
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0041b6fe
leave
ret
Function at 0x4311ae
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x447280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push connect
push 0x44a218
push 0
or edi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x431239
push esi
push 0x10020
call fcn.004314bb
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x431223
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x431210
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
xor edi, edi
jmp 0x43121a
mov ecx, str.UninstallService:_Service_delete_failed
call fcn.0043177c
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x43122f
mov ecx, str.UninstallService:_Cant_open_service__assuming_not_there
call fcn.0043177c
xor edi, edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
jmp 0x431243
mov ecx, 0x44a28c
call fcn.0043177c
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.0041b6fe
leave
ret

Function at 0x431253
Capabilities:
Create service
Modify service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x447280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 2
push 0x44a158
push 0
mov edi, ecx
or esi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x431345
push edi
lea eax, [ebp - 0x404]
push str._s_service
push eax
call fcn.0041b70d
add esp, 0xc
xor eax, eax
push 0x44c552
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x404]
push eax
push 1
push 2
push 0x110
push 0x20000006
call fcn.0043149d
push eax
call fcn.004314bb
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
test edi, edi
je 0x431332
call fcn.0043147f
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x40c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
lea eax, [ebp - 0x408]
push eax
push 1
push edi
mov dword [ebp - 0x408], 0x44a044
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x431317
call fcn.00431464
mov esi, eax
jmp 0x431319
xor esi, esi
test esi, esi
jne 0x431329
xor edx, edx
mov ecx, str.InstallService:_Agent_Service_installed.
call fcn.0043184b
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x43133c
mov ecx, str.InstallService:_Error_creating_the_Agent_Service_in_the_Service_Database
call fcn.0043177c
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x43134f
mov ecx, str.InstallService:_Cant_open_Service_Database
call fcn.0043177c
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b6fe
leave
ret

Function at 0x4314d9
Capabilities:
Create thread

Disassembly:
xor edx, edx
mov ecx, 0x449f50
call fcn.0043184b
jmp fcn.004314ea
Function at 0x4315ba
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x447280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
mov esi, ecx
xor eax, eax
push esi
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x108]
push 0x449ef8
push eax
mov dword [ebp - 0x14c], 0x44
mov dword [ebp - 0x148], edi
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x12c], edi
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x10c], edi
call fcn.0041b70d
add esp, 0xc
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x14c]
push eax
push edi
push edi
push 0x8000000
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, 1
jne 0x431693
push dword [ebp - 0x15c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x158]
call esi
xor eax, eax
jmp 0x4316a0
mov ecx, str.span:_Spawn_failed
call fcn.0043177c
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041b6fe
leave
ret

Function at 0x4316ae
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00422db0
mov eax, dword [0x447280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x449e98
push ecx
mov esi, edx
call fcn.0041cac0
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4316eb
mov ecx, str.copyfile:_Cant_open_src_file
call fcn.0043177c
or eax, 0xffffffff
jmp 0x43175f
push ebx
push 0x449ebc
push esi
call fcn.0041cac0
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x431741
mov ecx, str.copyfile:_Cant_open_dst_file
call fcn.0043177c
push edi
call fcn.0041dcd2
or eax, 0xffffffff
jmp 0x43175d
push edi
push 0x1000
lea eax, [ebp - 0x1004]
push 1
push eax
call fcn.0041cc98
mov esi, eax
push ebx
push esi
lea eax, [ebp - 0x1004]
push 1
push eax
call fcn.0041d1c6
add esp, 0x20
cmp eax, esi
jne 0x43176d
push edi
call fcn.0041b78f
pop ecx
test eax, eax
je 0x431714
xor esi, esi
push edi
call fcn.0041dcd2
push ebx
call fcn.0041dcd2
pop ecx
mov eax, esi
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041b6fe
leave
ret
mov ecx, str.copyfile:_Write_failed
call fcn.0043177c
or esi, 0xffffffff
jmp 0x43174e
Function at 0x4318c6
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x447280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push 0x449e64
push edi
call fcn.0041cac0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x431968
push 2
push 0
push esi
call fcn.0041dab2
push esi
call fcn.0041d6e0
add esp, 0x10
cmp eax, 0x2000
jle 0x431977
push 2
push 0xffffff00
push esi
call fcn.0041dab2
push esi
push 0x100
lea eax, [ebp - 0x104]
push 1
push eax
call fcn.0041cc98
push esi
mov ebx, eax
call fcn.0041dcd2
push 0x449e68
push edi
call fcn.0041cac0
add esp, 0x28
mov esi, eax
test ebx, ebx
je 0x431977
push 0x449e6c
push esi
call fcn.0041cd44
push esi
push ebx
lea eax, [ebp - 0x104]
push 1
push eax
call fcn.0041d1c6
add esp, 0x18
jmp 0x431977
push 0x449e70
push edi
call fcn.0041cac0
pop ecx
pop ecx
mov esi, eax
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b6fe
leave
ret
Function at 0x431a08
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x447280]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, edx
lea edx, [ebp - 0x20c]
mov ecx, str.AUTHENTIC_TAG
mov dword [ebp - 0x214], eax
xor esi, esi
call fcn.00431cb2
test eax, eax
jne 0x431a47
lea esi, [ebp - 0x20c]
jmp 0x431a53
xor edx, edx
mov ecx, str.iao_getbinary:_AUTHENIC_TAG_variable_not_embedded
call fcn.0043184b
push edi
mov edx, str._getbinary___
mov ecx, 0x44d288
call fcn.00432589
mov ebx, eax
pop ecx
test ebx, ebx
jns 0x431a72
or eax, 0xffffffff
jmp 0x431b63
mov eax, dword [edi]
lea edx, [ebp - 0x210]
mov ecx, str._binary_authentic_
mov dword [ebp - 0x210], eax
call fcn.00431c86
test eax, eax
je 0x431aa9
mov ecx, str.iao_getbinary:__binary__tag_invalid
xor edx, edx
call fcn.0043184b
push dword [edi]
call fcn.0041be88
or eax, 0xffffffff
jmp 0x431b62
test esi, esi
je 0x431ac3
lea edx, [ebp - 0x210]
mov ecx, esi
call fcn.00431c86
test eax, eax
je 0x431adb
jmp 0x431b72
push 0x449ce4
push dword [ebp - 0x210]
call fcn.0041c070
pop ecx
pop ecx
mov dword [ebp - 0x210], eax
lea edx, [ebp - 0x210]
mov ecx, 0x449ce4
call fcn.00431c86
test eax, eax
je 0x431af6
mov ecx, str.iao_getbinary:__binary__tag__invalid__closing_
jmp 0x431a93
mov edx, str.__binary_
mov esi, edx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x431b00
mov eax, dword [edi]
sub esi, ecx
sub eax, esi
push esi
add eax, ebx
push eax
push edx
call fcn.0041be10
add esp, 0xc
test eax, eax
je 0x431b28
mov ecx, str.iao_getbinary:___binary__tag_invalid
jmp 0x431a93
mov eax, dword [edi]
sub eax, esi
push ebx
mov byte [eax + ebx], 0
call fcn.0041bec0
mov edx, dword [ebp - 0x210]
mov esi, eax
pop ecx
mov ecx, esi
call fcn.0043331d
mov ecx, dword [ebp - 0x214]
mov edx, eax
mov dword [ecx], eax
mov ecx, esi
call fcn.00431b8e
push dword [edi]
call fcn.0041be88
mov dword [edi], esi
xor eax, eax
pop ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b6fe
leave
ret
xor edx, edx
mov ecx, str.iao_getbinary:_binary_not_authentic
call fcn.0043184b
push dword [edi]
call fcn.0041be88
pop ecx
push 0xffffffffffffffff
call fcn.0041e122
int3
Function at 0x4325d4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x3a74
call fcn.00422db0
mov eax, dword [0x447280]
xor eax, esp
mov dword [esp + 0x3a70], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, edx
mov edi, ecx
call fcn.00432a57
test eax, eax
je 0x43260d
or eax, 0xffffffff
jmp 0x432772
cmp dword [0x44c568], 1
lea eax, [esp + 0x10]
push eax
jne 0x43267f
sub esp, 0x10
call fcn.00433b5a
add esp, 0x14
test eax, eax
jne 0x432605
lea ecx, [esp + 0x10]
call fcn.004327b2
lea eax, [esp + 0x1278]
push ebx
push eax
lea edx, [esp + 0x18]
mov ecx, edi
call fcn.00432975
pop ecx
pop ecx
lea ecx, [esp + 0x1278]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x432653
sub ecx, edx
push ecx
lea eax, [esp + 0x127c]
push eax
lea ecx, [esp + 0x18]
call fcn.004339bc
pop ecx
pop ecx
lea ecx, [esp + 0x10]
test eax, eax
je 0x432695
call fcn.00433e86
jmp 0x432605
mov edx, dword [0x44ca54]
push 1
mov ecx, 0x44c5c8
call fcn.00433cf6
pop ecx
pop ecx
jmp 0x432626
mov edx, esi
call fcn.004333d7
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.00433e86
test edi, edi
js 0x432605
mov edx, dword [esi]
push edi
mov ecx, str.iaop
call fcn.0043285d
mov edi, eax
or ebx, 0xffffffff
pop ecx
cmp edi, ebx
jne 0x4326fd
mov ecx, dword [esi]
xor edx, edx
call fcn.0043184b
xor edx, edx
mov ecx, str.iao_post:_response_not_IAOP_compliant
call fcn.0043184b
push dword [esi]
call fcn.0041be88
mov eax, dword [0x44c558]
pop ecx
mov ecx, eax
inc eax
mov dword [0x44c558], eax
cmp ecx, 0x7d0
jne 0x432728
jmp 0x432787
and dword [0x44c558], 0
push 7
push str._error_
push dword [esi]
call fcn.0041be10
add esp, 0xc
test eax, eax
jne 0x43272c
mov ecx, dword [esi]
call fcn.004327fd
push dword [esi]
call fcn.0041be88
pop ecx
mov eax, ebx
jmp 0x432772
mov ecx, str._directive_die:
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x432734
sub ecx, edx
push ecx
push str._directive_die:
push dword [esi]
call fcn.0041be10
add esp, 0xc
test eax, eax
jne 0x432770
mov ecx, dword [esi]
xor edx, edx
call fcn.0043184b
xor edx, edx
mov ecx, str.iao_post:_Was_asked_to_die_by_server._Bailing_out...
call fcn.0043184b
push dword [esi]
call fcn.0041be88
pop ecx
jmp 0x4327ab
mov eax, edi
mov ecx, dword [esp + 0x3a7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041b6fe
mov esp, ebp
pop ebp
ret
xor edx, edx
mov ecx, str.iao_post:_response_not_IAOP_compliant_for_200_times_in_a_row
call fcn.0043184b
xor edx, edx
mov ecx, str.iao_post:_There_could_be_a_firewall_issue.
call fcn.0043184b
xor edx, edx
mov ecx, str.iao_post:_Bailing_out.
call fcn.0043184b
push ebx
call fcn.0041e122
int3
Function at 0x433da3
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x447280]
xor eax, esp
mov dword [esp + 0x194], eax
cmp dword [0x44c59c], 0
jne 0x433e72
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x433e25
sub eax, 0x271e
je 0x433e16
sub eax, 0x16
je 0x433e0f
sub eax, 0x1f
je 0x433e08
sub eax, 0x18
je 0x433e01
dec eax
je 0x433dfa
mov ecx, str.iao_tcpinit:_Unknow_reason
jmp 0x433e1b
mov ecx, str.iao_tcpinit:_WinSock_version__not_supported
jmp 0x433e1b
mov ecx, str.iao_tcpinit:_Underlying_network_subsystem_is_not_ready
jmp 0x433e1b
mov ecx, str.iao_tcpinit:_Maximum_WinSock_tasks_reached
jmp 0x433e1b
mov ecx, str.iao_tcpinit:_A_blocking_Windows_Sockets_1.1_operation_is_in_progress
jmp 0x433e1b
mov ecx, str.iao_tcpinit:_Invalid_pointer
call fcn.0043177c
or eax, 0xffffffff
jmp 0x433e74
call fcn.00401570
call fcn.004015c0
mov ecx, eax
call section..text
mov dword [0x44c5a4], eax
test eax, eax
jne 0x433e4d
mov ecx, str.Failed_creating_ssl_context
xor edx, edx
call fcn.0043184b
jmp 0x433e20
and dword [eax + 0x15c], 0
mov word [eax + 0x144], 0x100
call fcn.0043470b
mov dword [0x44c59c], eax
test eax, eax
jne 0x433e72
mov ecx, str.Cant_create_gethostbyname_mutex
jmp 0x433e44
xor eax, eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0041b6fe
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x447280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 2
pop eax
mov edi, ecx
mov word [ebp - 0x14], ax
movzx eax, word [edi + 0xc18]
push eax
mov esi, edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov eax, dword [edi + 0xc28]
push 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 8]
push esi
push dword [edi]
call dword [sym.imp.WS2_32.dll_sendto]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4340a9
mov ecx, str.udpsend:_sendto_returned_with_an_error
mov dword [edi + 0xc20], 0xfffffffa
call fcn.0043177c
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041b6fe
leave
ret

Function at 0x4340b9
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.00434334
pop ecx
test eax, eax
jne 0x4340d2
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.004340d4
pop ebp
ret
Function at 0x4340d4
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x447280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x44c5a4]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x20c], eax
test eax, eax
je 0x434125
mov ecx, 0x740
call fcn.004096b0
mov esi, eax
test esi, esi
je 0x434127
mov edx, dword [ebp - 0x20c]
mov ecx, esi
call fcn.004022e0
test eax, eax
jns 0x434127
mov ecx, esi
call fcn.00402dd0
xor esi, esi
mov dword [edi + 0xc24], esi
test esi, esi
je 0x4341fa
mov dword [esi + 0x3ec], 0x15180
mov esi, dword [edi + 0xc24]
mov edx, dword [edi]
lea ecx, [esi + 0xf8]
lea eax, [esi + 0xfc]
mov dword [ecx], edx
mov dword [esi + 0x110], ecx
xor ebx, ebx
mov ecx, edi
inc ebx
mov dword [eax], edx
mov dword [esi + 0x114], eax
call fcn.00434298
test eax, eax
je 0x4341fa
push 2
mov dword [ebp - 0x20c], ebx
pop ebx
lea eax, [ebp - 0x20c]
push eax
push 0x8004667e
push dword [edi]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x4341fa
mov ecx, dword [edi + 0xc24]
call fcn.00401600
mov edx, eax
mov ecx, edx
sub ecx, 0
je 0x4341f1
dec ecx
je 0x434265
test edx, edx
jle 0x4341b9
xor eax, eax
jmp 0x4341c4
mov ecx, dword [edi + 0xc24]
call fcn.00401190
lea ecx, [eax - 1]
dec ecx
je 0x4341dd
dec ecx
jne 0x43423d
mov ecx, edi
call fcn.004345a3
neg eax
sbb eax, eax
inc eax
push 6
jmp 0x4341f5
push ecx
mov edx, edi
xor ecx, ecx
call fcn.004345b0
neg eax
pop ecx
sbb eax, eax
inc eax
push 5
jmp 0x4341f5
xor eax, eax
push 4
pop ebx
test eax, eax
jne 0x434196
push ebx
lea eax, [ebp - 0x208]
push str.iao_sslconnect:_SSL_connect_failed__stage__d_
push eax
call fcn.0041b70d
add esp, 0xc
lea ecx, [ebp - 0x208]
call fcn.0043177c
mov ecx, edi
mov dword [edi + 0xc20], 0xfffffff9
call fcn.00433e86
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b6fe
leave
ret
push eax
push edx
lea eax, [ebp - 0x208]
push str.iao_sslconnect:_SSL_get_error__d__d
push eax
call fcn.0041b70d
add esp, 0x10
xor edx, edx
lea ecx, [ebp - 0x208]
call fcn.0043184b
push 7
pop ebx
jmp 0x4341fa
mov ecx, edi
call fcn.00434270
xor eax, eax
jmp 0x43422e
Function at 0x434334
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get hostname
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x447280]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0x10
call fcn.00433da3
mov ecx, edi
call fcn.004344ba
lea edx, [edi + 0x818]
mov ecx, esi
call fcn.004344f3
test eax, eax
jne 0x434395
mov ecx, str.iao_connect:_Cant_translate_host_to_ip
call fcn.0043177c
mov dword [edi + 0xc20], 0xfffffffe
or eax, 0xffffffff
jmp 0x4344ab
lea edx, [edi + 0x418]
sub edx, esi
mov cl, byte [esi]
mov byte [edx + esi], cl
inc esi
test cl, cl
jne 0x43439d
push 2
pop esi
push ebx
mov dword [ebp - 0x14], eax
mov word [ebp - 0x18], si
call dword [sym.imp.WS2_32.dll_htons]
push 0
push 1
push esi
mov word [ebp - 0x16], ax
call dword [sym.imp.WS2_32.dll_socket]
or esi, 0xffffffff
mov dword [edi], eax
cmp eax, esi
jne 0x4343e7
mov ecx, str.iao_connect:_Cant_obtain_file_descriptor
call fcn.0043177c
mov dword [edi + 0xc20], esi
mov eax, esi
jmp 0x4344ab
push 4
lea ecx, [ebp - 0x30]
push ecx
push 8
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, esi
jne 0x434418
mov ecx, str.iao_connect:_Set_keep_alive_on_socket_failed
call fcn.0043177c
mov ecx, edi
mov dword [edi + 0xc20], esi
call fcn.00433e86
jmp 0x4343e0
push 0x10
lea eax, [ebp - 0x18]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, esi
jne 0x434463
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
cmp esi, 0x274d
setne al
mov ecx, str.iao_connect:_Remote_host_unreachable
add eax, 0xfffffffc
mov dword [edi + 0xc20], eax
call fcn.0043177c
mov ecx, edi
call fcn.00433e86
jmp 0x43438d
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, esi
je 0x434485
mov ecx, dword [ebp - 0x24]
lea edx, [edi + 0x404]
call fcn.004346be
mov dword [edi + 0xc18], ebx
push 0x400
add edi, 4
push edi
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x4344a9
mov esi, str.undetermined
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b6fe
leave
ret
Function at 0x4344f3
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [0x44c59c]
xor edi, edi
mov dword [ebp - 4], edx
mov ebx, ecx
mov esi, edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x43451a
call fcn.004346fd
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x43452c
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
mov eax, 0x448474
mov cl, byte [ebx]
cmp cl, byte [eax]
jne 0x43454f
test cl, cl
je 0x434554
mov cl, byte [ebx + 1]
cmp cl, byte [eax + 1]
jne 0x43454f
add ebx, 2
add eax, 2
test cl, cl
jne 0x434531
jmp 0x434554
sbb edi, edi
or edi, 1
test edi, edi
jne 0x43456a
test esi, esi
jne 0x434564
mov esi, dword [0x44c57c]
jmp 0x43456a
mov dword [0x44c57c], esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x43457a
mov edx, eax
mov ecx, esi
call fcn.004346be
push dword [0x44c59c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp eax, 1
je 0x434590
call fcn.004346ef
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x434727
Capabilities:
Create thread

Disassembly:
mov ecx, 0x430097
call fcn.0043477a
xor ecx, ecx
push ecx
push ecx
push eax
push 0x434754
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x434753
mov ecx, str.iao_spawnthread:_Failed_creating_thread
call fcn.0043177c
xor eax, eax
ret
Function at 0x401f00
Capabilities:
Lock the desktop

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
call dword [sym.imp.USER32.dll_LockWorkStation]
test eax, eax
je 0x401f1a
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
cmp dword [0x62fbb0], 0xffffffff
jae 0x401f2e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
jmp 0x401f34
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401f42
push eax
call sym.SystemInformer.exe_PhGetNtMessage
mov edi, edi
jmp 0x401f48
push eax
call sym.SystemInformer.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x401f8e
push dword [esi + 4]
push 0x5ce56c
push str.Unable_to_lock_the_computer.
push 0xfffe
push 0x20
push dword [ebp + 8]
call sym.SystemInformer.exe_PhShowMessage2
add esp, 0x18
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x401fa8
jmp 0x401f80
call fcn.004fc420
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
push str.Unable_to_lock_the_computer.
push 0x5ce56c
push 0x10
push dword [ebp + 8]
call sym.SystemInformer.exe_PhShowMessage
add esp, 0x10
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x401fc0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0
push 0
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x401fde
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
mov edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401ff2
push eax
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x401ff8
push eax
call sym.SystemInformer.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x402039
push dword [esi + 4]
push 0x5ce56c
push str.Unable_to_log_off_the_computer.
push 0xfffe
push 0x20
push dword [ebp + 8]
call sym.SystemInformer.exe_PhShowMessage2
add esp, 0x18
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x402050
call fcn.004fc420
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
push str.Unable_to_log_off_the_computer.
push 0x5ce56c
push 0x10
push dword [ebp + 8]
call sym.SystemInformer.exe_PhShowMessage
add esp, 0x10
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4