joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ff10
Capabilities:
Set registry value

Disassembly:
mov eax, dword [0x13b516c]
sub esp, 0x118
test eax, eax
push esi
je 0x410101
mov al, byte [0x13b4418]
test al, al
je 0x410101
push 0x13b4418
lea eax, [esp + 0x1c]
push str._sSystem
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0x20006
push 0
lea edx, [esp + 0x24]
push edx
push reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40ff95
push 0
lea eax, [esp + 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
push reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4100e7
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
push 0x13b43d8
push 3
push 0
push str.gbFullScreenFlag
push edx
call esi
test eax, eax
je 0x40ffc6
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4100e7
mov eax, dword [0x13b43c4]
test eax, eax
je 0x40ffee
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov dword [0x487f6c], edx
mov dword [0x487f70], eax
mov ecx, dword [esp + 4]
push 4
push 0x487f6c
push 3
push 0
push str.gnWindowLeft
push ecx
call esi
test eax, eax
je 0x410019
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4100e7
mov eax, dword [esp + 4]
push 4
push 0x487f70
push 3
push 0
push str.gnWindowTop
push eax
call esi
test eax, eax
je 0x410044
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4100e7
mov edx, dword [esp + 4]
push 4
push 0x487f34
push 3
push 0
push str.gdwWindowWidth
push edx
call esi
test eax, eax
je 0x41006c
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4100e7
mov ecx, dword [esp + 4]
push 4
push 0x487f38
push 3
push 0
push str.gdwWindowHeight
push ecx
call esi
test eax, eax
je 0x410094
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4100e7
mov eax, dword [esp + 4]
push 4
push 0x487f44
push 3
push 0
push str.gdwWindowBpp
push eax
call esi
test eax, eax
je 0x4100bc
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4100e7
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
test eax, eax
je 0x4100d8
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4100e7
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x410101
push str.Registry_Write_Error.
push 0x13b41c4
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
pop esi
add esp, 0x118
ret
mov eax, 1
pop esi
add esp, 0x118
ret
Function at 0x410110
Capabilities:
Query or enumerate registry value

Disassembly:
mov al, byte [0x13b51a8]
sub esp, 0xc
test al, al
je 0x41017e
mov ecx, dword [reloc.DSOUND.dll_DirectSoundCreate]
lea eax, [esp]
push eax
push 0x20019
push 0
push 0x13b51a8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41017e
mov eax, dword [esp + 0x14]
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0x10]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x20], 3
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x410194
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Registry_Read_Error.
push 0x13b41c4
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
add esp, 0xc
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x41017e
mov eax, 1
add esp, 0xc
ret

Function at 0x4101b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov al, byte [0x13b51a8]
sub esp, 8
test al, al
je 0x410216
mov ecx, dword [reloc.DSOUND.dll_DirectSoundCreate]
lea eax, [esp]
push eax
push 0x20019
push 0
push 0x13b51a8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410216
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41022c
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Registry_Read_Error.
push 0x13b41c4
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
add esp, 8
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x410216
mov eax, 1
add esp, 8
ret

Function at 0x410250
Capabilities:
Set registry value

Disassembly:
push ecx
mov al, byte [0x13b51a8]
test al, al
je 0x4102cf
mov ecx, dword [reloc.DSOUND.dll_DirectSoundCreate]
lea eax, [esp]
push eax
push 0x20006
push 0
push 0x13b51a8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4102a5
mov eax, dword [reloc.DSOUND.dll_DirectSoundCreate]
push 0
lea edx, [esp + 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x13b51a8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4102cf
mov edx, dword [esp + 8]
mov eax, dword [esp]
push 4
lea ecx, [esp + 0x10]
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4102e3
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Registry_Write_Error.
push 0x13b41c4
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
test eax, eax
je 0x4102f9
mov eax, dword [esp]
push eax
jmp 0x4102c9
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4102cf
mov eax, 1
pop ecx
ret
Function at 0x410310
Capabilities:
Set registry value

Disassembly:
push ecx
mov al, byte [0x13b51a8]
test al, al
je 0x410397
mov ecx, dword [reloc.DSOUND.dll_DirectSoundCreate]
lea eax, [esp]
push eax
push 0x20006
push 0
push 0x13b51a8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x410365
mov eax, dword [reloc.DSOUND.dll_DirectSoundCreate]
push 0
lea edx, [esp + 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x13b51a8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x410397
push esi
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 4]
push eax
push esi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
je 0x4103ab
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Registry_Write_Error.
push 0x13b41c4
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
pop ecx
ret
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
test eax, eax
je 0x4103c1
mov edx, dword [esp]
push edx
jmp 0x410391
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x410397
mov eax, 1
pop ecx
ret

Function at 0x4103e0
Capabilities:
Allocate or change rwx memory
Encode data using xor

Disassembly:
push ecx
mov eax, dword [0x13b2da4]
test eax, eax
je 0x4103fd
mov eax, dword [0x13b2da8]
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push ebx
mov ebx, dword [0x482af0]
push esi
push 0x40
push 0x1000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x41041f
pop esi
pop ebx
pop ecx
ret
mov eax, dword [0x4bd150]
test eax, eax
jne 0x410487
cmp ebx, 0x400
push edi
mov edi, ebx
jb 0x410438
mov edi, 0x400
call fcn.004147b0
xor ecx, ecx
test edi, edi
jle 0x410477
push ebp
mov eax, ecx
cdq
mov ebp, 0xb4
idiv ebp
mov al, byte [ecx + 0x482af4]
sub edx, 0x5a
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fsin
fstp dword [esp + 0x10]
mov dl, byte [esp + 0x10]
xor al, dl
mov byte [ecx + 0x482af4], al
inc ecx
cmp ecx, edi
jl 0x410444
pop ebp
call fcn.00414800
mov dword [0x4bd150], 1
pop edi
push 0x482af4
push esi
call fcn.00409af0
add esp, 8
xor eax, eax
mov dword [0x13b2da4], esi
mov dword [0x13b2da8], esi
mov dword [0x13b2dac], esi
mov dword [0x13b2db0], esi
pop esi
mov dword [0x13b2db8], eax
mov dword [0x13b2dbc], ebx
mov dword [0x13b3d7c], eax
mov dword [0x13b2dcc], 1
mov dword [0x13b3d78], 0xffffffff
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x413130
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x13b43d8]
sub esp, 0x10
test eax, eax
je 0x4132d3
mov eax, dword [0x487f6c]
mov edx, dword [0x487f34]
mov ecx, dword [0x487f70]
push esi
mov esi, dword [sym.imp.USER32.dll_SetWindowLongA]
add edx, eax
mov dword [esp + 4], eax
mov eax, dword [0x487f38]
push 0x50010
add eax, ecx
mov dword [esp + 0xc], ecx
mov ecx, dword [0x13b43c4]
push 0xffffffffffffffec
push ecx
mov dword [0x13b52c8], 0
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
call esi
mov edx, dword [0x487f74]
mov eax, dword [0x13b43c4]
push edx
push 0xfffffffffffffff0
push eax
call esi
mov eax, dword [0x13b52cc]
test eax, eax
je 0x4131bf
mov ecx, dword [0x13b43c4]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetMenu]
push 0xf
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add dword [esp + 0x10], eax
mov edx, dword [0x487f74]
push 0x50010
push 0
push edx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [0x487f2c]
test eax, eax
je 0x41323c
push 0
push 0
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
mov eax, dword [0x4b3d9c]
test eax, eax
je 0x41323c
mov eax, dword [0x4b3da0]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x60]
cmp eax, 0x887601c2
jne 0x413211
mov eax, dword [0x4b3da0]
mov edx, dword [eax]
push eax
call dword [edx + 0x6c]
mov esi, 0x7ddfa8
mov eax, dword [esi]
test eax, eax
je 0x413231
mov ecx, dword [eax]
push eax
call dword [ecx + 0x60]
cmp eax, 0x887601c2
jne 0x413231
mov eax, dword [esi]
mov edx, dword [eax]
push eax
call dword [edx + 0x6c]
add esi, 0x2c
cmp esi, 0x7e0ba8
jl 0x413216
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 4]
push 0x20
sub eax, ecx
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [0x487f6c]
sub ecx, edx
mov edx, dword [0x487f70]
push ecx
mov ecx, dword [0x13b43c4]
push edx
push eax
push 0xfffffffffffffffe
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [0x13b43c4]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x13b43c4]
push eax
mov eax, dword [0x13b43e4]
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
mov ecx, dword [0x487f30]
lea eax, [edx*4 + 0x7ddf90]
push eax
push ecx
call fcn.0040d340
add esp, 0xc
push 1
push 0
push 0
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [0x487f60]
test eax, eax
mov dword [0x13b43d8], 0
pop esi
jne 0x4132fc
push 0
call dword [sym.imp.USER32.dll_SetCursor]
add esp, 0x10
ret
mov eax, dword [0x13b43e4]
mov edx, dword [0x13b43c4]
lea ecx, [eax + eax*4]
push edx
lea edx, [eax + ecx*2]
mov ecx, dword [0x487f30]
lea eax, [edx*4 + 0x7ddf90]
push eax
push ecx
call fcn.0040d340
add esp, 0xc
add esp, 0x10
ret
Function at 0x413810
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x413838
mov eax, dword [esp + 0x1c]
shl eax, 4
mov dword [eax + 0x7db92c], edi
mov dword [eax + 0x7db928], edi
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
mov esi, dword [esp + 0x1c]
shl esi, 4
mov eax, dword [esi + 0x7db92c]
and eax, edi
cmp eax, edi
mov dword [esi + 0x7db92c], edi
jne 0x413943
mov eax, dword [esi + 0x7db928]
test eax, eax
je 0x413943
cmp eax, 1
mov eax, dword [0x488320]
jne 0x4138d6
test eax, eax
je 0x4138bf
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0
push 0x3e8
push edx
push eax
call fcn.00445240
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push ecx
push edx
push eax
call fcn.00445190
mov edx, dword [0x487f68]
mov dword [esi + 0x7db930], eax
jmp 0x41399d
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [0x487f68]
mov dword [esi + 0x7db930], eax
jmp 0x41399d
test eax, eax
je 0x413919
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 0
push 0x3e8
push edx
push eax
call fcn.00445240
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push ecx
push edx
push eax
call fcn.00445190
jmp 0x41391f
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [esi + 0x7db930]
mov ecx, dword [esi + 0x7db934]
sub eax, edx
cmp eax, ecx
jb 0x41393b
mov dword [esi + 0x7db928], 1
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
mov eax, dword [0x488320]
test eax, eax
je 0x41398b
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0
push 0x3e8
push ecx
push edx
call fcn.00445240
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push ecx
push edx
push eax
call fcn.00445190
jmp 0x413991
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [0x487f64]
mov dword [esi + 0x7db930], eax
mov dword [esi + 0x7db934], edx
mov eax, edi
pop edi
mov dword [esi + 0x7db928], 2
pop esi
add esp, 0x10
ret

Function at 0x413bb0
Capabilities:
Log keystrokes via application hook

Disassembly:
sub esp, 0x98
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x14], 1
push 0
jne 0x413be8
lea ecx, [esp + 4]
push ecx
push 1
push 0x61
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
add esp, 0x98
ret
mov edx, dword [0x7e17c4]
push edx
push 0x413ac0
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x13b440c], eax
add esp, 0x98
ret
Function at 0x413fd0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
xor edx, edx
mov dx, word [eax + 0x14]
xor ecx, ecx
mov cx, word [eax + 6]
lea eax, [edx + eax + 0x18]
xor edx, edx
test ecx, ecx
jle 0x414037
cmp dword [eax + 1], 0x786f6972
je 0x413ffc
add eax, 0x28
inc edx
cmp edx, ecx
jl 0x413fea
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
add edx, ecx
mov ecx, dword [0x7d9ec8]
mov edx, dword [edx + ecx - 8]
mov dword [0x7e17c0], edx
mov edx, dword [eax + 8]
add edx, dword [eax + 0xc]
mov ecx, dword [edx + ecx - 4]
mov dword [0x7e27c8], ecx
mov edx, dword [eax + 0x10]
mov dword [0x7dd770], edx
mov dword [0x4c3160], 1
ret

Function at 0x4140e0
Capabilities:
Check for software breakpoints

Disassembly:
mov eax, dword [0x7d9ab0]
mov ecx, dword [0x7da2d0]
xor edx, edx
test eax, eax
push esi
jbe 0x4140fc
cmp byte [ecx], 0xcc
jne 0x4140f8
inc edx
inc ecx
dec eax
jne 0x4140f2
mov esi, dword [0x488624]
push eax
mov eax, esp
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
cmp eax, eax
je 0x414114
addps xmm7, xmmword [ebx]
adc eax, 0x7da7e8
pop eax
cmp edx, dword [0x7da7e8]
je 0x414121
xor eax, eax
pop esi
ret
mov eax, dword [0x13b515c]
push 0
push esi
push 0
push 0x48862c
push eax
call fcn.00451a90
mov ecx, dword [0x13b515c]
add esp, 0x14
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop esi
mov eax, 1
ret

Function at 0x414270
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push 0
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push DirectSoundCreate
push ebp
push edx
call fcn.00404e20
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x4142a1
pop esi
xor eax, eax
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4142d2
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0xc]
push eax
call edi
mov dword [esi + 0xc], 0
mov dword [esi], 0
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ecx
lea edx, [esi + 0x20]
push edx
mov dword [esi + 4], 0
call edi
push ebp
lea eax, [esi + 0x124]
push eax
call edi
lea ecx, [esi + 0x10]
push ecx
push 0
push esi
push 0x414190
push 0
push 0
mov dword [esi], 1
mov dword [esi + 4], 0
call fcn.004452ce
add esp, 0x18
test eax, eax
mov dword [esi + 0xc], eax
pop edi
jne 0x414324
pop esi
pop ebp
ret
mov edx, dword [esi + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop esi
mov eax, 1
pop ebp
ret
Function at 0x414ca0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [edx]
sub esp, 0x34
push esi
mov esi, ecx
mov cl, byte [eax]
push edi
inc eax
mov dword [edx], eax
and ecx, 0x3f
lea edi, [ecx - 2]
cmp edi, 0x10
ja case.0x414cc5.10
xor ecx, ecx
mov cl, byte [edi + 0x414e18]
jmp dword [ecx*4 + 0x414df4]
xor ecx, ecx
mov cx, word [eax]
add eax, 2
pop edi
mov dword [edx], eax
pop esi
lea eax, [ecx*4 + 0x7f99a8]
add esp, 0x34
ret
add eax, 2
xor ecx, ecx
mov cx, word [eax - 2]
mov dword [edx], eax
mov esi, dword [esi]
lea eax, [esi + esi*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [esi*4 + 0xbce34c]
lea edx, [eax + edx*8]
add edx, ecx
pop edi
lea eax, [edx*4 + 0xbcf6f0]
pop esi
add esp, 0x34
ret
xor ecx, ecx
mov cx, word [eax]
add eax, 2
mov dword [edx], eax
mov esi, dword [esi]
lea eax, [esi + esi*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*8]
pop edi
lea eax, [ecx*4 + 0x7fa948]
pop esi
add esp, 0x34
ret
xor ecx, ecx
mov cx, word [eax]
add eax, 2
mov dword [edx], eax
mov edx, dword [0x13b5180]
pop edi
pop esi
lea eax, [edx + ecx*4]
add esp, 0x34
ret
xor ecx, ecx
mov cx, word [eax]
add eax, 2
pop edi
mov dword [edx], eax
pop esi
lea eax, [ecx + 0x7dd7a8]
add esp, 0x34
ret
mov ecx, dword [eax]
add eax, 4
mov dword [edx], eax
mov eax, dword [esi + 4]
pop edi
add eax, ecx
pop esi
add esp, 0x34
ret
xor ecx, ecx
mov cx, word [eax]
add eax, 2
mov dword [edx], eax
mov eax, dword [0x13b5184]
pop edi
pop esi
lea eax, [eax + ecx*4]
add esp, 0x34
ret
lea ecx, [esp + 0xc]
push ecx
push edx
push esi
call fcn.00401610
mov esi, dword [esi]
push eax
mov ecx, esi
lea edx, [esp + 0x18]
push edx
shl ecx, 9
lea eax, [esp + 0x20]
add ecx, esi
push eax
lea edx, [ecx*4 + 0x5e3b08]
push edx
call fcn.00435110
mov eax, dword [esp + 0x24]
add esp, 0x1c
pop edi
pop esi
add esp, 0x34
ret
push str.Script_Error._GetVarAdr_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x13b43c4]
push 0x30
push 0
push str.Script_Error._GetVarAdr_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x34
ret
Function at 0x415940
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.00414e30
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.00414e30
mov esi, eax
lea eax, [esi + 0x1f]
shr eax, 3
lea ecx, [eax + esi + 4]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [ebp - 4]
mov ebx, eax
push esi
push edx
lea edi, [ebx + 4]
push edi
mov dword [ebp - 8], ebx
mov dword [ebx], esi
call fcn.00409ab0
mov edx, eax
mov esi, 0x400
add esp, 0xc
cmp edx, esi
mov dword [ebp - 0xc], edx
jae 0x41599a
mov esi, edx
wait
fnstcw word [0x4c58b8]
mov eax, dword [0x4c58b8]
test ah, 3
jne 0x4159ba
mov cl, al
and cl, 0x3f
cmp cl, 0x3f
jne 0x4159ba
test ah, 0xc
je 0x4159dd
mov ax, word [0x4c58b8]
and ax, 0xfcff
or ax, 0x3f
and ax, 0xf3ff
mov word [ebp - 2], ax
fldcw word [ebp - 2]
mov dword [0x4c7d08], 1
xor ecx, ecx
test esi, esi
jle 0x415a11
mov eax, ecx
cdq
mov ebx, 0xb4
idiv ebx
mov bl, byte [edi + ecx]
sub edx, 0x5a
mov dword [ebp - 4], edx
fild dword [ebp - 4]
fsin
fstp dword [ebp - 4]
mov dl, byte [ebp - 4]
xor bl, dl
mov byte [edi + ecx], bl
inc ecx
cmp ecx, esi
jl 0x4159e3
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [0x4c7d08]
test eax, eax
je 0x415a2a
mov dword [0x4c7d08], 0
fldcw word [0x4c58b8]
mov ecx, dword [ebp + 8]
add edx, 4
push edx
push ebx
call fcn.00414e30
push eax
call fcn.00405ba0
add esp, 0xc
test eax, eax
push ebx
jne 0x415a57
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415a70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.00414e30
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.00414e30
mov esi, eax
lea eax, [esi + 0x1f]
shr eax, 3
lea ecx, [eax + esi + 4]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [ebp - 4]
mov ebx, eax
push esi
push edx
lea edi, [ebx + 4]
push edi
mov dword [ebp - 8], ebx
mov dword [ebx], esi
call fcn.00409ab0
mov esi, 0x400
add esp, 0xc
cmp eax, esi
mov dword [ebp - 0xc], eax
jae 0x415ac8
mov esi, eax
wait
fnstcw word [0x4c58b8]
mov eax, dword [0x4c58b8]
test ah, 3
jne 0x415ae8
mov cl, al
and cl, 0x3f
cmp cl, 0x3f
jne 0x415ae8
test ah, 0xc
je 0x415b0b
mov ax, word [0x4c58b8]
and ax, 0xfcff
or ax, 0x3f
and ax, 0xf3ff
mov word [ebp - 2], ax
fldcw word [ebp - 2]
mov dword [0x4c7d08], 1
xor ecx, ecx
test esi, esi
jle 0x415b3c
mov eax, ecx
cdq
mov ebx, 0xb4
idiv ebx
mov bl, byte [edi + ecx]
sub edx, 0x5a
mov dword [ebp - 4], edx
fild dword [ebp - 4]
fsin
fstp dword [ebp - 4]
mov dl, byte [ebp - 4]
xor bl, dl
mov byte [edi + ecx], bl
inc ecx
cmp ecx, esi
jl 0x415b11
mov ebx, dword [ebp - 8]
mov eax, dword [0x4c7d08]
test eax, eax
je 0x415b55
mov dword [0x4c7d08], 0
fldcw word [0x4c58b8]
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00414e30
mov ecx, edi
mov esi, eax
call fcn.00414e30
mov ecx, dword [ebp - 0xc]
push ecx
push ebx
push eax
push esi
call fcn.00405ae0
add esp, 0x10
test eax, eax
push ebx
jne 0x415b8e
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret