joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457230
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 0x4573db
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4573bc
mov dl, 1
mov eax, dword [0x418b14]
call fcn.00403814
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404634
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4573ab
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.00444ce0
test al, al
je 0x45739e
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, 0x4573ec
lea eax, [ebp - 0x254]
call fcn.00409a64
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45739e
xor eax, eax
push ebp
push 0x457397
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 0x457424
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x457380
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040489c
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 0x457380
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040489c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45739e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4572a1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041d374
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 0x4573e2
lea eax, [ebp - 0x260]
call fcn.00404634
ret

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

Disassembly:
push ecx
mov eax, dword [0x47dc30]
cmp byte [eax + 0xa5], 0
jne 0x457d81
cmp dword [0x47dc48], 0
jne 0x457d42
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x457ccc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x47dc48], eax
cmp dword [0x47dc44], 0
jne 0x457d5d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x47dc44], eax
cmp dword [0x47dc4c], 0
jne 0x457d81
push esp
push 0
push 0
push 0x457c70
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x47dc4c], eax
pop edx
ret
Function at 0x457e78
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x457e8f
add esp, 0xfffffff0
call fcn.00403ba8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004233a8
mov eax, dword [0x47c544]
cmp word [eax + 2], 0
jne 0x457eb7
mov eax, dword [0x47c544]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004593c0
mov eax, dword [0x47c5f0]
cmp word [eax + 2], 0
jne 0x457ed1
mov eax, dword [0x47c5f0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004595b8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4184b0]
call fcn.00403814
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4184b0]
call fcn.00403814
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 [0x425ee8]
call fcn.0042d230
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x458058
mov eax, dword [0x47c470]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042d600
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x459b28
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x47c470]
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.0040cf44
test eax, eax
je 0x457fc6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409380
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cf6c
test eax, eax
je 0x457fda
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.0040489c
mov eax, dword [0x47c368]
cmp byte [eax], 0
jne 0x45800e
mov eax, ebx
call fcn.00458180
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.00459d04
mov eax, ebx
call fcn.0045a6b4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45804e
call fcn.00403c00
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4583f4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x47dc30]
cmp dword [eax + 0x30], 0
je 0x45849e
cmp dword [ebx + 0x94], 0
jne 0x458498
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x458384
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x458498
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 0x45845e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x458498
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.0041ae5c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45846d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x458f7c
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 0x458fb1
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.00404724
jmp 0x458fbe
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404688
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x459ee0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x459f21
mov eax, esi
call fcn.00440460
test al, al
je 0x459f21
mov eax, dword [ebx + 0x84]
call fcn.0044015c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x459f21
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044015c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45b1cc
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404af0
xor eax, eax
push ebp
push 0x45b24a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404b00
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x45b215
mov eax, dword [ebx + 4]
call fcn.00404b00
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
mov ax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b251
lea eax, [ebp - 4]
call fcn.00404634
ret
Function at 0x45c24c
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45c3e9
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402afc
cmp word [ebx + 0xa2], 0
je 0x45c295
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x45c2a9
lea esi, [ebp - 8]
jmp 0x45c2ab
xor esi, esi
cmp dword [ebx + 0x80], 0
jne 0x45c2b8
xor edi, edi
jmp 0x45c2c5
mov eax, dword [ebx + 0x80]
call fcn.00404b00
mov edi, eax
mov eax, dword [ebx + 0x7c]
call fcn.00404b00
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0045b984
mov eax, dword [ebp - 0x14]
call fcn.00404b00
push eax
push esi
mov eax, dword [ebx + 0x74]
call fcn.00404b00
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404b00
push eax
mov eax, ebx
call fcn.0045bab8
push eax
mov eax, ebx
call fcn.0045ba8c
push eax
mov eax, ebx
call fcn.0045ba40
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.0045b850
mov eax, dword [ebp - 0x18]
call fcn.00404b00
push eax
mov eax, dword [ebx + 8]
call fcn.00404b00
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x90], eax
cmp dword [ebp - 0xc], 0
jne 0x45c34e
call fcn.0040d7d0
xor edx, edx
push ebp
push 0x45c3c7
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x45c38c
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xaa], 0
je 0x45c382
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45c3b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c3ce
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x45c3f8
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x45c424
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00404b00
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x45c449
call fcn.0040d7d0
xor eax, eax
push ebp
push 0x45c480
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x45c469
call fcn.0040d7d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c487
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x45d534
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.00404b00
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x45d58c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x47c774]
mov dl, 1
mov eax, dword [0x45d04c]
call fcn.0040c2d8
call fcn.00404010
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0045d154
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

Function at 0x45e3e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov dword [esp], ecx
mov esi, edx
mov ebx, eax
mov eax, 0x10000
call fcn.00402774
mov dword [ebx + 0x2e8], eax
mov edi, esi
mov ebp, dword [esp]
test ebp, ebp
jle 0x45e425
mov esi, 1
mov eax, dword [esp]
dec eax
call fcn.004030b4
inc eax
mov edx, dword [ebx + 0x2e8]
mov word [edx + esi*2 - 2], ax
inc esi
dec ebp
jne 0x45e40c
mov ebp, dword [esp]
test ebp, ebp
jle 0x45e478
mov esi, 1
mov al, byte [ebx + 0x43]
xor al, byte [ebx + 0x42]
xor al, byte [ebx + 0x41]
xor al, byte [ebx + 0x40]
mov byte [esp + 4], al
mov eax, 0xff
call fcn.004030b4
mov dl, byte [edi + esi - 1]
xor dl, byte [esp + 4]
xor al, dl
mov byte [edi + esi - 1], al
xor eax, eax
mov al, byte [edi + esi - 1]
add eax, dword [ebx + 0x40]
add eax, dword [ebx + 0x3c]
imul dword [ebx + 0x2f8]
add eax, dword [ebx + 0x2fc]
mov dword [ebx + 0x40], eax
inc esi
dec ebp
jne 0x45e431
mov ebp, dword [esp]
test ebp, ebp
jle 0x45e4d2
mov esi, 1
mov eax, dword [ebx + 0x2e8]
movzx eax, word [eax + esi*2 - 2]
mov al, byte [edi + eax - 1]
cmp al, byte [edi + esi - 1]
je 0x45e4ce
mov edx, dword [ebx + 0x2e8]
movzx edx, word [edx + esi*2 - 2]
xor byte [edi + esi - 1], al
mov eax, dword [ebx + 0x2e8]
movzx eax, word [eax + esi*2 - 2]
mov dl, byte [edi + esi - 1]
xor byte [edi + eax - 1], dl
mov eax, dword [ebx + 0x2e8]
movzx eax, word [eax + esi*2 - 2]
mov al, byte [edi + eax - 1]
xor byte [edi + esi - 1], al
inc esi
dec ebp
jne 0x45e484
mov edx, 0x10000
mov eax, dword [ebx + 0x2e8]
call fcn.00402794
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x45e4ec
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, edx
mov ebx, eax
mov eax, 0x10000
call fcn.00402774
mov dword [ebx + 0x2e8], eax
mov edi, ebp
test edi, edi
jle 0x45e528
mov esi, 1
mov eax, ebp
dec eax
call fcn.004030b4
inc eax
mov edx, dword [ebx + 0x2e8]
mov word [edx + esi*2 - 2], ax
inc esi
dec edi
jne 0x45e510
mov esi, ebp
cmp esi, 1
jl 0x45e59c
mov eax, dword [ebx + 0x2e8]
movzx eax, word [eax + esi*2 - 2]
mov ecx, dword [ebx + 0x2e0]
mov al, byte [ecx + eax - 1]
mov edx, dword [ebx + 0x2e0]
cmp al, byte [edx + esi - 1]
je 0x45e597
mov ecx, dword [ebx + 0x2e8]
movzx ecx, word [ecx + esi*2 - 2]
mov edi, dword [ebx + 0x2e0]
xor byte [edx + esi - 1], al
mov edx, dword [ebx + 0x2e8]
movzx edx, word [edx + esi*2 - 2]
mov eax, dword [ebx + 0x2e0]
mov cl, byte [eax + esi - 1]
xor byte [eax + edx - 1], cl
mov edx, dword [ebx + 0x2e8]
movzx edx, word [edx + esi*2 - 2]
mov eax, dword [ebx + 0x2e0]
mov dl, byte [eax + edx - 1]
xor byte [eax + esi - 1], dl
dec esi
test esi, esi
jne 0x45e52f
mov edx, 0x10000
mov eax, dword [ebx + 0x2e8]
call fcn.00402794
mov edi, ebp
test edi, edi
jle 0x45e624
mov esi, 1
mov eax, dword [ebx + 0x2e0]
mov dl, byte [eax + esi - 1]
mov byte [eax + esi - 1], dl
mov eax, dword [ebx + 0x2e0]
mov al, byte [eax + esi - 1]
mov byte [esp], al
mov al, byte [ebx + 0x43]
xor al, byte [ebx + 0x42]
xor al, byte [ebx + 0x41]
xor al, byte [ebx + 0x40]
mov byte [esp + 1], al
mov eax, 0xff
call fcn.004030b4
mov edx, dword [ebx + 0x2e0]
mov dl, byte [edx + esi - 1]
xor dl, byte [esp + 1]
xor al, dl
mov edx, dword [ebx + 0x2e0]
mov byte [edx + esi - 1], al
xor eax, eax
mov al, byte [esp]
add eax, dword [ebx + 0x40]
add eax, dword [ebx + 0x3c]
imul dword [ebx + 0x2f8]
add eax, dword [ebx + 0x2fc]
mov dword [ebx + 0x40], eax
inc esi
dec edi
jne 0x45e5b7
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x45f58c
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebx
push esi
add esp, 0xffffffec
mov ebx, eax
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 8], esi
inc esi
je 0x45f68b
mov dword [esp], 1
push 4
lea eax, [esp + 4]
push eax
push 4
push 0xffff
mov eax, dword [ebx + 8]
push eax
call sub.wsock32.dll_setsockopt
mov dword [esp], 1
push 4
lea eax, [esp + 4]
push eax
push 0x20
push 0xffff
mov eax, dword [ebx + 8]
push eax
call sub.wsock32.dll_setsockopt
mov eax, dword [ebx + 0x18]
call fcn.00404b00
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 8], eax
mov dword [esp], 0x10000
push 4
lea eax, [esp + 4]
push eax
push 0x1002
push 0xffff
mov eax, dword [ebx + 8]
push eax
call sub.wsock32.dll_setsockopt
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x10
call fcn.00403094
mov word [esp + 4], 2
mov eax, dword [ebx + 0x18]
call fcn.00404b00
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 8], eax
mov ax, word [ebx + 0x14]
push eax
call sub.wsock32.dll_htons
mov word [esp + 6], ax
push 0x10
lea eax, [esp + 8]
push eax
mov eax, dword [ebx + 8]
push eax
call sub.wsock32.dll_bind
test eax, eax
je 0x45f677
mov eax, dword [ebx + 8]
push eax
call sub.wsock32.dll_closesocket
mov dword [ebx + 8], 0xffffffff
jmp 0x45f68b
push 1
push 0x401
mov eax, dword [ebx + 0xc]
push eax
mov eax, dword [ebx + 8]
push eax
call sub.wsock32.dll_WSAAsyncSelect
add esp, 0x14
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
mov ebx, eax
mov word [ebx + 0x24], 2
push 0x10
lea eax, [ebx + 0x24]
push eax
push 0
push ecx
push edx
mov eax, dword [ebx + 8]
push eax
call sub.wsock32.dll_sendto_1
mov esi, eax
cmp esi, 0xffffffff
jne 0x45f7d3
mov eax, ebx
call fcn.0045f8f4
mov eax, esi
pop esi
pop ebx
ret
Function at 0x460c74
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x460c7d
mov eax, dword [ebp - 4]
add esp, 0xffffffec
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x4018], edx
mov dword [ebp - 0x4014], edx
mov dword [ebp - 0x4010], edx
mov dword [ebp - 0x400c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x460e22
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00460ba4
lea edi, [ebp - 0x4008]
mov dword [ebp - 8], 0x4000
lea eax, [ebp - 8]
push eax
push edi
call sub.IpHlpApi.dll_GetAdaptersInfo
test eax, eax
jne 0x460e04
cmp dword [edi + 0x1a0], 6
je 0x460cf2
mov edi, dword [edi]
jmp 0x460dfc
lea esi, [edi + 0x1ac]
test esi, esi
je 0x460dfa
mov dl, 1
mov eax, dword [0x45ee68]
call fcn.00403814
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, ebx
call fcn.0041ad00
mov eax, dword [edi + 0x19c]
mov dword [ebx + 0xc], eax
lea eax, [ebx + 4]
lea edx, [edi + 8]
mov ecx, 0x104
call fcn.0040489c
lea eax, [ebx + 8]
lea edx, [edi + 0x10c]
mov ecx, 0x84
call fcn.0040489c
lea edx, [ebx + 0x10]
lea eax, [edi + 0x194]
mov ecx, 6
call fcn.00402970
lea eax, [ebp - 0x400c]
lea edx, [esi + 4]
mov ecx, 0x10
call fcn.0040489c
mov edx, dword [ebp - 0x400c]
mov eax, ebx
call fcn.00460b6c
lea eax, [ebp - 0x4010]
lea edx, [esi + 0x14]
mov ecx, 0x10
call fcn.0040489c
mov edx, dword [ebp - 0x4010]
mov eax, ebx
call fcn.00460b88
lea eax, [ebp - 0x4014]
lea edx, [esi + 4]
mov ecx, 0x10
call fcn.0040489c
mov eax, dword [ebp - 0x4014]
mov edx, 0x460e38
call fcn.0040885c
test eax, eax
sete al
mov byte [ebx + 0x20], al
lea eax, [ebp - 0x4018]
lea edx, [esi + 4]
mov ecx, 0x10
call fcn.0040489c
mov eax, dword [ebp - 0x4018]
mov edx, 0x460e4c
call fcn.0040885c
test eax, eax
setne al
mov byte [ebx + 0x21], al
mov esi, dword [esi]
test esi, esi
jne 0x460d00
mov edi, dword [edi]
test edi, edi
jne 0x460ce2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460e29
lea eax, [ebp - 0x4018]
mov edx, 4
call fcn.00404658
ret

Function at 0x460f44
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
mov dword [ebp - 0x108], eax
lea ebx, [ebp - 0x110]
call fcn.0040a794
fstp qword [ebp - 0x118]
wait
jmp 0x460fe0
mov dword [ebx], 1
xor eax, eax
mov dword [ebx + 4], eax
push ebx
push 0
push 0
lea eax, [ebp - 0x104]
push eax
push ebp
call fcn.00460ecc
pop ecx
push eax
call sub.wsock32.dll_select
test eax, eax
jge 0x460f9c
push 0x3e8
call sub.kernel32.dll_Sleep_1
jmp 0x460fe0
test eax, eax
jle 0x460fb1
lea edx, [ebp - 0x104]
mov eax, dword [ebp - 0x108]
call fcn.00461010
call fcn.0040a794
fsub qword [ebp - 0x118]
fld xword [0x461004]
fcompp
fnstsw ax
sahf
jae 0x460fe0
call fcn.0040a794
fstp qword [ebp - 0x118]
wait
mov eax, dword [ebp - 0x108]
call fcn.0046105c
call fcn.00406a24
cmp byte [eax + 0x10], 0
jne 0x460ffe
mov eax, dword [ebp - 0x108]
cmp byte [eax + 0xd], 0
je 0x460f68
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x461e88
Capabilities:
Enumerate disk volumes

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff80
mov edi, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_FindFirstVolumeA
mov esi, eax
cmp esi, 0xffffffff
je 0x461f0a
mov eax, dword [edi + 0x30]
call fcn.0041ba30
mov edx, dword [0x461b70]
call fcn.004039f4
mov ebx, eax
lea eax, [ebx + 0xc]
mov edx, esp
mov ecx, 0x80
call fcn.0040489c
jmp 0x461ef0
mov eax, dword [edi + 0x30]
call fcn.0041ba30
mov edx, dword [0x461b70]
call fcn.004039f4
mov ebx, eax
lea eax, [ebx + 0xc]
mov edx, esp
mov ecx, 0x80
call fcn.0040489c
push 0x104
lea eax, [esp + 4]
push eax
push esi
call sub.kernel32.dll_FindNextVolumeA
test eax, eax
jne 0x461ecc
push esi
call sub.kernel32.dll_FindVolumeClose
add esp, 0x80
pop edi
pop esi
pop ebx
ret

Function at 0x4620d4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4621c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 4]
mov edx, 0x4621d8
call fcn.004046cc
mov ebx, 2
lea eax, [ebp - 4]
call fcn.00404b58
mov edx, ebx
add dl, 0x41
mov byte [eax], dl
mov eax, dword [ebp - 4]
call fcn.00404b00
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x462191
push 0xff
lea eax, [ebp - 0x107]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b00
push eax
call sub.kernel32.dll_QueryDosDeviceA
test eax, eax
jbe 0x462191
push dword [ebp - 4]
push 0x4621e4
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x107]
mov ecx, 0xff
call fcn.0040489c
push dword [ebp - 0x10c]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004049c8
mov edx, dword [ebp - 8]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
cmp ebx, 0x1a
jne 0x462116
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4621c8
lea eax, [ebp - 0x10c]
call fcn.00404634
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404658
ret

Function at 0x46229c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404af0
xor eax, eax
push ebp
push 0x462332
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.0040cd68
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 4]
call fcn.004046cc
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x40
call fcn.00403094
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x40
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b00
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x4c]
call fcn.00409568
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462339
lea eax, [ebp - 0x50]
call fcn.00404634
lea eax, [ebp - 4]
call fcn.00404634
ret