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

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
mov dl, byte [eax + ecx]
xor dl, 0x2a
mov byte [eax + ecx], dl
inc eax
cmp eax, 4
jl 0x406fc6
ret

Function at 0x407710
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x454
mov eax, dword [esp + 0x458]
mov ecx, dword [esp + 0x45c]
and eax, 0xffff
push edi
push eax
push ecx
lea edx, [esp + 0x60]
push 0x400
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x24]
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x74]
push 0
push edx
push 0
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x4077a2
lea eax, [esp + 0x54]
push eax
push str.failed_to_spawn__s
call dword [sym.imp.MSVCRT.dll__errno]
mov ecx, dword [eax]
push ecx
push 0
call fcn.00404de0
add esp, 0x10
xor eax, eax
add esp, 0x454
ret
mov eax, 1
add esp, 0x454
ret
Function at 0x407ac0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4060
call fcn.00413610
push ebx
push esi
push edi
mov edi, dword [esp + 0x4074]
mov esi, 0x41b3e8
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x407b03
test cl, cl
je 0x407aff
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x407b03
add eax, 2
add esi, 2
test cl, cl
jne 0x407adb
xor eax, eax
jmp 0x407b08
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x407bbe
mov esi, dword [sym.imp.MSVCRT.dll__iob]
push 0x8000
push eax
call dword [sym.imp.MSVCRT.dll__setmode]
add esp, 8
lea ecx, [esp + 0xc]
push ecx
call fcn.00403640
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 0x3fff
lea edx, [esp + 0x78]
push 1
push edx
call edi
add esp, 0x14
test eax, eax
jbe 0x407b74
push eax
lea eax, [esp + 0x70]
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00403680
push esi
push 0x3fff
lea edx, [esp + 0x80]
push 1
push edx
call edi
add esp, 0x1c
test eax, eax
ja 0x407b4b
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
lea eax, [esp + 0x10]
push eax
call fcn.00404af0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x4084]
push ecx
push edx
push str._08lx_08lx_08lx_08lx_08lx
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x24
pop edi
pop esi
pop ebx
add esp, 0x4060
ret
push 0x41b3e4
push edi
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x407b25
push edi
push str.cant_open__s
call dword [sym.imp.MSVCRT.dll__errno]
mov eax, dword [eax]
push eax
push esi
call fcn.00404de0
add esp, 0x10
pop edi
pop esi
pop ebx
add esp, 0x4060
ret
Function at 0x408270
Capabilities:
Create thread
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
push esi
push 0x24
mov dword [esp + 8], 0x10
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4082ab
push str.failed_to_allocate_handler_argument_structure
call dword [sym.imp.MSVCRT.dll__errno]
mov eax, dword [eax]
push eax
push esi
call fcn.00404de0
add esp, 0xc
xor eax, eax
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
test eax, eax
mov dword [esi], ecx
je 0x4082d3
mov ecx, dword [eax]
lea edx, [esi + 8]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x20]
test eax, eax
mov dword [esi + 0x18], eax
jl 0x408339
xor ecx, ecx
lea edx, [esp + 4]
mov dword [esp + 8], ecx
push edx
mov dword [esp + 0x10], ecx
mov dword [esp + 8], 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0xc]
push ecx
push eax
call sub.WS2_32.dll_getsockname
test eax, eax
je 0x40832b
push str.cant_get_local_port_number
call dword [sym.imp.MSVCRT.dll__errno]
mov edx, dword [eax]
push edx
push 0
call fcn.00404de0
add esp, 0xc
xor eax, eax
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 0xa]
push eax
call sub.WS2_32.dll_ntohs
mov word [esi + 4], ax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
test eax, eax
mov dword [esi + 0x20], ecx
mov dword [esi + 0x1c], eax
je 0x408368
push str.running_handler_function_in_line
push 0
push 4
call fcn.00404de0
push esi
call dword [esp + 0x2c]
add esp, 0x10
xor eax, eax
pop esi
add esp, 0x14
ret
push str.spawning_handler_function_thread
push 0
push 4
call fcn.00404de0
mov edx, dword [esp + 0x28]
push esi
push 0x8000
push edx
call dword [sym.imp.MSVCRT.dll__beginthread]
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4083ae
push str.failed_to_create_handler_thread
call dword [sym.imp.MSVCRT.dll__errno]
mov eax, dword [eax]
push eax
push esi
call fcn.00404de0
add esp, 0xc
mov eax, esi
pop esi
add esp, 0x14
ret
push str.handler_thread_created
push 0
push 4
call fcn.00404de0
add esp, 0xc
mov eax, esi
pop esi
add esp, 0x14
ret
Function at 0x409cc0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x41e3e4]
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x28]
push esi
push edi
push 0
push eax
push ebx
call fcn.00405f60
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
jne 0x409d04
xor ecx, ecx
mov cx, word [ebx]
push ecx
push str.server_cant_listen_on_port__hu
push 0
push 0
call fcn.00404de0
add esp, 0x10
push 1
call dword [sym.imp.MSVCRT.dll_exit]
pop edi
pop esi
pop ebx
mov eax, dword [0x41a534]
test eax, eax
je 0x409d23
push str.detaching_from_terminal
push 0
push 3
call fcn.00404de0
add esp, 0xc
call fcn.00407dd0
xor edx, edx
mov dx, word [ebx]
push edx
push str.waiting_for_connection_on_port__hu
push 0
push 1
call fcn.00404de0
xor eax, eax
add esp, 0x10
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x10], eax
lea edx, [esp + 0xc]
push ecx
mov dword [esp + 0x18], eax
push edx
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], 0x10
call sub.WS2_32.dll_accept
mov esi, eax
test esi, esi
jge 0x409d84
push str.error_on_accept
call dword [sym.imp.MSVCRT.dll__errno]
mov eax, dword [eax]
push eax
push 0
call fcn.00404de0
add esp, 0xc
jmp 0x409d23
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push edx
call fcn.00405b50
push eax
push str.accepted_connection_from__s
push 0
push 1
call fcn.00404de0
push esi
call fcn.004060f0
push esi
call fcn.00406140
mov ecx, dword [0x41e3a8]
lea eax, [esp + 0x2c]
push 0
push eax
push ecx
push esi
push edi
push 0x409f10
call fcn.00408270
add esp, 0x38
jmp 0x409d23
Function at 0x409dd0
Capabilities:
Get socket status
Terminate process

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x118]
push esi
push edi
mov edi, dword [esp + 0x11c]
and ebx, 0xffff
push ebx
push edi
push str.initiating_connection_back_to_client_at__s:_hu
push 0
push 2
call fcn.00404de0
mov eax, dword [esp + 0x134]
push 0
push 0
push 1
push 0
push eax
push edi
call fcn.00405b90
mov esi, eax
add esp, 0x2c
cmp esi, 0xffffffff
je 0x409eb2
mov eax, dword [0x41a534]
test eax, eax
je 0x409e45
cmp eax, 0xffffffff
je 0x409e45
push str.detaching_from_terminal
push 0
push 3
call fcn.00404de0
add esp, 0xc
call fcn.00407dd0
mov ecx, dword [esp + 0x124]
lea edx, [esp + 0xc]
and ecx, 0xffff
push edx
mov dword [esp + 0x10], ecx
push 0
lea eax, [esp + 0x1c]
push 0
lea ecx, [esi + 1]
push eax
push ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], 1
call sub.WS2_32.dll_select
test eax, eax
je 0x409ed4
jge 0x409e97
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 4
jne 0x409edd
jmp 0x409ded
push 0
push 0
push 0
push esi
push 0xffffffffffffffff
push 0x409f10
call fcn.00408270
add esp, 0x18
jmp 0x409ded
push ebx
push edi
push str.failed_to_connect_back_to_client_at__s:_hu
call dword [sym.imp.MSVCRT.dll__errno]
mov edx, dword [eax]
push edx
push 0
call fcn.00404de0
add esp, 0x14
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push str.timed_out_waiting_for_accepted_connection_from_client
push 0
jmp 0x409eeb
push str.error_in_select_waiting_for_client_to_accept_connection
call dword [sym.imp.MSVCRT.dll__errno]
mov eax, dword [eax]
push eax
push 0
call fcn.00404de0
add esp, 0xc
push esi
call sub.WS2_32.dll_closesocket
call fcn.00404ce0
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
Function at 0x40b4d0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x410
mov eax, dword [esp + 0x418]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0xc], 3
mov eax, dword [eax]
test eax, eax
mov dword [esp], eax
je 0x40b512
jmp 0x40b505
mov eax, dword [esp]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x40b512
mov dword [esp], eax
jne 0x40b501
push ebp
push esi
mov esi, dword [esp + 0x41c]
push edi
cmp byte [esi], 0
je 0x40b645
mov ebp, dword [sym.imp.MSVCRT.dll__isctype]
mov al, byte [esi]
test al, al
je 0x40b56b
mov ecx, dword [sym.imp.MSVCRT.dll___mb_cur_max]
cmp dword [ecx], 1
jle 0x40b549
movsx edx, al
push 8
push edx
call ebp
add esp, 8
jmp 0x40b55a
mov ecx, dword [sym.imp.MSVCRT.dll__pctype]
movsx eax, al
mov edx, dword [ecx]
mov al, byte [edx + eax*2]
and eax, 8
test eax, eax
jne 0x40b563
cmp byte [esi], 0x2c
jne 0x40b56b
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x40b531
mov al, byte [esi]
test al, al
je 0x40b645
lea edi, [esp + 0x1c]
mov ecx, dword [sym.imp.MSVCRT.dll___mb_cur_max]
cmp dword [ecx], 1
jle 0x40b591
movsx edx, al
push 8
push edx
call ebp
add esp, 8
jmp 0x40b5a2
mov ecx, dword [sym.imp.MSVCRT.dll__pctype]
movsx eax, al
mov edx, dword [ecx]
mov al, byte [edx + eax*2]
and eax, 8
test eax, eax
jne 0x40b5b7
mov al, byte [esi]
cmp al, 0x2c
je 0x40b5b7
mov byte [edi], al
mov al, byte [esi + 1]
inc edi
inc esi
test al, al
jne 0x40b579
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
mov byte [edi], 0
call fcn.0040b0c0
add esp, 0x10
test ax, ax
jne 0x40b5fe
mov eax, dword [esp + 0x42c]
test eax, eax
jne 0x40b5fe
lea ecx, [esp + 0x1c]
push ecx
push str.invalid_port_range__s
push 0
push 0
call fcn.00404de0
add esp, 0x10
jmp 0x40b63c
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x428]
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
call fcn.0040b370
add esp, 0x10
test eax, eax
je 0x40b64f
mov ecx, dword [esp + 0x424]
cmp dword [ecx], 0
jne 0x40b631
mov dword [ecx], eax
jmp 0x40b638
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x1c], eax
mov dword [esp + 0xc], eax
cmp byte [esi], 0
jne 0x40b52b
pop edi
pop esi
pop ebp
add esp, 0x410
ret
push str.failed_allocating_memory_for_port_list
call dword [sym.imp.MSVCRT.dll__errno]
mov edx, dword [eax]
push edx
push 0
call fcn.00404de0
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
nop
Function at 0x40b6e0
Capabilities:
Terminate process

Disassembly:
sub esp, 0xc00
lea eax, [esp + 0x400]
lea ecx, [esp]
lea edx, [esp + 0x800]
push ebx
push esi
mov esi, dword [esp + 0xc0c]
push edi
mov edi, dword [sym.imp.MSVCRT.dll_sscanf]
push eax
push ecx
push edx
push str.__:_:__:_:__:_
push esi
call edi
add esp, 0x14
cmp eax, 3
jne 0x40b7d4
push 0
push 0
lea eax, [esp + 0x814]
push 0x41e3b4
push eax
call fcn.0040b4d0
mov eax, dword [0x41e3bc]
add esp, 0x10
test eax, eax
jne 0x40b753
lea ecx, [esp + 0xc]
push 0x41e3bc
push ecx
call fcn.0040b950
add esp, 8
mov esi, 0x41adb0
lea eax, [esp + 0xc]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40b784
test cl, cl
je 0x40b780
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40b784
add eax, 2
add esi, 2
test cl, cl
jne 0x40b75c
xor eax, eax
jmp 0x40b789
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
push 0
jne 0x40b7b0
push 0
lea eax, [esp + 0x414]
push 0x41e3b8
push eax
call fcn.0040b4d0
add esp, 0x10
pop edi
pop esi
pop ebx
add esp, 0xc00
ret
lea ecx, [esp + 0x10]
lea edx, [esp + 0x410]
push ecx
push 0x41e3b8
push edx
call fcn.0040b4d0
add esp, 0x10
pop edi
pop esi
pop ebx
add esp, 0xc00
ret
lea eax, [esp + 0x40c]
lea ecx, [esp + 0xc]
push eax
push ecx
push str.__:_:__:_
push esi
call edi
add esp, 0x10
cmp eax, 2
mov eax, dword [0x41e3bc]
jne 0x40b8a3
test eax, eax
jne 0x40b810
lea edx, [esp + 0xc]
push 0x41e3bc
push edx
call fcn.0040b950
add esp, 8
mov esi, 0x41adb0
lea eax, [esp + 0xc]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40b841
test cl, cl
je 0x40b83d
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40b841
add eax, 2
add esi, 2
test cl, cl
jne 0x40b819
xor eax, eax
jmp 0x40b846
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
push 0
jne 0x40b85d
push 0
lea eax, [esp + 0x414]
push 0x41e3b8
push eax
jmp 0x40b86f
lea ecx, [esp + 0x10]
lea edx, [esp + 0x410]
push ecx
push 0x41e3b8
push edx
call fcn.0040b4d0
mov eax, dword [0x41e3b8]
add esp, 0x10
push eax
call fcn.004081a0
add esp, 4
cmp eax, 1
je 0x40b8d1
push str.target_port_list_contains_more_than_one_port
push 0
push 0
call fcn.00404de0
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
test eax, eax
jne 0x40b8bf
push 0x41e3bc
push esi
call fcn.0040b950
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0xc00
ret
push esi
push str.invalid_tunnel_specification__s
push 0
push 0
call fcn.00404de0
add esp, 0x10
pop edi
pop esi
pop ebx
add esp, 0xc00
ret
Function at 0x40b950
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edx, eax
mov eax, dword [esp + 0x14]
add esp, 4
test edx, edx
mov dword [eax], edx
jne 0x40b998
push esi
push str.failed_allocating_space_for_string_value__s
call dword [sym.imp.MSVCRT.dll__errno]
mov ecx, dword [eax]
push ecx
push 0
call fcn.00404de0
add esp, 0x10
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret
Function at 0x40caa0
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fprintf]
push str.2.4.1A
add eax, 0x40
push str.Zebedee____A_Secure_Tunnel_Program:_Release__s_n
push eax
call esi
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push str.Copyright__c__1999__2000__2001__2002_by_Neil_Winton._All_Rights_Reserved._n
add ecx, 0x40
push ecx
call esi
mov edx, dword [sym.imp.MSVCRT.dll__iob]
push str.This_program_is_free_software_and_may_be_distributed_under_the_terms_of_the_nGNU_General_Public_License__Version_2._n
add edx, 0x40
push edx
call esi
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push str.Zebedee_comes_with_ABSOLUTELY_NO_WARRANTY._n_n
add eax, 0x40
push eax
call esi
mov eax, dword [str.zebedee]
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push eax
push eax
push eax
push eax
push eax
add ecx, 0x40
push str.Client:__s__options____clientports:_serverhost_:targetports___nServer:__s__options___s__targethost__nKey_generation:___s__p___P___f_file__nHashing:__s__H_string_...___h__file_...__nService:__s__options___S__install_config_file___remove__run__n
push ecx
call esi
mov edx, dword [sym.imp.MSVCRT.dll__iob]
add esp, 0x40
add edx, 0x40
push str.Options_are:_n_____b_address__Bind_only_this_address_when_listening_for_connections_n_____c_host_____Server_initiates_connection_to_client_host_n_____D__________Debug_mode_n_____d__________Do_not_detach_from_terminal_n_____e_command__Run_command_connected_to_local_port__client_only__n_____F_char_____Specify_additional_field_separator_character_n_____f_file_____Read_configuration_file_n_____H__________Generate_hash_of_string_values_n_____h__________Generate_hash_of_file_contents_n_____k_keybits__Specify_key_length_in_bits_n_____l__________Client_listens_for_server_connection_n_____m__________Client_accepts_multiple_connections__default__n_____n_name_____Specify_program_name_n_____o_file_____Log_output_to_specified_file_n_____p__________Generate_private_key_n_____P__________Generate_public_key__fingerprint__n_____r_ports____Specify_allowed_port_redirection_list__server_only__n_____s__________Run_as_a_server_n_____S_option___Install_remove_run_service_n_____t__________Timestamp_log_entries_n_____T_port_____Specify_the_server__tunnel__port_n_____u__________Run_in_UDP_mode_n_____U__________Run_in_TCP_and_UDP_mode_n_____v_level____Set_message_verbosity_level__default_1__n_____x_config___Extended_configuration_statement_n_____z_type_____Set_the_compression_type_and_level__default_zlib:6__n
push edx
call esi
add esp, 8
push 1
call dword [sym.imp.MSVCRT.dll_exit]
pop esi
nop
nop
nop
nop
nop
nop
nop
Function at 0x41363f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418768
push 0x413780
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x41e54c], 0xffffffff
or dword [0x41e550], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x41e454]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x41e450]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41e554], eax
call fcn.00413771
cmp dword [0x41e1a0], 0
jne 0x4136c2
push 0x41376e
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0041375c
push 0x41a00c
push 0x41a008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x41e44c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x41e448]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x41a004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.0040cb30
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret

Function at 0x40127b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 0x84, 0
jmp 0x40131c
mov edx, edi
call fcn.004011e2
mov edx, 0x1c000
mov eax, 0x404054
mov ebx, esi
call fcn.0040267d
lea edx, [ebp - 2]
mov eax, esi
mov dword [ebp - 2], 0
jmp 0x40135a
or bl, 1
idiv ebx
mov edx, dword [0x404050]
mov ebx, esi
add edx, eax
mov eax, 0x404054
call fcn.004011e2
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, esi
or al, 0x40
mov edi, 0x40338d
push eax
sub edi, fcn.00402b27
push edi
push fcn.00402b27
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x4012be
mov eax, fcn.00402b27
mov ebx, esi
jmp 0x4012a6
sub ebp, 0x82
mov esi, eax
mov ebx, dword [0x404050]
cdq
jmp 0x4012cf
call fcn.00401fff
lea eax, [esi + 0x1c000]
lea ebx, [ebp - 2]
test esi, esi
je 0x40136e
add eax, eax
dec esi
and esi, 0x404054
mov edx, eax
mov eax, esi
call fcn.00402b27
lea esp, [ebp + 0x82]
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x4749a9
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4746cc
mov esi, eax
dec esi
mov eax, eax
call fcn.004749f0
or esi, esi
add eax, 1
or eax, eax
xor dword [edx], ebx
add esi, 0xc5b6cf4b
add edx, 2
add eax, esi
add esi, 0xe3344d01
cmp edx, edi
jl fcn.004749a9
sub eax, eax
sub eax, eax
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x402e4c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404598
test esi, esi
jne 0x402e83
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404688
jmp 0x402ea4
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402ce8
mov dword [esp], eax
test esi, esi
je 0x402ea4
cmp dword [ebx], 0
je 0x402ea4
dec esi
jmp 0x402e8b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4031a4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4f5008], 0x8088405
inc edx
mov dword [ebx + 0x4f5008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4035fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4f5024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403694
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403674
xor eax, eax
push ebp
push 0x40366d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4036b0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403674
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4f5024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4f5024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4043f4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4f804c], 0
je 0x404455
cmp word [0x4f8220], 0xd7b2
jne 0x40441d
cmp dword [0x4f8228], 0
jbe 0x40441d
mov eax, 0x4f821c
call dword [0x4f8238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4f5070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40447c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4f5034], 0
jne 0x404471
push 0
push 0x4f5068
push 0x4f5070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret