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

Disassembly:
push ebx
push esi
push 0x74ba10
push 0x87
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x453dd1
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x453dd8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 0x347
jne 0x453dd8
push eax
mov eax, dword [esp + 0x14]
push edi
push eax
call fcn.005645b0
add esp, 0xc
pop edi
pop esi
lea eax, [ebx + 1]
pop ebx
ret 4
pop esi
mov eax, ebx
pop ebx
ret 4
pop edi
pop esi
mov eax, ebx
pop ebx
ret 4

Function at 0x453ee0
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x72a9f0
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x80100c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x144], ecx
movzx ecx, word [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor eax, eax
push 0x74ba10
push ecx
push eax
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x453fa9
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x148], eax
test eax, eax
je 0x453fa9
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, dword [edi + 0x80]
mov esi, eax
mov dword [ebp - 0x13c], esi
cmp edi, esi
je 0x453fcd
push 0xff
lea edx, [ebp - 0x137]
push 0
push edx
mov byte [ebp - 0x138], 0
call fcn.00563860
push edi
push esi
lea eax, [ebp - 0x138]
push 0x74ba18
push eax
call fcn.00453eb0
add esp, 0x1c
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005635df
mov esp, ebp
pop ebp
ret 0xc
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x454012
mov edx, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x148]
push 0
lea ecx, [ebp - 0x13c]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x144]
push ebx
mov byte [ebp - 0x38], 0
mov dword [ebp - 0x37], eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
call fcn.00453de0
mov edx, dword [ebp - 0x14c]
push 0x21
add edx, 0x84
push edx
lea eax, [ebp - 0x38]
push eax
call fcn.005664d0
add esp, 0xc
test eax, eax
je 0x45406b
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x453fa9
mov dword [ebp - 0x140], 1
jmp 0x453fa9
Function at 0x45a700
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
push esi
push 0x74bb74
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x45a71a
pop esi
pop ebp
pop ecx
ret
push ebx
push edi
push str.LoadLibraryExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [esp + 0x18]
mov edi, eax
push 0x74bb60
push ebx
mov dword [esp + 0x18], edi
call fcn.00567147
add esp, 8
test eax, eax
je 0x45a766
test edi, edi
je 0x45a757
push 8
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
test edi, edi
je 0x45a78c
push 0x74bb50
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45a78c
push 0x800
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
test edi, edi
je 0x45a840
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45a7a5
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [0x7fbab4]
mov esi, eax
add esp, 4
test esi, esi
je 0x45a836
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x45a836
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45a7d3
sub eax, edx
mov ecx, 0x5c
mov word [eax + esi], cx
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45a7f0
sub eax, edx
lea edx, [eax + esi]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x45a800
mov eax, dword [esp + 0x10]
test eax, eax
je 0x45a82d
push 8
push 0
push esi
call eax
push esi
mov ebp, eax
call dword [0x7fbab8]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push esi
call dword [0x7fbab8]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret

Function at 0x45a850
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x80100c]
xor eax, esp
mov dword [esp + 0x190], eax
test byte [esp + 0x198], 2
je 0x45a8af
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x45a895
mov eax, dword [esp]
cmp al, 2
jne 0x45a88f
shr eax, 8
cmp al, 2
je 0x45a8af
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.005635df
add esp, 0x194
ret
push 0x74bb90
call fcn.0045a700
add esp, 4
mov dword [0x80e18c], eax
test eax, eax
je 0x45a8da
push 0x74bb80
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45a8da
mov dword [0x80e190], eax
push 3
push 2
push 0
push 6
call fcn.0046d550
add esp, 0x10
neg eax
sbb eax, eax
neg eax
push 0x8148c0
mov dword [0x8148c8], eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [esp + 0x190]
xor ecx, esp
xor eax, eax
call fcn.005635df
add esp, 0x194
ret
Function at 0x463a20
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x463a63
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 0x2733
sete cl
mov dword [edx], 0
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x19
add eax, 0x38
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x463ae0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp dword [esi + 0xbf4], edi
je 0x463b75
cmp dword [esi + 0x618], edi
je 0x463b35
push 1
push esi
call fcn.00461a20
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x618]
push edx
push eax
push esi
call ecx
push 0
push esi
mov edi, eax
call fcn.00461a20
add esp, 0x24
mov eax, edi
pop edi
pop esi
ret
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x463b75
cmp eax, 2
jg 0x463b75
mov edx, dword [esi + 0x5a8]
push edx
push 1
lea eax, [eax + eax*2 + 0x74c6fc]
push 2
push eax
call fcn.005652ee
mov ecx, dword [esi + 0x5a8]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
push 1
push edx
push eax
call fcn.005652ee
add esp, 0x20
mov eax, edi
pop edi
pop esi
ret

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

Disassembly:
mov edx, dword [ebx + 0x5f0]
push ebp
mov ebp, dword [ebx + eax*4 + 0x420]
mov ecx, eax
shl ecx, 4
push esi
lea esi, [ecx + ebx + 0x448]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x40], 3
je 0x4640b3
cmp dword [ebx + eax*4 + 0x438], 0x463d20
jne 0x4640b3
cmp dword [esi], 0
je 0x46404e
test edi, edi
je 0x4640b3
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.0048b0f0
add esp, 0x14
cmp eax, 0xffffffff
je 0x4640b3
test al, 1
je 0x4640b3
cmp dword [esi], 0
jne 0x46409c
mov eax, dword [ebx]
mov eax, dword [eax + 0x974]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x7fbab4]
xor ecx, ecx
add esp, 4
mov dword [esi], eax
cmp eax, ecx
jne 0x464093
pop edi
pop esi
lea eax, [ecx + 0x1b]
pop ebp
ret
mov edi, dword [esi + 4]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
add ecx, dword [esi + 8]
push 0
push edi
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4640b3
add dword [esi + 8], eax
pop edi
pop esi
xor eax, eax
pop ebp
ret
Function at 0x4640c0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x104
mov eax, dword [0x80100c]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
mov ebp, dword [ebx + eax*4 + 0x420]
push esi
mov esi, dword [esp + 0x124]
push edi
mov edi, dword [esp + 0x120]
call fcn.00464010
test eax, eax
je 0x46410f
mov dword [esi], 0x1b
or eax, 0xffffffff
jmp 0x464179
mov eax, dword [esp + 0x124]
push 0
push eax
push edi
push ebp
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov dword [esi], 0
cmp edi, 0xffffffff
jne 0x464177
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x464148
xor edi, edi
mov dword [esi], 0x51
jmp 0x464177
push 0x100
lea ecx, [esp + 0x14]
push ecx
push ebp
call fcn.00491d10
mov edx, dword [ebx]
push eax
push 0x74c7a8
push edx
call fcn.00463c60
mov eax, dword [ebx]
mov dword [eax + 0xeb4], ebp
add esp, 0x18
mov dword [esi], 0x37
mov eax, edi
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005635df
add esp, 0x104
ret

Function at 0x466000
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push eax
call fcn.00465fe0
add esp, 4
mov dword [esp + 0xc], eax
jmp fcn.0057117a

Function at 0x467170
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + eax]
mov ebx, 0x1505
cmp esi, edi
jae 0x467160
movzx eax, byte [esi]
push eax
call fcn.0046b140
mov edx, ebx
shl edx, 5
movsx ecx, al
add edx, ebx
xor ecx, edx
inc esi
add esp, 4
mov ebx, ecx
cmp esi, edi
jb 0x467141
pop edi
pop esi
movzx eax, bl
pop ebx
ret
push ecx
push esi
mov esi, eax
test esi, esi
je 0x46719d
call fcn.00466f80
test eax, eax
jne 0x46719d
lea eax, [esp + 4]
push eax
call fcn.004670d0
add esp, 4
mov ecx, eax
mov eax, dword [esp + 4]
pop esi
add esp, 4
jmp 0x467130
xor eax, eax
pop esi
pop ecx
ret

Function at 0x468c80
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0xc28], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x468cbe
push edi
push 0x74d0e4
push esi
call fcn.00463b80
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0xb40]
push edx
mov dword [esp + 0xc], 1
call fcn.00465fd0
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xb44]
push eax
call fcn.00465fd0
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x468d37
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push 0x74d0b4
push esi
call fcn.00463b80
add esp, 0x10
add esp, 0x14
ret
Function at 0x469640
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x80100c]
xor eax, esp
mov dword [esp + 0x184], eax
push esi
mov esi, dword [esp + 0x190]
push edi
push 0x80
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x14], 0x80
call fcn.00563860
mov eax, dword [esp + 0x1a4]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4696d9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x100
lea ecx, [esp + 0x90]
mov edi, eax
push ecx
push edi
call fcn.00491d10
mov edx, dword [esi]
push eax
push edi
push 0x74d158
push edx
call fcn.00463c60
add esp, 0x1c
pop edi
pop esi
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.005635df
add esp, 0x188
ret
mov edx, dword [esp + 8]
lea eax, [esi + 0x3d4]
push eax
lea ecx, [esi + 0x3a4]
push ecx
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00469480
add esp, 0x10
test eax, eax
jne 0x469736
push ebx
call fcn.00566f79
mov edi, eax
call fcn.00566f79
mov edx, dword [edi]
push 0x100
lea ecx, [esp + 0x94]
push ecx
push edx
mov ebx, eax
call fcn.00491d10
mov ecx, dword [esi]
push eax
mov eax, dword [ebx]
push eax
push 0x74d288
push ecx
call fcn.00463c60
add esp, 0x1c
pop ebx
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
xor ecx, esp
call fcn.005635df
add esp, 0x188
ret

Function at 0x469900
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x108
mov eax, dword [0x80100c]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push esi
mov esi, dword [eax]
push 4
lea eax, [esp + 8]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x469961
push 0x100
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00491d10
push eax
push 0x74d2d4
push esi
call fcn.00463b80
add esp, 0x18
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.005635df
add esp, 0x108
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x474], 0
je 0x469a3d
push eax
call fcn.0045b670
add esp, 4
test eax, eax
jne 0x469a5d
xor eax, eax
ret
mov eax, dword [eax + 0x420]
cmp eax, 0xffffffff
je 0x469a3a
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x469a5d
ret
mov eax, 1
ret
Function at 0x46b760
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
mov dword [eax], 0
mov eax, dword [esp + 0x1c]
push edx
push eax
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x46b903
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x46b8e1
push ebx
push ebp
push esi
mov eax, dword [edi + 0x14]
test eax, eax
je 0x46b7ce
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46b7c0
sub eax, edx
lea ebx, [eax + 1]
jmp 0x46b7d0
xor ebx, ebx
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x46b7dd
lea ebp, [eax + 0xe]
jmp 0x46b7e9
cmp eax, 0x17
jne 0x46b884
lea ebp, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x46b884
mov eax, dword [edi + 0x10]
test eax, eax
jbe 0x46b884
cmp eax, ebp
jb 0x46b884
lea edx, [ebx + ebp + 0x20]
push edx
call dword [0x7fbab4]
mov esi, eax
xor eax, eax
add esp, 4
cmp esi, eax
je 0x46b891
mov ecx, dword [edi]
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x20]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ebp
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x18]
push ebp
push ecx
push eax
call fcn.005645b0
add esp, 0xc
test ebx, ebx
je 0x46b86a
mov edx, dword [esi + 0x18]
lea eax, [edx + ebp]
mov dword [esi + 0x14], eax
mov ecx, dword [edi + 0x14]
push ebx
push ecx
push eax
call fcn.005645b0
add esp, 0xc
cmp dword [esp + 0x10], 0
jne 0x46b875
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x46b880
mov dword [eax + 0x1c], esi
mov dword [esp + 0x18], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x46b7b3
jmp 0x46b899
mov dword [esp + 0x14], 8
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
pop ebx
test eax, eax
je 0x46b8ab
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 8], 0
je 0x46b8da
mov edx, dword [esp + 4]
push edx
call fcn.0046b730
mov ecx, dword [esp + 0x28]
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
add esp, 4
mov dword [ecx], eax
mov eax, dword [esp + 8]
pop edi
add esp, 0x10
ret
cmp dword [esp + 4], 0
jne 0x46b8f4
push 0x2af9
mov dword [esp + 0xc], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
mov eax, dword [esp + 8]
pop edi
add esp, 0x10
ret
Function at 0x46d2d0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.00565ed6
add esp, 0x18
test eax, eax
je 0x46d2f3
cmp eax, 0xffffffff
jne 0x46d2f5
xor eax, eax
ret

Function at 0x46d530
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x5f8], 2
jne 0x46d546
mov dword [esp + 4], eax
jmp fcn.0046d4e0
mov eax, 1
ret

Function at 0x46d8d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1b8
mov eax, dword [0x80100c]
xor eax, esp
mov dword [esp + 0x1b4], eax
cmp dword [0x80e284], 0
push esi
mov esi, ecx
mov dword [esp + 0x18], esi
jne 0x46d907
call fcn.0046d8c0
test eax, eax
je 0x46d91f
mov dword [0x80e284], 1
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1b4]
xor ecx, esp
call fcn.005635df
add esp, 0x1b8
ret
mov eax, dword [esi + 0xa50]
test eax, eax
je 0x46d940
push 0x400
push eax
call fcn.0049d160
add esp, 8
call fcn.0046d8c0
test eax, eax
jne 0x46d907
push ebx
push ebp
push edi
mov esi, 2
lea edi, [esp + 0x84]
mov dword [esp + 0x20], 4
jmp 0x46d960
lea eax, [esp + 0x34]
push eax
call fcn.0046d340
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
push 0
push 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
call fcn.0048ad00
add esp, 0xc
push ebp
push ebx
lea eax, [esi - 1]
push 0
push eax
call fcn.00567c80
lea ecx, [esp + 0x74]
mov ebx, esi
imul ebx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
call fcn.0046d340
mov eax, dword [eax + 8]
cdq
mov dword [esp + 0x34], edx
lea edx, [esp + 0x68]
push edx
mov ebp, eax
call fcn.0046d340
mov ecx, dword [esp + 0x38]
add esp, 8
add ebp, dword [eax]
push 0
adc ecx, dword [eax + 4]
lea edx, [esi + 1]
push edx
push ecx
push ebp
mov dword [esp + 0x38], edx
call fcn.00567c80
shld edx, eax, 8
xor dword [esp + 0x14], edx
shl eax, 8
xor dword [esp + 0x10], eax
lea eax, [esp + 0x44]
push eax
call fcn.0046d340
lea ecx, [esp + 0x58]
push ecx
lea ebp, [eax + 8]
call fcn.0046d340
mov edx, dword [ebp]
add edx, dword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add esi, 2
imul edx, esi
mov esi, dword [esp + 0x30]
shl edx, 0x10
mov dword [edi], eax
xor ebx, edx
mov edx, dword [esp + 0x24]
mov dword [edi + 4], ecx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], edx
add esp, 8
add edi, 0x10
sub dword [esp + 0x20], 1
jne 0x46d960
fld qword [0x74d6f0]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x8c]
push 0x40
push eax
call fcn.0049cfd0
add esp, 0x10
call fcn.0046d8c0
test eax, eax
je 0x46d943
lea ecx, [esp + 0xc4]
push 0x100
push ecx
mov byte [esp + 0xcc], 0
call fcn.0049d2c0
add esp, 8
cmp byte [esp + 0xc4], 0
pop edi
pop ebp
pop ebx
je 0x46dab9
lea edx, [esp + 0xb8]
push 0x400
push edx
call fcn.0049d160
add esp, 8
call fcn.0046d8c0
test eax, eax
jne 0x46d907
mov eax, dword [esp + 0x18]
push 0x74d6c4
push eax
call fcn.00463b80
add esp, 8
call fcn.0046d8c0
mov ecx, dword [esp + 0x1b8]
neg eax
sbb eax, eax
and eax, 0xffffffdd
pop esi
xor ecx, esp
add eax, 0x23
call fcn.005635df
add esp, 0x1b8
ret
Function at 0x4741c0
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
push esi
xor ebp, ebp
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x7fbabc]
mov edi, eax
add esp, 8
test edi, edi
je 0x474188
lea ebx, [ebx]
mov eax, dword [esp + 0x14]
push esi
push edi
push eax
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x4741a0
cmp esi, ebx
je 0x4741a0
cmp esi, 0x8000
ja 0x4741a0
cmp esi, ebx
jb 0x474199
push esi
push edi
call dword [0x7fbabc]
mov edi, eax
add esp, 8
test edi, edi
jne 0x474150
push ebp
call dword [0x7fbab8]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x7fbab8]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
jmp 0x474130
Function at 0x479410
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push 0x74fd9c
push 0x74c580
push ecx
call fcn.00463b80
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.00478400
test eax, eax
jne 0x479440
mov ecx, esi
jmp fcn.004788a0
ret
Function at 0x479900
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x90
mov eax, dword [0x80100c]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x9c]
mov ebx, dword [ebp + 0x690]
push esi
push edi
mov edi, dword [ebp]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
mov edx, dword [ebx + 0x154]
mov eax, dword [ebx + 0x15c]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [ebx + 0x14]
push 0
add edx, 4
lea esi, [ebx + 0x15c]
push edx
push eax
push ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], edi
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [ebx + 0x148], 0
mov dword [ebx + 0x14c], eax
jne 0x479997
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [ebx + 0xc8]
push ecx
call fcn.005645b0
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [ebx + 0x148], edx
mov edx, dword [ebx + 0x14c]
cmp edx, 4
jge 0x4799d2
push 0x74fea8
push edi
call fcn.00463c60
add esp, 8
mov dword [ebx + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005635df
add esp, 0x90
ret
mov eax, esi
call fcn.004785b0
movzx eax, ax
mov dword [ebx + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x4799eb
jmp dword [eax*4 + 0x479afc]
cmp edx, 4
jle case.0x4799eb.4
mov eax, esi
call fcn.004785c0
movzx ecx, word [ebx + 0x40]
inc ecx
cmp cx, ax
jne case.0x4799eb.4
add edx, 0xfffffffc
push edx
mov edx, dword [esi]
add edx, 4
push edx
push 1
push ebp
call fcn.00463fd0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x479a3e
mov ecx, 5
mov eax, ebx
call fcn.00479870
mov eax, esi
jmp 0x4799b9
mov eax, dword [ebx + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x98], eax
mov ecx, dword [edi + 0x98]
adc dword [edi + 0x9c], edx
mov eax, dword [edi + 0x9c]
push eax
push ecx
push edi
call fcn.00472db0
add esp, 0xc
jmp case.0x4799eb.4
mov ebp, dword [esi]
mov eax, esi
add ebp, 4
lea edi, [edx - 4]
call fcn.004785c0
movzx edx, ax
mov esi, ebp
mov dword [ebx + 8], edx
call fcn.004785d0
cmp eax, edi
jae 0x479aa0
mov eax, dword [esp + 0x18]
push ebp
push 0x74fe98
push eax
call fcn.00463b80
add esp, 0xc
mov ebp, dword [esp + 0x14]
push ebp
call fcn.004737e0
add esp, 4
test eax, eax
je 0x4799b7
mov ecx, 5
mov eax, ebx
call fcn.00479870
mov eax, 0x2a
jmp 0x4799b9
mov ecx, dword [esi]
add edx, 0xfffffffe
push edx
add ecx, 2
push ecx
push ebx
call fcn.00478650
add esp, 0xc
test eax, eax
je case.0x4799eb.4
jmp 0x4799b9
push 0x74fe74
push 0x74def4
push edi
call fcn.00463c60
add esp, 0xc
jmp case.0x4799eb.4

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

Disassembly:
push ecx
mov edx, dword [edi + 0x420]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x479ec4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x750278
push esi
call fcn.00463c60
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push 0x750270
mov eax, ebx
call fcn.00479d80
add esp, 4
pop esi
pop ecx
ret