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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc8
imul eax, dword [0x40a764], 0x3e8
push ebx
push ebp
push esi
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
mov ebp, 0xffff
push edi
push 4
mov dword [esp + 0x18], eax
mov edi, ecx
lea eax, [esp + 0x18]
mov ebx, edx
push eax
push 0x1006
push ebp
push edi
call esi
push 4
lea eax, [esp + 0x18]
push eax
push 0x1005
push ebp
push edi
call esi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x80
push eax
lea eax, [esp + 0x5c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x4037a7
push dword [esp + 0x10]
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x20]
call fcn.00403111
pop ecx
pop ecx
test al, al
je 0x4037a7
cmp word [esp + 0x58], 0x17
mov eax, str.IPv4
mov esi, str.IPv6
mov ebp, str._s_connection__s:__s._n
cmovne esi, eax
lea eax, [esp + 0x18]
push eax
push str.accepted
push esi
push ebp
call fcn.00403fbc
add esp, 0x10
test byte [0x40a894], 2
je 0x403784
xor edx, edx
lea ecx, [esp + 0x58]
call fcn.0040321d
test al, al
jne 0x403784
push str.Client_with_public_IP_address_rejected_n
call fcn.00403fbc
jmp 0x403792
lea eax, [esp + 0x18]
mov edx, ebx
push eax
mov ecx, edi
call fcn.0040477c
pop ecx
lea eax, [esp + 0x18]
push eax
push str.closed
push esi
push ebp
call fcn.00403fbc
add esp, 0x10
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4037fe
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
push 8
mov edi, edx
mov ebx, ecx
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
jne 0x40381b
call fcn.00401dca
mov esi, eax
cmp byte [0x40a876], 0
mov dword [esi], ebx
mov dword [esi + 4], edi
jne 0x403843
cmp dword [0x40a768], 0x7fffffff
je 0x403843
push 0xffffffffffffffff
push dword [0x40aa40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edi, edi
push edi
push edi
push esi
push 0x4037dc
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x403862
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40387f
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
call fcn.004037b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x4039c5
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
push esi
push edi
mov edi, edx
test eax, eax
jne 0x4039e9
push 4
pop eax
call fcn.00401040
mov dword [ebp - 4], esp
test edi, edi
jne 0x4039fe
push 4
pop eax
call fcn.00401040
mov edi, esp
mov dword [ebp - 8], 1
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [edi], eax
test eax, eax
jne 0x403a18
xor al, al
jmp 0x403aa7
push 0xf01ff
push str.vlmcsd
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x403a33
mov bl, 2
jmp 0x403a97
mov eax, dword [ebp - 4]
mov dword [eax], 1
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x403a53
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
mov dword [ecx], eax
lea eax, [ebp - 0x24]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x20], 1
je 0x403a80
inc bl
cmp bl, 0xa
jb 0x403a60
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
neg ebx
push esi
sbb bl, bl
and bl, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 8], 0
je 0x403aa5
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40492f
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40aa38]
push dword [eax]
push str.1113__built_2020_03_28_17:29:45_UTC
push str.vlmcsd__s_n_nUsage:_n____s___options___n_nWhere:_n___a__csvlk__epid__tuse__epid__for__csvlk__n___r_012_t_tset_ePID_randomization_level__default_1__n___C__LCID__t_tuse_fixed__LCID__in_random_ePIDs_n___H__build__t_tuse_fixed__build__number_in_random_ePIDs_n___o_0123_t_tset_protection_level_against_clients_with_public_IP_addresses__default_0__n___O__v___a_____c___tuse_VPN_adapter__v__with_IPv4_address__a__and_CIDR__c__n___x__level__t_texit_if_warning__level__reached__default_0__n___L__address__:_port___tlisten_on_IP_address__address__with_optional__port__n___P__port__t_tset_TCP_port__port__for_subsequent__L_statements__default_1688__n___m__clients__t_tHandle_max.__clients__simultaneously__default_no_limit__n___s_t_t_tinstall_vlmcsd_as_an_NT_service._Ignores__e_n___S_t_t_tremove_vlmcsd_service._Ignores_all_other_options_n___U__username__t_trun_NT_service_as__username_._Must_be_used_with__s_n___W__password__t_toptional__password__for__U._Must_be_used_with__s_n___e_t_t_tlog_to_stdout_n___D_t_t_tdoes_nothing._Provided_for_compatibility_with_POSIX_versions_only_n___K_0123_t_tset_white_listing_level_for_KMS_IDs__default__K0__n___c0___c1_t_tdisable_enable_client_time_checking__default__c0__n___M0___M1_t_tdisable_enable_maintaining_clients__default__M0__n___E0___E1_t_tdisable_enable_start_with_empty_client_list__default__E0__ignored_if__M0__n___t__seconds__t_tdisconnect_clients_after__seconds__of_inactivity__default_30__n___d_t_t_tdisconnect_clients_after_each_request_n___k_t_t_tdont_disconnect_clients_after_each_request__default__n___N0___N1_t_tdisable_enable_NDR64_n___B0___B1_t_tdisable_enable_bind_time_feature_negotiation_n___p__file__t_twrite_pid_to__file__n___i__file__t_tuse_config_file__file__n___j__file__t_tuse_KMS_data_file__file__n___R__interval__t_trenew_activation_every__interval___default_1w__n___A__interval__t_tretry_activation_every__interval___default_2h__n___l__file__t_tlog_to__file__n___T0___T1_t_tdisable_enable_logging_with_time_and_date__default__T1__n___v_t_t_tlog_verbose_n___q_t_t_tdont_log_verbose__default__n___V_t_t_tdisplay_version_information_and_exit_n
call fcn.00403fcc
add esp, 0xc
push 0x57
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x405cfd
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, dword [esp + 0xc]
mov ebx, eax
mov ecx, esi
shl ecx, 2
push ecx
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
mov dword [esp + 0x14], edi
pop ecx
test edi, edi
jne 0x405d41
call fcn.00401dca
mov esi, dword [esp + 0xc]
mov edi, eax
mov dword [esp + 0x10], edi
and dword [esp + 0x14], 0
test esi, esi
jle 0x405dab
push ebp
mov ebp, edi
mov edi, dword [esp + 0x18]
sub ebp, ebx
push 0
push 0
push 0
push dword [ebx + ebp]
push 0xffffffffffffffff
push dword [ebx]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
push esi
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
test eax, eax
jne 0x405d80
call fcn.00401dca
push 0
push 0
push esi
push eax
push 0xffffffffffffffff
mov dword [ebx + ebp], eax
push dword [ebx]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, dword [esp + 0x10]
inc edi
add ebx, 4
cmp edi, esi
jl 0x405d53
mov edi, dword [esp + 0x14]
pop ebp
mov dword [0x40aa3c], esi
xor esi, esi
push 0x40a744
mov dword [0x40aa38], edi
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x405de6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x427
jne 0x405de6
mov byte [0x40a76c], 0
call fcn.004059a3
mov esi, eax
push esi
call dword [sym.imp.msvcrt.dll_exit]
pop edi
pop esi
pop ebx
Function at 0x405fb1
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [sym.imp.msvcrt.dll_strchr]
push edi
mov edi, ecx
push 0x3d
push edi
call esi
push 0x2f
push edi
mov ebp, eax
call esi
push 0x3a
push edi
mov ebx, eax
call esi
add esp, 0x18
mov dword [0x40a9d0], edi
mov edx, eax
test ebp, ebp
je 0x405fef
lea ecx, [ebp + 1]
mov byte [ebp], 0
mov dword [str.10.10.10.9], ecx
jmp 0x405ff5
mov ecx, dword [str.10.10.10.9]
test ebx, ebx
je 0x406004
lea eax, [ebx + 1]
mov byte [ebx], 0
mov dword [0x40a850], eax
test edx, edx
je 0x406013
lea eax, [edx + 1]
mov byte [edx], 0
mov dword [0x40a84c], eax
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
bswap eax
or esi, 0xffffffff
mov dword [0x40a9f4], eax
cmp eax, esi
jne 0x406042
push dword [0x40a848]
push str.Fatal:__s_is_not_a_valid_IPv4_address_n
call fcn.00403fcc
pop ecx
pop ecx
push 0x57
call dword [sym.imp.msvcrt.dll_exit]
push 0xa
lea eax, [esp + 0x14]
push eax
push dword [0x40a850]
call dword [sym.imp.msvcrt.dll_strtol]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov byte [0x40a9fc], al
cmp byte [ecx], 0
jne 0x406139
sub al, 8
cmp al, 0x16
ja 0x406139
mov ecx, dword [0x40a84c]
call fcn.00401c48
mov dword [0x40a9c4], eax
test eax, eax
jne 0x406091
push 0x4f
push str.Fatal:_No_valid_time_span_specified_in_option___c._n
jmp 0x406033
mov cl, byte [0x40a9fc]
mov eax, dword [0x40a9f4]
shr esi, cl
not esi
mov ecx, esi
mov dword [0x40a9bc], esi
and ecx, eax
lea edx, [eax + 1]
not esi
mov dword [0x40a9d8], ecx
or esi, eax
mov dword [0x40a9f0], edx
mov dword [0x40a9c8], esi
cmp eax, ecx
jbe 0x4060cb
cmp edx, esi
jb 0x406149
mov edi, dword [sym.imp.WS2_32.dll_inet_ntoa]
lea ebp, [ecx + 1]
bswap ebp
lea ebx, [esi - 2]
push ebp
bswap ebx
call edi
push eax
call dword [sym.imp.msvcrt.dll__strdup]
mov esi, eax
pop ecx
test esi, esi
jne 0x4060f3
call fcn.00401dca
mov esi, eax
push ebx
call edi
push eax
call dword [sym.imp.msvcrt.dll__strdup]
mov edi, eax
pop ecx
test edi, edi
jne 0x40610b
call fcn.00401dca
mov edi, eax
push str.Fatal:_For_this_subnet_the_IPv4_address_must_be
call fcn.00403fcc
pop ecx
cmp ebp, ebx
jne 0x406125
push esi
push 0x408e60
jmp 0x406033
push edi
push esi
push str.between__s_and__s_n
call fcn.00403fcc
add esp, 0xc
jmp 0x40603a
push dword [0x40a850]
push str.Fatal:___s_is_not_a_valid_CIDR_mask_between__8_and__30_n
jmp 0x406033
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40614f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Terminate process

Disassembly:
push esi
mov esi, ecx
call fcn.00401d3a
push eax
push str.Registry_read_error:__s_n
call fcn.00403fcc
pop ecx
pop ecx
push esi
call dword [sym.imp.msvcrt.dll_exit]
pop esi
Function at 0x40659b
Capabilities:
Terminate process

Disassembly:
push 0
lea eax, [esp + 8]
push eax
push dword [esp + 0xc]
push edx
push dword [esp + 0x14]
push edx
push ecx
push dword [0x40a9ec]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4065e2
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, esi
call fcn.00401d3a
push eax
push str.Fatal:_VPN_adapter_error:__s_n
call fcn.00403fcc
pop ecx
pop ecx
push esi
call dword [sym.imp.msvcrt.dll_exit]
pop esi
mov eax, dword [esp + 4]
ret

Function at 0x406688
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x40a8b4]
sub esp, 0x24
cmp byte [ecx], 0x2d
push esi
jne 0x4066a6
movzx eax, byte [ecx + 1]
test al, al
je 0x406826
call fcn.00405fb1
call fcn.0040616c
push 4
mov edx, 0x40a9c0
mov dword [0x40a9ec], eax
mov ecx, 0x22000c
call fcn.0040659b
pop ecx
push 0x10
mov edx, 0x40a9dc
mov ecx, 0x220008
call fcn.0040659b
mov eax, dword [0x40a9f4]
lea edx, [ebp - 0x10]
bswap eax
mov dword [ebp - 0x10], eax
mov eax, dword [0x40a9d8]
bswap eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x40a9bc]
pop ecx
bswap eax
push 0xc
mov ecx, 0x220028
mov dword [ebp - 8], eax
call fcn.0040659b
pop ecx
mov ecx, dword [0x40a9f4]
lea edx, [ebp - 0x20]
mov eax, ecx
bswap eax
mov dword [ebp - 0x20], eax
mov eax, dword [0x40a9bc]
bswap eax
mov dword [ebp - 0x1c], eax
lea eax, [ecx + 1]
bswap eax
mov dword [ebp - 0x18], eax
mov ecx, 0x22001c
mov eax, dword [0x40a9c4]
push 0x10
mov dword [ebp - 0x14], eax
call fcn.0040659b
pop ecx
push 4
lea edx, [ebp - 4]
mov dword [ebp - 4], 1
mov ecx, 0x220018
call fcn.0040659b
pop ecx
push dword [0x40a9c0]
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
test eax, eax
jne 0x40676b
call fcn.00401dca
xor esi, esi
mov dword [0x40a9cc], eax
push esi
push esi
push esi
push 0x4065e7
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4067a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, esi
call fcn.00401d3a
push eax
push str.Fatal:_Unable_to_start_VPN_thread:__s_n
call fcn.00403fcc
pop ecx
pop ecx
push esi
call dword [sym.imp.msvcrt.dll_exit]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x40a9d4]
push dword [0x40a9e4]
push dword [0x40a9e0]
push dword [0x40a9dc]
push dword [0x40a9f8]
push str._s__u._u._u_device___s__started_n
call fcn.00403fbc
add esp, 0x18
call fcn.00405f0c
test eax, eax
jne 0x406814
cmp esi, 0x14
jae 0x4067fe
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
call fcn.00405f0c
test eax, eax
je 0x4067e4
test eax, eax
jne 0x406814
push dword [0x40a848]
push str.Warning:_IPv4_address__s_not_assigned_n
call fcn.00403fcc
jmp 0x406824
push dword [0x40a848]
push str.IPv4_address__s_assigned_n
call fcn.00403fbc
pop ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40bd20
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47074b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00464ea3
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40bda2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00462c50
mov eax, dword [eax]
push 0x552200
push eax
call fcn.00454f14
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046512e
test bl, bl
je 0x40bda2
push 0x552200
lea ecx, [esp + 0xc]
call fcn.004654be
push 0x555d7c
lea ecx, [esp + 0xc]
call fcn.004654be
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40bdde
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046512e
jmp 0x40bea9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40be62
lea edx, [esp + 0x7c]
push 0x555d78
push edx
call fcn.00454f14
add esp, 8
test eax, eax
je 0x40be62
lea eax, [esp + 0x7c]
push 0x555d74
push eax
call fcn.00454f14
add esp, 8
test eax, eax
je 0x40be62
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40bdf2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046512e
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40c6a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40c702
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40c710
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4707cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x55e384]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40c848
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40c776
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046512e
xor eax, eax
jmp 0x40c8bf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046526b
push esi
lea ecx, [esp + 0xc]
call fcn.004654fa
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40c89d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040c6a0
test eax, eax
jne 0x40c89d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.0040c6a0
test eax, eax
jne 0x40c89d
lea eax, [esp + 0x14]
push 0x555d90
push eax
call fcn.00455f50
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c87c
lea ecx, [esp + 0x14]
push 0x555d8c
push ecx
call fcn.00455ed0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c87c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40c87f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046521b
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40c78e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046512e
xor eax, eax
jmp 0x40c8bf
mov byte [esi], 0
push 0x555d88
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0046512e
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x41ddd0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x41de3e
cmp si, 0x69
ja 0x41de3e
add esi, 0xffd0
cmp si, 0x11
je 0x41de0e
push 0x11
call edi
test ax, ax
jge 0x41de0e
or esi, 0x2000
cmp si, 0x10
je 0x41de23
push 0x10
call edi
test ax, ax
jge 0x41de23
or esi, 0x4000
cmp si, 0x12
je 0x41de38
push 0x12
call edi
test ax, ax
jge 0x41de38
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41de4b
mov esi, 0xbd
jmp 0x41ddff
cmp si, 0x6e
jne 0x41de58
mov esi, 0xbe
jmp 0x41ddff
cmp si, 0x6f
jne 0x41ddf9
mov esi, 0xbf
jmp 0x41ddff

Function at 0x41f580
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x56eaa8]
xor edx, edx
cmp eax, edx
jne 0x41f5a6
xor eax, eax
mov byte [eax + 0x56e9a8], al
inc eax
cmp eax, 0x100
jl 0x41f58e
mov dword [0x56eaa8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x56e9a8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41f637
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x41f60a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x41f5d8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41f6b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x41f703
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41f6ea
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426140
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x4262d8
cmp ebp, ebx
jle 0x4262d8
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x42619e
dec eax
or eax, 0xfffffff8
inc eax
je 0x4261a5
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x4261b4
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x4261bb
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.00464e6f
add esp, 4
cmp eax, ebx
je 0x4261dc
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.00464e6f
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x4262ce
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x4262b5
mov al, byte [edx]
cmp al, 0xc0
jbe 0x4262a1
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x426296
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x4262a4
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x4262a4
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x426240
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x426231
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret