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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4b8f11
call fcn.004b74ef
mov dword [eax], esi
call fcn.004b74dc
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004b3c46
add esp, 0x14
push 0x16
pop eax
jmp 0x4b8f66
test dword [ebp + 0xc], 0xfffffff9
jne 0x4b8eed
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4b8f3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b7502
pop ecx
call fcn.004b74dc
mov eax, dword [eax]
jmp 0x4b8f66
test al, 0x10
jne 0x4b8f64
test al, 1
je 0x4b8f64
test byte [ebp + 0xc], 2
je 0x4b8f64
call fcn.004b74ef
mov dword [eax], 5
call fcn.004b74dc
mov dword [eax], 0xd
jmp 0x4b8f35
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4d01a3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004c1892
and dword [ebp - 4], 0
cmp dword [0x50f01c], 0
mov ebx, eax
jne 0x4d0254
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4d0305
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4d0305
push eax
call fcn.004c1820
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x50f01c], eax
call esi
push eax
call fcn.004c1820
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x50f020], eax
call esi
push eax
call fcn.004c1820
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x50f024], eax
call esi
push eax
call fcn.004c1820
pop ecx
mov dword [0x50f02c], eax
test eax, eax
je 0x4d0254
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004c1820
pop ecx
mov dword [0x50f028], eax
mov eax, dword [0x50f028]
cmp eax, ebx
je 0x4d02ac
cmp dword [0x50f02c], ebx
je 0x4d02ac
push eax
call fcn.004c189b
push dword [0x50f02c]
mov esi, eax
call fcn.004c189b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4d02ac
test edi, edi
je 0x4d02ac
call esi
test eax, eax
je 0x4d02a3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4d02a3
test byte [ebp - 0xc], 1
jne 0x4d02ac
or dword [ebp + 0x10], 0x200000
jmp 0x4d02e5
mov eax, dword [0x50f020]
cmp eax, ebx
je 0x4d02e5
push eax
call fcn.004c189b
pop ecx
test eax, eax
je 0x4d02e5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4d02e5
mov eax, dword [0x50f024]
cmp eax, ebx
je 0x4d02e5
push eax
call fcn.004c189b
pop ecx
test eax, eax
je 0x4d02e5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x50f01c]
call fcn.004c189b
pop ecx
test eax, eax
je 0x4d0305
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4d0307
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d5d40
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
call fcn.0049f040
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x4d5d5b
mov ebx, dword [eax + 4]
jmp 0x4d5d5e
lea ebx, [eax + 4]
lea eax, [ebp - 8]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x4d5d74
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 1
push edi
call fcn.004b8f81
mov esi, eax
add esp, 8
test esi, esi
je 0x4d5dec
mov ecx, dword [ebp - 8]
push esi
push edi
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4d5de3
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 4]
push eax
push 0x4e8ed4
push esi
mov dword [ebp - 4], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4d5de3
cmp dword [ebp - 4], 0
je 0x4d5de3
push 0x14
call fcn.004b383b
add esp, 4
test eax, eax
je 0x4d5dec
mov edx, dword [ebp - 4]
movzx ecx, word [edx + 2]
movzx edx, word [edx]
push ecx
push edx
push esi
mov ecx, eax
call fcn.004d5ce0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.004b3730
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d5e00
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x504f68]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov edi, ecx
movzx ecx, word [edi + 8]
mov dx, word [edi + 0xc]
mov dword [ebp - 0x224], eax
mov word [ebp - 0x14], cx
mov word [ebp - 0x12], dx
call esi
movzx ecx, word [edi + 8]
mov word [ebp - 0x10], ax
mov ax, word [edi + 0xc]
mov edx, 0x4e4
mov word [ebp - 0xe], ax
mov word [ebp - 0xc], cx
mov word [ebp - 0xa], dx
call esi
mov word [ebp - 8], ax
mov eax, 0x4e4
mov word [ebp - 6], ax
xor esi, esi
lea ebx, [ebx]
movzx eax, word [ebp + esi*2 - 0x14]
movzx ecx, word [ebp + esi*2 - 0x12]
inc esi
push ebx
movzx ecx, cx
push ecx
movzx edx, ax
push edx
push str.StringFileInfo_04x_04x_ls
push 0x104
lea eax, [ebp - 0x21c]
push 0x104
push eax
inc esi
call fcn.004d7ec4
mov eax, dword [edi + 4]
add esp, 0x1c
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x220]
push edx
lea ecx, [ebp - 0x21c]
push ecx
push eax
mov dword [ebp - 0x220], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4d5ed9
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x4d5ef3
cmp esi, 8
jb 0x4d5e70
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3721
mov esp, ebp
pop ebp
ret 8
mov eax, edx
lea esi, [eax + 2]
jmp 0x4d5f00
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d5f00
mov ecx, dword [ebp - 0x224]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.004020b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.004b3721
mov esp, ebp
pop ebp
ret 8
Function at 0x4d8080
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
sub esp, 0x88
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, dword [esp + 0x98]
mov dword [esp + 0x40], eax
lea eax, [edi + 0x3c]
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x44], esi
xor esi, esi
push esi
lea edx, [edi + 0x44]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
xor eax, eax
lea edx, [esp + 0x10]
push edx
push 0x2c
lea ecx, [edi + 0x40]
mov dword [esp + 0x58], ecx
mov ecx, dword [edi + 0x24]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x68], ecx
push 0x2c
lea ecx, [esp + 0x50]
push ecx
push ebx
mov dword [esp + 0x58], 1
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
jne 0x4d813e
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x88
ret 4
cmp dword [esp + 0x10], 2
jne 0x4d8130
cmp dword [esp + 0x14], esi
je 0x4d8130
cmp dword [esp + 0x30], esi
je 0x4d8130
cmp dword [esp + 0x34], esi
je 0x4d8130
cmp dword [esp + 0x38], esi
je 0x4d8130
push esi
xor eax, eax
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
push 0x2c
lea eax, [esp + 0x74]
push eax
push ebx
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], esi
mov dword [esp + 0x7c], 3
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4d8130
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov dword [edi + 0x2c], ecx
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x34], eax
mov dword [edi + 0x30], edx
mov dword [edi + 0x38], ecx
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x88
ret 4
Function at 0x4025f4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x402646
mov dword [ebp - 0xc], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40263e
push 0x4f
push 0x402a6fb
push 6
call fcn.0044239c
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x40267f
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
push 0
push 1
xor eax, eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40267c
push 0x7d
push 0x402a6fb
push 6
call fcn.0044239c
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402693
mov eax, 0
jmp 0x4026fb
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4026c4
push 0x10b
push 0x402a6fb
push 6
call fcn.0044239c
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4026f3
push 0x12f
push 0x402a6fb
push 6
call fcn.0044239c
add esp, 0xc
mov eax, dword [ebp - 8]
jmp 0x4026fb
mov esp, ebp
pop ebp
ret 8
Function at 0x403817
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x403861
push 0x19
push 0x402b2ca
push 6
call fcn.0044239c
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x4038f8
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul qword [0x4c54d8]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.00402701
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.004444d0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4038b9
push ebx
call fcn.00442390
add esp, 4
pop eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00402b93
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 0xc]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4038f8
push 0xda
push 0x402b2ca
push 6
call fcn.0044239c
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x403912
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00442396
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x403917
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403928
push ebx
call fcn.00442390
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x40a10e
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push VariantClear
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40a14f
mov eax, 0x4c52b6
push eax
push 1
mov ebx, 0x130
call fcn.00444730
add esp, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 8], 2
fild dword [ebp - 4]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x4c54b7]
fstp qword [ebp - 0x24]
mov dword [ebp - 0x28], esp
fld qword [ebp - 0x24]
call fcn.00402701
push eax
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x40a1b3
push 0x89
push 0x402ac23
push 6
call fcn.0044239c
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40a1e2
push 0xc7
push 0x402ac23
push 6
call fcn.0044239c
add esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40a219
push 0xe2
push 0x402ac23
push 6
call fcn.0044239c
add esp, 0xc
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40a245
push 0x10a
push 0x402ac23
push 6
call fcn.0044239c
add esp, 0xc
call fcn.0040a302
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40a279
push 0x151
push 0x402ac23
push 6
call fcn.0044239c
add esp, 0xc
mov dword [ebp - 0x18], esp
xor eax, eax
call dword [sym.imp.USER32.dll_EmptyClipboard]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40a2a2
push 0x16b
push 0x402ac23
push 6
call fcn.0044239c
add esp, 0xc
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
push 1
xor eax, eax
call dword [sym.imp.USER32.dll_SetClipboardData]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40a2d3
push 0x17e
push 0x402ac23
push 6
call fcn.0044239c
add esp, 0xc
mov dword [ebp - 0x18], esp
xor eax, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40a2fc
push 0x1ac
push 0x402ac23
push 6
call fcn.0044239c
add esp, 0xc
mov esp, ebp
pop ebp
ret 4

Function at 0x40a33d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
push 1
push 0x4c52b6
push 0x4c52b6
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0x4c5980
push 0
xor eax, eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
cmp dword [ebp - 4], esp
je 0x40a38d
push 0
push 0x402a6f1
push 6
call fcn.0044239c
add esp, 0xc
mov esp, ebp
pop ebp
ret 4
Function at 0x416da2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push reloc.OLEAUT32.dll_SysStringLen
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x9dc
call fcn.00447200
add esp, 0x10
mov dword [ebp - 4], eax
push dword [ebp + 0x14]
call fcn.0040c1e2
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x416e16
push 0x60
push 0x402a74c
push 6
call fcn.0044239c
add esp, 0xc
jmp 0x416e1b
mov esp, ebp
pop ebp
ret 0x14
Function at 0x41b339
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
nop
cmp dword [ebp - 4], esp
je 0x41b370
push 0x39
push 0x40140a3
push 6
call fcn.0044239c
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 8]
push 0x421170
push 0xe
xor eax, eax
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x41b3ae
push 0x39
push 0x40140a3
push 6
call fcn.0044239c
add esp, 0xc
mov dword [0x4fdb74], eax
mov dword [ebp - 4], esp
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
nop
cmp dword [ebp - 4], esp
je 0x41b3e1
push 0x99
push 0x40140a3
push 6
call fcn.0044239c
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 8]
push 0x428e2f
push 0xd
xor eax, eax
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x41b41f
push 0x99
push 0x40140a3
push 6
call fcn.0044239c
add esp, 0xc
mov dword [0x4fdb78], eax
mov esp, ebp
pop ebp
ret
Function at 0x4472f0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x447359
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00443920
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x4473f0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x44740e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x447403
pop esi
ret

Function at 0x447420
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret

Function at 0x447440
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x4474aa
push esi
lea edi, [eax + 0x400]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x44747a
push esi
xor edi, edi
call dword [0x4fe7f0]
add esp, 4
test eax, eax
je 0x4474c6
push eax
push esi
call fcn.004493f0
add esp, 8
mov edi, eax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x448dd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x448df1
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x448e4b
inc edi
cmp edi, esi
jl 0x448de5
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x448e80
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x448e3a
cmp byte [eax], bl
je 0x448e55
cmp byte [eax + 1], bl
je 0x448e5e
cmp byte [eax + 2], bl
je 0x448e68
cmp byte [eax + 3], bl
je 0x448e74
add eax, 4
cmp eax, edi
jb 0x448e11
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
Function at 0x498e70
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x498e8e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x498e83
pop esi
ret

Function at 0x4a9827
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a9869
call fcn.004ac906
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
cmp eax, edi
je 0x4a9869
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
cmp eax, edi
jne 0x4a9860
xor eax, eax
jmp 0x4a9871
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a9877
pop edi
pop esi
pop ebx
ret 4

Function at 0x4aa57e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4ae1e4
call fcn.0049c150
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004ac906
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x4aa5bd
call fcn.004ac906
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.kernel32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4aa5cb
push edi
call dword [sym.imp.kernel32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4aa5d9
or eax, 0xffffffff
jmp 0x4aa6c1
mov ecx, esi
call fcn.004aa4f4
mov dword [ebp - 0x14], eax
call fcn.004a7e72
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x4aa610
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_IsWindowEnabled]
test eax, eax
je 0x4aa610
push edi
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.004a7e26
push dword [ebp - 0x14]
call fcn.004a7958
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004aa28c
cmp eax, edi
je 0x4aa683
test byte [esi + 0x24], 0x10
je 0x4aa651
push 4
mov ecx, esi
pop ebx
call fcn.004a7358
test ah, 1
je 0x4aa649
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004a9979
cmp dword [esi + 0x1c], edi
je 0x4aa683
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004a738c
jmp 0x4aa683
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x4aa697
push 1
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4aa6b0
call dword [sym.imp.user32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4aa6b0
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.004aa52e
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret