joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411560
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x52038c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov bl, dl
cmp dword [esi + 0x14], 8
jb 0x411580
mov eax, dword [esi]
jmp 0x411582
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4115a0
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4c3a
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x4115aa
mov eax, dword [esi]
jmp 0x4115ac
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41163c
test bl, bl
je 0x41163c
cmp dword [esi + 0x14], 8
jb 0x4115c9
mov eax, dword [esi]
jmp 0x4115cb
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x4115ed
and eax, 0xfffffffe
cmp dword [esi + 0x14], 8
jb 0x4115e3
mov ecx, dword [esi]
jmp 0x4115e5
mov ecx, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x4115f7
mov eax, dword [esi]
jmp 0x4115f9
mov eax, esi
push eax
lea ecx, [ebp - 0x1c]
call fcn.00404770
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
lea ecx, [ebp - 0x1c]
setne bl
call fcn.004047e0
test bl, bl
jne 0x41163c
mov ecx, esi
call fcn.00410ef0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4c3a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4c3a
mov esp, ebp
pop ebp
ret

Function at 0x411650
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x411667
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x411671
mov eax, dword [esi]
jmp 0x411673
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, esi
test al, 0x10
je 0x411691
call fcn.004112b0
mov ecx, esi
call fcn.00411110
pop esi
mov esp, ebp
pop ebp
ret
xor dl, dl
call fcn.00411560
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411770
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e64b6
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x52038c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], edi
jb 0x4117b5
mov eax, dword [eax]
lea edx, [ebp - 0x38]
push edx
push 0x20019
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4117d4
xor al, al
jmp 0x411961
lea eax, [ebp - 0x34]
mov dword [edi], 0
push eax
push 0
lea eax, [ebp - 0x30]
mov byte [ebp - 0x29], 0
push eax
push 0
mov ecx, ebx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
call fcn.00403060
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x411818
test eax, eax
jne 0x411955
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a4c4b
mov ecx, dword [ebp - 0x34]
add esp, 4
mov ebx, eax
test ecx, ecx
je 0x41184d
xor eax, eax
mov edi, ebx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x30]
push eax
push 0
call fcn.00403060
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x411946
mov eax, dword [ebp - 0x30]
cmp eax, 1
jne 0x4118b2
cmp word [ebx], 0
jne 0x411890
xor ecx, ecx
push ecx
push ebx
mov ecx, esi
call fcn.00404670
jmp 0x41193d
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411895
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, esi
call fcn.00404670
jmp 0x41193d
cmp eax, 7
je 0x4118c0
cmp eax, 2
jne 0x411940
mov eax, dword [ebp - 0x34]
xor ecx, ecx
inc eax
mov word [ebp - 0x28], cx
shr eax, 1
lea ecx, [ebp - 0x28]
push eax
push ebx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
call fcn.00404670
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x411928
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x4118fe
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00404840
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x411916
mov eax, dword [esi]
jmp 0x411918
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.00404140
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x41193d
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404840
mov eax, dword [ebp - 0x30]
mov dword [edi], eax
mov byte [ebp - 0x29], 1
test ebx, ebx
je 0x411955
push 2
push ebx
call fcn.004a4caf
add esp, 8
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x29]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4c3a
mov esp, ebp
pop ebp
ret 0x14
Function at 0x414e80
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x525b68]
sub esp, 0x18
push esi
cmp eax, 2
je 0x414f50
push 0
push 1
push 0x525b68
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x414f2d
push 4
call fcn.004a4c59
mov esi, eax
add esp, 4
mov dword [ebp - 8], esi
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
sub esp, 0x28
mov eax, esp
mov dword [0x525b6c], esi
mov dword [ebp - 8], 0x525b68
mov dword [ebp - 0xc], 0x40df50
mov dword [ebp - 0x18], 0x40df50
mov dword [eax], vtable.std::_Func_base_void___.0
mov dword [eax], vtable.std::_Func_impl_class_std::_Binder_struct_std::_Unforced__void____cdecl___void_____void_____class_std::allocator_int___void___.0
mov dword [eax + 4], 0x40df50
mov dword [eax + 8], 0x525b68
mov byte [ebp - 1], 0
mov dword [ebp - 0x14], 0x525b68
mov dword [eax + 0x24], eax
call fcn.00416640
mov eax, dword [0x525b6c]
add esp, 0x28
mov dword [0x525b68], 2
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
je 0x414f50
mov eax, dword [0x525b68]
cmp eax, 2
je 0x414f50
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call esi
mov eax, dword [0x525b68]
cmp eax, 2
jne 0x414f42
mov eax, dword [0x525b6c]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4170e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
mov edi, ecx
call fcn.00414e80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 1
cmp byte [eax + 0x14], 0
lea eax, [ebp - 0x1c]
je 0x417136
push 0xf
push 0xf
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x417132
push 1
push 0x113
push 0x113
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x417132
xor bl, bl
jmp 0x417148
mov bl, 1
jmp 0x417148
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
setne bl
push 0
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test bl, bl
jne 0x417160
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00417030
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4173a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6ef3
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x52038c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [ebp - 4], 0
mov dword [edi], vtable.nbase::WinIOMessagePump.0
mov dword [edi + 0x18], 0xffffffff
lea esi, [edi + 0x1c]
mov byte [ebp - 4], 1
push 0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00417800
push 1
mov dword [esi], eax
push 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x24], vtable.ObserverList_class_nbase::WinIOMessagePump::IOObserver_.0
push 0
push 0xffffffffffffffff
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov esi, eax
mov eax, dword [edi + 0x18]
cmp eax, 0xffffffff
je 0x417460
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov dword [edi + 0x18], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x417b50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6f78
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x52038c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0xc]
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [edi + 0x24], 0
je 0x417ba8
call fcn.00414e80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [edi + 0x24]
jne 0x417ba8
mov bl, 1
jmp 0x417baa
xor bl, bl
test esi, esi
je 0x417bb5
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417c00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6fbc
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x52038c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0xc]
xor bl, bl
push esi
mov dword [ebp - 0x50], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [edi + 0x24], 0
je 0x417ccf
call fcn.00414e80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [edi + 0x24]
je 0x417ccf
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
push eax
lea ecx, [ebp - 0x4c]
call fcn.00417d30
mov eax, dword [ebp - 0x4c]
add esp, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], vtable.._AV___Func_impl_V__WeakCallback_V___Binder_U_Unforced_std__AAP8MessageLoopProxy_nbase__BEXXZABQBV34__std___nbase__V__allocator_H_std__X__V_std__.0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
mov ecx, dword [edi + 0x24]
push eax
call fcn.00414150
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x417ccd
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov bl, 1
test esi, esi
je 0x417cda
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
jne 0x417ce6
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4c3a
mov esp, ebp
pop ebp
ret

Function at 0x41c17e
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
push 8
pop ecx
test ax, ax
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x41c1a1
or esi, 1
push 1
call edi
test ax, ax
jns 0x41c1ad
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x41c1b9
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x41c1c5
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x41ec79
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0x298]
call fcn.00421667
mov edi, dword [ebp + 8]
test eax, eax
jle 0x41eccf
push ebx
lea ecx, [esi + 0x298]
mov byte [ebp + 0xb], 0
call fcn.0041986b
lea ecx, [ebp + 0xb]
push ecx
push dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, eax
push dword [ebp + 0xc]
push edi
call dword [edx]
cmp byte [ebp + 0xb], 0
jne 0x41ed2f
lea ecx, [esi + 0x298]
inc ebx
call fcn.00421667
cmp ebx, eax
jl 0x41ec98
sub edi, 0x100
je 0x41ed95
sub edi, 4
je 0x41ed33
dec edi
sub edi, 1
jne 0x41ed8a
push dword [ebp + 0xc]
xor eax, eax
mov dword [ebp + 8], eax
call fcn.004c5665
pop ecx
mov ecx, dword [esi + 0x1e4]
lea edx, [ebp + 8]
push reloc.WS2_32.dll_select
mov word [ebp + 8], ax
push edx
mov eax, dword [ecx]
push 0x420550
call dword [eax + 0x128]
mov esi, eax
test esi, esi
je 0x41ed8a
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x11c]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
jmp 0x41ed8c
cmp dword [esi + 0x1e8], 0
je 0x41ed8a
xor eax, eax
lea edi, [ebp - 0x1c]
push 7
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov word [ebp - 0xc], ax
mov eax, dword [esi + 0x1f8]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x1fc]
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x10], eax
call fcn.0041c17e
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x1e8]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x41ed8a
mov ecx, dword [esi + 0x1e8]
test ecx, ecx
je 0x41edee
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x41edee
mov ecx, dword [esi + 0x1e8]
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x41edee
mov ecx, dword [esi + 0x1e8]
push str.RichEditUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.004be4e9
pop ecx
pop ecx
test eax, eax
je 0x41edee
mov ecx, dword [esi + 0x1e8]
call fcn.004384b2
test al, al
jne 0x41ed8a
mov ecx, dword [esi + 0x1e8]
test ecx, ecx
je 0x41ee36
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x41ee36
mov ecx, dword [esi + 0x1e8]
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x41ee36
mov ecx, dword [esi + 0x1e8]
push str.WkeWebkitUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.004be4e9
pop ecx
pop ecx
test eax, eax
jne 0x41ed8a
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, esi
setns al
movzx eax, al
push eax
call fcn.0041fec6
jmp 0x41ed2f
Function at 0x41fbc1
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [ebx + 0xa8]
mov esi, dword [ebp + 8]
cmp eax, ecx
je 0x41fbed
cmp esi, dword [ebx + 0x1e8]
je 0x41fbed
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebx + 0x1e8]
cmp esi, eax
je 0x41fcc4
push edi
test eax, eax
je 0x41fc4c
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x17
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x1e8]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
xor edi, edi
mov ecx, ebx
push edi
push edi
push edi
push str.killfocus
push dword [ebx + 0x1e8]
call fcn.0041f774
mov dword [ebx + 0x1e8], edi
test esi, esi
je 0x41fcc3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, ebx
jne 0x41fcc3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf4]
test al, al
je 0x41fcc3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x100]
test al, al
je 0x41fcc3
push 7
pop ecx
xor eax, eax
mov dword [ebx + 0x1e8], esi
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x1e8]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push str.setfocus
push dword [ebx + 0x1e8]
call fcn.0041f774
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x420e17
Capabilities:
Terminate process

Disassembly:
push 0x2f0
mov eax, 0x4e75e5
call fcn.004a54ff
mov edi, ecx
push 0xfffffffffffffff0
call fcn.00421667
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
mov ecx, edi
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
call fcn.00421667
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.00421667
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x14]
xor esi, esi
sub eax, dword [ebp - 0x1c]
mov ecx, edi
push 0x20
push eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push esi
call fcn.00421667
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [edi]
lea ebx, [edi + 0x30]
mov ecx, edi
call dword [eax + 0x2c]
push eax
push dword [edi + 4]
mov ecx, ebx
call fcn.0041bdbe
mov ecx, edi
lea eax, [edi + 0x24]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
mov ecx, ebx
call fcn.0041b29e
lea ecx, [ebp - 0x2f8]
call fcn.0043f1cd
mov eax, dword [edi]
lea ecx, [ebp - 0x128]
push ecx
mov ecx, edi
mov dword [ebp - 4], esi
call dword [eax + 0x24]
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 1
call fcn.00419e68
lea ecx, [ebp - 0xa4]
test al, al
mov eax, dword [edi]
push ecx
mov ecx, edi
jne 0x420f3e
call dword [eax + 0x28]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.004e33a0
push eax
call fcn.004c65ee
pop ecx
lea ecx, [ebp - 0xa4]
movzx esi, ax
mov byte [ebp - 4], 1
call fcn.00419770
mov ecx, edi
lea eax, [edi + 0x28]
neg ecx
push 0
sbb ecx, ecx
and ecx, eax
push ebx
push ecx
lea ecx, [ebp - 0x128]
call fcn.004e33a0
push eax
push esi
lea ecx, [ebp - 0x2f8]
call fcn.004400f0
mov esi, eax
jmp 0x420f7c
call dword [eax + 0x28]
mov edx, edi
mov byte [ebp - 4], 3
neg edx
lea ecx, [edi + 0x28]
push esi
sbb edx, edx
push ebx
and edx, ecx
mov ecx, eax
push edx
push esi
call fcn.004e33a0
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [ebp - 0x2f8]
call fcn.004400f0
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 1
mov esi, eax
call fcn.00419770
test esi, esi
jne 0x420fe5
push 0xffffffffffffffff
push 0x4edc24
lea ecx, [ebp - 0xa4]
call fcn.00419689
mov eax, dword [edi]
lea ecx, [ebp - 0x1ac]
push ecx
mov ecx, edi
mov byte [ebp - 4], 4
call dword [eax + 0x28]
push eax
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 5
call fcn.004198bb
lea ecx, [ebp - 0x1ac]
mov byte [ebp - 4], 4
call fcn.00419770
push 0x10
push str.Duilib
lea ecx, [ebp - 0xa4]
call fcn.004e33a0
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
mov ecx, ebx
call fcn.0041b337
mov edx, edi
lea eax, [edi + 0x20]
neg edx
mov ecx, ebx
sbb edx, edx
and edx, eax
push edx
call fcn.0041b17d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x128]
call fcn.00419770
lea ecx, [ebp - 0x2f8]
call fcn.0043e424
xor eax, eax
call fcn.004a54ba
ret 0x10
Function at 0x421c7c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x421cae
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x43467b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x43469f
cmp dword [esi + 8], edi
jge 0x434697
push esi
call fcn.0042ffd8
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x4346c8
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x4346ab
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x4346e2
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x4346d3
xor dl, dl
jmp 0x4346d8
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x4346ca
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x434717
push str.zlib_corrupt
call fcn.0042ff01
add esp, 4
jmp 0x434757
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x434727
push str.read_past_buffer
jmp 0x43470d
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x434741
push edi
push ecx
push esi
call fcn.00437245
add esp, 0xc
test eax, eax
je 0x434757
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004bdcc0
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x43a320
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x614], edi
je 0x43a397
cmp dword [ebp + 8], 0x100
jne 0x43a386
cmp word [ebp + 0xc], 0xd
jne 0x43a386
cmp byte [esi + 0x61a], 0
je 0x43a360
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x43a386
cmp byte [esi + 0x61b], 0
jne 0x43a386
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
test eax, eax
je 0x43a382
mov eax, dword [esi]
mov ecx, esi
push edi
push edi
push edi
push str.return
push esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0041f774
xor eax, eax
jmp 0x43a39a
mov eax, dword [esi + 0x614]
pop edi
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x43a76d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x52038c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x43a823
movzx eax, word [esi]
test ax, ax
je 0x43a823
push edi
mov edi, esi
mov ecx, esi
cmp ax, 0x2f
je 0x43a7ad
cmp ax, 0x5c
jne 0x43a7af
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x43a7a1
cmp edi, esi
je 0x43a7f6
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.004c23cd
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x43a833
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0043a76d
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004c2390
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004c231f
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4c3a
mov esp, ebp
pop ebp
ret
call fcn.004a5b10
int3

Function at 0x43adf8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x43ae74
cmp dword [edi + 4], 0xffffffff
jne 0x43ae74
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x50f42c
push esi
call fcn.004c231f
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x43ae46
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x43ae46
mov eax, 0x2000000
jmp 0x43ae79
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043d313
add esp, 0x10
test eax, eax
jne 0x43ae64
mov eax, dword [ebp - 4]
jmp 0x43ae79
push eax
call fcn.0043da1b
mov dword [edi], eax
mov eax, dword [0x524a14]
pop ecx
jmp 0x43ae79
mov eax, 0x1000000
pop edi
mov esp, ebp
pop ebp
ret 0xc