joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4481a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xcc
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], 0
mov dword [esp + 4], eax
mov edx, ecx
lea eax, [esp + 0x3c]
mov dword [esp + 0x2c], str.What
mov dword [esp + 8], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xac]
mov dword [esp + 0x24], eax
lea eax, [esp + 0xbc]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x44], 0
push esi
mov esi, 8
test eax, eax
jne 0x448240
movzx ecx, byte [edx]
lea eax, [ecx*8]
sub eax, ecx
mov eax, dword [eax*2 + 0x4e45a0]
movzx ecx, word [edx + 2]
mov dword [esp + 0x40], eax
mov eax, dword [0x4e757c]
mov dword [esp + 0x58], 0
mov dword [esp + 0x50], 0x4d7dfc
mov dword [esp + 0x68], 0
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x60], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x78], 0
mov dword [esp + 0x70], str.Line
mov dword [esp + 0x88], 1
mov dword [esp + 0x84], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x90], str.Message
mov dword [esp + 0xa8], 0
test eax, eax
je 0x448309
cmp word [eax], 0
je 0x448309
mov esi, 0xa
mov dword [esp + 0xb8], 0
mov dword [esp + 0xb0], str.Extra
mov dword [esp + 0xc8], 0
mov dword [esp + 0xc0], eax
mov edx, esi
lea ecx, [esp + 8]
call fcn.0048d030
pop esi
add esp, 0xcc
ret 0xc
Function at 0x449150
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4004
call fcn.004b8400
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x449261
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x449190
mov esi, dword [edi + 0x64c]
test esi, esi
jne 0x449190
mov ecx, dword [edi + 0x24c]
movzx eax, word [edi + 0x250]
jmp 0x449198
movzx ecx, word [esi + 2]
movzx eax, word [esi + 4]
push dword [ebp + 0xc]
movzx eax, ax
push eax
mov eax, dword [0x4e757c]
push dword [eax + ecx*4]
lea eax, [esp + 0x1c]
push str._s___d__:___Warning:__s_n
push 0x2000
push eax
call fcn.0049d580
mov edx, eax
add esp, 0x18
mov eax, dword [ebp + 0x10]
add edx, edx
cmp word [eax], 0
je 0x4491ec
push eax
mov ecx, edx
mov eax, 0x2000
sar ecx, 1
sub eax, ecx
push str._____Specifically:__s_n
push eax
lea eax, [esp + 0x1c]
add eax, edx
push eax
call fcn.0049d580
add esp, 0x10
lea eax, [esp + 0x10]
cmp ebx, 3
jne 0x44920d
push 0x4d3f9c
push 0
push eax
mov ecx, edi
call fcn.004485d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push eax
mov ecx, 0x4e5ae8
call fcn.0040b1d0
test al, al
jne 0x449227
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebx, 2
jne 0x449261
test esi, esi
jne 0x449251
mov esi, dword [edi + 0x64c]
test esi, esi
jne 0x449251
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.00448ad0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, esi
push 1
push eax
call fcn.00448730
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x44f4b0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
push dword [ebp + 0x18]
mov esi, ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0045cab0
mov edi, eax
test edi, edi
je 0x44f5af
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.004a3390
mov ebx, eax
test ebx, ebx
je 0x44f5af
push 0
push edi
mov byte [esp + 0x17], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
test esi, esi
je 0x44f52c
cmp esi, dword [0x4e82ec]
je 0x44f52c
mov ecx, edi
call fcn.004a3870
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
test al, al
jne 0x44f532
push 1
push esi
push dword [0x4e82ec]
call edi
test eax, eax
setne byte [esp + 0xf]
jmp 0x44f532
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
je 0x44f58f
mov ecx, dword [0x4e69cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4bacf8
call fcn.004a19e0
mov eax, dword [0x4e40f4]
cmp dword [eax + 0x58], 0xffffffff
jle 0x44f58f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4e82ec], eax
je 0x44f57c
mov eax, dword [0x4e40f4]
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x44f58f
mov ecx, dword [0x4e40f4]
mov edx, 1
mov ecx, dword [ecx + 0x58]
call fcn.004019f0
cmp byte [esp + 0xf], 0
je 0x44f5a1
push 0
push esi
push dword [0x4e82ec]
call edi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [0x4e40f4]
test byte [eax + 0x100], 1
jne 0x44f5dc
mov ecx, dword [0x4e69cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4d112c
call fcn.004a19e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x4bac30
push 0
push 0x4d112c
mov ecx, esi
call fcn.00448320
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x450e20
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, dword [0x4e8218]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.0045cab0
mov ebx, eax
test ebx, ebx
je 0x450e50
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
jmp 0x450e55
mov edi, 1
push 1
push 0
lea eax, [edi - 1]
mov ecx, esi
push eax
push 0
call fcn.004a19e0
cmp eax, 1
je 0x450e73
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
push 0
push 1
mov ecx, esi
call fcn.00401640
test ebx, ebx
je 0x450efd
push edi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x450e98
mov edi, dword [esi + 0xc]
jmp 0x450e9a
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x450eb2
test byte [edi + 0x15], 8
je 0x450ead
mov ecx, edi
call fcn.00401560
add edi, 0xc
jmp 0x450eb7
mov edi, 0x4eaaf8
lea eax, [ebx + ebx]
mov dword [edi], eax
cmp byte [esi + 0x17], 0
jne 0x450ec7
mov edi, dword [esi + 0xc]
jmp 0x450ec9
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x450ee1
test byte [edi + 0x15], 8
je 0x450edc
mov ecx, edi
call fcn.00401560
add edi, 0xc
jmp 0x450ee6
mov edi, 0x4eaaf8
cmp dword [edi], 2
jae 0x450f31
push 0
push 1
mov ecx, esi
call fcn.00401640
xor ecx, ecx
mov word [eax], cx
jmp 0x450f31
xor ecx, ecx
mov word [eax], cx
cmp byte [esi + 0x17], cl
jne 0x450f0c
mov edi, dword [esi + 0xc]
jmp 0x450f0e
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x450f26
test byte [edi + 0x15], 8
je 0x450f21
mov ecx, edi
call fcn.00401560
add edi, 0xc
jmp 0x450f2b
mov edi, 0x4eaaf8
mov dword [edi], 0
cmp byte [esi + 0x17], 0
jne 0x450f3a
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x450f5a
cmp dword [0x4e96e4], 0
je 0x450f5a
push ecx
mov ecx, 0x4e96d8
call fcn.004061f0
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 0x451d40
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.004b8400
push esi
mov esi, dword [0x4e8218]
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 0x451e06
push 1
lea ecx, [edi - 1]
push ecx
push 0
mov ecx, esi
call fcn.004a19e0
test eax, eax
jne 0x451d97
pop edi
pop esi
add esp, 0x10000
ret 4
push edi
push 0
push 1
mov ecx, esi
call fcn.00401640
push eax
push dword [esp + 0x10014]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x451dc4
push eax
push 1
mov ecx, esi
call fcn.00401640
xor ecx, ecx
mov word [eax], cx
cmp byte [esi + 0x17], 0
jne 0x451dcd
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x451df2
cmp dword [0x4e96e4], 0
je 0x451df2
push ecx
mov ecx, 0x4e96d8
call fcn.004061f0
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, 0x4bac30
cmove eax, ecx
mov ecx, esi
push edi
push eax
call fcn.004a19e0
pop edi
pop esi
add esp, 0x10000
ret 4
Function at 0x454a30
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.0049d580
mov edi, eax
add esp, 0x14
lea ecx, [edi + 1]
cmp ecx, 0x800
jg 0x454a77
lea ecx, [esi + 2]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x454a77
mov dword [esi + edi*2], 0x22
mov al, 1
pop edi
pop esi
ret
pop edi
xor al, al
pop esi
ret

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

Disassembly:
mov eax, 0x241c
call fcn.004b8400
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov byte [esp + 0x17], dl
push edi
push dword [0x4e9668]
lea ebx, [esp + 0x430]
mov ebp, 0x4bac30
push str.__s_s
mov eax, ebx
push 0x800
push eax
call fcn.0049d580
mov esi, eax
add esp, 0x14
lea ecx, [esi + 1]
cmp ecx, 0x800
jg 0x454af2
lea eax, [esp + 0x42a]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x454af2
mov dword [esp + esi*2 + 0x428], 0x22
mov esi, dword [0x4e9668]
jmp 0x454b84
xor esi, esi
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push str.InstallDir
mov edx, str.SOFTWAREAutoHotkey
call fcn.0049ea80
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x454b3b
test esi, esi
jne 0x454b3b
mov esi, 0x100
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push str.InstallDir
mov edx, str.SOFTWAREAutoHotkey
call fcn.0049ea80
mov edx, eax
add esp, 0x10
test edx, edx
je 0x454b13
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 0x454b40
test edx, edx
je 0x454c1e
lea eax, [esp + 0x220]
push eax
push edi
lea ecx, [esp + 0x430]
call fcn.00454a30
add esp, 8
test al, al
je 0x454c1e
lea esi, [esp + 0x220]
cmp byte [esp + 0x17], 0
je 0x454bf4
push 0x4d9608
push esi
push str.__s_s
lea eax, [esp + 0x1434]
push 0x800
push eax
call fcn.0049d580
mov edi, eax
add esp, 0x14
lea ecx, [edi + 1]
cmp ecx, 0x800
jg 0x454bdf
lea eax, [esp + 0x142a]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x454bdf
mov dword [esp + edi*2 + 0x1428], 0x22
lea ebx, [esp + 0x1428]
jmp 0x454bed
cmp esi, dword [0x4e9668]
jne 0x454bf4
mov ebx, dword [0x4e9664]
lea ebp, [esp + 0x428]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
push ebx
mov ecx, 0x4e8b78
call fcn.00449960
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 0x458630
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 [0x4e8218]
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.0041cef0
mov bl, al
add esp, 0xc
test bl, bl
jne 0x4586ce
push 0
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.0046e8c0
add esp, 4
test eax, eax
jne 0x458694
push 1
push eax
push 0xffffffffffffffff
push 0x4bac30
mov ecx, edi
call fcn.004a19e0
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.0046eb70
add esp, 8
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.004a12d0
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 0x4586e0
xor eax, eax
jmp 0x4586ec
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 0x45870a
xor eax, eax
mov edx, 2
cmp ecx, 0x54
cmovne edx, eax
jmp 0x45870f
mov edx, 1
mov cl, bl
call fcn.0046ead0
push 1
test al, al
mov edx, 0x4d99dc
push 0
mov ecx, 0x4d99d8
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, edi
call fcn.004a19e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x458740
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x220
push esi
push edi
push 1
push 0
push 0xffffffffffffffff
mov esi, ecx
mov ecx, dword [0x4e8218]
push 0
call fcn.004a19e0
mov eax, dword [ebp + 8]
test eax, eax
je 0x458838
cmp word [eax], 0
je 0x458838
push 0x103
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
lea ecx, [esp + 0x20]
xor eax, eax
lea edx, [ecx + 2]
mov word [esp + 0x226], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4587a0
sub ecx, edx
sar ecx, 1
cmp word [esp + ecx*2 + 0x1e], 0x5c
je 0x4587c9
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x458838
mov dword [esp + ecx*2 + 0x20], 0x5c
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x458838
cmp byte [ebp + 0xc], 0
je 0x4587f7
mov edi, dword [esp + 8]
mov esi, dword [esp + 0xc]
jmp 0x4587ff
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, dword [0x4e69cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4bacf8
call fcn.004a19e0
mov ecx, dword [0x4e8218]
shrd edi, esi, 0x14
push 0x18
shr esi, 0x14
push esi
push edi
call fcn.004014e0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4e40f4]
test byte [eax + 0x100], 1
jne 0x458864
mov ecx, dword [0x4e69cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4d112c
call fcn.004a19e0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x4bac30
push 0
push 0x4d112c
mov ecx, esi
call fcn.00448320
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x45a680
Capabilities:
Set current directory

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
movzx eax, word [esi]
test ax, ax
je 0x45a6b4
cmp word [esi + 2], 0x3a
jne 0x45a6b4
cmp word [esi + 4], 0
jne 0x45a6b4
mov word [esp + 8], ax
lea esi, [esp + 8]
xor eax, eax
mov dword [esp + 0xa], 0x5c003a
mov word [esp + 0xe], ax
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x45a70c
cmp byte [0x4e9670], al
je 0x45a732
mov eax, dword [0x4e40f4]
test byte [eax + 0x100], 1
jne 0x45a6f0
mov ecx, dword [0x4e69cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4d112c
call fcn.004a19e0
pop esi
add esp, 0x10
ret
mov ecx, dword [0x4e91c4]
push 0x4bac30
push 0
push 0x4d112c
call fcn.00448320
pop esi
add esp, 0x10
ret
cmp byte [0x4e9670], 0
je 0x45a732
mov ecx, esi
call fcn.0045a740
mov ecx, dword [0x4e69cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4bacf8
call fcn.004a19e0
pop esi
add esp, 0x10
ret

Function at 0x45a740
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10000
call fcn.004b8400
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x45a779
push ecx
lea esi, [esp + 8]
mov ecx, 0x4e5b4c
push esi
call fcn.0046f3d0
pop esi
add esp, 0x10000
ret
test esi, esi
je 0x45a789
push ecx
push esi
mov ecx, 0x4e5b4c
call fcn.0046f3d0
pop esi
add esp, 0x10000
ret

Function at 0x45a7a0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10000
call fcn.004b8400
lea eax, [esp]
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x45a7d1
lea eax, [esp]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
add esp, 4
add esp, 0x10000
ret
xor eax, eax
add esp, 0x10000
ret
Function at 0x45ae50
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 8], esi
test edi, edi
je 0x45af2a
cmp word [edi], 0
je 0x45af2a
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45ae9d
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
shr ebx, 4
and bl, 1
mov al, bl
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5c
push edi
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov ebx, eax
add esp, 8
cmp ebx, edi
jbe 0x45af12
cmp word [ebx - 2], 0x3a
je 0x45af12
test esi, esi
je 0x45aec3
xor ecx, ecx
mov eax, edi
mov word [ebx], cx
jmp 0x45aef2
mov esi, ebx
sub esi, edi
sar esi, 1
lea eax, [esi*2 + 2]
call fcn.004b8430
mov eax, esp
push esi
push edi
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov eax, dword [ebp - 4]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi*2], cx
mov esi, dword [ebp - 8]
mov edx, eax
mov ecx, eax
call fcn.0045ae50
test esi, esi
je 0x45af07
mov ecx, 0x5c
mov word [ebx], cx
cmp word [ebx + 2], 0
je 0x45af34
test al, al
je 0x45af34
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45ba60
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 0x45bab1
push 0
push 1
mov ecx, esi
call fcn.00401640
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x45ba8b
mov edi, dword [esi + 0xc]
jmp 0x45ba8d
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x45baa8
test byte [edi + 0x15], 8
je 0x45baa0
mov ecx, edi
call fcn.00401560
mov ebp, dword [edi + 0xc]
add edi, 0xc
jmp 0x45bae8
mov edi, 0x4eaaf8
mov ebp, dword [edi]
jmp 0x45bae8
lea eax, [esp + 0x10]
xor ecx, ecx
push eax
lea edx, [esp + 0x24]
call fcn.004a1410
add esp, 4
test eax, eax
jne 0x45bae0
mov eax, dword [0x4e40f4]
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 0x45bb38
xor eax, eax
mov dword [esp + 0x20], eax
test ebx, ebx
je 0x45bb2d
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 [0x4e40f4]
mov dword [ecx + 0x30], eax
cmp edi, 0xffffffff
je 0x45bb53
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x45bb61
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.004483c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8

Function at 0x45bb90
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 0x45bbe1
movzx eax, word [ebx]
test ax, ax
je 0x45bc1e
mov esi, eax
nop word [eax + eax]
mov eax, 0x4d9f88
mov edx, 0x3f
nop word [eax + eax]
cmp si, dx
je 0x45bc1e
movzx ecx, word [eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x45bbc0
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x45bbb0
cmp word [ebx], 0
je 0x45bc1e
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 [0x4e40f4]
push dword [esp + 0x14]
mov dword [ecx + 0x30], eax
mov ecx, ebp
call fcn.004483c0
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 0
push 0x45bb80
push 0
push 1
push ebx
mov ecx, ebp
call fcn.0045c110
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x45be90
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 [0x4e8218]
push 0
call fcn.004a19e0
mov eax, dword [esp + 0x108]
test eax, eax
je 0x45bf2c
cmp word [eax], 0
je 0x45bf2c
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45beef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e40f4]
push 1
mov dword [ecx + 0x30], eax
mov ecx, esi
call fcn.004483c0
pop edi
pop esi
add esp, 0x100
ret 4
mov eax, dword [0x4e40f4]
mov ecx, esi
push 0
mov dword [eax + 0x30], 0
call fcn.004483c0
mov edx, edi
lea ecx, [esp + 8]
call fcn.0049e650
mov ecx, dword [0x4e8218]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004a19e0
pop edi
pop esi
add esp, 0x100
ret 4
mov eax, dword [0x4e40f4]
mov ecx, esi
push 1
mov dword [eax + 0x30], 0x57
call fcn.004483c0
pop esi
add esp, 0x100
ret 4

Function at 0x45bf50
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 0x45c04c
mov ecx, eax
nop word [eax + eax]
movzx esi, cx
test esi, 0xffffff80
je 0x45bf9f
xor eax, eax
jmp 0x45bfb3
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.0x45bfcc.44
movzx eax, byte [ecx + 0x45c098]
jmp dword [eax*4 + 0x45c074]
movzx eax, word [edi]
mov dword [esp + 0x10], eax
jmp case.0x45bfcc.44
mov ecx, 1
jmp 0x45c00b
mov ecx, 0x20
jmp 0x45c00b
mov ecx, 4
jmp 0x45c00b
mov ecx, 2
jmp 0x45c00b
mov ecx, 0x80
jmp 0x45c00b
mov ecx, 0x1000
jmp 0x45c00b
mov ecx, 0x100
mov eax, dword [esp + 0x10]
sub eax, 0x2b
je 0x45c02a
sub eax, 2
je 0x45c022
sub eax, 0x31
jne case.0x45bfcc.44
xor edx, ecx
jmp 0x45c036
not ecx
and ebx, ecx
and edx, ecx
jmp 0x45c032
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 0x45bf90
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0x45c0d0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0045c110
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10