joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455310
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov edi, eax
mov eax, dword [0x4eacbc]
push ebx
push eax
push str.__s_s
mov esi, 0x800
call fcn.0049e5c0
mov esi, eax
lea ecx, [esi + 1]
add esp, 0xc
cmp ecx, 0x800
jg 0x455367
lea edx, [edi + 2]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x455367
mov edx, dword [esp + 0x14]
mov dword [edi + esi*2], 0x22
mov ecx, dword [0x4eacbc]
pop edi
pop esi
mov dword [edx], ecx
mov al, 1
pop ebp
ret
push ebp
call fcn.00455940
add esp, 4
test eax, eax
je 0x4553b7
push ebx
push ebp
push str.__s_s
mov esi, 0x800
call fcn.0049e5c0
mov esi, eax
lea edx, [esi + 1]
add esp, 0xc
cmp edx, 0x800
jg 0x4553b7
lea eax, [edi + 2]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4553b7
mov eax, dword [esp + 0x14]
mov dword [edi + esi*2], 0x22
pop edi
mov dword [eax], ebp
pop esi
mov al, 1
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebp
ret

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

Disassembly:
mov eax, 0x2210
call fcn.004b9d80
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
lea ebp, [esp + 0x1224]
push ecx
mov ebx, edx
mov eax, ebp
mov dword [esp + 0x18], 0x4bd2c4
call fcn.00455310
add esp, 8
test al, al
jne 0x455402
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2210
ret
cmp byte [esp + 0x2224], 0
je 0x455492
mov ebx, dword [esp + 0x14]
push str.AutoHotkey.exe
push ebx
push str.__s_s
mov esi, 0x800
lea edi, [esp + 0x22c]
call fcn.0049e5c0
mov esi, eax
lea edx, [esi + 1]
add esp, 0xc
cmp edx, 0x800
jg 0x455479
lea eax, [esp + 0x222]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x455479
mov ecx, 0x22
xor edx, edx
lea eax, [esp + 0x1220]
mov word [esp + esi*2 + 0x220], cx
mov word [esp + esi*2 + 0x222], dx
mov ebp, edi
mov dword [esp + 0x10], eax
jmp 0x455492
cmp ebx, dword [0x4eacbc]
jne 0x455492
mov ebp, dword [0x4eacb8]
lea ecx, [esp + 0x1220]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0x4ea1d0
mov edx, ebp
call fcn.0044ab30
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x2210
ret
Function at 0x455940
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
push edi
xor edi, edi
lea eax, [esp + 0x14]
push eax
mov ecx, edi
or ecx, 1
push ecx
push 0
push str.SOFTWAREAutoHotkey
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
je 0x455980
xor edx, edx
mov word [esp + 0x18], dx
xor eax, eax
jmp 0x4559e5
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push str.InstallDir
push edx
mov dword [esp + 0x28], 0x208
call ebp
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x455a13
mov eax, dword [esp + 0x10]
test eax, eax
je 0x455a13
shr eax, 1
dec eax
mov dword [esp + 0x10], eax
cmp word [esp + eax*2 + 0x18], si
jne 0x4559f3
test eax, eax
je 0x4559e5
lea ecx, [esp + eax*2 + 0x16]
cmp word [ecx], 0
jne 0x4559dd
sub ecx, 2
dec eax
jne 0x4559d1
mov dword [esp + 0x10], eax
test eax, eax
jne 0x455a1c
test edi, edi
jne 0x455a1c
mov edi, 0x100
jmp 0x455958
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x455a0a
xor ecx, ecx
mov word [esp + 0x18], cx
xor eax, eax
jmp 0x4559e5
xor edx, edx
mov word [esp + eax*2 + 0x18], dx
jmp 0x4559e1
xor eax, eax
mov word [esp + 0x18], ax
jmp 0x4559e5
mov esi, dword [esp + 0x224]
test esi, esi
je 0x455a3f
lea ecx, [esp + 0x18]
mov edx, ecx
sub esi, edx
nop
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x455a30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
Function at 0x458ff0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x218
push ebx
push ebp
mov ebp, dword [0x4e7de0]
push esi
push edi
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0
mov eax, esi
call fcn.0041c480
mov bl, al
add esp, 0xc
test bl, bl
jne 0x459090
lea eax, [esp + 0x14]
push 0
push eax
mov eax, esi
call fcn.0046f2c0
mov edi, eax
add esp, 8
test edi, edi
jne 0x459053
push 1
push eax
push 0xffffffffffffffff
push 0x4bd2c4
push ebp
call fcn.004a2810
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push 0
push edx
lea eax, [esp + 0x20]
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], ecx
call fcn.0046f580
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.004a2130
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4
mov eax, dword [esp + 0x22c]
movzx esi, word [eax]
test esi, 0xffffff80
jne 0x4590b5
push 2
push esi
call dword [sym.imp.MSVCR100.dll__isctype]
add esp, 8
test eax, eax
je 0x4590b5
and esi, 0xffffffdf
movzx eax, si
cmp eax, 0x50
je 0x4590cd
xor ecx, ecx
cmp eax, 0x54
setne cl
lea eax, [ecx - 1]
and eax, 2
jmp 0x4590d2
mov eax, 1
push eax
call fcn.0046f4d0
add esp, 4
test al, al
mov eax, 0x4da480
jne 0x4590e9
mov eax, 0x4da484
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.004a2810
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4
Function at 0x459110
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4e7de0]
sub esp, 0x238
push esi
push edi
mov esi, eax
call fcn.004269a0
test esi, esi
je 0x45928a
cmp word [esi], 0
je 0x45928a
push 0x104
lea eax, [esp + 0x34]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_wcsncpy]
add esp, 0xc
xor ecx, ecx
lea eax, [esp + 0x30]
mov word [esp + 0x238], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x459162
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x2e], 0x5c
je 0x459199
lea edx, [eax + 1]
cmp edx, 0x105
jae 0x45928a
mov ecx, 0x5c
xor edx, edx
mov word [esp + eax*2 + 0x30], cx
mov word [esp + eax*2 + 0x32], dx
test byte [0x4eb2f8], 1
jne 0x4591c7
or dword [0x4eb2f8], 1
push str.GetDiskFreeSpaceExW
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4eb2f4], eax
jmp 0x4591cc
mov eax, dword [0x4eb2f4]
test eax, eax
je 0x459218
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x3c]
push edx
call eax
test eax, eax
je 0x45928a
test bl, bl
je 0x459205
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x459258
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x459258
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x45928a
mov eax, dword [esp + 0x14]
test bl, bl
jne 0x459247
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0xc]
imul eax, dword [esp + 8]
shr eax, 0x14
mov esi, eax
xor edi, edi
mov edx, dword [0x4e86f0]
push 1
push 0
push 0xffffffffffffffff
push 0x4bbb9c
push edx
call fcn.004a2810
mov eax, dword [0x4e7de0]
push 0x18
push edi
push esi
call fcn.004010e0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4e4b24]
test byte [eax + 0x100], 1
jne 0x4592b7
mov ecx, dword [0x4e86f0]
push 1
push 0
push 0xffffffffffffffff
push 0x4bf81c
push ecx
call fcn.004a2810
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
push 0x4bd2c4
push 0
push 0x4bf81c
call fcn.00449890
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x45b0d0
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x21c
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
push edi
mov edi, eax
push edi
call ebp
test eax, eax
jne 0x45b147
cmp byte [0x4eacc4], al
je 0x45b1f1
mov eax, dword [0x4e4b24]
test byte [eax + 0x100], 1
jne 0x45b125
mov ecx, dword [0x4e86f0]
push 1
push 0
push 0xffffffffffffffff
push 0x4bf81c
push ecx
call fcn.004a2810
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
mov edi, dword [0x4ea818]
push 0x4bd2c4
push 0
push 0x4bf81c
call fcn.00449890
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
cmp byte [0x4eacc4], 0
mov esi, 0x4e86f8
jne 0x45b159
lea esi, [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
push 0x104
call ebx
test eax, eax
je 0x45b1b9
cmp word [edi], 0
je 0x45b1d2
cmp word [edi + 2], 0x3a
jne 0x45b1d2
cmp word [edi + 4], 0
jne 0x45b1d2
push esi
push edi
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x45b1d2
push edi
lea eax, [esp + 0x14]
push 0x4da918
push eax
call dword [sym.imp.MSVCR100.dll__swprintf]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call ebp
test eax, eax
je 0x45b1d2
push esi
push 0x104
call ebx
test eax, eax
jne 0x45b1d2
push 0x103
push edi
push esi
call dword [sym.imp.MSVCR100.dll_wcsncpy]
add esp, 0xc
xor edx, edx
mov word [esi + 0x206], dx
cmp byte [0x4eacc4], 0
je 0x45b1f1
mov eax, dword [0x4e86f0]
push 1
push 0
push 0xffffffffffffffff
push 0x4bbb9c
push eax
call fcn.004a2810
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
Function at 0x45b860
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x210
push ebx
mov ebx, dword [esp + 0x218]
push ebp
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x45b9b7
cmp word [ebx], 0
je 0x45b9b7
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45b8bb
mov ecx, dword [0x4e4b24]
shr eax, 4
not al
and al, 1
movzx edx, al
push edx
mov dword [ecx + 0x30], 0xb7
call fcn.00449930
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
push 0x5c
push ebx
call dword [sym.imp.MSVCR100.dll_wcsrchr]
mov ebp, eax
add esp, 8
cmp ebp, ebx
jbe 0x45b97f
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45b8d6
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x45b928
mov eax, dword [0x4e4b24]
test byte [eax + 0x100], 1
mov dword [eax + 0x30], 0x6f
jne 0x45b9f0
mov eax, dword [0x4e86f0]
push 1
push 0
push 0xffffffffffffffff
push 0x4bf81c
push eax
call fcn.004a2810
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
mov esi, ebp
sub esi, ebx
sar esi, 1
push esi
lea ecx, [esp + 0x1c]
push ebx
push ecx
call dword [sym.imp.MSVCR100.dll_wcsncpy]
add esp, 0xc
lea eax, [esp + 0x18]
xor edx, edx
push eax
mov ecx, edi
mov word [esp + esi*2 + 0x1c], dx
call fcn.0045b860
cmp word [ebp + 2], 0
je 0x45b96d
mov ecx, dword [0x4e86f0]
push 0
push 1
call fcn.00401220
cmp word [eax], 0x31
jne 0x45b97f
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
sete cl
mov byte [esp + 0x14], cl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x4e4b24]
mov dword [edx + 0x30], eax
mov eax, dword [esp + 0x14]
push eax
call fcn.00449930
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
mov eax, dword [0x4e4b24]
test byte [eax + 0x100], 1
mov dword [eax + 0x30], 0x57
jne 0x45b9f0
mov ecx, dword [0x4e86f0]
push 1
push 0
push 0xffffffffffffffff
push 0x4bf81c
push ecx
call fcn.004a2810
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
push 0x4bd2c4
push 0
push 0x4bf81c
call fcn.00449890
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
Function at 0x45c680
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
xor edi, edi
cmp ebp, edi
je 0x45c6d0
push edi
push 1
mov ecx, ebp
call fcn.00401220
cmp byte [ebp + 0x17], 0
mov dword [esp + 0x24], eax
jne 0x45c6aa
mov esi, dword [ebp + 0xc]
jmp 0x45c6ac
mov esi, ebp
cmp byte [esi + 0x17], 1
jne 0x45c6c7
test byte [esi + 0x15], 8
je 0x45c6bf
mov eax, esi
call fcn.00401160
mov ebx, dword [esi + 0xc]
add esi, 0xc
jmp 0x45c6fe
mov esi, 0x4eaef4
mov ebx, dword [esi]
jmp 0x45c6fe
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
call fcn.004a2270
add esp, 0xc
test eax, eax
jne 0x45c6fa
mov edx, dword [0x4e4b24]
mov dword [edx + 0x30], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x45c746
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], edi
test eax, eax
je 0x45c73b
push 0
lea ecx, [esp + 0x24]
push ecx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
cmp dword [esp + 0x20], ebx
sete dl
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e4b24]
mov dword [ecx + 0x30], eax
cmp esi, 0xffffffff
je 0x45c761
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
jne 0x45c773
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
test edi, edi
mov edi, dword [esp + 0x1c]
sete al
movzx ecx, al
push ecx
call fcn.00449930
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x45c820
Capabilities:
Copy file
Extract resource via kernel32 functions
Set current directory
Write file on windows

Disassembly:
sub esp, 0x214
push ebx
push ebp
mov ebp, dword [esp + 0x224]
push esi
push edi
mov ebx, eax
mov esi, ecx
call fcn.00403d70
test al, al
je 0x45c84e
push 0x10
push 0
push ebx
call dword [sym.imp.MSVCR100.dll_wcstol]
add esp, 0xc
jmp 0x45c858
push ebx
call dword [sym.imp.MSVCR100.dll__wtoi]
add esp, 4
cmp eax, 1
sete bl
cmp dword [0x4e7ebc], 0
je 0x45c9aa
test bl, bl
jne 0x45c891
call fcn.004736c0
test al, al
je 0x45c891
mov edi, dword [esp + 0x228]
call fcn.0044b7c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret 8
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x45c878
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45c8b3
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x45c8ce
mov eax, 0x103
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0x1c]
push ebp
push ecx
call sub.MSVCR100.dll_memcpy
lea edx, [esp + 0x24]
add esp, 0xc
push edx
call dword [sym.imp.MSVCR100.dll__wcsupr]
add esp, 4
push 0xa
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x45c99f
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45c99f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x45c99f
cmp dword [ebx], 0x4034b50
mov ebp, dword [sym.imp.KERNEL32.dll_SizeofResource]
jne 0x45c97c
push 0
push esi
push 0
call ebp
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
mov eax, ebx
call fcn.004a1b60
add esp, 8
test eax, eax
je 0x45c97c
mov esi, dword [esp + 0x14]
push 0
lea edx, [esp + 0x14]
push edx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
setne bl
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45c9ec
push 0
lea eax, [esp + 0x14]
push eax
push esi
push 0
call ebp
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push edi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45c9ec
push edi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45c9ec
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edx, dword [0x4eacb0]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push edx
call esi
xor eax, eax
test bl, bl
sete al
lea ecx, [esp + 0x18]
push eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
push 0x4e86f8
setne bl
call esi
mov edi, dword [esp + 0x228]
test bl, bl
sete dl
movzx eax, dl
push eax
call fcn.00449930
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret 8
Function at 0x45ca10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x104
push esi
push edi
mov edi, ecx
mov ecx, dword [0x4e7de0]
mov esi, eax
call fcn.004269a0
test esi, esi
je 0x45cacb
cmp word [esi], 0
je 0x45cacb
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45ca81
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e4b24]
test byte [ecx + 0x100], 1
mov dword [ecx + 0x30], eax
jne 0x45cb00
mov eax, dword [0x4e86f0]
push 1
push 0
push esi
push 0x4bf81c
push eax
call fcn.004a2810
pop edi
pop esi
add esp, 0x104
ret
mov edx, dword [0x4e86f0]
mov ecx, dword [0x4e4b24]
push 1
push 0
push 0xffffffffffffffff
push 0x4bbb9c
push edx
mov dword [ecx + 0x30], 0
call fcn.004a2810
mov edx, esi
lea eax, [esp + 8]
call fcn.0049f5f0
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4e7de0]
push eax
call fcn.004a2810
pop edi
pop esi
add esp, 0x104
ret
mov eax, dword [0x4e4b24]
test byte [eax + 0x100], 1
mov dword [eax + 0x30], 0x57
jne 0x45cb00
mov ecx, dword [0x4e86f0]
push 1
push 0
push 0xffffffffffffffff
push 0x4bf81c
push ecx
call fcn.004a2810
pop edi
pop esi
add esp, 0x104
ret
push 0x4bd2c4
push 0
push 0x4bf81c
call fcn.00449890
pop edi
pop esi
add esp, 0x104
ret

Function at 0x45cb20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], ebx
mov edi, eax
cmp word [eax], bx
je 0x45cbf3
mov ebp, dword [sym.imp.MSVCR100.dll__isctype]
jmp 0x45cb50
movzx esi, word [edi]
test esi, 0xffffff80
jne 0x45cb6a
push 2
push esi
call ebp
add esp, 8
test eax, eax
je 0x45cb6a
and esi, 0xffffffdf
movzx eax, si
add eax, 0xffffffd5
cmp eax, 0x33
ja case.0x45cb7c.44
movzx eax, byte [eax + 0x45cc48]
jmp dword [eax*4 + 0x45cc24]
movzx ebx, word [edi]
jmp case.0x45cb7c.44
mov eax, 1
jmp 0x45cbb7
mov eax, 0x20
jmp 0x45cbb7
mov eax, 4
jmp 0x45cbb7
mov eax, 2
jmp 0x45cbb7
mov eax, 0x80
jmp 0x45cbb7
mov eax, 0x1000
jmp 0x45cbb7
mov eax, 0x100
mov ecx, ebx
sub ecx, 0x2b
je 0x45cbda
sub ecx, 2
je 0x45cbce
sub ecx, 0x31
jne case.0x45cb7c.44
xor dword [esp + 0x14], eax
jmp case.0x45cb7c.44
not eax
and dword [esp + 0x10], eax
and dword [esp + 0x14], eax
jmp case.0x45cb7c.44
mov ecx, eax
not ecx
and dword [esp + 0x10], ecx
or dword [esp + 0x14], eax
add edi, 2
cmp word [edi], 0
jne 0x45cb50
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push 0
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x2c]
push 0x45cc80
push eax
push ecx
mov ecx, dword [esp + 0x34]
push edx
call fcn.0045ccc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x45d4e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4e7de0]
sub esp, 0x258
push esi
push edi
call fcn.004269a0
test ebx, ebx
je 0x45d64e
cmp word [ebx], 0
je 0x45d64e
push 0
push 0
push 3
push 0
push 7
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x45d541
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x45d5ac
lea ecx, [esp + 0x10]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x45d58d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e4b24]
test byte [ecx + 0x100], 1
mov dword [ecx + 0x30], eax
jne 0x45d682
mov edx, dword [0x4e86f0]
push 1
push 0
push 0xffffffffffffffff
push 0x4bf81c
push edx
call fcn.004a2810
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x2c]
xor ecx, ecx
or ecx, dword [esp + 0x30]
xor esi, esi
or eax, esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
jmp 0x45d5b4
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [ebp + 0xc]
movzx esi, word [edx]
test esi, 0xffffff80
jne 0x45d5dd
push 2
push esi
call dword [sym.imp.MSVCR100.dll__isctype]
mov ecx, dword [esp + 0x10]
add esp, 8
test eax, eax
mov eax, dword [esp + 0xc]
je 0x45d5dd
and esi, 0xffffffdf
movzx edx, si
sub edx, 0x4b
je 0x45d5f2
sub edx, 2
jne 0x45d608
push edx
push 0x100000
jmp 0x45d5f9
push 0
push 0x400
push eax
push ecx
call fcn.004b9cd0
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov ecx, dword [0x4e86f0]
mov eax, dword [0x4e4b24]
push 1
push 0
push 0xffffffffffffffff
push 0x4bbb9c
push ecx
mov dword [eax + 0x30], 0
call fcn.004a2810
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0x18
push edx
push eax
mov eax, dword [0x4e7de0]
call fcn.004010e0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4e4b24]
test byte [eax + 0x100], 1
mov dword [eax + 0x30], 0x57
jne 0x45d682
mov ecx, dword [0x4e86f0]
push 1
push 0
push 0xffffffffffffffff
push 0x4bf81c
push ecx
call fcn.004a2810
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 8]
push 0x4bd2c4
push 0
push 0x4bf81c
call fcn.00449890
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x45f160
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
push esi
push edi
mov edi, dword [esp + 0x21c]
movzx esi, word [edi + 4]
test esi, 0xffffff80
jne 0x45f18e
push 2
push esi
call dword [sym.imp.MSVCR100.dll__isctype]
add esp, 8
test eax, eax
je 0x45f18e
and esi, 0xffffffdf
movzx eax, si
add eax, 0xffffffbf
cmp eax, 0x12
ja case.0x45f1a4.66
movzx eax, byte [eax + 0x45f29c]
jmp dword [eax*4 + 0x45f288]
mov ax, word [edi + 0x12]
call fcn.00413020
cmp ax, 0x53
jne 0x45f1ca
movzx eax, word [edi + 0x14]
neg eax
sbb eax, eax
and eax, 0x15
add eax, 2
jmp 0x45f224
mov eax, 0x26
jmp 0x45f224
movzx eax, word [edi + 0x12]
neg eax
sbb eax, eax
and eax, 9
add eax, 0x1a
jmp 0x45f224
movzx eax, word [edi + 0x12]
neg eax
sbb eax, eax
and eax, 9
add eax, 0x10
jmp 0x45f224
mov ax, word [edi + 0xe]
call fcn.00413020
cmp ax, 0x4d
jne 0x45f210
movzx eax, word [edi + 0x16]
neg eax
sbb eax, eax
and eax, 0xb
add eax, 0xb
jmp 0x45f224
movzx eax, word [edi + 0x12]
neg eax
sbb eax, eax
and eax, 0x11
add eax, 7
jmp 0x45f224
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 0x45f243
xor edx, edx
mov word [esp + 4], dx
mov edx, dword [esp + 0x210]
test edx, edx
je 0x45f265
lea eax, [esp + 4]
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x45f256
lea eax, [esp + 4]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45f270
sub eax, edx
sar eax, 1
add esp, 0x20c
ret

Function at 0x45f2b0
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 0x45f2d2
xor ecx, ecx
mov word [esp], cx
lea eax, [esp]
lea edx, [eax + 2]
jmp 0x45f2e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45f2e0
sub eax, edx
sar eax, 1
jne 0x45f2f5
xor eax, eax
jmp 0x45f305
cmp word [esp + eax*2 - 2], 0x5c
jne 0x45f305
xor edx, edx
mov word [esp + eax*2 - 2], dx
dec eax
push esi
mov esi, dword [esp + 0x210]
test esi, esi
je 0x45f32f
lea ecx, [esp + 4]
mov edx, ecx
sub esi, edx
lea esp, [esp]
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x45f320
pop esi
add esp, 0x208
ret
Function at 0x46f4d0
Capabilities:
Log keystrokes via polling

Disassembly:
test bl, bl
jne 0x46f4d7
xor al, al
ret
mov eax, dword [esp + 4]
dec eax
je 0x46f4ff
dec eax
je 0x46f4f1
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetKeyState]
and eax, 1
ret
lea edx, [ebx - 1]
cmp dl, 5
ja 0x46f50c
cmp bl, 3
jne 0x46f513
lea eax, [ebx + 0x66]
cmp al, 5
ja 0x46f539
cmp dword [0x4e8024], 0
je 0x46f529
movzx ecx, bl
mov al, byte [ecx + 0x4e7f10]
shr al, 7
ret
movzx edx, bl
push edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret
cmp dword [0x4e8020], 0
je 0x46f568
xor ecx, ecx
xor edx, edx
mov al, bl
call fcn.0041bbc0
test al, al
je 0x46f55b
push 1
call fcn.0041b9f0
add esp, 4
movzx eax, bl
mov al, byte [eax + 0x4e7f10]
shr al, 7
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret