joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4477cc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x46720c]
cmp byte [eax + 0xc], 0
je 0x447939
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x447932
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x468be8], 0
jne 0x447820
push 0x447940
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x447948
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468be8], eax
cmp dword [0x466b90], 0
jne 0x44791b
push 0x447958
call sub.kernel32.dll_LoadLibraryA
mov dword [0x466b90], eax
cmp dword [0x466b90], 0
je 0x44791b
push 0x447964
mov eax, dword [0x466b90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468bec], eax
push 0x447974
mov eax, dword [0x466b90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468bf0], eax
push 0x447988
mov eax, dword [0x466b90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468bf4], eax
push 0x4479a0
mov eax, dword [0x466b90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468bf8], eax
push 0x4479b8
mov eax, dword [0x466b90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468bfc], eax
push 0x4479cc
mov eax, dword [0x466b90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468c00], eax
push 0x4479e4
mov eax, dword [0x466b90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468c04], eax
push 0x4479fc
mov eax, dword [0x466b90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468c08], eax
push 0x447a18
mov eax, dword [0x466b90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468c0c], eax
push 0x447a24
mov eax, dword [0x466b90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468c10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x447939
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44b568
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004044cc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44b5b7
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404734
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4533f8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x453448]
test si, 4
je 0x45340c
or bl, 1
test si, 8
je 0x453416
or bl, 4
test si, 1
je 0x453420
or bl, 8
test si, 2
je 0x45342a
or bl, 0x10
test si, 0x10
je 0x453434
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453443
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45344c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x453484]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453465
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453474
or bl, 4
test esi, 0x20000000
je 0x45347f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x459a88
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x459a9a
add esp, 0xfffffff0
call fcn.00403a40
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e1a8
mov eax, dword [0x466ef4]
mov dword [eax + 4], ebx
mov dword [eax], 0x459e2c
mov eax, dword [0x466f00]
mov dword [eax + 4], ebx
mov dword [eax], 0x459e38
mov eax, ebx
call fcn.00459e44
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x413b28]
call fcn.004036ac
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x413b28]
call fcn.004036ac
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x413b28]
call fcn.004036ac
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x413b28]
call fcn.004036ac
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x413b28]
call fcn.004036ac
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x45630c
push eax
push 0
push 0
mov eax, dword [0x467048]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41fbd0]
call fcn.004212a4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41fbd0]
call fcn.004212a4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41fbd0]
call fcn.004212a4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045a264
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45a140
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45a140
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45a140
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x459bd7
call fcn.00403a98
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x459f24
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45a0cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45a0b0
mov dl, 1
mov eax, dword [0x414018]
call fcn.004036ac
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004044cc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45a09f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00447b2c
test al, al
je 0x45a092
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45a0e0
lea eax, [ebp - 0x254]
call fcn.00409564
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45a092
xor eax, eax
push ebp
push 0x45a08b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45a118
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45a074
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404734
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45a074
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404734
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a092
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x459f95
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00418260
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a0d6
lea eax, [ebp - 0x260]
call fcn.004044cc
ret

Function at 0x45aa04
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x468c2c]
cmp byte [eax + 0xa5], 0
jne 0x45aa75
cmp dword [0x468c44], 0
jne 0x45aa36
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45a9c0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x468c44], eax
cmp dword [0x468c40], 0
jne 0x45aa51
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x468c40], eax
cmp dword [0x468c48], 0
jne 0x45aa75
push esp
push 0
push 0
push 0x45a964
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x468c48], eax
pop edx
ret
Function at 0x45ab6c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45ab83
add esp, 0xfffffff0
call fcn.00403a40
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e1a8
mov eax, dword [0x467038]
cmp word [eax + 2], 0
jne 0x45abab
mov eax, dword [0x467038]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045c248
mov eax, dword [0x4670c8]
cmp word [eax + 2], 0
jne 0x45abc5
mov eax, dword [0x4670c8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045c440
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x413b28]
call fcn.004036ac
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x413b28]
call fcn.004036ac
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x420650]
call fcn.00427ae4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45ad4c
mov eax, dword [0x466f58]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00427eb4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45c9b0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x466f58]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cd0c
test eax, eax
je 0x45acba
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408ec0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cd34
test eax, eax
je 0x45acce
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404734
mov eax, dword [0x466e44]
cmp byte [eax], 0
jne 0x45ad02
mov eax, ebx
call fcn.0045ae74
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045cb8c
mov eax, ebx
call fcn.0045d4cc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45ad42
call fcn.00403a98
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b0e8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x468c2c]
cmp dword [eax + 0x30], 0
je 0x45b192
cmp dword [ebx + 0x94], 0
jne 0x45b18c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45b078
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45b18c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45b152
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45b18c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00416224
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45b161
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45bc70
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45bca5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004045bc
jmp 0x45bcb2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404520
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45cd68
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45cda9
mov eax, esi
call fcn.004432a8
test al, al
je 0x45cda9
mov eax, dword [ebx + 0x84]
call fcn.00442fa4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45cda9
push 0
mov eax, dword [ebx + 0x84]
call fcn.00442fa4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45d8a4
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff8c
mov edi, edx
mov esi, eax
lea ebx, [esp + 4]
lea eax, [esp + 0x20]
xor ecx, ecx
mov edx, 0x44
call fcn.00402ff0
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x4c], 0x41
mov word [esp + 0x50], di
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push esi
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x45d953
jmp 0x45d915
cmp dword [ebx + 4], 0x12
jne 0x45d909
mov eax, dword [ebx + 8]
call fcn.00404430
push ebx
call sub.user32.dll_TranslateMessage
push ebx
call sub.user32.dll_DispatchMessageA
push 1
push 0
push 0
push 0
push ebx
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x45d8fb
push esp
mov eax, dword [esp + 0x68]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [esp], 0x103
je 0x45d915
mov eax, dword [esp + 0x68]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp + 0x64]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
jmp 0x45d958
call sub.kernel32.dll_GetLastError_1
add esp, 0x74
pop edi
pop esi
pop ebx
ret
Function at 0x45dc14
Capabilities:
Resolve dns

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0040497c
mov esi, eax
push esi
call sub.wsock32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x45dc42
push esi
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x45dc3b
or eax, 0xffffffff
jmp 0x45dc42
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
pop esi
pop ebx
ret

Function at 0x45dec4
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, dword [ebp + 0x10]
mov byte [esi], 1
call fcn.0045dc14
mov edi, eax
cmp edi, 0xffffffff
je 0x45e03c
test bl, bl
je 0x45defc
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 0x1c], eax
jmp 0x45df0a
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x45e03c
xor eax, eax
push ebp
push 0x45e035
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x20], 0x2710
push 4
lea eax, [ebp - 0x20]
push eax
push 0x1006
push 0xffff
mov eax, dword [ebp - 0x1c]
push eax
call sub.wsock32.dll_setsockopt
inc eax
jne 0x45df4a
call fcn.0040c018
mov word [ebp - 0x34], 2
mov dword [ebp - 0x30], edi
mov ax, word [ebp - 4]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x32], ax
call fcn.0040a248
fstp qword [ebp - 0x10]
wait
test bl, bl
je 0x45dfb9
xor eax, eax
mov dword [ebp - 0x20], eax
push 0x10
lea eax, [ebp - 0x34]
push eax
push 0
push 4
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.wsock32.dll_sendto
inc eax
jne 0x45df92
call fcn.0040c018
mov dword [ebp - 0x20], 0x10
push 0
push 4
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.wsock32.dll_recv
cmp eax, 4
je 0x45dfb4
call fcn.0040c018
mov byte [esi], 0
jmp 0x45dfee
push 0x10
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.wsock32.dll_connect
inc eax
jne 0x45dfd0
call fcn.0040c018
push 0
push 4
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.wsock32.dll_recv
cmp eax, 4
je 0x45dfeb
call fcn.0040c018
mov byte [esi], 0
call fcn.0040a248
fstp qword [ebp - 0x18]
wait
fld qword [ebp - 0x18]
fsub qword [ebp - 0x10]
mov eax, dword [ebp + 8]
fstp qword [eax]
wait
mov eax, dword [ebp - 0x24]
call fcn.0045dda0
mov eax, dword [ebp + 8]
fld qword [eax]
fdiv dword [0x45e048]
faddp st(1)
mov eax, dword [ebp + 0xc]
fstp qword [eax]
wait
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e03c
mov eax, dword [ebp - 0x1c]
push eax
call sub.wsock32.dll_closesocket
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45e0a0
Capabilities:
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov byte [esi], 1
mov eax, dword [ebp - 4]
call fcn.0045dc14
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45e22e
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x45e22e
xor eax, eax
push ebp
push 0x45e227
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x34], 0x2710
push 4
lea eax, [ebp - 0x34]
push eax
push 0x1006
push 0xffff
mov eax, dword [ebp - 0xc]
push eax
call sub.wsock32.dll_setsockopt
inc eax
jne 0x45e118
call fcn.0040c018
call fcn.0040a248
fstp qword [ebp - 0x18]
wait
lea eax, [ebp - 0x64]
xor ecx, ecx
mov edx, 0x30
call fcn.00402ff0
lea eax, [ebp - 0x64]
push eax
mov cl, 3
mov dl, 3
xor eax, eax
call fcn.0045e084
call fcn.0040a248
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x7c]
call fcn.0045de44
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x38], eax
mov word [ebp - 0x74], 2
mov dword [ebp - 0x70], ebx
mov ax, word [ebp - 8]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x72], ax
push 0x10
lea eax, [ebp - 0x74]
push eax
push 0
push 0x30
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wsock32.dll_sendto
inc eax
jne 0x45e195
call fcn.0040c018
mov dword [ebp - 0x34], 0x10
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x74]
push eax
push 0
push 0x30
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wsock32.dll_recvfrom
cmp eax, 0x30
je 0x45e1bf
call fcn.0040c018
lea eax, [ebp - 0x44]
call fcn.0045ddbc
fstp qword [ebp - 0x20]
wait
lea eax, [ebp - 0x3c]
call fcn.0045ddbc
fstp qword [ebp - 0x28]
wait
call fcn.0040a248
fstp qword [ebp - 0x30]
wait
fld qword [ebp - 0x30]
fsub qword [ebp - 0x18]
fld qword [ebp - 0x20]
fsub qword [ebp - 0x28]
fsubp st(1)
fstp qword [edi]
wait
fld qword [edi]
fdiv dword [0x45e238]
fadd qword [ebp - 0x28]
mov eax, dword [ebp + 0xc]
fstp qword [eax]
wait
cmp dword [ebp - 0x3c], 0
jne 0x45e20d
mov byte [esi], 1
jmp 0x45e210
mov byte [esi], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e22e
mov eax, dword [ebp - 0xc]
push eax
call sub.wsock32.dll_closesocket
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x45e23c
Capabilities:
Create udp socket
Get hostname
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x258], edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45e45a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x147]
push eax
call sub.wsock32.dll_gethostname
lea edx, [ebp - 0x148]
mov eax, 0x45e468
call fcn.00402ad0
mov edx, eax
dec edx
lea eax, [ebp - 0x148]
call fcn.00402b10
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45e436
mov dword [ebp - 8], 0x7d0
push 4
lea eax, [ebp - 8]
push eax
push 0x1006
push 0xffff
push ebx
call sub.wsock32.dll_setsockopt
inc eax
je 0x45e436
mov dword [ebp - 8], 1
push 4
lea eax, [ebp - 8]
push eax
push 0x20
push 0xffff
push ebx
call sub.wsock32.dll_setsockopt
inc eax
je 0x45e436
lea eax, [ebp - 0x38]
xor ecx, ecx
mov edx, 0x30
call fcn.00402ff0
lea eax, [ebp - 0x38]
push eax
mov cl, 3
mov dl, 3
xor eax, eax
call fcn.0045e084
call fcn.0040a248
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x150]
call fcn.0045de44
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0xc], eax
mov word [ebp - 0x48], 2
mov dword [ebp - 0x44], 0xffffffff
push 0x7b
call sub.wsock32.dll_htons
mov word [ebp - 0x46], ax
push 0x10
lea eax, [ebp - 0x48]
push eax
push 0
push 0x30
lea eax, [ebp - 0x38]
push eax
push ebx
call sub.wsock32.dll_sendto
inc eax
je 0x45e436
mov dword [ebp - 8], 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0x30
lea eax, [ebp - 0x38]
push eax
push ebx
call sub.wsock32.dll_recvfrom
cmp eax, 0xffffffff
je 0x45e436
cmp eax, 0x30
jne 0x45e410
push 2
push 4
lea eax, [ebp - 0x44]
push eax
call sub.wsock32.dll_gethostbyaddr
mov esi, eax
test esi, esi
jne 0x45e3ce
push dword [ebp - 0x44]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x154]
call fcn.004046bc
mov edx, dword [ebp - 0x154]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x45e410
lea eax, [ebp - 0x254]
mov edi, dword [esi]
mov edx, edi
call fcn.004031f0
lea eax, [ebp - 0x254]
lea edx, [ebp - 0x148]
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.00402f80
je 0x45e410
lea eax, [ebp - 0x258]
mov edx, edi
call fcn.004046bc
mov edx, dword [ebp - 0x258]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov dword [ebp - 8], 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0x30
lea eax, [ebp - 0x38]
push eax
push ebx
call sub.wsock32.dll_recvfrom
cmp eax, 0xffffffff
jne 0x45e391
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e461
lea eax, [ebp - 0x258]
call fcn.004044cc
lea eax, [ebp - 0x154]
call fcn.004044cc
ret
Function at 0x46070c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.004602e8
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0040497c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x46076a
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x467050]
mov dl, 1
mov eax, dword [0x4601e0]
call fcn.0040c16c
call fcn.00403ea8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x460774
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040497c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4607cc
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x467218]
mov dl, 1
mov eax, dword [0x4601e0]
call fcn.0040c16c
call fcn.00403ea8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00460318
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8