joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42cf48
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 + 0x1e8], 0
je 0x42cf64
cmp dword [esi + 4], 0
je 0x42cf91
test byte [ebx + 0x45], 1
jne 0x42cf83
mov eax, ebx
call fcn.0042be80
test eax, eax
jne 0x42cf83
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x42d0a1
mov edx, esi
mov eax, ebx
call fcn.0042cbc0
jmp 0x42d0a1
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
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 0x42d09a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0042ef18
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.00429de4
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0042cf48
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 + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
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.0042ef18
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d0a1
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 0x436840
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.00403b20
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43688f
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.00403d50
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43e388
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4827e0
cmp dword [edi], 0
jne 0x43e404
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4827dc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4808f8
mov ecx, 2
call fcn.0040280c
mov edx, 0x43e360
lea eax, [esi + 5]
call fcn.0043e380
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0043e380
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x43e3d9
mov dword [0x4827dc], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x43e520
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x43e570]
test si, 4
je 0x43e534
or bl, 1
test si, 8
je 0x43e53e
or bl, 4
test si, 1
je 0x43e548
or bl, 8
test si, 2
je 0x43e552
or bl, 0x10
test si, 0x10
je 0x43e55c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43e56b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x43e574
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x43e5ac]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43e58d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43e59c
or bl, 4
test esi, 0x20000000
je 0x43e5a7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x444db4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x444dc6
add esp, 0xfffffff0
call fcn.004030f8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00415674
mov eax, ebx
call fcn.00445118
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x40e608]
call fcn.00402dc8
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x40e608]
call fcn.00402dc8
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x40e608]
call fcn.00402dc8
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x40e608]
call fcn.00402dc8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x40e608]
call fcn.00402dc8
mov dword [ebx + 0x70], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x4412cc
push eax
push 0
push 0
mov eax, dword [0x4815c8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x416bb4]
call fcn.004180ec
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x416bb4]
call fcn.004180ec
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x416bb4]
call fcn.004180ec
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.004454f8
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x445414
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x445414
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x445414
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x444ed5
call fcn.00403150
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4451f8
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 0x4453a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x445384
mov dl, 1
mov eax, dword [0x40eb34]
call fcn.00402dc8
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403b20
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x445373
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.0043345c
test al, al
je 0x445366
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, 0x4453b4
lea eax, [ebp - 0x254]
call fcn.00408e18
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x445366
xor eax, eax
push ebp
push 0x44535f
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 0x4453ec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x445348
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403d50
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x445348
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403d50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445366
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x445269
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0041220c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4453aa
lea eax, [ebp - 0x260]
call fcn.00403b20
ret

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

Disassembly:
push ecx
mov eax, dword [0x4827d0]
cmp byte [eax + 0x95], 0
jne 0x445c61
cmp dword [0x4827ec], 0
jne 0x445c22
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x445bac
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4827ec], eax
cmp dword [0x4827e8], 0
jne 0x445c3d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4827e8], eax
cmp dword [0x4827f0], 0
jne 0x445c61
push esp
push 0
push 0
push 0x445b50
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4827f0], eax
pop edx
ret
Function at 0x445d58
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x445d6f
add esp, 0xfffffff0
call fcn.004030f8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00415674
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40e608]
call fcn.00402dc8
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40e608]
call fcn.00402dc8
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x417544]
call fcn.0041e71c
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x445ee4
mov eax, dword [0x481468]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041eaec
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4477bc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x481468]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
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.0040bf48
test eax, eax
je 0x445e62
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040878c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040bf70
test eax, eax
je 0x445e76
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403d50
mov eax, dword [0x48129c]
cmp byte [eax], 0
jne 0x445ea7
mov eax, ebx
call fcn.00445fd0
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x445ed9
call fcn.00403150
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x446240
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4827d0]
cmp dword [eax + 0x24], 0
je 0x4462e3
cmp dword [ebx + 0x84], 0
jne 0x4462dd
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4461d0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x4462dd
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 0x4462a6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4462dd
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.0040ff54
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4462b5
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x446cf0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x446d25
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403c08
jmp 0x446d2f
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403b74
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x447b30
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x447b68
mov eax, esi
call fcn.0042f214
test al, al
je 0x447b68
mov eax, dword [ebx + 0x74]
call fcn.0042ef18
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x447b68
push 0
mov eax, dword [ebx + 0x74]
call fcn.0042ef18
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x44ad90
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.00403f54
xor eax, eax
push ebp
push 0x44ae0e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00403f64
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x44add9
mov eax, dword [ebx + 4]
call fcn.00403f64
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 0x44ae15
lea eax, [ebp - 4]
call fcn.00403b20
ret
Function at 0x44bdd8
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 0x44bf6f
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402924
cmp word [ebx + 0x9a], 0
je 0x44be21
mov edx, ebx
mov eax, dword [ebx + 0x9c]
call dword [ebx + 0x98]
mov eax, dword [ebx + 0x88]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x44be35
lea esi, [ebp - 8]
jmp 0x44be37
xor esi, esi
cmp dword [ebx + 0x78], 0
jne 0x44be41
xor edi, edi
jmp 0x44be4b
mov eax, dword [ebx + 0x78]
call fcn.00403f64
mov edi, eax
mov eax, dword [ebx + 0x74]
call fcn.00403f64
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0044b544
mov eax, dword [ebp - 0x14]
call fcn.00403f64
push eax
push esi
mov eax, dword [ebx + 0x6c]
call fcn.00403f64
push eax
mov eax, dword [ebp - 0x10]
call fcn.00403f64
push eax
mov eax, ebx
call fcn.0044b678
push eax
mov eax, ebx
call fcn.0044b64c
push eax
mov eax, ebx
call fcn.0044b600
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.0044b418
mov eax, dword [ebp - 0x18]
call fcn.00403f64
push eax
mov eax, dword [ebx + 8]
call fcn.00403f64
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 + 0x88], eax
cmp dword [ebp - 0xc], 0
jne 0x44bed4
call fcn.0040c508
xor edx, edx
push ebp
push 0x44bf4d
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x44bf12
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xa2], 0
je 0x44bf08
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x44bf36
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44bf54
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x44bf80
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 + 0xaa], 0
je 0x44bfac
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xac]
call dword [esi + 0xa8]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00403f64
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x44bfd1
call fcn.0040c508
xor eax, eax
push ebp
push 0x44c008
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 0x44bff1
call fcn.0040c508
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c00f
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x44d338
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403f64
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x44d351
test al, 0x10
jne 0x44d355
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x44ff4c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44ff5e
add esp, 0xfffffff0
call fcn.004030f8
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00403f54
mov eax, dword [ebp + 8]
call fcn.00403f54
xor eax, eax
push ebp
push 0x450027
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [esi + 0x10], eax
lea eax, [esi + 4]
mov edx, dword [ebp - 4]
call fcn.00403b74
lea eax, [esi + 8]
mov edx, dword [ebp + 8]
call fcn.00403b74
mov dl, 1
mov eax, dword [0x40eb34]
call fcn.00402dc8
mov dword [esi + 0x14], eax
mov dl, 1
mov eax, dword [0x40eb34]
call fcn.00402dc8
mov dword [esi + 0x18], eax
mov byte [esi + 0xc], 0
lea eax, [esi + 0x24]
call fcn.00403b20
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], 0xb4
mov byte [esi + 0x2d], 0
mov byte [esi + 0x2c], 0
mov byte [esi + 0x30], 1
mov byte [esi + 0x2e], 1
mov byte [esi + 0x2f], 1
lea eax, [esi + 0x28]
call fcn.00403b20
mov byte [esi + 0x31], 0
mov ecx, dword [0x44eef4]
mov dl, 1
mov eax, dword [0x40e868]
call fcn.00410910
mov dword [esi + 0x34], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45002e
lea eax, [ebp - 4]
call fcn.00403b20
lea eax, [ebp + 8]
call fcn.00403b20
ret

Function at 0x4577b8
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x457841
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x482abc
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x45782b
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040aa18
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x457858
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x481738]
mov dl, 1
mov eax, dword [0x457074]
call fcn.0040b350
call fcn.00403550
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457848
lea eax, [ebp - 0x1c]
call fcn.00403b20
ret

Function at 0x457ebc
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00457de0
mov cl, 1
mov edx, esi
mov eax, esi
mov bx, 0xffff
call fcn.00402fd4
push 0x10
lea eax, [esi + 0x18]
push eax
mov eax, dword [esi + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x457f20
call fcn.00457700
mov byte [esi + 0x29], 0
test byte [esi + 0x28], 0x10
jne 0x457f12
cmp dword [esi + 4], 0xffffffff
setne al
mov byte [esi + 8], al
mov cl, 2
mov edx, esi
mov eax, esi
mov bx, 0xffff
call fcn.00402fd4
pop esi
pop ebx
ret
Function at 0x457f44
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00457c78
xor eax, eax
push ebp
push 0x457fbd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00403b20
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x457f80
call fcn.004035f0
jmp 0x457fc4
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
call sub.wsock32.dll_gethostname
test eax, eax
jne 0x457fa7
mov eax, ebx
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00403d50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457fc4
mov eax, dword [ebp - 4]
call fcn.00457c84
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x457fcc
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00403f64
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00402afc
test ebx, ebx
je 0x458017
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret

Function at 0x4580f4
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x458125
mov ecx, dword [0x481618]
mov dl, 1
mov eax, dword [0x457074]
call fcn.0040b314
call fcn.00403550
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x458152
mov ecx, dword [0x48159c]
mov dl, 1
mov eax, dword [0x457074]
call fcn.0040b314
call fcn.00403550
xor eax, eax
push ebp
push 0x4581d1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xffff
call fcn.00402fd4
cmp byte [ebp + 8], 0
je 0x4581ad
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0045805c
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.00457ebc
jmp 0x4581c7
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.004579ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4581ee
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc