joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457964
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x463c2c]
cmp dword [eax + 0x30], 0
je 0x457a0e
cmp dword [ebx + 0x94], 0
jne 0x457a08
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4578f4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x457a08
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 0x4579ce
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x457a08
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.0041a9d8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4579dd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4584ec
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 0x458521
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.00404728
jmp 0x45852e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040468c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x459564
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4595a5
mov eax, esi
call fcn.0043f9d0
test al, al
je 0x4595a5
mov eax, dword [ebx + 0x84]
call fcn.0043f6cc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4595a5
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043f6cc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45a544
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.0045a150
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.00404ae8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x45a5a2
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x462688]
mov dl, 1
mov eax, dword [0x45a048]
call fcn.0040c1e0
call fcn.00404098
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x45a5ac
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.00404ae8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x45a604
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x462884]
mov dl, 1
mov eax, dword [0x45a048]
call fcn.0040c1e0
call fcn.00404098
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0045a180
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 0x45b9dc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x45bab2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x45ba95
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
call sub.shell32.dll_SHGetMalloc
test eax, eax
jne 0x45ba74
lea eax, [ebp - 8]
push eax
push esi
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, ebx
mov edx, 0x3e8
call fcn.00404c74
mov eax, dword [ebx]
call fcn.00404ae8
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
jne 0x45ba5e
mov ecx, 0x45bac8
mov dl, 1
mov eax, dword [0x407aec]
call fcn.0040c0e8
call fcn.00404098
mov eax, dword [ebx]
call fcn.00404ae8
push eax
call sub.kernel32.dll_lstrlenA_1
mov edx, eax
mov eax, ebx
call fcn.00404c74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ba9c
cmp dword [ebp - 8], 0
je 0x45ba94
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
ret
Function at 0x45c880
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov edi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ad8
xor eax, eax
push ebp
push 0x45ca25
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
mov edx, 0x45ca3c
call fcn.0040468c
mov eax, ebx
mov edx, 0x45ca3c
call fcn.0040468c
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x45c9fb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404ae8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jle 0x45c9df
lea eax, [esi + 2]
call fcn.00402718
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push esi
push 0
mov eax, dword [ebp - 4]
call fcn.00404ae8
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x45ca40
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 2]
mov edx, 4
call fcn.00408ac0
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
mov edx, 4
call fcn.00408ac0
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
pop ecx
call fcn.0040493c
mov eax, ebx
mov edx, 0x104
call fcn.00404c74
push 0x104
mov eax, dword [ebx]
call fcn.00404ae8
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_VerLanguageNameA
mov eax, dword [ebx]
call fcn.00404ae8
mov edx, eax
mov eax, ebx
call fcn.00404828
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x45ca64
push dword [ebp - 0x18]
push 0x45ca80
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.004049b0
mov eax, dword [ebp - 0x24]
call fcn.00404ae8
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
mov eax, edi
mov edx, dword [ebp - 0x10]
call fcn.00404828
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ca02
cmp dword [ebp - 0xc], 0
je 0x45c9fa
mov eax, dword [ebp - 0xc]
call fcn.00402738
ret
Function at 0x45d08c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe88
push ebx
xor ebx, ebx
mov dword [ebp - 0x178], ebx
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x16c], ebx
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ad8
mov eax, dword [ebp - 8]
call fcn.00404ad8
mov eax, dword [ebp - 0xc]
call fcn.00404ad8
lea eax, [ebp - 0x164]
mov edx, dword [0x407acc]
call fcn.00405040
xor eax, eax
push ebp
push 0x45d2df
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00408d88
lea eax, [ebp - 0x168]
mov ecx, 0x45d2f4
mov edx, dword [ebp - 4]
call fcn.0040493c
mov eax, dword [ebp - 0x168]
lea ecx, [ebp - 0x164]
mov edx, 0x3f
call fcn.00408f0c
test eax, eax
jne 0x45d298
mov eax, dword [ebp - 0x158]
cmp byte [eax], 0x2e
je 0x45d285
mov eax, dword [ebp - 0x15c]
and eax, 0x10
cmp eax, 0x10
jne 0x45d1b5
mov eax, dword [ebp + 8]
cmp byte [eax + 0x10], 0
je 0x45d285
mov eax, dword [ebp + 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0x158]
push 0x45d300
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004049b0
mov eax, dword [ebp - 0x16c]
push eax
push dword [ebp - 4]
push dword [ebp - 0x158]
push 0x45d300
lea eax, [ebp - 0x170]
mov edx, 3
call fcn.004049b0
mov eax, dword [ebp - 0x170]
mov ecx, dword [ebp - 0xc]
pop edx
call fcn.0045d08c
pop ecx
jmp 0x45d285
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x158]
call fcn.0045c7b4
test al, al
je 0x45d285
mov eax, dword [ebp + 8]
add eax, 0xffffffe8
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 4]
call fcn.0040493c
mov eax, dword [ebp + 8]
inc dword [eax - 0xc]
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
lea eax, [ebp - 0x174]
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 8]
call fcn.0040493c
mov edx, dword [ebp - 0x174]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
call fcn.0045cd9c
mov edx, dword [ebp + 8]
mov byte [edx - 0x1d], al
mov eax, dword [ebp + 8]
cmp byte [eax - 8], 0
jne 0x45d233
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 2
je 0x45d233
xor eax, eax
jmp 0x45d235
mov al, 1
mov edx, dword [ebp + 8]
mov byte [edx - 8], al
mov eax, dword [ebp + 8]
cmp byte [eax - 0x1d], 0
je 0x45d285
push 2
push 0
mov eax, dword [ebp + 8]
add eax, 0xffffffe4
push eax
push 0x45cc48
lea eax, [ebp - 0x178]
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 8]
call fcn.0040493c
mov eax, dword [ebp - 0x178]
call fcn.00404ae8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
call fcn.00404ae8
push eax
call sub.kernel32.dll_CopyFileExA
lea eax, [ebp - 0x164]
call fcn.00408f5c
test eax, eax
je 0x45d12f
lea eax, [ebp - 0x164]
call fcn.00408f80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d2e6
lea eax, [ebp - 0x178]
mov edx, 5
call fcn.0040465c
lea eax, [ebp - 0x164]
mov edx, dword [0x407acc]
call fcn.00405110
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040465c
ret
Function at 0x45d640
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd30
push ebx
xor ebx, ebx
mov dword [ebp - 0x2d0], ebx
mov dword [ebp - 0x2cc], ebx
mov dword [ebp - 0x2c8], ebx
mov dword [ebp - 0x2c4], ebx
mov dword [ebp - 0x2c0], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404ad8
mov eax, dword [ebp - 8]
call fcn.00404ad8
lea eax, [ebp - 0x164]
mov edx, dword [0x407acc]
call fcn.00405040
lea eax, [ebp - 0x2bc]
mov edx, dword [0x407acc]
call fcn.00405040
xor eax, eax
push ebp
push 0x45d84c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004048f0
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x45d6d5
lea eax, [ebp - 4]
mov edx, 0x45d864
call fcn.004048f8
lea eax, [ebp - 0x2c0]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040493c
mov eax, dword [ebp - 0x2c0]
lea ecx, [ebp - 0x164]
mov edx, 0x27
call fcn.00408f0c
test eax, eax
jne 0x45d747
mov eax, dword [ebp - 0x158]
cmp byte [eax], 0x2e
je 0x45d738
mov eax, dword [ebp - 0x15c]
add eax, 0xfffffff0
sub eax, 0x10
jb 0x45d738
lea eax, [ebp - 0x2c4]
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 4]
call fcn.0040493c
mov eax, dword [ebp - 0x2c4]
call fcn.00408f9c
lea eax, [ebp - 0x164]
call fcn.00408f5c
test eax, eax
je 0x45d700
lea eax, [ebp - 0x164]
call fcn.00408f80
cmp byte [ebp - 9], 0
je 0x45d80b
lea eax, [ebp - 0x2c8]
mov ecx, 0x45d870
mov edx, dword [ebp - 4]
call fcn.0040493c
mov eax, dword [ebp - 0x2c8]
lea ecx, [ebp - 0x2bc]
mov edx, 0x1f
call fcn.00408f0c
test eax, eax
jne 0x45d800
mov eax, dword [ebp - 0x2b0]
cmp byte [eax], 0x2e
je 0x45d7f1
mov eax, dword [ebp - 0x2b4]
add eax, 0xfffffff0
sub eax, 0x10
jae 0x45d7f1
push ebx
lea eax, [ebp - 0x2cc]
mov ecx, dword [ebp - 0x2b0]
mov edx, dword [ebp - 4]
call fcn.0040493c
mov eax, dword [ebp - 0x2cc]
mov cl, byte [ebp - 9]
mov edx, dword [ebp - 8]
call fcn.0045d874
test bl, bl
je 0x45d7f1
lea eax, [ebp - 0x2d0]
mov ecx, dword [ebp - 0x2b0]
mov edx, dword [ebp - 4]
call fcn.0040493c
mov eax, dword [ebp - 0x2d0]
call fcn.00404ae8
push eax
call sub.kernel32.dll_RemoveDirectoryA
lea eax, [ebp - 0x2bc]
call fcn.00408f5c
test eax, eax
je 0x45d789
lea eax, [ebp - 0x2bc]
call fcn.00408f80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d853
lea eax, [ebp - 0x2d0]
mov edx, 5
call fcn.0040465c
lea eax, [ebp - 0x2bc]
mov edx, dword [0x407acc]
mov ecx, 2
call fcn.00405144
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040465c
ret
Function at 0x45d874
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404ad8
mov eax, dword [ebp - 8]
call fcn.00404ad8
xor eax, eax
push ebp
push 0x45d8e1
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
mov cl, byte [ebp - 9]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045d640
test bl, bl
je 0x45d8c6
mov eax, dword [ebp - 4]
call fcn.00404ae8
push eax
call sub.kernel32.dll_RemoveDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d8e8
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040465c
ret

Function at 0x45e020
Capabilities:
Create service
Stop service

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffdc
mov dword [esp], edx
mov ebp, eax
xor ebx, ebx
xor eax, eax
mov dword [esp + 4], eax
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov edi, eax
test edi, edi
je 0x45e13f
push 0xf01ff
push ebp
push edi
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
je 0x45e101
lea eax, [esp + 8]
push eax
push 4
push esi
call sub.advapi32.dll_ControlService
test eax, eax
je 0x45e0f1
cmp dword [esp + 0xc], 1
je 0x45e0f1
lea eax, [esp + 8]
push eax
push 1
push esi
call sub.advapi32.dll_ControlService
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x45e0a2
push esi
call sub.advapi32.dll_CloseServiceHandle
push edi
call sub.advapi32.dll_CloseServiceHandle
jmp 0x45e13f
mov ebp, 0xa
lea eax, [esp + 8]
push eax
push 4
push esi
call sub.advapi32.dll_ControlService
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x45e0c5
cmp dword [esp + 0xc], 1
jne 0x45e0cf
mov dword [esp + 4], 0xffffffff
jmp 0x45e0dc
push 0xfa0
call sub.kernel32.dll_Sleep_1
dec ebp
jne 0x45e0a7
cmp dword [esp + 4], 0
jne 0x45e0f1
push esi
call sub.advapi32.dll_CloseServiceHandle
push edi
call sub.advapi32.dll_CloseServiceHandle
jmp 0x45e13f
push esi
call sub.advapi32.dll_CloseServiceHandle
push edi
call sub.advapi32.dll_CloseServiceHandle
mov bl, 1
jmp 0x45e13f
push 0
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
push 1
push 1
push 1
push 0xf01ff
push ebp
push ebp
push edi
call sub.advapi32.dll_CreateServiceA
mov esi, eax
test esi, esi
jne 0x45e131
push edi
call sub.advapi32.dll_CloseServiceHandle
jmp 0x45e13f
push esi
call sub.advapi32.dll_CloseServiceHandle
push edi
call sub.advapi32.dll_CloseServiceHandle
mov bl, 1
mov eax, ebx
add esp, 0x24
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x45e14c
Capabilities:
Start service

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov edi, edx
mov esi, eax
xor ebx, ebx
mov edx, edi
mov eax, esi
call fcn.0045e020
test al, al
je 0x45e23c
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov edi, eax
test edi, edi
je 0x45e23c
push 0xf01ff
push esi
push edi
call sub.advapi32.dll_OpenServiceA
mov ebp, eax
test ebp, ebp
jne 0x45e19f
push edi
call sub.advapi32.dll_CloseServiceHandle
jmp 0x45e23c
lea eax, [esp + 4]
push eax
push 4
push ebp
call sub.advapi32.dll_ControlService
test eax, eax
je 0x45e1c7
cmp dword [esp + 8], 4
jne 0x45e1e1
push ebp
call sub.advapi32.dll_CloseServiceHandle
push edi
call sub.advapi32.dll_CloseServiceHandle
mov bl, 1
jmp 0x45e23c
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x426
je 0x45e1e1
push ebp
call sub.advapi32.dll_CloseServiceHandle
push edi
call sub.advapi32.dll_CloseServiceHandle
jmp 0x45e23c
push esp
push 0
push ebp
call sub.advapi32.dll_StartServiceA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x45e202
push ebp
call sub.advapi32.dll_CloseServiceHandle
push edi
call sub.advapi32.dll_CloseServiceHandle
jmp 0x45e23c
mov esi, 0xa
lea eax, [esp + 4]
push eax
push 4
push ebp
call sub.advapi32.dll_ControlService
test eax, eax
je 0x45e223
cmp dword [esp + 8], 4
jne 0x45e223
mov bl, 1
jmp 0x45e230
push 0xfa0
call sub.kernel32.dll_Sleep_1
dec esi
jne 0x45e207
push ebp
call sub.advapi32.dll_CloseServiceHandle
push edi
call sub.advapi32.dll_CloseServiceHandle
mov eax, ebx
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x45f9ec
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x90], edx
mov dword [ebp - 8], edx
xor eax, eax
push ebp
push 0x45fba6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x89]
xor ecx, ecx
mov edx, 0x81
call fcn.004030c4
lea eax, [ebp - 0x89]
push eax
push 0x81
call sub.kernel32.dll_GetLogicalDriveStringsA
test eax, eax
je 0x45fb80
cmp eax, 0x81
jbe 0x45fa70
lea edx, [ebp - 0x90]
mov eax, 0xe
call fcn.0040b8f0
mov ecx, dword [ebp - 0x90]
mov dl, 1
mov eax, dword [0x407aec]
call fcn.0040c0e8
call fcn.00404098
xor ebx, ebx
lea eax, [ebp - 8]
mov edx, 0x20
call fcn.00404c74
mov eax, dword [ebp - 8]
call fcn.004048f0
push eax
lea eax, [ebp - 8]
call fcn.00404b40
xor ecx, ecx
pop edx
call fcn.004030c4
lea esi, [ebp - 0x89]
jmp 0x45fac2
push esi
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x45fabf
lea eax, [ebp - 8]
call fcn.00404b40
mov dl, byte [esi]
mov byte [eax + ebx], dl
inc dword [0x463cf4]
inc ebx
add esi, 4
cmp byte [esi], 0
jne 0x45faa0
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404c74
push 0x80
lea eax, [ebp - 0x89]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov al, byte [ebp - 0x89]
mov byte [ebp - 1], al
lea eax, [ebp - 0x94]
mov dl, byte [ebp - 1]
call fcn.00404818
mov eax, dword [ebp - 0x94]
mov edx, dword [ebp - 8]
call fcn.00404c2c
mov edi, eax
mov ebx, edi
mov eax, dword [ebp - 8]
call fcn.004048f0
mov esi, eax
dec esi
sub esi, ebx
jl 0x45fb47
inc esi
mov eax, dword [ebp - 8]
mov al, byte [eax + ebx - 1]
sub al, 0x41
inc eax
call fcn.00409220
cmp edx, 0
jne 0x45fb38
cmp eax, 0xc800000
jbe 0x45fb43
jmp 0x45fb3a
jle 0x45fb43
mov eax, dword [ebp - 8]
mov bl, byte [eax + ebx - 1]
jmp 0x45fb80
inc ebx
dec esi
jne 0x45fb1b
mov esi, edi
dec esi
test esi, esi
jl 0x45fb7d
inc esi
xor ebx, ebx
mov eax, dword [ebp - 8]
mov al, byte [eax + ebx - 1]
sub al, 0x41
inc eax
call fcn.00409220
cmp edx, 0
jne 0x45fb6e
cmp eax, 0xc800000
jbe 0x45fb79
jmp 0x45fb70
jle 0x45fb79
mov eax, dword [ebp - 8]
mov bl, byte [eax + ebx - 1]
jmp 0x45fb80
inc ebx
dec esi
jne 0x45fb51
mov bl, byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fbad
lea eax, [ebp - 0x94]
mov edx, 2
call fcn.0040465c
lea eax, [ebp - 8]
call fcn.00404638
ret
Function at 0x401470
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x80
push 4
push 0
push 1
push SysReAllocString
push ecx
mov dword [ebp - 0xdc], edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4014bf
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xd8], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x40000000
ja 0x4014ac
xor ecx, ecx
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.00453a23
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4014ac
push 0
lea eax, [ebp - 0xd4]
mov dword [ebp - 0xd4], 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4014ac
xor eax, eax
cmp dword [ebp - 0xd4], esi
jne 0x40158a
push 0xc6
push eax
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push eax
call fcn.00453200
lea eax, [ebp - 0xd0]
mov edx, esi
push eax
mov ecx, ebx
call fcn.004110f0
mov esi, dword [ebp - 0xdc]
push 0x64
push 0
push esi
call fcn.00453200
lea eax, [ebp - 0xd0]
push eax
push 0x481680
push esi
call fcn.004582cf
push ebx
call fcn.00454bdd
add esp, 0x2c
test edi, edi
je 0x401585
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004524fc
mov esp, ebp
pop ebp
ret

Function at 0x4015a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
test eax, eax
je 0x40161d
lea ecx, [ebp + 0xc]
push ecx
push eax
call fcn.00458677
add esp, 8
lea esi, [eax + 1]
cmp esi, 0x200
jg 0x40161d
push 0x3ff
lea eax, [ebp - 0x40b]
mov byte [ebp - 0x40c], 0
push 0
push eax
call fcn.00453200
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x40c]
push esi
push esi
push eax
call fcn.0045841d
add esp, 0x20
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x40c]
call fcn.0040fa90
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.004524fc
mov esp, ebp
pop ebp
ret
Function at 0x4017a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 6
push 1
push 2
mov ebx, edx
mov dword [ebp - 0x34], ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x40186a
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 8]
push 4
push eax
push 1
push 6
push esi
mov dword [ebp - 8], 1
call edi
xor eax, eax
mov dword [ebp - 8], 1
push 4
mov word [ebp - 6], ax
lea eax, [ebp - 8]
push eax
push 0xffffff7f
push 0xffff
push esi
call edi
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x80000
push eax
push 0x1001
push 0xffff
push esi
call edi
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x200000
push eax
push 0x1002
push 0xffff
push esi
call edi
push ecx
mov ecx, esi
call fcn.0040a150
add esp, 4
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x10]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x40187d
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
push 4
push 0xffff
push esi
call edi
test eax, eax
jne 0x401863
mov edi, dword [sym.imp.WS2_32.dll_htons]
xorps xmm0, xmm0
mov dword [ebp - 0x26], eax
mov word [ebp - 0x22], ax
mov eax, 2
push 0
movq qword [ebp - 0x2e], xmm0
mov word [ebp - 0x30], ax
call edi
push 0
mov word [ebp - 0x2e], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x401863
mov dword [ebp - 0x16], eax
xorps xmm0, xmm0
mov word [ebp - 0x12], ax
mov eax, 2
push ebx
movq qword [ebp - 0x1e], xmm0
mov word [ebp - 0x20], ax
call edi
mov word [ebp - 0x1e], ax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x401922
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x401863
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004524fc
mov esp, ebp
pop ebp
ret