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

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
xor esi, esi
test eax, eax
mov dword [esp + 0x10], esi
je 0x40d0f0
test ebx, ebx
je 0x40d0f0
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0xc]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push esi
push ebx
push eax
mov dword [esp + 0x24], 0x200
call ebp
cmp dword [esp + 0x10], 1
jne 0x40d0fa
test eax, eax
jne 0x40d055
pop ebp
mov word [edi + 0x1fe], si
pop edi
lea eax, [esi + 1]
pop esi
add esp, 0xc
ret 4
mov eax, dword [esp + 0xc]
add eax, 2
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x40d0e3
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [eax + 4]
push esi
lea edx, [esp + 0x18]
push edx
push 0
push ebx
push ecx
call ebp
test eax, eax
jne 0x40d0ca
mov edx, dword [esp + 0xc]
push 0xff
push esi
shr edx, 1
push pe_nt_image_headers32
push edi
mov word [esi + edx*2], ax
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
add esp, 0x10
mov word [edi + 0x1fe], 0
push esi
mov edi, 1
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
pop ebp
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret 4
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
pop ebp
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret 4
mov eax, dword [esp + 0x14]
pop ebp
pop edi
pop esi
add esp, 0xc
ret 4
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret 4
pop ebp
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret 4
Function at 0x40d830
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x42ca58
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x438020]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x20]
xor esi, esi
mov dword [esp + 0x18], esi
mov dword [ebx], 0x43011c
call fcn.0040d5c0
mov dword [ebx + 4], eax
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
lea edi, [ebx + 0x14]
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
mov dword [ebx + 0x24], esi
mov eax, dword [0x439134]
mov edx, dword [eax + 0xc]
mov ecx, 0x439134
call edx
add eax, 0x10
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x34], esi
mov dword [ebx + 0x38], esi
mov dword [ebx + 0x3c], esi
mov eax, dword [0x439134]
mov edx, dword [eax + 0xc]
mov ecx, 0x439134
call edx
add eax, 0x10
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], esi
mov eax, dword [0x439134]
mov edx, dword [eax + 0xc]
mov ecx, 0x439134
call edx
add eax, 0x10
mov dword [ebx + 0x48], eax
mov eax, dword [0x439134]
mov edx, dword [eax + 0xc]
mov ecx, 0x439134
call edx
add eax, 0x10
mov dword [ebx + 0x4c], eax
or eax, 0xffffffff
push edi
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], eax
mov dword [ebx + 0x58], esi
mov dword [ebx + 0x5c], esi
mov dword [ebx + 0x94], esi
mov dword [ebx + 0x98], esi
mov dword [ebx + 0x9c], esi
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov eax, ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x419f40
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x14
test byte [esi + 0xe], 2
je 0x419f99
lea eax, [esp]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
sub edx, eax
je 0x419f89
mov edx, dword [esp + 8]
mov ecx, dword [esp]
sub edx, ecx
je 0x419f89
push 0x11
push 0
push 0
add eax, 0xfffffffc
push eax
mov eax, dword [esi + 8]
add ecx, 0xfffffffc
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
add esp, 0x14
ret
mov ecx, dword [esi + 8]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0xe], 0xfd
add esp, 0x14
ret

Function at 0x419fa0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x18
cmp dword [esp + 0x1c], 1
push ebp
mov ebp, dword [esp + 0x24]
jne 0x419fc9
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0xe], 0xfd
mov dword [esi + 0x10], ebp
pop ebp
add esp, 0x18
ret 8
lea ecx, [esp + 8]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x14]
sub edx, dword [esp + 0xc]
je 0x41a03a
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 8]
je 0x41a03a
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x41a030
or byte [esi + 0xe], 4
mov al, byte [esi + 0xe]
test al, 2
jne 0x41a027
or al, 2
push esi
mov edx, edi
mov byte [esi + 0xe], al
call fcn.0041a0c0
mov ecx, dword [esi + 8]
push 8
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0x10], ebp
pop ebp
add esp, 0x18
ret 8
cmp dword [esi + 0x10], ebp
je 0x41a030
mov byte [esi + 0x14], 1
mov dword [esi + 0x10], ebp
pop ebp
add esp, 0x18
ret 8
mov edx, dword [esi + 8]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0xe], 0xfd
pop ebp
add esp, 0x18
ret 8

Function at 0x41a060
Capabilities:
Hide graphical window

Disassembly:
push ecx
cmp byte [esi + 0xd], 0
je 0x41a0b7
and byte [esi + 0xe], 1
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x41a08f
or byte [esi + 0xe], 4
test eax, 0x20000000
mov cl, byte [esi + 0xe]
jne 0x41a08f
or cl, 2
mov byte [esi + 0xe], cl
test byte [esi + 0xe], 2
je 0x41a0ab
push esi
mov edx, edi
call fcn.0041a0c0
mov eax, dword [esi + 8]
push 8
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop ecx
ret
mov ecx, dword [esi + 8]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop ecx
ret
Function at 0x41b4a0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x42c120
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x438020]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3c]
mov edi, ecx
xor eax, eax
xor esi, esi
mov dword [esp + 0x20], 0x42f664
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov eax, dword [0x439134]
mov edx, dword [eax + 0xc]
mov ecx, 0x439134
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x42faa4
lea ebx, [esi + 0xa]
lea eax, [esp + 0x1c]
mov byte [esp + 0x38], 1
call fcn.0040a270
mov eax, dword [esp + 0x24]
test eax, eax
je 0x41b520
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x24], esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x42fabc
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41b5ba
test edi, edi
je 0x41b563
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41b554
sub eax, edx
sar eax, 1
push eax
push edi
lea edx, [esp + 0x20]
push edx
call fcn.00409dc0
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
xor esi, esi
test edi, edi
je 0x41b5be
test ebx, ebx
je 0x41b5be
test ebp, ebp
je 0x41b5be
mov eax, ebp
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41b590
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ebp
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x41b5be
lea esi, [eax + 1]
jmp 0x41b5be
mov ebx, dword [esp + 0x18]
lea eax, [ebx - 0x10]
mov byte [esp + 0x34], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b5df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
test eax, eax
mov dword [esp + 0x20], 0x42f664
je 0x41b5f6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x41c500
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x42cc88
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x438020]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
lea ebx, [esi + 0x50]
mov eax, ebx
call fcn.0041e630
mov ebp, eax
xor edi, edi
test ebp, ebp
je 0x41c55a
mov edi, 0x65
mov eax, ebx
call fcn.0041e480
mov edi, eax
test edi, edi
je 0x41c555
push esi
call fcn.0041cbb0
jmp 0x41c55a
call fcn.0041b7b0
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 4]
push 0
push 0
push 0x464
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
lea esi, [esp + 0x18]
call fcn.00409090
xor edx, edx
test edi, edi
sete dl
push ebp
mov ecx, esi
mov dword [esp + 0x2c], 0
lea edx, [edx + edx + 1]
push edx
push 0x42fe28
call fcn.00409110
mov esi, dword [esp + 0x28]
add esp, 0xc
test esi, esi
je 0x41c5c7
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
push str.U_r
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
push 0
mov ecx, esi
call edx
test esi, esi
mov dword [esp + 0x28], 0xffffffff
je 0x41c5dc
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x41c960
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42bd9d
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x438020]
xor eax, esp
mov dword [esp + 0x428], eax
push ebp
push esi
push edi
mov eax, dword [0x438020]
xor eax, esp
push eax
lea eax, [esp + 0x43c]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x444], ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [0x439134]
mov edx, dword [eax + 0xc]
mov ecx, 0x439134
mov dword [esp + 0x20], ebx
call edx
add eax, 0x10
mov dword [ebx], eax
mov eax, 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x444], eax
push 0x410
lea eax, [esp + 0x2a]
push ebp
push eax
mov dword [esp + 0x24], 0x208
mov word [esp + 0x30], bp
call fcn.0042ad84
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push ebp
push 0x42fec0
push 0x80000001
mov dword [esp + 0x24], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x41ca56
mov edx, dword [esp + 0x10]
push 0x42ff14
lea eax, [esp + 0x18]
push eax
lea edi, [esp + 0x20]
lea esi, [esp + 0x2c]
mov dword [esp + 0x1c], edx
call fcn.00401290
test eax, eax
jne 0x41ca47
mov ecx, esi
push ecx
push 0x42ff2c
mov edi, ebx
call fcn.00421320
add esp, 8
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x41ca56
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [esp + 0x43c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.0042a87c
add esp, 0x438
ret
Function at 0x41d930
Capabilities:
Log keystrokes

Disassembly:
sub esp, 8
mov eax, dword [0x439644]
push ebx
push ebp
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
je 0x41d94d
mov edi, dword [eax + 4]
cmp edi, ebx
jne 0x41d959
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov edi, eax
cmp edi, ebx
je 0x41d97e
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp edi, eax
je 0x41d97e
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41d97e
push ebx
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x10], 1
mov esi, dword [esp + 0x1c]
push edi
push esi
mov dword [esi + 0x320], ebx
call fcn.0041ea00
mov ebp, eax
cmp ebp, ebx
jne 0x41d9aa
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov eax, dword [0x439644]
cmp eax, ebx
mov dword [esp + 0x14], ebx
je 0x41d9c1
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov dword [eax + 4], ebp
lea eax, [esi + 4]
push eax
mov eax, edi
call fcn.00401390
cmp dword [esi + 0x314], ebx
je 0x41da39
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 0
push 0
push 0x2001
mov esi, eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp ebx, esi
je 0x41da1e
push 1
push ebx
push esi
call dword [sym.imp.USER32.dll_AttachThreadInput]
push ebp
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp ebx, esi
je 0x41da33
push 0
push ebx
push esi
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov esi, dword [esp + 0x1c]
xor ebx, ebx
call fcn.0040a180
mov edx, dword [esi + 4]
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
push edx
mov dword [esi + 0x320], ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x10], ebx
je 0x41da7d
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp edi, ebx
je 0x41da7d
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 4]
jne 0x41da7d
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [0x439644]
cmp eax, ebx
je 0x41da8d
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x4200c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x24
mov eax, dword [ebx + 4]
push ebp
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
xor ebp, ebp
cmp dword [ebx + 0x278], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
je 0x4200ee
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [ebx + 0x278], ebp
mov edi, dword [ebx + 0x26c]
cmp edi, ebp
je 0x4201ea
call fcn.00407700
mov esi, eax
cmp esi, ebp
mov edi, 1
je 0x420196
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
and dword [esi + 0x34], 0xfffffffd
mov ecx, esi
call eax
test eax, eax
je 0x420128
push edi
push ebx
call fcn.0041f370
mov ecx, dword [ebx + 0x26c]
cmp ecx, dword [ebx + 0x268]
jne 0x420196
movzx ecx, word [esp + 0x3c]
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
lea eax, [esp + 0x18]
push eax
movzx eax, word [esp + 0x3c]
shl ecx, 0x10
or ecx, eax
push ecx
mov ecx, dword [esp + 0x3c]
push ecx
push 0x202
push ebp
mov ecx, esi
mov dword [esp + 0x2c], ebp
mov dword [esi + 0x98], ebp
call edx
mov eax, dword [esi + 0x40]
cmp eax, ebp
je 0x420187
cmp word [eax], bp
je 0x420187
push edi
push ebp
push ebp
push eax
push 0x42f9e4
push ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x420196
mov eax, dword [esi + 0x10]
cmp eax, ebp
je 0x420196
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
cmp dword [esp + 0x10], ebp
mov dword [ebx + 0x26c], ebp
je 0x4201ea
mov eax, dword [ebx + 4]
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edx, dword [esi]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov ecx, dword [ebx + 4]
push ecx
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push edx
push ecx
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebp
add esp, 0x24
ret 0xc
Function at 0x420500
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42cae8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x438020]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x420531
lea edi, [eax - 0x24]
jmp 0x420533
xor edi, edi
mov eax, dword [edi + 0x24]
mov edx, dword [eax + 0x38]
lea ecx, [edi + 0x24]
push esi
call edx
test eax, eax
jne 0x42056b
mov eax, dword [edi + 0xe0]
mov edx, dword [eax + 0x38]
lea ecx, [edi + 0xe0]
push esi
call edx
test eax, eax
jne 0x42056b
mov eax, dword [edi + 0x19c]
mov edx, dword [eax + 0x38]
lea ecx, [edi + 0x19c]
push esi
call edx
mov esi, eax
test esi, esi
je 0x4205d7
push 1
push edi
call fcn.0041f370
push 0
push ecx
mov ecx, dword [esp + 0x2c]
mov eax, esp
mov dword [esp + 0x24], esp
push eax
call fcn.004096f0
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x24], 0
call fcn.004096f0
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
mov dword [esp + 0x20], 0xffffffff
call edx
push 1
push edi
call fcn.0041f370
mov eax, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0xc
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0xc

Function at 0x420860
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4208c0
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x4208b6
cmp edi, 0x1b
jne 0x42089e
mov ecx, dword [esi + 4]
push 0
push 2
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0x324], 0
ret
cmp edi, 0xd
jne 0x4208b6
mov edx, dword [esi + 4]
push 0
push 1
push 0x111
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0x324], 0
ret

Function at 0x421170
Capabilities:
Encode data using xor

Disassembly:
and ebx, 0x7f
lcall 0x518a, 0xe79a7e2e
add ebp, dword [ebx - 0x58044ed5]
mov ebp, 0x334fc32c
daa
xor esp, dword [edi]
enter 0x438e, 0xffffffffffffffce
push esp
call 0x2f6a300c
scasd eax, dword es:[edi]
push cs
adc dword [esi + 0x7bf19f1c], edi
cmpsb byte [esi], byte es:[edi]
in al, 0xf1
jbe 0x421184
movsb byte es:[edi], byte [esi]
or eax, 0x51908f09
xchg ebx, eax
mov eax, dword [0xe1c097a7]
lahf
cmpsb byte [esi], byte es:[edi]
sub bh, dl
xor esi, dword [ebp - 0x58]
scasd eax, dword es:[edi]
jmp 0xa387ae69
Function at 0x421320
Capabilities:
Encode data using xor

Disassembly:
xor dl, byte [ebx]
inc edx
xchg ebp, eax
xchg edx, eax
xchg esp, eax
wait
xchg esp, eax
mov byte [edi], bl
push edi
adc ecx, dword [edx]
movsb byte es:[edi], byte [esi]
sti
mov edx, 0x1b42096e
invalid
inc ebp
in eax, 0x2e
push 0xffffffffffffffb7
add ch, byte [esi]
pop ebp
popfd
sub bl, byte [ecx - 0x11]
scasb al, byte es:[edi]
out 0x8e, eax
cld
shr dword [eax + 0x4ec2370], 0xd9
mov ebp, dword [ebx + 0xb]
jns 0x4212cb
retf
dec edi
and al, 0x58
cmpsb byte [esi], byte es:[edi]
cmpsd dword [esi], dword es:[edi]
sub byte [edi], ah
push edi
xor eax, 0x29e9d179
in al, dx
insd dword es:[edi], dx
clc
jae 0x42124e
mov ecx, 0xc1053d00
xor al, 0x33
lea esp, [ebx]
pop ecx
sbb ecx, esp
dec edi
rcr dword [ebp + edi*4 + 0x38], 1
ja 0x421297
lodsb al, byte [esi]
pop ds
js 0x421329
pop eax
insd dword es:[edi], dx
mov dl, 0x4d
invalid
fmul qword [edi - 0x48]
cmp edi, 0xffffffd0
call eax
call eax
stc
dec edx
pop ebp
pop ss
mov esi, dword [ecx]
jnp 0x42131c
bnd jno 0x4212bb
jno 0x4212bb
jb 0x421399
scasd eax, dword es:[edi]
mov word [ecx + 0x312db1c], cs
cmc
outsd dx, dword [esi]
sub byte [edi - 0x15dbef29], ah
aad 0xb8
pop esi
dec edi
sbb eax, 0xeda3e50c
or dword [ebx + 0x3b76d12], esp
add dword [esi - 0x3a9f7a04], edx
mov cl, 0x5d
xor ah, bl
invalid
Function at 0x403e98
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x487000], 0
push ebx
push ebp
push esi
push edi
mov ebx, pe_overlay
mov edi, 0x487000
je 0x403eb7
push edi
call fcn.00406278
jmp 0x403ebd
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov esi, dword [0x456844]
mov ecx, esi
dec esi
test ecx, ecx
je 0x403f11
mov ecx, dword [0x456808]
mov ecx, dword [ecx + 0x64]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x456840]
mov bp, word [ecx]
xor bp, ax
and ebp, ebx
test bp, bp
je 0x403ef8
mov ebp, esi
dec esi
add ecx, edx
test ebp, ebp
jne 0x403ee0
jmp 0x403f11
mov edx, dword [ecx + 2]
mov dword [0x4527e0], edx
mov edx, dword [ecx + 6]
mov dword [0x4568a8], edx
lea edx, [ecx + 0xa]
test edx, edx
jne 0x403f23
cmp bx, 0xffff
jne 0x403f1f
mov ebx, 0x3ff
jmp 0x403ebd
xor ebx, ebx
jmp 0x403ebd
mov dword [0x4527dc], edx
movzx eax, word [ecx]
push eax
push edi
call fcn.0040625f
push 0xfffffffffffffffe
push 0x452800
call fcn.00406331
push eax
push dword [0x43f01c]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x45682c]
mov esi, dword [0x456828]
mov ecx, eax
dec eax
test ecx, ecx
je 0x403f7d
lea ebx, [esi + 0x18]
lea ebp, [eax + 1]
mov edi, 0x2018
mov eax, dword [esi]
test eax, eax
je 0x403f76
push eax
push ebx
call fcn.00406331
add esi, edi
add ebx, edi
dec ebp
jne 0x403f69
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405b32
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x444840], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405b56
test al, 0x10
jne 0x405b59
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x444840
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405b84
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x405c04
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405ee9
test byte [ebp + 0xc], 8
mov dword [ebp - 4], eax
je 0x405c38
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x456888], eax
jmp 0x405e01
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp + 8], ebx
je 0x405c56
test eax, eax
je 0x405d85
test byte [ebp + 0xc], 2
je 0x405d85
mov esi, 0x440040
push edi
push esi
call fcn.00406302
test ebx, ebx
je 0x405c73
push str..
push esi
call fcn.00406320
jmp 0x405c79
push edi
call fcn.00405e4e
push 0x40a268
push edi
call fcn.00406320
push edi
call fcn.00406313
mov ebx, eax
lea eax, [ebp - 0x144]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405d7b
cmp byte [ebp - 0x118], 0x2e
jne 0x405cca
cmp byte [ebp - 0x117], 0x2e
je 0x405d5e
cmp byte [ebp - 0x117], 0
je 0x405d5e
lea eax, [ebp - 0x118]
push eax
push ebx
call fcn.00406302
test byte [ebp - 0x144], 0x10
je 0x405cf5
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405d5e
push dword [ebp + 0xc]
push edi
call fcn.00405c04
jmp 0x405d5e
push edi
push str.Delete:_DeleteFile___s__
call fcn.0040678a
mov eax, dword [ebp - 0x144]
pop ecx
pop ecx
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405d56
test byte [ebp + 0xc], 4
push edi
je 0x405d42
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.0040678a
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.004055df
push 0
push edi
call fcn.0040604b
jmp 0x405d5e
push str.Delete:_DeleteFile_failed___s__
call fcn.0040678a
inc dword [0x456888]
pop ecx
pop ecx
jmp 0x405d5e
push edi
push 0xfffffffffffffff2
call fcn.004055df
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405ca7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405d85
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp + 8], esi
je 0x405e01
cmp dword [ebp - 4], esi
push edi
jne 0x405da7
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.0040678a
inc dword [0x456888]
pop ecx
pop ecx
jmp 0x405e01
call fcn.004067a6
test eax, eax
je 0x405e01
push edi
call fcn.00405e07
push edi
push str.RMDir:_RemoveDirectory___s__
call fcn.0040678a
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405df9
test byte [ebp + 0xc], 4
push edi
je 0x405df2
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.0040678a
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.004055df
push esi
push edi
call fcn.0040604b
jmp 0x405e01
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x405d98
push edi
push 0xffffffffffffffe5
call fcn.004055df
pop edi
pop esi
leave
ret 8