joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47e9b0
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 0x4cfa90
push 1
push 0
push 0x4cfaa0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x47eb4f
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 0x47ea0e
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 0x47ea26
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 0x47ea3e
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 0x47ea55
call fcn.0041a370
mov esi, eax
jmp 0x47ea57
xor esi, esi
push edi
mov edi, dword [esp + 0x238]
cmp word [edi], 0
je 0x47ea7a
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 0x47eabd
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 0
xor edx, edx
mov ecx, esi
call fcn.0041f4d0
add esp, 0xc
test al, al
je 0x47eabd
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 0x47eadd
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 0x4cfab0
push eax
mov ecx, dword [eax]
call dword [ecx]
pop esi
test eax, eax
js 0x47eb45
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 0x47eb3b
mov ecx, dword [0x4fb9cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4cfd08
call fcn.004b5b70
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 0x47eb69
pop ebp
mov eax, 1
pop ebx
add esp, 0x210
ret 0x24
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
jne 0x47eb98
mov ecx, dword [0x4fb9cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b5b70
pop ebp
pop ebx
add esp, 0x210
ret 0x24
push 0x4cfc40
push 0
push 0x4e613c
mov ecx, ebp
call fcn.0044e3e0
pop ebp
pop ebx
add esp, 0x210
ret 0x24
Function at 0x47ebc0
Capabilities:
Delete file
Move file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x230
push esi
mov esi, ecx
test eax, eax
je 0x47eccb
cmp word [eax], 0
je 0x47eccb
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 0x47ec00
sub ecx, edx
sar ecx, 1
je 0x47ec20
cmp word [esp + ecx*2 + 0x26], 0x5c
jne 0x47ec20
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 0x47ec27
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 0x47ec99
mov ecx, dword [0x4fb9cc]
push 1
push eax
push 0xffffffffffffffff
push 0x4cfd08
call fcn.004b5b70
pop esi
add esp, 0x230
ret 4
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
jne 0x47ecc7
mov ecx, dword [0x4fb9cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b5b70
pop esi
add esp, 0x230
ret 4
mov ecx, esi
jmp 0x47ecd9
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
je 0x47eca7
push 0x4cfc40
push 0
push 0x4e613c
call fcn.0044e3e0
pop esi
add esp, 0x230
ret 4
Function at 0x47ed80
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 [0x4fd218]
push 0
call fcn.004b5b70
mov esi, dword [esp + 0x118]
test esi, esi
je 0x47ef42
cmp word [esi], 0
je 0x47ef42
push ebp
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebp, eax
test ebp, ebp
jne 0x47ee21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f90f4]
test byte [ecx + 0x100], 1
mov dword [ecx + 0x30], eax
jne 0x47ee02
mov ecx, dword [0x4fb9cc]
push 1
push ebp
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b5b70
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
push 0x4cfc40
push 0
push 0x4e613c
mov ecx, ebx
call fcn.0044e3e0
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 0x47eed8
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 0x47eed8
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.004b1470
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 [0x4fb9cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4cfd08
mov dword [eax + 0x30], 0
call fcn.004b5b70
mov ecx, dword [0x4fd218]
lea eax, [esp + 0x1c]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004b5b70
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 0x47ef22
mov ecx, dword [0x4fb9cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b5b70
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
push 0x4cfc40
push 0
push 0x4e613c
mov ecx, ebx
call fcn.0044e3e0
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 0x47ef78
mov ecx, dword [0x4fb9cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b5b70
pop esi
pop ebx
add esp, 0x10c
ret 4
push 0x4cfc40
push 0
push 0x4e613c
mov ecx, ebx
call fcn.0044e3e0
pop esi
pop ebx
add esp, 0x10c
ret 4
Function at 0x47f230
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file

Disassembly:
sub esp, 0x230
test dl, dl
jne 0x47f252
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x47f31e
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 0x47f270
sub ecx, edx
sar ecx, 1
je 0x47f290
cmp word [esp + ecx*2 + 0x22], 0x5c
jne 0x47f290
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 0x47f31e
test al, 0x10
je 0x47f31e
lea ecx, [esp + 0x24]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47f2b0
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 0x47f870
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 0x47f8af
push 0x3f
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
jne 0x47f8af
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47f8c0
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 0x47f8ca
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 0x47f8e0
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 0x47f952
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 0x47f952
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 0x47f960
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.004b1280
add esp, 0xc
test eax, eax
je 0x47f9b1
mov ecx, ebx
call fcn.00405520
mov ebx, eax
jmp 0x47f9b3
xor ebx, ebx
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x47fa77
test ebx, ebx
je 0x47f9d5
cmp ebx, dword [esp + 0x1c]
je 0x47fa8b
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 0x47fa10
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 0x47fa30
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 0x47fa9f
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x47f9c7
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 0x494480
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 0x494670
mov eax, dword [esi + 0x10]
xor edi, edi
test eax, eax
je 0x494505
xor ebx, ebx
mov eax, dword [esi + 0x18]
add eax, ebx
mov edx, dword [eax + 8]
test edx, edx
je 0x4944c5
cmp byte [eax + 4], 6
je 0x4944c5
push str.Submit
push eax
push edx
mov ecx, esi
call fcn.00494680
jmp 0x4944fa
cmp dword [eax + 0x3c], 0
je 0x4944fa
cmp byte [eax + 4], 6
je 0x4944fa
mov ecx, dword [esi + 0xd4]
push 0x4cfc40
test ecx, ecx
jne 0x4944f1
push str.No_object_to_invoke.
mov ecx, 0x4fdb78
call fcn.0044ec90
jmp 0x4944fa
push eax
push ecx
mov ecx, esi
call fcn.00495120
mov eax, dword [esi + 0x10]
inc edi
add ebx, 0x40
cmp edi, eax
jb 0x4944a3
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 0x494544
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 0x494598
mov edx, dword [esp + 0x10]
cmp ebx, 1
jne 0x494579
cmp edx, ebx
jle 0x494579
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.004b5b70
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi + 0x10]
je 0x49465f
xor ebx, ebx
mov dword [esp + 0x14], 0
xor ecx, ecx
mov dword [esp + 0x10], ecx
jmp 0x49459c
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add edx, dword [esi + 0x18]
cmp byte [edx + 4], 6
jne 0x49463e
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 0x494614
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 0x49463e
push 1
push 0
push ecx
push 0x4e613c
mov ecx, edi
call fcn.004b5b70
jmp 0x49463e
mov edx, dword [esp + 0xc]
mov dword [esp + 0xc], edx
test edi, edi
je 0x49463e
push 1
push 0
push 0xffffffffffffffff
push 0x4cfd08
mov ecx, edi
call fcn.004b5b70
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 0x494525
cmp byte [ebp + 8], 0
je 0x494670
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 0x498a20
Capabilities:
Get keyboard layout

Disassembly:
push ebx
push esi
mov esi, ecx
xor bl, bl
movzx eax, word [esi]
test ax, ax
je 0x498a5c
mov edx, eax
movzx eax, dx
cmp eax, 0x21
je 0x498a4b
cmp eax, 0x2b
je 0x498a47
cmp dx, 0x5e
jne 0x498a5c
mov al, 2
jmp 0x498a4d
mov al, 1
jmp 0x498a4d
mov al, 4
add esi, 2
or bl, al
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x498a30
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 0
xor edx, edx
mov ecx, esi
call fcn.0041f4d0
mov bh, al
add esp, 0xc
test bh, bh
jne 0x498a7f
pop esi
xor eax, eax
pop ebx
ret
xor edx, edx
mov ecx, esi
call fcn.0041f3e0
movzx edx, ax
test dx, dx
jne 0x498a9c
xor dl, dl
mov cl, bh
call fcn.0041fab0
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 0x49a390
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 0x49a3ad
cmp eax, 9
jne 0x49a3b2
add esi, 2
jmp 0x49a3a0
test ax, ax
je 0x49a51d
cmp word [esi + 2], 0
lea ecx, [esi + 2]
jne 0x49a3d6
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 0x49a4a8
lea edi, [ebp - 2]
cmp edi, esi
jbe 0x49a414
nop dword [eax]
movzx eax, word [edi]
cmp eax, 0x20
je 0x49a40d
cmp eax, 9
jne 0x49a414
sub edi, 2
cmp edi, esi
ja 0x49a400
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 0x49a432
or bl, 1
jmp 0x49a466
push edi
push 0x4e5474
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x49a44b
or bl, 4
jmp 0x49a466
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 0x49a51d
or bl, 0x10
mov byte [esp + 0x13], bl
lea esi, [ebp + 2]
nop dword [eax]
movzx eax, word [esi]
cmp eax, 0x20
je 0x49a47d
cmp eax, 9
jne 0x49a482
add esi, 2
jmp 0x49a470
test ax, ax
je 0x49a51d
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 0x49a3f5
mov edi, dword [esp + 0x14]
cmp word [esi + 2], 0
jne 0x49a4d8
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.0041f5f0
mov bl, byte [esp + 0x1b]
add esp, 8
jmp 0x49a4f0
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 0
xor edx, edx
mov ecx, esi
call fcn.0041f4d0
add esp, 0xc
movzx eax, al
mov word [edi + 2], ax
test bl, 1
je 0x49a4ff
or byte [edi], 8
test bl, 4
je 0x49a507
or byte [edi], 0x10
test bl, 0x10
je 0x49a50f
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 0x49c370
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
push ebx
push ebp
mov ebp, dword [esp + 0x74]
mov ebx, ecx
mov edx, ebp
push esi
push edi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x49c382
sub edx, ecx
sar edx, 1
cmp edx, 0x104
ja 0x49c53e
mov edi, dword [esp + 0x78]
xor edx, edx
movzx ecx, word [ebp]
mov esi, 0x800
test cx, cx
movzx eax, word [edi + 0x1e]
cmovne esi, edx
mov edx, dword [ebx + 0x20]
and eax, 0xfffff6fb
or esi, eax
test edx, edx
jne 0x49c3d9
push ebp
push edi
mov word [edi + 0x1e], si
call fcn.0049c550
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8
movzx eax, word [ebp]
xor ecx, ecx
mov dword [esp + 0x10], 0x30
mov dword [esp + 0x14], ecx
test ax, ax
je 0x49c40a
movzx eax, word [edi + 0x1e]
test eax, 0x800
je 0x49c43f
movzx eax, word [edi + 0x1c]
mov ecx, 1
mov dword [esp + 0x1c], eax
jmp 0x49c43f
cmp dword [ebx + 0xc], edi
jne 0x49c43f
push 0
cmp ebx, dword [0x4fe6d4]
jne 0x49c42b
or eax, 0xffffffff
mov ecx, 0xff14
cmp byte [ebx + 0x10], 0
cmovne eax, ecx
push eax
jmp 0x49c42d
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0xc], 0
push 9
push dword [edi]
or ecx, 0x10
mov dword [esp + 0x20], esi
mov esi, dword [sym.imp.VCRUNTIME140.dll_wcschr]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], ebp
call esi
push 9
push ebp
mov dword [esp + 0x8c], eax
call esi
mov edx, dword [esp + 0x8c]
add esp, 0x10
mov ecx, eax
test edx, edx
je 0x49c489
test ecx, ecx
je 0x49c489
push ecx
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
mov esi, eax
jmp 0x49c496
xor eax, eax
cmp edx, ecx
setne al
mov dword [esp + 0x7c], eax
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0
push dword [edi + 0x14]
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
cmp dword [ebx + 0x24], 2
mov dword [esp + 0x7c], eax
jne 0x49c4c8
cmp dword [0x4fb9e0], 0
je 0x49c4c8
mov ecx, dword [ebx + 0x20]
call fcn.0048a760
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x49c53e
push ebp
push edi
call fcn.0049c550
test eax, eax
je 0x49c53e
mov ax, word [esp + 0x18]
mov word [edi + 0x1e], ax
test esi, esi
je 0x49c4eb
mov ecx, ebx
call fcn.0049ccb0
cmp word [ebp], 0
je 0x49c52f
mov eax, dword [edi + 0x24]
test eax, eax
je 0x49c52f
cmp byte [0x4fe85b], 0
mov ecx, 0xffffffff
mov dword [esp + 0x40], 0x30
cmovne ecx, eax
mov dword [esp + 0x44], 0x80
lea eax, [esp + 0x40]
mov dword [esp + 0x6c], ecx
push eax
push 0
push dword [edi + 0x14]
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x64
ret 8
Function at 0x4a0ea0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce67d
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 0x4a0fc8
nop dword [eax]
cmp edx, dword [ebp + 0x10]
jl 0x4a0f42
cmp dword [0x4fb9e4], 0
mov ecx, 0x42
mov eax, dword [0x4f90f4]
mov esi, 0x4fb8b0
mov edi, eax
xorps xmm0, xmm0
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x2c], 0
movlpd qword [0x4fe680], xmm0
je 0x4a0f3f
mov eax, dword [0x4fab50]
mov ecx, 0x4cfc40
test eax, eax
je 0x4a0f38
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
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.0049d2f0
add esp, 0x14
test eax, eax
je 0x4a0faa
cmp dword [ebp - 0x14], 0
jne 0x4a0f89
mov edx, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, dword [ebp - 0x18]
jl 0x4a0ef0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
jmp 0x4a0fcb
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 0x4a6c10
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x30008
call fcn.004cdac0
push esi
mov esi, dword [esp + 0x3001c]
push edi
mov edi, dword [esp + 0x30018]
test esi, esi
je 0x4a6c34
cmp word [esi], 0
jne 0x4a6c39
mov esi, str.ERROR
xor eax, eax
mov word [esp + 0x10010], ax
mov word [esp + 8], ax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push 0x8000
push dword [esp + 0x30020]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [esp + 0x3001c]
movzx ecx, word [edi]
cmp word [eax], 0
je 0x4a6cbd
lea edx, [esp + 0x10]
test cx, cx
push edx
push 0xffff
lea edx, [esp + 0x10018]
push edx
push esi
push eax
lea eax, [esp + 0x1c]
cmovne eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [0x4fd218]
lea eax, [esp + 0x10010]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004b5b70
pop edi
pop esi
add esp, 0x30008
ret 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10014]
push 0xffff
push eax
test cx, cx
je 0x4a6cdd
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
jmp 0x4a6ce3
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
test eax, eax
je 0x4a6c99
lea eax, [esp + 0x10010]
mov edx, 0xa
cmp word [eax], 0
jne 0x4a6d03
cmp word [eax + 2], 0
je 0x4a6c99
mov word [eax], dx
add eax, 2
jmp 0x4a6cf3