joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bd10
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x110
mov eax, dword [0x4b445c]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x114]
push ebx
push esi
mov esi, dword [esp + 0x120]
push edi
mov edi, dword [sym.imp.WS2_32.dll_send]
push 0
push esi
mov ebx, ecx
mov ecx, dword [ebx + 0x68]
push eax
push ecx
call edi
cmp eax, esi
je 0x41bd69
mov eax, dword [0x4bae60]
test eax, eax
je 0x41bd62
push str.Handshaking_with_CommServer_failed.
push eax
call fcn.00430fd0
add esp, 8
xor al, al
jmp 0x41bf07
mov eax, dword [ebx + 0x68]
push 0
push 5
push 0x490d0c
push eax
call edi
cmp eax, 5
mov eax, dword [0x4bae60]
je 0x41bd9b
test eax, eax
je 0x41bd62
push str.Sending_signature_data_failed.
push eax
call fcn.00430fd0
add esp, 8
xor al, al
jmp 0x41bf07
test eax, eax
je 0x41bdad
push str.Signature_data_sent.
push eax
call fcn.00430fd0
add esp, 8
push ebp
xor esi, esi
xor ebp, ebp
push 1
lea eax, [esp + 0x17]
push eax
mov ecx, ebx
call fcn.0041a900
mov ecx, ebx
movzx edi, ax
call fcn.0041a870
test al, al
je 0x41be69
cmp edi, 1
jne 0x41be16
mov al, byte [esp + 0x13]
test al, al
je 0x41be2d
movsx ecx, al
push ecx
lea edx, [esp + esi + 0x1c]
push 0x490cd0
push edx
call fcn.0045f1a1
add esi, 2
add esp, 0xc
cmp esi, 0x4e
jl 0x41be16
mov eax, dword [0x4bae60]
test eax, eax
je 0x41be14
lea ecx, [esp + 0x18]
push ecx
push eax
call fcn.00430fd0
add esp, 8
xor esi, esi
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebp, 1
cmp ebp, 0xbb8
jl 0x41bdb2
mov al, byte [esp + 0x13]
test esi, esi
mov ecx, dword [0x4bae60]
jle 0x41be53
test ecx, ecx
je 0x41be53
lea edx, [esp + 0x18]
push edx
push ecx
call fcn.00430fd0
mov al, byte [esp + 0x1b]
mov ecx, dword [0x4bae60]
add esp, 8
test al, al
je 0x41be70
test ecx, ecx
je 0x41be69
push str.Receiving_signature_data_failed.
push ecx
call fcn.00430fd0
add esp, 8
xor al, al
jmp 0x41bf06
test ecx, ecx
je 0x41be82
push str.Signature_data_received.
push ecx
call fcn.00430fd0
add esp, 8
xor esi, esi
mov dword [esp + 0x14], 0
xor edi, edi
mov edi, edi
cmp esi, 4
jge 0x41becb
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
lea eax, [esp + esi + 0x18]
push eax
mov ecx, ebx
call fcn.0041a900
movzx eax, ax
cmp eax, 1
jne 0x41beb5
add esi, eax
mov ecx, ebx
call fcn.0041a870
test al, al
je 0x41be69
add edi, 1
cmp edi, 0xbb8
jl 0x41be90
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push 0x490c8c
push edx
call fcn.0045f1a1
mov eax, dword [0x4bae60]
add esp, 0xc
test eax, eax
je 0x41bef9
lea ecx, [esp + 0x18]
push ecx
push eax
call fcn.00430fd0
add esp, 8
xor eax, eax
cmp dword [esp + 0x14], 0xffa55a00
sete al
pop ebp
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045e17e
add esp, 0x110
ret 8
Function at 0x41cd80
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x481268
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4b445c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.extension::basic_sockbuf_char__struct_std::char_traits_char__.0
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov eax, dword [esi + 0x3c]
cmp eax, 0xffffffff
je 0x41cde4
mov dword [esp + 8], ecx
lea ecx, [esp + 8]
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edx, dword [esi + 0x3c]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x3c], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
mov ecx, esi
call fcn.0041c7b0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x41cf87
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x4bae60]
test eax, eax
push esi
mov esi, ecx
je 0x41cf9a
push str.CTcpListener::stop__begin
push eax
call fcn.00430fd0
add esp, 8
mov ecx, esi
call fcn.0041cf20
mov eax, dword [esi + 8]
test eax, eax
je 0x41cfe0
push 0x7d0
push eax
mov byte [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41cfcb
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov byte [esi + 4], 0
mov eax, dword [0x4bae60]
test eax, eax
pop esi
je 0x41cff8
push str.CTcpListener::stop___End
push eax
call fcn.00430fd0
add esp, 8
ret
Function at 0x41d5e0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x460
mov eax, dword [0x4b445c]
xor eax, esp
mov dword [esp + 0x45c], eax
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x41d60e
push str.server_socket::open_socket
push 2
push eax
call fcn.00430990
add esp, 0xc
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x41d634
push str.server_socket::open_after_socket
push 2
push eax
call fcn.00430990
add esp, 0xc
cmp dword [esi + 4], 0xffffffff
jne 0x41d668
push 0x1cb
push str..._common_mylib__socket.h
push str.Failed_to_create_the_socket
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [esp + 0x14]
call fcn.0041d3f0
push 0x4a3c54
lea eax, [esp + 8]
push eax
call fcn.0045f257
mov eax, dword [esi + 8]
test eax, eax
je 0x41d67f
push str.server_socket::open_sockaddr
push 2
push eax
call fcn.00430990
add esp, 0xc
mov ecx, dword [esp + 0x468]
xor eax, eax
mov dword [esp + 0x450], eax
push ecx
mov dword [esp + 0x458], eax
mov dword [esp + 0x45c], eax
mov dword [esp + 0x460], eax
mov word [esp + 0x454], 2
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esp + 0x46c]
push edx
mov word [esp + 0x456], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x454], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x41d6e9
push str.server_socket::open_bind
push 2
push eax
call fcn.00430990
add esp, 0xc
mov ecx, dword [esi + 4]
push 0x10
lea eax, [esp + 0x454]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x41d72f
push 0x1de
push str..._common_mylib__socket.h
push str.Failed_to_bind_the_socket
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [esp + 0x14]
call fcn.0041d3f0
push 0x4a3c54
lea edx, [esp + 8]
push edx
call fcn.0045f257
mov eax, dword [esi + 8]
test eax, eax
je 0x41d746
push str.server_socket::open_listen
push 2
push eax
call fcn.00430990
add esp, 0xc
mov eax, dword [esi + 4]
push 5
push eax
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x41d784
push 0x1e6
push str..._common_mylib__socket.h
push str.Failed_to_initiate_listening_on_the_socket
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [esp + 0x14]
call fcn.0041d3f0
push 0x4a3c54
lea ecx, [esp + 8]
push ecx
call fcn.0045f257
mov esi, dword [esi + 8]
test esi, esi
je 0x41d79b
push str.server_socket::open_finish
push 2
push esi
call fcn.00430990
add esp, 0xc
mov ecx, dword [esp + 0x460]
pop esi
xor ecx, esp
call fcn.0045e17e
add esp, 0x460
ret 8
Function at 0x41ded0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4816d8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x4b445c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push 0
lea ecx, [esp + 0x14]
call fcn.0047afc5
mov dword [esp + 0x28], 0
mov edi, dword [0x4ba8e4]
mov ecx, 0x4bdc34
mov dword [esp + 0xc], edi
call fcn.0041c100
mov esi, eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
cmp esi, dword [eax + 0xc]
jae 0x41df4b
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + esi*4]
test ecx, ecx
jne 0x41df4f
cmp byte [eax + 0x14], 0
je 0x41df4f
call fcn.0047b053
cmp esi, dword [eax + 0xc]
jae 0x41df55
mov edx, dword [eax + 8]
mov esi, dword [edx + esi*4]
jmp 0x41df51
xor ecx, ecx
jmp 0x41df33
mov esi, ecx
test esi, esi
jne 0x41dfa6
test edi, edi
je 0x41df5d
mov esi, edi
jmp 0x41dfa6
lea eax, [esp + 0xc]
push eax
call fcn.0041dc90
add esp, 4
cmp eax, 0xffffffff
jne 0x41df8c
push str.bad_cast
lea ecx, [esp + 0x18]
call fcn.0045f127
push 0x4a3ee0
lea ecx, [esp + 0x18]
push ecx
call fcn.0045f257
mov esi, dword [esp + 0xc]
mov ecx, esi
mov dword [0x4ba8e4], esi
call fcn.0041c180
push esi
call fcn.0047b121
add esp, 4
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0047afe6
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret

Function at 0x41e100
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48174e
mov eax, dword fs:[0]
push eax
sub esp, 0x458
push ebx
push esi
push edi
mov eax, dword [0x4b445c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.extension::thread.0
xor ebx, ebx
mov byte [esi + 4], bl
lea eax, [ebp - 0x18]
push eax
push 4
push esi
push 0x4181c0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
cmp eax, ebx
jne 0x41e188
push 0x51
push str..._common_mylib__process.h
push str.Failed_to_create_thread
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x464]
call fcn.00416ba0
push 0x4a2bd8
lea ecx, [ebp - 0x464]
push ecx
call fcn.0045f257
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CTcpListener.0
lea edi, [esi + 0xc]
push ebx
mov ecx, edi
call fcn.0041cea0
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0x10]
mov dword [esi + 0x20], edx
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ebx
mov byte [esi + 0x2c], bl
mov ecx, dword [ebp + 8]
mov dword [esi + 0x18], ecx
mov dl, byte [ebp + 0xc]
mov byte [esi + 0x1c], dl
mov byte [ebp - 4], 2
push 0xc
call fcn.00449d87
add esp, 4
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x41e1e6
push ebx
movzx ecx, word [esi + 0x18]
push ecx
mov ecx, eax
call fcn.0041dfd0
jmp 0x41e1e8
xor eax, eax
mov byte [ebp - 4], 2
push eax
mov ecx, edi
call fcn.00418ec0
mov dword [ebp - 4], 1
jmp 0x41e21a
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41e440
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [ecx + 0xc]
mov eax, dword [esi + 0x3c]
cmp eax, 0xffffffff
je 0x41e47a
lea ecx, [esp + 4]
push ecx
push 0x8004667e
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edx, dword [esi + 0x3c]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x3c], 0xffffffff
pop esi
pop ecx
ret
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add eax, ecx
mov ecx, dword [eax + 8]
or ecx, 2
cmp dword [eax + 0x28], 0
jne 0x41e490
or ecx, 4
push 0
push ecx
mov ecx, eax
call fcn.0041dd10
pop esi
pop ecx
ret

Function at 0x41e6d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x481880
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4b445c]
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
call fcn.0040a710
test al, al
jne 0x41e72b
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
call edi
mov esi, eax
lea esp, [esp]
mov ecx, dword [ebp + 0x110]
lea edx, [ebx + ecx]
cmp edx, esi
jbe 0x41e79a
call edi
mov esi, eax
mov ecx, dword [ebp - 0x14]
call fcn.0040a710
test al, al
je 0x41e787
sub esi, ebx
cmp esi, 0x1388
jbe 0x41e780
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x41e780
push esi
push str.Synchronize_time:__d.
push eax
call fcn.00430fd0
add esp, 0xc
mov al, 1
jmp 0x41e847
call fcn.00432270
test eax, eax
jne 0x41e740
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41e740
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x1c]
test eax, eax
je 0x41e7b3
push ecx
push str.Synchronize_time_out:__d.
push eax
call fcn.00430fd0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x24], 0
je 0x41e842
cmp byte [eax + 0xc], 0x58
je 0x41e842
xor eax, eax
jmp 0x41e847
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.0045e17e
add ebp, 0x108
mov esp, ebp
pop ebp
ret 4
Function at 0x41e990
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4818e0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4b445c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edi, eax
mov ebx, dword [ebp + 8]
cmp byte [0x4ba8e8], 0
jne 0x41ea2a
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x4b1f60], 0
jne 0x41ea31
call esi
sub eax, edi
cmp eax, ebx
jle 0x41e9d2
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x41ea0d
push ebx
push str.CStatusSynchronizerBase::WaitGetDataReturn_TimeOut__Time_Pass:__d
push eax
call fcn.00430fd0
add esp, 0xc
mov byte [0x4b1f60], 0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41f250
Capabilities:
Access peb ldr_data
Create thread
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x481b8e
mov eax, dword fs:[0]
push eax
sub esp, 0x454
push ebx
push esi
push edi
mov eax, dword [0x4b445c]
xor eax, esp
push eax
lea eax, [esp + 0x464]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea eax, [esp + 0x10]
push eax
push 4
push esi
xor ebx, ebx
push 0x4181c0
push ebx
push ebx
mov dword [esi], vtable.extension::thread.0
mov byte [esi + 4], bl
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 8], eax
jne 0x41f2d4
push 0x51
push str..._commonmylib_process.h
push str.Failed_to_create_thread
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x28]
call fcn.00416ba0
push 0x4a2bd8
lea ecx, [esp + 0x1c]
push ecx
call fcn.0045f257
mov dword [esp + 0x46c], ebx
mov dword [esi], vtable.CStatusSynchronizerBase.0
lea ecx, [esi + 0x134]
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.0041f190
mov byte [esp + 0x46c], 1
mov dword [esi + 0x170], ebx
mov dword [esi + 0x174], ebx
mov dword [esi + 0x178], ebx
mov byte [esp + 0x46c], 2
lea edi, [esi + 0x17c]
mov ecx, edi
call fcn.00401a40
mov byte [esp + 0x46c], 3
mov al, 0x58
push ebx
mov byte [esi + 0xc], al
mov byte [esi + 0xd], al
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x18], ebx
call fcn.0045fa6b
push 0x104
mov dword [esi + 0x2c], edx
lea edx, [esi + 0x30]
push ebx
push edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x1c], ebx
mov byte [esi + 0x24], bl
call fcn.0045eb50
add esp, 0x10
push 1
push 0x48bb64
mov ecx, edi
mov dword [esi + 0x16c], ebx
call fcn.00402320
mov dword [esp + 0x46c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x464]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x460
ret
Function at 0x41fa10
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481c70
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4b445c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x16c], ebx
je 0x41fac5
mov byte [0x4ba8e9], 1
push 0x1388
mov eax, dword [esi + 0x16c]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], 0xffffffff
lea edx, [ebp - 0x14]
push edx
mov eax, dword [esi + 0x16c]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x14], 0x103
jne 0x41fa9f
push 0x103
mov edx, dword [esi + 0x16c]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x16c], ebx
mov byte [0x4ba8ea], bl
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x34]
cmp eax, ebx
je 0x41fac8
push str.ThreadEnd_:GetWebDataThreadFun
push eax
call fcn.00430fd0
add esp, 8
jmp 0x41fac8
mov edi, dword [ebp + 0xc]
cmp byte [ebp + 8], bl
je 0x41fb22
mov byte [0x4ba8e9], bl
mov dword [edi + 0x10], ebx
push ebx
push ebx
push ebx
push ebx
push edi
push 0x41f570
call fcn.0045701d
mov dword [esi + 0x16c], eax
mov edi, dword [edi + 0x34]
cmp edi, ebx
je 0x41fb00
push str.AfxBeginThread_GetWebDataThreadFun_
push edi
call fcn.00430fd0
add esp, 8
mov ecx, dword [esi + 0x16c]
mov dword [ecx + 0x28], 1
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [0x4ba8f4]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x421fd0
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x14], 0
je 0x421fea
push str.CFileChatAgent::Start_return__m_bStarted__true__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, 1
pop esi
ret 4
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push ebx
push edi
call edx
mov ecx, dword [esi + 0x64]
mov eax, ecx
cdq
mov ebx, 0xa
idiv ebx
lea eax, [ecx - 1]
xor edi, edi
cmp eax, 0xc
ja case.0x422011.4
movzx eax, byte [eax + 0x422094]
jmp dword [eax*4 + 0x422088]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov edi, dword [esi + 0xc]
push eax
push ecx
push str.127.0.0.1
push edi
push edx
lea ecx, [esi + 0x20]
call fcn.004229f0
jmp 0x42204e
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov edi, dword [esi + 0xc]
push ebx
push eax
push ecx
push edi
push edx
lea ecx, [esi + 0x20]
call fcn.00422b40
mov edi, eax
test edi, edi
je case.0x422011.4
push str.CFileChatAgent::Start_ok_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test edi, edi
pop edi
setne al
pop ebx
mov byte [esi + 0x14], al
pop esi
ret 4
push str.CFileChatAgent::Start_failed._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test edi, edi
pop edi
setne al
pop ebx
mov byte [esi + 0x14], al
pop esi
ret 4
Function at 0x422410
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x108
mov eax, dword [0x4b445c]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x422433
cmp dword [esi + 8], 0
je 0x422481
cmp dword [esi + 0x1c], 0
je 0x422481
push edi
mov edi, dword [esp + 0x114]
push edi
lea eax, [esp + 0xc]
push str.CComponentAgent::ReBuildConnetion_int_nPort__Port:_d
push eax
call fcn.0045f1a1
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [esi + 0x1c]
push edi
call edx
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0045e17e
add esp, 0x108
ret 4
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0045e17e
add esp, 0x108
ret 4

Function at 0x422620
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov eax, edi
sub eax, 1
mov esi, ecx
je 0x42264b
sub eax, 1
je 0x422644
sub eax, 1
jne 0x422798
push 0x4920fc
jmp 0x422650
push 0x4920cc
jmp 0x422650
push 0x492094
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 4], eax
je 0x422798
cmp edi, 3
jne 0x4226cf
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateVoIPClient
push eax
call edi
mov dword [esi + 0x30], eax
mov eax, dword [esi + 4]
push str.StopVoIPClient
push eax
call edi
mov ecx, dword [esi + 0x30]
test ecx, ecx
mov dword [esi + 0x38], eax
je 0x422791
test eax, eax
je 0x422791
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
call ecx
add esp, 0x10
test al, al
je 0x4226bf
pop edi
mov eax, 1
pop esi
ret 0x18
push 1
mov ecx, esi
call fcn.004224c0
pop edi
xor eax, eax
pop esi
ret 0x18
cmp edi, 2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x42272d
push str.CreateChatClient
push eax
call edi
mov ecx, dword [esi + 4]
push str.StopChatClient
push ecx
mov dword [esi + 0x20], eax
call edi
mov ecx, dword [esi + 0x20]
test ecx, ecx
mov dword [esi + 0x28], eax
je 0x422791
test eax, eax
je 0x422791
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
call ecx
add esp, 0x10
test al, al
je 0x4226bf
pop edi
mov eax, 1
pop esi
ret 0x18
push str.CreateFileClient
push eax
call edi
mov ecx, dword [esi + 4]
push str.StopFileClient
push ecx
mov dword [esi + 0xc], eax
call edi
mov edx, dword [esi + 4]
push str.ReBuildConnect
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x422791
cmp dword [esi + 0x14], 0
je 0x422791
movzx ecx, byte [esi + 0x40]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push ecx
call eax
add esp, 0x14
test eax, eax
je 0x4226bf
pop edi
mov eax, 1
pop esi
ret 0x18
mov ecx, esi
call fcn.00422370
pop edi
xor eax, eax
pop esi
ret 0x18
Function at 0x422b40
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x404
mov eax, dword [0x4b445c]
xor eax, esp
mov dword [esp + 0x400], eax
mov edx, dword [esp + 0x418]
push ebx
mov ebx, dword [esp + 0x414]
test ebx, ebx
push ebp
mov ebp, dword [esp + 0x41c]
push esi
mov esi, dword [esp + 0x418]
push edi
mov edi, dword [esp + 0x418]
je 0x422c55
test esi, esi
je 0x422c55
cmp edi, 2
je 0x422b95
cmp edi, 3
jne 0x422b9d
test ebp, ebp
jl 0x422c55
cmp edi, 1
mov eax, 0x7f0
je 0x422ba9
mov eax, ebp
push edx
push eax
push ebx
push esi
push edi
call fcn.004227a0
mov ebx, eax
test ebx, ebx
je 0x422c0a
sub edi, 1
je 0x422bff
sub edi, 1
je 0x422bf4
sub edi, 1
je 0x422bd2
push str.InitServerComponent_failed._1_n
jmp 0x422c86
push 0
push 0
push 0x7ed
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
push str.InitServerComponent_ok.__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, ebx
jmp 0x422c8e
push 0
push 0
push 0x7ea
jmp 0x422bdb
push 0
push 0
push 0x7e8
jmp 0x422bdb
sub edi, 1
je 0x422c4a
sub edi, 1
je 0x422c3f
sub edi, 1
je 0x422c20
push str.InitServerComponent_failed._2_n
jmp 0x422c86
push 0
push 0
push 0x7ee
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
push str.InitServerComponent_failed.__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, ebx
jmp 0x422c8e
push 0
push 0
push 0x7eb
jmp 0x422c29
push 0
push 0
push 0x7e9
jmp 0x422c29
push 0x3ff
lea eax, [esp + 0x15]
push 0
push eax
mov byte [esp + 0x1c], 0
call fcn.0045eb50
push ebp
push edi
push esi
push ebx
lea ecx, [esp + 0x2c]
push str.InitServerComponent_failed._nPort:_d__hCallerWnd:_d__nServerType:_d__nLanguage:_d_n
push ecx
call fcn.0045f1a1
add esp, 0x24
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
mov ecx, dword [esp + 0x410]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045e17e
add esp, 0x404
ret 0x14

Function at 0x422f90
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x482348
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4b445c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x24]
call fcn.00422ed0
mov dword [esp + 0x14], 0
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add esi, 0x20c
push esi
push 0x200
push edi
push 0x48a0f8
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
test esi, esi
jne 0x422ffd
mov edx, dword [esp + 0x28]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00422ef0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0x10