joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f610
Capabilities:
Get disk information

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_OpenProcess]
push ebp
push esi
push edi
mov esi, ecx
push esi
push 0
mov edi, eax
push 0x410
mov byte [edi], 0
call ebx
mov ebp, eax
test ebp, ebp
jne 0x44f651
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x44f651
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
cmp byte [esp + 0x11c], 0
push 0x104
push edi
push 0
push ebp
je 0x44f66c
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
jmp 0x44f672
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test byte [0x4ae358], 1
mov ebx, eax
jne 0x44f6a2
or dword [0x4ae358], 1
push 0x4a0500
push 0x4a051c
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x4ae354], eax
jmp 0x44f6a7
mov eax, dword [0x4ae354]
test ebx, ebx
jne 0x44f7a4
test eax, eax
je 0x44f7a4
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x44f7a4
cmp byte [esp + 0x11c], 0
je 0x44f719
push 0x5c
push edi
call fcn.004892fd
add esp, 8
test eax, eax
je 0x44f7a4
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x44f6f0
sub ecx, esi
push ecx
inc eax
push eax
push edi
call fcn.00487a80
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, 0x108
ret
mov word [esp + 0x11], 0x3a
mov byte [esp + 0x10], 0x41
push 0x104
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.DLL_QueryDosDeviceA]
mov esi, eax
cmp esi, 2
jbe 0x44f75d
sub esi, 2
push esi
lea edx, [esp + 0x18]
push edi
push edx
call fcn.00489239
add esp, 0xc
test eax, eax
jne 0x44f75d
cmp byte [esi + edi], 0x5c
je 0x44f77f
mov al, byte [esp + 0x10]
inc al
mov byte [esp + 0x10], al
cmp al, 0x5a
jle 0x44f725
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
mov al, byte [esp + 0x10]
mov cl, byte [esp + 0x11]
sub ebx, esi
lea edx, [ebx + 1]
push edx
add esi, edi
mov byte [edi], al
mov byte [edi + 1], cl
push esi
add edi, 2
push edi
call fcn.00487a80
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, 0x108
ret
Function at 0x452910
Capabilities:
Delete file

Disassembly:
sub esp, 0x12c
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x4529c4
cmp byte [eax], bl
je 0x4529c4
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameA]
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x452946
sub eax, edx
cmp eax, ebx
je 0x452960
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x452960
mov byte [eax], bl
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x452967
sub eax, edx
mov byte [esp + eax + 0x29], bl
lea edx, [esp + 4]
lea eax, [esp + 0x28]
mov ecx, 0x4054
push edx
mov dword [esp + 0x1e], ebx
mov dword [esp + 0x22], ebx
mov dword [esp + 0x1a], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 3
mov word [esp + 0x18], cx
call dword [sym.imp.SHELL32.DLL_SHFileOperationA]
test eax, eax
setne al
movzx ecx, al
push ecx
push esi
call fcn.0042ee10
pop ebx
add esp, 0x12c
ret
mov edx, dword [0x4a8978]
test byte [edx + 0xe0], 1
jne 0x4529f0
mov eax, dword [0x4acad0]
push 1
push ebx
push 0xffffffffffffffff
push 0x49bec0
push eax
call fcn.00476c10
pop ebx
add esp, 0x12c
ret
push 0x49a8ad
push ebx
push 0x49bec0
mov ecx, esi
call fcn.0042ed70
pop ebx
add esp, 0x12c
ret
Function at 0x452a10
Capabilities:
Get file version info

Disassembly:
mov ecx, dword [0x4ac218]
sub esp, 0x8c
push ebp
mov ebp, dword [esp + 0x94]
push edi
mov edi, eax
call fcn.00414350
test edi, edi
je 0x452b88
cmp byte [edi], 0
je 0x452b88
push esi
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.VERSION.DLL_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x452aa9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [0x4a8978]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x452a8a
mov ecx, dword [0x4acad0]
push 1
push esi
push 0xffffffffffffffff
push 0x49bec0
push ecx
call fcn.00476c10
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
push 0x49a8ad
push 0
push 0x49bec0
mov ecx, ebp
call fcn.0042ed70
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
push ebx
push esi
call fcn.00487059
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push edi
call dword [sym.imp.VERSION.DLL_GetFileVersionInfoA]
test eax, eax
je 0x452b5d
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push 0x49cdec
push ebx
call dword [sym.imp.VERSION.DLL_VerQueryValueA]
test eax, eax
je 0x452b5d
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
shr ecx, 0x10
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push 0x4a0748
mov esi, 0x80
lea edi, [esp + 0x30]
call fcn.00473d20
push ebx
call fcn.00486eb8
mov eax, dword [0x4acad0]
mov edx, dword [0x4a8978]
add esp, 0x18
push 1
push 0
push 0xffffffffffffffff
push 0x49a8c8
push eax
mov dword [edx + 0x30], 0
call fcn.00476c10
mov edx, dword [0x4ac218]
push 1
push 0
push 0xffffffffffffffff
mov ecx, edi
push ecx
push edx
call fcn.00476c10
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [0x4a8978]
push ebx
mov dword [ecx + 0x30], eax
call fcn.00486eb8
add esp, 4
push ebp
call fcn.00431650
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
mov eax, dword [0x4a8978]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x452bbf
mov edx, dword [0x4acad0]
push 1
push 0
push 0xffffffffffffffff
push 0x49bec0
push edx
call fcn.00476c10
pop edi
pop ebp
add esp, 0x8c
ret 4
push 0x49a8ad
push 0
push 0x49bec0
mov ecx, ebp
call fcn.0042ed70
pop edi
pop ebp
add esp, 0x8c
ret 4
Function at 0x452e70
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
sub esp, 0x12c
push ebx
xor ebx, ebx
cmp byte [esp + 0x134], bl
jne 0x452e96
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
test eax, eax
setne al
pop ebx
add esp, 0x12c
ret
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameA]
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x452eb3
sub eax, edx
cmp eax, ebx
je 0x452ecd
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x452ecd
mov byte [eax], bl
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x452ee1
test al, 0x10
jne 0x452eeb
xor al, al
pop ebx
add esp, 0x12c
ret
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x452ef2
sub eax, edx
mov byte [esp + eax + 0x29], bl
lea eax, [esp + 4]
lea ecx, [esp + 0x28]
mov edx, 0x614
push eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1e], ebx
mov dword [esp + 0x22], ebx
mov dword [esp + 0x1a], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 3
mov word [esp + 0x18], dx
call dword [sym.imp.SHELL32.DLL_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
pop ebx
add esp, 0x12c
ret
Function at 0x453400
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x144
push 0x2a
push esi
call fcn.00487e91
add esp, 8
test eax, eax
jne 0x453438
push 0x3f
push esi
call fcn.00487e91
add esp, 8
test eax, eax
jne 0x453438
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
add esp, 0x144
ret
lea eax, [esp]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x453451
xor al, al
add esp, 0x144
ret
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, 1
add esp, 0x144
ret

Function at 0x453470
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x18
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.DLL_OpenProcessToken]
test eax, eax
jne 0x453491
xor al, al
add esp, 0x18
ret
lea ecx, [esp + 0xc]
push ecx
push 0x4a075c
push 0
call dword [sym.imp.ADVAPI32.DLL_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.DLL_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x45348b
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.DLL_ExitWindowsEx]
test eax, eax
setne al
add esp, 0x18
ret

Function at 0x4534f0
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
mov esi, eax
lea eax, [esp + 4]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.DLL_SendMessageTimeoutA]
test eax, eax
jne 0x453541
push eax
push esi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x453541
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x453541
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop ecx
ret
Function at 0x453670
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x550
push ebp
push esi
push edi
push 0
push 2
mov dword [esp + 0x18], 0x128
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.DLL_Process32First]
push 0
push 0
push 1
push 0
mov eax, ebx
call fcn.00473bb0
add esp, 0x10
test eax, eax
je 0x4536dc
mov eax, ebx
call fcn.0040e3e0
test al, al
je 0x4536cf
push 0x10
push 0
push ebx
call fcn.00488efe
add esp, 0xc
mov ebp, eax
jmp 0x4536de
push ebx
call fcn.00488431
add esp, 4
mov ebp, eax
jmp 0x4536de
xor ebp, ebp
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_Process32Next]
test eax, eax
je 0x453790
test ebp, ebp
je 0x453700
cmp ebp, dword [esp + 0x18]
je 0x4537a3
lea edx, [esp + 0x240]
push edx
lea eax, [esp + 0x13c]
push eax
lea ecx, [esp + 0x458]
push ecx
lea edx, [esp + 0x354]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.00489df2
lea eax, [esp + 0x254]
add esp, 0x14
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x453736
lea edi, [esp + 0x138]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x453747
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x138]
push ebx
push ecx
call fcn.00486ea1
add esp, 8
test eax, eax
je 0x4537b6
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_Process32Next]
mov esi, dword [esp + 0xc]
test eax, eax
jne 0x4536f2
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x550
ret
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, ebp
pop edi
pop esi
pop ebp
add esp, 0x550
ret
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x550
ret
Function at 0x464ba0
Capabilities:
Hide graphical window

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

Function at 0x464bc0
Capabilities:
Hide graphical window

Disassembly:
cmp dword [eax + 0x24], 0
mov eax, dword [eax + 4]
jne 0x464bdc
test eax, eax
je 0x464bef
push 0
push eax
call dword [sym.imp.USER32.DLL_ShowWindow]
mov eax, 1
ret
push 0
push 0x2af80006
push 0x414
push eax
call dword [sym.imp.USER32.DLL_PostMessageA]
mov eax, 1
ret

Function at 0x464c30
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x34
cmp dword [edi + 4], 0
push ebx
push ebp
push esi
je 0x464d86
xor ebp, ebp
cmp dword [edi + 0x10], ebp
jbe 0x464c76
xor esi, esi
mov eax, dword [edi + 0x18]
cmp dword [eax + esi + 8], 0
je 0x464c6d
cmp byte [eax + esi + 4], 6
je 0x464c6d
mov edx, dword [esi + eax + 8]
lea ecx, [esi + eax]
push edx
push edi
mov eax, 0x4a1d50
call fcn.00464e30
inc ebp
add esi, 0x14
cmp ebp, dword [edi + 0x10]
jb 0x464c49
xor esi, esi
xor ebx, ebx
xor ebp, ebp
cmp esi, dword [edi + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
je 0x464cab
mov eax, dword [edi + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + ecx]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.DLL_GetWindowLongA]
test eax, 0x20000
je 0x464cf4
cmp dword [esp + 0x10], 1
jne 0x464ce3
cmp ebx, 1
jle 0x464ce3
cmp ebp, 0xffffffff
jne 0x464cbe
xor ebp, ebp
push 0xa
lea eax, [esp + 0x24]
push eax
push ebp
call fcn.00486b32
mov edx, dword [esp + 0x24]
add esp, 0xc
push 1
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.00476c10
cmp esi, dword [edi + 0x10]
je 0x464d73
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x10], ebx
mov eax, dword [edi + 0x18]
mov ecx, dword [esp + 0x14]
cmp byte [eax + ecx + 4], 6
jne 0x464d5c
mov esi, dword [eax + ecx + 8]
inc ebx
test esi, esi
je 0x464d13
inc dword [esp + 0x10]
mov dword [esp + 0x18], esi
mov edx, dword [eax + ecx]
push 0
push 0
push 0xf0
push edx
call dword [sym.imp.USER32.DLL_SendMessageA]
cmp eax, 1
jne 0x464d47
test ebp, ebp
je 0x464d34
or ebp, 0xffffffff
jmp 0x464d36
mov ebp, ebx
test esi, esi
je 0x464d5c
push 1
push 0
push 0xffffffffffffffff
push 0x49bec0
jmp 0x464d56
test esi, esi
je 0x464d5c
push 1
push 0
push 0xffffffffffffffff
push 0x49a8c8
push esi
call fcn.00476c10
mov esi, dword [esp + 0x1c]
add dword [esp + 0x14], 0x14
inc esi
mov dword [esp + 0x1c], esi
cmp esi, dword [edi + 0x10]
jbe 0x464c8f
cmp byte [esp + 0x44], 0
je 0x464d86
mov eax, dword [edi + 4]
push 0
push eax
call dword [sym.imp.USER32.DLL_ShowWindow]
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x34
ret 4
Function at 0x467790
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, eax
mov al, byte [esi]
xor cl, cl
mov byte [esp + 0xb], cl
test al, al
je 0x4677c8
cmp al, 0x21
je 0x4677b9
cmp al, 0x2b
je 0x4677b4
cmp al, 0x5e
jne 0x4677c4
or cl, 2
jmp 0x4677bc
or cl, 1
jmp 0x4677bc
or cl, 4
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4677a3
mov byte [esp + 0xb], cl
push 0
call dword [sym.imp.USER32.DLL_GetKeyboardLayout]
push eax
push 0
push 0
mov eax, esi
call fcn.004132e0
mov bl, al
add esp, 0xc
mov byte [esp + 0xc], bl
test bl, bl
jne 0x4677f1
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, esi
call fcn.00413230
movzx eax, ax
test ax, ax
jne 0x467816
mov eax, dword [esp + 0xc]
push eax
xor bl, bl
call fcn.00413840
mov bl, byte [esp + 0x10]
add esp, 4
movzx eax, ax
test eax, 0x100
je 0x467822
or byte [esp + 0xb], 8
movzx eax, byte [esp + 0xb]
movzx ecx, bl
shl eax, 8
pop esi
or eax, ecx
pop ebx
add esp, 8
ret
Function at 0x468de0
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x10
movzx eax, byte [esi + 4]
push ebp
mov ebp, dword [esp + 0x18]
add eax, 0xfffffff7
push edi
mov dword [esp + 8], CreateStatusWindowA
cmp eax, 8
ja case.0x468e01.12
jmp dword [eax*4 + 0x468f00]
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.DLL_SendMessageA]
push 0
push 0
push 0x19f
push eax
call edi
cmp eax, 0xffffffff
je 0x468eae
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push eax
push 0x198
push edx
call edi
jmp 0x468eae
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.DLL_SendMessageA]
push 1
push 0xffffffffffffffff
push 0x100c
push eax
call edi
cmp eax, 0xffffffff
je 0x468eae
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push eax
push 0x100e
push edx
mov dword [esp + 0x18], 2
call edi
jmp 0x468eae
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.DLL_SendMessageA]
push 0
push 9
push 0x110a
push eax
call edi
test eax, eax
je 0x468eae
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push 1
push 0x1104
push edx
mov dword [esp + 0x18], eax
call edi
jmp 0x468eae
mov ecx, dword [esi]
lea eax, [esp + 8]
push eax
push 0
push 0x419
push ecx
call dword [sym.imp.USER32.DLL_SendMessageA]
cmp dword [esp + 8], 0x80000000
jne 0x468ec8
mov eax, dword [esi]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.USER32.DLL_GetWindowRect]
jmp 0x468eda
mov edx, dword [esi]
push 2
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
call dword [sym.imp.USER32.DLL_MapWindowPoints]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [ebp], eax
mov eax, dword [esp + 0x14]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax + ecx + 2]
pop edi
mov dword [ebp + 4], ecx
pop ebp
add esp, 0x10
ret 4
Function at 0x469480
Capabilities:
Get keyboard layout

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
lea esp, [esp]
mov al, byte [esi]
cmp al, 0x20
je 0x46949a
cmp al, 9
jne 0x46949d
inc esi
jmp 0x469490
mov cl, byte [esi]
test cl, cl
jne 0x4694a9
pop esi
xor al, al
pop ebp
pop ecx
ret
cmp byte [esi + 1], 0
lea eax, [esi + 1]
jne 0x4694c3
movzx eax, cl
mov word [ebp + 2], ax
pop esi
mov byte [ebp], 0
mov al, 1
pop ebp
pop ecx
ret
push ebx
push edi
push 0x2b
push eax
mov byte [ebp], 1
mov byte [esp + 0x1b], 0
call fcn.00487e91
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x46957f
lea eax, [ebx - 1]
cmp eax, esi
jbe 0x469501
lea ebx, [ebx]
mov cl, byte [eax]
cmp cl, 0x20
je 0x4694fc
cmp cl, 9
jne 0x469501
dec eax
cmp eax, esi
ja 0x4694f0
sub eax, esi
lea edi, [eax + 1]
push edi
push 0x49ad20
push esi
call fcn.00487920
add esp, 0xc
test eax, eax
jne 0x469520
or byte [esp + 0x13], 1
jmp 0x469552
push edi
push 0x49ad1c
push esi
call fcn.00487920
add esp, 0xc
test eax, eax
jne 0x46953a
or byte [esp + 0x13], 4
jmp 0x469552
push edi
push 0x49ad14
push esi
call fcn.00487920
add esp, 0xc
test eax, eax
jne 0x4695b1
or byte [esp + 0x13], 0x10
lea esi, [ebx + 1]
mov al, byte [esi]
cmp al, 0x20
je 0x46955f
cmp al, 9
jne 0x469562
inc esi
jmp 0x469555
cmp byte [esi], 0
je 0x4695b1
lea ecx, [esi + 1]
push 0x2b
push ecx
call fcn.00487e91
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4694e3
cmp byte [esi + 1], 0
jne 0x4695b9
push 1
push 0
call dword [sym.imp.USER32.DLL_GetKeyboardLayout]
movzx edx, byte [esi]
push eax
push edx
call dword [sym.imp.USER32.DLL_CharLowerA]
lea edi, [esp + 0x1b]
mov bl, al
call fcn.004133c0
movzx eax, al
add esp, 8
mov word [ebp + 2], ax
jmp 0x4695d7
pop edi
pop ebx
pop esi
xor al, al
pop ebp
pop ecx
ret
push 0
call dword [sym.imp.USER32.DLL_GetKeyboardLayout]
push eax
push 0
push 0
mov eax, esi
call fcn.004132e0
movzx ecx, al
add esp, 0xc
mov word [ebp + 2], cx
mov al, byte [esp + 0x13]
test al, 1
je 0x4695e3
or byte [ebp], 8
test al, 4
je 0x4695eb
or byte [ebp], 0x10
test al, 0x10
je 0x4695f3
or byte [ebp], 4
cmp word [ebp + 2], 0
pop edi
pop ebx
pop esi
setne al
pop ebp
pop ecx
ret
Function at 0x46f170
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x497718
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov ecx, dword [ebx + 8]
push ebp
push esi
mov esi, dword [ebx + 4]
push edi
xor ebp, ebp
mov edx, ebx
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [ebx + 4], edi
mov dword [esp + 0x2c], ebp
cmp ecx, ebp
jle 0x46f2a4
mov edi, edi
cmp eax, dword [esp + 0x3c]
jl 0x46f20f
mov eax, dword [0x4a8978]
mov ecx, 0x3a
mov esi, 0x4aaf90
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x2c], ebp
mov dword [0x4ad888], ebp
mov dword [0x4ad88c], ebp
cmp dword [0x4ac470], ebp
je 0x46f20b
mov eax, dword [0x4a9aac]
cmp eax, ebp
je 0x46f1ff
mov eax, dword [eax]
cmp eax, ebp
jne 0x46f204
mov eax, 0x49a8ad
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx]
lea eax, [eax + eax*2]
mov ecx, dword [ecx + eax*4]
mov eax, dword [esp + 0x34]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x3c]
push eax
push 0x49a8a8
push ecx
xor eax, eax
call fcn.0046c120
add esp, 0x10
test eax, eax
je 0x46f25f
cmp dword [esp + 0xc], ebp
jne 0x46f280
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x1c]
jl 0x46f1c0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [edx + 4], ecx
jmp 0x46f2a7
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
xor eax, eax
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, 3
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret 0xc
mov dword [edx + 4], esi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebp
add esp, 0x24
ret 0xc
Function at 0x470580
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1010c
call fcn.00493660
push ebp
mov ebp, dword [esp + 0x10118]
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x1011c]
test esi, esi
je 0x4705a6
cmp byte [esi], 0
jne 0x4705ab
mov esi, 0x49e738
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x104
push edx
mov byte [esp + 0x128], 0
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameA]
cmp byte [ebp], 0
je 0x47061e
cmp byte [edi], 0
jne 0x4705dd
lea edi, [esp + 0xf]
lea eax, [esp + 0x14]
push eax
push 0xffff
lea ecx, [esp + 0x120]
push ecx
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
mov ecx, dword [0x4ac218]
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x124]
push eax
push ecx
call fcn.00476c10
pop edi
pop esi
pop ebp
add esp, 0x1010c
ret 8
cmp byte [edi], 0
je 0x47063e
lea edx, [esp + 0x14]
push edx
push 0xffff
lea eax, [esp + 0x120]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileSectionA]
jmp 0x470656
lea ecx, [esp + 0x14]
push ecx
push 0xffff
lea edx, [esp + 0x120]
push edx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileSectionNamesA]
test eax, eax
je 0x4705f8
lea eax, [esp + 0x118]
cmp byte [eax], 0
jne 0x47066f
cmp byte [eax + 1], 0
je 0x4705f8
mov byte [eax], 0xa
inc eax
jmp 0x470661