joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43cd54
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.0040657c
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00437bc8
test ebx, ebx
jne 0x43cda7
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0043cc90
mov ebx, eax
test ebx, ebx
je 0x43ce92
cmp esi, ebx
je 0x43cdd0
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x43cde5
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x43ce1d
add eax, 0xffffff5f
sub eax, 2
jb 0x43ce35
dec eax
sub eax, 2
jb 0x43ce49
dec eax
sub eax, 2
jb 0x43ce3f
jmp 0x43ce53
add eax, 0xfffffdff
sub eax, 2
jb 0x43ce35
dec eax
sub eax, 2
jb 0x43ce49
dec eax
sub eax, 2
jb 0x43ce3f
jmp 0x43ce53
mov byte [esp + 0x120], 0
jmp 0x43ce5b
mov byte [esp + 0x120], 2
jmp 0x43ce5b
mov byte [esp + 0x120], 1
jmp 0x43ce5b
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0044a608
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00439350
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x43ce94
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x43db00
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x240], 0
je 0x43db1c
cmp dword [esi + 4], 0
je 0x43db49
test byte [ebx + 0x55], 1
jne 0x43db3b
mov eax, ebx
call fcn.0043bee8
test eax, eax
jne 0x43db3b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43dc59
mov edx, esi
mov eax, ebx
call fcn.0043d508
jmp 0x43dc59
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43dc52
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043fb58
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00439350
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043db00
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043fb58
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43dc59
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x444d94
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45ec9c]
cmp byte [eax + 0xc], 0
je 0x444f01
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x444efa
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x462544], 0
jne 0x444de8
push 0x444f08
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x444f10
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462544], eax
cmp dword [0x45e5e0], 0
jne 0x444ee3
push 0x444f20
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45e5e0], eax
cmp dword [0x45e5e0], 0
je 0x444ee3
push 0x444f2c
mov eax, dword [0x45e5e0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462548], eax
push 0x444f3c
mov eax, dword [0x45e5e0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46254c], eax
push 0x444f50
mov eax, dword [0x45e5e0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462550], eax
push 0x444f68
mov eax, dword [0x45e5e0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462554], eax
push 0x444f80
mov eax, dword [0x45e5e0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462558], eax
push 0x444f94
mov eax, dword [0x45e5e0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46255c], eax
push 0x444fac
mov eax, dword [0x45e5e0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462560], eax
push 0x444fc4
mov eax, dword [0x45e5e0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462564], eax
push 0x444fe0
mov eax, dword [0x45e5e0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462568], eax
push 0x444fec
mov eax, dword [0x45e5e0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46256c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x444f01
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44a570
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44a5c4]
test si, 4
je 0x44a585
or bl, 1
test si, 8
je 0x44a58f
or bl, 4
test si, 1
je 0x44a599
or bl, 8
test si, 2
je 0x44a5a3
or bl, 0x10
test si, 0x10
je 0x44a5ad
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44a5bc
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44a5c8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44a604]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44a5e2
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44a5f1
or bl, 4
test esi, 0x20000000
je 0x44a5fc
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x451cb8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x451cca
add esp, 0xfffffff0
call fcn.00403b40
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a0e4
mov eax, dword [0x45e940]
mov dword [eax + 4], ebx
mov dword [eax], 0x45205c
mov eax, dword [0x45e94c]
mov dword [eax + 4], ebx
mov dword [eax], 0x452068
mov eax, ebx
call fcn.00452074
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411ee0]
call fcn.00403804
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411ee0]
call fcn.00403804
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411ee0]
call fcn.00403804
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411ee0]
call fcn.00403804
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411ee0]
call fcn.00403804
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, 0x44db0c
push eax
push 0
push 0
mov eax, dword [0x45eaa8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41dc60]
call fcn.0041f180
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41dc60]
call fcn.0041f180
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41dc60]
call fcn.0041f180
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004524a4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452374
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452374
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452374
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x451e07
call fcn.00403b98
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x452158
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 0x452303
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4522e4
mov dl, 1
mov eax, dword [0x412304]
call fcn.00403804
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404648
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4522d3
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.004450f0
test al, al
je 0x4522c6
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, 0x452314
lea eax, [ebp - 0x254]
call fcn.00409340
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4522c6
xor eax, eax
push ebp
push 0x4522bf
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 0x45234c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4522a8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004048b8
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 0x4522a8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004048b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4522c6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4521c9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00415fe4
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 0x45230a
lea eax, [ebp - 0x260]
call fcn.00404648
ret

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

Disassembly:
push ecx
mov eax, dword [0x46257c]
cmp byte [eax + 0xad], 0
jne 0x452ced
cmp dword [0x462594], 0
jne 0x452cae
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x452c38
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x462594], eax
cmp dword [0x462590], 0
jne 0x452cc9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x462590], eax
cmp dword [0x462598], 0
jne 0x452ced
push esp
push 0
push 0
push 0x452bdc
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x462598], eax
pop edx
ret
Function at 0x452ec0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x452ed7
add esp, 0xfffffff0
call fcn.00403b40
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a0e4
mov eax, dword [0x45ea8c]
cmp word [eax + 2], 0
jne 0x452eff
mov eax, dword [0x45ea8c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00454970
mov eax, dword [0x45eb3c]
cmp word [eax + 2], 0
jne 0x452f19
mov eax, dword [0x45eb3c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00454b7c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411ee0]
call fcn.00403804
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411ee0]
call fcn.00403804
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x411ee0]
call fcn.00403804
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41e43c]
call fcn.00424284
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4530d0
mov eax, dword [0x45e9a8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424658
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45523c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45e9a8]
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.0040ca50
test eax, eax
je 0x453020
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408cf8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040ca84
test eax, eax
je 0x453034
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004048b8
mov byte [ebx + 0xd4], 0
push ebx
push 0x4544d0
call fcn.0041b260
mov dword [ebx + 0xc8], eax
mov eax, dword [0x45e8a0]
cmp byte [eax], 0
jne 0x453085
mov eax, ebx
call fcn.00453214
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00455418
mov eax, ebx
call fcn.00455f78
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4530c5
call fcn.00403b98
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453494
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46257c]
cmp dword [eax + 0x30], 0
je 0x45353e
cmp dword [ebx + 0x94], 0
jne 0x453538
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x453424
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x453538
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 0x4534fe
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x453538
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.0041428c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45350d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x454258
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45428d
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.00404738
jmp 0x45429a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040469c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4555fc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45566a
mov eax, esi
call fcn.0043fef8
test al, al
je 0x45566a
mov eax, dword [ebx + 0x84]
call fcn.0043fb58
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45566a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45565e
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043fb58
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00437fb8
jmp 0x45566a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00455438
pop esi
pop ebx
ret

Function at 0x45b7d8
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff6c
xor ebx, ebx
mov eax, esp
xor ecx, ecx
mov edx, 0x94
call fcn.00403178
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x45b85a
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x45b830
mov eax, dword [esp + 8]
test eax, eax
jne 0x45b818
mov ebx, 0x32
jmp 0x45b85a
cmp eax, 2
jne 0x45b824
mov ebx, 0x34
jmp 0x45b85a
cmp eax, 1
jne 0x45b85a
mov ebx, 0x33
jmp 0x45b85a
cmp eax, 6
jne 0x45b85a
mov eax, dword [esp + 8]
test eax, eax
jne 0x45b844
mov ebx, 0x3c
jmp 0x45b85a
cmp eax, 1
jne 0x45b850
mov ebx, 0x3d
jmp 0x45b85a
cmp eax, 2
jne 0x45b85a
mov ebx, 0x3e
mov eax, ebx
add esp, 0x94
pop ebx
ret
Function at 0x4022b7
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4070b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
inc ebx
push ebx
push 0
push 0
push 6
push ebx
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSASocketW]
cmp eax, 0xffffffff
mov dword [esi + 0x20], eax
jne 0x402310
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
test eax, eax
jg 0x4022fb
call esi
mov ebx, eax
jmp 0x402404
call esi
mov ebx, eax
and ebx, 0xffff
or ebx, 0x80070000
jmp 0x402404
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push 6
push eax
mov dword [ebp - 0x1c], ebx
call edi
cmp eax, 0xffffffff
je 0x4023e1
push 4
lea eax, [ebp - 0x18]
push eax
push 0xfffffffffffffffb
push pe_overlay
push dword [esi + 0x20]
mov dword [ebp - 0x18], ebx
call edi
push dword [esi + 0x20]
call sub.webengine.dll_AttachHandleToThreadPool
mov ebx, eax
test ebx, ebx
jne 0x402403
movzx eax, word [esi + 0x1c]
push eax
mov word [ebp - 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
cmp byte [esi + 0x2a], bl
mov word [ebp - 0x12], ax
je 0x402375
and dword [ebp - 0x10], ebx
jmp 0x402383
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4023ce
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271d
jne 0x4023e1
and dword [ebp - 0x18], 0
push 4
lea eax, [ebp - 0x18]
push eax
push 0xfffffffffffffffb
push pe_overlay
push dword [esi + 0x20]
call edi
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4023e1
push bind
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x402403
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
test eax, eax
jg 0x4023f3
call esi
mov ebx, eax
jmp 0x402403
call esi
mov ebx, eax
and ebx, 0xffff
or ebx, 0x80070000
pop edi
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00404596
leave
ret
Function at 0x402414
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4070b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
inc ebx
push ebx
push 0
push 0
push 6
push ebx
push 0x17
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSASocketW]
cmp eax, 0xffffffff
mov dword [esi + 0x20], eax
jne 0x40246d
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
test eax, eax
jg 0x402458
call esi
mov ebx, eax
jmp 0x40255e
call esi
mov ebx, eax
and ebx, 0xffff
or ebx, 0x80070000
jmp 0x40255e
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 0x28]
push ecx
push ebx
push 6
push eax
mov dword [ebp - 0x28], ebx
call edi
cmp eax, 0xffffffff
je 0x40253b
push 4
lea eax, [ebp - 0x24]
push eax
push 0xfffffffffffffffb
push pe_overlay
push dword [esi + 0x20]
mov dword [ebp - 0x24], ebx
call edi
push dword [esi + 0x20]
call sub.webengine.dll_AttachHandleToThreadPool
mov ebx, eax
test ebx, ebx
jne 0x40255d
cmp byte [esi + 0x2a], bl
lea eax, [ebp - 0x20]
push eax
je 0x4024c3
call fcn.00402264
jmp 0x4024c8
call fcn.0040228a
movzx eax, word [esi + 0x1c]
push eax
mov word [ebp - 0x20], 0x17
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x402528
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271d
jne 0x40253b
and dword [ebp - 0x24], 0
push 4
lea eax, [ebp - 0x24]
push eax
push 0xfffffffffffffffb
push pe_overlay
push dword [esi + 0x20]
call edi
push 0x1c
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x40253b
push bind
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x40255d
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
test eax, eax
jg 0x40254d
call esi
mov ebx, eax
jmp 0x40255d
call esi
mov ebx, eax
and ebx, 0xffff
or ebx, 0x80070000
pop edi
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00404596
leave
ret

Function at 0x402652
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
cmp byte [esi + 0x28], 0
je 0x402665
xor eax, eax
jmp 0x4026da
push ebx
push edi
call fcn.00402940
test eax, eax
mov dword [ebp - 4], eax
jne 0x4026ce
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp byte [esi + 0x2b], 0
mov edi, dword [ebp - 0x14]
mov ecx, esi
je 0x40268f
call fcn.00402414
jmp 0x402694
call fcn.004022b7
test eax, eax
mov dword [ebp - 4], eax
jne 0x4026ce
imul edi, edi, 3
mov byte [esi + 0x28], 1
mov ebx, edi
jmp 0x4026b5
mov ecx, esi
call fcn.004025e6
test eax, eax
mov dword [ebp - 4], eax
jne 0x4026ce
dec ebx
test ebx, ebx
jg 0x4026a6
push edi
push 0x4012cc
push 0x40000434
call sub.webengine.dll_XspLogEvent
add esp, 0xc
jmp 0x4026d5
mov ecx, esi
call fcn.0040256e
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
leave
ret