joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450760
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, dword [0x4e73b0]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.0045c310
mov ebx, eax
test ebx, ebx
je 0x450790
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
jmp 0x450795
mov edi, 1
push 1
push 0
lea eax, [edi - 1]
mov ecx, esi
push eax
push 0
call fcn.004a05c0
cmp eax, 1
je 0x4507b3
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
push 0
push 1
mov ecx, esi
call fcn.00401670
test ebx, ebx
je 0x45083d
push edi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x4507d8
mov edi, dword [esi + 0xc]
jmp 0x4507da
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x4507f2
test byte [edi + 0x15], 8
je 0x4507ed
mov ecx, edi
call fcn.00401590
add edi, 0xc
jmp 0x4507f7
mov edi, 0x4e9cf8
lea eax, [ebx + ebx]
mov dword [edi], eax
cmp byte [esi + 0x17], 0
jne 0x450807
mov edi, dword [esi + 0xc]
jmp 0x450809
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x450821
test byte [edi + 0x15], 8
je 0x45081c
mov ecx, edi
call fcn.00401590
add edi, 0xc
jmp 0x450826
mov edi, 0x4e9cf8
cmp dword [edi], 2
jae 0x450871
push 0
push 1
mov ecx, esi
call fcn.00401670
xor ecx, ecx
mov word [eax], cx
jmp 0x450871
xor ecx, ecx
mov word [eax], cx
cmp byte [esi + 0x17], cl
jne 0x45084c
mov edi, dword [esi + 0xc]
jmp 0x45084e
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x450866
test byte [edi + 0x15], 8
je 0x450861
mov ecx, edi
call fcn.00401590
add edi, 0xc
jmp 0x45086b
mov edi, 0x4e9cf8
mov dword [edi], 0
cmp byte [esi + 0x17], 0
jne 0x45087a
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x45089a
cmp dword [0x4e88b4], 0
je 0x45089a
push ecx
mov ecx, 0x4e88a8
call fcn.00405f10
pop edi
pop esi
pop ebx
ret 0x10
and byte [esi + 0x15], 0x86
mov eax, 1
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x451670
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.004b7400
push esi
mov esi, dword [0x4e73b0]
lea eax, [esp + 4]
push edi
push 0x7fff
push eax
push dword [esp + 0x10014]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
push 1
cmp edi, 0x7fff
jb 0x451736
push 1
lea ecx, [edi - 1]
push ecx
push 0
mov ecx, esi
call fcn.004a05c0
test eax, eax
jne 0x4516c7
pop edi
pop esi
add esp, 0x10000
ret 4
push edi
push 0
push 1
mov ecx, esi
call fcn.00401670
push eax
push dword [esp + 0x10014]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x4516f4
push eax
push 1
mov ecx, esi
call fcn.00401670
xor ecx, ecx
mov word [eax], cx
cmp byte [esi + 0x17], 0
jne 0x4516fd
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x451722
cmp dword [0x4e88b4], 0
je 0x451722
push ecx
mov ecx, 0x4e88a8
call fcn.00405f10
pop edi
pop esi
add esp, 0x10000
ret 4
and byte [esi + 0x15], 0x86
mov eax, 1
pop edi
pop esi
add esp, 0x10000
ret 4
push 0
test edi, edi
lea eax, [esp + 0x10]
mov ecx, 0x4b9c10
cmove eax, ecx
mov ecx, esi
push edi
push eax
call fcn.004a05c0
pop edi
pop esi
add esp, 0x10000
ret 4
Function at 0x4542f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, ecx
push dword [esp + 0x14]
push str.__s_s
push 0x800
push esi
call fcn.0049c640
mov edi, eax
add esp, 0x14
lea ecx, [edi + 1]
cmp ecx, 0x800
jg 0x454337
lea ecx, [esi + 2]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x454337
mov dword [esi + edi*2], 0x22
mov al, 1
pop edi
pop esi
ret
pop edi
xor al, al
pop esi
ret

Function at 0x454340
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x241c
call fcn.004b7400
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov byte [esp + 0x17], dl
push edi
push dword [0x4e883c]
lea ebx, [esp + 0x430]
mov ebp, 0x4b9c10
push str.__s_s
mov eax, ebx
push 0x800
push eax
call fcn.0049c640
mov esi, eax
add esp, 0x14
lea ecx, [esi + 1]
cmp ecx, 0x800
jg 0x4543b2
lea eax, [esp + 0x42a]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4543b2
mov dword [esp + esi*2 + 0x428], 0x22
mov esi, dword [0x4e883c]
jmp 0x454444
xor esi, esi
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push str.InstallDir
mov edx, str.SOFTWAREAutoHotkey
call fcn.0049da50
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4543fb
test esi, esi
jne 0x4543fb
mov esi, pe_nt_image_headers32
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push str.InstallDir
mov edx, str.SOFTWAREAutoHotkey
call fcn.0049da50
mov edx, eax
add esp, 0x10
test edx, edx
je 0x4543d3
xor ecx, ecx
nop dword [eax]
movzx eax, word [esp + ecx + 0x18]
lea ecx, [ecx + 2]
mov word [esp + ecx + 0x21e], ax
test ax, ax
jne 0x454400
test edx, edx
je 0x4544de
lea eax, [esp + 0x220]
push eax
push edi
lea ecx, [esp + 0x430]
call fcn.004542f0
add esp, 8
test al, al
je 0x4544de
lea esi, [esp + 0x220]
cmp byte [esp + 0x17], 0
je 0x4544b4
push str.AutoHotkey.exe
push esi
push str.__s_s
lea eax, [esp + 0x1434]
push 0x800
push eax
call fcn.0049c640
mov edi, eax
add esp, 0x14
lea ecx, [edi + 1]
cmp ecx, 0x800
jg 0x45449f
lea eax, [esp + 0x142a]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45449f
mov dword [esp + edi*2 + 0x1428], 0x22
lea ebx, [esp + 0x1428]
jmp 0x4544ad
cmp esi, dword [0x4e883c]
jne 0x4544b4
mov ebx, dword [0x4e8838]
lea ebp, [esp + 0x428]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
push ebx
mov ecx, 0x4e7d50
call fcn.00448b80
test eax, eax
setne al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x241c
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x241c
ret
Function at 0x457e60
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
push ebx
push esi
push edi
mov edi, dword [0x4e73b0]
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, dword [ebp + 8]
xor edx, edx
push eax
push ecx
push 0
mov ecx, esi
call fcn.0041ba30
mov bl, al
add esp, 0xc
test bl, bl
jne 0x457efe
push 0
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.0046dfd0
add esp, 4
test eax, eax
jne 0x457ec4
push 1
push eax
push 0xffffffffffffffff
push 0x4b9c10
mov ecx, edi
call fcn.004a05c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
push 0
push ecx
mov ecx, eax
mov dword [esp + 0x20], 0
call fcn.0046e280
add esp, 8
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.0049feb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
movzx esi, word [eax]
test esi, 0xffffff80
je 0x457f10
xor eax, eax
jmp 0x457f1c
push 2
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
mov ecx, esi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, esi
cmp ecx, 0x50
je 0x457f3a
xor eax, eax
mov edx, 2
cmp ecx, 0x54
cmovne edx, eax
jmp 0x457f3f
mov edx, 1
mov cl, bl
call fcn.0046e1e0
push 1
test al, al
mov edx, 0x4d83b4
push 0
mov ecx, 0x4d83b0
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, edi
call fcn.004a05c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x457f70
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x238
push esi
push edi
push 1
push 0
push 0xffffffffffffffff
mov esi, ecx
mov ecx, dword [0x4e73b0]
push 0
call fcn.004a05c0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4580ec
cmp word [eax], 0
je 0x4580ec
push 0x104
push eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
lea ecx, [esp + 0x30]
xor eax, eax
lea edx, [ecx + 2]
mov word [esp + 0x238], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457fd0
sub ecx, edx
sar ecx, 1
cmp word [esp + ecx*2 + 0x2e], 0x5c
je 0x457ffd
lea eax, [ecx + 1]
cmp eax, 0x105
jae 0x4580ec
mov dword [esp + ecx*2 + 0x30], 0x5c
mov eax, dword [0x4ea200]
test al, 1
jne 0x45802c
push str.GetDiskFreeSpaceExW
or eax, 1
push str.kernel32
mov dword [0x4ea200], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ea204], eax
jmp 0x458031
mov eax, dword [0x4ea204]
test eax, eax
je 0x45807b
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x3c]
push ecx
call eax
test eax, eax
je 0x4580ec
cmp byte [ebp + 0xc], 0
je 0x45806a
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
shrd esi, edi, 0x14
shr edi, 0x14
jmp 0x4580ba
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
shrd esi, edi, 0x14
shr edi, 0x14
jmp 0x4580ba
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x4580ec
cmp byte [ebp + 0xc], 0
mov esi, dword [esp + 8]
cmovne esi, dword [esp + 0xc]
imul esi, dword [esp + 0x10]
imul esi, dword [esp + 0x14]
shr esi, 0x14
xor edi, edi
mov ecx, dword [0x4e5b90]
push 1
push 0
push 0xffffffffffffffff
push 0x4b9cc4
call fcn.004a05c0
mov ecx, dword [0x4e73b0]
push 0x18
push edi
push esi
call fcn.00401510
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4e30fc]
test byte [eax + 0x100], 1
jne 0x458118
mov ecx, dword [0x4e5b90]
push 1
push 0
push 0xffffffffffffffff
push 0x4cffc4
call fcn.004a05c0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x4b9c10
push 0
push 0x4cffc4
mov ecx, esi
call fcn.00447640
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x459f10
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x21c
push esi
push edi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x459f7e
cmp byte [0x4e8844], al
je 0x45a02e
mov eax, dword [0x4e30fc]
test byte [eax + 0x100], 1
jne 0x459f5e
mov ecx, dword [0x4e5b90]
push 1
push 0
push 0xffffffffffffffff
push 0x4cffc4
call fcn.004a05c0
pop edi
pop esi
add esp, 0x21c
ret
mov ecx, dword [0x4e8398]
push 0x4b9c10
push 0
push 0x4cffc4
call fcn.00447640
pop edi
pop esi
add esp, 0x21c
ret
cmp byte [0x4e8844], 0
lea eax, [esp + 0x18]
mov edi, 0x4e5980
cmove edi, eax
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x459ff6
cmp word [esi], 0
je 0x45a00f
cmp word [esi + 2], 0x3a
jne 0x45a00f
cmp word [esi + 4], 0
jne 0x45a00f
push edi
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x45a00f
push esi
lea eax, [esp + 0xc]
push 0x4d8848
push eax
call fcn.00405be0
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x45a00f
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x45a00f
push 0x103
push esi
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
xor eax, eax
mov word [edi + 0x206], ax
cmp byte [0x4e8844], 0
je 0x45a02e
mov ecx, dword [0x4e5b90]
push 1
push 0
push 0xffffffffffffffff
push 0x4b9cc4
call fcn.004a05c0
pop edi
pop esi
add esp, 0x21c
ret
Function at 0x45a670
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
test edi, edi
je 0x45a7af
cmp word [edi], 0
je 0x45a7af
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45a6ca
mov ecx, dword [0x4e30fc]
shr eax, 4
not al
and al, 1
movzx eax, al
mov dword [ecx + 0x30], 0xb7
mov ecx, ebx
push eax
call fcn.004476e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x5c
push edi
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov edx, eax
add esp, 8
mov dword [esp + 0xc], edx
cmp edx, edi
jbe 0x45a77c
mov ecx, edi
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45a6f0
sub ecx, esi
sar ecx, 1
cmp ecx, 0x104
jb 0x45a725
mov eax, dword [0x4e30fc]
mov ecx, ebx
push 1
mov dword [eax + 0x30], 0x6f
call fcn.004476e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, edx
lea eax, [esp + 0x10]
sub esi, edi
sar esi, 1
push esi
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
xor eax, eax
add esp, 0xc
mov word [esp + esi*2 + 0x10], ax
mov ecx, ebx
lea eax, [esp + 0x10]
push eax
call fcn.0045a670
mov eax, dword [esp + 0xc]
cmp word [eax + 2], 0
je 0x45a76e
mov ecx, dword [0x4e5b90]
push 0
push 1
call fcn.00401670
cmp word [eax], 0x31
jne 0x45a77c
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
sete byte [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e30fc]
push dword [esp + 0xc]
mov dword [ecx + 0x30], eax
mov ecx, ebx
call fcn.004476e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4e30fc]
push 1
mov dword [eax + 0x30], 0x57
call fcn.004476e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x45b2f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
push edi
test esi, esi
je 0x45b341
push 0
push 1
mov ecx, esi
call fcn.00401670
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x45b31b
mov edi, dword [esi + 0xc]
jmp 0x45b31d
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x45b338
test byte [edi + 0x15], 8
je 0x45b330
mov ecx, edi
call fcn.00401590
mov ebp, dword [edi + 0xc]
add edi, 0xc
jmp 0x45b378
mov edi, 0x4e9cf8
mov ebp, dword [edi]
jmp 0x45b378
lea eax, [esp + 0x10]
xor ecx, ecx
push eax
lea edx, [esp + 0x24]
call fcn.0049fff0
add esp, 4
test eax, eax
jne 0x45b370
mov eax, dword [0x4e30fc]
pop edi
pop esi
pop ebp
mov dword [eax + 0x30], 0
xor eax, eax
pop ebx
add esp, 8
ret 8
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x10]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x20], 1
cmp edi, 0xffffffff
je 0x45b3c8
xor eax, eax
mov dword [esp + 0x20], eax
test ebx, ebx
je 0x45b3bd
push eax
lea eax, [esp + 0x24]
push eax
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x20]
xor ecx, ecx
cmp eax, ebp
setne cl
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e30fc]
mov dword [ecx + 0x30], eax
cmp edi, 0xffffffff
je 0x45b3e3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x45b3f1
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
call fcn.004476e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8

Function at 0x45b420
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, ecx
push esi
push edi
mov edi, ebx
test ebx, ebx
je 0x45b471
movzx eax, word [ebx]
test ax, ax
je 0x45b4ae
mov esi, eax
nop word [eax + eax]
mov eax, 0x4d8990
mov edx, 0x3f
nop word [eax + eax]
cmp si, dx
je 0x45b4ae
movzx ecx, word [eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x45b450
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x45b440
cmp word [ebx], 0
je 0x45b4ae
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
sete byte [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e30fc]
push dword [esp + 0x14]
mov dword [ecx + 0x30], eax
mov ecx, ebp
call fcn.004476e0
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 0
push 0
push 0x45b410
push 0
push 1
push ebx
mov ecx, ebp
call fcn.0045b9f0
mov ecx, dword [0x4e30fc]
xor eax, eax
pop edi
pop esi
pop ebp
cmp dword [ecx + 0x104], eax
pop ebx
sete al
ret 4
Function at 0x45b770
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x100
push esi
push 1
push 0
push 0xffffffffffffffff
mov esi, ecx
mov ecx, dword [0x4e73b0]
push 0
call fcn.004a05c0
mov eax, dword [esp + 0x108]
test eax, eax
je 0x45b80c
cmp word [eax], 0
je 0x45b80c
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45b7cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e30fc]
push 1
mov dword [ecx + 0x30], eax
mov ecx, esi
call fcn.004476e0
pop edi
pop esi
add esp, 0x100
ret 4
mov eax, dword [0x4e30fc]
mov ecx, esi
push 0
mov dword [eax + 0x30], 0
call fcn.004476e0
mov edx, edi
lea ecx, [esp + 8]
call fcn.0049d670
mov ecx, dword [0x4e73b0]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004a05c0
pop edi
pop esi
add esp, 0x100
ret 4
mov eax, dword [0x4e30fc]
mov ecx, esi
push 1
mov dword [eax + 0x30], 0x57
call fcn.004476e0
pop esi
add esp, 0x100
ret 4

Function at 0x45b830
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
or ebx, 0xffffffff
xor edx, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], ebx
movzx eax, word [edi]
mov dword [esp + 0x1c], edx
test ax, ax
je 0x45b92c
mov ecx, eax
nop word [eax + eax]
movzx esi, cx
test esi, 0xffffff80
je 0x45b87f
xor eax, eax
jmp 0x45b893
push 2
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
mov edx, dword [esp + 0x24]
add esp, 8
mov ebx, dword [esp + 0x18]
mov ecx, esi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, esi
add ecx, 0xffffffd5
cmp ecx, 0x33
ja case.0x45b8ac.44
movzx eax, byte [ecx + 0x45b978]
jmp dword [eax*4 + 0x45b954]
movzx eax, word [edi]
mov dword [esp + 0x10], eax
jmp case.0x45b8ac.44
mov ecx, 1
jmp 0x45b8eb
mov ecx, 0x20
jmp 0x45b8eb
mov ecx, 4
jmp 0x45b8eb
mov ecx, 2
jmp 0x45b8eb
mov ecx, 0x80
jmp 0x45b8eb
mov ecx, 0x1000
jmp 0x45b8eb
mov ecx, pe_nt_image_headers32
mov eax, dword [esp + 0x10]
sub eax, 0x2b
je 0x45b90a
sub eax, 2
je 0x45b902
sub eax, 0x31
jne case.0x45b8ac.44
xor edx, ecx
jmp 0x45b916
not ecx
and ebx, ecx
and edx, ecx
jmp 0x45b912
mov eax, ecx
not eax
and ebx, eax
or edx, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edx
movzx eax, word [edi + 2]
add edi, 2
mov ecx, eax
test ax, ax
jne 0x45b870
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0
push eax
push 0x45b9b0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0045b9f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x45c0c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
push ebx
push esi
push edi
push 1
push 0
mov esi, ecx
mov ecx, dword [0x4e73b0]
push 0xffffffffffffffff
push 0
mov dword [esp + 0x2c], esi
call fcn.004a05c0
mov edi, dword [ebp + 8]
test edi, edi
je 0x45c1f8
cmp word [edi], 0
je 0x45c1f8
push 0
push 0
push 3
push 0
push 7
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45c137
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x45c182
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x45c169
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e30fc]
push 1
mov dword [ecx + 0x30], eax
mov ecx, esi
call fcn.004476e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x3c]
xor eax, eax
or eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebp + 0xc]
mov cx, word [eax]
call fcn.00413080
movzx eax, ax
sub eax, 0x4b
je 0x45c1a2
sub eax, 2
jne 0x45c1be
push eax
push 0x100000
jmp 0x45c1a9
push 0
push 0x400
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.004b7310
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov eax, dword [0x4e30fc]
mov ecx, dword [esp + 0x1c]
push 0
mov dword [eax + 0x30], 0
call fcn.004476e0
mov ecx, dword [0x4e73b0]
push 0x18
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.00401510
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4e30fc]
mov ecx, esi
push 1
mov dword [eax + 0x30], 0x57
call fcn.004476e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x45dbc0
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 0x45dbdf
xor eax, eax
jmp 0x45dbeb
push 2
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
mov ecx, edi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, edi
add ecx, 0xffffffbf
cmp ecx, 0x12
ja case.0x45dc08.66
movzx eax, byte [ecx + 0x45dd14]
jmp dword [eax*4 + 0x45dd00]
mov cx, word [esi + 0x12]
call fcn.00413080
cmp ax, 0x53
jne 0x45dc32
cmp word [esi + 0x14], 0
mov eax, 2
mov ecx, 0x17
cmovne eax, ecx
jmp 0x45dc9c
mov eax, 0x26
jmp 0x45dc9c
cmp word [esi + 0x12], 0
mov eax, 0x1a
mov ecx, 0x23
cmovne eax, ecx
jmp 0x45dc9c
cmp word [esi + 0x12], 0
mov eax, 0x10
mov ecx, 0x19
cmovne eax, ecx
jmp 0x45dc9c
mov cx, word [esi + 0xe]
call fcn.00413080
cmp ax, 0x4d
jne 0x45dc84
cmp word [esi + 0x16], 0
mov eax, 0xb
mov ecx, 0x16
cmovne eax, ecx
jmp 0x45dc9c
cmp word [esi + 0x12], 0
mov eax, 7
mov ecx, 0x18
cmovne eax, ecx
jmp 0x45dc9c
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 0x45dcbb
xor eax, eax
mov word [esp + 4], ax
mov edx, dword [esp + 0x210]
test edx, edx
je 0x45dce0
lea ecx, [esp + 4]
mov eax, ecx
sub edx, eax
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x45dcd0
lea eax, [esp + 4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45dce7
sub eax, edx
sar eax, 1
add esp, 0x20c
ret

Function at 0x45dd30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
lea eax, [esp]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x45dd52
xor eax, eax
mov word [esp], ax
lea edx, [esp]
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x45dd60
sub edx, ecx
sar edx, 1
jne 0x45dd75
xor edx, edx
jmp 0x45dd85
cmp word [esp + edx*2 - 2], 0x5c
jne 0x45dd85
xor eax, eax
mov word [esp + edx*2 - 2], ax
dec edx
push esi
mov esi, dword [esp + 0x210]
test esi, esi
je 0x45ddb0
lea eax, [esp + 4]
mov ecx, eax
sub esi, ecx
nop dword [eax]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [esi + eax - 2], cx
test cx, cx
jne 0x45dda0
mov eax, edx
pop esi
add esp, 0x208
ret
Function at 0x46e1e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, cl
test bl, bl
jne 0x46e1eb
xor al, al
pop ebx
ret
sub edx, 1
je 0x46e210
movzx eax, bl
push eax
sub edx, 1
je 0x46e206
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 0x46e21d
cmp bl, 3
jne 0x46e225
mov al, bl
add al, 0x66
cmp al, 5
ja 0x46e23c
cmp dword [0x4e5bc4], 0
movzx eax, bl
je 0x46e26f
mov al, byte [eax + 0x4e6580]
shr al, 7
pop ebx
ret
cmp dword [0x4e5bc8], 0
je 0x46e26c
push 0
xor edx, edx
mov cl, bl
call fcn.0041b180
add esp, 4
test al, al
je 0x46e25e
mov cl, 1
call fcn.0041af90
movzx eax, bl
pop ebx
mov al, byte [eax + 0x4e6580]
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