joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465ee0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
push esi
mov esi, dword [esp + 0x21c]
push edi
movzx edi, word [esi + 4]
test edi, 0xffffff80
je 0x465f06
xor eax, eax
jmp 0x465f0e
push 2
push edi
call ebx
add esp, 8
mov ecx, edi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, edi
add ecx, 0xffffffbf
cmp ecx, 0x12
ja case.0x465f2b.66
movzx eax, byte [ecx + 0x466084]
jmp dword [eax*4 + 0x466070]
movzx eax, word [esi + 0x12]
mov edi, eax
test eax, 0xffffff80
je 0x465f43
xor eax, eax
jmp 0x465f4b
push 2
push eax
call ebx
add esp, 8
mov ecx, edi
and ecx, 0xffdf
test eax, eax
movzx edx, cx
mov ecx, edi
cmove edx, ecx
cmp dx, 0x53
jne 0x465f7a
cmp word [esi + 0x14], 0
mov eax, 2
mov ecx, 0x17
cmovne eax, ecx
jmp 0x466009
mov eax, 0x26
jmp 0x466009
cmp word [esi + 0x12], 0
mov eax, 0x1a
mov ecx, 0x23
cmovne eax, ecx
jmp 0x466009
cmp word [esi + 0x12], 0
mov eax, 0x10
mov ecx, 0x19
cmovne eax, ecx
jmp 0x466009
movzx eax, word [esi + 0xe]
mov edi, eax
test eax, 0xffffff80
je 0x465fbd
xor eax, eax
jmp 0x465fc5
push 2
push eax
call ebx
add esp, 8
mov ecx, edi
and ecx, 0xffdf
test eax, eax
movzx edx, cx
mov ecx, edi
cmove edx, ecx
cmp dx, 0x4d
jne 0x465ff1
cmp word [esi + 0x16], 0
mov eax, 0xb
mov ecx, 0x16
cmovne eax, ecx
jmp 0x466009
cmp word [esi + 0x12], 0
mov eax, 7
mov ecx, 0x18
cmovne eax, ecx
jmp 0x466009
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
pop edi
pop esi
pop ebx
test eax, eax
je 0x466029
xor eax, eax
mov word [esp + 4], ax
mov edx, dword [esp + 0x210]
test edx, edx
je 0x466050
lea ecx, [esp + 4]
mov eax, ecx
sub edx, eax
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x466040
lea eax, [esp + 4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x466057
sub eax, edx
sar eax, 1
add esp, 0x20c
ret

Function at 0x4660a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
lea eax, [esp]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4660c2
xor eax, eax
mov word [esp], ax
lea edx, [esp]
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4660d0
sub edx, ecx
sar edx, 1
jne 0x4660e5
xor edx, edx
jmp 0x4660f5
cmp word [esp + edx*2 - 2], 0x5c
jne 0x4660f5
xor eax, eax
mov word [esp + edx*2 - 2], ax
dec edx
push esi
mov esi, dword [esp + 0x210]
test esi, esi
je 0x466120
lea eax, [esp + 4]
mov ecx, eax
sub esi, ecx
nop dword [eax]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [esi + eax - 2], cx
test cx, cx
jne 0x466110
mov eax, edx
pop esi
add esp, 0x208
ret
Function at 0x47b300
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, cl
test bl, bl
jne 0x47b30b
xor al, al
pop ebx
ret
sub edx, 1
je 0x47b330
movzx eax, bl
push eax
sub edx, 1
je 0x47b326
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
pop ebx
ret
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
pop ebx
ret
mov al, bl
dec al
cmp al, 5
ja 0x47b33d
cmp bl, 3
jne 0x47b345
mov al, bl
add al, 0x66
cmp al, 5
ja 0x47b35c
cmp dword [0x4fba14], 0
movzx eax, bl
je 0x47b38d
mov al, byte [eax + 0x4fc3f8]
shr al, 7
pop ebx
ret
cmp dword [0x4fba18], 0
je 0x47b38a
push 0
xor edx, edx
call fcn.0041ed50
add esp, 4
test al, al
je 0x47b37c
mov cl, 1
call fcn.0041eb40
movzx eax, bl
pop ebx
mov al, byte [eax + 0x4fc3f8]
shr al, 7
ret
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
pop ebx
ret
Function at 0x47ba50
Capabilities:
Get disk information

Disassembly:
sub esp, 0x210
xor eax, eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
push esi
push edi
mov esi, ecx
mov edi, edx
push esi
push eax
push 0x410
mov word [edi], ax
call ebx
mov ebp, eax
test ebp, ebp
jne 0x47ba92
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x47ba92
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
cmp byte [esp + 0x228], 0
push 0x104
push edi
push 0
push ebp
je 0x47baad
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
jmp 0x47bab3
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
mov ebx, eax
test ebx, ebx
jne 0x47bbde
mov eax, dword [0x4ef7b0]
test eax, eax
je 0x47bbde
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x47bbde
cmp byte [esp + 0x228], 0
je 0x47bb36
push 0x5c
push edi
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov edx, eax
add esp, 8
test edx, edx
je 0x47bbde
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47bb02
sub ecx, esi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [edx + 2]
push eax
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x210
ret
mov eax, 0x41
mov dword [esp + 0x12], 0x3a
mov word [esp + 0x10], ax
nop dword [eax + eax]
push 0x104
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov esi, eax
cmp esi, 2
jbe 0x47bb8d
sub esi, 2
lea eax, [esp + 0x18]
push esi
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x47bb8d
cmp word [edi + esi*2], 0x5c
lea ecx, [edi + esi*2]
je 0x47bbb3
mov ax, word [esp + 0x10]
inc ax
mov word [esp + 0x10], ax
cmp ax, 0x5a
jbe 0x47bb50
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x210
ret
movzx eax, word [esp + 0x10]
sub ebx, esi
mov word [edi], ax
movzx eax, word [esp + 0x12]
mov word [edi + 2], ax
lea eax, [ebx*2 + 2]
push eax
push ecx
lea eax, [edi + 4]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
add ebx, 2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x210
ret
Function at 0x47e680
Capabilities:
Create shortcut via ishelllink
Get keyboard layout

Disassembly:
sub esp, 0x210
push ebx
push ebp
push 0
mov ebp, ecx
xor bl, bl
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 8]
push eax
push 0x4cfa80
push 1
push 0
push 0x4cfa90
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x47e81f
mov eax, dword [esp + 8]
push dword [esp + 0x21c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [esp + 0x224]
cmp word [edx], 0
je 0x47e6de
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edx, dword [esp + 0x228]
cmp word [edx], 0
je 0x47e6f6
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, dword [esp + 0x22c]
cmp word [edx], 0
je 0x47e70e
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [esp + 0x238]
push esi
cmp word [ecx], 0
je 0x47e725
call fcn.0041a370
mov esi, eax
jmp 0x47e727
xor esi, esi
push edi
mov edi, dword [esp + 0x238]
cmp word [edi], 0
je 0x47e74a
mov ecx, dword [esp + 0x10]
xor eax, eax
test esi, esi
setg al
mov edx, dword [ecx]
sub esi, eax
push esi
push edi
push ecx
call dword [edx + 0x44]
mov esi, dword [esp + 0x23c]
pop edi
cmp word [esi], 0
je 0x47e78d
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 0
xor edx, edx
mov ecx, esi
call fcn.0041f4a0
add esp, 0xc
test al, al
je 0x47e78d
mov ecx, dword [esp + 0xc]
mov esi, 0x600
movzx eax, al
or ax, si
movzx eax, ax
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x34]
mov ecx, dword [esp + 0x240]
cmp word [ecx], 0
je 0x47e7ad
mov eax, dword [esp + 0xc]
mov esi, dword [eax]
call fcn.0041a370
push eax
push dword [esp + 0x10]
call dword [esi + 0x3c]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push 0x4cfaa0
push eax
mov ecx, dword [eax]
call dword [ecx]
pop esi
test eax, eax
js 0x47e815
push 0
lea eax, [esp + 0x14]
push eax
push 0x104
push dword [esp + 0x22c]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
js 0x47e80b
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4cfcf8
call fcn.004b55f0
mov bl, 1
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
test bl, bl
je 0x47e839
pop ebp
mov eax, 1
pop ebx
add esp, 0x210
ret 0x24
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
jne 0x47e868
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b55f0
pop ebp
pop ebx
add esp, 0x210
ret 0x24
push 0x4cfc30
push 0
push 0x4e613c
mov ecx, ebp
call fcn.0044e0b0
pop ebp
pop ebx
add esp, 0x210
ret 0x24
Function at 0x47e890
Capabilities:
Delete file
Move file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x230
push esi
mov esi, ecx
test eax, eax
je 0x47e99b
cmp word [eax], 0
je 0x47e99b
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea ecx, [esp + 0x28]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47e8d0
sub ecx, edx
sar ecx, 1
je 0x47e8f0
cmp word [esp + ecx*2 + 0x26], 0x5c
jne 0x47e8f0
xor eax, eax
mov word [esp + ecx*2 + 0x26], ax
lea ecx, [esp + 0x28]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47e8f7
xor eax, eax
mov dword [esp + 8], 3
sub ecx, edx
mov dword [esp + 0x1a], eax
sar ecx, 1
mov dword [esp + 0x1e], eax
mov dword [esp + 0x16], eax
mov dword [esp + 4], eax
mov word [esp + ecx*2 + 0x2a], ax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, 0x4054
mov word [esp + 0x14], ax
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x47e969
mov ecx, dword [0x4fb9e4]
push 1
push eax
push 0xffffffffffffffff
push 0x4cfcf8
call fcn.004b55f0
pop esi
add esp, 0x230
ret 4
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
jne 0x47e997
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b55f0
pop esi
add esp, 0x230
ret 4
mov ecx, esi
jmp 0x47e9a9
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
je 0x47e977
push 0x4cfc30
push 0
push 0x4e613c
call fcn.0044e0b0
pop esi
add esp, 0x230
ret 4
Function at 0x47ea50
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10c
push ebx
push esi
push 1
push 0
push 0xffffffffffffffff
mov ebx, ecx
mov ecx, dword [0x4fd228]
push 0
call fcn.004b55f0
mov esi, dword [esp + 0x118]
test esi, esi
je 0x47ec12
cmp word [esi], 0
je 0x47ec12
push ebp
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebp, eax
test ebp, ebp
jne 0x47eaf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f90f4]
test byte [ecx + 0x100], 1
mov dword [ecx + 0x30], eax
jne 0x47ead2
mov ecx, dword [0x4fb9e4]
push 1
push ebp
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b55f0
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
push 0x4cfc30
push 0
push 0x4e613c
mov ecx, ebx
call fcn.0044e0b0
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
push edi
push ebp
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov edi, eax
push edi
push ebp
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x47eba8
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
push 0x4e7060
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x47eba8
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
lea eax, [esp + 0x28]
push edx
push str._u._u._u._u
push 0x80
push eax
call fcn.004b0fe0
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [0x4f90f4]
add esp, 0x20
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4cfcf8
mov dword [eax + 0x30], 0
call fcn.004b55f0
mov ecx, dword [0x4fd228]
lea eax, [esp + 0x1c]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004b55f0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f90f4]
push edi
mov dword [ecx + 0x30], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [0x4f90f4]
add esp, 4
test byte [eax + 0x100], 1
jne 0x47ebf2
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b55f0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
push 0x4cfc30
push 0
push 0x4e613c
mov ecx, ebx
call fcn.0044e0b0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
mov dword [eax + 0x30], 0x57
jne 0x47ec48
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b55f0
pop esi
pop ebx
add esp, 0x10c
ret 4
push 0x4cfc30
push 0
push 0x4e613c
mov ecx, ebx
call fcn.0044e0b0
pop esi
pop ebx
add esp, 0x10c
ret 4
Function at 0x47ef00
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file

Disassembly:
sub esp, 0x230
test dl, dl
jne 0x47ef22
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x47efee
mov al, 1
add esp, 0x230
ret
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea ecx, [esp + 0x24]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47ef40
sub ecx, edx
sar ecx, 1
je 0x47ef60
cmp word [esp + ecx*2 + 0x22], 0x5c
jne 0x47ef60
xor eax, eax
mov word [esp + ecx*2 + 0x22], ax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47efee
test al, 0x10
je 0x47efee
lea ecx, [esp + 0x24]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47ef80
sub ecx, edx
mov dword [esp + 0xc], 0
sar ecx, 1
xor eax, eax
mov dword [esp + 0x16], 0
mov dword [esp + 0x1a], 0
mov dword [esp + 0x12], 0
mov word [esp + ecx*2 + 0x26], ax
lea eax, [esp + 0x24]
mov dword [esp + 8], eax
mov eax, 0x614
mov word [esp + 0x10], ax
lea eax, [esp]
push eax
mov dword [esp + 4], 0
mov dword [esp + 8], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
add esp, 0x230
ret
xor al, al
add esp, 0x230
ret
Function at 0x47f540
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x258
push esi
mov esi, ecx
push 0x2a
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
jne 0x47f57f
push 0x3f
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
jne 0x47f57f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47f590
mov al, 1
pop esi
add esp, 0x258
ret
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x47f59a
xor al, al
pop esi
add esp, 0x258
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop esi
add esp, 0x258
ret

Function at 0x47f5b0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push esi
push eax
push 0x28
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x47f622
lea eax, [esp + 0xc]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 1
push eax
push 0
push dword [esp + 0x18]
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x47f622
push eax
push esi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
pop esi
setne al
add esp, 0x14
ret
xor al, al
pop esi
add esp, 0x14
ret
Function at 0x47f630
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0xa60
push ebx
push ebp
push esi
push edi
push 0
mov ebx, ecx
mov dword [esp + 0x18], 0x22c
push 2
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebp, eax
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
push 0
push 0
push 1
xor edx, edx
mov ecx, ebx
call fcn.004b0df0
add esp, 0xc
test eax, eax
je 0x47f681
mov ecx, ebx
call fcn.004054a0
mov ebx, eax
jmp 0x47f683
xor ebx, ebx
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x47f747
test ebx, ebx
je 0x47f6a5
cmp ebx, dword [esp + 0x1c]
je 0x47f75b
lea eax, [esp + 0x44c]
push eax
lea eax, [esp + 0x244]
push eax
lea eax, [esp + 0x660]
push eax
lea eax, [esp + 0x870]
push eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath]
lea eax, [esp + 0x460]
add esp, 0x14
mov esi, eax
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47f6e0
lea edi, [esp + 0x240]
sub eax, esi
add edi, 0xfffffffe
nop word [eax + eax]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x47f700
push dword [esp + 0x10]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x244]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x47f76f
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x47f697
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa60
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xa60
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa60
ret
Function at 0x493fa0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x494190
mov eax, dword [esi + 0x10]
xor edi, edi
test eax, eax
je 0x494025
xor ebx, ebx
mov eax, dword [esi + 0x18]
add eax, ebx
mov edx, dword [eax + 8]
test edx, edx
je 0x493fe5
cmp byte [eax + 4], 6
je 0x493fe5
push str.Submit
push eax
push edx
mov ecx, esi
call fcn.004941a0
jmp 0x49401a
cmp dword [eax + 0x3c], 0
je 0x49401a
cmp byte [eax + 4], 6
je 0x49401a
mov ecx, dword [esi + 0xd4]
push 0x4cfc30
test ecx, ecx
jne 0x494011
push str.No_object_to_invoke.
mov ecx, 0x4fdb90
call fcn.0044e970
jmp 0x49401a
push eax
push ecx
mov ecx, esi
call fcn.00494c30
mov eax, dword [esi + 0x10]
inc edi
add ebx, 0x40
cmp edi, eax
jb 0x493fc3
xor edi, edi
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x14], edi
xor ebx, ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], edx
mov edi, ecx
mov dword [esp + 0x1c], ecx
cmp ecx, eax
mov dword [esp + 0x18], ecx
je 0x494064
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x18]
push 0xfffffffffffffff0
push dword [ecx + eax]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x20000
je 0x4940b8
mov edx, dword [esp + 0x10]
cmp ebx, 1
jne 0x494099
cmp edx, ebx
jle 0x494099
push 0xa
lea eax, [esp + 0x2c]
push eax
xor eax, eax
cmp edi, 0xffffffff
cmovne eax, edi
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x34]
add esp, 0xc
push ebx
push 0
push 0xffffffffffffffff
push eax
call fcn.004b55f0
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi + 0x10]
je 0x49417f
xor ebx, ebx
mov dword [esp + 0x14], 0
xor ecx, ecx
mov dword [esp + 0x10], ecx
jmp 0x4940bc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add edx, dword [esi + 0x18]
cmp byte [edx + 4], 6
jne 0x49415e
mov edi, dword [edx + 8]
inc ecx
test edi, edi
mov dword [esp + 0x10], ecx
mov eax, edi
cmove eax, dword [esp + 0xc]
push 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], eax
lea eax, [ebx + 1]
push 0
cmove eax, ebx
push 0xf0
push dword [edx]
mov ebx, eax
mov dword [esp + 0x30], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x494134
cmp dword [esp + 0x14], 0
mov ecx, 0xffffffff
mov eax, dword [esp + 0x10]
cmovne eax, ecx
mov dword [esp + 0x14], eax
test edi, edi
je 0x49415e
push 1
push 0
push ecx
push 0x4e613c
mov ecx, edi
call fcn.004b55f0
jmp 0x49415e
mov edx, dword [esp + 0xc]
mov dword [esp + 0xc], edx
test edi, edi
je 0x49415e
push 1
push 0
push 0xffffffffffffffff
push 0x4cfcf8
mov ecx, edi
call fcn.004b55f0
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x18], 0x40
inc ecx
mov eax, dword [esi + 0x10]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
cmp ecx, eax
jbe 0x494045
cmp byte [ebp + 8], 0
je 0x494190
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x498570
Capabilities:
Get keyboard layout

Disassembly:
push ebx
push esi
mov esi, ecx
xor bl, bl
movzx eax, word [esi]
test ax, ax
je 0x4985ac
mov edx, eax
movzx eax, dx
cmp eax, 0x21
je 0x49859b
cmp eax, 0x2b
je 0x498597
cmp dx, 0x5e
jne 0x4985ac
mov al, 2
jmp 0x49859d
mov al, 1
jmp 0x49859d
mov al, 4
add esi, 2
or bl, al
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x498580
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 0
xor edx, edx
mov ecx, esi
call fcn.0041f4a0
mov bh, al
add esp, 0xc
test bh, bh
jne 0x4985cf
pop esi
xor eax, eax
pop ebx
ret
xor edx, edx
mov ecx, esi
call fcn.0041f3b0
movzx edx, ax
test dx, dx
jne 0x4985ec
xor dl, dl
mov cl, bh
call fcn.0041fa80
movzx edx, ax
mov al, bl
or al, 8
test edx, 0x100
movzx ecx, al
movzx eax, bl
cmove ecx, eax
movzx eax, cl
movzx ecx, bh
shl ax, 8
pop esi
or ax, cx
pop ebx
ret
Function at 0x499ed0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, edx
mov esi, ecx
mov dword [esp + 0x14], edi
nop
movzx eax, word [esi]
cmp eax, 0x20
je 0x499eed
cmp eax, 9
jne 0x499ef2
add esi, 2
jmp 0x499ee0
test ax, ax
je 0x49a05d
cmp word [esi + 2], 0
lea ecx, [esi + 2]
jne 0x499f16
mov word [edi + 2], ax
mov al, 1
mov byte [edi], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 0x2b
xor bl, bl
mov byte [edi], 1
push ecx
mov byte [esp + 0x1b], bl
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x499fe8
lea edi, [ebp - 2]
cmp edi, esi
jbe 0x499f54
nop dword [eax]
movzx eax, word [edi]
cmp eax, 0x20
je 0x499f4d
cmp eax, 9
jne 0x499f54
sub edi, 2
cmp edi, esi
ja 0x499f40
sub edi, esi
sar edi, 1
inc edi
push edi
push str.Ctrl
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x499f72
or bl, 1
jmp 0x499fa6
push edi
push 0x4e5478
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x499f8b
or bl, 4
jmp 0x499fa6
push edi
push str.Shift
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x49a05d
or bl, 0x10
mov byte [esp + 0x13], bl
lea esi, [ebp + 2]
nop dword [eax]
movzx eax, word [esi]
cmp eax, 0x20
je 0x499fbd
cmp eax, 9
jne 0x499fc2
add esi, 2
jmp 0x499fb0
test ax, ax
je 0x49a05d
lea eax, [esi + 2]
push 0x2b
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x499f35
mov edi, dword [esp + 0x14]
cmp word [esi + 2], 0
jne 0x49a018
push 1
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
movzx eax, word [esi]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
lea edx, [esp + 0x1b]
mov ecx, eax
call fcn.0041f5c0
mov bl, byte [esp + 0x1b]
add esp, 8
jmp 0x49a030
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 0
xor edx, edx
mov ecx, esi
call fcn.0041f4a0
add esp, 0xc
movzx eax, al
mov word [edi + 2], ax
test bl, 1
je 0x49a03f
or byte [edi], 8
test bl, 4
je 0x49a047
or byte [edi], 0x10
test bl, 0x10
je 0x49a04f
or byte [edi], 4
pop edi
pop esi
test ax, ax
pop ebp
setne al
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret