joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b0d90
Capabilities:
Get file attributes
Log keystrokes via polling

Disassembly:
mov eax, 0x100c
call fcn.004c1c40
mov eax, dword [0x4ec0b4]
xor eax, esp
mov dword [esp + 0x1008], eax
cmp dword [0x534c04], 0
push ebx
mov ebx, dword [esp + 0x1014]
jne 0x4b0ed4
push ebp
mov ebp, dword [sym.imp.SHELL32.dll_DragQueryFileW]
push edi
push 0
push 0
push 0xffffffffffffffff
push ebx
call ebp
mov edi, eax
cmp edi, 1
jne 0x4b0e72
push 0x800
lea ecx, [esp + 0x18]
xor eax, eax
push ecx
push eax
push ebx
mov word [esp + 0x24], ax
call ebp
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_WindowFromPoint]
cmp byte [0x533b59], 0
je 0x4b0e22
cmp eax, dword [0x5404f0]
je 0x4b0e4b
cmp eax, dword [0x5404d4]
je 0x4b0e4b
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4b0e4b
push 1
lea eax, [esp + 0x18]
push eax
mov ecx, 0x5404f0
call fcn.00451320
cmp eax, 1
je 0x4b0ed2
push 7
push str.rarreg.
lea ecx, [esp + 0x1c]
push ecx
call fcn.00460c50
push eax
call fcn.004876b0
test eax, eax
jne 0x4b0e72
lea edx, [esp + 0x14]
push edx
call fcn.004ae0e0
jmp 0x4b0ed2
push esi
push 0
call fcn.0049bb20
mov ecx, 0x55247c
call fcn.00480170
xor esi, esi
test edi, edi
jle 0x4b0eb2
lea ebx, [ebx]
push 0x800
lea eax, [esp + 0x1c]
push eax
push esi
push ebx
call ebp
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x55247c
call fcn.004801a0
inc esi
cmp esi, edi
jl 0x4b0e90
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
push 1
shr eax, 0xf
and al, 1
mov byte [esp + 0x14], al
mov edx, dword [esp + 0x14]
push edx
push 0
call fcn.0049e700
pop esi
pop edi
pop ebp
mov ecx, dword [esp + 0x100c]
pop ebx
xor ecx, esp
call fcn.004c1c22
add esp, 0x100c
ret 4

Function at 0x4b1300
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x2004
call fcn.004c1c40
mov eax, dword [0x4ec0b4]
xor eax, esp
mov dword [esp + 0x2000], eax
push esi
push 0x1000
push 0
lea eax, [esp + 0x100c]
push eax
push str.rarreg.key
push 0x4d89fc
call fcn.0046cf00
mov esi, eax
test esi, esi
je 0x4b1396
push edi
push 0x800
lea ecx, [esp + 0xc]
push ecx
push str.Rar_RK
call fcn.0049faf0
mov edi, eax
test edi, edi
je 0x4b1386
push edi
push esi
lea edx, [esp + 0x1010]
push 1
push edx
call fcn.004c4800
push edi
call fcn.004c4622
add esp, 0x14
lea eax, [esp + 8]
push eax
call fcn.004ae0e0
lea ecx, [esp + 8]
push ecx
call fcn.0043cde0
push str.rarreg.key
push 0x4d89fc
call fcn.0046ca60
pop edi
mov ecx, dword [esp + 0x2004]
pop esi
xor ecx, esp
call fcn.004c1c22
add esp, 0x2004
ret
Function at 0x4b13b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1028
call fcn.004c1c40
mov eax, dword [0x4ec0b4]
xor eax, esp
mov dword [esp + 0x1024], eax
push esi
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x20], 0x50100
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push str.VerInfo
push str.General
call fcn.0046cf00
push 1
push 0x800
lea edx, [esp + 0x30]
push edx
call fcn.00461040
push 0x800
lea eax, [esp + 0x2c]
push eax
call fcn.004607d0
push 0x800
push str.version.dat
lea ecx, [esp + 0x30]
push ecx
call fcn.0047fc20
push 0x4da470
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x18], 0
call fcn.0043d170
mov esi, eax
test esi, esi
je 0x4b145d
push esi
push 0xc
lea eax, [esp + 0x18]
push 1
push eax
call fcn.004c5285
push esi
call fcn.004c4622
add esp, 0x14
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
je 0x4b150c
mov ecx, dword [esp + 0x10]
push 0xc
cmp ecx, eax
je 0x4b14d8
lea ecx, [esp + 0x20]
push ecx
push str.VerInfo
push str.General
call fcn.0046ce60
push 0x4d93b4
lea edx, [esp + 0x2c]
push edx
call fcn.0043d170
mov esi, eax
test esi, esi
je 0x4b14b8
push esi
push 0xc
lea eax, [esp + 0x24]
push 1
push eax
call fcn.004c4800
push esi
call fcn.004c4622
add esp, 0x14
mov dword [0x534bf8], 0
pop esi
mov ecx, dword [esp + 0x1024]
xor ecx, esp
call fcn.004c1c22
add esp, 0x1028
ret
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x1c]
push str.VerInfo
push str.General
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
call fcn.0046ce60
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jne 0x4b1553
cmp dword [esp + 0x10], eax
je 0x4b1553
mov edx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 8]
push 0x4d93b4
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
call fcn.0043d170
mov esi, eax
test esi, esi
je 0x4b1553
push esi
push 0xc
lea ecx, [esp + 0xc]
push 1
push ecx
call fcn.004c4800
push esi
call fcn.004c4622
add esp, 0x14
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
xor eax, eax
push 1
xor esi, esi
sub ecx, edx
push eax
sbb esi, eax
push esi
push ecx
call fcn.004c2390
mov ecx, dword [esp + 8]
xor esi, esi
sub eax, ecx
mov ecx, dword [esp + 0x20]
sbb edx, esi
push esi
add eax, ecx
push 0x989680
adc edx, esi
push edx
push eax
call fcn.004c3710
push esi
push 0xe10
push edx
push eax
call fcn.004c3710
push esi
push 0x18
push edx
push eax
call fcn.004c3710
mov dword [0x534bf8], eax
test eax, eax
jge 0x4b15b6
mov dword [0x534bf8], 0x168
mov ecx, dword [esp + 0x1028]
pop esi
xor ecx, esp
call fcn.004c1c22
add esp, 0x1028
ret
Function at 0x4b4b80
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x2044
call fcn.004c1c40
mov eax, dword [0x4ec0b4]
xor eax, esp
mov dword [esp + 0x2040], eax
mov eax, dword [esp + 0x205c]
push ebx
mov ebx, dword [esp + 0x2064]
push ebp
mov ebp, dword [esp + 0x205c]
push esi
mov esi, dword [esp + 0x2058]
push edi
mov edi, dword [esp + 0x2060]
push 0x3c
lea ecx, [esp + 0x18]
push 0
push ecx
mov dword [esp + 0x1c], eax
call fcn.004c2670
add esp, 0xc
cmp byte [esp + 0x2068], 0
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x18], 0x500
jne 0x4b4bf6
mov dword [esp + 0x18], 0x540
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebp
call fcn.00460c50
cmp eax, esi
jne 0x4b4c30
push esi
lea edx, [esp + 0x54]
push str.._s
push edx
mov edx, 0x1000
call fcn.00407810
lea eax, [esp + 0x5c]
add esp, 0xc
mov dword [esp + 0x24], eax
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [esp + 0x14]
mov ebx, 1
push ecx
mov dword [esp + 0x34], ebx
mov byte [0x533b5b], bl
call esi
test eax, eax
jne 0x4b4c61
cmp dword [esp + 0x20], eax
je 0x4b4c61
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x24], eax
call esi
mov byte [0x533b5b], 0
test eax, eax
je 0x4b4d12
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x483
je 0x4b4d12
cmp byte [esp + 0x2068], 0
jne 0x4b4d0e
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x4b4cc2
mov eax, dword [0x57b010]
mov edx, dword [esp + 0x34]
mov dword [eax*4 + 0x57afd0], ecx
mov dword [eax*4 + 0x57af90], edx
inc eax
and eax, 0x8000000f
jns 0x4b4cbb
dec eax
or eax, 0xfffffff0
inc eax
mov dword [0x57b010], eax
jmp 0x4b4d04
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor esi, esi
lea ebx, [ebx]
mov eax, dword [esi + 0x57af90]
cmp eax, dword [esp + 0x34]
jne 0x4b4cf8
mov ecx, dword [esi + 0x57afd0]
push 0
push ecx
call edi
cmp eax, 0x102
jne 0x4b4cf8
mov edx, dword [esi + 0x57afd0]
mov dword [esp + 0x4c], edx
add esi, 4
cmp esi, 0x40
jl 0x4b4cd0
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4b4d0e
mov dword [eax], ecx
mov al, bl
jmp 0x4b4d14
xor al, al
mov ecx, dword [esp + 0x2050]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c1c22
add esp, 0x2044
ret 0x1c
Function at 0x4b4d30
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4d6e7b
mov eax, dword fs:[0]
push eax
mov eax, 0x6060
call fcn.004c1c40
mov eax, dword [0x4ec0b4]
xor eax, esp
mov dword [esp + 0x605c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ec0b4]
xor eax, esp
push eax
lea eax, [esp + 0x6074]
mov dword fs:[0], eax
mov eax, dword [esp + 0x6088]
mov ebp, dword [esp + 0x6084]
push eax
mov edi, ecx
call fcn.00460c50
mov ecx, edi
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4b4d90
sub ecx, esi
mov edx, eax
sar ecx, 1
lea ebx, [edx + 2]
mov si, word [edx]
add edx, 2
test si, si
jne 0x4b4da4
sub edx, ebx
sar edx, 1
lea ecx, [edx + ecx + 1]
cmp ecx, 0x1000
jae 0x4b4eec
push 0x1000
lea edx, [esp + 0x4074]
push edx
push eax
push edi
call fcn.00460820
lea ecx, [esp + 0x14]
call fcn.00480330
mov dword [esp + 0x607c], 0
push 0x1000
push 0x4d89fc
lea eax, [esp + 0x1078]
push eax
push str.ViewerIgnoreModifications
push str.Viewer
call fcn.0046ceb0
cmp word [esp + 0x1070], si
je 0x4b4e2c
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x107c]
push edx
call fcn.004805c0
push 0x800
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x1c]
call fcn.004803b0
test al, al
je 0x4b4ed8
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ecx]
push 0x800
lea ecx, [esp + 0x3074]
push ecx
lea edx, [esp + 0x78]
push edx
call edi
lea eax, [esp + 0x3072]
push 0x4e083c
push eax
call fcn.004c58c6
mov esi, eax
add esp, 8
test esi, esi
je 0x4b4f18
xor ecx, ecx
mov word [esi], cx
add esi, 4
cmp word [esi], cx
jne 0x4b4e95
mov esi, 0x4d8800
push 4
push ebp
lea edx, [esp + 0x3078]
push edx
call fcn.004534e0
test al, al
je 0x4b4ebd
push 4
lea eax, [esp + 0x4074]
push eax
push esi
call fcn.004534e0
test al, al
jne 0x4b4f21
push 0x800
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004803b0
test al, al
jne 0x4b4e50
mov dword [esp + 0x607c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00401b50
xor al, al
mov ecx, dword [esp + 0x6074]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x605c]
xor ecx, esp
call fcn.004c1c22
add esp, 0x606c
ret 8
lea esi, [esp + 0x3070]
jmp 0x4b4ea9
mov dword [esp + 0x607c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00401b50
mov al, 1
jmp 0x4b4eee
Function at 0x4b6bc0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4d6fae
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4ec0b4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
test byte [0x583264], 1
jne 0x4b6c19
or dword [0x583264], 1
mov dword [esp + 0x14], 0
mov ecx, 0x57f140
call fcn.004b4390
push 0x4d77f0
call fcn.004c4c16
add esp, 4
mov dword [esp + 0x14], 0xffffffff
mov esi, dword [esp + 0x1c]
push 1
push esi
mov ecx, 0x57f140
call fcn.004b5410
mov bl, byte [esp + 0x20]
push 0
test bl, bl
push 0x57f140
sete al
movzx ecx, al
push ecx
push 0
push 0
push esi
push 0
call fcn.004b4b80
test al, al
jne 0x4b6c98
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x57f148]
cmp eax, 0xffffffff
je 0x4b6c71
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x57f148], 0xffffffff
mov ecx, 0x583162
call fcn.00479380
cmp esi, 0x4c7
sete al
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 8
test bl, bl
je 0x4b6cb5
push 0x57f140
push 0x10000
push 0x4b5530
call fcn.004c38bb
add esp, 0xc
jmp 0x4b6cda
mov eax, dword [0x57f148]
cmp eax, 0xffffffff
je 0x4b6cd0
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x57f148], 0xffffffff
mov ecx, 0x583162
call fcn.00479380
mov al, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 8

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

Disassembly:
push esi
push 0x533b60
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4b6d29
push 0x40
push 0x2bc
call fcn.00475cc0
push eax
push 0x2bd
call fcn.00475cc0
push eax
mov eax, dword [0x535cac]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
ret
push 0
push 0x533b60
mov ecx, esi
call fcn.004b5d80
pop esi
ret
Function at 0x4b6d40
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4d6fde
mov eax, dword fs:[0]
push eax
mov eax, 0x3004
call fcn.004c1c40
mov eax, dword [0x4ec0b4]
xor eax, esp
mov dword [esp + 0x3000], eax
push esi
mov eax, dword [0x4ec0b4]
xor eax, esp
push eax
lea eax, [esp + 0x300c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x301c]
test esi, esi
je 0x4b6dc5
push 0x4e0828
push esi
call fcn.00460e70
test al, al
jne 0x4b6d9f
call fcn.004b4860
test al, al
je 0x4b6dc5
push 0x30
push 0x65
call fcn.00475cc0
push eax
push 0x596
call fcn.00475cc0
push eax
mov eax, dword [0x535cac]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4b6f2e
cmp byte [0x533b59], 0
jne 0x4b6e01
push 0
push 0
push 1
push 0
push 0
push esi
push 0
call fcn.004b4b80
test al, al
jne 0x4b6f2e
push esi
push 0x201
call fcn.00475cc0
push eax
call fcn.004ad8e0
add esp, 8
jmp 0x4b6f2e
push 1
push 0x800
lea ecx, [esp + 0x10]
push ecx
push str.Rar_EX
call fcn.0049fbc0
test al, al
je 0x4b6f2e
push 0x800
lea edx, [esp + 0x200c]
push edx
call fcn.004a0610
lea eax, [esp + 8]
push eax
call fcn.004a05b0
push 1
call fcn.0049ba40
push 0x800
push 0x55147a
mov ecx, 0x542618
call fcn.004153c0
mov ecx, dword [0x542824]
mov dword [0x54e418], ecx
push 0x4d8800
mov ecx, 0x55247c
call fcn.004801a0
push 0
push 0
mov ecx, 0x542618
mov dword [0x54d408], 4
call fcn.00419e80
cmp byte [0x533b58], 0
jne 0x4b6f2e
lea edx, [esp + 0x1008]
push edx
push esi
call fcn.00460cb0
push 0x800
lea eax, [esp + 0x100c]
push eax
mov ecx, eax
push ecx
call fcn.00462230
test byte [0x58738c], 1
jne 0x4b6ef6
or dword [0x58738c], 1
mov dword [esp + 0x3014], 0
mov ecx, 0x583268
call fcn.004b4390
push 0x4d7840
call fcn.004c4c16
add esp, 4
mov dword [esp + 0x3014], 0xffffffff
push 0
lea edx, [esp + 0x100c]
push edx
mov ecx, 0x583268
call fcn.004b5410
lea eax, [esp + 0x2008]
push eax
call fcn.004a05b0
push 0x583268
push 0x10000
push 0x4b5530
call fcn.004c38bb
add esp, 0xc
mov ecx, dword [esp + 0x300c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x3000]
xor ecx, esp
call fcn.004c1c22
add esp, 0x3010
ret 4
Function at 0x4b8300
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
push edi
push 0x5893b0
call fcn.004283d0
mov edi, dword [esp + 0xc]
mov eax, 0x12345678
mov edx, 0x23456789
mov esi, 0x34567890
mov dword [0x5897b0], eax
mov dword [0x5897b4], edx
mov dword [0x5897b8], esi
mov cl, byte [edi]
test cl, cl
je 0x4b8390
jmp 0x4b8340
movsx ecx, cl
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x5893b0]
inc edi
movzx ecx, al
add ecx, edx
imul ecx, ecx, 0x8088405
inc ecx
mov edx, ecx
shr ecx, 0x18
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x5893b0]
mov dword [0x5897b0], eax
mov dword [0x5897b4], edx
mov dword [0x5897b8], esi
mov cl, byte [edi]
test cl, cl
jne 0x4b8340
pop edi
pop esi
ret 4
Function at 0x4b88e0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
cmp byte [0x54b184], 0
push ebp
mov ebp, dword [esp + 0x10]
je 0x4b897b
push ebx
mov ebx, dword [esp + 0x10]
imul ebx, ebp
push edi
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x4b8979
push esi
movsx eax, byte [edi]
mov esi, dword [0x5897b0]
xor eax, esi
and eax, 0xff
mov ecx, dword [0x5897b8]
shr esi, 8
xor esi, dword [eax*4 + 0x5893b0]
mov edx, ecx
mov eax, esi
mov dword [0x5897b0], eax
movzx eax, al
add eax, dword [0x5897b4]
and edx, 0xfffd
imul eax, eax, 0x8088405
inc eax
mov dword [0x5897b4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x5893b0]
or edx, 2
mov dword [0x5897b8], ecx
mov ecx, edx
xor ecx, 1
imul ecx, edx
shr ecx, 8
xor byte [edi], cl
inc edi
sub ebx, 1
jne 0x4b8904
pop esi
pop edi
pop ebx
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0
push ebp
push edx
push eax
call fcn.0043f6d0
pop ebp
ret 0xc
Function at 0x4bc380
Capabilities:
Read file on windows

Disassembly:
push ecx
push eax
push 4
lea ecx, [esp + 8]
push 1
push ecx
call fcn.004c5285
add esp, 0x10
cmp eax, 4
je 0x4bc39e
xor eax, eax
pop ecx
ret 4
mov ecx, dword [esp + 8]
lea edx, [esp]
xor eax, eax
sub ecx, edx
lea esp, [esp]
lea edx, [ecx + eax]
mov dl, byte [esp + edx]
cmp dl, byte [esp + eax]
jne 0x4bc3c1
inc eax
cmp eax, 4
jl 0x4bc3b0
xor ecx, ecx
cmp eax, 4
sete cl
mov eax, ecx
pop ecx
ret 4
Function at 0x4c1970
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c199d
test al, 0x10
jne 0x4c1994
and eax, 0xffffffdf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4c199d
mov eax, 1
pop esi
ret 4
push esi
push 0x4bf
call fcn.00475cc0
push eax
mov eax, dword [0x51ff6c]
push eax
call fcn.004adf30
add esp, 0xc
xor eax, eax
pop esi
ret 4

Function at 0x4c1c22
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ec0b4]
jne 0x4c1c2c
repz ret
jmp fcn.004c6f43

Function at 0x4d035f
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.004c7e76
and dword [ebp - 4], 0
cmp dword [0x58aa0c], 0
mov ebx, eax
jne 0x4d0410
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4d04c1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4d04c1
push eax
call fcn.004c7e04
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x58aa0c], eax
call esi
push eax
call fcn.004c7e04
mov dword [esp], 0x4e24d4
push edi
mov dword [0x58aa10], eax
call esi
push eax
call fcn.004c7e04
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x58aa14], eax
call esi
push eax
call fcn.004c7e04
pop ecx
mov dword [0x58aa1c], eax
test eax, eax
je 0x4d0410
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004c7e04
pop ecx
mov dword [0x58aa18], eax
mov eax, dword [0x58aa18]
cmp eax, ebx
je 0x4d0468
cmp dword [0x58aa1c], ebx
je 0x4d0468
push eax
call fcn.004c7e7f
push dword [0x58aa1c]
mov esi, eax
call fcn.004c7e7f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4d0468
test edi, edi
je 0x4d0468
call esi
test eax, eax
je 0x4d045f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4d045f
test byte [ebp - 0xc], 1
jne 0x4d0468
or dword [ebp + 0x10], 0x200000
jmp 0x4d04a1
mov eax, dword [0x58aa10]
cmp eax, ebx
je 0x4d04a1
push eax
call fcn.004c7e7f
pop ecx
test eax, eax
je 0x4d04a1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4d04a1
mov eax, dword [0x58aa14]
cmp eax, ebx
je 0x4d04a1
push eax
call fcn.004c7e7f
pop ecx
test eax, eax
je 0x4d04a1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x58aa0c]
call fcn.004c7e7f
pop ecx
test eax, eax
je 0x4d04c1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4d04c3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403cba
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
push str.Fatal:__s_n
call fcn.00407941
add esp, 8
push str.pause
call fcn.00407560
add esp, 4
push 1
call fcn.0040786c
pop ebp
ret
Function at 0x407011
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jb 0x407035
jmp 0x40703f
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x407025
mov esp, ebp
pop ebp
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x408e20
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040a87c
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x408e41
test byte [esp + 8], 2
je 0x408e41
mov dword [0x418060], 0xd
mov dword [0x418064], 5
jmp 0x408e1c
xor eax, eax
ret

Function at 0x40a6b5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4109f0
cmp edx, dword [eax]
je 0x40a6d7
add eax, 8
inc ecx
cmp eax, 0x410a80
jl 0x40a6c8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4109f0]
jne 0x40a805
mov eax, dword [0x4180b4]
cmp eax, 1
je 0x40a7df
test eax, eax
jne 0x40a708
cmp dword [0x410478], 1
je 0x40a7df
cmp edx, 0xfc
je 0x40a805
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a73f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407650
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407740
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40a782
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407740
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40f50c
push edi
call fcn.00407e60
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407650
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407660
lea eax, [ebp - 0xa0]
push 0x40f4ec
push eax
call fcn.00407660
push dword [esi + 0x4109f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407660
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040d16f
add esp, 0x2c
pop edi
jmp 0x40a805
lea eax, [ebp + 8]
lea esi, [esi + 0x4109f4]
push 0
push eax
push dword [esi]
call fcn.00407740
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4079e7
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jne 0x407b77
lea eax, [ebp - 4]
push eax
push 0x412508
push 1
push ebx
push 0x412388
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x407b71
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x4127e8
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jne 0x407b68
push esi
lea eax, [ebp - 0x418]
push 0x104
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push eax
call fcn.004079a0
pop ecx
mov esi, eax
mov eax, dword [ebp - 4]
pop ecx
lea edx, [ebp - 0x210]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004079a0
pop ecx
mov esi, eax
mov eax, dword [ebp - 4]
pop ecx
lea edx, [ebp - 0x210]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x24]
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004079a0
mov esi, eax
push esi
call fcn.0040d026
mov ecx, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ecx]
push eax
lea eax, [ebp - 0x210]
push eax
push ecx
call dword [edx + 0x44]
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004079a0
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004079a0
mov esi, eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040d026
mov ecx, dword [ebp - 4]
add esp, 0x14
and eax, 7
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x3c]
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004079a0
mov esi, eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040d026
add esp, 0xc
cmp al, bl
je 0x407b25
mov ecx, dword [ebp - 4]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x34]
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004079a0
mov eax, dword [ebp - 4]
pop ecx
pop ecx
lea edx, [ebp - 0x210]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x2c]
push dword [ebp + 8]
call fcn.0040c531
mov eax, dword [ebp - 8]
pop ecx
lea edx, [ebp - 0x418]
push ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop esi
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop ebx
leave
ret