joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c17b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
inc ebx
cmp eax, 0xf
push edi
mov esi, ecx
jne 0x41c1aa
mov ecx, dword [ebp + 0x18]
lea eax, [esi + 0xc0]
mov dword [eax], ebx
and dword [ecx], 0
cmp dword [eax], 0
je 0x41c1e1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
cmp eax, 2
jne 0x41c202
push dword [esi + 0x10]
mov dword [esi + 0xc0], ebx
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x41c1db
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41c1db
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0x18]
and dword [eax], 0
cmp dword [esi + 0xc0], 0
jne 0x41c1a1
push dword [ebp + 0x18]
mov ecx, esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004260b8
jmp 0x41c1a3
cmp eax, 0x47
jne 0x41c227
push dword [ebp + 0x14]
lea edi, [esi + 0xc0]
mov eax, esi
mov dword [edi], ebx
call fcn.0041c27f
mov eax, dword [ebp + 0x18]
and dword [eax], 0
cmp dword [edi], 0
jmp 0x41c19f
cmp eax, 0x18
jne 0x41c1e1
push dword [ebp + 0x10]
mov dword [esi + 0xc0], ebx
call fcn.0041c356
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x41c25f
push dword [esi + 8]
jmp 0x41c255
mov ecx, dword [eax + 0x34]
shr ecx, 3
not ecx
test bl, cl
je 0x41c269
push dword [eax + 8]
call fcn.00427432
cmp eax, edi
pop ecx
jne 0x41c246
mov eax, dword [ebp + 0x10]
mov ecx, esi
call fcn.004127b6
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
cmp dword [esi + 0xc0], edi
jne 0x41c1a1
jmp 0x41c1e1
Function at 0x426541
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4b79dd
call fcn.004b5be0
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [edi], vtable.CBkWindow.0
call fcn.0041de29
push 0x4eb2b4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.0041de29
add eax, 0x60
inc dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
call fcn.0041de29
mov ebx, eax
mov eax, dword [ebp - 0x10]
call fcn.0040fdff
push 0x4eb2b4
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x10]
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], esi
mov dword [edi + 4], eax
mov dword [edi + 0x14], esi
mov dword [edi + 0x18], esi
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], esi
mov dword [edi + 0x24], esi
lea esi, [edi + 0x28]
mov ecx, 0x4ea5f8
call fcn.004257b8
xor ebx, ebx
lea esi, [edi + 0x40]
mov ecx, 0x4ea5f8
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], ebx
call fcn.004257b8
lea esi, [edi + 0x48]
mov ecx, 0x4ea5f8
mov dword [edi + 0x44], ebx
call fcn.004257b8
lea esi, [edi + 0x4c]
mov ecx, 0x4ea5f8
call fcn.004257b8
or dword [edi + 0x50], 0xffffffff
or dword [edi + 0x54], 0xffffffff
or dword [edi + 0x64], 0xffffffff
lea eax, [edi + 0x14]
push eax
mov dword [edi + 0x58], ebx
mov word [edi + 0x5c], bx
mov dword [edi + 0x60], ebx
mov dword [edi + 0x68], ebx
mov dword [edi + 0xa0], ebx
mov dword [edi + 0xa4], ebx
mov dword [edi + 0xa8], ebx
mov dword [edi + 0xac], 1
mov dword [edi + 0xb0], ebx
mov dword [edi + 0xb4], ebx
mov dword [edi + 0xb8], ebx
mov dword [edi + 0xbc], ebx
mov dword [edi + 0xc0], ebx
mov dword [edi + 0xc4], ebx
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4282c3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x428351
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x4282fa
cmp dword [ebp - 8], 2
jne 0x428350
push esi
mov esi, dword [ebp + 0xc]
call fcn.00427706
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.00427923
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x42834f
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x428341
push eax
call fcn.004833d5
pop ecx
mov edx, esi
call fcn.0041473f
mov dword [ebp - 0xc], 1
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x428358
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x428386
push dword [esp + 0xc]
call fcn.004833d5
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push edi
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x428386
inc edi
mov eax, edi
pop edi
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4283fd
xor eax, eax
mov dword [ebp - 0xc], esi
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4283fd
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
shrd ecx, eax, 0x14
shr eax, 0x14
mov dword [ebp - 8], eax
and dword [ebp - 8], 0x80000000
and eax, 0x7fffffff
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], esi
fild qword [ebp - 0x14]
fild qword [ebp - 0xc]
fchs
faddp st(1)
fcomp qword [0x4cf378]
fnstsw ax
test ah, 1
jne 0x4283fd
inc esi
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x429e51
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b9543
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x230
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x78]
mov eax, esi
mov dword [esp + 0x2c], esi
call fcn.0046d7ac
and dword [esp + 0x10], 0
test eax, eax
mov dword [esp + 0x24], eax
jle 0x42a024
add edi, 0x64
mov dword [esp + 0x14], edi
jmp 0x429ea3
mov esi, dword [esp + 0x2c]
mov eax, esi
call fcn.0046d7ac
mov edi, dword [esp + 0x10]
cmp edi, eax
jae 0x429eca
mov eax, esi
call fcn.0046d7ac
cmp edi, eax
jb 0x429ec2
call fcn.00484455
mov eax, dword [esi + 4]
mov ebx, dword [eax + edi*4]
jmp 0x429ecc
xor ebx, ebx
lea esi, [esp + 0x1c]
mov eax, ebx
call fcn.0047fca2
and dword [esp + 0x244], 0
mov edi, dword [esp + 0x1c]
push edi
push dword [esp + 0x18]
call fcn.004707e3
test eax, eax
jne 0x42a002
lea esi, [esp + 0x28]
mov eax, ebx
call fcn.0047fcba
mov byte [esp + 0x244], 1
push dword [eax]
lea esi, [esp + 0x34]
call fcn.0041afd7
mov byte [esp + 0x244], 2
push dword [eax]
lea eax, [esp + 0x10]
push eax
call fcn.00427bb4
lea eax, [esp + 0x34]
cmp dword [esp + 0x30], eax
je 0x429f3b
push dword [esp + 0x30]
call fcn.00483fb2
pop ecx
mov byte [esp + 0x244], 5
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.0040d60b
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x18]
call fcn.00470d4f
push dword [esp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x429ff6
lea esi, [esp + 0x20]
mov eax, ebx
call fcn.0047fcd3
mov byte [esp + 0x244], 6
push dword [eax]
lea esi, [esp + 0x138]
call fcn.0041afd7
mov byte [esp + 0x244], 7
push dword [eax]
lea eax, [esp + 0x1c]
push eax
call fcn.00427bb4
lea eax, [esp + 0x138]
cmp dword [esp + 0x134], eax
je 0x429fc1
push dword [esp + 0x134]
call fcn.00483fb2
pop ecx
mov byte [esp + 0x244], 0xa
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.0040d60b
push 0
push dword [esp + 0x1c]
xor ecx, ecx
push dword [esp + 0x14]
inc ecx
call fcn.004723c4
mov eax, dword [esp + 0x24]
add esp, 0xc
add eax, 0xfffffff0
call fcn.0040d60b
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.0040d60b
or dword [esp + 0x244], 0xffffffff
lea eax, [edi - 0x10]
call fcn.0040d60b
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x24]
jl 0x429e9f
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42a312
Capabilities:
Delete file
Move file

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42a331
push 4
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x42a334
xor eax, eax
inc eax
ret 4
Function at 0x42a33c
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 8]
test eax, eax
je 0x42a36e
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42a361
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 8], 0
xor eax, eax
inc eax
ret

Function at 0x42a458
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov ebx, eax
mov eax, dword [0x4eb2f8]
xor esi, esi
cmp eax, esi
push edi
mov dword [esp + 0x1c], esi
je 0x42a475
mov ebp, dword [eax + 4]
jmp 0x42a477
xor ebp, ebp
cmp ebp, esi
jne 0x42a487
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebp, eax
cmp ebp, esi
je 0x42a4ac
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebp, eax
je 0x42a4ac
push ebp
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x42a4ac
push esi
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x1c], 1
push ecx
mov eax, esp
mov dword [ebx + 0x3b8], esi
push ebp
mov dword [eax], esi
call fcn.0042a827
mov ecx, eax
cmp ecx, esi
mov dword [esp + 0x18], ecx
jne 0x42a4d7
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x42a5c6
mov eax, dword [0x4eb2f8]
cmp eax, esi
mov dword [esp + 0x20], esi
je 0x42a4ee
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov dword [eax + 4], ecx
mov eax, ebp
call fcn.0042d543
cmp dword [ebx + 0x3ac], esi
je 0x42a565
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push 0x2001
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp edi, dword [esp + 0x14]
je 0x42a549
push 1
push edi
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp edi, dword [esp + 0x14]
je 0x42a565
push esi
push edi
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, ebx
call fcn.0040934e
push 0x97
push esi
push esi
push esi
push esi
push esi
push dword [ebx + 4]
mov dword [ebx + 0x3b8], esi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x1c], esi
je 0x42a5aa
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
cmp ebp, esi
je 0x42a5aa
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx + 4]
jne 0x42a5aa
push ebp
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [0x4eb2f8]
cmp eax, esi
je 0x42a5ba
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x42a625
Capabilities:
Create thread

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x42a696
cmp dword [esp + 8], edi
je 0x42a696
mov eax, dword [esi + 8]
cmp eax, edi
je 0x42a651
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x42a651
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], edi
cmp dword [esi + 8], edi
jne 0x42a696
push ebx
mov ebx, dword [esi]
push 0xc
call fcn.00456e9f
cmp eax, edi
pop ecx
jne 0x42a669
xor eax, eax
jmp 0x42a687
mov ecx, dword [esp + 0xc]
push edi
push edi
push eax
push 0x42b0d0
push edi
push edi
mov dword [eax], ebx
mov dword [eax + 8], edi
mov dword [eax + 4], ecx
call fcn.0048495a
add esp, 0x18
xor ecx, ecx
cmp eax, edi
setne cl
mov dword [esi + 8], eax
pop ebx
mov eax, ecx
jmp 0x42a698
xor eax, eax
pop edi
ret 4

Function at 0x42b155
Capabilities:
Delete file

Disassembly:
mov eax, 0x4b8883
call fcn.004b5be0
sub esp, 0x14
mov eax, dword [0x4ea5f8]
push ebx
push esi
mov ebx, ecx
xor esi, esi
push edi
mov ecx, 0x4ea5f8
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push esi
mov dword [ebp - 4], esi
mov edi, 0x4ec320
mov dword [ebp - 0x1c], esi
push str.GetPacketData__d
mov esi, edi
call fcn.00477a56
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
push 0
mov esi, ebx
call fcn.0042b265
push eax
push str.GetPacketData_return:_d
mov esi, edi
mov dword [ebp - 0x14], eax
call fcn.00477a56
cmp dword [ebp - 0x14], 0
pop ecx
pop ecx
jne 0x42b1ca
mov dword [ebx + 0x1c], 1
jmp 0x42b243
push 0x28
call fcn.00456e9f
test eax, eax
pop ecx
je 0x42b1e0
push eax
call fcn.00466ba1
mov ebx, eax
jmp 0x42b1e2
xor ebx, ebx
test ebx, ebx
mov dword [ebp - 0x1c], ebx
je 0x42b243
push str.Extract...
call fcn.00477a56
mov eax, dword [ebx]
pop ecx
push dword [ebp + 8]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push ebx
call dword [eax]
mov ebx, eax
xor eax, eax
test ebx, ebx
sete al
push eax
push str.Extract_return:_d
call fcn.00477a56
test ebx, ebx
pop ecx
pop ecx
je 0x42b23c
xor esi, esi
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040d60b
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x42b253
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42b260
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, dword [ebp - 0x20]
jmp 0x42b21e
Function at 0x42b346
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
xor edi, edi
push 0x206
mov esi, eax
lea eax, [ebp - 0x20e]
push edi
push eax
mov dword [ebp - 4], edi
mov word [ebp - 0x210], di
call fcn.00482db0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42b3d2
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadImageToMem_CreateFile_error:_d__path:_ws
mov esi, 0x4ec320
call fcn.00477a56
add esp, 0xc
jmp 0x42b44a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push eax
push edi
push 2
push edi
push ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp ebx, edi
mov dword [esi], eax
jne 0x42b405
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_CreateFileMapping_error:_d__path:_ws
jmp 0x42b42d
push dword [esi + 8]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x42b43c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_MapViewOfFile_error:_d__path:_ws
mov esi, 0x4ec320
call fcn.00477a56
add esp, 0xc
jmp 0x42b443
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x42bb9d
xor eax, eax
mov dword [ebp - 0xc], esi
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x42bb9d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
shrd ecx, eax, 0x14
shr eax, 0x14
mov dword [ebp - 8], eax
and dword [ebp - 8], 0x80000000
and eax, 0x7fffffff
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], esi
fild qword [ebp - 0x14]
fild qword [ebp - 0xc]
fchs
faddp st(1)
fcomp qword [0x4cf380]
fnstsw ax
test ah, 1
jne 0x42bb9d
inc esi
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x42be68
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4b8808
call fcn.004b5be0
sub esp, 0x204
push esi
xor eax, eax
push edi
mov dword [ebp - 0x10], eax
push 0x1fe
mov dword [ebp - 4], 1
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00482db0
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push pe_nt_image_headers32
push eax
push 0x4c3cb8
push dword [ebp + 8]
push 0x4c67b4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00427bb4
lea edi, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00427b58
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040d60b
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
mov eax, esi
call fcn.00427b00
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040d60b
mov eax, esi
call fcn.0040d60b
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x42bf23
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4ba468
call fcn.004b5be0
push ecx
push ebx
push edi
push 0x12c
xor ebx, ebx
push ebx
lea eax, [ebp + 8]
push ebx
push eax
lea edi, [ebp + 0xc]
mov dword [ebp - 4], 1
call fcn.00474f79
mov edi, dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x42bf62
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42bf62
inc ebx
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040d60b
lea eax, [edi - 0x10]
call fcn.0040d60b
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x42d178
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov ebx, eax
mov eax, dword [0x4eb2f8]
xor esi, esi
cmp eax, esi
push edi
mov dword [esp + 0x1c], esi
je 0x42d195
mov edi, dword [eax + 4]
jmp 0x42d197
xor edi, edi
cmp edi, esi
jne 0x42d1a7
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov edi, eax
cmp edi, esi
je 0x42d1cc
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp edi, eax
je 0x42d1cc
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x42d1cc
push esi
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x1c], 1
push edi
mov ecx, ebx
mov dword [ebx + 0x370], esi
call fcn.0042d3da
mov ecx, eax
cmp ecx, esi
mov dword [esp + 0x18], ecx
jne 0x42d1f4
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x42d309
mov eax, dword [0x4eb2f8]
cmp eax, esi
mov dword [esp + 0x20], esi
je 0x42d20b
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov dword [eax + 4], ecx
mov eax, edi
call fcn.0042d543
cmp dword [ebx + 0x360], esi
je 0x42d2a5
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push 0x2001
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp ebp, dword [esp + 0x14]
je 0x42d26a
push 1
push ebp
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp ebp, dword [esp + 0x14]
je 0x42d286
push esi
push ebp
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 0xffffffffffffffec
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
je 0x42d2a5
push esi
push esi
push 0xf
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
push 0x97
push esi
push esi
push esi
push esi
push esi
push dword [ebx + 4]
mov dword [ebx + 0x370], esi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x1c], esi
je 0x42d2ea
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp edi, esi
je 0x42d2ea
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx + 4]
jne 0x42d2ea
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [0x4eb2f8]
cmp eax, esi
je 0x42d2fa
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x374]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x42f041
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4b6fb5
call fcn.004b5be0
sub esp, 0x418
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call dword [0x4e40b4]
xor esi, esi
mov dword [ebp - 0x20], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x424], esi
push 2
push esi
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x14], ebx
jne 0x42f099
call fcn.00436eba
mov esi, eax
jmp 0x42f19a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x42f0b6
call fcn.00436eba
jmp 0x42f18f
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x42f0ac
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp + 8], edi
jae 0x42f0fc
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x42f0f2
lea eax, [ebp - 0x424]
call fcn.0042f1c6
mov eax, 0x8007000e
jmp 0x42f1b5
push 2
push eax
mov byte [ebp - 4], 2
call fcn.0042f1cf
cmp eax, 0x400
pop ecx
pop ecx
jbe 0x42f120
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.00430126
jmp 0x42f12c
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
mov dword [ebp - 4], 1
jmp 0x42f147
mov ebx, dword [ebp - 0x424]
cmp ebx, esi
jne 0x42f158
mov esi, 0x8007000e
jmp 0x42f191
call dword [0x4e40b4]
push edi
push ebx
push edi
push dword [ebp + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x42f0ac
mov ecx, dword [ebp - 0x424]
push dword [ebp + 0x18]
mov word [ecx + eax*2], si
mov ecx, dword [ebp - 0x424]
lea edx, [ebp - 0x1c]
call fcn.0042f1f4
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x42f1b3
lea eax, [ebp - 0x424]
call fcn.0042f1c6
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14