joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f0600
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x6064]
mov eax, 0x6064
call fcn.00502fa0
push 0xffffffffffffffff
push 0x521a00
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x5513d4]
xor eax, ebp
mov dword [ebp + 0x6060], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x6074]
mov edi, dword [ebp + 0x606c]
mov esi, dword [ebp + 0x6070]
push eax
call fcn.00485280
mov edx, esi
mov ebx, eax
lea eax, [edx + 2]
lea ebx, [ebx]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4f0660
mov ecx, ebx
sub edx, eax
sar edx, 1
lea eax, [ecx + 2]
mov dword [ebp - 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f0677
sub ecx, dword [ebp - 0x10]
lea eax, [edx + 1]
sar ecx, 1
add eax, ecx
cmp eax, 0x1000
jb 0x4f069a
xor al, al
jmp 0x4f07da
push 0x1000
lea eax, [ebp + 0x60]
push eax
push ebx
push esi
call fcn.00484d90
lea ecx, [ebp]
call fcn.0049cee0
mov dword [ebp - 4], 0
lea eax, [ebp + 0x2060]
push 0x1000
push 0x52452c
push eax
push str.ViewerIgnoreModifications
push 0x525008
call fcn.004ae6d0
cmp word [ebp + 0x2060], 0
je 0x4f06f7
push 0
push 0
lea eax, [ebp]
push eax
lea eax, [ebp + 0x2060]
push eax
call fcn.004b6ac0
push 0x800
lea eax, [ebp + 0x4060]
push eax
lea ecx, [ebp]
call fcn.0049d080
test al, al
je 0x4f07aa
push 0x800
lea eax, [ebp + 0x5060]
push eax
lea eax, [ebp + 0x4060]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4f078e
cmp eax, 0x800
jae 0x4f078e
lea eax, [ebp + 0x5062]
push 0x537e0c
push eax
call fcn.00505b13
mov esi, eax
add esp, 8
test esi, esi
je 0x4f0778
xor eax, eax
mov word [esi], ax
add esi, 4
cmp word [esi], ax
jne 0x4f0763
mov esi, 0x524704
push 5
push edi
lea eax, [ebp + 0x5060]
push eax
call fcn.004789b0
test al, al
je 0x4f078e
jmp 0x4f077e
lea esi, [ebp + 0x5060]
push 5
lea eax, [ebp + 0x60]
push eax
push esi
call fcn.004789b0
test al, al
jne 0x4f07ff
push 0x800
lea eax, [ebp + 0x4060]
push eax
lea ecx, [ebp]
call fcn.0049d080
test al, al
jne 0x4f0713
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp]
test ecx, ecx
je 0x4f07d8
cmp byte [ebp + 0x10], 0
je 0x4f07cf
mov eax, dword [ebp + 8]
add eax, eax
push eax
push ecx
call fcn.0049a3e0
mov ecx, dword [ebp]
push ecx
call fcn.005097b2
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x6060]
xor ecx, ebp
call fcn.00502f8e
lea esp, [ebp + 0x6064]
pop ebp
ret 0xc
mov bl, 1
jmp 0x4f07ac
Function at 0x4f18c0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x2048
call fcn.00502fa0
mov eax, dword [0x5513d4]
xor eax, esp
mov dword [esp + 0x2044], eax
mov eax, dword [esp + 0x2054]
push ebx
push ebp
mov ebp, dword [esp + 0x206c]
push esi
mov esi, dword [esp + 0x205c]
push edi
mov edi, dword [esp + 0x2070]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2068]
push 0x3c
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00505530
mov bl, byte [esp + 0x2078]
add esp, 0xc
mov dword [esp + 0x18], 0x3c
mov dword [esp + 0x1c], 0x500
test bl, bl
jne 0x4f193b
mov dword [esp + 0x1c], 0x540
push esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebp
call fcn.00484630
test eax, eax
je 0x4f195a
cmp word [eax], 0x2e
jne 0x4f1967
cmp word [eax + 2], 0
jne 0x4f1967
or dword [esp + 0x1c], 1
mov dword [esp + 0x40], 0x524968
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
push esi
mov dword [esp + 0x30], eax
call fcn.00485280
cmp eax, esi
jne 0x4f19b0
push 0x524724
push esi
call fcn.00483700
test al, al
jne 0x4f19b0
push esi
push str.._s
lea eax, [esp + 0x5c]
push 0x1000
push eax
call fcn.004027c0
lea eax, [esp + 0x64]
add esp, 0x10
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x34], 1
push eax
mov byte [0x558b35], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
jne 0x4f1a06
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x4f19ea
test edi, edi
je 0x4f19e3
mov dword [edi], esi
mov al, 1
jmp 0x4f1ab5
cmp dword [esp + 0x24], 0
je 0x4f1a06
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
mov byte [0x558b35], 0
test esi, esi
je 0x4f1ab3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x483
je 0x4f1ab3
test bl, bl
jne 0x4f1aaf
mov edx, dword [esp + 0x50]
test edx, edx
je 0x4f1a64
mov ecx, dword [0x5bd798]
mov eax, dword [esp + 0x38]
mov dword [ecx*4 + 0x5bd758], eax
lea eax, [ecx + 1]
mov dword [ecx*4 + 0x5bd718], edx
and eax, 0x8000000f
jns 0x4f1a5d
dec eax
or eax, 0xfffffff0
inc eax
mov dword [0x5bd798], eax
jmp 0x4f1aa9
xor esi, esi
jmp 0x4f1a70
mov eax, dword [esi + 0x5bd758]
cmp eax, dword [esp + 0x38]
jne 0x4f1aa1
push 0
push dword [esi + 0x5bd718]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4f1a9d
mov edx, dword [esi + 0x5bd718]
mov dword [esp + 0x50], edx
jmp 0x4f1aa1
mov edx, dword [esp + 0x50]
add esi, 4
cmp esi, 0x40
jl 0x4f1a70
test edi, edi
je 0x4f1aaf
mov dword [edi], edx
mov al, 1
jmp 0x4f1ab5
xor al, al
mov ecx, dword [esp + 0x2054]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00502f8e
add esp, 0x2048
ret 0x1c
Function at 0x4f8c70
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push 0x5eda68
mov esi, ecx
call fcn.004692a0
mov ebx, dword [esp + 0xc]
mov dword [esi + 0x1e8], 0x12345678
mov dword [esi + 0x1ec], 0x23456789
mov dword [esi + 0x1f0], 0x34567890
mov cl, byte [ebx]
test cl, cl
je 0x4f8d06
mov eax, dword [esi + 0x1e8]
mov edx, 0x34567890
push edi
mov edi, dword [esi + 0x1ec]
movsx ecx, cl
lea ebx, [ebx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5eda68]
movzx ecx, al
add ecx, edi
mov dword [esi + 0x1e8], eax
imul edi, ecx, 0x8088405
inc edi
mov ecx, edi
mov dword [esi + 0x1ec], edi
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x5eda68]
mov dword [esi + 0x1f0], edx
mov cl, byte [ebx]
test cl, cl
jne 0x4f8cb8
pop edi
pop esi
pop ebx
ret 4

Function at 0x4f8d10
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
cmp byte [0x5696d0], 0
mov edx, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, ecx
mov ecx, dword [esp + 0x10]
je 0x4f8df8
cmp byte [esi + 4], 0
je 0x4f8d5c
lea eax, [esi + 8]
push eax
mov eax, ecx
imul eax, edi
push eax
push edx
call fcn.004c5120
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
push edi
push ecx
push edx
mov ecx, esi
call fcn.004f7500
pop edi
pop esi
ret 0xc
push ebx
mov ebx, ecx
imul ebx, edi
push ebp
mov ebp, edx
test ebx, ebx
je 0x4f8df6
lea ecx, [ecx]
movsx eax, byte [ebp]
lea ebp, [ebp + 1]
xor eax, dword [esi + 0x1e8]
mov ecx, dword [esi + 0x1e8]
mov edx, dword [esi + 0x1f0]
mov edi, edx
movzx eax, al
and edi, 0xfffd
shr ecx, 8
or edi, 2
mov eax, dword [eax*4 + 0x5eda68]
xor eax, ecx
mov dword [esi + 0x1e8], eax
movzx eax, al
add eax, dword [esi + 0x1ec]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x1ec], eax
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x5eda68]
mov eax, edi
xor eax, 1
mov dword [esi + 0x1f0], edx
imul eax, edi
shr eax, 8
xor byte [ebp - 1], al
sub ebx, 1
jne 0x4f8d70
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
pop ebp
pop ebx
push 0
push edi
push ecx
push edx
mov ecx, esi
call fcn.004f7500
pop edi
pop esi
ret 0xc
Function at 0x501a60
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x501a8e
test al, 0x10
jne 0x501a87
and eax, 0xffffffdf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x501a8e
pop edi
mov al, 1
pop esi
ret 4
push esi
push dword [edi + 0x64b75c]
push 0x11
call fcn.004156b0
pop edi
xor al, al
pop esi
ret 4

Function at 0x512f60
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00512ddf

Function at 0x514ba3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00514863
Function at 0x40c2ed
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi + 4], vtable.CZMOutlookMAPI.1.0
lea ecx, [esi + 0x10]
mov dword [esi], vtable.CZMOutlookMAPI.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call sym.ZoomOutlookMAPI.exe_public:_void___thiscall_Cmm::CEvent::constructor_void_
lea eax, [ebp - 4]
mov dword [esi + 0x14], edi
push eax
push edi
push esi
push 0x40c450
push edi
push edi
mov dword [esi + 0x18], edi
call fcn.0049efac
add esp, 0x18
mov dword [esi + 8], eax
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x40c48d
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x40c4c7
push 0xbb8
push dword [esi + 0x10]
mov dword [esi + 0xc], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40c4ba
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 8], 0
xor eax, eax
inc eax
pop esi
ret

Function at 0x411850
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ecx]
xor edx, edx
push esi
push edi
push 0
push 0
inc edx
mov ecx, ebx
call fcn.00411430
push dword [ebp + 0xc]
mov esi, edx
mov ecx, ebx
push dword [ebp + 8]
xor edx, edx
mov edi, eax
call fcn.00411430
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
push edi
xor edx, edx
mov ecx, ebx
call fcn.00411430
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x412560
Capabilities:
Set current directory

Disassembly:
add ecx, 4
cmp dword [ecx + 0x14], 8
jb 0x41256b
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
ret

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

Disassembly:
push esi
xor esi, esi
test ecx, ecx
jne 0x412827
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x412842
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x412842
mov edx, 0x410
xor ecx, ecx
and eax, edx
inc ecx
cmp eax, edx
cmove esi, ecx
mov eax, esi
pop esi
ret
Function at 0x412984
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x5a205c]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
push 0x250
xor ebx, ebx
mov dword [esp + 0x10], edx
lea eax, [esp + 0x1c]
mov esi, ecx
push ebx
push eax
call fcn.00498440
add esp, 0xc
or edi, 0xffffffff
test esi, esi
je 0x412ae8
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4129cc
sub ecx, edx
sar ecx, 1
je 0x412ae8
push ecx
push 0x4e6194
mov ecx, esi
call fcn.004126d5
mov ebx, eax
mov dword [esp + 0x18], ebx
pop ecx
pop ecx
test ebx, ebx
jne 0x412a07
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x412adc
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x412acc
mov ebx, esi
test byte [esp + 0x18], 0x10
je 0x412a51
lea eax, [esp + 0x44]
push 0x4e6198
push eax
call fcn.004a0b25
pop ecx
pop ecx
test eax, eax
je 0x412ab4
lea eax, [esp + 0x44]
push 0x4e619c
push eax
call fcn.004a0b25
pop ecx
pop ecx
test eax, eax
je 0x412ab4
push ecx
lea eax, [esp + 0x48]
mov ecx, ebx
push eax
call fcn.004126d5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x412ab4
test byte [esp + 0x18], 0x10
je 0x412a8e
mov ecx, esi
call fcn.00412816
test eax, eax
jne 0x412a85
mov edx, dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00412984
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x412aa4
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push 0
push eax
push esi
call dword [0x4ce460]
call dword [esp + 0x18]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x412a20
mov ebx, dword [esp + 0x10]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
jmp 0x412af2
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004959d0
mov esp, ebp
pop ebp
ret
Function at 0x412b80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x412c16
mov ecx, esi
push ebx
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x412b9a
sub ecx, edx
sar ecx, 1
je 0x412c15
xor eax, eax
push edi
mov word [ebp - 2], ax
lea eax, [ebp - 2]
push ecx
push eax
lea eax, [ecx + 6]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041539f
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
sub eax, ebx
push 0xffffffffffffffff
push esi
sar eax, 1
push eax
push ebx
call sym.ZoomOutlookMAPI.exe_cmm_wstr_ncpy
xor edi, edi
add esp, 0x10
inc edi
movzx esi, word [ebx + edi*2]
cmp esi, 0x5c
je 0x412bf0
cmp esi, 0x2f
je 0x412bf0
test si, si
jne 0x412c07
xor eax, eax
push eax
push ebx
mov word [ebx + edi*2], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [ebx + edi*2], si
test si, si
je 0x412c0c
add edi, 1
jne 0x412bdd
lea ecx, [ebp - 0x10]
call fcn.004157ba
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41321f
Capabilities:
Set current directory

Disassembly:
push 0x27c
mov eax, 0x4c2ab0
call fcn.00496608
mov dword [ebp - 0x288], edx
mov esi, ecx
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x284], eax
xor eax, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x2c], vtable.Cmm::CFileName.0
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x2c]
call sym.ZoomOutlookMAPI.exe_public:_void___thiscall_Cmm::CFileName::GetCurrentDirectoryW_void_
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x41334e
lea eax, [ebp - 0x280]
push 0x4e6198
push eax
call sym.ZoomOutlookMAPI.exe_cmm_fs_find_first
pop ecx
pop ecx
mov esi, dword [ebp - 0x288]
mov byte [ebp - 4], 2
cmp word [ebp - 0x250], 0
je 0x413342
push dword [ebp - 0x284]
lea eax, [ebp - 0x280]
mov ecx, ebx
push edi
push esi
push eax
call dword [0x4ce460]
call ebx
add esp, 0x10
cmp dword [edi], 0
jne 0x413342
mov eax, dword [ebp - 0x27c]
and eax, 0x10
je 0x41331b
push 0x2e
pop eax
cmp word [ebp - 0x250], ax
jne 0x413302
cmp word [ebp - 0x24e], 0
je 0x41331b
cmp word [ebp - 0x24e], ax
jne 0x413302
cmp word [ebp - 0x24c], 0
je 0x41331b
push dword [ebp - 0x284]
lea edx, [esi + 1]
push ebx
push edi
lea ecx, [ebp - 0x250]
call fcn.0041321f
add esp, 0xc
lea eax, [ebp - 0x27c]
push eax
push dword [ebp - 0x280]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41329f
mov word [ebp - 0x250], ax
jmp 0x41329f
push dword [ebp - 0x280]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], vtable.Cmm::CStringT_wchar_t_.0
call fcn.00407ca9
call fcn.004965b7
ret
Function at 0x413db0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x413e7d
movzx eax, word [esi]
test ax, ax
je 0x413e7d
push 0x2f
mov edi, eax
mov dword [ebp - 4], 0x5c
pop eax
push 0x2e
mov ecx, esi
xor edx, edx
pop ebx
jmp 0x413de6
push 0x2f
pop eax
cmp di, 0x2a
je 0x413e7d
cmp di, word [ebp - 4]
je 0x413dfb
cmp di, ax
jne 0x413e2e
cmp edx, 2
jne 0x413e0c
cmp word [ecx - 2], bx
jne 0x413e2e
cmp word [ecx - 4], bx
jmp 0x413e2c
jle 0x413e2e
cmp word [ecx - 2], bx
jne 0x413e2e
cmp word [ecx - 4], bx
jne 0x413e2e
movzx eax, word [ecx - 6]
push 0x5c
pop edi
cmp ax, di
je 0x413e7d
push 0x2f
pop edi
cmp ax, di
je 0x413e7d
add ecx, 2
inc edx
movzx eax, word [ecx]
mov edi, eax
test ax, ax
jne 0x413de3
cmp edx, 2
jl 0x413e68
cmp word [ecx - 2], bx
jne 0x413e68
cmp word [ecx - 4], bx
jne 0x413e68
cmp edx, 2
je 0x413e7d
jle 0x413e68
movzx eax, word [ecx - 6]
push 0x5c
pop ecx
cmp ax, cx
je 0x413e7d
push 0x2f
pop ecx
cmp ax, cx
je 0x413e7d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x413e7d
test al, 0x10
jne 0x413e7d
xor eax, eax
inc eax
jmp 0x413e7f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4148e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.00416445

Function at 0x4148f0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.004165e0
Function at 0x414c90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x414cb7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402d80
jmp 0x414d6c
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x414cd9
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x414cdb
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x414d60
jg 0x414cf0
test esi, esi
je 0x414d60
test ecx, ecx
jl 0x414d43
jg 0x414cfa
test eax, eax
je 0x414d43
cmp edi, ecx
jg 0x414d0e
jl 0x414d04
cmp esi, eax
jae 0x414d0e
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.00497eb0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
mov eax, dword [ebp + 8]
add eax, ecx
test edi, edi
jl 0x414d60
jg 0x414d46
test esi, esi
je 0x414d60
jmp 0x414d46
mov eax, dword [ebp + 8]
cmp dword [ebx + 0x4c], 0
je 0x414d60
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.004a3a09
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x414d80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
mov dword [ebp - 8], esi
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x414da5
jl 0x414d9c
test edi, edi
jne 0x414da5
xor eax, eax
xor edx, edx
jmp 0x414e66
cmp dword [esi + 0x38], 0
je 0x414dba
push eax
push edi
push dword [ebp + 8]
call fcn.00402e60
jmp 0x414e66
mov eax, dword [esi + 0x1c]
push ebx
mov ebx, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x414dfd
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x414dfd
cmp dword [eax], edi
mov esi, edi
mov ebx, dword [ebp + 8]
cmovb esi, dword [eax]
push esi
push ecx
push ebx
call fcn.00497eb0
mov ecx, dword [ebp - 8]
add ebx, esi
mov dword [ebp - 4], ebx
add esp, 0xc
mov ebx, edi
sub ebx, esi
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
jmp 0x414e03
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [esi + 0x4c], 0
mov ecx, ebx
je 0x414e5b
mov ecx, esi
call fcn.004155e6
mov edx, dword [ebp - 4]
mov ecx, ebx
jmp 0x414e3b
push dword [esi + 0x4c]
push eax
push 1
push edx
call fcn.004a408b
mov edx, dword [ebp - 4]
sub ebx, eax
add edx, eax
add esp, 0x10
mov dword [ebp - 4], edx
mov ecx, ebx
cmp eax, 0xfff
jne 0x414e6c
mov eax, 0xfff
cmp ebx, eax
ja 0x414e19
test ecx, ecx
je 0x414e5b
push dword [esi + 0x4c]
push ebx
push 1
push edx
call fcn.004a408b
mov ecx, ebx
add esp, 0x10
sub ecx, eax
sub edi, ecx
mov edx, dword [ebp + 0x10]
mov eax, edi
sbb edx, 0
pop ebx
pop edi
pop esi
leave
ret 0xc
sub edi, ebx
jmp 0x414e5d
Function at 0x4150c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5a205c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
or ebx, 0xffffffff
push edi
mov edi, ecx
cmp dword [ebp + 8], ebx
jne 0x4150e3
xor eax, eax
jmp 0x4151ba
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x415112
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [esi + ecx]
cmp ecx, eax
jae 0x415112
mov eax, dword [ebp + 8]
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x4151b9
cmp dword [edi + 0x4c], 0
je 0x4151b7
mov ecx, edi
call fcn.004155e6
mov eax, dword [edi + 0x38]
mov cl, byte [ebp + 8]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x415143
push dword [edi + 0x4c]
push ecx
call fcn.004126bb
test al, al
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
jmp 0x4151b7
mov byte [ebp - 0x28], cl
mov esi, dword [eax]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
push eax
mov ecx, dword [esi + 0x1c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x4ce460]
mov ecx, dword [ebp - 0x2c]
call dword [esi + 0x1c]
sub eax, 0
je 0x41518b
sub eax, 1
je 0x41518b
dec eax
sub eax, 1
jne 0x4151b7
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x415134
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x4151a8
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.004a3a09
add esp, 0x10
cmp esi, eax
jne 0x4151b7
lea eax, [ebp - 0x28]
mov byte [edi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
jne 0x4151b9
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004959d0
leave
ret 4

Function at 0x415634
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5a205c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
cmp dword [ebx + 0x38], 0
je 0x4156a5
cmp byte [ebx + 0x3d], 0
je 0x4156a5
mov eax, dword [ebx]
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4ce460]
mov ecx, ebx
call esi
cmp eax, 0xffffffff
je 0x4156de
push edi
mov edi, dword [ebx + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov esi, dword [edi]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0x40]
push eax
mov ecx, dword [esi + 0x20]
call dword [0x4ce460]
mov ecx, edi
call dword [esi + 0x20]
xor ecx, ecx
pop edi
sub eax, ecx
je 0x4156b5
sub eax, 1
je 0x4156b8
dec eax
sub eax, 1
jne 0x4156de
mov byte [ebx + 0x3d], cl
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004959d0
leave
ret
mov byte [ebx + 0x3d], cl
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x4156d5
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.004a3a09
add esp, 0x10
cmp esi, eax
jne 0x4156de
cmp byte [ebx + 0x3d], 0
sete al
jmp 0x4156a7
xor al, al
jmp 0x4156a7