joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fcb1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x41fcbc
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x41fd70
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x602d00]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x602d00]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x602d00]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x602d00]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x602d00]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x602d00]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x602d00]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x602d00]
add ecx, 8
sub edi, 8
dec esi
jne 0x41fcd3
pop ebx
test edi, edi
je 0x41fd89
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x602d00]
inc ecx
dec edi
jne 0x41fd74
pop esi
not eax
pop edi
ret

Function at 0x42050f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x42053f
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42053a
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x420567
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x420550
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0048b960
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret

Function at 0x4211e7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
push edi
jne 0x42125e
cmp dword [esi + 4], 0xffffffff
jne 0x42125e
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x5ff8dc
push edi
call fcn.00490b17
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
jne 0x421230
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x421230
mov eax, 0x2000000
jmp 0x421263
mov edi, dword [ebp + 0x10]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00420388
add esp, 0xc
test eax, eax
jne 0x42124e
mov eax, dword [ebp + 8]
jmp 0x421263
push eax
call fcn.0042077f
mov dword [esi], eax
mov eax, dword [0x6356f0]
pop ecx
jmp 0x421263
mov eax, 0x1000000
pop edi
pop ebp
ret 0xc
Function at 0x422114
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xa5c], ebx
je 0x42217b
cmp dword [ebp + 8], 0x100
jne 0x42216a
cmp word [ebp + 0xc], 0xd
jne 0x42216a
cmp byte [esi + 0xa62], bl
je 0x422152
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x42216a
cmp byte [esi + 0xa63], bl
jne 0x42216a
mov edx, dword [esi + 0x40]
cmp edx, ebx
je 0x422166
push ebx
push ebx
push esi
mov ecx, str.return
call fcn.004142eb
xor eax, eax
jmp 0x42217e
mov eax, dword [esi + 0xa5c]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop esi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x42eca1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x621810]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [esi + 0x10], 0
push ebx
push edi
je 0x42ed03
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00496e60
mov ebx, esp
test ebx, ebx
je 0x42ed03
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 0x10]
push ebx
add eax, 0x348
call fcn.004150dc
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push 0
push 0
push ecx
call dword [eax + 0x1c]
mov ecx, str.textchanged
mov edx, eax
call fcn.004142eb
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b951
leave
ret
Function at 0x438a2a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x621810]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x10], eax
and dword [eax + 0xbfc], 0
cmp dword [ebx + 4], 0
push esi
push edi
jne 0x438aca
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, dword [eax]
mov dword [ebp - 0x164], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x160], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x15c], ecx
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x158], eax
mov eax, dword [ecx]
call dword [eax + 0x1c]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x164]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
movsd dword es:[edi], dword [esi]
push 0x40000000
push dword [eax]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
call fcn.00411482
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
mov edi, dword [ecx + 0xa24]
call dword [eax + 0x1c]
mov esi, eax
mov eax, edi
call fcn.0041483f
push 1
push dword [eax]
push 0x30
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
lea edx, [ebp - 0x150]
push edx
call dword [eax + 0x28]
mov eax, dword [eax]
cmp word [eax], 0
lea ecx, [ebp - 0x150]
sete byte [ebp - 0x151]
call fcn.00414fb8
cmp byte [ebp - 0x151], 0
mov esi, 0xbec
je 0x438b0b
mov eax, dword [ebx + 0x10]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [ebx + 0x10]
add eax, esi
push eax
push 0
push 0x1002
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov byte [ebx + 0x18], 1
pop esi
call fcn.0048b951
leave
ret 4
Function at 0x441358
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x44137d
cmp eax, edi
jge 0x441375
mov eax, esi
call fcn.00440d0e
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edi, dword [esi + 8]
xor ecx, ecx
test edi, edi
jle 0x4413aa
mov eax, dword [esi + 0xc]
push ebx
mov dl, byte [esi + 0xc]
sub edi, 8
mov byte [ebp + ecx - 4], dl
shr eax, 8
mov ebx, edi
inc ecx
mov dword [esi + 0xc], eax
test ebx, ebx
jg 0x44138a
mov dword [esi + 8], ebx
pop ebx
cmp ecx, 4
jge 0x4413c9
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x4413b7
xor eax, eax
jmp 0x4413bf
mov dl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, dl
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x4413ad
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x4413fd
mov dword [0x635508], str.zlib_corrupt
xor eax, eax
jmp 0x44143d
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x441412
mov dword [0x635508], str.read_past_buffer
jmp 0x4413f9
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x441427
mov ecx, edi
call fcn.00440d44
test eax, eax
je 0x4413f9
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0048b960
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret

Function at 0x4480f0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d912
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x621810]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x220], edi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov dword [ebp - 0x224], esi
mov word [esi], ax
mov dword [ebp - 4], edi
push edi
mov dword [ebp - 0x220], 1
call dword [sym.imp.ole32.dll_CoInitialize]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x21c]
push ecx
push edx
push edi
mov dword [ebp - 0x21c], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, edi
jne 0x44819e
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x44819e
lea edx, [ebp - 0x218]
push edx
call fcn.0048c5ca
add esp, 4
lea ecx, [ebp - 0x218]
call fcn.00401834
mov eax, dword [ebp - 0x21c]
cmp eax, edi
je 0x4481af
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b951
mov esp, ebp
pop ebp
ret
Function at 0x4481e0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_accept
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44824b
mov ecx, dword [esi + 0x10]
mov eax, 8
cmp dword [esi + 0x14], eax
jb 0x44821c
mov esi, dword [esi]
cmp dword [edi + 0x14], eax
jb 0x448225
mov eax, dword [edi]
jmp 0x448227
mov eax, edi
mov edx, dword [ebp - 4]
add ecx, ecx
push ecx
push esi
push 1
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4483a0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59fb88
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x621810]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0x1ff
lea eax, [ebp - 0x20f]
mov dword [ebp - 0x254], ebx
push ebx
push eax
mov dword [ebp - 0x25c], edi
mov esi, ecx
mov dword [ebp - 0x24c], ebx
mov byte [ebp - 0x210], bl
call fcn.0048cf80
xor ecx, ecx
mov dword [ebp - 0x258], 0x200
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
add esp, 0xc
mov word [edi], cx
lea edx, [ebp - 0x24c]
push edx
push 0xf003f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [ebp - 4], ebx
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x254], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x448585
cmp dword [esi + 0x14], 8
jb 0x448451
mov esi, dword [esi]
lea eax, [ebp - 0x258]
push eax
mov eax, dword [ebp - 0x24c]
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x250]
push edx
push ebx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x448585
cmp dword [ebp - 0x250], 1
jne 0x448585
lea edx, [ebp - 0x210]
xor ecx, ecx
push edx
mov dword [ebp - 0x218], 7
mov dword [ebp - 0x21c], ebx
mov word [ebp - 0x22c], cx
call fcn.0048c5ca
add esp, 4
lea ecx, [ebp - 0x210]
lea esi, [ebp - 0x22c]
call fcn.00401834
mov eax, esi
push eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 1
call fcn.00448260
add esp, 4
mov esi, eax
cmp edi, esi
je 0x44853c
cmp dword [edi + 0x14], 8
jb 0x4484f2
mov eax, dword [edi]
push eax
call fcn.0048bcc1
add esp, 4
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], cx
cmp dword [esi + 0x14], 8
jae 0x44851b
mov eax, dword [esi + 0x10]
lea edx, [eax + eax + 2]
push edx
push esi
push edi
call fcn.0048bf90
add esp, 0xc
jmp 0x448521
mov eax, dword [esi]
mov dword [edi], eax
mov dword [esi], ebx
mov ecx, dword [esi + 0x10]
mov dword [edi + 0x10], ecx
mov edx, dword [esi + 0x14]
mov dword [edi + 0x14], edx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
cmp dword [ebp - 0x234], 8
jb 0x448554
mov ecx, dword [ebp - 0x248]
push ecx
call fcn.0048bcc1
add esp, 4
xor edx, edx
cmp dword [ebp - 0x218], 8
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], ebx
mov word [ebp - 0x248], dx
jb 0x448585
mov eax, dword [ebp - 0x22c]
push eax
call fcn.0048bcc1
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b951
mov esp, ebp
pop ebp
ret
Function at 0x448720
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x621810]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
jne 0x44874c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b951
mov esp, ebp
pop ebp
ret
push ebx
push esi
xor ebx, ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x448772
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b951
mov esp, ebp
pop ebp
ret
push edi
lea ecx, [ebp - 0x230]
push ecx
mov edi, 0x22c
push esi
mov dword [ebp - 0x230], edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x4487a1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b951
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x230]
push edx
mov dword [ebp - 0x230], edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
push esi
call edi
test eax, eax
je 0x448818
jmp 0x4487c0
mov eax, dword [ebp + 8]
call fcn.004017ef
lea ecx, [ebp - 0x20c]
mov edi, edi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4487f6
test dx, dx
je 0x4487f2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4487f6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4487d0
xor eax, eax
jmp 0x4487fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x448800
inc ebx
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call edi
test eax, eax
jne 0x4487c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0048b951
mov esp, ebp
pop ebp
ret

Function at 0x448840
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push 0x44
mov esi, eax
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.0048cf80
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x58]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x448892
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
test esi, esi
je 0x4488ad
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 4], edx
mov edx, dword [ebp - 4]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov eax, dword [ebp - 0xc]
push eax
call esi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4488d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e576
mov eax, dword fs:[0]
push eax
sub esp, 0xa70
mov eax, dword [0x621810]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0xa7c], eax
xor ebx, ebx
xor eax, eax
mov edi, 7
push esi
mov dword [ebp - 0xa78], ebx
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x81c], ebx
mov word [ebp - 0x82c], ax
call fcn.0048c5ca
mov ecx, esi
add esp, 4
lea esi, [ebp - 0x82c]
call fcn.00401834
mov ecx, esi
push ecx
lea ecx, [ebp - 0x848]
mov dword [ebp - 4], ebx
call fcn.0044b640
add esp, 4
mov byte [ebp - 4], 2
cmp dword [ebp - 0x818], 8
jb 0x448974
mov edx, dword [ebp - 0x82c]
push edx
call fcn.0048bcc1
add esp, 4
xor eax, eax
push 0x5ff8dc
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x81c], ebx
mov word [ebp - 0x82c], ax
call fcn.0048c5ca
add esp, 4
mov edi, eax
push 0x5ff8dc
lea eax, [ebp - 0x848]
call fcn.00401757
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4489c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x448aa7
push 0x22c
lea ecx, [ebp - 0xa74]
push ebx
push ecx
call fcn.0048cf80
add esp, 0xc
lea edx, [ebp - 0xa74]
push edx
push edi
mov dword [ebp - 0xa74], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x448a92
mov eax, dword [ebp - 0xa6c]
cmp eax, dword [ebp - 0xa7c]
je 0x448a84
push eax
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x448a7c
push 0x400
lea eax, [ebp - 0x810]
push eax
push ebx
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x448a75
cmp dword [ebp - 0x834], 8
mov eax, dword [ebp - 0x848]
jae 0x448a4e
lea eax, [ebp - 0x848]
mov ecx, dword [ebp - 0x838]
push ecx
push eax
lea edx, [ebp - 0x810]
push edx
call fcn.00493b54
add esp, 0xc
test eax, eax
jne 0x448a75
mov eax, dword [ebp - 0xa6c]
mov dword [ebp - 0xa78], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xa78], ebx
jne 0x448aa0
lea ecx, [ebp - 0xa74]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x448a00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x834], 8
jb 0x448abf
mov edx, dword [ebp - 0x848]
push edx
call fcn.0048bcc1
add esp, 4
mov eax, dword [ebp - 0xa78]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b951
mov esp, ebp
pop ebp
ret
Function at 0x448af0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x621810]
xor eax, esp
mov dword [esp + 0x34], eax
lea eax, [esp + 4]
push eax
push 0x28
mov dword [esp + 0x10], 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x448b3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
sete al
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0048b951
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0xc]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x448b71
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0048b951
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 8]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x28]
push eax
push 0x10
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x20]
push ecx
push 0
push edx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x448be1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0048b951
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x34]
xor ecx, esp
mov al, 1
call fcn.0048b951
mov esp, ebp
pop ebp
ret
Function at 0x449720
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59e500
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x621810]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
push edi
mov eax, dword [0x621810]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
xor ecx, ecx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], edi
mov word [esp + 0x28], cx
mov dword [esp + 0x70], edi
cmp dword [eax + 0x10], 2
jb 0x449824
push 2
push edi
push eax
lea esi, [esp + 0x50]
call fcn.00409135
mov esi, eax
lea edx, [esp + 0x28]
cmp edx, esi
je 0x449805
cmp dword [esp + 0x3c], 8
jb 0x4497af
mov eax, dword [esp + 0x28]
push eax
call fcn.0048bcc1
add esp, 4
xor ecx, ecx
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], edi
mov word [esp + 0x28], cx
cmp dword [esi + 0x14], 8
jae 0x4497e0
mov edx, dword [esi + 0x10]
lea eax, [edx + edx + 2]
push eax
lea ecx, [esp + 0x2c]
push esi
push ecx
call fcn.0048bf90
add esp, 0xc
jmp 0x4497e8
mov edx, dword [esi]
mov dword [esp + 0x28], edx
mov dword [esi], edi
mov eax, dword [esi + 0x10]
mov dword [esp + 0x38], eax
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x3c], ecx
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], dx
cmp dword [esp + 0x58], 8
jb 0x449819
mov eax, dword [esp + 0x44]
push eax
call fcn.0048bcc1
add esp, 4
cmp dword [esp + 0x3c], 8
mov eax, dword [esp + 0x28]
jae 0x449828
lea eax, [esp + 0x28]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp dword [esp + 0x3c], 8
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
jb 0x44985a
mov edx, dword [esp + 0x28]
push edx
call fcn.0048bcc1
add esp, 4
mov edx, edi
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.0048b951
mov esp, ebp
pop ebp
ret
Function at 0x449880
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d882
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x621810]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x2a0]
push eax
xor ebx, ebx
push 0x202
mov dword [ebp - 0x2ac], esi
mov dword [ebp - 0x2a8], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0xfe
lea ecx, [ebp - 0x10f]
push ebx
push ecx
mov byte [ebp - 0x110], bl
call fcn.0048cf80
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
add esp, 0xc
mov byte [esi], bl
push 0xff
lea edx, [ebp - 0x110]
mov dword [ebp - 4], ebx
push edx
mov dword [ebp - 0x2a8], 1
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp edi, ebx
je 0x44996b
mov eax, dword [edi + 0xc]
cmp dword [eax], ebx
je 0x44996b
movsx ecx, word [edi + 0xa]
mov edx, dword [eax]
push ecx
push edx
lea eax, [ebp - 0x2a4]
push eax
call fcn.0048bf90
mov ecx, dword [ebp - 0x2a4]
add esp, 0xc
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
push edi
call fcn.0048d170
add esp, 4
push eax
push edi
mov ecx, esi
call fcn.0040ba64
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b951
mov esp, ebp
pop ebp
ret