joyce8/EMBER2024-capa huggingface dataset:
Function at 0x495c65
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00495be1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x495dd4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x495dd4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x495d89
jg 0x495cc1
test eax, eax
je 0x495d7f
push 1
push 0x1000
call fcn.00489240
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x495ce4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x495d76
push 0x8000
push ebx
call fcn.004841c9
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x495d0d
jg 0x495d08
cmp ecx, 0x1000
jb 0x495d0d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00487704
add esp, 0x10
cmp eax, 0xffffffff
je 0x495d52
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x495d08
jl 0x495d39
test ecx, ecx
jne 0x495cfa
push dword [ebp - 0xc]
push ebx
call fcn.004841c9
push esi
call fcn.00487c9f
add esp, 0xc
xor ebx, ebx
jmp 0x495de2
cmp byte [edi + 0x24], 0
je 0x495d69
cmp dword [edi + 0x20], 5
jne 0x495d69
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x495d74
mov ebx, dword [edi + 0x18]
jmp 0x495d76
xor ebx, ebx
push esi
call fcn.00487c9f
pop ecx
jmp 0x495de2
test ecx, ecx
jg 0x495d4b
jl 0x495d89
test eax, eax
jae 0x495d4b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004894e3
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x495da9
cmp byte [edi + 0x1c], 0
je 0x495d4b
jmp 0x495dda
push ebx
call fcn.0048e44c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x495d4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x495de2
cmp byte [edi + 0x1c], 0
je 0x495ddf
mov ebx, dword [edi + 0x18]
jmp 0x495de2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004894e3
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x496640
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49666d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49666d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a004]
jne 0x40100a
repz ret
jmp fcn.00401ac6

Function at 0x4068bb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004026f6
and dword [ebp - 0x14], 0
cmp dword [0x42c620], 0
mov dword [ebp - 0x18], eax
jne 0x40696e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406a16
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406a16
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42c620], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42c624], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42c628], eax
call edi
push eax
call esi
mov dword [0x42c630], eax
test eax, eax
je 0x40696e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42c62c], eax
mov eax, dword [0x42c62c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4069c7
cmp dword [0x42c630], ecx
je 0x4069c7
push eax
call esi
push dword [0x42c630]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4069c7
test ebx, ebx
je 0x4069c7
call edi
test eax, eax
je 0x4069be
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4069be
test byte [ebp - 8], 1
jne 0x4069c7
or dword [ebp + 0x10], 0x200000
jmp 0x4069fa
mov eax, dword [0x42c624]
cmp eax, dword [ebp - 0x18]
je 0x4069fa
push eax
call esi
test eax, eax
je 0x4069fa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4069fa
mov eax, dword [0x42c628]
cmp eax, dword [ebp - 0x18]
je 0x4069fa
push eax
call esi
test eax, eax
je 0x4069fa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42c620]
call esi
test eax, eax
je 0x406a16
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406a18
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x426100
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x42decc]
mov edx, dword [0x42dd18]
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret
Function at 0x4261c0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x42a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x828], eax
cmp ebx, 0x182
jne 0x4261f5
lea ecx, [ebp - 0x820]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
jmp 0x426213
cmp ebx, 0x19f
jne 0x426213
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push edi
xor edi, edi
test ebx, ebx
jle 0x426263
push esi
jmp 0x426220
lea esi, [ebp - 0x824]
mov dword [ebp - 0x824], 0
call fcn.004261b0
mov dl, byte [ebp - 0x824]
mov eax, dword [ebp - 0x828]
xor byte [eax + edi], dl
cmp ebx, 0xf
jne 0x42625d
lea eax, [ebp - 0x82c]
push eax
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
inc edi
cmp edi, ebx
jl 0x426220
pop esi
pop edi
cmp ebx, 0x2d
jne 0x42627d
mov dword [0x42e000], 0xa62e7790
mov dword [0x42e004], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x426290
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x42decc]
push ebx
push esi
mov esi, dword [0x42dd18]
mov ebx, eax
cmp eax, 0x5dd
jne 0x4262b2
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov eax, dword [0x42b1d0]
call fcn.00426180
cmp dword [0x42decc], 0x2f
jne 0x4262cd
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push esi
call fcn.004261c0
add esp, 4
cmp dword [0x42decc], 0x568
pop esi
pop ebx
jne 0x4262f8
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
ret
Function at 0x401a30
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4063a0]
test esi, esi
jle 0x401b40
mov edi, dword [0x4063a4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401a64
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401ae5
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x401a50
mov dword [esp], eax
mov ebx, eax
call sym.___mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x401b67
mov eax, dword [0x4063a4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
add eax, dword [edi + 0xc]
mov edx, dword [0x4063a4]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401b47
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401ade
sub eax, 4
and eax, 0xfffffffb
jne 0x401af0
add dword [0x4063a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x4063a4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401ade
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
xor esi, esi
jmp 0x401a6e
mov eax, dword [0x4063a4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
mov esi, esi
lea edi, [edi]

Function at 0x401fa0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4063b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4063b0]
sub esp, 4
test ebx, ebx
je 0x401ff5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401fee
test esi, esi
je 0x401fee
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401fd0
mov dword [esp], 0x4063b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402690
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
nop
nop
nop
nop
nop
Function at 0x401130
Capabilities:
Terminate process
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x461850]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push ebx
push esi
mov esi, dword [esp + 0x118]
push 0x42a674
push eax
call fcn.0041415d
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40117b
push 0x42a660
call fcn.00413fd4
add esp, 4
push ebx
call fcn.00413f48
push 0x104
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00414170
push str.APATH:
lea ecx, [esp + 0x18]
push 0x42a654
push ecx
call fcn.00413c16
mov eax, esi
add esp, 0x18
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4011a7
push edi
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xffffffff
lea ebx, [ebx]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4011c0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0xc]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
pop edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4011e0
push ebx
sub eax, edx
push 1
push eax
lea edx, [esp + 0x14]
push edx
call fcn.00413b89
push ebx
call fcn.004139f3
mov ecx, dword [esp + 0x120]
add esp, 0x14
pop esi
pop ebx
xor ecx, esp
call fcn.00413847
add esp, 0x108
ret

Function at 0x401220
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401299
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x401299
mov edx, dword [esp + 8]
fild dword [esp + 8]
test edx, edx
jge 0x40127b
fadd qword [0x42a678]
test edi, edi
fmul qword [0x42a678]
mov dword [esp + 8], edi
fild dword [esp + 8]
jge 0x401293
fadd qword [0x42a678]
pop edi
faddp st(1)
pop esi
pop ecx
ret
fldz
pop edi
pop esi
pop ecx
ret
Function at 0x4012a0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
mov eax, 0x1470
call fcn.00414270
mov eax, dword [0x461850]
xor eax, esp
mov dword [esp + 0x146c], eax
push 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x401300
mov ecx, dword [esp + 0x146c]
xor ecx, esp
call fcn.00413847
add esp, 0x1470
ret
mov eax, dword [str.Cmd.exe__C]
mov ecx, dword [0x42a700]
mov edx, dword [0x42a704]
push edi
lea edi, [esp + 0x70]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x401325
push esi
mov ecx, 0x1e
mov esi, 0x42a680
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x20]
push eax
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x24], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 0
push 1
push 0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], eax
push 0
lea eax, [esp + 0x94]
push eax
push 0
mov word [esp + 0x78], 0
mov dword [esp + 0x74], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4013ae
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
jmp 0x401433
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
push 0xfff
lea ecx, [esp + 0x479]
push 0
push ecx
mov byte [esp + 0x480], 0
call fcn.00414170
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
mov ecx, dword [esp + 8]
push 0
lea edx, [esp + 0x20]
push edx
push 0xfff
lea eax, [esp + 0x480]
push eax
push ecx
call esi
test eax, eax
jne 0x4013e0
cmp byte [esp + 0x4a4], 0x64
jne 0x40142c
mov edx, dword [esp + 8]
push edx
call edi
pop esi
mov eax, 1
pop edi
mov ecx, dword [esp + 0x146c]
xor ecx, esp
call fcn.00413847
add esp, 0x1470
ret
mov eax, dword [esp + 8]
push eax
call edi
mov ecx, dword [esp + 0x1474]
pop esi
pop edi
xor ecx, esp
xor eax, eax
call fcn.00413847
add esp, 0x1470
ret
Function at 0x401450
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
mov eax, 0x1470
call fcn.00414270
mov eax, dword [0x461850]
xor eax, esp
mov dword [esp + 0x146c], eax
push 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4014b0
mov ecx, dword [esp + 0x146c]
xor ecx, esp
call fcn.00413847
add esp, 0x1470
ret
mov eax, dword [str.Cmd.exe__C]
mov ecx, dword [0x42a700]
mov edx, dword [0x42a704]
push edi
lea edi, [esp + 0x70]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4014d5
push esi
mov ecx, 0x1d
mov esi, str.C:Progra1WinUninst_signtool.exe_sign__f_C:Progra1WinUninstqm.pfx__p_630009109_C:Progra1WinUninstwintint.exe
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [esp + 0x20]
push eax
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x24], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 0
push 1
push 0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], eax
push 0
lea eax, [esp + 0x94]
push eax
push 0
mov word [esp + 0x78], 0
mov dword [esp + 0x74], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401560
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
jmp 0x4015e5
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
push 0xfff
lea ecx, [esp + 0x479]
push 0
push ecx
mov byte [esp + 0x480], 0
call fcn.00414170
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
mov ecx, dword [esp + 8]
push 0
lea edx, [esp + 0x20]
push edx
push 0xfff
lea eax, [esp + 0x480]
push eax
push ecx
call esi
test eax, eax
jne 0x401592
cmp byte [esp + 0x4a4], 0x64
jne 0x4015de
mov edx, dword [esp + 8]
push edx
call edi
pop esi
mov eax, 1
pop edi
mov ecx, dword [esp + 0x146c]
xor ecx, esp
call fcn.00413847
add esp, 0x1470
ret
mov eax, dword [esp + 8]
push eax
call edi
mov ecx, dword [esp + 0x1474]
pop esi
pop edi
xor ecx, esp
xor eax, eax
call fcn.00413847
add esp, 0x1470
ret

Function at 0x401600
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0x42a780
push eax
call fcn.0041415d
mov esi, eax
add esp, 8
test esi, esi
je 0x401638
push esi
push 0x9c00
push 1
push 0x457090
call fcn.00413b89
push esi
call fcn.004139f3
add esp, 0x14
mov al, 1
pop esi
ret
xor al, al
pop esi
ret

Function at 0x401640
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0x42a780
push eax
call fcn.0041415d
mov esi, eax
add esp, 8
test esi, esi
je 0x401678
push esi
push 0x23000
push 1
push 0x434090
call fcn.00413b89
push esi
call fcn.004139f3
add esp, 0x14
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
Function at 0x401680
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov eax, 0x42a784
push edi
mov edi, 0x11b29719
mov ebx, 0x7f7
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401695
sub eax, edx
mov esi, eax
xor ecx, ecx
test esi, esi
jle 0x4016c8
jmp 0x4016b0
movsx eax, byte [ecx + 0x42a784]
or eax, 0x80
cdq
add ecx, 1
xor edi, eax
xor ebx, edx
cmp ecx, esi
jl 0x4016b0
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
ret

Function at 0x401710
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push ebx
push eax
push ecx
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x401739
xor eax, eax
pop ebx
pop ecx
ret 0xc
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401732
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x40175a
pop edi
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x18]
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401788
pop esi
pop edi
xor eax, eax
pop ebx
pop ecx
ret 0xc
push 0
lea eax, [esp + 0x10]
push eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, 1
pop ebx
pop ecx
ret 0xc

Function at 0x401910
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push edi
mov edi, dword [esp + 0x14]
push edi
call fcn.00401220
add esp, 4
call fcn.004148e0
mov ebx, eax
test ebx, ebx
jne 0x401931
pop edi
xor al, al
pop ebx
pop ecx
ret
push esi
push ebx
call fcn.00405373
push ebx
mov esi, eax
push 0
push esi
call fcn.00414170
push 0x42a78c
push edi
call fcn.0041415d
mov edi, eax
push edi
push ebx
push 1
push esi
call fcn.004148bb
add esp, 0x28
xor ecx, ecx
test eax, eax
jle 0x40196e
add byte [ecx + esi], 5
add ecx, 1
cmp ecx, eax
jl 0x401963
push edi
call fcn.004139f3
push 0
call fcn.0041429b
push eax
call fcn.0041462f
add esp, 0xc
xor edi, edi
call fcn.0041463c
cdq
mov ecx, 0x7f
idiv ecx
add edi, 1
cmp edi, 4
mov byte [esp + edi + 0xb], dl
jl 0x401986
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push 0x42a788
push eax
mov dword [esi + 0x1c], edx
call fcn.0041415d
mov edi, eax
add esp, 8
test edi, edi
je 0x4019d1
push edi
push ebx
push 1
push esi
call fcn.00413b89
push edi
call fcn.004139f3
add esp, 0x14
push esi
call fcn.0040536e
add esp, 4
pop esi
pop edi
mov al, 1
pop ebx
pop ecx
ret
Function at 0x4019f0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x42847a
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x461850]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x461850]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, dword [esp + 0x38]
mov esi, ecx
push 0x10
mov dword [esp + 0x1c], esi
call fcn.00405343
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x30], 0
je 0x401a51
mov ecx, eax
call fcn.0040e4e4
mov ebp, eax
jmp 0x401a53
xor ebp, ebp
mov eax, dword [ebp]
mov edx, dword [eax + 0x20]
push 0
push 0x42
push edi
mov ecx, ebp
mov dword [esp + 0x3c], 0xffffffff
call edx
test eax, eax
jne 0x401a75
xor eax, eax
jmp 0x401b73
mov eax, dword [ebp]
mov edx, dword [eax + 0x30]
mov ecx, ebp
call edx
mov ebx, eax
push ebx
call fcn.00405373
add esp, 4
push 2
mov dword [esp + 0x18], eax
mov eax, dword [ebp]
mov edx, dword [eax + 0x28]
push 0xffffffffffffffff
push 0xfffffffffffffffb
mov ecx, ebp
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x34]
push 5
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
call edx
mov ecx, esi
call fcn.00401680
xor byte [esp + 0x1c], al
xor byte [esp + 0x1d], al
xor byte [esp + 0x1e], al
xor byte [esp + 0x1f], al
xor byte [esp + 0x20], al
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], edx
mov edi, str.love
lea esi, [esp + 0x1c]
mov ecx, 5
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x401a6e
mov edx, dword [ebp]
push eax
push eax
push eax
mov eax, dword [edx + 0x28]
mov ecx, ebp
call eax
mov edx, dword [ebp]
mov edi, dword [esp + 0x14]
mov eax, dword [edx + 0x34]
push ebx
push edi
mov ecx, ebp
call eax
xor esi, esi
test ebx, ebx
jle 0x401b23
mov al, bl
sub al, 5
jmp 0x401b10
mov ecx, dword [esp + 0x18]
mov dl, byte [ecx + 0x78]
xor dl, al
xor byte [esi + edi], dl
add esi, 1
cmp esi, ebx
jl 0x401b10
mov eax, dword [ebp]
mov edx, dword [eax + 0x28]
push 0
push 0
push 0
mov ecx, ebp
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x38]
push ebx
push edi
mov ecx, ebp
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x2c]
push 0
add ebx, 0xfffffffb
push ebx
mov ecx, ebp
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x4c]
mov ecx, ebp
call edx
push edi
call fcn.0040536e
mov eax, dword [ebp]
mov edx, dword [eax + 4]
add esp, 4
push 1
mov ecx, ebp
call edx
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00413847
add esp, 0x20
ret 4