joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4284c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4284e4
xor eax, eax
jmp 0x428564
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4284fb
xor eax, eax
jmp 0x428564
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x428547
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x428547
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x42851e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x428553
xor eax, eax
jmp 0x428564
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x428561
xor eax, eax
jmp 0x428564
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x429a90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4e500c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x230], ecx
mov ax, word [0x4da934]
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.00487cb0
add esp, 0xc
mov byte [ebp - 0x235], 0
mov byte [ebp - 0x236], 0
xor edx, edx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x214], edx
mov dword [ebp - 0x210], edx
xor eax, eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp + 8]
push ecx
push str.CUNSvcLaunchUrNotice::InformRegUpdatedToUrNotice_on_session___d_...
push 0x4e7f50
call fcn.00427440
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
mov ecx, dword [ebp - 0x230]
call fcn.0042ac00
test eax, eax
jne 0x429b56
push str.CUNSvcLaunchUrNotice::InformRegUpdatedToUrNotice_failed_to_get_UNUpdObs.exe_path
push 0x4e7f50
call fcn.00427440
add esp, 8
jmp 0x429c8e
lea eax, [ebp - 0x20c]
push eax
push str.UNUpdObs_path_is___s_
push 0x4e7f50
call fcn.00427440
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x429b97
push str.UNUpdObs_is_not_exist.
push 0x4e7f50
call fcn.00427440
add esp, 8
jmp 0x429c8e
lea edx, [ebp - 0x20c]
push edx
push str.check_code_signing_of_UNUpdObs
push 0x4e7f50
call fcn.00427440
add esp, 0xc
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.00426000
add esp, 8
test eax, eax
jne 0x429bdc
push str.UNUpdObs_is_not_trusted.
push 0x4e7f50
call fcn.00427440
add esp, 8
jmp 0x429c8e
push 0x4dabf0
lea ecx, [ebp - 0x20c]
push ecx
push str.Launch_UNUpdObs___s__with___s_
push 0x4e7f50
call fcn.00427440
add esp, 0x10
mov dword [ebp - 0x234], 0
jmp 0x429c15
mov edx, dword [ebp - 0x234]
add edx, 1
mov dword [ebp - 0x234], edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x234]
cmp ecx, dword [eax]
ja 0x429c8e
push str._inform_reg_updated
lea edx, [ebp - 0x20c]
push edx
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.0042ade0
test eax, eax
je 0x429c4c
jmp 0x429c8e
mov ecx, dword [ebp - 0x230]
mov edx, dword [ebp - 0x234]
cmp edx, dword [ecx]
jae 0x429c6e
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x429c89
lea edx, [ebp - 0x20c]
push edx
push str.CUNSvcLaunchUrNotice::InformRegUpdatedToUrNotice_failed_to_launch___s_
push 0x4e7f50
call fcn.00427440
add esp, 0xc
jmp 0x429c8e
jmp 0x429c06
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a792
mov esp, ebp
pop ebp
ret 4
Function at 0x42a540
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4e500c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], ecx
push str.CUNSvcLaunchUrNotice::DeleteDownloadTempFile__...
push 0x4e7f50
call fcn.00427440
add esp, 8
mov ax, word [0x4db2f4]
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.00487cb0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
mov ecx, dword [ebp - 0x214]
call fcn.0042aa10
test eax, eax
jne 0x42a5bf
push 0x4db2f8
push 0x4e7f50
call fcn.00427440
add esp, 8
xor eax, eax
jmp 0x42a631
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42a5d7
mov eax, 1
jmp 0x42a631
mov dword [ebp - 0x210], 0
jmp 0x42a5f2
mov ecx, dword [ebp - 0x210]
add ecx, 1
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x214]
mov eax, dword [ebp - 0x210]
cmp eax, dword [edx + 0x10]
ja 0x42a61d
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x42a61b
mov eax, 1
jmp 0x42a631
jmp 0x42a5e3
push str.CUNSvcLaunchUrNotice::DeleteDownloadTempFile_failed.
push 0x4e7f50
call fcn.00427440
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a792
mov esp, ebp
pop ebp
ret
Function at 0x42b2a0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
push str.makeDir__s_.
push 0x4e7f50
call fcn.00427440
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42b2e9
mov edx, dword [ebp + 8]
push edx
call fcn.00497ff4
add esp, 4
test eax, eax
je 0x42b2e9
mov ecx, 0x4e7f50
call fcn.004276f0
xor al, al
jmp 0x42b2eb
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x42ddb0
Capabilities:
Enumerate process modules
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x4e500c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x464], ecx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x450], 0xffffffff
jne 0x42dde7
jmp 0x42dfc5
mov dword [ebp - 0x440], 0x22c
lea eax, [ebp - 0x440]
push eax
mov ecx, dword [ebp - 0x450]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x42dfb8
mov dword [ebp - 0x44c], str.UrNotice.exe
lea edx, [ebp - 0x41c]
mov dword [ebp - 0x448], edx
mov eax, dword [ebp - 0x448]
mov cx, word [eax]
mov word [ebp - 0x452], cx
mov edx, dword [ebp - 0x44c]
cmp cx, word [edx]
jne 0x42de89
cmp word [ebp - 0x452], 0
je 0x42de7d
mov eax, dword [ebp - 0x448]
mov cx, word [eax + 2]
mov word [ebp - 0x454], cx
mov edx, dword [ebp - 0x44c]
cmp cx, word [edx + 2]
jne 0x42de89
add dword [ebp - 0x448], 4
add dword [ebp - 0x44c], 4
cmp word [ebp - 0x454], 0
jne 0x42de23
mov dword [ebp - 0x458], 0
jmp 0x42de94
sbb eax, eax
or eax, 1
mov dword [ebp - 0x458], eax
mov ecx, dword [ebp - 0x458]
mov dword [ebp - 0x45c], ecx
cmp dword [ebp - 0x45c], 0
je 0x42deae
jmp 0x42df9c
mov edx, dword [ebp - 0x438]
push edx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x444], 0
je 0x42df9c
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x214], 0
lea eax, [ebp - 0x210]
push eax
push 4
lea ecx, [ebp - 0x214]
push ecx
mov edx, dword [ebp - 0x444]
push edx
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
jne 0x42df0f
jmp 0x42df9c
mov ax, word [0x4dc7bc]
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.00487cb0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [ebp - 0x444]
push ecx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
mov dword [ebp - 0x460], eax
cmp dword [ebp - 0x460], 0
jne 0x42df63
jmp 0x42df9c
push 0
lea edx, [ebp - 0x20c]
push edx
call fcn.00426000
add esp, 8
test eax, eax
jne 0x42df7a
jmp 0x42df9c
push 0
mov eax, dword [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 0x468], eax
mov ecx, dword [ebp - 0x444]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x440]
push edx
mov eax, dword [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x42de0d
mov ecx, dword [ebp - 0x450]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a792
mov esp, ebp
pop ebp
ret
Function at 0x43a560
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x50], 0
jne 0x43a577
xor eax, eax
jmp 0x43a606
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x50]
push edx
push str.UNSvcSessionThread__d_::Starting_session_thread...
push 0x4e7f50
call fcn.00427440
add esp, 0xc
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.00439bc0
test eax, eax
jne 0x43a5b5
push str.Failed_CreateEvent.
push 0x4e7f50
call fcn.00427440
add esp, 8
xor eax, eax
jmp 0x43a606
mov eax, dword [ebp - 4]
cmp dword [eax + 0x54], 0
jne 0x43a601
mov ecx, dword [ebp - 4]
add ecx, 0x58
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
push 0x43a140
push 0
push 0
call fcn.00499f3c
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x54], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x54], 0
jne 0x43a601
push str.Failed_to_begin_thread.
push 0x4e7f50
call fcn.00427440
add esp, 8
xor eax, eax
jmp 0x43a606
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x43d7c0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4e500c]
xor eax, esp
mov dword [esp + 0x190], eax
mov eax, dword [0x4e7234]
mov ecx, eax
inc eax
mov dword [0x4e7234], eax
test ecx, ecx
je 0x43d7fc
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0043a792
add esp, 0x194
ret
cmp byte [esp + 0x19c], 0
je 0x43d838
mov dword [fcn.00497fe8], 0x497fe8
mov dword [fcn.0048c5e4], 0x48c5e4
mov dword [fcn.0048b0b2], 0x48b0b2
mov dword [0x4e5084], 0x4b16be
mov dword [fcn.0049d651], 0x49d651
push ebx
call fcn.0044a330
test eax, eax
je 0x43d87a
mov ebx, dword [esp + 0x19c]
test bl, 2
je 0x43d89d
lea eax, [esp + 4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x43d87a
mov eax, dword [esp + 4]
cmp al, 2
jne 0x43d895
shr eax, 8
cmp al, 2
jne 0x43d895
call fcn.00448f10
test eax, eax
je 0x43d89d
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0043a792
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x43d87a
call fcn.0043b6d0
test eax, eax
jne 0x43d87a
call fcn.00447030
mov eax, dword [0x4e734c]
test bl, 4
mov ecx, 1
mov dword [0x4e7238], ebx
cmovne eax, ecx
mov dword [0x4e734c], eax
call fcn.00452e50
mov ecx, dword [esp + 0x194]
xor eax, eax
pop ebx
xor ecx, esp
call fcn.0043a792
add esp, 0x194
ret
Function at 0x445630
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x18
mov eax, dword [0x4e500c]
xor eax, esp
mov dword [esp + 0x14], eax
push edi
mov edi, dword [esp + 0x20]
test edi, edi
je 0x44570a
lea eax, [esp + 4]
push eax
push edi
push 2
call fcn.00460210
add esp, 0xc
test eax, eax
jne 0x44570a
lea eax, [esp + 8]
push eax
push edi
push 0x17
call fcn.00460210
add esp, 0xc
test eax, eax
jne 0x44570a
push ebx
push ebp
push esi
mov esi, edi
xor ebx, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x445685
sub esi, ecx
push esi
push 0x2e
push edi
call fcn.004601e0
add esp, 0xc
test eax, eax
je 0x4456b9
sub eax, edi
push eax
push 0x2e
push edi
call fcn.004601e0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4456bb
inc ebx
mov ecx, edi
sub ecx, ebx
add esi, ecx
test ebx, ebx
cmovne edi, ebx
xor ecx, ecx
xor ebp, ebp
mov ebx, 0x1505
lea eax, [esi + edi]
cmp edi, eax
cmova esi, ecx
test esi, esi
je 0x4456f4
mov al, byte [edi]
push eax
call fcn.00452f60
movsx ecx, al
lea edi, [edi + 1]
mov eax, ebx
inc ebp
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp ebp, esi
jb 0x4456d3
pop esi
pop ebp
movzx eax, bl
pop ebx
pop edi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0043a792
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop edi
xor ecx, esp
call fcn.0043a792
add esp, 0x18
ret

Function at 0x447030
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [0x4e508c]
cmp eax, 0xffffffff
jne 0x447072
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x447058
xor eax, eax
test eax, eax
mov dword [0x4e508c], eax
setg al
ret
push eax
push 0
mov dword [0x4e508c], 1
call fcn.004511a0
mov eax, dword [0x4e508c]
add esp, 8
test eax, eax
setg al
ret

Function at 0x447080
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x2d0], 2
jne 0x4470d5
mov eax, dword [0x4e508c]
cmp eax, 0xffffffff
jne 0x4470cf
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x4470b5
xor eax, eax
test eax, eax
mov dword [0x4e508c], eax
setg al
ret
push eax
push 0
mov dword [0x4e508c], 1
call fcn.004511a0
mov eax, dword [0x4e508c]
add esp, 8
test eax, eax
setg al
ret
mov al, 1
ret
Function at 0x450630
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x628], 0
je 0x450674
push esi
push 1
push edi
call fcn.00441560
push dword [edi + 0x5b4]
mov eax, dword [edi + 0x628]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.00441560
add esp, 0x24
mov eax, esi
pop esi
pop edi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x4506ad
push dword [edi + 0x5b0]
lea eax, [eax + eax*2]
push 1
add eax, 0x4b9240
push 2
push eax
call fcn.0049e1c7
push dword [edi + 0x5b0]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.0049e1c7
add esp, 0x20
xor eax, eax
pop edi
ret

Function at 0x450dd0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, 0x1cc
mov ecx, dword [edi + 0x1ac]
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x1a8]
mov ebp, dword [eax + edi]
mov eax, 0x1dc
cmove esi, eax
mov eax, dword [edi + 0x2c8]
add esi, edi
mov ebx, dword [esi + 4]
sub ebx, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x450ea8
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x1bc]
cmp dword [eax + edi], 0x450a20
jne 0x450ea8
cmp dword [esi], 0
je 0x450e38
test ebx, ebx
je 0x450ea8
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.004501f0
add esp, 0x14
cmp eax, 0xffffffff
je 0x450ea8
test al, 1
je 0x450ea8
mov ecx, dword [esi]
test ecx, ecx
jne 0x450e88
mov eax, dword [edi]
mov eax, dword [eax + 0x920]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x4e5078]
mov ebx, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x450ea1
mov eax, dword [esi + 8]
push 0
push ebx
add eax, ecx
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x450ea8
add dword [esi + 8], eax
jmp 0x450ea8
mov dword [esi + 4], 0
push 0
push dword [esp + 0x24]
push dword [esp + 0x24]
push ebp
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x450f11
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x450ee2
mov ecx, dword [esp + 0x24]
lea eax, [ebx + 0x52]
pop edi
pop esi
pop ebp
mov dword [ecx], 0
pop ebx
ret
push esi
push edi
call fcn.004792c0
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.004506c0
mov eax, dword [edi]
add esp, 0x14
mov ecx, dword [esp + 0x24]
pop edi
mov dword [eax + 0xd5c], esi
mov eax, 0x37
pop esi
pop ebp
mov dword [ecx], ebx
pop ebx
ret
mov ecx, dword [esp + 0x24]
xor eax, eax
pop edi
pop esi
pop ebp
mov dword [ecx], ebx
pop ebx
ret
Function at 0x460540
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [eax], ebx
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x4606d2
push ebp
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4606bc
push esi
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x46058f
lea ebp, [eax + 0xe]
jmp 0x46059b
cmp eax, 0x17
jne 0x460649
lea ebp, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x460649
mov eax, dword [edi + 0x10]
test eax, eax
je 0x460649
cmp eax, ebp
jb 0x460649
push 0x20
call dword [0x4e5078]
mov esi, eax
add esp, 4
test esi, esi
je 0x4606b1
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push ebp
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebp
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x4e5078]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x4606a0
push ebp
push dword [edi + 0x18]
push eax
call fcn.00487e50
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x460635
push eax
call dword [0x4e5084]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x460686
mov eax, dword [esp + 0x10]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x460645
mov dword [eax + 0x1c], esi
mov dword [esp + 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x460582
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
je 0x460668
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x4606b8
push ebx
call fcn.00460500
mov eax, dword [esp + 0x2c]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, ebp
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
push dword [esi + 0x18]
mov ebp, 8
call dword [0x4e507c]
push esi
call dword [0x4e507c]
add esp, 8
jmp 0x460658
push esi
mov ebp, 8
call dword [0x4e507c]
add esp, 4
jmp 0x460658
mov ebp, 8
jmp 0x460658
test ebx, ebx
jne 0x4606c8
mov ebp, 0x2af9
push ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x462140
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x4bb9dc
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x46215a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x4bb9f8
push esi
call fcn.0049fdf0
add esp, 8
test eax, eax
je 0x4621a2
test ebp, ebp
je 0x462193
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x4621c8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4621c8
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x46227f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4621e5
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x4e5078]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x462275
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x462275
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x462217
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x462230
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x462240
test ebp, ebp
je 0x46226c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x4e507c]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x4e507c]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x465ae0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4e500c]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004a0012
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x465b45
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x465b45
lea eax, [esp]
push eax
call dword [0x4e5084]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0043a792
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor eax, eax
xor ecx, esp
call fcn.0043a792
add esp, 0x108
ret

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

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
mov byte [esp + 0x16], al
lea eax, [esp + 0x14]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x1a8]
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x46851c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.004506c0
add esp, 0xc
push dword [esp + 0x18]
push ebx
push str.SENT
push dword [esi]
call fcn.004680e0
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x468650
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
push ebp
mov eax, dword [eax]
mov dword [esp + 4], eax
mov ebp, dword [eax + 0x170]
jne 0x4687a0
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb0]
lea edi, [ebp + 0x1eb0]
mov dword [edi], ebx
cmp ebx, edi
jae 0x46868b
mov byte [ebx], 0xff
inc dword [edi]
mov eax, dword [edi]
jmp 0x46868d
mov eax, ebx
cmp eax, edi
jae 0x4686a1
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4686a1
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x1c], eax
movzx eax, word [ebp + 0x1caa]
push eax
call esi
mov edx, dword [esp + 0x1c]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x46870b
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x46870b
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x46870b
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x46870b
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x46870b
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x46870b
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov esi, dword [esp + 0x10]
mov dword [ebp + 0x1eb4], eax
sub eax, ebx
sub eax, 2
mov dword [edi], ebx
push eax
lea eax, [ebp + 0x1cb2]
push eax
push 0x3e
push esi
call fcn.004681e0
add esp, 0x10
push 0
push 3
push ebx
mov ebx, dword [esp + 0x24]
push dword [ebx + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x46875f
call edi
push eax
push str.Sending_data_failed___d_
push esi
call fcn.004506c0
add esp, 0xc
push 4
lea eax, [ebp + 0x1cb3]
push eax
push ebx
call fcn.00468540
add esp, 0xc
lea eax, [ebp + 0x1cb7]
push 0
push 2
push eax
push dword [ebx + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x46879d
call edi
push eax
push str.Sending_data_failed___d_
push esi
call fcn.004506c0
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret