joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4071f0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4072fc
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
test bl, bl
je 0x407270
movzx eax, bl
add ax, 0x41
dec eax
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0
lea eax, [ebp - 0x420]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov edi, eax
cmp edi, 0x104
jbe 0x407267
mov edx, edi
dec edx
lea eax, [ebp - 4]
call fcn.0040ba00
mov eax, dword [ebp - 4]
call fcn.0040b88c
push eax
push edi
call sub.kernel32.dll_GetCurrentDirectoryW
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
cmp esi, 0x104
ja 0x4072a0
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x218]
mov ecx, 0x104
call fcn.0040b928
jmp 0x4072bc
mov edx, esi
dec edx
mov eax, dword [ebp - 8]
call fcn.0040ba00
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040b88c
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x4072e4
cmp edi, 0x104
jbe 0x4072d8
mov eax, dword [ebp - 4]
call fcn.0040b88c
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
jmp 0x4072e4
lea eax, [ebp - 0x420]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407303
lea eax, [ebp - 4]
call fcn.0040a86c
pop eax
jmp eax

Function at 0x407874
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040a86c
test esi, esi
jne 0x4078aa
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040aa04
jmp 0x4078c8
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004077b8
mov edi, eax
test esi, esi
je 0x4078c8
cmp dword [ebx], 0
je 0x4078c8
dec esi
jmp 0x4078b1
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x425044
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040b88c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4250ae
test ah, 4
je 0x4250a7
test bl, bl
jne 0x42506c
mov al, 1
jmp 0x4250d5
test al, 0x10
je 0x425074
xor eax, eax
jmp 0x4250d5
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x425098
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x4250d5
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4250d5
test al, 0x10
sete al
jmp 0x4250d5
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4250cf
cmp ebx, 3
je 0x4250cf
cmp ebx, 0x7b
je 0x4250cf
mov eax, esi
call fcn.00425004
test al, al
jne 0x4250d3
xor eax, eax
jmp 0x4250d5
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x4250dc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.0040b88c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x42517a
test esi, 0x400
jne 0x425111
test esi, 0x10
setne bl
jmp 0x42517a
cmp byte [esp], 0
je 0x425145
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42517a
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x42517a
test esi, 0x10
je 0x425151
mov bl, 1
jmp 0x42517a
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x425178
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x42517a
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x425184
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.0040b88c
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4251d9
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4251d3
test ah, 4
je 0x4251d3
test al, 0x10
je 0x4251d3
mov eax, esi
call fcn.0040b88c
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4251d9
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x44f05c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
test dl, dl
je 0x44f070
add esp, 0xfffffff0
call fcn.004090d4
mov ebx, edx
mov esi, eax
mov dl, 1
mov eax, dword [0x4490f8]
call fcn.004694f4
mov dword [esi + 4], eax
mov dl, 1
mov eax, dword [0x44e098]
call fcn.0046ab50
mov dword [esi + 8], eax
mov dl, 1
mov eax, dword [0x44e098]
call fcn.0046ab50
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x10], eax
mov eax, esi
test bl, bl
je 0x44f0c5
call fcn.0040912c
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4abda8
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
or dl, byte [ebx + 0xd]
je 0x4abdeb
cmp byte [ebx + 0x11], 0
jne 0x4abdeb
cmp byte [ebx + 0x24], 0
jne 0x4abdeb
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4abe02
mov ecx, dword [0x6b7b20]
mov dl, 1
mov eax, dword [0x47c378]
call fcn.0042b5d0
call fcn.00409f64
pop ebx
ret
mov ecx, dword [0x6b7b20]
mov dl, 1
mov eax, dword [0x47c378]
call fcn.0042b5d0
call fcn.00409f64
pop ebx
ret

Function at 0x4ac53c
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4ac58a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004abc54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ac5a3
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4ac5ac
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004abc54
dec esi
jne 0x4ac5ce
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret
Function at 0x4aeee4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x6be8b4
cmp dword [edi], 0
jne 0x4aef60
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x6be8b0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x6b152c
mov ecx, 2
call fcn.00407570
mov edx, 0x4aeebc
lea eax, [esi + 5]
call fcn.004aeedc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004aeedc
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 0x4aef35
mov dword [0x6be8b0], 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 0x552db0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
xor eax, eax
mov bx, ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x552dc6
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x552dd6
or bx, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x552de6
or bx, 2
mov eax, ebx
pop ebx
ret

Function at 0x575898
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
push 0
push 0
push 0xe
push edi
call sub.user32.dll_SendMessageW
mov ebx, eax
mov eax, esi
mov ecx, ebx
xor edx, edx
call fcn.0040aa04
test ebx, ebx
je 0x5758ec
mov eax, dword [esi]
call fcn.0040b88c
push eax
lea eax, [ebx + 1]
push eax
push 0xd
push edi
call sub.user32.dll_SendMessageW
sub ebx, eax
test ebx, ebx
jle 0x5758ec
mov eax, dword [esi]
test eax, eax
je 0x5758e1
sub eax, 4
mov eax, dword [eax]
mov edx, eax
sub edx, ebx
mov eax, esi
call fcn.0040ba00
pop edi
pop esi
pop ebx
ret

Function at 0x57d6c4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.0057d78c
test eax, eax
je 0x57d716
mov edi, dword [ebx + 8]
test edi, edi
je 0x57d6f2
test edi, edi
je 0x57d6f2
mov edx, esi
mov eax, edi
call fcn.0050c9c8
jmp 0x57d724
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.0057d78c
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040aa04
jmp 0x57d724
mov ecx, esi
mov edx, 0x57d744
mov eax, ebx
call fcn.0057d64c
lea eax, [ebx + 0x1c]
mov edx, dword [esi]
call fcn.0040ac5c
add esp, 0x200
pop edi
pop esi
pop ebx
ret

Function at 0x58c2b0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.0040a86c
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
mov ebx, eax
test ebx, ebx
je 0x58c302
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetKeyNameTextW
test eax, eax
je 0x58c2fb
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.0040b928
jmp 0x58c302
mov eax, esi
call fcn.0040a86c
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x591dcc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x591f31
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x6b66c8], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x4dc57c]
call fcn.004dd5b4
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x591f05
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004dd69c
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.0040b928
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x591f4c
call fcn.0040bad8
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004dd700
test al, al
je 0x591eed
lea ecx, [ebp - 4]
mov edx, 0x591fc0
mov eax, dword [ebp - 0xc]
call fcn.004ddb10
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0042e108
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x591eed
xor edx, edx
push ebp
push 0x591ee6
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x591fd8
mov eax, dword [ebp - 8]
push eax
call fcn.00415434
test eax, eax
je 0x591ecd
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x591ecd
call fcn.00591d58
test eax, eax
je 0x591ebd
mov eax, dword [ebx + 0x50]
jmp 0x591ec0
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x6b66c8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x591eed
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x591f0c
mov eax, dword [ebp - 0xc]
call fcn.00408bcc
pop eax
jmp eax

Function at 0x59203c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x592083
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x592066
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x592077
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x592083
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x59de30
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
mov edi, eax
test bl, bl
je 0x59de51
test edi, 0x40000
je 0x59de6b
test bl, bl
jne 0x59deec
mov eax, 0x40000
and eax, edi
cmp eax, 0x40000
jne 0x59deec
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x59de9e
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x59deb3
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x59dec2
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x59ded3
cmp byte [esp + 2], 0
je 0x59deec
cmp byte [esp + 2], 0
je 0x59dee4
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x59deec
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x59e190
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x59e1b6
mov eax, esp
push eax
push 0x59e158
call sub.user32.dll_EnumWindows
jmp 0x59e1c9
mov eax, esp
push eax
push 0x59e138
call sub.kernel32.dll_GetCurrentThreadId
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x59e28c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
xor eax, eax
mov si, ax
test bl, 4
je 0x59e29e
or si, 1
test bl, 8
je 0x59e2a7
or si, 4
test bl, 1
je 0x59e2b0
or si, 8
test bl, 2
je 0x59e2b9
or si, 0x10
test bl, 0x10
je 0x59e2c2
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x59e2d2
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x59e2d8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
xor eax, eax
mov bx, ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x59e2f1
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x59e301
or bx, 4
test esi, 0x20000000
je 0x59e30d
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x5a54e4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
mov eax, dword [esi + 8]
dec eax
je 0x5a54fa
sub eax, 2
je 0x5a5540
jmp 0x5a558e
mov eax, ebx
call fcn.0051630c
call fcn.0059ddb0
test eax, eax
je 0x5a5513
mov byte [ebx + 0x2df], 2
jmp 0x5a5534
mov eax, ebx
call fcn.0051630c
push eax
call sub.user32.dll_IsZoomed
test eax, eax
je 0x5a552d
mov byte [ebx + 0x2df], 3
jmp 0x5a5534
mov byte [ebx + 0x2df], 1
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
pop esi
pop ebx
ret
cmp byte [ebx + 0x2df], 0
je 0x5a5597
movzx eax, byte [ebx + 0x2df]
mov eax, dword [eax*4 + 0x6b6754]
push eax
mov eax, ebx
call fcn.0051630c
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x2df], 0
mov eax, dword [0x6bec44]
cmp ebx, dword [eax + 0x58]
jne 0x5a557f
mov eax, dword [0x6bec44]
mov byte [eax + 0x40], 0
mov dl, 1
mov eax, dword [0x6bec44]
call fcn.005aa36c
pop esi
pop ebx
ret
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
pop esi
pop ebx
ret

Function at 0x5a5e44
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x5a5ed2
movzx eax, word [esi + 4]
sub ax, 9
je 0x5a5e6b
add eax, 0xffffffe4
sub ax, 4
jb 0x5a5e9d
jmp 0x5a5ed2
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x5a5ed2
push 1
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
setge cl
mov edx, dword [ebx + 0x2d4]
mov eax, ebx
call fcn.00516a44
mov dword [esi + 0xc], 1
pop esi
pop ebx
ret
mov eax, dword [ebx + 0x2d4]
test eax, eax
je 0x5a5edb
push 0
movzx edx, word [esi + 4]
cmp dx, 0x27
je 0x5a5ebd
cmp dx, 0x28
je 0x5a5ebd
xor ecx, ecx
jmp 0x5a5ebf
mov cl, 1
mov edx, dword [eax + 0x40]
xchg edx, eax
call fcn.00516a44
mov dword [esi + 0xc], 1
pop esi
pop ebx
ret
mov edx, esi
mov eax, ebx
call fcn.00515304
pop esi
pop ebx
ret
Function at 0x5b5540
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x94], 0
jne 0x5b55c6
mov eax, dword [ebx + 8]
call fcn.0051630c
mov ecx, eax
mov dl, 1
mov eax, dword [0x529c78]
call fcn.0050ff64
mov dword [ebx + 0x94], eax
mov esi, dword [ebx + 0x94]
xor edx, edx
mov eax, esi
call fcn.005397d4
mov dword [esi + 0x2dc], ebx
mov dword [esi + 0x2d8], 0x5b4e10
push 8
mov edx, 3
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xe0]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x94]
call fcn.0051630c
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x94]
call fcn.0051630c
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0xa4], 0
jne 0x5b5648
mov eax, dword [ebx + 8]
call fcn.0051630c
mov ecx, eax
mov dl, 1
mov eax, dword [0x529c78]
call fcn.0050ff64
mov dword [ebx + 0xa4], eax
mov esi, dword [ebx + 0xa4]
mov dl, 1
mov eax, esi
call fcn.005397d4
mov dword [esi + 0x2dc], ebx
mov dword [esi + 0x2d8], 0x5b4e5c
push 8
push 0
mov edx, 2
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xe0]
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0xa4]
call fcn.0051630c
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0xa4]
call fcn.0051630c
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x9c], 0
jne 0x5b56c6
mov eax, dword [ebx + 8]
call fcn.0051630c
mov ecx, eax
mov dl, 1
mov eax, dword [0x52a76c]
call fcn.0050ff64
mov dword [ebx + 0x9c], eax
mov esi, dword [ebx + 0x9c]
mov byte [esi + 0x2b0], 1
push 8
mov edx, 3
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xe0]
push eax
mov edx, 2
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xe0]
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x9c]
call fcn.0051630c
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x9c]
call fcn.0051630c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x5f8528
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd90
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x264], ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x5f86fa
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x5f86cb
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, ebx
test eax, eax
je 0x5f8585
sub eax, 4
mov eax, dword [eax]
cmp eax, 3
jne 0x5f85c3
mov eax, ebx
call fcn.005f73d0
test al, al
jne 0x5f85a3
mov byte [ebp - 5], 0
call fcn.0040a058
jmp 0x5f86d2
lea edx, [ebp - 0x264]
mov eax, ebx
call fcn.005f7094
mov ecx, dword [ebp - 0x264]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.005f8958
mov byte [ebp - 5], 1
lea eax, [ebp - 0x260]
push eax
lea edx, [ebp - 0x268]
mov eax, ebx
call fcn.005b9cdc
lea eax, [ebp - 0x268]
mov edx, 0x5f8718
call fcn.0040ba80
mov eax, dword [ebp - 0x268]
call fcn.0040b88c
push eax
call sub.kernel32.dll_FindFirstFileW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x5f86b2
xor eax, eax
push ebp
push 0x5f86ab
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x260]
call fcn.005f6f4c
test al, al
je 0x5f867e
lea eax, [ebp - 4]
lea edx, [ebp - 0x234]
mov ecx, 0x104
call fcn.0040b928
lea edx, [ebp - 0x270]
mov eax, ebx
call fcn.005b9cdc
lea eax, [ebp - 0x270]
mov edx, dword [ebp - 4]
call fcn.0040ba80
mov eax, dword [ebp - 0x270]
lea edx, [ebp - 0x26c]
call fcn.005f7094
mov eax, dword [ebp - 0x26c]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 4]
mov edx, esi
call fcn.005f7f3c
lea eax, [ebp - 0x260]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x5f8617
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f86b2
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindClose
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f86d2
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f8701
lea eax, [ebp - 0x270]
mov edx, 4
call fcn.0040a8cc
lea eax, [ebp - 4]
call fcn.0040a86c
pop eax
jmp eax
Function at 0x601640
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x60169a
inc esi
xor edi, edi
cmp edi, 1
jne 0x601666
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x601674
cmp edi, 1
jle 0x601674
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.005fdd64
test eax, eax
jne 0x60169a
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x60169a
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x60169a
inc edi
dec esi
jne 0x601656
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x601abc
Capabilities:
Delete registry value

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, edx
mov edi, eax
test cl, cl
je 0x601acf
mov ebx, 0x80000001
jmp 0x601ad4
mov ebx, 0x80000002
push 0
push 2
lea eax, [esp + 8]
push eax
mov ecx, 0x601b30
mov edx, ebx
xor eax, eax
call fcn.005bcc2c
test eax, eax
jne 0x601b0a
mov eax, edi
call fcn.0040b88c
push eax
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegDeleteValueW
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, esi
call fcn.0040b88c
push eax
call sub.gdi32.dll_RemoveFontResourceW
test eax, eax
je 0x601b2b
push 0
push 0
push 0x1d
push 0xffff
call sub.user32.dll_SendNotifyMessageW
pop edx
pop edi
pop esi
pop ebx
ret