joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c240
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52365d
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x574a28]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
cmp dword [esp + 0x30], 0
mov dword [esp + 8], 0
je 0x44c2b1
mov dword [esi + 4], sym.ftl.bin_const_log4cplus::RollingFileAppender::vbtable
push 1
lea ecx, [esi + 0x12c]
mov dword [esi + method.log4cplus::helpers::SharedObject.virtual_0], vtable.log4cplus::helpers::SharedObject.0
call sym.ftl.bin_public:_void___thiscall_log4cplus::thread::Mutex::constructor_enum_log4cplus::thread::Mutex::Type_
mov dword [esi + 0x130], 0
mov dword [esp + 0x18], 0
mov dword [esp + 8], 1
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
push 0
push eax
push 8
push ecx
mov ecx, esi
call sym.ftl.bin_public:_void___thiscall_log4cplus::FileAppender::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___int__bool_
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], 1
mov edx, dword [esi + 4]
mov dword [esi], vtable.log4cplus::RollingFileAppender.0
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x24]
push ecx
push edx
mov ecx, esi
mov dword [eax + esi + 4], vtable.log4cplus::RollingFileAppender.1.0
call sym.ftl.bin_private:_void___thiscall_log4cplus::RollingFileAppender::init_long_int__int_
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret 0x14
Function at 0x44e110
Capabilities:
Access peb ldr_data
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x520c68
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
mov eax, dword [0x574a28]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [0x57bf5c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x44e14a
call fcn.004240c0
mov edx, dword [edi]
mov edx, dword [edx + 4]
lea ebx, [eax + 0x2f4]
mov eax, dword [esp + 0x3c]
push eax
push ebx
mov ecx, edi
call edx
mov eax, dword [ebx + 0x14]
mov ecx, dword [edi + 8]
cmp eax, ecx
jbe 0x44e1b8
sub eax, ecx
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
call fcn.004359a0
push eax
push esi
mov dword [esp + 0x3c], 0
call fcn.00420a00
add esp, 8
cmp dword [esp + 0x28], 8
jb 0x44e24f
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00485e85
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop ebp
pop ebx
add esp, 0x2c
ret 4
cmp eax, dword [edi + 4]
push ebx
push esi
jge 0x44e247
mov edx, dword [esi]
mov eax, dword [edx + 4]
movzx ecx, word [eax + esi + 0x30]
mov ebp, dword [eax + esi + 0x10]
add eax, esi
mov dword [esp + 0x44], ecx
mov edx, 0x20
mov word [eax + 0x30], dx
mov eax, dword [esi]
mov eax, dword [eax + 4]
movzx ecx, byte [edi + 0xc]
add eax, esi
neg ecx
sbb ecx, ecx
and ecx, 0xffffffc0
sub ecx, 0xffffff80
xor ecx, dword [eax + 0x10]
and ecx, 0x1c0
xor dword [eax + 0x10], ecx
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, dword [edi + 4]
mov dword [eax + esi + 0x18], ecx
call fcn.00420a00
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov cx, word [esp + 0x44]
mov word [eax + esi + 0x30], cx
mov edx, dword [esi]
mov eax, dword [edx + 4]
add esp, 8
and ebp, 0xffff
mov dword [eax + esi + 0x10], ebp
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop ebp
pop ebx
add esp, 0x2c
ret 4
call fcn.00420a00
add esp, 8
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop ebp
pop ebx
add esp, 0x2c
ret 4
Function at 0x455ce0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5216f0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x574a28]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x574a28]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor ecx, ecx
push edx
mov word [esp + 0x3c], cx
xor esi, esi
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], esi
call fcn.00416d90
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x68], esi
call sym.ftl.bin_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_log4cplus::helpers::tostring_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 8
mov byte [esp + 0x60], 1
cmp dword [esp + 0x30], 0x10
jb 0x455d6c
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], edx
jmp 0x455d74
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x2c]
jmp 0x455d80
mov eax, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
mov edx, edi
sub edx, esi
push edx
lea ecx, [esi + eax]
push ecx
push ebx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x455e0c
add esi, dword [esp + 0x14]
cmp esi, edi
jne 0x455d80
cmp dword [esp + 0x30], 0x10
jb 0x455dc3
mov eax, dword [esp + 0x1c]
push eax
call fcn.00485e85
add esp, 4
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
jb 0x455dec
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00485e85
add esp, 4
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004ca80c
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x57bf58], 0
jne 0x455e1a
call fcn.004236c0
mov eax, dword [sym.ftl.bin_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t____log4cplus::tcerr]
mov ecx, dword [0x57bf58]
push 0
lea edx, [esp + 0x14]
push edx
push str.log4cplus:ERROR
push sym.ftl.bin_private:_bool___thiscall_log4cplus::helpers::LogLog::get_not_quiet_mode_void_const
push eax
add ecx, 4
mov dword [esp + 0x24], str.Win32ConsoleAppender::write_handle__WriteFile_has_failed.
call fcn.00433390
cmp dword [esp + 0x30], 0x10
jb 0x455e5b
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00485e85
add esp, 4
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
jb 0x455dec
mov edx, dword [esp + 0x38]
push edx
jmp 0x455de4
Function at 0x456790
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x51c90b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x574a28]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov eax, dword [0x574a28]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24c]
mov esi, dword [esp + 0x250]
xor ebx, ebx
push 0x206
lea ecx, [esp + 0x36]
xor eax, eax
push ebx
mov dword [esp + 0x18], ebx
push ecx
mov word [esp + 0x3c], ax
call fcn.004cb660
add esp, 0xc
push 0x103
lea edx, [esp + 0x34]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x456823
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00416d90
push 1
push 0xffffffffffffffff
lea edx, [esp + 0x18]
mov dword [esp + 0x24c], ebx
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], 0x5c
call fcn.00443a00
mov esi, eax
cmp esi, 0xffffffff
je 0x456889
cmp esi, dword [esp + 0x28]
jbe 0x456874
call fcn.004cee93
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x456883
lea eax, [esp + 0x18]
xor ecx, ecx
mov word [eax + esi*2], cx
cmp dword [esp + 0x2c], 8
mov edx, dword [esp + 0x18]
jae 0x456898
lea edx, [esp + 0x18]
xor eax, eax
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
mov word [edi + 4], ax
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4568b0
sub eax, esi
sar eax, 1
push eax
push edx
mov ecx, edi
call fcn.00416d90
cmp dword [esp + 0x2c], 8
jb 0x4568dc
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00485e85
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004ca80c
add esp, 0x238
ret
Function at 0x45a1a0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x208
mov eax, dword [0x574a28]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push ebp
mov ebp, dword [esp + 0x21c]
push esi
push edi
xor ebx, ebx
push 0xff
lea eax, [esp + 0x19]
push ebx
push eax
mov byte [esp + 0x20], bl
call fcn.004cb660
push 0xff
lea ecx, [esp + 0x125]
push ebx
push ecx
mov byte [esp + 0x12c], bl
call fcn.004cb660
mov ecx, 1
add esp, 0x18
test byte [0x57c058], cl
jne 0x45a212
or dword [0x57c058], ecx
mov esi, 0x10
mov dword [0x57c054], esi
jmp 0x45a218
mov esi, dword [0x57c054]
xor eax, eax
lea ebx, [ebx]
mov byte [esp + eax + 0x14], al
add eax, ecx
cmp eax, 0x100
jb 0x45a220
mov edi, dword [esp + 0x22c]
xor eax, eax
xor ecx, ecx
cmp edi, ebx
je 0x45a260
mov esi, dword [esp + 0x228]
cmp eax, edi
jne 0x45a249
xor eax, eax
mov dl, byte [eax + esi]
mov byte [esp + ecx + 0x114], dl
inc ecx
inc eax
cmp ecx, 0x100
jb 0x45a243
jmp 0x45a27d
cmp eax, esi
jne 0x45a266
xor eax, eax
mov dl, byte [eax + str.www.systweak.com]
mov byte [esp + ecx + 0x114], dl
inc ecx
inc eax
cmp ecx, 0x100
jb 0x45a260
xor ecx, ecx
xor eax, eax
mov dl, byte [esp + eax + 0x14]
movzx esi, byte [esp + eax + 0x114]
movzx edi, dl
add esi, ecx
add edi, esi
and edi, 0xff
mov ecx, edi
mov bl, byte [esp + ecx + 0x14]
mov byte [esp + eax + 0x14], bl
inc eax
mov byte [esp + ecx + 0x14], dl
cmp eax, 0x100
jb 0x45a281
mov edx, dword [esp + 0x220]
xor edi, edi
xor esi, esi
test edx, edx
jbe 0x45a314
mov ecx, ebp
mov ebp, dword [esp + 0x21c]
sub ebp, ecx
lea ebx, [ebx]
inc esi
and esi, 0xff
mov al, byte [esp + esi + 0x14]
movzx ebx, al
add ebx, edi
and ebx, 0xff
mov edi, ebx
mov bl, byte [esp + edi + 0x14]
mov byte [esp + esi + 0x14], bl
mov byte [esp + edi + 0x14], al
movzx ebx, byte [esp + esi + 0x14]
movzx eax, al
add eax, ebx
and eax, 0xff
movzx eax, byte [esp + eax + 0x14]
xor al, byte [ecx + ebp]
inc ecx
sub edx, 1
mov byte [ecx - 1], al
jne 0x45a2d0
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ca80c
add esp, 0x208
ret
Function at 0x46ae60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x51c388
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x574a28]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [esp + 0x8c]
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 4]
mov esi, dword [edi + 0x14]
sub eax, 2
mov ebx, 1
cmp esi, eax
ja 0x46aeca
cmp dword [edi + 0x18], eax
je 0x46aeca
push ebx
push eax
call fcn.0040e0b0
test al, al
je 0x46aeca
cmp dword [edi + 0x18], 0x10
mov dword [edi + 0x14], esi
jb 0x46aec3
mov eax, dword [edi + 4]
jmp 0x46aec6
lea eax, [edi + 4]
mov byte [eax + esi], 0
mov esi, dword [ebp + 4]
mov ecx, dword [ebp + 8]
sub ecx, ebx
add esi, ebx
mov dword [esp + 0x18], ecx
cmp esi, ecx
je 0x46b0ab
jmp 0x46aee6
mov ecx, dword [esp + 0x18]
mov al, byte [esi]
add esi, ebx
mov byte [esp + 0x20], al
cmp al, 0x22
je 0x46b0ab
cmp al, 0x5c
jne 0x46afe7
cmp esi, ecx
je 0x46b003
mov al, byte [esi]
movsx eax, al
add esi, ebx
add eax, 0xffffffde
mov dword [esp + 0x8c], esi
cmp eax, 0x53
ja case.0x46af27.35
movzx eax, byte [eax + 0x46b0ec]
jmp dword [eax*4 + 0x46b0c4]
push 0x22
jmp 0x46afec
push 0x2f
jmp 0x46afec
push 0x5c
jmp 0x46afec
push 8
jmp 0x46afec
push 0xc
jmp 0x46afec
push 0xa
jmp 0x46afec
push 0xd
jmp 0x46afec
push 9
jmp 0x46afec
mov eax, dword [esp + 0x88]
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
lea ecx, [esp + 0x98]
mov edx, ebp
call fcn.0046b140
test al, al
je 0x46b04f
mov ecx, dword [esp + 0x1c]
lea esi, [esp + 0x5c]
call fcn.00469070
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
mov dword [esp + 0x8c], ebx
call fcn.0040f570
mov dword [esp + 0x80], 0xffffffff
cmp dword [esp + 0x74], 0x10
jb 0x46afc9
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00485e85
add esp, 4
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
jmp 0x46aff4
mov edx, dword [esp + 0x20]
push edx
push ebx
mov ecx, edi
call fcn.0040de70
cmp esi, dword [esp + 0x18]
jne 0x46aee2
jmp 0x46b0ab
push 0x1f
xor edi, edi
push str.Empty_escape_sequence_in_string
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], edi
mov byte [esp + 0x30], 0
call fcn.0040df20
mov edx, dword [esp + 0x88]
push esi
push ebp
lea ecx, [esp + 0x2c]
mov dword [esp + 0x88], edi
call fcn.0046b3f0
cmp dword [esp + 0x3c], 0x10
mov bl, al
jb 0x46b0ab
mov eax, dword [esp + 0x28]
push eax
jmp 0x46b0a3
xor al, al
jmp 0x46b0ad
push 0x1d
push str.Bad_escape_sequence_in_string
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
call fcn.0040df20
mov edx, dword [esp + 0x88]
push esi
push ebp
lea ecx, [esp + 0x48]
mov dword [esp + 0x88], 2
call fcn.0046b3f0
cmp dword [esp + 0x58], 0x10
mov bl, al
jb 0x46b0ab
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00485e85
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 8
Function at 0x46eec0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0x578b54
push 0
mov eax, dword [ebp - 4]
push eax
push 0x46ef80
push 0
push 0
call fcn.004ca91c
add esp, 0x18
mov dword [0x578b50], eax
cmp dword [0x578b50], 0
je 0x46eef9
mov ecx, dword [ebp - 4]
call fcn.00470480
cmp dword [0x578b50], 0
setne al
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 8]
call fcn.00470940
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x47231c
mov eax, dword [ebp - 4]
and eax, 0x10
je 0x47231c
mov byte [ebp - 5], 1
jmp 0x472320
mov byte [ebp - 5], 0
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x475480
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x574a28]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00475e60
add esp, 8
test eax, eax
je 0x4754c4
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00475500
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x4754e8
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004cb9c1
add esp, 8
test eax, eax
je 0x4754e8
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004ca80c
mov esp, ebp
pop ebp
ret
Function at 0x477360
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512273
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x574a28]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x24]
call fcn.0041bc20
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
add ecx, 0x20
call sym.ftl.bin_public:_void___thiscall_FileHeader::constructor_void_
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x420], 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x24]
call fcn.004132b0
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x1c], 0
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocString
mov ecx, dword [ebp - 0x24]
call fcn.00414aa0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x477486
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp dword [ebp - 0x18], 0
jl 0x47747c
jg 0x477422
cmp dword [ebp - 0x1c], 0x400
jb 0x47747c
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
push 0x400
mov ecx, dword [ebp - 0x24]
add ecx, 0x20
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 4
mov eax, dword [ebp - 0x24]
add eax, 0x20
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x20
call sym.ftl.bin_public:_bool___thiscall_FileHeader::IsCryptograph_unsigned_char___int_
movzx ecx, al
test ecx, ecx
je 0x47747c
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x1c], 1
mov eax, dword [ebp - 0x24]
add eax, 0x20
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x20
call sym.ftl.bin_public:_bool___thiscall_FileHeader::DecryptMemory_void_const__
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x478140
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2840
call fcn.004cf6c0
mov eax, dword [0x574a28]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x2840], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2840]
cmp dword [eax + 0xa8], 1
jne 0x47817a
xor eax, eax
jmp 0x47831c
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocString
mov ecx, dword [ebp - 0x2840]
call fcn.00414aa0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x4781ae
xor eax, eax
jmp 0x47831c
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov ecx, dword [ebp + 8]
call fcn.00414aa0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4781e9
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x47831c
mov byte [ebp - 0x2838], 0
push 0x27ff
push 0
lea edx, [ebp - 0x2837]
push edx
call fcn.004cb660
add esp, 0xc
mov byte [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov ecx, dword [ebp - 0x2840]
cmp dword [ecx + 0x1c], 0
je 0x47825b
push 0
push 0
push 0x400
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x20
mov eax, dword [ebp - 0x2840]
add eax, 0x44
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.004cb2f0
add esp, 0xc
mov dword [ebp - 0x34], 0x2800
mov dword [ebp - 0x283c], 0x2800
cmp dword [ebp - 0x34], 0x2800
jne 0x478305
push 0
lea edx, [ebp - 0x34]
push edx
push 0x2800
lea eax, [ebp - 0x2838]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4782a0
jmp 0x478305
mov edx, dword [ebp - 0x2840]
cmp dword [edx + 0x1c], 0
je 0x4782d7
lea eax, [ebp - 0x30]
push eax
call fcn.004cbac0
add esp, 4
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x2838]
push edx
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2838]
push ecx
call fcn.0045a1a0
add esp, 0x14
push 0
lea edx, [ebp - 0x283c]
push edx
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2838]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x478300
jmp 0x478305
jmp 0x47826c
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004ca80c
mov esp, ebp
pop ebp
ret 4
Function at 0x4791c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x574a28]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x414], ecx
mov eax, dword [ebp - 0x414]
cmp dword [eax + 0x1c], 0
je 0x4791f4
mov ecx, dword [ebp - 0x414]
cmp dword [ecx + 0xa8], 2
jne 0x4791fb
xor eax, eax
jmp 0x4792cd
mov edx, dword [ebp - 0x414]
mov eax, dword [edx + 0x13f]
cmp eax, dword [ebp + 8]
jne 0x479213
xor eax, eax
jmp 0x4792cd
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
mov ecx, dword [ebp - 0x414]
call fcn.00414aa0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0xffffffff
jne 0x47924d
xor eax, eax
jmp 0x4792cd
mov ecx, dword [ebp - 0x414]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x13f], edx
mov byte [ebp - 0x408], 0
push 0x3ff
push 0
lea eax, [ebp - 0x407]
push eax
call fcn.004cb660
add esp, 0xc
lea ecx, [ebp - 0x408]
push ecx
mov ecx, dword [ebp - 0x414]
add ecx, 0x20
call sym.ftl.bin_public:_bool___thiscall_FileHeader::EncryptMemory_void__
mov dword [ebp - 0x410], 0
push 0
lea edx, [ebp - 0x410]
push edx
push 0x400
lea eax, [ebp - 0x408]
push eax
mov ecx, dword [ebp - 0x40c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x40c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004ca80c
mov esp, ebp
pop ebp
ret 4
Function at 0x4792e0
Capabilities:
Print debug messages
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x282c
call fcn.004cf6c0
mov eax, dword [0x574a28]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov ecx, dword [ebp + 8]
call fcn.00414aa0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x479330
mov eax, dword [ebp - 4]
jmp 0x479480
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov ecx, dword [ebp + 0xc]
call fcn.00414aa0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4793e0
push 0
push 0x80
push 5
push 0
push 7
push 0x40000000
mov ecx, dword [ebp + 0xc]
call fcn.00414aa0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x282c], eax
mov byte [ebp - 0x2828], 0
xor eax, eax
mov dword [ebp - 0x2827], eax
mov dword [ebp - 0x2823], eax
mov byte [ebp - 0x281f], al
push 0xa
lea ecx, [ebp - 0x2828]
push ecx
mov edx, dword [ebp - 0x282c]
push edx
call fcn.004cf780
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 8], 0xffffffff
jne 0x4793e0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x479480
mov byte [ebp - 0x2818], 0
push 0x27ff
push 0
lea ecx, [ebp - 0x2817]
push ecx
call fcn.004cb660
add esp, 0xc
mov dword [ebp - 0xc], 0x2800
mov dword [ebp - 0x281c], 0x2800
cmp dword [ebp - 0xc], 0x2800
jne 0x479469
push 0
lea edx, [ebp - 0xc]
push edx
push 0x2800
lea eax, [ebp - 0x2818]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x47943e
jmp 0x479469
push 0
lea edx, [ebp - 0x281c]
push edx
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x2818]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x479467
jmp 0x479469
jmp 0x47940e
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ca80c
mov esp, ebp
pop ebp
ret