joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4029d0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, 0x10
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
test byte [ebx + 0x41], 8
mov dword [ebx + 0x88], edi
je 0x402b40
mov dword [ebx + 0x2c], 0xffffffff
lea eax, [ebx + 0x88]
lea edi, [ebx + 0x78]
mov dword [ebp - 0x10], eax
jmp 0x402a2f
mov dword [ebx + 0x2c], 0xffffffff
mov dword [esp], 0x413004
call fcn.0040d248
mov edx, dword [ebx + 0x2c]
cmp edx, 0xffffffff
jne 0x402b10
mov dword [esp + 0x10], edi
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x34]
mov dword [esp + 8], eax
mov eax, dword [esi + 4]
mov dword [esp + 4], eax
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x2c]
mov dword [esp], eax
call sub.cygwin1.dll_recvfrom
inc eax
je 0x402b83
mov dword [esp], 0x413004
call sub.cygwin1.dll_pthread_mutex_lock
mov dword [esp], edi
mov eax, dword [0x413008]
mov dword [esp + 4], eax
call fcn.004025a0
mov edx, dword [esi + 4]
mov edx, dword [edx]
xchg dh, dl
ror edx, 0x10
xchg dh, dl
test eax, eax
not edx
sete al
shr edx, 0x1f
test al, dl
je 0x402a10
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebx + 0x88]
mov dword [ebx + 0x2c], edx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], edx
call sub.cygwin1.dll_connect
inc eax
jne 0x402a17
mov dword [esp], str.connect_UDP
mov eax, 0x1ba
mov dword [esp + 8], eax
mov eax, str._home_Owner_build_iperf_cygport_iperf_2.0.4_1_src_iperf_2.0.4_src_Listener.cpp
mov dword [esp + 4], eax
call fcn.004095f0
mov eax, dword [esi + 8]
mov dword [esp], eax
call fcn.00409120
mov dword [esp], 0x413004
call fcn.0040d248
mov edx, dword [ebx + 0x2c]
cmp edx, 0xffffffff
je 0x402a2f
nop
lea esi, [esi]
mov eax, 0x10
mov dword [ebx + 0x9c], eax
lea eax, [ebx + 0x9c]
mov dword [esp + 8], eax
lea eax, [ebx + 0x8c]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.cygwin1.dll_getsockname
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebx + 0x2c], 0xffffffff
lea eax, [ebx + 0x88]
lea edi, [ebx + 0x78]
mov dword [ebp - 0x10], eax
jmp 0x402b5d
mov edx, dword [ebx + 0x2c]
cmp edx, 0xffffffff
jne 0x402b10
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x2c]
mov dword [esp], eax
call sub.cygwin1.dll_accept
mov dword [ebx + 0x2c], eax
inc eax
jne 0x402b55
call sub.cygwin1.dll___errno
jmp 0x402b55
mov dword [esp], str.recvfrom
mov edx, 0x1af
mov eax, str._home_Owner_build_iperf_cygport_iperf_2.0.4_1_src_iperf_2.0.4_src_Listener.cpp
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004095f0
mov eax, dword [esi + 8]
mov dword [esp], eax
call fcn.00409120
jmp 0x402a66
Function at 0x4036b0
Capabilities:
Set current directory
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
call sub.cygwin1.dll_fork
cmp eax, 0xffffffff
je 0x403790
test eax, eax
jne 0x4037a9
call sub.cygwin1.dll_setsid
inc eax
je 0x403772
mov dword [esp], 1
mov eax, 1
mov dword [esp + 4], eax
call sub.cygwin1.dll_signal
call sub.cygwin1.dll_fork
cmp eax, 0xffffffff
je 0x4037b5
test eax, eax
jne 0x4037a9
mov dword [esp], 0x40f228
call sub.cygwin1.dll_chdir
call sub.cygwin1.dll___getreent
mov ecx, str.Running_Iperf_Server_as_a_daemon_n
mov dword [esp + 4], ecx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
call sub.cygwin1.dll_getpid
mov ebx, eax
call sub.cygwin1.dll___getreent
mov dword [esp + 8], ebx
mov edx, str.The_Iperf_daemon_process_ID_:__d_n
mov dword [esp + 4], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fflush
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 4]
mov dword [ebp + 8], eax
add esp, 0x14
pop ebx
pop ebp
jmp 0x40d238
call sub.cygwin1.dll___getreent
mov edx, str.Cannot_change_the_session_group_leader_n
mov dword [esp + 4], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x4036d9
call sub.cygwin1.dll___getreent
mov ecx, str.error_in_first_child_create_n
mov dword [esp + 4], ecx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 0
call sub.cygwin1.dll_exit
call sub.cygwin1.dll___getreent
mov ebx, str.error_n
mov dword [esp + 4], ebx
jmp 0x40379e
jmp dword [sym.imp.cygwin1.dll_fclose]
Function at 0x4037d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x44], 2
sete al
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call fcn.00408ed0
mov eax, dword [ebx + 0x40]
test eax, 0x400000
jne 0x403850
mov edx, dword [ebx + 0x28]
test edx, edx
jle 0x403841
mov dword [ebp - 8], edx
lea eax, [ebp - 8]
mov edx, 4
mov dword [esp + 0xc], eax
mov eax, 3
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0x10], edx
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.cygwin1.dll_setsockopt
inc eax
je 0x4038e2
mov eax, dword [ebx + 0x40]
test ah, 8
je 0x403870
add esp, 0x24
pop ebx
pop ebp
ret
call sub.cygwin1.dll___getreent
mov ecx, 0x4109c0
mov dword [esp + 4], ecx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov eax, dword [ebx + 0x40]
jmp 0x403803
mov eax, dword [ebx + 0x38]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call fcn.004088e0
test byte [ebx + 0x40], 0x20
je 0x403846
mov dword [ebp - 0xc], 1
mov eax, 4
mov ecx, 6
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.cygwin1.dll_setsockopt
inc eax
jne 0x403846
mov dword [esp], str.setsockopt_TCP_NODELAY
mov edx, 0x99
mov eax, str._home_Owner_build_iperf_cygport_iperf_2.0.4_1_src_iperf_2.0.4_src_PerfSocket.cpp
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call fcn.004095f0
jmp 0x403846
mov dword [esp], str.setsockopt_IP_TOS
mov eax, 0x89
mov dword [esp + 8], eax
mov eax, str._home_Owner_build_iperf_cygport_iperf_2.0.4_1_src_iperf_2.0.4_src_PerfSocket.cpp
mov dword [esp + 4], eax
call fcn.004095f0
jmp 0x40383e
Function at 0x405350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp eax, 0x10
ja case.0x405362.0
jmp dword [eax*4 + 0x410bc8]
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp], str.Printing_type_not_implemented__No_Output_n
mov dword [esp + 0xc], eax
mov eax, 0x29
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sub.cygwin1.dll_fwrite
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.cygwin1.dll_fflush
mov eax, dword [ebp + 0x10]
add esp, 0x14
pop ebx
pop ebp
ret
mov edx, dword [ebx + 0x3c]
lea eax, [ebx + 0x60]
mov dword [esp], eax
call dword [edx*4 + section..data]
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.cygwin1.dll_fflush
mov eax, dword [ebp + 0x10]
add esp, 0x14
pop ebx
pop ebp
ret
mov edx, dword [ebx + 0x3c]
lea eax, [ebx + 0x60]
mov dword [esp], eax
call dword [edx*4 + 0x40f010]
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x40539a
mov eax, dword [ebx + 0x34]
test al, 0x40
je 0x40539a
test ah, 8
jne 0x40539a
mov dword [esp], ebx
call fcn.00405250
jmp 0x40539a
mov eax, dword [ebx + 0x3c]
lea edx, [ebx + 0x60]
mov dword [esp + 4], edx
lea edx, [ebx + 0xa0]
mov dword [esp], edx
call dword [eax*4 + 0x40f008]
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.cygwin1.dll_fflush
mov eax, dword [ebp + 0x10]
add esp, 0x14
pop ebx
pop ebp
ret
mov eax, dword [ebx + 0x3c]
mov dword [esp], ebx
call dword [eax*4 + 0x40f018]
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.cygwin1.dll_fflush
mov eax, dword [ebp + 0x10]
add esp, 0x14
pop ebx
pop ebp
ret
mov eax, dword [ebx + 0x64]
mov edx, dword [ebx + 0x3c]
mov dword [esp + 4], eax
lea eax, [ebx + 0xa0]
mov dword [esp], eax
call dword [edx*4 + 0x40f020]
mov dword [ebx + 0x60], eax
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.cygwin1.dll_fflush
mov eax, dword [ebp + 0x10]
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x4070d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov eax, dword [str.IPERF_SINGLECLIENT]
mov esi, dword [ebp + 8]
test eax, eax
je 0x407126
xor ebx, ebx
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebx + 0x4112a0]
mov dword [esp], eax
call sub.cygwin1.dll_getenv
test eax, eax
je 0x407119
mov dword [esp + 4], eax
movsx eax, byte [ebx + 0x4112ac]
mov dword [esp + 8], esi
mov dword [esp], eax
call fcn.00406850
add ebx, 0x10
mov eax, dword [ebx + 0x4112a0]
test eax, eax
jne 0x4070f0
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x407520
Capabilities:
Convert ip address from string
Resolve dns
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], edi
lea edi, [ebx + 4]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], 2
call sub.cygwin1.dll_inet_pton
mov word [ebx], 2
test eax, eax
je 0x407562
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], esi
call sub.cygwin1.dll_gethostbyname
test eax, eax
mov edx, eax
je 0x407593
movsx eax, word [eax + 0xa]
mov edx, dword [edx + 0xc]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edx, dword [edx]
mov dword [ebp + 8], edi
mov edi, dword [ebp - 4]
mov dword [ebp + 0x10], eax
mov dword [ebp + 0xc], edx
mov esp, ebp
pop ebp
jmp fcn.0040d340
mov eax, dword [sym.imp.cygwin1.dll_h_errno]
mov ebx, str._s:_Host_name_lookup_failure_n
mov eax, dword [eax]
cmp eax, 2
je 0x4075b3
jg 0x4075d7
mov ebx, str._s:_Unknown_host_n
dec eax
je 0x4075b3
mov ebx, str._s:_Unknown_resolver_error_n
call sub.cygwin1.dll___getreent
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 1
call sub.cygwin1.dll_exit
cmp eax, 3
mov ebx, str._s:_Unknown_server_error_n
je 0x4075b3
mov ebx, str._s:_No_address_associated_with_name_n
cmp eax, 4
jmp 0x4075ac
Function at 0x4088e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 8], esi
jle 0x408990
mov dword [ebp - 0x10], ebx
mov eax, 4
mov ecx, 6
mov dword [ebp - 0x14], 4
lea esi, [ebp - 0x10]
mov dword [esp + 0x10], eax
mov eax, 2
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edi
call sub.cygwin1.dll_setsockopt
inc eax
je 0x4089a0
mov dword [esp + 0xc], esi
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], eax
mov eax, 2
mov dword [esp + 8], eax
mov eax, 6
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.cygwin1.dll_getsockopt
inc eax
je 0x4089cd
cmp dword [ebp - 0x10], ebx
je 0x408990
call sub.cygwin1.dll___getreent
mov edx, dword [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
mov edx, str.WARNING:_attempt_to_set_TCP_maximum_segment_size_to__d__but_got__d_n
mov dword [esp + 4], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call sub.cygwin1.dll___getreent
mov edx, dword [ebp - 0x10]
mov dword [esp + 8], edx
mov edx, str.WARNING:_attempt_to_set_TCP_maxmimum_segment_size_to__d_failed._nSetting_the_MSS_may_not_be_implemented_on_this_OS._n
mov dword [esp + 4], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], str.getsockopt_TCP_MAXSEG
mov esi, 0x5c
mov ecx, str._home_Owner_build_iperf_cygport_iperf_2.0.4_1_src_iperf_2.0.4_src_sockets.c
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
call fcn.004095f0
jmp 0x40895c

Function at 0x408ed0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
test eax, eax
jle 0x408f18
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x408f20
mov dword [ebp - 4], eax
mov eax, 4
mov ecx, 0x1001
mov dword [esp + 0x10], eax
lea eax, [ebp - 4]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp], edx
mov eax, 0xffff
mov dword [esp + 4], eax
call sub.cygwin1.dll_setsockopt
test eax, eax
js 0x408f1a
xor eax, eax
leave
ret
mov dword [ebp - 4], eax
mov eax, 4
mov dword [esp + 0x10], eax
lea eax, [ebp - 4]
mov dword [esp + 0xc], eax
mov eax, 0x1002
mov dword [esp + 8], eax
jmp 0x408f03
Function at 0x40cf80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov edi, dword [0x417248]
test edi, edi
je 0x40cfb0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x68], 0x41414141
mov eax, dword [str._LIBGCCW32_EH_2_SJLJ_GTHR_CYGWIN]
lea esi, [ebp - 0x68]
mov dword [ebp - 0x64], 0x41414141
mov dword [ebp - 0x60], 0x41414141
mov dword [ebp - 0x48], eax
mov eax, dword [0x411e64]
mov dword [ebp - 0x5c], 0x41414141
mov dword [ebp - 0x58], 0x41414141
mov dword [ebp - 0x44], eax
mov eax, dword [0x411e68]
mov dword [ebp - 0x54], 0x41414141
mov dword [ebp - 0x50], 0x41414141
mov dword [ebp - 0x40], eax
mov eax, dword [0x411e6c]
mov dword [ebp - 0x4c], 0x41414141
mov dword [ebp - 0x3c], eax
mov eax, dword [0x411e70]
mov dword [ebp - 0x38], eax
mov eax, dword [0x411e74]
mov dword [ebp - 0x34], eax
mov eax, dword [0x411e78]
mov dword [ebp - 0x30], eax
mov eax, dword [0x411e7c]
mov dword [ebp - 0x2c], eax
movzx eax, byte [0x411e80]
mov byte [ebp - 0x28], al
mov dword [esp], esi
call sub.KERNEL32.dll_FindAtomA
movzx eax, ax
sub esp, 4
test eax, eax
mov dword [ebp - 0x6c], eax
jne 0x40d100
mov dword [esp], 0x30
call sub.cygwin1.dll_malloc
test eax, eax
mov ebx, eax
je 0x40d12a
cld
mov edi, eax
mov eax, dword [ebp - 0x6c]
mov ecx, 0xc
rep stosd dword es:[edi], eax
mov dword [ebx], 0x30
mov eax, dword [0x40f064]
mov dword [ebx + 0x24], 0xffffffff
mov dword [ebx + 4], sub.cygwin1.dll_abort
mov dword [ebx + 0x14], eax
mov eax, dword [0x4170d8]
mov dword [ebx + 8], 0x40ce20
mov edx, dword [0x40f06c]
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], eax
mov eax, dword [0x40f068]
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x28], eax
mov eax, ebx
call fcn.0040ced0
test ax, ax
je 0x40d0dd
mov dword [esp], 0
mov esi, 0x40d130
xor ecx, ecx
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
call sub.cygwin1.dll_pthread_atfork
jmp 0x40d107
mov dword [esp], ebx
call fcn.0040d2e8
mov dword [esp], esi
call sub.KERNEL32.dll_FindAtomA
sub esp, 4
movzx eax, ax
lea esi, [esi]
lea edi, [edi]
call fcn.0040ce30
mov ebx, eax
mov dword [0x417248], ebx
lea eax, [ebx + 4]
mov dword [0x417238], eax
lea eax, [ebx + 8]
mov dword [0x417258], eax
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call sub.cygwin1.dll_abort
nop
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x417248]
call fcn.0040ced0
test ax, ax
je 0x40d147
leave
ret
mov dword [esp], str._managed_gcc_build_final_v3_bootstrap_gcc_3.4.4_999_gcc_config_i386_w32_shared_ptr.c
mov eax, str.__w32_sharedptr_set____w32_sharedptr____0
mov dword [esp + 8], eax
mov eax, 0xf6
mov dword [esp + 4], eax
call sub.cygwin1.dll___assert
leave
ret
Function at 0x40dc00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 8], esi
mov esi, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x30], edx
jne 0x40dc27
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2c]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x40dcec
mov eax, dword [ebp - 0x18]
cmp eax, 0x40
je 0x40dcc0
cmp eax, 4
je 0x40dcc0
mov eax, dword [ebp - 0x20]
lea edi, [ebp - 0x10]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 0x30]
sub esp, 0x10
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.0040d340
mov eax, dword [ebp - 0x18]
cmp eax, 0x40
je 0x40dc1a
cmp eax, 4
je 0x40dc1a
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x40dc1a
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0040d340
mov eax, dword [ebp - 0x18]
cmp eax, 0x40
je 0x40dc1a
cmp eax, 4
lea edi, [ebp - 0x10]
jne 0x40dc9a
jmp 0x40dc1a
mov dword [esp + 8], esi
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0040d870
lea esi, [esi]
lea edi, [edi]
Function at 0xe32b30
Capabilities:
Check for software breakpoints
Packed with generic packer

Disassembly:
pushal
mov esi, 0x9b4015
lea edi, [esi - 0x5b3015]
lea eax, [edi + 0x9a98d0]
push dword [eax]
mov dword [eax], 0x9bf9a381
push eax
push edi
or ebp, 0xffffffff
jmp 0xe32b62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xe32b69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xe32b58
mov eax, 1
add ebx, ebx
jne 0xe32b7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xe32b70
jne 0xe32b8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xe32b70
xor ecx, ecx
sub eax, 3
jb 0xe32ba0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xe32c12
mov ebp, eax
add ebx, ebx
jne 0xe32bab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0xe32bb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0xe32bdc
inc ecx
add ebx, ebx
jne 0xe32bc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xe32bbd
jne 0xe32bd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xe32bbd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xe32bfc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xe32bed
jmp 0xe32b5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xe32bfc
add edi, ecx
jmp 0xe32b5e
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x26c82
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xe32c1e
cmp byte [edi], 0xcc
jne 0xe32c1e
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xe32c23
lea edi, [esi + 0xa20000]
mov eax, dword [edi]
or eax, eax
je 0xe32c92
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa8ca80]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa8cd4c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xe32c50
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa8cd54]
or eax, eax
je 0xe32c8c
mov dword [ebx], eax
add ebx, 4
jmp 0xe32c6d
call dword [esi + 0xa8cd50]
mov ebp, dword [esi + 0xa8cd58]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0xa32ced]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xe32cde
sub esp, 0xffffff80
jmp 0x401480
Function at 0x100410f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x1001298
push 0x80000002
mov dword [ebp - 8], 0x78
call dword [entry0]
test eax, eax
jne 0x1004171
push esi
lea eax, [ebp - 8]
push eax
mov esi, 0x101ef40
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1001288
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x3c
push esi
push 0x101efc0
call fcn.01004e25
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
call fcn.01004ac9
leave
ret

Function at 0x10041c2
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
je 0x100422e
cmp dword [ebp + 0xc], ebx
je 0x100422e
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x100422e
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
push edi
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call sub.MPR.dll_WNetAddConnection2A
cmp eax, ebx
je 0x1004242
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, ebx
je 0x100422b
cmp byte [edi], bl
jne 0x100422b
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push ebx
push eax
call sub.MPR.dll_WNetAddConnection2A
cmp eax, ebx
je 0x100422b
call esi
pop esi
jmp 0x1004242
push 0x100131c
push 0x8f
call fcn.01004e8d
pop ecx
pop ecx
or eax, 0xffffffff
pop edi
pop ebx
leave
ret 0xc