joyce8/EMBER2024-capa huggingface dataset:
Function at 0x552480
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 8
push esi
push edi
test ecx, ecx
je 0x5524e9
lea edx, [ebp + 0x10]
call fcn.00544d70
mov edi, eax
test edi, edi
je 0x5524e9
push str.Cheese
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x5524e9
mov ecx, edi
mov dword [ebp - 8], str.Cheese
call fcn.00545f90
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0
push 2
push 0
push 0
push 0
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x552630
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b7e62
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x63a404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
lea esi, [eax + 8]
mov byte [eax], 0
mov dword [ebp - 0x18], esi
mov dword [esi], 0x625210
mov dword [esi + 0x50], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
push 0
push 0
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
mov ecx, esi
mov dword [ebp - 0x10], 1
call fcn.005429f0
mov eax, dword [esi]
push 8
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], edi
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + esi - 4], eax
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0056e7bf
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5526e2
push 1
mov byte [ebp - 4], 2
call fcn.00570b36
add esp, 4
mov dword [ebx + 4], eax
jmp 0x5526e4
xor ebx, ebx
lea eax, [edi + 4]
mov dword [edi + 0x34], ebx
mov dword [edi + 0xc], eax
lea ecx, [edi + 8]
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov dword [edi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 4
push 0x622ca4
push dword [ebp + 0xc]
mov dword [ebp - 4], 3
push 0x624918
push dword [ebp + 8]
push esi
call fcn.005436e0
add esp, 8
push eax
call fcn.005436e0
add esp, 8
mov ecx, eax
call fcn.00541d70
push eax
call fcn.005436e0
mov eax, dword [ebp - 0x14]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5529e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b7ec0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x63a404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [ebx], 0
jne 0x552ad6
lea eax, [ebx + 8]
push 0x610e40
push eax
call fcn.005436e0
mov ecx, dword [ebx + 0x48]
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
test cl, 2
jne 0x552a5b
mov eax, dword [ebx + 0x2c]
mov edx, dword [eax]
test edx, edx
je 0x552a5b
mov eax, dword [ebx + 0x1c]
cmp edx, dword [ebx + 0x44]
cmovb edx, dword [ebx + 0x44]
mov ecx, dword [eax]
sub edx, ecx
push edx
jmp 0x552a78
test cl, 4
jne 0x552a81
mov eax, dword [ebx + 0x28]
mov edx, dword [eax]
test edx, edx
je 0x552a81
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax]
mov eax, dword [ebx + 0x38]
mov eax, dword [eax]
sub eax, ecx
add eax, edx
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.0052a680
cmp dword [ebp - 0x14], 0x10
lea edi, [ebp - 0x28]
mov esi, dword [ebp - 0x18]
cmovae edi, dword [ebp - 0x28]
push 2
call fcn.005766b8
push eax
push esi
push 1
push edi
call fcn.0057de79
mov edx, dword [ebp - 0x14]
add esp, 0x14
mov byte [ebx], 1
cmp edx, 0x10
jb 0x552ad6
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x552acc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x552afa
push edx
push ecx
call fcn.0056ea89
add esp, 8
lea ecx, [ebx + 8]
call fcn.00540480
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056e5b3
mov esp, ebp
pop ebp
ret
call fcn.0057995e
int3
Function at 0x5589e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8491
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x63a404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 0x18]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x3c], 0
lea ebx, [edi + 0x40]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edi], edx
mov byte [ebp - 4], 2
mov eax, dword [edx + 8]
mov dword [edi + 4], eax
mov dword [edi + 8], 0
mov word [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
push dword [edx + 0x10]
call fcn.0055a190
mov eax, dword [edi]
lea ecx, [edi + 0x2c]
push dword [eax + 0x10]
call fcn.0055a190
mov edx, dword [edi]
mov eax, dword [edx + 0x3c]
mov ecx, dword [edx + 0x30]
lea ecx, [eax + ecx*2]
mov eax, dword [edx + 0x34]
inc eax
add eax, ecx
mov dword [ebp + 8], eax
lea esi, [eax*8]
mov ecx, esi
cmp eax, 0x1fffffff
jbe 0x558ad4
or ecx, 0xffffffff
jmp 0x558adc
cmp ecx, 0x1000
jb 0x558b05
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.0056e7bf
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x558ba7
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x558b16
test ecx, ecx
je 0x558b14
push ecx
call fcn.0056e7bf
add esp, 4
jmp 0x558b16
xor eax, eax
lea ecx, [ebp - 0x14]
cmp ebx, ecx
je 0x558b57
mov ecx, dword [ebx + 4]
mov dword [ebx + 4], eax
test ecx, ecx
je 0x558b50
mov edx, dword [ebx]
shl edx, 3
cmp edx, 0x1000
jb 0x558b46
mov esi, dword [ecx - 4]
add edx, 0x23
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x558ba7
mov ecx, esi
push edx
push ecx
call fcn.0056ea89
add esp, 8
mov eax, dword [ebp + 8]
mov dword [ebx], eax
jmp 0x558b7f
test eax, eax
je 0x558b7f
cmp esi, 0x1000
jb 0x558b75
mov ecx, dword [eax - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x558ba7
mov eax, ecx
push esi
push eax
call fcn.0056ea89
add esp, 8
mov dword [edi + 0x48], 0
mov eax, edi
mov dword [edi + 0x4c], 0
mov byte [edi + 0x50], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0057995e
int3
Function at 0x56bd20
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [esi + 1]
xor edx, eax
movzx eax, byte [esi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [esi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 4]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 5]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 6]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 7]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [edi + 0x18]
imul ecx, ecx, 0x1000193
pop edi
pop esi
and eax, ecx
pop ebp
ret 4

Function at 0x58d631
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0058d4ae

Function at 0x58fa14
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0058f6b6

Function at 0x59887b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4016d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c758
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x415008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
cmp byte [edx], 0
mov byte [ebp - 0x40], 0
jne 0x40171b
xor ecx, ecx
jmp 0x401729
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401720
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.004020c0
lea edx, [ebp - 0x40]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00401520
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00402a90
cmp byte [esi], 0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jne 0x40176c
xor ecx, ecx
jmp 0x40177a
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401771
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x58]
call fcn.004020c0
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00401520
lea ecx, [ebp - 0x58]
call fcn.00402a90
cmp dword [0x42a074], 8
lea ecx, [ebp - 0x28]
mov edx, 0x42a060
lea eax, [ebp - 0x70]
cmovae edx, dword [0x42a060]
cmp dword [ebp - 0x14], 8
push edx
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x5c], 8
push 0
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x14]
mov esi, eax
cmp ecx, 8
jb 0x4017e3
inc ecx
push ecx
push dword [ebp - 0x28]
call fcn.004012d0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x401809
inc eax
push eax
push dword [ebp - 0x70]
call fcn.004012d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407806
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40af40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40b048
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40b048
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x40b048
push 2
push ebx
lea eax, [ebp + 8]
push eax
push esi
call fcn.00409560
add esp, 0x10
cmp eax, 2
je 0x40af89
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
cmp word [ebp + 8], ax
jne 0x40af7d
push 4
lea eax, [ebx + 0x3c]
push eax
lea eax, [ebp - 4]
push eax
push esi
call fcn.00409560
add esp, 0x10
cmp eax, 4
jne 0x40af7d
add ebx, dword [ebp - 4]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40afb8
mov dword [eax], ebx
push 2
lea eax, [ebx + 4]
push eax
lea eax, [ebp + 8]
push eax
push esi
call fcn.00409560
add esp, 0x10
cmp eax, 2
jne 0x40af7d
movzx eax, word [ebp + 8]
cmp eax, 0x14c
je 0x40b013
cmp eax, 0x8664
jne 0x40af7d
push 0x108
push ebx
push edi
push esi
call fcn.00409560
add esp, 0x10
cmp eax, 0x108
jne 0x40af7d
cmp dword [edi], 0x4550
mov eax, 0x40
pop edi
mov ecx, 0x80004005
pop esi
cmovne eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0xf8
push ebx
push edi
push esi
call fcn.00409560
add esp, 0x10
cmp eax, 0xf8
jne 0x40af7d
cmp dword [edi], 0x4550
mov eax, 0x20
pop edi
mov ecx, 0x80004005
pop esi
cmovne eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x80070057
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40bfb0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebx
push ecx
push edx
push esi
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0x33
call 0x40bfc1
add dword [esp], 5
retf

Function at 0x40c44c
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc
push ebx
push ecx
push edx
push esi
push edi
push 0x33
call 0x40c461
add dword [esp], 5
retf
Function at 0x401ae0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret

Function at 0x4022f0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00402300

Function at 0x402580
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00402590

Function at 0x408c70
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
mov dword [ebp - 8], esi
push str.CommandLineToArgvW_failure
setne cl
movzx ecx, cl
push ecx
push 0xfe4
push str.D:_acactuscactus_src_base_system.cpp
call fcn.00408e30
cmp dword [ebp - 4], 0
push str.Invalid_argc_value
setg al
movzx eax, al
push eax
push 0xfe5
push str.D:_acactuscactus_src_base_system.cpp
call fcn.00408e30
mov eax, dword [ebp - 4]
add esp, 0x20
xor ebx, ebx
xor edi, edi
test eax, eax
jle 0x408d29
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [esi + edi*4]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
test esi, esi
push str.WideCharToMultiByte_failure
setne cl
movzx ecx, cl
push ecx
push 0xfec
push str.D:_acactuscactus_src_base_system.cpp
call fcn.00408e30
mov eax, dword [ebp - 4]
add ebx, esi
mov esi, dword [ebp - 8]
inc edi
add esp, 0x10
cmp edi, eax
jl 0x408ce0
lea eax, [eax*4 + 4]
push eax
call fcn.0040db41
push ebx
mov dword [ebp - 0xc], eax
call fcn.0040db41
mov edi, eax
mov eax, dword [ebp - 0xc]
push ebx
push 0
push edi
mov dword [eax], edi
call fcn.0040bca0
add esp, 0x14
mov dword [ebp - 0x14], 0
cmp dword [ebp - 4], 0
jle 0x408dc8
mov ecx, dword [ebp - 0xc]
mov edx, esi
sub edx, ecx
mov dword [ebp - 0x10], ecx
mov eax, ecx
mov dword [ebp - 0x18], edx
nop
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push dword [edx + eax]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
test esi, esi
push str.WideCharToMultiByte_failure
setne cl
movzx ecx, cl
push ecx
push 0xff8
push str.D:_acactuscactus_src_base_system.cpp
call fcn.00408e30
mov eax, dword [ebp - 0x10]
add edi, esi
mov ecx, dword [ebp - 0x14]
add eax, 4
mov edx, dword [ebp - 0x18]
inc ecx
add esp, 0x10
mov dword [ebp - 0x10], eax
sub ebx, esi
mov dword [ebp - 0x14], ecx
mov dword [eax], edi
cmp ecx, dword [ebp - 4]
jl 0x408d70
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
pop edi
pop esi
mov dword [edx + eax*4], 0
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
pop ebx
mov dword [eax], edx
mov esp, ebp
pop ebp
ret
Function at 0x408f80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00408fe0
add esp, 8
mov esi, eax
test byte [ebp + 0xc], 8
je 0x408fd6
test esi, esi
je 0x408fd6
push esi
push 3
lea eax, [ebp - 4]
push 1
push eax
call fcn.00414428
add esp, 0x10
cmp eax, 3
jne 0x408fc7
cmp byte [ebp - 4], 0xef
jne 0x408fc7
cmp byte [ebp - 3], 0xbb
jne 0x408fc7
cmp byte [ebp - 2], 0xbf
je 0x408fd4
push 0
push 0
push esi
call fcn.004147cb
add esp, 0xc
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x409180
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.00414428
add esp, 0x10
pop ebp
ret

Function at 0x4095c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 8
call fcn.0040db41
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
push 0
push 0
push eax
push 0x409620
push 0
push 0
mov dword [eax + 4], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
push str.CreateThread_failure
setne cl
movzx ecx, cl
push ecx
push 0x335
push str.D:_acactuscactus_src_base_system.cpp
call fcn.00408e30
add esp, 0x10
mov eax, esi
pop esi
pop ebp
ret

Function at 0x40ae5c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40ae9b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ae9b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ae9b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40ae9b
cmp dword [ecx + 0x74], 0xe
jbe 0x40ae9b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x414c23
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a160
mov eax, dword [0x44ea3c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00414228
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x414c65
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x414dc1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040a2b0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x456a40]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00411480
mov ecx, dword [esi*4 + 0x456a40]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x414dba
cmp eax, dword [ecx + edi + 0x24]
jne 0x414dba
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414dba
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00411480
add esp, 0x14
test edx, edx
jl 0x414dba
jg 0x414d30
test eax, eax
jb 0x414dba
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x414dba
jl 0x414d4a
cmp dword [ebp - 0x1008], eax
ja 0x414dba
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x414d68
test ebx, ebx
je 0x414da1
cmp ecx, edi
jae 0x414da1
mov al, byte [ecx]
cmp al, 0xd
jne 0x414d82
lea eax, [edi - 1]
cmp ecx, eax
jae 0x414d8e
cmp byte [ecx + 1], 0xa
jne 0x414d8e
inc ecx
jmp 0x414d8e
movzx eax, al
movsx eax, byte [eax + 0x44ebc0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x414d68
cmp edx, ebx
jne 0x414d68
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x414dbf
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a11a
leave
ret
Function at 0x418568
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x456a40]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4185a8
cmp byte [ebx], 0xa
jne 0x4185a8
or byte [edi + eax + 0x28], 4
jmp 0x4185ad
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4186ac
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41868f
inc eax
cmp dl, 0xd
je 0x4185d9
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4185ff
cmp eax, ecx
jae 0x41860d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4185c1
jmp 0x4186ac
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41868a
cmp dword [ebp - 0x10], 0
je 0x41868a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x456a40]
test byte [eax + edi + 0x28], 0x48
je 0x418664
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41864f
mov byte [esi], dl
jmp 0x418660
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x456a40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4186ac
cmp byte [ebp - 1], 0xa
jne 0x418673
cmp esi, ebx
jne 0x418673
mov byte [esi], 0xa
jmp 0x4186ab
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041149e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4186ac
mov byte [esi], 0xd
jmp 0x4186ab
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x456a40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4186a9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4186ac
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret