joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ed10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cbad
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x456a3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
lea ecx, [ebp - 0x28]
push 0x30
push esi
call fcn.0040dfc0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
cmovae ecx, dword [ebp - 0x28]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x40ede2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.004105f0
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
cmovae ecx, dword [ebp - 0x40]
push ecx
push esi
push str.GetCurrentDirectoryW_failed:__ld__s
push str.filesystem
call fcn.0040ecf0
mov ecx, dword [ebp - 0x2c]
add esp, 0x18
mov byte [ebx], 0
cmp ecx, 0x10
jb 0x40edde
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40edd4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ee82
push ecx
push edx
call fcn.0041143c
add esp, 8
xor ebx, ebx
jmp 0x40ee2f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00410870
add esp, 8
cmp byte [ebp - 0x44], 0
mov byte [ebx], 0
jne 0x40ee07
xor ebx, ebx
jmp 0x40ee27
cmp dword [ebp - 0x48], 0x10
lea ecx, [ebp - 0x5c]
mov eax, dword [ebp + 0xc]
cmovae ecx, dword [ebp - 0x5c]
dec eax
push eax
push ecx
push ebx
call fcn.00419cd0
push ebx
call fcn.00410450
add esp, 0x10
lea ecx, [ebp - 0x5c]
call fcn.0040e2e0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x40ee65
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ee5b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ee87
push ecx
push edx
call fcn.0041143c
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041144a
mov esp, ebp
pop ebp
ret
call fcn.00414b5f
call fcn.00414b5f
int3
Function at 0x40ee90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x456a3c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00410730
add esp, 8
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 8
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40eed3
test al, 0x10
je 0x40eed3
mov esi, 1
jmp 0x40eed5
xor esi, esi
mov ecx, dword [ebp - 8]
cmp ecx, 8
jb 0x40ef0b
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ef01
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ef1c
push ecx
push edx
call fcn.0041143c
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041144a
mov esp, ebp
pop ebp
ret
call fcn.00414b5f
int3
Function at 0x40f070
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cbfb
mov eax, dword fs:[0]
push eax
sub esp, 0x490
mov eax, dword [0x456a3c]
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 edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x480], eax
mov eax, dword [ebp + 0x14]
push str._s_
mov dword [ebp - 0x47c], eax
lea eax, [ebp - 0x210]
push 0x200
push eax
call fcn.004100a0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00410730
add esp, 0x18
cmp dword [ebp - 0x214], 8
lea ecx, [ebp - 0x478]
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x228]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40f233
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop word [eax + eax]
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x49c]
push eax
call fcn.00410870
add esp, 8
cmp byte [ebp - 0x484], 0
mov byte [ebp - 4], 1
jne 0x40f15a
push edi
push str.ERROR:_file_folder_name_containing_invalid_UTF_16_found_in_folder__s
push str.filesystem
push 0
call fcn.0040d800
add esp, 0x10
jmp 0x40f192
cmp dword [ebp - 0x488], 0x10
lea ecx, [ebp - 0x49c]
push dword [ebp - 0x47c]
cmovae ecx, dword [ebp - 0x49c]
mov eax, dword [ebp - 0x478]
push dword [ebp + 0x10]
shr eax, 4
and eax, 1
push eax
push ecx
call dword [ebp - 0x480]
add esp, 0x10
test eax, eax
jne 0x40f1ed
cmp byte [ebp - 0x484], 0
mov byte [ebp - 4], 0
je 0x40f1d9
mov ecx, dword [ebp - 0x488]
cmp ecx, 0x10
jb 0x40f1d9
mov edx, dword [ebp - 0x49c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f1cf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f28b
push ecx
push edx
call fcn.0041143c
add esp, 8
lea eax, [ebp - 0x478]
push eax
push esi
call ebx
test eax, eax
jne 0x40f120
jmp 0x40f22c
cmp byte [ebp - 0x484], 0
je 0x40f22c
mov ecx, dword [ebp - 0x488]
cmp ecx, 0x10
jb 0x40f22c
mov edx, dword [ebp - 0x49c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f222
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f28b
push ecx
push edx
call fcn.0041143c
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x214]
cmp ecx, 8
jb 0x40f26f
mov edx, dword [ebp - 0x228]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f265
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f290
push ecx
push edx
call fcn.0041143c
add esp, 8
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.0041144a
mov esp, ebp
pop ebp
ret
call fcn.00414b5f
call fcn.00414b5f
int3
Function at 0x40f640
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x456a3c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00410730
add esp, 8
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 8
cmovae eax, dword [ebp - 0x1c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40f68b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40f68b
or esi, 0xffffffff
jmp 0x40f68d
xor esi, esi
mov ecx, dword [ebp - 8]
cmp ecx, 8
jb 0x40f6c3
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f6b9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f6d4
push ecx
push edx
call fcn.0041143c
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041144a
mov esp, ebp
pop ebp
ret
call fcn.00414b5f
int3

Function at 0x40f6e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x456a3c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x7ff
push eax
lea eax, [ebp - 0x804]
mov byte [ebp - 0x804], 0
push eax
call fcn.00419cd0
lea eax, [ebp - 0x804]
add esp, 0xc
lea edx, [eax + 1]
nop dword [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f720
push ebx
sub eax, edx
push esi
push edi
test eax, eax
jle 0x40f764
dec eax
lea esi, [ebp - 0x804]
add esi, eax
mov cl, byte [esi]
and cl, 0xc0
cmp cl, 0x80
jne 0x40f747
test eax, eax
jne 0x40f730
lea eax, [ebp - 0x820]
mov dword [ebp - 0x820], esi
push eax
call fcn.00410310
add esp, 4
cmp eax, 0xffffffff
jne 0x40f764
mov byte [esi], 0
mov al, byte [ebp - 0x803]
lea esi, [ebp - 0x803]
test al, al
je 0x40f7df
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp al, 0x2f
jne 0x40f7d7
cmp byte [esi + 1], 0
je 0x40f7d7
lea eax, [ebp - 0x804]
mov byte [esi], 0
push eax
lea eax, [ebp - 0x81c]
push eax
call fcn.00410730
add esp, 8
lea eax, [ebp - 0x81c]
cmp dword [ebp - 0x808], 8
cmovae eax, dword [ebp - 0x81c]
push 0
push eax
call ebx
test eax, eax
jne 0x40f7c9
call edi
cmp eax, 0xb7
jne 0x40f7f2
lea ecx, [ebp - 0x81c]
call fcn.00408e60
mov byte [esi], 0x2f
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x40f780
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041144a
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x81c]
call fcn.00408e60
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041144a
mov esp, ebp
pop ebp
ret
Function at 0x40f820
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x456a3c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00410730
add esp, 8
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 8
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 8]
neg eax
sbb esi, esi
cmp ecx, 8
jb 0x40f88d
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f883
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f89f
push ecx
push edx
call fcn.0041143c
add esp, 8
mov ecx, dword [ebp - 4]
lea eax, [esi + 1]
xor ecx, ebp
pop esi
call fcn.0041144a
mov esp, ebp
pop ebp
ret
call fcn.00414b5f
int3

Function at 0x40f8b0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x456a3c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00410730
add esp, 8
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 8
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 8]
neg eax
sbb esi, esi
neg esi
cmp ecx, 8
jb 0x40f91f
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f915
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f931
push ecx
push edx
call fcn.0041143c
add esp, 8
mov ecx, dword [ebp - 4]
lea eax, [esi - 1]
xor ecx, ebp
pop esi
call fcn.0041144a
mov esp, ebp
pop ebp
ret
call fcn.00414b5f
int3
Function at 0x40f940
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cc8d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x456a3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00410730
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push esi
push eax
call fcn.00410730
add esp, 0x10
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push 3
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x14]
neg eax
sbb esi, esi
cmp ecx, 8
jb 0x40f9e7
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f9dd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fa4e
push ecx
push edx
call fcn.0041143c
add esp, 8
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x40fa31
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40fa27
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fa4e
push ecx
push edx
call fcn.0041143c
add esp, 8
lea eax, [esi + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041144a
mov esp, ebp
pop ebp
ret
call fcn.00414b5f
int3

Function at 0x40fa80
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.0040fae0
add esp, 8
mov esi, eax
test byte [ebp + 0xc], 8
je 0x40fad6
test esi, esi
je 0x40fad6
push esi
push 3
lea eax, [ebp - 4]
push 1
push eax
call fcn.0041b3c6
add esp, 0x10
cmp eax, 3
jne 0x40fac7
cmp byte [ebp - 4], 0xef
jne 0x40fac7
cmp byte [ebp - 3], 0xbb
jne 0x40fac7
cmp byte [ebp - 2], 0xbf
je 0x40fad4
push 0
push 0
push esi
call fcn.0041b769
add esp, 0xc
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40fc80
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.0041b3c6
add esp, 0x10
pop ebp
ret
Function at 0x40fca0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 2
push 0
push ebx
call fcn.0041b769
push ebx
call fcn.0041bdc8
push 0
push 0
push ebx
mov esi, eax
call fcn.0041b769
mov eax, 0x400
test esi, esi
cmovs esi, eax
lea edi, [esi + 1]
push edi
call fcn.00414bd6
push dword [ebp + 8]
mov ebx, eax
push edi
push 1
push ebx
call fcn.0041b3c6
add esp, 0x30
mov dword [ebp - 4], eax
cmp eax, esi
jae 0x40fd00
lea ecx, [eax + 1]
push ecx
push ebx
call fcn.004186d8
mov esi, dword [ebp - 4]
jmp 0x40fd60
jbe 0x40fd65
lea edi, [eax + eax]
mov esi, eax
push edi
push ebx
call fcn.004186d8
push dword [ebp + 8]
mov ebx, eax
mov eax, esi
push eax
push 1
lea ecx, [eax + ebx]
push ecx
call fcn.0041b3c6
add esp, 0x18
test eax, eax
je 0x40fd56
add esi, eax
cmp esi, edi
jne 0x40fd3c
add edi, edi
push edi
push ebx
call fcn.004186d8
add esp, 8
mov ebx, eax
push dword [ebp + 8]
mov eax, edi
sub eax, esi
push eax
lea eax, [ebx + esi]
push 1
push eax
call fcn.0041b3c6
add esp, 0x10
test eax, eax
jne 0x40fd28
lea eax, [esi + 1]
push eax
push ebx
call fcn.004186d8
mov ebx, eax
add esp, 8
mov eax, dword [ebp + 0xc]
mov byte [ebx + esi], 0
pop edi
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40fd80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 2
push 0
push ebx
call fcn.0041b769
push ebx
call fcn.0041bdc8
push 0
push 0
push ebx
mov esi, eax
call fcn.0041b769
mov eax, 0x400
test esi, esi
cmovs esi, eax
lea edi, [esi + 1]
push edi
call fcn.00414bd6
push dword [ebp + 8]
mov ebx, eax
push edi
push 1
push ebx
call fcn.0041b3c6
add esp, 0x30
mov dword [ebp - 4], eax
cmp eax, esi
jae 0x40fde0
lea ecx, [eax + 1]
push ecx
push ebx
call fcn.004186d8
mov esi, dword [ebp - 4]
jmp 0x40fe40
jbe 0x40fe45
lea edi, [eax + eax]
mov esi, eax
push edi
push ebx
call fcn.004186d8
push dword [ebp + 8]
mov ebx, eax
mov eax, esi
push eax
push 1
lea ecx, [eax + ebx]
push ecx
call fcn.0041b3c6
add esp, 0x18
test eax, eax
je 0x40fe36
add esi, eax
cmp esi, edi
jne 0x40fe1c
add edi, edi
push edi
push ebx
call fcn.004186d8
add esp, 8
mov ebx, eax
push dword [ebp + 8]
mov eax, edi
sub eax, esi
push eax
lea eax, [ebx + esi]
push 1
push eax
call fcn.0041b3c6
add esp, 0x10
test eax, eax
jne 0x40fe08
lea eax, [esi + 1]
push eax
push ebx
call fcn.004186d8
mov ebx, eax
add esp, 8
xor eax, eax
mov byte [ebx + esi], 0
test esi, esi
je 0x40fe5b
nop
cmp byte [eax + ebx], 0
je 0x40fe64
inc eax
cmp eax, esi
jb 0x40fe50
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00414bbb
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4104b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 8
call fcn.00414bd6
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
push 0
push 0
push eax
push 0x410510
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.0040ebe0
add esp, 0x10
mov eax, esi
pop esi
pop ebp
ret

Function at 0x412235
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004114f0
mov eax, dword [0x456a3c]
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.0041b1c6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41bc03
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41bd5f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00411640
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 + 0x45eb60]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00418510
mov ecx, dword [esi*4 + 0x45eb60]
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 0x41bd58
cmp eax, dword [ecx + edi + 0x24]
jne 0x41bd58
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 0x41bd58
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418510
add esp, 0x14
test edx, edx
jl 0x41bd58
jg 0x41bcce
test eax, eax
jb 0x41bd58
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41bd58
jl 0x41bce8
cmp dword [ebp - 0x1008], eax
ja 0x41bd58
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41bd06
test ebx, ebx
je 0x41bd3f
cmp ecx, edi
jae 0x41bd3f
mov al, byte [ecx]
cmp al, 0xd
jne 0x41bd20
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41bd2c
cmp byte [ecx + 1], 0xa
jne 0x41bd2c
inc ecx
jmp 0x41bd2c
movzx eax, al
movsx eax, byte [eax + 0x456bc0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41bd06
cmp edx, ebx
jne 0x41bd06
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41bd5d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041144a
leave
ret
Function at 0x41f503
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 + 0x45eb60]
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 0x41f543
cmp byte [ebx], 0xa
jne 0x41f543
or byte [edi + eax + 0x28], 4
jmp 0x41f548
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 0x41f647
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41f62a
inc eax
cmp dl, 0xd
je 0x41f574
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41f59a
cmp eax, ecx
jae 0x41f5a8
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 0x41f55c
jmp 0x41f647
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 0x41f625
cmp dword [ebp - 0x10], 0
je 0x41f625
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x45eb60]
test byte [eax + edi + 0x28], 0x48
je 0x41f5ff
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41f5ea
mov byte [esi], dl
jmp 0x41f5fb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x45eb60]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41f647
cmp byte [ebp - 1], 0xa
jne 0x41f60e
cmp esi, ebx
jne 0x41f60e
mov byte [esi], 0xa
jmp 0x41f646
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041852e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41f647
mov byte [esi], 0xd
jmp 0x41f646
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x45eb60]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f644
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f647
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41f650
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x45eb60]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41f696
cmp word [ebx], dx
jne 0x41f696
or byte [eax + edi + 0x28], 4
jmp 0x41f69b
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x41f7fe
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41f7de
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41f6dc
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41f712
cmp eax, edx
jae 0x41f720
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41f6b7
jmp 0x41f7fe
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f7d9
cmp dword [ebp - 0x18], 0
je 0x41f7d9
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x45eb60]
test byte [eax + edi + 0x28], 0x48
je 0x41f7af
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x41f773
mov word [esi], cx
jmp 0x41f7aa
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x45eb60]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x45eb60]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x45eb60]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41f7fe
pop eax
cmp word [ebp - 4], ax
jne 0x41f7bf
cmp esi, ebx
jne 0x41f7bf
mov word [esi], ax
jmp 0x41f7fb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041852e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41f7fe
push 0xd
pop eax
jmp 0x41f7ba
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x45eb60]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41f7f8
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41f7fe
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret