joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435063
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x2c]
push ebx
push ebp
mov ebp, dword [esp + 0x38]
push esi
xor esi, esi
push edi
mov dword [esp + 0x3c], esi
cmp word [eax], si
je 0x43518c
push esi
push esi
push 3
push esi
push esi
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4350a6
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
lea ecx, [esp + 0x18]
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x10]
push edx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x3c]
push eax
push 0x47d9f0
push 0
push 0
push ecx
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x43509a
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x18]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
cmp dword [ebp], 0
mov eax, dword [esp + 0x44]
jne 0x435161
cmp dword [eax], 0
jne 0x435161
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [ebp], ecx
mov dword [eax], edx
mov eax, dword [eax]
mov ecx, dword [ebp]
mov edx, dword [esp + 0x40]
push 0x2000
push eax
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x435190
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x38]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4351a2
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x40]
push eax
push 0
mov dword [esi + 0x50], eax
mov esi, dword [esi]
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x10
Function at 0x4351c6
Capabilities:
Hide graphical window

Disassembly:
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 8]
push esi
or ecx, 0x50000000
push edi
mov edi, dword [esp + 0xc]
test eax, 0x80000
je 0x4351e6
and eax, 0xfff7ffff
mov edx, dword [0x49f364]
push 0
push edx
mov edx, dword [esp + 0x38]
push edx
mov edx, dword [edi]
push edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x3c]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x435259
cmp byte [esp + 0x34], 0
je 0x43523e
push 0
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push 0x30
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [edi + 0x178], 0
jl 0x435259
cmp byte [edi + 0x184], 0
je 0x435259
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
mov eax, esi
pop esi
ret 0x2c
Function at 0x435a71
Capabilities:
Create process on windows

Disassembly:
push 0x44
push 0
push 0x4a0898
call fcn.00414350
push 0x10
push 0
push 0x4a0888
call fcn.00414350
mov ecx, dword [esp + 0x1c]
add esp, 0x18
push 0x4a0888
push 0x4a0898
push 0
push 0
push 0x20
push 0
push 0
push 0
push ecx
mov eax, 1
push 0
mov dword [0x4a0898], 0x44
mov dword [0x4a08c4], 1
mov word [0x4a08c8], ax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x435ae6
mov edx, dword [0x4a0888]
mov dword [esp + 4], edx
jmp dword [sym.imp.KERNEL32.dll_CloseHandle]
ret 4

Function at 0x435dff
Capabilities:
Parse url

Disassembly:
sub esp, 0x840
mov ecx, dword [esp + 0x858]
mov edx, dword [esp + 0x85c]
push ebx
mov ebx, dword [esp + 0x84c]
push esi
mov esi, dword [esp + 0x84c]
mov eax, 0x400
push edi
mov edi, dword [esp + 0x860]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x85c]
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x4c]
push 0
push esi
mov dword [esp + 0x18], 0x3c
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], edi
mov dword [esp + 0x4c], eax
call fcn.004143ca
add esp, 4
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x435ea5
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x840
ret 0x1c
lea edx, [esp + 0x48]
push edx
push edi
call fcn.00412518
movzx eax, word [esp + 0x2c]
mov ecx, dword [esp + 0x860]
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
add esp, 8
sub eax, 1
je 0x435ef7
sub eax, 1
je 0x435ee3
pop edi
pop esi
mov dword [ebx], 3
mov al, 1
pop ebx
add esp, 0x840
ret 0x1c
pop edi
pop esi
mov dword [ebx], 2
mov al, 1
pop ebx
add esp, 0x840
ret 0x1c
pop edi
pop esi
mov dword [ebx], 1
mov al, 1
pop ebx
add esp, 0x840
ret 0x1c
Function at 0x43603f
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [esp + 0x10]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x436183
nop
lea edx, [esp + 0x3c]
push 0x481e54
push edx
call fcn.0041455e
add esp, 8
test eax, eax
je 0x4360c4
lea eax, [esp + 0x3c]
push 0x484c38
push eax
call fcn.0041455e
add esp, 8
test eax, eax
je 0x4360c4
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
not edx
and eax, edx
push eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x43617c
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x43606f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp + 0x14]
test bl, bl
je 0x436171
lea edx, [esp + 0x10]
push edx
push 0x484c30
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x43616a
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test byte [esp + 0x10], 0x10
je 0x43615a
lea eax, [esp + 0x3c]
push 0x481e54
push eax
call fcn.0041455e
add esp, 8
test eax, eax
je 0x43615a
lea ecx, [esp + 0x3c]
push 0x484c38
push ecx
call fcn.0041455e
add esp, 8
test eax, eax
je 0x43615a
lea edx, [esp + 0x3c]
push edx
call edi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push eax
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.0043603f
test al, al
je 0x43617c
push 0x484c38
call edi
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4360ff
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4364fc
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
lea eax, [esp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [esp + 0x210]
push ecx
push 0
push 0x482328
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
add esp, 0x20c
ret 4

Function at 0x4366a5
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x464]
test eax, eax
je 0x4366bb
cmp eax, 0x10000
jne 0x4366df
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x45c]
push eax
push 0x10000
push 1
push ecx
call fcn.00415c17
add esp, 0x10
mov dword [esi + 0x464], 0
mov ecx, dword [esi + 0x464]
mov edx, dword [esi + 0x45c]
mov al, byte [ecx + edx]
inc ecx
mov dword [esi + 0x464], ecx
pop esi
ret 4
Function at 0x4366f9
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x460]
test eax, eax
je 0x436728
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x458]
push ecx
push eax
push 1
push edx
call fcn.00415802
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
ret 4

Function at 0x43672c
Capabilities:
Write file on windows

Disassembly:
mov dl, byte [esp + 8]
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x458]
mov ecx, dword [esi + 0x460]
mov byte [eax + ecx], dl
inc dword [esi + 0x460]
mov eax, dword [esi + 0x460]
cmp eax, 0x10000
jne 0x43677b
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x458]
push eax
push 0x10000
push 1
push ecx
call fcn.00415802
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
ret 8

Function at 0x436824
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
cmp dword [esi + 0x14], 1
jne 0x43684a
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00412960
add esp, 0xc
jmp 0x43685f
mov edx, dword [esi + 0x1c]
push edx
push 8
lea eax, [esp + 0xc]
push 1
push eax
call fcn.00415c17
add esp, 0x10
movzx ecx, byte [esp + 8]
movzx edx, byte [esp + 9]
movzx eax, byte [esp + 0xa]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, edx
movzx edx, byte [esp + 0xb]
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x14]
shl ecx, 8
or ecx, edx
mov dword [eax], ecx
lea ecx, [esp + 4]
push str.EA06
push ecx
mov byte [esp + 0x10], 0
call fcn.00415260
add esp, 8
neg eax
sbb eax, eax
neg eax
pop esi
add esp, 8
ret 8

Function at 0x436907
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
mov dword [0x49e930], eax
mov edx, 1
mov eax, 0x49e930
push edi
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x49f2ec
jl 0x43691b
mov dword [0x48caac], 1
mov dword [0x49f300], 1
pop edi
ret
Function at 0x437c1c
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x28
push esi
mov esi, dword [esp + 0x30]
push edi
test esi, esi
jl 0x437ccc
jne 0x437c3d
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
add esp, 0x28
ret
cmp esi, 0xf
jae 0x437cc5
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x18]
push eax
call edi
test eax, eax
je 0x437cc5
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x10]
push edx
call edi
fnstcw word [esp + 0x34]
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sbb ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
fild qword [esp + 0x20]
movzx eax, word [esp + 0x34]
fild qword [esp + 0x28]
or eax, 0xc00
mov dword [esp + 8], eax
fdivp st(1)
fmul qword [0x487230]
fldcw word [esp + 8]
fistp qword [esp + 8]
mov edx, dword [esp + 8]
fldcw word [esp + 0x34]
cmp edx, esi
jb 0x437c62
pop edi
pop esi
add esp, 0x28
ret
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
add esp, 0x28
ret

Function at 0x437efa
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x29c
push esi
mov esi, dword [esp + 0x2a4]
push edi
mov edi, dword [esp + 0x2ac]
lea eax, [esp + 0x110]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x437fd9
push 0x100
lea ecx, [esp + 0x14]
push ecx
call sub.WSOCK32.dll_gethostname
lea edx, [esp + 0x10]
push edx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x437fd9
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x437f63
mov ecx, eax
lea esp, [esp]
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x437f5a
cmp esi, edx
jle 0x437f83
push 0x481e60
push edi
call fcn.00412546
add esp, 8
call sub.WSOCK32.dll_WSACleanup
pop edi
pop esi
add esp, 0x29c
ret
mov eax, dword [eax + esi*4 - 4]
push 4
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00412960
mov edx, dword [esp + 0x18]
add esp, 0xc
push edx
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00414c40
lea ecx, [esp + 0x18]
push ecx
or eax, 0xffffffff
call fcn.00410200
mov esi, eax
push esi
push edi
call fcn.00412546
push esi
call fcn.00412949
add esp, 0x18
call sub.WSOCK32.dll_WSACleanup
pop edi
pop esi
add esp, 0x29c
ret
push 0x47f878
push edi
call fcn.00412546
add esp, 8
pop edi
pop esi
add esp, 0x29c
ret
Function at 0x438037
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x20c
push 0x104
push eax
lea ecx, [esp + 8]
push ecx
call fcn.00437cd2
lea edx, [esp + 0xc]
push edx
call fcn.004143ca
add esp, 0x10
test eax, eax
je 0x438073
cmp word [esp + eax*2 - 2], 0x5c
lea eax, [esp + eax*2 - 2]
jne 0x438073
xor ecx, ecx
mov word [eax], cx
push ebp
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43811c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 2
jne 0x4380b0
push 0
lea eax, [esp + 8]
push eax
call ebp
test eax, eax
je 0x4380b5
mov al, 1
pop ebp
add esp, 0x20c
ret
cmp eax, 3
jne 0x438120
push esi
push edi
lea edi, [esp + 0xc]
call fcn.0040ff90
mov esi, eax
push 0x5c
push esi
call fcn.004163df
add esp, 8
test eax, eax
jne 0x4380e6
push esi
call fcn.00412949
add esp, 4
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x20c
ret
push ebx
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.00438037
push esi
mov bl, al
call fcn.00412949
add esp, 8
test bl, bl
je 0x43810f
push 0
lea edx, [esp + 0x14]
push edx
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
test al, 0x10
jne 0x4380a6
xor al, al
pop ebp
add esp, 0x20c
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4383ad
test al, 0x10
je 0x4383ad
mov al, 1
ret
xor al, al
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4383ef
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4383e4
or eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x438791
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1248
call fcn.00426210
push ebp
mov ebp, dword [esp + 0x1258]
lea eax, [esp + 4]
push eax
push 0x800
lea ecx, [esp + 0xa54]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x4387c8
xor al, al
pop ebp
add esp, 0x1248
ret
mov edx, dword [esp + 0x1250]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edx
shr esi, 2
mov byte [ebp], 0
call fcn.00438755
add esp, 4
xor ebx, ebx
mov dword [esp + 0x14], eax
test esi, esi
jbe 0x4388df
push edi
cmp byte [ebp], 0
jne 0x4388de
mov eax, dword [esp + ebx*4 + 0xa58]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x1c]
mov edi, eax
push edx
push edi
call sub.PSAPI.DLL_EnumProcessModules
mov ecx, dword [esp + 0x14]
push 0x104
lea eax, [esp + 0x22c]
push eax
push ecx
push edi
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x4388ce
lea edx, [esp + 0x434]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x648]
push ecx
lea edx, [esp + 0x858]
push edx
lea eax, [esp + 0x238]
push eax
call fcn.00415060
lea ecx, [esp + 0x448]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.00412518
mov eax, dword [esp + 0x1278]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.00412485
add esp, 0x24
test eax, eax
jne 0x4388ae
mov edx, dword [esp + ebx*4 + 0xa58]
mov eax, dword [esp + 0x1260]
mov dword [eax], edx
jmp 0x4388ca
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4388ce
mov eax, dword [esp + ebx*4 + 0xa58]
cmp ecx, eax
jne 0x4388ce
mov ecx, dword [esp + 0x1260]
mov dword [ecx], eax
mov byte [ebp], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, esi
jb 0x4387f4
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
add esp, 0x1248
ret

Function at 0x4388eb
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0xa5c
push ebx
push ebp
mov ebp, dword [esp + 0xa68]
push esi
mov esi, dword [esp + 0xa74]
push edi
push 0
push 2
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [esp + 0x10]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
push ebp
mov byte [esi], 0
call fcn.00438755
add esp, 4
cmp byte [esi], 0
mov ebx, eax
jne 0x4389d3
lea ecx, [ecx]
lea ecx, [esp + 0x10]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x4389d3
lea edx, [esp + 0x448]
push edx
lea eax, [esp + 0x240]
push eax
lea ecx, [esp + 0x65c]
push ecx
lea edx, [esp + 0x86c]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.00415060
lea ecx, [esp + 0x45c]
push ecx
lea edx, [esp + 0x254]
push edx
call fcn.00412518
lea eax, [esp + 0x258]
push ebp
push eax
call fcn.00412485
add esp, 0x24
test eax, eax
jne 0x4389b2
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xa74]
mov dword [edx], ecx
jmp 0x4389c7
test ebx, ebx
je 0x4389ca
mov eax, dword [esp + 0x18]
cmp ebx, eax
jne 0x4389ca
mov ecx, dword [esp + 0xa74]
mov dword [ecx], eax
mov byte [esi], 1
cmp byte [esi], 0
je 0x43893b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xa5c
ret
Function at 0x4389e7
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [esp + 8]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x438a49
lea ecx, [esp + 4]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 4]
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 8
ret

Function at 0x439120
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
push ecx
push ebp
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, dword [esp + 0x10]
mov esi, eax
cmp ebp, esi
jne 0x43913e
pop esi
mov eax, 1
pop ebp
pop ecx
ret 4
test esi, esi
jne 0x439150
push esi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push ebp
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x439164
push 9
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
push ebp
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x439257
push ebx
push edi
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push ebp
mov ebx, eax
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
mov ebp, eax
push ebp
push ebx
call esi
push 1
push edi
push ebx
call esi
push 1
push ebp
push edi
call esi
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x439231
push eax
push eax
push eax
push 0x12
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push 0x12
call dword [sym.imp.USER32.dll_keybd_event]
push 0
push 2
push 0
push 0x12
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push 0x12
call dword [sym.imp.USER32.dll_keybd_event]
push 0
push 0
push 0
push 0x12
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push 0x12
call dword [sym.imp.USER32.dll_keybd_event]
push 0
push 2
push 0
push 0x12
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push 0x12
call dword [sym.imp.USER32.dll_keybd_event]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x439239
mov dword [esp + 0x10], 4
jmp 0x439239
mov dword [esp + 0x10], 3
push 0
push ebp
push ebx
call esi
push 0
push edi
push ebx
call esi
push 0
push ebp
push edi
call esi
mov eax, dword [esp + 0x10]
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret 4
pop esi
mov eax, 2
pop ebp
pop ecx
ret 4
Function at 0x4392e9
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x28
push esi
mov esi, dword [esp + 0x30]
push edi
test esi, esi
jl 0x43939d
jne 0x43930c
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
add esp, 0x28
ret 4
cmp esi, 0xf
jae 0x439396
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x18]
push eax
call edi
test eax, eax
je 0x439396
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x10]
push edx
call edi
fnstcw word [esp + 0x34]
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sbb ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
fild qword [esp + 0x20]
movzx eax, word [esp + 0x34]
fild qword [esp + 0x28]
or eax, 0xc00
mov dword [esp + 8], eax
fdivp st(1)
fmul qword [0x487230]
fldcw word [esp + 8]
fistp qword [esp + 8]
mov edx, dword [esp + 8]
fldcw word [esp + 0x34]
cmp edx, esi
jb 0x439331
pop edi
pop esi
add esp, 0x28
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
add esp, 0x28
ret 4

Function at 0x4397b8
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x4397cc
mov dword [esp + 4], eax
jmp fcn.004392e9
ret 4

Function at 0x4397cf
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax]
test eax, eax
je 0x4397e2
mov dword [esp + 4], eax
jmp fcn.004392e9
ret 4

Function at 0x43a6c4
Capabilities:
Hide graphical window

Disassembly:
cmp byte [esp + 8], 0
mov eax, dword [esp + 4]
je 0x43a6df
mov eax, dword [eax]
push 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov al, 1
ret 8
mov ecx, dword [eax]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov al, 1
ret 8

Function at 0x43a78d
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
push esi
mov esi, dword [esp + 8]
jne 0x43a7ba
lea eax, [esp + 0xc]
push eax
push 0x1388
push 2
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x43a7d3
push 1
jmp 0x43a7bc
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop esi
ret 8