joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4062b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
call dword [sym.imp.LIBCURL.dll_Ordinal_3]
mov esi, eax
test esi, esi
jne 0x4062e8
push str.ERROR:_could_not_initialize_CURL_n
call fcn.00404d10
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x439688
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x406316
push ebx
push str.ERROR:_cannot_open__s_for_writing_n
call fcn.00404d10
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x4486c4], 0
mov edi, dword [sym.imp.LIBCURL.dll_Ordinal_5]
mov dword [0x4487e0], 0
je 0x406339
push 1
push 0x29
push esi
call edi
add esp, 0xc
push 0
push 0x40
push esi
call edi
add esp, 0xc
push 0
push 0x4e2b
push esi
call edi
add esp, 0xc
push dword [ebp - 4]
push 0x2711
push esi
call edi
add esp, 0xc
cmp dword [ebp + 8], 0
jle 0x406374
push 0x406260
push 0x4e58
push esi
call edi
add esp, 0xc
xor eax, eax
cmp dword [ebp + 8], eax
setle al
push eax
push 0x2b
push esi
call edi
add esp, 0xc
push 0x4396b4
push 0x2722
push esi
call edi
add esp, 0xc
push 1
push 0x34
push esi
call edi
add esp, 0xc
push dword [ebp - 0xc]
push 0x2712
push esi
call edi
add esp, 0xc
push esi
call dword [sym.imp.LIBCURL.dll_Ordinal_4]
add esp, 4
push esi
call dword [sym.imp.LIBCURL.dll_Ordinal_1]
mov edi, dword [ebp - 4]
add esp, 4
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
push 1
push 0
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseeki64]
add esp, 0xc
cdq
mov esi, eax
mov dword [ebp - 0xc], edx
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [ebp - 0xc]
mov eax, esi
add esp, 4
or eax, ecx
je 0x406406
and esi, ecx
cmp esi, 0xffffffff
jne 0x406417
push ebx
mov dword [ebp - 8], 0xffffffff
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406ec0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0042fe10
mov eax, dword [0x436008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x100c], 0
lea eax, [ebp - 0x100c]
push eax
push 0x1000
mov ecx, dword [esi]
lea edx, [ebp - 0x1008]
call fcn.0041ffb0
add esp, 8
test eax, eax
jne 0x406fa0
cmp dword [ebp - 0x100c], 2
jne 0x406fa0
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x100c]
push eax
mov edx, 1
call fcn.00406430
add esp, 4
test eax, eax
je 0x406f37
push str.ERROR:_Failed_to_connect_to_FDR_port_n
jmp 0x406fa5
push str.FDR_connected_in_reply_to_sync_message__starting_command_thread_n
call fcn.00404da0
add esp, 4
push 0
push 0
push dword [ebp - 0x100c]
push 0x4066e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x406f8d
push str.ERROR:_Failed_to_start_FDR_command_thread_n
or esi, 0xffffffff
call fcn.00404d10
mov ecx, dword [ebp - 0x100c]
add esp, 4
call fcn.00406590
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042eb3e
mov esp, ebp
pop ebp
ret
xor esi, esi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042eb3e
mov esp, ebp
pop ebp
ret
push str.ERROR:_Unexpected_data_from_FDR_n
call fcn.00404d10
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
or eax, 0xffffffff
pop esi
call fcn.0042eb3e
mov esp, ebp
pop ebp
ret
Function at 0x4101b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x207c
call fcn.0042fe10
mov eax, dword [0x436008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x410277
lea eax, [ebp - 0x2078]
push eax
call dword [sym.imp.LIBEAY32.dll_Ordinal_503]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
push edi
call ebx
add esp, 0xc
test eax, eax
jne 0x410234
nop word [eax + eax]
push edi
push 0x2000
lea eax, [ebp - 0x2018]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push eax
lea eax, [ebp - 0x2018]
push eax
lea eax, [ebp - 0x2078]
push eax
call dword [sym.imp.LIBEAY32.dll_Ordinal_504]
push edi
call ebx
add esp, 0x20
test eax, eax
je 0x410200
lea eax, [ebp - 0x2078]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.LIBEAY32.dll_Ordinal_502]
add esp, 8
lea ecx, [ebp - 0x18]
mov edx, 0x10
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x410277
add esi, 4
add ecx, 4
sub edx, 4
jae 0x410250
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042eb3e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042eb3e
mov esp, ebp
pop ebp
ret
Function at 0x41bea0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x436008]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
test ecx, ecx
jg 0x41befc
cmp dword [0x44880c], 2
jl 0x41bee4
push ecx
push str.ERROR:_invalid_fd_in_check_fd__d_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401090
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0042eb3e
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 1
test esi, esi
je 0x41bf35
mov eax, 0x10624dd3
lea ebx, [esp + 0x10]
mul esi
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 0x10], edx
sub esi, eax
imul eax, esi, 0x3e8
mov dword [esp + 0x14], eax
jmp 0x41bf37
xor ebx, ebx
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
inc ecx
mov dword [esp + 0xc], ecx
push ebx
push 0
push 0
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jns 0x41bfbb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
cmp eax, 4
jne 0x41bf93
cmp dword [0x44880c], 2
mov ecx, dword [esp + 0xc]
jl 0x41bf42
push 0x44518c
push str._s:_EINTR_n
push 2
call edi
add esp, 4
push eax
call fcn.00401090
mov ecx, dword [esp + 0x18]
add esp, 0xc
jmp 0x41bf42
cmp eax, 0xb
jne 0x41bfd2
cmp dword [0x44880c], 2
jl 0x41bfbb
push 0x4451a8
push str._s:_EAGAIN_n
push 2
call edi
add esp, 4
push eax
call fcn.00401090
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0042eb3e
mov esp, ebp
pop ebp
ret
cmp dword [0x44880c], 2
jl 0x41c007
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
push eax
push str.socket_check_fd
push str._s:_select_failed:__s_n
push 2
call edi
add esp, 4
push eax
call fcn.00401090
add esp, 0x10
mov ecx, dword [esp + 0x124]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042eb3e
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 0x10]
mov edi, edx
mov esi, ecx
call fcn.0041bea0
add esp, 4
test eax, eax
jle 0x41c088
push 0
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x41c07c
cmp dword [0x44880c], 3
jl 0x41c072
push esi
push str.socket_receive_timeout
push str._s:_fd_d_recv_returned_0_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401090
add esp, 0x10
mov eax, 0xfffffff5
pop edi
pop esi
pop ecx
pop ebp
ret
jns 0x41c088
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
neg eax
pop edi
pop esi
pop ecx
pop ebp
ret
Function at 0x4229c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x436008]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x44823c]
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], 0x10
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
push edi
mov edi, dword [ebp + 0x10]
test ecx, ecx
je 0x422a04
test edi, edi
je 0x422a04
lea eax, [edi + 0x10]
mov dword [ebp - 0x18], eax
push 0
push 0x10
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0x10
je 0x422a66
cmp dword [0x448818], 1
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
jl 0x422a41
push str.send_packet
push str._s:_ERROR:_could_not_send_packet_header_n
push 2
call esi
add esp, 4
push eax
call fcn.00401090
add esp, 0xc
push 2
call esi
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042eb3e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x422a95
test edi, edi
je 0x422a95
xor esi, esi
push 0
mov eax, edi
sub eax, esi
push eax
lea eax, [ecx + esi]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x422a92
mov ecx, dword [ebp - 0x1c]
add esi, eax
cmp esi, edi
jb 0x422a73
lea eax, [esi + 0x10]
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
je 0x422ae2
cmp dword [0x448818], 1
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
jl 0x422ac7
push ecx
push eax
push str.send_packet
push str._s:_ERROR:_could_not_send_whole_packet__sent__d_of__d__n
push 2
call esi
add esp, 4
push eax
call fcn.00401090
add esp, 0x14
push 2
call esi
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042eb3e
mov esp, ebp
pop ebp
ret

Function at 0x423830
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x448824], 0
je 0x423843
mov eax, 0xffffff99
pop ebp
ret
mov eax, dword [ebp + 8]
test eax, eax
jne 0x423851
mov eax, 0xffffffea
pop ebp
ret
push esi
push 0
push 0
push dword [ebp + 0xc]
mov dword [0x448824], eax
push 0x4237a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x44881c], eax
test eax, eax
jne 0x4238c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x4238c0
cmp dword [0x448818], 1
jl 0x4238a9
push str.usbmuxd_subscribe
push str._s:_ERROR:_Could_not_start_device_watcher_thread__n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401090
add esp, 0xc
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 8
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4243d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
test eax, eax
jns 0x4243e5
mov eax, 0xffffffea
pop edi
pop esi
pop ebp
ret
mov edi, dword [ebp + 0x10]
push 0
push edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test esi, esi
jns 0x42445a
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [0x448818], 1
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov esi, dword [eax]
jl 0x424441
push esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
push eax
push esi
push str.usbmuxd_send
push str._s:_Error__d_when_sending:__s_n
push 2
call edi
add esp, 4
push eax
call fcn.00401090
add esp, 0x14
push 2
call edi
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
neg esi
mov eax, esi
pop edi
pop esi
pop ebp
ret
cmp esi, edi
jae 0x42449c
cmp dword [0x448818], 1
jl 0x424487
push edi
push esi
push str.usbmuxd_send
push str._s:_Warning:_Did_not_send_enough__only__d_of__d__n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401090
add esp, 0x14
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
mov eax, dword [ebp + 0x14]
pop edi
mov dword [eax], esi
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.0041bea0
mov edx, eax
add esp, 4
test edx, edx
jle 0x424528
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_recv]
mov edx, eax
test edx, edx
jne 0x42451a
cmp dword [0x44880c], 3
jl 0x424507
push esi
push str.socket_receive_timeout
push str._s:_fd_d_recv_returned_0_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401090
add esp, 0x10
mov ecx, dword [ebp + 0x14]
mov edx, 0xfffffff5
mov eax, edx
mov dword [ecx], 0
pop esi
pop ebp
ret
jns 0x424526
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edx, dword [eax]
neg edx
test edx, edx
jns 0x424538
mov ecx, dword [ebp + 0x14]
mov eax, edx
mov dword [ecx], 0
pop esi
pop ebp
ret
mov eax, dword [ebp + 0x14]
pop esi
mov dword [eax], edx
xor eax, eax
pop ebp
ret
Function at 0x42bd30
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, edx
mov edx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edx
test edx, edx
je 0x42be4d
test edi, edi
je 0x42be4d
mov esi, dword [ebp + 8]
test esi, esi
je 0x42be4d
xor ecx, ecx
test esi, esi
je 0x42be41
lea edx, [esi - 1]
mov eax, 0xaaaaaaab
mul edx
push ebx
mov eax, edx
lea ebx, [ecx + 1]
shr eax, 1
inc eax
mov dword [ebp - 0xc], eax
nop dword [eax]
mov al, byte [edi + ebx - 1]
mov byte [ebp - 1], al
cmp ebx, esi
jae 0x42bd91
movzx edx, byte [ebx + edi]
jmp 0x42bd93
xor edx, edx
lea eax, [ebx + 1]
cmp eax, esi
jae 0x42bda4
movzx eax, byte [ebx + edi + 1]
mov dword [ebp - 8], eax
jmp 0x42bdab
mov dword [ebp - 8], 0
movzx edi, byte [ebp - 1]
mov esi, edi
movzx edx, dl
and edi, 3
shr esi, 2
mov eax, edx
shl edi, 4
shr eax, 4
and edx, 0xf
add edi, eax
mov eax, dword [ebp - 8]
movzx eax, al
mov dword [ebp - 8], eax
and dword [ebp - 8], 0x3f
shr eax, 6
lea eax, [eax + edx*4]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
movzx eax, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov esi, dword [ebp + 8]
mov byte [ecx + edx], al
movzx eax, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + edx + 1], al
cmp ebx, esi
jae 0x42be08
mov eax, dword [ebp - 0x14]
movsx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x42be0d
mov eax, 0x3d
mov byte [ecx + edx + 2], al
lea eax, [ebx + 1]
cmp eax, esi
jae 0x42be24
mov eax, dword [ebp - 8]
movsx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x42be29
mov eax, 0x3d
mov edi, dword [ebp - 0x18]
add ebx, 3
mov byte [ecx + edx + 3], al
add ecx, 4
sub dword [ebp - 0xc], 1
jne 0x42bd80
pop ebx
pop edi
mov byte [ecx + edx], 0
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40bce0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48cf2b
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.0047f583
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40bd62
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047c75e
mov eax, dword [eax]
push 0x4c4200
push eax
call fcn.0046f234
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047f80e
test bl, bl
je 0x40bd62
push 0x4c4200
lea ecx, [esp + 0xc]
call fcn.0047fbea
push 0x4c7d50
lea ecx, [esp + 0xc]
call fcn.0047fbea
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 0x40bd9e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047f80e
jmp 0x40be69
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 0x40be22
lea edx, [esp + 0x7c]
push 0x4c7d4c
push edx
call fcn.0046f234
add esp, 8
test eax, eax
je 0x40be22
lea eax, [esp + 0x7c]
push 0x4c7d48
push eax
call fcn.0046f234
add esp, 8
test eax, eax
je 0x40be22
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 0x40bdb2
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.0047f80e
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 0x40c660
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 0x40c6c2
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 0x40c6d0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48cfab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4cf7f0]
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 0x40c808
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40c736
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047f80e
xor eax, eax
jmp 0x40c87f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0047f997
push esi
lea ecx, [esp + 0xc]
call fcn.0047fc26
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 0x40c85d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.0040c660
test eax, eax
jne 0x40c85d
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 SysReAllocString
mov ecx, edi
call fcn.0040c660
test eax, eax
jne 0x40c85d
lea eax, [esp + 0x14]
push 0x4c7d64
push eax
call fcn.00470310
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c83c
lea ecx, [esp + 0x14]
push 0x4c7d60
push ecx
call fcn.00470290
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c83c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40c83f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0047f947
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40c74e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047f80e
xor eax, eax
jmp 0x40c87f
mov byte [esi], 0
push 0x4c7d5c
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.0047f80e
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 0x41d2e0
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 0x41d34e
cmp si, 0x69
ja 0x41d34e
add esi, 0xffd0
cmp si, 0x11
je 0x41d31e
push 0x11
call edi
test ax, ax
jge 0x41d31e
or esi, 0x2000
cmp si, 0x10
je 0x41d333
push 0x10
call edi
test ax, ax
jge 0x41d333
or esi, 0x4000
cmp si, 0x12
je 0x41d348
push 0x12
call edi
test ax, ax
jge 0x41d348
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41d35b
mov esi, 0xbd
jmp 0x41d30f
cmp si, 0x6e
jne 0x41d368
mov esi, 0xbe
jmp 0x41d30f
cmp si, 0x6f
jne 0x41d309
mov esi, 0xbf
jmp 0x41d30f

Function at 0x41ea80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4e05b0]
xor edx, edx
cmp eax, edx
jne 0x41eaa6
xor eax, eax
mov byte [eax + 0x4e04b0], al
inc eax
cmp eax, 0x100
jl 0x41ea8e
mov dword [0x4e05b0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4e04b0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41eb37
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 0x41eb0a
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 0x41ead8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41ebb0
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 0x41ec03
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 0x41ebea
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