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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push esi
push edi
mov esi, eax
lea edi, [ebp - 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov byte [ebp - 9], 0
test byte [ebp - 4], 1
je 0x58a089
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jl 0x58a0bf
push 0xa4
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jl 0x58a0bf
push 0xa5
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x58a1c3
jmp 0x58a0bf
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jl 0x58a1c3
push 0xa4
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jl 0x58a1c3
push 0xa5
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jl 0x58a1c3
test byte [ebp - 4], 2
je 0x58a0f5
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jl 0x58a12b
push 0xa2
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jl 0x58a12b
push 0xa3
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x58a1c3
jmp 0x58a12b
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jl 0x58a1c3
push 0xa2
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jl 0x58a1c3
push 0xa3
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jl 0x58a1c3
test byte [ebp - 4], 4
je 0x58a15d
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jl 0x58a187
push 0xa0
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jl 0x58a187
push 0xa1
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x58a1c3
jmp 0x58a187
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jl 0x58a1c3
push 0xa0
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jl 0x58a1c3
push 0xa1
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jl 0x58a1c3
test byte [ebp - 4], 8
je 0x58a1a7
push 0x5b
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jl 0x58a1bf
push 0x5c
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x58a1c3
jmp 0x58a1bf
push 0x5b
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jl 0x58a1c3
push 0x5c
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jl 0x58a1c3
mov byte [ebp - 9], 1
mov al, byte [ebp - 9]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x58a3c0
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
call sub.user32.dll_GetShellWindow
cmp eax, dword [ebp - 4]
je 0x58a3e8
push 0
push 0x58a3f4
call sub.user32.dll_FindWindowW
cmp eax, dword [ebp - 4]
je 0x58a3e8
xor eax, eax
jmp 0x58a3ea
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret
Function at 0x593930
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov byte [ebp - 5], 0
push 0x593b28
push 0x593b38
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040b48c
mov dword [ebp - 4], eax
push 6
push 1
push 2
call sub.ws2_32.dll_socket
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x593977
push ebp
mov eax, 0x593b5c
call fcn.00593830
pop ecx
jmp 0x593b1e
xor eax, eax
push ebp
push 0x593b17
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 1
push 4
lea eax, [ebp - 0x18]
push eax
push 4
push 0xffff
mov eax, dword [ebp - 0x10]
push eax
call sub.ws2_32.dll_setsockopt
mov dword [ebp - 0xc], 0x10
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0xc]
call fcn.0042b030
mov word [ebp - 0x28], 2
push 0x593ba4
call sub.ws2_32.dll_inet_addr
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.ws2_32.dll_bind
inc eax
jne 0x5939f1
push ebp
mov eax, 0x593bbc
call fcn.00593830
pop ecx
call fcn.00405dfc
jmp 0x593b1e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.ws2_32.dll_getsockname
inc eax
jne 0x593a1b
push ebp
mov eax, 0x593bf8
call fcn.00593830
pop ecx
call fcn.00405dfc
jmp 0x593b1e
push 0x593ba4
call sub.ws2_32.dll_inet_addr
mov dword [ebp - 0x24], eax
push 0x7fffffff
mov eax, dword [ebp - 0x10]
push eax
call sub.ws2_32.dll_listen
inc eax
jne 0x593a4f
push ebp
mov eax, 0x593c44
call fcn.00593830
pop ecx
call fcn.00405dfc
jmp 0x593b1e
push 6
push 1
push 2
call sub.ws2_32.dll_socket
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x593a79
push ebp
mov eax, 0x593c94
call fcn.00593830
pop ecx
call fcn.00405dfc
jmp 0x593b1e
xor eax, eax
push ebp
push 0x593af9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.ws2_32.dll_connect
inc eax
jne 0x593ab3
push ebp
mov eax, 0x593ce4
call fcn.00593830
pop ecx
call fcn.00405dfc
call fcn.00405dfc
jmp 0x593b1e
push ebp
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.005937f0
pop ecx
cmp eax, 0xffffffff
jne 0x593ade
push ebp
mov eax, 0x593d24
call fcn.00593830
pop ecx
call fcn.00405dfc
call fcn.00405dfc
jmp 0x593b1e
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x593b00
mov eax, dword [ebp - 0x14]
push eax
call sub.ws2_32.dll_closesocket
ret
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x593d60
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x593ed9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xa], 1
mov eax, dword [ebp - 8]
call fcn.0042c2c0
mov dl, 1
mov eax, dword [0x427230]
call fcn.00405008
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x593eaf
push dword fs:[eax]
mov dword fs:[eax], esp
mov cl, byte [0x593ee8]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0042adf0
mov eax, dword [ebp - 0x14]
call fcn.0042ccd0
dec eax
test eax, eax
jl 0x593e99
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.0042ca80
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
call fcn.00406ae4
mov edx, eax
inc edx
mov ecx, 0x7fffffff
pop eax
call fcn.004075d4
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.00407404
push 1
mov eax, dword [ebp - 0x18]
call fcn.00407214
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.0042ca80
mov eax, dword [ebp - 0x28]
call fcn.00407214
push eax
call sub.kernel32.dll_MoveFileExW
test eax, eax
jne 0x593e8d
mov byte [ebp - 0xa], 0
lea ecx, [ebp - 0x30]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.0042ca80
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 0x593ef8
call fcn.00407404
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x5ddb4c]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043f720
cmp byte [ebp - 9], 0
je 0x593e8d
call fcn.00405dfc
jmp 0x593eb6
inc dword [ebp - 0x10]
dec dword [ebp - 0x1c]
jne 0x593de8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x593eb6
mov eax, dword [ebp - 0x14]
call fcn.00405038
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x593ee0
lea eax, [ebp - 0x30]
mov edx, 5
call fcn.00406670
lea eax, [ebp - 0x18]
call fcn.00406610
ret
Function at 0x597f80
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
xor eax, eax
push ebp
push 0x598039
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
inc dword [eax - 4]
lea ecx, [ebp - 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0042ca80
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 4]
call fcn.0042bfd0
lea edx, [ebp - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0041d1d8
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x10]
lea eax, [ebp - 8]
call fcn.00407404
push 1
mov eax, dword [ebp - 8]
call fcn.00407214
push eax
mov eax, dword [ebp - 4]
call fcn.00407214
push eax
call sub.kernel32.dll_MoveFileExW
test eax, eax
je 0x59800c
push 4
push 0
mov eax, dword [ebp - 8]
call fcn.00407214
push eax
call sub.kernel32.dll_MoveFileExW
jmp 0x59801e
push 4
push 0
mov eax, dword [ebp - 4]
call fcn.00407214
push eax
call sub.kernel32.dll_MoveFileExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x598040
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00406670
ret
Function at 0x59fa00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x59fa18
add esp, 0xfffffff0
call fcn.004052fc
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x59fac5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0x24
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x18]
call fcn.00406a70
mov eax, dword [ebp - 4]
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x30], ecx
mov ecx, dword [edx + 0x14]
mov dword [eax + 0x34], ecx
mov eax, dword [ebp - 4]
add eax, 0x7c
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0xc]
call fcn.00406a70
mov eax, dword [ebp - 4]
add eax, 0x78
mov edx, dword [ebp + 8]
call fcn.00406a70
lea edx, [ebp - 0x10]
mov eax, dword [ebp + 0xc]
call fcn.0047aeb0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0059c950
mov eax, dword [ebp - 4]
add eax, 0x38
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
call fcn.004072dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59facc
lea eax, [ebp - 0x10]
call fcn.00406634
ret

Function at 0x5a0080
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x5a0098
add esp, 0xfffffff0
call fcn.004052fc
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5a0155
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0x24
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x18]
call fcn.00406a70
mov eax, dword [ebp - 4]
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x30], ecx
mov ecx, dword [edx + 0x14]
mov dword [eax + 0x34], ecx
mov eax, dword [ebp - 4]
add eax, 0x80
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0xc]
call fcn.00406a70
mov eax, dword [ebp - 4]
lea edx, [eax + 0x7c]
mov eax, dword [ebp + 8]
call fcn.00409dc4
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 4]
call fcn.005a0510
lea edx, [ebp - 0x10]
mov eax, dword [ebp + 0xc]
call fcn.0047aeb0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0059c950
mov eax, dword [ebp - 4]
add eax, 0x38
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
call fcn.004072dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a015c
lea eax, [ebp - 0x10]
call fcn.00406634
ret
Function at 0x5a0580
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5a06e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407214
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x5a06ca
test byte [ebp - 0x10], 1
je 0x5a06ca
push 0x5a0700
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0041d1d8
push dword [ebp - 0x18]
push 0x5a075c
push dword [ebp - 4]
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.0040748c
mov eax, dword [ebp - 0x14]
push eax
call fcn.005bb100
xor ecx, ecx
pop edx
call fcn.0043f720
mov eax, dword [ebp - 0x10]
and eax, 0xfffffffe
push eax
mov eax, dword [ebp - 4]
call fcn.00407214
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, dword [ebp - 4]
call fcn.00407214
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 0x10], eax
test byte [ebp - 0x10], 1
jne 0x5a0681
cmp byte [0x5dd3e9], 0
jne 0x5a065e
mov byte [0x5dd3e9], 1
push 0
push 0
mov ecx, dword [ebp - 8]
mov eax, dword [0x5de188]
mov eax, dword [eax]
mov edx, 0x7d
call fcn.00558c90
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, 0x5a0778
call fcn.00407404
mov eax, dword [ebp - 0x1c]
push eax
call fcn.005bb100
xor ecx, ecx
pop edx
call fcn.0043fc70
jmp 0x5a06ca
cmp byte [0x5dd3e8], 0
jne 0x5a06a9
mov byte [0x5dd3e8], 1
push 0
push 0
mov ecx, dword [ebp - 8]
mov eax, dword [0x5de188]
mov eax, dword [eax]
mov edx, 0x7e
call fcn.00558c90
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 4]
mov edx, 0x5a07d4
call fcn.00407404
mov eax, dword [ebp - 0x20]
push eax
call fcn.005bb100
xor ecx, ecx
pop edx
call fcn.0043f720
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a06ec
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00406670
ret
Function at 0x5a6d70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5a6e7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004288f0
mov eax, dword [0x5dd4b0]
call fcn.0042ccd0
dec eax
cmp eax, 0
jl 0x5a6e62
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov eax, dword [0x5dd4b0]
call fcn.0042ca80
mov byte [ebp - 0x19], 0
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov eax, dword [ebp - 0x14]
call fcn.00407740
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jl 0x5a6e55
cmp byte [ebp - 0x19], 0
jne 0x5a6e2d
mov byte [ebp - 0x19], 1
lea eax, [ebp - 0x18]
mov edx, 0x105
call fcn.0040732c
mov eax, dword [ebp - 0x18]
call fcn.00407214
push eax
push 0
push 0
mov edx, dword [ebp - 0xc]
mov eax, dword [0x5dd4b0]
call fcn.0042cb30
push eax
push 0
call sub.shell32.dll_SHGetFolderPathW
test eax, eax
jne 0x5a6e25
lea eax, [ebp - 0x18]
call fcn.0042b4b0
jmp 0x5a6e2d
lea eax, [ebp - 0x18]
call fcn.00406610
mov eax, dword [ebp - 0x14]
call fcn.00406ae4
mov ecx, eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.0040761c
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
call fcn.00407680
jmp 0x5a6dc8
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xffffffff
jne 0x5a6db4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a6e84
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00406670
ret
Function at 0x5bb180
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x2c
jne 0x5bb1a7
mov eax, dword [ebp - 8]
mov edx, 0x5bb240
call fcn.004069d4
jmp 0x5bb230
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_GetKeyboardLayout
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_MapVirtualKeyExW
shl eax, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0x21
jbe 0x5bb1d7
cmp dword [ebp - 4], 0x2f
jae 0x5bb1d7
or dword [ebp - 0xc], 0x1000000
cmp dword [ebp - 4], 0x90
jne 0x5bb1e7
mov dword [ebp - 0xc], 0xc1450001
cmp dword [ebp - 4], 0x13
jne 0x5bb1f4
mov dword [ebp - 0xc], 0xc0450001
cmp dword [ebp - 0xc], 0
je 0x5bb230
push pe_nt_image_headers32
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_GetKeyNameTextW
test eax, eax
je 0x5bb228
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x20c]
mov ecx, pe_nt_image_headers32
call fcn.004072c0
jmp 0x5bb230
mov eax, dword [ebp - 8]
call fcn.00406610
mov esp, ebp
pop ebp
ret

Function at 0x5bc990
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
xor edx, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x5bca4f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
lea eax, [ebp - 0x2c]
mov dx, word [ebp - 2]
call fcn.0040722c
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
mov ecx, 0x5bca6c
call fcn.00407404
mov eax, dword [ebp - 0x14]
call fcn.00407214
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 3
jne 0x5bca31
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00407214
push eax
call sub.kernel32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x5bca31
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5bca56
lea eax, [ebp - 0x2c]
call fcn.00406610
lea eax, [ebp - 0x14]
call fcn.00406610
ret
Function at 0x40800b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417400]
jne 0x408015
repz ret
jmp fcn.0040dc97

Function at 0x40ae1c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00406429
and dword [ebp - 0x14], 0
cmp dword [0x43a514], 0
mov dword [ebp - 0x18], eax
jne 0x40aecf
push 0x402228
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40af77
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40221c
push ebx
call edi
test eax, eax
je 0x40af77
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40220c
push ebx
mov dword [0x43a514], eax
call edi
push eax
call esi
push 0x4021f8
push ebx
mov dword [0x43a518], eax
call edi
push eax
call esi
push 0x4021dc
push ebx
mov dword [0x43a51c], eax
call edi
push eax
call esi
mov dword [0x43a524], eax
test eax, eax
je 0x40aecf
push 0x4021c4
push ebx
call edi
push eax
call esi
mov dword [0x43a520], eax
mov eax, dword [0x43a520]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40af28
cmp dword [0x43a524], ecx
je 0x40af28
push eax
call esi
push dword [0x43a524]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40af28
test ebx, ebx
je 0x40af28
call edi
test eax, eax
je 0x40af1f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40af1f
test byte [ebp - 8], 1
jne 0x40af28
or dword [ebp + 0x10], 0x200000
jmp 0x40af5b
mov eax, dword [0x43a518]
cmp eax, dword [ebp - 0x18]
je 0x40af5b
push eax
call esi
test eax, eax
je 0x40af5b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40af5b
mov eax, dword [0x43a51c]
cmp eax, dword [ebp - 0x18]
je 0x40af5b
push eax
call esi
test eax, eax
je 0x40af5b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43a514]
call esi
test eax, eax
je 0x40af77
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40af79
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040800b
leave
ret
Function at 0x4147b0
Capabilities:
Access the windows event log
Connect pipe
Delete directory
Delete file
Get common file path
Manipulate console buffer
Read pipe
Write pipe

Disassembly:
mov eax, 0x1414
call fcn.0040eb70
cmp dword [0x7e9ff4], 0x37
jne 0x414884
push 0x40347c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoA]
push 0
lea eax, [esp + 0xc18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0
lea ecx, [esp + 8]
push ecx
push 0
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [esp + 0x818]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x40348c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTapePosition]
push 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push 0
lea edx, [esp + 0x418]
push edx
push 0x4034a0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov eax, dword [0x7ea408]
mov edx, dword [0x7e9ad8]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1414
ret