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

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x218]
push edi
movzx edi, word [esi + 4]
test edi, 0xffffff80
je 0x451e5f
xor eax, eax
jmp 0x451e6a
push 2
push edi
call fcn.004b15e4
add esp, 8
mov ecx, edi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, edi
add ecx, 0xffffffbf
cmp ecx, 0x12
ja case.0x451e87.66
movzx eax, byte [ecx + 0x451f94]
jmp dword [eax*4 + 0x451f80]
mov cx, word [esi + 0x12]
call fcn.0040ba80
cmp ax, 0x53
jne 0x451eb1
cmp word [esi + 0x14], 0
mov eax, 2
mov ecx, 0x17
cmovne eax, ecx
jmp 0x451f1b
mov eax, 0x26
jmp 0x451f1b
cmp word [esi + 0x12], 0
mov eax, 0x1a
mov ecx, 0x23
cmovne eax, ecx
jmp 0x451f1b
cmp word [esi + 0x12], 0
mov eax, 0x10
mov ecx, 0x19
cmovne eax, ecx
jmp 0x451f1b
mov cx, word [esi + 0xe]
call fcn.0040ba80
cmp ax, 0x4d
jne 0x451f03
cmp word [esi + 0x16], 0
mov eax, 0xb
mov ecx, 0x16
cmovne eax, ecx
jmp 0x451f1b
cmp word [esi + 0x12], 0
mov eax, 7
mov ecx, 0x18
cmovne eax, ecx
jmp 0x451f1b
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
pop edi
pop esi
test eax, eax
je 0x451f3a
xor eax, eax
mov word [esp + 4], ax
mov edx, dword [esp + 0x210]
test edx, edx
je 0x451f60
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 0x451f50
lea eax, [esp + 4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x451f67
sub eax, edx
sar eax, 1
add esp, 0x20c
ret

Function at 0x462410
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, cl
test bl, bl
jne 0x46241b
xor al, al
pop ebx
ret
sub edx, 1
je 0x462440
movzx eax, bl
push eax
sub edx, 1
je 0x462436
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 0x46244d
cmp bl, 3
jne 0x462455
mov al, bl
add al, 0x66
cmp al, 5
ja 0x46246c
cmp dword [0x4f7908], 0
movzx eax, bl
je 0x46249f
mov al, byte [eax + 0x4f82e8]
shr al, 7
pop ebx
ret
cmp dword [0x4f790c], 0
je 0x46249c
push 0
xor edx, edx
mov cl, bl
call fcn.00414ce0
add esp, 4
test al, al
je 0x46248e
mov cl, 1
call fcn.00414ad0
movzx eax, bl
pop ebx
mov al, byte [eax + 0x4f82e8]
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 0x462b60
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 0x462ba2
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x462ba2
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 0x462bbd
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
jmp 0x462bc3
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
mov ebx, eax
test ebx, ebx
jne 0x462ced
mov eax, dword [0x4eac14]
test eax, eax
je 0x462ced
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x462ced
cmp byte [esp + 0x228], 0
je 0x462c45
push 0x5c
push edi
call fcn.004ad15a
mov edx, eax
add esp, 8
test edx, edx
je 0x462ced
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x462c11
sub ecx, esi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [edx + 2]
push eax
push edi
call fcn.004ad510
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 word [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 0x462c9c
sub esi, 2
lea eax, [esp + 0x18]
push esi
push edi
push eax
call fcn.004b7458
add esp, 0xc
test eax, eax
jne 0x462c9c
cmp word [edi + esi*2], 0x5c
lea ecx, [edi + esi*2]
je 0x462cc2
mov ax, word [esp + 0x10]
inc ax
mov word [esp + 0x10], ax
cmp ax, 0x5a
jbe 0x462c60
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 fcn.004ad510
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 0x4660a0
Capabilities:
Delete file
Move file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x230
push esi
mov esi, ecx
test eax, eax
je 0x466170
cmp word [eax], 0
je 0x466170
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 0x4660e0
sub ecx, edx
sar ecx, 1
je 0x466100
cmp word [esp + ecx*2 + 0x26], 0x5c
jne 0x466100
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 0x466107
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.0043b920
pop esi
add esp, 0x230
ret 4
mov eax, dword [0x4f48cc]
test byte [eax + 0x100], 1
jne 0x46619e
mov ecx, dword [0x4f78d0]
push 1
push 0
push 0xffffffffffffffff
push 0x4e25ec
call fcn.00495fe0
pop esi
add esp, 0x230
ret 4
push 0x4cd2cc
push 0
push 0x4e25ec
call fcn.0043b880
pop esi
add esp, 0x230
ret 4
Function at 0x4661c0
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 [0x4f90f0]
push 0
call fcn.00495fe0
mov esi, dword [esp + 0x118]
test esi, esi
je 0x46633e
cmp word [esi], 0
je 0x46633e
push ebp
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebp, eax
test ebp, ebp
jne 0x46622d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f48cc]
push 1
mov dword [ecx + 0x30], eax
mov ecx, ebx
call fcn.0043b920
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
push edi
push ebp
call fcn.004af8fa
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 0x4662d5
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
push 0x4e3504
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4662d5
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.00491dd0
push edi
call fcn.004b113e
mov eax, dword [0x4f48cc]
add esp, 0x20
mov ecx, ebx
push 0
mov dword [eax + 0x30], 0
call fcn.0043b920
mov ecx, dword [0x4f90f0]
lea eax, [esp + 0x1c]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.00495fe0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f48cc]
push edi
mov dword [ecx + 0x30], eax
call fcn.004b113e
mov eax, dword [0x4f48cc]
add esp, 4
test byte [eax + 0x100], 1
jne 0x46631e
mov ecx, dword [0x4f78d0]
push 1
push 0
push 0xffffffffffffffff
push 0x4e25ec
call fcn.00495fe0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
push 0x4cd2cc
push 0
push 0x4e25ec
mov ecx, ebx
call fcn.0043b880
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
mov eax, dword [0x4f48cc]
mov ecx, ebx
push 1
mov dword [eax + 0x30], 0x57
call fcn.0043b920
pop esi
pop ebx
add esp, 0x10c
ret 4
Function at 0x4665e0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file

Disassembly:
sub esp, 0x230
test dl, dl
jne 0x466602
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4666ce
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 0x466620
sub ecx, edx
sar ecx, 1
je 0x466640
cmp word [esp + ecx*2 + 0x22], 0x5c
jne 0x466640
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 0x4666ce
test al, 0x10
je 0x4666ce
lea ecx, [esp + 0x24]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x466660
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 0x466c10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x258
push esi
mov esi, ecx
push 0x2a
push esi
call fcn.004ace17
add esp, 8
test eax, eax
jne 0x466c4d
push 0x3f
push esi
call fcn.004ace17
add esp, 8
test eax, eax
jne 0x466c4d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x466c5e
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 0x466c68
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 0x466c80
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 0x466cf3
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 0x466cf3
push eax
push esi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x466cf3
mov al, 1
pop esi
add esp, 0x14
ret
xor al, al
pop esi
add esp, 0x14
ret
Function at 0x466d00
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.00491c20
add esp, 0xc
test eax, eax
je 0x466d6f
mov ecx, ebx
call fcn.00410ac0
test al, al
je 0x466d62
push 0x10
push 0
push ebx
call fcn.004b2a02
add esp, 0xc
mov ebx, eax
jmp 0x466d71
push ebx
call fcn.004b2558
add esp, 4
mov ebx, eax
jmp 0x466d71
xor ebx, ebx
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x466e36
test ebx, ebx
je 0x466d93
cmp ebx, dword [esp + 0x1c]
je 0x466e4a
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 fcn.004b89a5
lea eax, [esp + 0x460]
add esp, 0x14
mov esi, eax
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x466dd0
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 0x466df0
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 fcn.004af78f
add esp, 8
test eax, eax
je 0x466e5e
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x466d85
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 0x479070
Capabilities:
Hide graphical window

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

Function at 0x479090
Capabilities:
Hide graphical window

Disassembly:
cmp dword [ecx + 0x24], 0
jne 0x4790ac
mov eax, dword [ecx + 4]
test eax, eax
je 0x4790c1
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 0x479100
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 0x4792f0
mov eax, dword [esi + 0x10]
xor edi, edi
test eax, eax
je 0x479186
xor ebx, ebx
mov eax, dword [esi + 0x18]
add eax, ebx
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x479145
cmp byte [eax + 4], 6
je 0x479145
push str.Submit
push eax
push ecx
mov ecx, esi
call fcn.004793d0
jmp 0x47917b
cmp dword [eax + 0x3c], 0
je 0x47917b
cmp byte [eax + 4], 6
je 0x47917b
mov ecx, dword [esi + 0xd4]
test ecx, ecx
jne 0x479171
push 0x4cd2cc
push str.No_object_to_invoke.
mov ecx, 0x4f9a70
call fcn.0043bff0
jmp 0x47917b
push ecx
push eax
push ecx
mov ecx, esi
call fcn.00479dc0
mov eax, dword [esi + 0x10]
inc edi
add ebx, 0x40
cmp edi, eax
jb 0x479123
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 0x4791c5
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 0x479218
mov edx, dword [esp + 0x10]
cmp edi, 1
jne 0x4791f9
cmp edx, edi
jle 0x4791f9
push 0xa
lea eax, [esp + 0x2c]
push eax
xor eax, eax
cmp ebx, 0xffffffff
cmovne eax, ebx
push eax
call fcn.004af6a6
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x34]
add esp, 0xc
push edi
push 0
push 0xffffffffffffffff
push eax
call fcn.00495fe0
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi + 0x10]
je 0x4792df
xor edi, edi
mov dword [esp + 0x14], 0
xor ecx, ecx
mov dword [esp + 0x10], ecx
jmp 0x47921c
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add edx, dword [esi + 0x18]
cmp byte [edx + 4], 6
jne 0x4792be
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 0x479294
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 0x4792be
push 1
push 0
push ecx
push 0x4e25ec
mov ecx, ebx
call fcn.00495fe0
jmp 0x4792be
mov edx, dword [esp + 0xc]
mov dword [esp + 0xc], edx
test ebx, ebx
je 0x4792be
push 1
push 0
push 0xffffffffffffffff
push 0x4cd350
mov ecx, ebx
call fcn.00495fe0
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 0x4791a6
cmp byte [ebp + 8], 0
je 0x4792f0
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 0x479300
Capabilities:
Get graphical window text

Disassembly:
mov eax, edx
cmp eax, 0x2af8
jae 0x4793b3
test ecx, ecx
je 0x4793b3
cmp dword [ecx + 4], 0
je 0x4793b3
cmp eax, dword [ecx + 0x10]
jae 0x4793b3
mov edx, dword [esp + 4]
shl eax, 6
add eax, dword [ecx + 0x18]
mov ecx, dword [eax + 8]
test edx, edx
je 0x47937e
test ecx, ecx
je 0x479372
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 0x479343
lea eax, [edx + 2]
pop esi
nop dword [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x479360
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 0x4793a0
mov eax, dword [ecx + 0x18]
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x479390
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 0x4793c0
xor ecx, ecx
mov word [eax], cx
xor eax, eax
ret
Function at 0x47cfc0
Capabilities:
Get keyboard layout

Disassembly:
push ebx
push esi
mov esi, ecx
xor bl, bl
movzx eax, word [esi]
test ax, ax
je 0x47cffc
mov edx, eax
movzx eax, dx
cmp eax, 0x21
je 0x47cfeb
cmp eax, 0x2b
je 0x47cfe7
cmp dx, 0x5e
jne 0x47cffc
mov al, 2
jmp 0x47cfed
mov al, 1
jmp 0x47cfed
mov al, 4
add esi, 2
or bl, al
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x47cfd0
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 0
xor edx, edx
mov ecx, esi
call fcn.004155c0
mov bh, al
add esp, 0xc
test bh, bh
jne 0x47d01f
pop esi
xor eax, eax
pop ebx
ret
xor edx, edx
mov ecx, esi
call fcn.004154d0
movzx edx, ax
test dx, dx
jne 0x47d03c
xor dl, dl
mov cl, bh
call fcn.00415b20
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 0x47ecc0
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 0x47ecdd
cmp eax, 9
jne 0x47ece2
add esi, 2
jmp 0x47ecd0
test ax, ax
je 0x47ee4c
cmp word [esi + 2], 0
lea ecx, [esi + 2]
jne 0x47ed06
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 fcn.004ace17
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x47edd7
lea edi, [ebp - 2]
cmp edi, esi
jbe 0x47ed44
nop dword [eax + eax]
movzx eax, word [edi]
cmp eax, 0x20
je 0x47ed3d
cmp eax, 9
jne 0x47ed44
sub edi, 2
cmp edi, esi
ja 0x47ed30
sub edi, esi
sar edi, 1
inc edi
push edi
push str.Ctrl
push esi
call fcn.004af905
add esp, 0xc
test eax, eax
jne 0x47ed61
or bl, 1
jmp 0x47ed93
push edi
push 0x4cf28c
push esi
call fcn.004af905
add esp, 0xc
test eax, eax
jne 0x47ed79
or bl, 4
jmp 0x47ed93
push edi
push str.Shift
push esi
call fcn.004af905
add esp, 0xc
test eax, eax
jne 0x47ee4c
or bl, 0x10
mov byte [esp + 0x13], bl
lea esi, [ebp + 2]
nop word [eax + eax]
movzx eax, word [esi]
cmp eax, 0x20
je 0x47edad
cmp eax, 9
jne 0x47edb2
add esi, 2
jmp 0x47eda0
test ax, ax
je 0x47ee4c
lea eax, [esi + 2]
push 0x2b
push eax
call fcn.004ace17
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x47ed24
mov edi, dword [esp + 0x14]
cmp word [esi + 2], 0
jne 0x47ee07
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.00415680
mov bl, byte [esp + 0x1b]
add esp, 8
jmp 0x47ee1f
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 0
xor edx, edx
mov ecx, esi
call fcn.004155c0
add esp, 0xc
movzx eax, al
mov word [edi + 2], ax
test bl, 1
je 0x47ee2e
or byte [edi], 8
test bl, 4
je 0x47ee36
or byte [edi], 0x10
test bl, 0x10
je 0x47ee3e
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 0x484c50
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6ce8
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 0x484d78
nop dword [eax]
cmp edx, dword [ebp + 0x10]
jl 0x484cf2
cmp dword [0x4f78e8], 0
mov ecx, 0x42
mov eax, dword [0x4f48cc]
mov esi, 0x4f77b8
mov edi, eax
xorps xmm0, xmm0
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x2c], 0
movlpd qword [0x4fa570], xmm0
je 0x484cef
mov eax, dword [0x4f62b4]
mov ecx, 0x4cd2cc
test eax, eax
je 0x484ce8
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 0x4cd344
call fcn.004818f0
add esp, 0x14
test eax, eax
je 0x484d5a
cmp dword [ebp - 0x14], 0
jne 0x484d39
mov edx, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, dword [ebp - 0x18]
jl 0x484ca0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
jmp 0x484d7b
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 0x489a80
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x30008
call fcn.004c5460
push esi
mov esi, dword [esp + 0x3001c]
test esi, esi
je 0x489a9c
cmp word [esi], 0
jne 0x489aa1
mov esi, str.ERROR
xor eax, eax
mov word [esp + 0x1000c], ax
mov word [esp + 4], ax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push 0x8000
push dword [esp + 0x3001c]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [esp + 0x30018]
mov ecx, dword [esp + 0x30014]
cmp word [eax], 0
movzx edx, word [ecx]
je 0x489b2d
push edi
lea edi, [esp + 0x10]
test dx, dx
push edi
push 0xffff
lea edi, [esp + 0x10018]
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 [0x4f90f0]
lea eax, [esp + 0x1000c]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.00495fe0
pop esi
add esp, 0x30008
ret 0x10
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x10010]
push 0xffff
push eax
test dx, dx
je 0x489b4d
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
jmp 0x489b53
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
test eax, eax
je 0x489b0a
lea eax, [esp + 0x1000c]
mov ecx, 0xa
cmp word [eax], 0
jne 0x489b73
cmp word [eax + 2], 0
je 0x489b0a
mov word [eax], cx
add eax, 2
jmp 0x489b63