joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf611b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00f61140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00f61140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00f61140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00f61140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xf61bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xf61c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xf7387c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xf61c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xf61c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4248a5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041e46c
and dword [ebp - 4], 0
cmp dword [0x44c388], 0
mov ebx, eax
jne 0x424956
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x424a07
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x424a07
push eax
call fcn.0041e3fa
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44c388], eax
call esi
push eax
call fcn.0041e3fa
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44c38c], eax
call esi
push eax
call fcn.0041e3fa
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44c390], eax
call esi
push eax
call fcn.0041e3fa
pop ecx
mov dword [0x44c398], eax
test eax, eax
je 0x424956
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041e3fa
pop ecx
mov dword [0x44c394], eax
mov eax, dword [0x44c394]
cmp eax, ebx
je 0x4249ae
cmp dword [0x44c398], ebx
je 0x4249ae
push eax
call fcn.0041e475
push dword [0x44c398]
mov esi, eax
call fcn.0041e475
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4249ae
test edi, edi
je 0x4249ae
call esi
test eax, eax
je 0x4249a5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4249a5
test byte [ebp - 0xc], 1
jne 0x4249ae
or dword [ebp + 0x10], 0x200000
jmp 0x4249e7
mov eax, dword [0x44c38c]
cmp eax, ebx
je 0x4249e7
push eax
call fcn.0041e475
pop ecx
test eax, eax
je 0x4249e7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4249e7
mov eax, dword [0x44c390]
cmp eax, ebx
je 0x4249e7
push eax
call fcn.0041e475
pop ecx
test eax, eax
je 0x4249e7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44c388]
call fcn.0041e475
pop ecx
test eax, eax
je 0x424a07
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x424a09
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x415c38
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x415c38
lcall 0x5de5, 0x8b10c483
jmp fcn.01afc21c
Function at 0x10001108
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0xa]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x10001147
mov eax, dword [esi + 6]
push dword [esi + 0xa]
movzx ecx, ax
push ecx
mov ecx, eax
shr ecx, 0x10
push ecx
push eax
push str.read_out_conn_sock__:_Out_connection_conn_id0x_08x___u:_u__closed_on_recv___oc__sock_d
call fcn.10018570
add esp, 0x14
or eax, 0xffffffff
jmp 0x10001184
cmp eax, 0xffffffff
jne 0x10001184
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2714
je 0x10001173
cmp eax, 0x2733
je 0x10001173
push str.read_out_conn_sock__:_recv___out_connection_closed_with_error
call esi
push eax
call main
pop ecx
pop ecx
jmp 0x10001142
push str.read_out_conn_sock__:_recv___EAGAIN
call esi
push eax
call main
pop ecx
pop ecx
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x246c]
test eax, eax
je 0x10001350
push edi
push 0
push eax
push dword [esi + 0x2468]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000130c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
je 0x100012ef
cmp edi, 0x2714
je 0x100012ef
push dword [esi + 4]
push dword [esi + 0x2664]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.send___to_pipe_connection_ip_s_failed:_sock_d
push edi
call main
add esp, 0x10
or eax, 0xffffffff
jmp 0x1000134f
push dword [esi + 4]
push dword [esi + 0x2664]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.send___to_pipe_connection_ip_s_failed_EAGAIN:_sock_d_n
push edi
call main
jmp 0x1000134a
sub dword [esi + 0x246c], edi
mov ecx, dword [esi + 0x246c]
mov eax, dword [esi + 0x2468]
push ecx
lea ecx, [eax + edi]
push ecx
push eax
call fcn.10019c80
add esp, 0xc
push dword [esi + 0x246c]
push dword [esi + 0x2664]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push edi
push str.____send_pipe__:_sent__d_bytes_to_pipe_ip_s__pc__out_buf_len_u_
call fcn.10018570
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x1000163e
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push edi
push dword [esi + 0x12]
push dword [esi + 0xe]
push dword [esi + 0xa]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x100016b1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx edx, byte [esi + 0x20]
mov ecx, dword [esi + 6]
push edx
push dword [esi + 0xa]
movzx edx, cx
push edx
mov edx, ecx
shr edx, 0x10
push edx
push ecx
push str.send_out_conn__:_send___to_out_connection_0x_08x___u:_u__failed:_sock_d_state_02X_n
push eax
call main
add esp, 0x1c
push dword [esi + 0xa]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [esi + 0xa], 0xffffffff
push 2
push esi
push dword [ebp + 8]
mov dword [esi + 0x12], edi
call fcn.100014a1
xor ecx, ecx
add esp, 0xc
test eax, eax
setns cl
lea eax, [ecx - 1]
jmp 0x10001712
sub dword [esi + 0x12], eax
mov ecx, dword [esi + 0xe]
mov edx, dword [esi + 0x12]
push edx
add eax, ecx
push eax
push ecx
call fcn.10019c80
add esp, 0xc
test byte [esi + 0x20], 0x20
je 0x100016f8
mov eax, dword [esi + 0x16]
shr eax, 2
cmp dword [esi + 0x12], eax
ja 0x100016f8
push str.send_out_conn__:_Buffer_is_ready_again._Client_must_resume_send.
call fcn.10018570
and byte [esi + 0x20], 0xdf
push edi
push edi
push dword [esi + 6]
push 7
push dword [ebp + 8]
call fcn.10001187
add esp, 0x18
test byte [esi + 0x20], 4
je 0x10001710
cmp dword [esi + 0x12], edi
jne 0x10001710
push edi
push esi
push dword [ebp + 8]
call fcn.100014a1
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x100017a1
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x2464]
push edi
xor edi, edi
xor ebx, ebx
cmp eax, 0x1fff6
jbe 0x100017d0
push dword [esi]
push str.read_pipe__:_No_space_for_new_data_from_pipe_peer_id_u
push edi
call main
add esp, 0xc
jmp 0x1000185e
mov edx, 0x20000
mov ecx, 0x100a
sub edx, eax
mov ebx, ecx
cmp edx, ecx
ja 0x100017e4
mov ebx, edx
mov ecx, dword [esi + 0x2460]
push edi
push ebx
add ecx, eax
push ecx
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jne 0x1000181a
push dword [esi + 0x2464]
push ebx
push str.read_pipe__:_pipe_connection_closed_by_peer._read_size_u_pc__in_buf_len_u
call fcn.10018570
add esp, 0xc
or eax, 0xffffffff
jmp 0x100018f4
cmp edi, 0xffffffff
jne 0x1000185c
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2714
je 0x10001846
cmp eax, 0x2733
je 0x10001846
push str.Connection_to_pipe_peer_closed
call esi
push eax
call main
pop ecx
pop ecx
jmp 0x10001812
push str.read_pipe__:_recv___from_pipe_returned_EAGAIN
call esi
push eax
call main
pop ecx
pop ecx
xor eax, eax
jmp 0x100018f4
mov ebx, edi
mov eax, dword [esi + 0x2464]
lea ecx, [eax + ebx]
cmp ecx, 0x20000
jbe 0x10001889
push str.CRITICAL_ERROR:_Pipe_buffer_overflow___
push 0
call main
pop ecx
pop ecx
mov dword [esi + 0x2464], 4
jmp 0x10001891
add eax, edi
mov dword [esi + 0x2464], eax
push dword [esi + 0x2464]
mov edi, dword [esi + 0x2460]
push dword [edi + 6]
push str.read_pipe__:_ntun_h__len_u_pc__in_buf_len_u
call fcn.10018570
push esi
push edi
call fcn.100013a3
add esp, 0x14
test eax, eax
je 0x100018f1
js 0x100018f4
push esi
call dword [ebp + 0xc]
pop ecx
test eax, eax
js 0x100018f9
mov eax, dword [edi + 6]
sub dword [esi + 0x2464], eax
mov ecx, dword [esi + 0x2464]
mov eax, dword [esi + 0x2460]
push ecx
mov ecx, dword [edi + 6]
add ecx, eax
push ecx
push eax
call fcn.10019c80
add esp, 0xc
cmp dword [esi + 0x2464], 0
ja 0x10001891
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 0xfffffffffffffffd
pop eax
jmp 0x100018f4
Function at 0x10002de5
Capabilities:
Terminate thread

Disassembly:
push str.nattun_client_stop__:_started
call fcn.10018570
cmp dword [0x1004f054], 0
pop ecx
je 0x10002e8c
mov eax, dword [0x1004f040]
test eax, eax
je 0x10002e8c
push eax
mov dword [0x1004f050], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x1004f054]
push 0x4e20
push dword [eax]
call dword [0x10052360]
test eax, eax
je 0x10002e85
push eax
push str.nattun_client_stop__:_WaitForSingleObject___failed:_ret_08x
push 0
call main
mov eax, dword [0x1004f054]
add esp, 0xc
push 1
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x10002e61
push str.nattun_client_stop__:_nattun_thread_terminated_ok_
call fcn.10018570
pop ecx
jmp 0x10002e7c
mov eax, dword [0x1004f054]
push dword [eax]
push str.nattun_client_stop__:_cannot_terminated_nattun_thread_nattun_thread__th_handle_08x
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call main
add esp, 0xc
mov eax, dword [0x1004f054]
and dword [eax], 0
ret
push str.nattun_client_stop__:_WaitForSingleObject___ok
jmp 0x10002e91
push str.nattun_client_stop__:_nattun_not_running_or_already_stopped
call fcn.10018570
pop ecx
ret

Function at 0x1000304e
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0xa]
mov dword [ebp - 4], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x1000308a
push str.process_socks5_packet__:_getsockname___failed
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call main
pop ecx
pop ecx
jmp 0x100030ae
push dword [ebp - 0x12]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.process_socks5_packet__:_local_addr:__s:_u
call fcn.10018570
add esp, 0xc
push 4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x78], 0x1000005
call fcn.10019c40
push 2
lea eax, [ebp - 0x12]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.10019c40
push 0xa
lea eax, [ebp - 0x78]
push eax
push dword [esi + 6]
push 4
push dword [ebp + 8]
call fcn.10001187
add esp, 0x2c
mov byte [esi + 0x20], 2
xor eax, eax
pop esi
leave
ret
Function at 0x10003f9e
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x14]
push esi
push eax
mov dword [ebp - 4], 0xffffffe1
call fcn.1001a270
lea eax, [ebp - 0xc]
push eax
call fcn.1001a270
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
push 1
mov dword [ebp - 0x18], eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call fcn.10009e7b
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x1000400a
push str.EnumCCServersCallback__:_create_thread___failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call main
pop ecx
pop ecx
push 0xffffffffffffffe0
pop eax
jmp 0x100040d6
push 0x3e8
push dword [esi]
call dword [0x10052360]
test eax, eax
je 0x10004047
cmp eax, 0xffffffff
je 0x10004084
lea eax, [ebp - 0x14]
push eax
call fcn.1001a270
mov eax, dword [ebp - 8]
pop ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0xf0
adc eax, 0
cmp dword [ebp - 0x10], eax
jg 0x100040a1
jl 0x1000400a
cmp dword [ebp - 0x14], ecx
jae 0x100040a1
jmp 0x1000400a
lea eax, [ebp - 4]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x10004073
push str.EnumCCServersCallback__:_GetExitCodeThread___failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call main
pop ecx
pop ecx
mov dword [ebp - 4], 0xffffffdf
jmp 0x100040c9
push dword [ebp - 4]
push str.EnumCCServersCallback__:_fWorkerThread_exited_with_dRet_d
call fcn.10018570
pop ecx
pop ecx
jmp 0x100040a1
push dword [esi]
push str.EnumCCServersCallback__:_WaitForSingleObject___failed_pThread__th_handle_p
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call main
add esp, 0xc
mov dword [ebp - 4], 0xffffffde
cmp dword [ebp - 4], 0xffffffe1
jne 0x100040c9
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push str.EnumCCServersCallback__:_fWorkerThread_timeout_tNow_lld_tLastActivity_lld
call fcn.10018570
add esp, 0x14
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 1
push esi
call fcn.10009d5a
mov eax, dword [ebp - 4]
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x1000436c
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor edi, edi
jmp 0x100043df
push str.CCMain__:_mutex_lock___failed_g_hCCMutex
call fcn.10018570
lea eax, [ebp - 8]
push eax
call fcn.1001a270
mov eax, dword [0x1004f09c]
pop ecx
pop ecx
mov ecx, dword [0x1004f098]
add ecx, 0x3840
adc eax, edi
cmp eax, dword [ebp - 4]
jg 0x10004505
jl 0x100043b3
cmp ecx, dword [ebp - 8]
jae 0x10004505
push edi
push dword [0x1004f08c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x100044f5
push str.CCMain__:_TerminateThread___success
call fcn.10018570
mov dword [esp], 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push dword [0x1004f074]
call fcn.1001d280
pop ecx
pop ecx
test eax, eax
js 0x10004377
push esi
push str.CCMain___started
call fcn.10018570
mov dword [esp], 0x1004f098
call fcn.1001a270
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
pop ecx
push 2
push edi
push edi
push 0x1004f08c
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x10004442
push str.CCMain__:_DuplicateHandle___failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call main
pop ecx
pop ecx
push 0x10
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.10019d20
mov eax, dword [0x1004f0a0]
push 0x31
mov dword [ebp - 0x18], eax
call fcn.1001c180
add esp, 0x10
test eax, eax
jne 0x1000446c
call fcn.1001e520
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 0x10003c3d
push eax
call fcn.100040d9
mov esi, eax
pop ecx
pop ecx
cmp esi, edi
jl 0x100044b5
push esi
push str.CCMain__:_EnumCCServers___ok_ret_d
call fcn.10018570
pop ecx
pop ecx
call fcn.1000c0d6
push eax
call sub.WS2_32.dll_inet_ntoa
push eax
push 0x27
call fcn.1001c160
push 0x100503c4
push edi
call fcn.1001c270
add esp, 0x10
call fcn.1000a26c
cmp dword [ebp - 0x14], edi
je 0x100044c4
lea eax, [ebp - 0x14]
push eax
call fcn.1001e6b0
pop ecx
push esi
push str.CCMain___finished_ret_d
call fcn.10018570
pop ecx
pop ecx
push dword [0x1004f08c]
call dword [0x100522b0]
push dword [0x1004f074]
mov dword [0x1004f08c], edi
call fcn.1001d2f0
pop ecx
mov eax, esi
pop esi
pop edi
leave
ret
push str.CCMain__:_TerminateThread___failed
call fcn.10018570
pop ecx
jmp 0x100043f1
xor eax, eax
jmp 0x100044f2
Function at 0x10004509
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
jmp 0x10004578
push str.CCUpload__:_mutex_lock___failed_g_hCCMutex
call fcn.10018570
lea eax, [ebp - 8]
push eax
call fcn.1001a270
mov eax, dword [0x1004f084]
pop ecx
pop ecx
mov ecx, dword [0x1004f080]
add ecx, 0xe10
adc eax, esi
cmp eax, dword [ebp - 4]
jg 0x100045e5
jl 0x10004550
cmp ecx, dword [ebp - 8]
jae 0x100045e5
push esi
push dword [0x1004f088]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x100045d8
push str.CCUpload__:_TerminateThread___success
call fcn.10018570
mov dword [esp], 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push dword [0x1004f070]
call fcn.1001d280
pop ecx
pop ecx
test eax, eax
js 0x10004514
push edi
push str.CCUpload___started
call fcn.10018570
push 0x10
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.10019d20
mov eax, dword [0x1004f0a0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.1001ecf0
add esp, 0x18
mov dword [ebp - 0x10], eax
cmp eax, esi
jne 0x100045ec
push dword [ebp + 8]
push str.CCUpload__:_cannot_load_file__S
push esi
call main
add esp, 0xc
or edi, 0xffffffff
jmp 0x10004675
push str.CCUpload__:_TerminateThread___failed
call fcn.10018570
pop ecx
jmp 0x1000458a
xor eax, eax
jmp 0x100046af
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push esi
push esi
push 0x1004f088
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x10004625
push str.CCUpload__:_DuplicateHandle___failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call main
pop ecx
pop ecx
push 0x1004f080
call fcn.1001a270
lea eax, [ebp - 0x18]
mov dword [esp], 0x10003b44
push eax
call fcn.100040d9
mov edi, eax
pop ecx
pop ecx
cmp edi, esi
jl 0x10004675
push edi
push str.CCUpload__:_EnumCCServers___ok_ret_d
call fcn.10018570
pop ecx
pop ecx
call fcn.1000c0d6
push eax
call sub.WS2_32.dll_inet_ntoa
push eax
push 0x27
call fcn.1001c160
push 0x100503c4
push esi
call fcn.1001c270
add esp, 0x10
push edi
push str.CCUpload___finished_ret_d
call fcn.10018570
pop ecx
pop ecx
push dword [0x1004f088]
call dword [0x100522b0]
push dword [0x1004f070]
mov dword [0x1004f088], esi
call fcn.1001d2f0
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.10019b10
add esp, 0xc
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x100055c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x520
push esi
push edi
mov esi, 0x103
push esi
xor edi, edi
lea eax, [ebp - 0x10f]
push edi
push eax
mov byte [ebp - 0x110], 0
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x213]
push edi
push eax
mov byte [ebp - 0x214], 0
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x51f]
push edi
push eax
mov byte [ebp - 0x520], 0
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x41b]
push edi
push eax
mov byte [ebp - 0x41c], 0
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x317]
push edi
push eax
mov byte [ebp - 0x318], 0
call sub.msvcrt.dll_memset
mov eax, 0x30000
push eax
mov dword [ebp - 0xc], str..txt
mov dword [ebp - 8], eax
call fcn.10019ae0
add esp, 0x40
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x10005679
push dword [ebp - 8]
push str.ie_cookie_save__:_mem_alloc___failed__u_bytes
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call main
add esp, 0xc
or eax, 0xffffffff
jmp 0x100057c3
push ebx
push esi
lea eax, [ebp - 0x110]
push eax
push dword [0x100525f4]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, 0x104
mov edi, 0x100347ec
test eax, eax
jne 0x100056b8
push dword [0x100525f4]
push str.ie_cookie_save__:_GetEnvironmentVariable__s__failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call main
add esp, 0xc
jmp 0x100056fd
push 0
push str.Cookies
lea eax, [ebp - 0x110]
push eax
push ebx
lea eax, [ebp - 0x520]
push eax
push edi
call fcn.10019170
push 0
push str.Cookies
push str.Temp
push str.Local_Settings
lea eax, [ebp - 0x110]
push eax
push ebx
lea eax, [ebp - 0x41c]
push eax
push edi
call fcn.10019170
add esp, 0x38
push esi
lea eax, [ebp - 0x214]
push eax
push dword [0x100523c0]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x10005731
push dword [0x100523c0]
push str.ie_cookie_save__:_GetEnvironmentVariable__s__failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call main
add esp, 0xc
jmp 0x1000575a
push 0
push str.Cookies
push str.Windows
push str.Microsoft
lea eax, [ebp - 0x214]
push eax
push ebx
lea eax, [ebp - 0x318]
push eax
push edi
call fcn.10019170
add esp, 0x20
push 3
lea esi, [ebp - 0x520]
pop edi
cmp byte [esi], 0
je 0x100057ad
push esi
push str.ie_cookie_save__:_processing__s
call fcn.10018570
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0xa
push 0xa
inc eax
push 0
mov dword [0x10052204], eax
lea eax, [ebp - 8]
push eax
push 0x1000559d
push 5
push 1
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.100219f0
push esi
push str.ie_cookie_save__:_done__s
call fcn.10018570
add esp, 0x2c
add esi, ebx
dec edi
jne 0x10005763
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call fcn.10019b10
pop ecx
pop ecx
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret
Function at 0x100057ea
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x213]
push ebx
push eax
mov byte [ebp - 0x214], bl
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call sub.msvcrt.dll_memset
mov eax, 0x30000
push eax
mov dword [ebp - 8], eax
call fcn.10019ae0
add esp, 0x1c
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x1000585b
push dword [ebp - 8]
push str.flash_cookie_save__:_mem_alloc___failed__u_bytes
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call main
add esp, 0xc
or eax, 0xffffffff
jmp 0x10005933
push esi
lea eax, [ebp - 0x214]
push eax
push dword [0x100523c0]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x10005892
push dword [0x100523c0]
push str.flash_cookie_save__:_GetEnvironmentVariable__s__failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call main
add esp, 0xc
jmp 0x10005923
push ebx
push str.SharedObjects
push str.Flash_Player
push str.Macromedia
lea eax, [ebp - 0x214]
push eax
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0x100347ec
mov dword [ebp - 0xc], str..sol
call fcn.10019170
add esp, 0x20
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [0x10052204], eax
lea eax, [ebp - 0x110]
push eax
push str.flash_cookie_save__:_processing__s
call fcn.10018570
push 0xa
push 0xa
push ebx
lea eax, [ebp - 8]
push eax
push 0x100057c7
push 5
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.100219f0
lea eax, [ebp - 0x110]
push eax
push str.flash_cookie_save__:_done__s
call fcn.10018570
add esp, 0x34
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call fcn.10019b10
pop ecx
pop ecx
xor eax, eax
pop esi
pop ebx
leave
ret