joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e930
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 0x46e972
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x46e972
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 0x46e98d
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
jmp 0x46e993
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
mov ebx, eax
test ebx, ebx
jne 0x46eabe
mov eax, dword [0x4d91fc]
test eax, eax
je 0x46eabe
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x46eabe
cmp byte [esp + 0x228], 0
je 0x46ea16
push 0x5c
push edi
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov edx, eax
add esp, 8
test edx, edx
je 0x46eabe
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46e9e2
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 0x46ea6d
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 0x46ea6d
cmp word [edi + esi*2], 0x5c
lea ecx, [edi + esi*2]
je 0x46ea93
mov ax, word [esp + 0x10]
inc ax
mov word [esp + 0x10], ax
cmp ax, 0x5a
jbe 0x46ea30
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 0x4713f0
Capabilities:
Delete file
Move file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x230
push esi
mov esi, ecx
test eax, eax
je 0x4714c0
cmp word [eax], 0
je 0x4714c0
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 0x471430
sub ecx, edx
sar ecx, 1
je 0x471450
cmp word [esp + ecx*2 + 0x26], 0x5c
jne 0x471450
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 0x471457
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
mov ecx, esi
setne al
movzx eax, al
push eax
call fcn.004476e0
pop esi
add esp, 0x230
ret 4
mov eax, dword [0x4e30fc]
test byte [eax + 0x100], 1
jne 0x4714ee
mov ecx, dword [0x4e5b90]
push 1
push 0
push 0xffffffffffffffff
push 0x4cffc4
call fcn.004a05c0
pop esi
add esp, 0x230
ret 4
push 0x4b9c10
push 0
push 0x4cffc4
call fcn.00447640
pop esi
add esp, 0x230
ret 4
Function at 0x471510
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 [0x4e73b0]
push 0
call fcn.004a05c0
mov esi, dword [esp + 0x118]
test esi, esi
je 0x471691
cmp word [esi], 0
je 0x471691
push ebp
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebp, eax
test ebp, ebp
jne 0x47157d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e30fc]
push 1
mov dword [ecx + 0x30], eax
mov ecx, ebx
call fcn.004476e0
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 0x471627
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
push 0x4d0cd8
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x471627
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.0049c640
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [0x4e30fc]
add esp, 0x20
mov ecx, ebx
push 0
mov dword [eax + 0x30], 0
call fcn.004476e0
mov ecx, dword [0x4e73b0]
lea eax, [esp + 0x1c]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004a05c0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e30fc]
push edi
mov dword [ecx + 0x30], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [0x4e30fc]
add esp, 4
test byte [eax + 0x100], 1
jne 0x471671
mov ecx, dword [0x4e5b90]
push 1
push 0
push 0xffffffffffffffff
push 0x4cffc4
call fcn.004a05c0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
push 0x4b9c10
push 0
push 0x4cffc4
mov ecx, ebx
call fcn.00447640
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
mov eax, dword [0x4e30fc]
mov ecx, ebx
push 1
mov dword [eax + 0x30], 0x57
call fcn.004476e0
pop esi
pop ebx
add esp, 0x10c
ret 4
Function at 0x4716c0
Capabilities:
Check if file exists
Copy file
Get file attributes
Move file

Disassembly:
sub esp, 0x43c
lea eax, [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push edi
push eax
lea eax, [esp + 0x30]
mov edi, edx
push eax
push 0x104
push ecx
call esi
lea ecx, [esp + 0x2c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4716f0
sub ecx, edx
sar ecx, 1
je 0x471710
cmp word [esp + ecx*2 + 0x2a], 0x5c
jne 0x471710
xor eax, eax
mov word [esp + ecx*2 + 0x2a], ax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x23c]
push eax
push 0x104
push edi
call esi
lea ecx, [esp + 0x238]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471730
sub ecx, edx
sar ecx, 1
je 0x471756
cmp word [esp + ecx*2 + 0x236], 0x5c
jne 0x471756
xor eax, eax
mov word [esp + ecx*2 + 0x236], ax
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [esp + 0x2c]
push eax
call esi
cmp eax, 0xffffffff
je 0x471789
test al, 0x10
je 0x471789
lea eax, [esp + 0x238]
push eax
call esi
cmp eax, 0xffffffff
je 0x471794
test al, 0x10
je 0x471794
cmp byte [esp + 0x448], 0
jne 0x4717a4
pop edi
xor al, al
pop esi
add esp, 0x43c
lea ecx, [esp + 0x238]
call fcn.00472300
test al, al
je 0x471789
lea ecx, [esp + 0x2c]
add ecx, 0xfffffffe
nop dword [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4717b0
mov eax, dword [0x4d97d0]
mov dword [ecx], eax
mov eax, dword [0x4d97d4]
mov dword [ecx + 4], eax
mov ax, word [0x4d97d8]
mov word [ecx + 8], ax
lea ecx, [esp + 0x2c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4717e0
sub ecx, edx
sar ecx, 1
xor eax, eax
mov word [esp + ecx*2 + 0x2e], ax
lea ecx, [esp + 0x238]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471800
xor eax, eax
mov dword [esp + 0x10], 2
sub ecx, edx
mov dword [esp + 0xc], eax
sar ecx, 1
xorps xmm0, xmm0
mov dword [esp + 0x26], eax
movlpd qword [esp + 0x1e], xmm0
mov word [esp + ecx*2 + 0x23a], ax
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x238]
mov dword [esp + 0x18], eax
mov eax, 0x614
mov word [esp + 0x1c], ax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
pop edi
sete al
pop esi
add esp, 0x43c
ret
Function at 0x471b60
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file

Disassembly:
sub esp, 0x230
lea eax, [esp + 0x20]
push ebx
push eax
lea eax, [esp + 0x2c]
mov bl, dl
push eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea ecx, [esp + 0x28]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471b86
sub ecx, edx
sar ecx, 1
je 0x471ba6
cmp word [esp + ecx*2 + 0x26], 0x5c
jne 0x471ba6
xor eax, eax
mov word [esp + ecx*2 + 0x26], ax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x471c60
test al, 0x10
je 0x471c60
test bl, bl
jne 0x471be3
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x471c60
mov al, 1
pop ebx
add esp, 0x230
ret
lea ecx, [esp + 0x28]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471bf0
sub ecx, edx
mov dword [esp + 0x10], 0
sar ecx, 1
xor eax, eax
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1e], 0
mov dword [esp + 0x16], 0
mov word [esp + ecx*2 + 0x2a], ax
lea eax, [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, 0x614
mov word [esp + 0x14], ax
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
pop ebx
sete al
add esp, 0x230
ret
xor al, al
pop ebx
add esp, 0x230
ret
Function at 0x472300
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4723a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x472390
sub eax, 1
jne 0x4723b2
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x472330
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x4723b2
lea eax, [ecx*2 + 2]
call fcn.004b7430
mov edi, esp
mov ecx, esi
mov edx, edi
sub edx, esi
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x472360
push 0x5c
push edi
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x4723b2
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
call fcn.00472300
test al, al
je 0x4723b2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
test al, 0x10
je 0x4723b2
mov al, 1
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
xor al, al
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret

Function at 0x4723c0
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 0x4723ff
push 0x3f
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
jne 0x4723ff
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x472410
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 0x47241a
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 0x472430
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 0x4724a3
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 0x4724a3
push eax
push esi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x4724a3
mov al, 1
pop esi
add esp, 0x14
ret
xor al, al
pop esi
add esp, 0x14
ret
Function at 0x483e40
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x483e50
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret

Function at 0x483e60
Capabilities:
Hide graphical window

Disassembly:
cmp dword [ecx + 0x24], 0
jne 0x483e7c
mov eax, dword [ecx + 4]
test eax, eax
je 0x483e91
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret
push 0
push 0x2af80006
push 0x414
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
ret
Function at 0x483ed0
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 0x4840c1
mov eax, dword [esi + 0x10]
xor edi, edi
test eax, eax
je 0x483f56
xor ebx, ebx
mov eax, dword [esi + 0x18]
add eax, ebx
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x483f15
cmp byte [eax + 4], 6
je 0x483f15
push str.Submit
push eax
push ecx
mov ecx, esi
call fcn.004841a0
jmp 0x483f4b
cmp dword [eax + 0x3c], 0
je 0x483f4b
cmp byte [eax + 4], 6
je 0x483f4b
mov ecx, dword [esi + 0xd4]
test ecx, ecx
jne 0x483f41
push 0x4b9c10
push str.No_object_to_invoke.
mov ecx, 0x4e7d50
call fcn.00447cc0
jmp 0x483f4b
push ecx
push eax
push ecx
mov ecx, esi
call fcn.00484bc0
mov eax, dword [esi + 0x10]
inc edi
add ebx, 0x40
cmp edi, eax
jb 0x483ef3
xor ebx, ebx
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x14], ebx
xor edi, edi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], edx
mov ebx, ecx
mov dword [esp + 0x1c], ecx
cmp ecx, eax
mov dword [esp + 0x18], ecx
je 0x483f95
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x18]
push 0xfffffffffffffff0
push dword [eax + ecx]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x20000
je 0x483fe9
mov edx, dword [esp + 0x10]
cmp edi, 1
jne 0x483fca
cmp edx, edi
jle 0x483fca
push 0xa
lea eax, [esp + 0x2c]
push eax
xor eax, eax
cmp ebx, 0xffffffff
cmovne eax, ebx
ret
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 edi
push 0
push 0xffffffffffffffff
push eax
call fcn.004a05c0
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi + 0x10]
je 0x4840b0
xor edi, edi
mov dword [esp + 0x14], 0
xor ecx, ecx
mov dword [esp + 0x10], ecx
jmp 0x483fed
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add edx, dword [esi + 0x18]
cmp byte [edx + 4], 6
jne 0x48408f
mov ebx, dword [edx + 8]
inc ecx
test ebx, ebx
mov dword [esp + 0x10], ecx
mov eax, ebx
cmove eax, dword [esp + 0xc]
push 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], eax
lea eax, [edi + 1]
push 0
cmove eax, edi
push 0xf0
push dword [edx]
mov edi, eax
mov dword [esp + 0x30], edi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x484065
cmp dword [esp + 0x14], 0
mov ecx, 0xffffffff
mov eax, dword [esp + 0x10]
cmovne eax, ecx
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x48408f
push 1
push 0
push ecx
push 0x4cffc4
mov ecx, ebx
call fcn.004a05c0
jmp 0x48408f
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
test ebx, ebx
je 0x48408f
push 1
push 0
push 0xffffffffffffffff
push 0x4b9cc4
mov ecx, ebx
call fcn.004a05c0
mov eax, dword [esp + 0x24]
mov edi, 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 ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
cmp ecx, eax
jbe 0x483f76
cmp byte [ebp + 8], 0
je 0x4840c1
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 0x4840d0
Capabilities:
Get graphical window text

Disassembly:
mov eax, edx
cmp eax, 0x2af8
jae 0x484183
test ecx, ecx
je 0x484183
cmp dword [ecx + 4], 0
je 0x484183
cmp eax, dword [ecx + 0x10]
jae 0x484183
mov edx, dword [esp + 4]
shl eax, 6
add eax, dword [ecx + 0x18]
mov ecx, dword [eax + 8]
test edx, edx
je 0x48414e
test ecx, ecx
je 0x484142
mov ecx, dword [ecx + 0x18]
push esi
mov esi, edx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x484113
lea eax, [edx + 2]
pop esi
nop dword [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x484130
sub edx, eax
sar edx, 1
mov eax, edx
ret
push 0x40
push edx
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowTextW]
ret
test ecx, ecx
je 0x484170
mov eax, dword [ecx + 0x18]
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x484160
sub eax, edx
sar eax, 1
ret
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, 0x3f
cmp eax, ecx
cmova eax, ecx
ret
mov eax, dword [esp + 4]
test eax, eax
je 0x484190
xor ecx, ecx
mov word [eax], cx
xor eax, eax
ret
Function at 0x487e60
Capabilities:
Get keyboard layout

Disassembly:
push ebx
push esi
mov esi, ecx
xor bl, bl
movzx eax, word [esi]
test ax, ax
je 0x487e9c
mov edx, eax
movzx eax, dx
cmp eax, 0x21
je 0x487e8b
cmp eax, 0x2b
je 0x487e87
cmp dx, 0x5e
jne 0x487e9c
mov al, 2
jmp 0x487e8d
mov al, 1
jmp 0x487e8d
mov al, 4
add esi, 2
or bl, al
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x487e70
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 0
xor edx, edx
mov ecx, esi
call fcn.0041ba30
mov bh, al
add esp, 0xc
test bh, bh
jne 0x487ebf
pop esi
xor eax, eax
pop ebx
ret
mov ecx, esi
call fcn.0041b940
movzx edx, ax
test dx, dx
jne 0x487eda
xor dl, dl
mov cl, bh
call fcn.0041bf90
movzx edx, ax
mov al, bl
or al, 8
and 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 0x488615
Capabilities:
Hide graphical window

Disassembly:
ret
Function at 0x489b30
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 0x489b4d
cmp eax, 9
jne 0x489b52
add esi, 2
jmp 0x489b40
test ax, ax
je 0x489cbd
cmp word [esi + 2], 0
lea ecx, [esi + 2]
jne 0x489b76
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 0x489c48
lea edi, [ebp - 2]
cmp edi, esi
jbe 0x489bb4
nop dword [eax]
movzx eax, word [edi]
cmp eax, 0x20
je 0x489bad
cmp eax, 9
jne 0x489bb4
sub edi, 2
cmp edi, esi
ja 0x489ba0
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 0x489bd2
or bl, 1
jmp 0x489c06
push edi
push 0x4cf2fc
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x489beb
or bl, 4
jmp 0x489c06
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 0x489cbd
or bl, 0x10
mov byte [esp + 0x13], bl
lea esi, [ebp + 2]
nop dword [eax]
movzx eax, word [esi]
cmp eax, 0x20
je 0x489c1d
cmp eax, 9
jne 0x489c22
add esi, 2
jmp 0x489c10
test ax, ax
je 0x489cbd
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 0x489b95
mov edi, dword [esp + 0x14]
cmp word [esi + 2], 0
jne 0x489c78
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.0041bb00
mov bl, byte [esp + 0x1b]
add esp, 8
jmp 0x489c90
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 0
xor edx, edx
mov ecx, esi
call fcn.0041ba30
add esp, 0xc
movzx eax, al
mov word [edi + 2], ax
test bl, 1
je 0x489c9f
or byte [edi], 8
test bl, 4
je 0x489ca7
or byte [edi], 0x10
test bl, 0x10
je 0x489caf
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

Function at 0x489d10
Capabilities:
Print debug messages

Disassembly:
cmp byte [ecx + 0x251], 0
je 0x489d32
mov ecx, dword [0x4e5b90]
push 1
push 0
push 0xffffffffffffffff
push 0x4cffc4
call fcn.004a05c0
ret 8
jmp fcn.00447cc0
Function at 0x48f970
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8018
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, ecx
mov dword [ebp - 0x14], 0
push esi
xor edx, edx
mov dword [ebp - 0x24], ebx
lea esi, [ebp - 0x24]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 8]
push edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], eax
mov dword [ebx + 4], esi
mov dword [ebp - 4], edx
test eax, eax
jle 0x48fa83
nop dword [eax]
cmp edx, dword [ebp + 0x10]
jl 0x48fa01
cmp dword [0x4e5ba4], 0
mov ecx, 0x42
mov eax, dword [0x4e30fc]
mov esi, 0x4e5870
mov edi, eax
xorps xmm0, xmm0
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x2c], 0
movlpd qword [0x4e8850], xmm0
je 0x48f9fe
push 0x4e5980
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebx]
add edx, edx
push 0
mov ecx, dword [eax + edx*8]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
mov edx, ecx
push dword [ebp + 8]
push str.call
call fcn.0048c4e0
add esp, 0x14
test eax, eax
je 0x48fa65
cmp dword [ebp - 0x14], 0
jne 0x48fa44
mov edx, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, dword [ebp - 0x18]
jl 0x48f9c0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
jmp 0x48fa86
mov ecx, dword [ebp - 0x24]
mov eax, 3
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x24]
xor eax, eax
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 0xc]
mov eax, 1
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4945d0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x20214
call fcn.004b7400
push esi
mov esi, dword [esp + 0x20228]
test esi, esi
je 0x4945ec
cmp word [esi], 0
jne 0x4945f1
mov esi, str.ERROR
xor eax, eax
mov word [esp + 0x218], ax
mov word [esp + 4], ax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push 0x104
push dword [esp + 0x20228]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [esp + 0x20224]
mov ecx, dword [esp + 0x20220]
cmp word [eax], 0
movzx edx, word [ecx]
je 0x49467d
push edi
lea edi, [esp + 0x10]
test dx, dx
push edi
push 0xffff
lea edi, [esp + 0x224]
push edi
push esi
push eax
lea eax, [esp + 0x1c]
cmovne eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop edi
mov ecx, dword [0x4e73b0]
lea eax, [esp + 0x218]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004a05c0
pop esi
add esp, 0x20214
ret 0x10
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x21c]
push 0xffff
push eax
test dx, dx
je 0x49469d
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
jmp 0x4946a3
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
test eax, eax
je 0x49465a
lea eax, [esp + 0x218]
mov ecx, 0xa
cmp word [eax], 0
jne 0x4946c3
cmp word [eax + 2], 0
je 0x49465a
mov word [eax], cx
add eax, 2
jmp 0x4946b3