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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x58daa8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x600f80]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
push edi
mov eax, dword [0x600f80]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov dword [esp + 0xc], ecx
mov edi, dword [ebp + 0xc]
lea ecx, [esp + 0x14]
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push 0xffffffffffffffff
push 0
movdqa xmmword [esp + 0x2c], xmm0
movdqa xmmword [esp + 0x1c], xmm0
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
call fcn.004083b0
cmp dword [esp + 0x28], 0x10
lea ecx, [esp + 0x14]
mov al, byte [edi + 0x18]
cmovae ecx, dword [esp + 0x14]
cmp dword [edi + 0x14], 0x10
mov byte [esp + 0x2c], al
mov eax, dword [edi + 0x1c]
jb 0x45b67a
mov edi, dword [edi]
sub eax, edi
add eax, ecx
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x54], 0
call fcn.0045b6f0
mov ecx, eax
mov byte [esi], 0
test ecx, ecx
je 0x45b6ad
lea eax, [esi + 4]
test eax, eax
je 0x45b6aa
mov dword [eax], ecx
mov byte [esi], 1
cmp dword [esp + 0x28], 0x10
jb 0x45b6c0
push dword [esp + 0x14]
call fcn.0053e195
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret 8

Function at 0x45eeb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x58e1d9
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x600f80]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov dword [esp + 8], 0
add ecx, 0xffffffd4
mov dword [esp + 0x30], 0x5e2d44
mov dword [esp + 0x38], vtable.boost::exception_detail::clone_base.0
push ecx
mov dword [esp + 0x4c], 0
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 1
call fcn.0045e2c0
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::property_tree::ptree_bad_path__.1.0
mov dword [esp + 0x1c], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::property_tree::ptree_bad_path__.0
push 0x5fa118
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x34], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::property_tree::ptree_bad_path__.2.0
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 4]
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + eax + 0x30], 0
lea eax, [esp + 0x10]
push eax
call fcn.005491a6
int3
Function at 0x4607b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x58e1d9
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x600f80]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov dword [esp + 8], 0
add ecx, 0xffffffd4
mov dword [esp + 0x30], 0x5e2d44
mov dword [esp + 0x38], vtable.boost::exception_detail::clone_base.0
push ecx
mov dword [esp + 0x4c], 0
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 1
call fcn.004600f0
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::property_tree::ptree_bad_data__.2.0
mov dword [esp + 0x1c], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::property_tree::ptree_bad_data__.0
push 0x5fa06c
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x34], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::property_tree::ptree_bad_data__.1.0
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 4]
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + eax + 0x30], 0
lea eax, [esp + 0x10]
push eax
call fcn.005491a6
int3
Function at 0x469640
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x600f80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x110]
mov dword [ebp - 0x12c], 0
push eax
push 0
push 0
push 0x23
push 0
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x469744
push 0xffffffffffffffff
push 0x5dc5dc
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0053d744
add esp, 0x10
lea ecx, [ebp - 0x128]
call fcn.00425f00
cmp dword [eax + 0x14], 0x10
jb 0x4696ab
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0053d744
add esp, 0x10
cmp dword [ebp - 0x114], 0x10
jb 0x4696d9
push dword [ebp - 0x128]
call fcn.0053e195
add esp, 4
push 0xffffffffffffffff
push 0x5dc5dc
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0053d744
add esp, 0x10
lea eax, [ebp - 0x110]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x128]
call fcn.00469620
cmp dword [eax + 0x14], 0x10
jb 0x469716
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0053d744
add esp, 0x10
cmp dword [ebp - 0x114], 0x10
jb 0x469744
push dword [ebp - 0x128]
call fcn.0053e195
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [ebp - 0x110], 0
jne 0x469762
xor ecx, ecx
jmp 0x469779
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
jmp 0x469770
mov al, byte [ecx]
inc ecx
test al, al
jne 0x469770
sub ecx, edx
push ecx
lea eax, [ebp - 0x110]
mov ecx, esi
push eax
call fcn.004085a0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
Function at 0x4731a0
Capabilities:
Create thread

Disassembly:
cmp dword [0x611bbc], 1
jne 0x4731ac
xor eax, eax
ret
push 0x380
push 0
push 0x610ee0
mov dword [0x611bd8], 1
mov dword [0x611be0], 0
mov dword [0x611bdc], 0
mov dword [0x6115e0], 0
mov dword [0x611be4], 0
mov dword [0x611be8], 0
mov dword [0x611c7c], 0
mov dword [0x611968], 0
call fcn.00540250
push 0x380
push 0
push 0x6115e8
call fcn.00540250
push 0x380
push 0
push 0x611260
call fcn.00540250
push 0x380
push 0
push 0x610b60
call fcn.00540250
add esp, 0x30
mov dword [0x6115f0], 2
mov dword [0x611268], 3
mov dword [0x610b68], 4
mov dword [0x6107d0], 0
push 0x611bd4
push 0
push 0x611bb8
push 0x474150
push 0
push 0
mov dword [0x6107d4], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x611bd4], 0
mov dword [0x611bd0], eax
je 0x4731a9
mov dword [0x611bbc], 1
mov eax, 1
ret
Function at 0x474970
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x600f80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x110]
mov dword [ebp - 0x12c], 0
push eax
push 0
push 0
push 0x23
push 0
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x474a74
push 0xffffffffffffffff
push 0x5dc5dc
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0053d744
add esp, 0x10
lea ecx, [ebp - 0x128]
call fcn.00425f00
cmp dword [eax + 0x14], 0x10
jb 0x4749db
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0053d744
add esp, 0x10
cmp dword [ebp - 0x114], 0x10
jb 0x474a09
push dword [ebp - 0x128]
call fcn.0053e195
add esp, 4
push 0xffffffffffffffff
push 0x5dc5dc
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0053d744
add esp, 0x10
lea eax, [ebp - 0x110]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x128]
call fcn.00474930
cmp dword [eax + 0x14], 0x10
jb 0x474a46
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0053d744
add esp, 0x10
cmp dword [ebp - 0x114], 0x10
jb 0x474a74
push dword [ebp - 0x128]
call fcn.0053e195
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [ebp - 0x110], 0
jne 0x474a92
xor ecx, ecx
jmp 0x474aa9
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
jmp 0x474aa0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x474aa0
sub ecx, edx
push ecx
lea eax, [ebp - 0x110]
mov ecx, esi
push eax
call fcn.004085a0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
Function at 0x474ad0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x600f80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x110]
mov dword [ebp - 0x12c], 0
push eax
push 0
push 0
push 0x23
push 0
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x474bd4
push 0xffffffffffffffff
push 0x5dc5dc
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0053d744
add esp, 0x10
lea ecx, [ebp - 0x128]
call fcn.00425f00
cmp dword [eax + 0x14], 0x10
jb 0x474b3b
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0053d744
add esp, 0x10
cmp dword [ebp - 0x114], 0x10
jb 0x474b69
push dword [ebp - 0x128]
call fcn.0053e195
add esp, 4
push 0xffffffffffffffff
push 0x5dc5dc
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0053d744
add esp, 0x10
lea eax, [ebp - 0x110]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x128]
call fcn.00474950
cmp dword [eax + 0x14], 0x10
jb 0x474ba6
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0053d744
add esp, 0x10
cmp dword [ebp - 0x114], 0x10
jb 0x474bd4
push dword [ebp - 0x128]
call fcn.0053e195
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [ebp - 0x110], 0
jne 0x474bf2
xor ecx, ecx
jmp 0x474c09
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
jmp 0x474c00
mov al, byte [ecx]
inc ecx
test al, al
jne 0x474c00
sub ecx, edx
push ecx
lea eax, [ebp - 0x110]
mov ecx, esi
push eax
call fcn.004085a0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
Function at 0x474c30
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
mov eax, dword [0x600f80]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push esi
or eax, 0xffffffff
xor esi, esi
push edi
mov dword [esp + 0x10], eax
cmp dword [0x611970], esi
je 0x474e36
xor ecx, ecx
call fcn.0046a140
lea ecx, [esp + 0x1c]
call fcn.00469640
cmp dword [eax + 0x14], 0x10
jb 0x474c7a
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x40]
push 0x104
push eax
call fcn.0053e40b
add esp, 0x10
cmp dword [esp + 0x30], 0x10
jb 0x474ca2
push dword [esp + 0x1c]
call fcn.0053e195
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, 0xc350
lea ecx, [ecx]
add edi, edi
test esi, esi
je 0x474cc2
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [edi + 0x18]
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x474e2f
lea eax, [esi + 8]
mov dword [esp + 0xc], eax
mov eax, dword [0x611970]
push str.__xml_version_1.0__encoding_ISO_8859_1____n_n
mov dword [esp + 0x1c], eax
call fcn.00544490
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, edi
jg 0x474cb0
push str.__xml_version_1.0__encoding_ISO_8859_1____n_n
push dword [esp + 0x10]
call fcn.00584150
push dword [esp + 0x14]
call fcn.00544490
add dword [esp + 0x18], eax
lea edx, [esp + 0x18]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x20]
add esp, 0xc
push edi
push eax
call fcn.0049a29e
add esp, 8
cmp dword [esp + 0x14], edi
jg 0x474cb0
lea ecx, [esi + 8]
mov edi, ecx
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x474d46
sub edi, edx
cmp dword [0x6119fc], 0
je 0x474d7f
push 0xa96198
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x6119f8]
push 8
push esi
call fcn.00498ff9
push 0xa96198
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esi + 8]
push ecx
lea eax, [esi + 8]
add eax, edi
push eax
push ecx
push edi
push ecx
sub esp, 8
push 8
call fcn.0042ca60
mov edx, esi
mov ecx, eax
call fcn.0049a930
add esp, 0x20
xorps xmm0, xmm0
movdqa xmmword [0xa95120], xmm0
test eax, eax
je 0x474e11
push 0x80
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x474e11
push 0
lea ecx, [esp + 0x38]
push ecx
lea ecx, [edi + 0x18]
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x474e17
mov eax, dword [esp + 0x10]
push eax
call edi
or eax, 0xffffffff
mov dword [esp + 0x10], eax
jmp 0x474e17
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x474e2f
push eax
call edi
xor ecx, ecx
call fcn.00469ac0
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
Function at 0x475470
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
mov eax, dword [0x600f80]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
mov al, cl
mov byte [esp + 0xb], al
push esi
push edi
test al, al
jne 0x4754ac
mov eax, dword [0x611974]
mov edx, eax
inc eax
mov dword [0x611974], eax
test edx, edx
jne 0x4756b3
lea ecx, [esp + 0x14]
call fcn.00469640
cmp dword [eax + 0x14], 0x10
jb 0x4754bd
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x38]
push 0x104
push eax
call fcn.0053e40b
add esp, 0x10
cmp dword [esp + 0x28], 0x10
jb 0x4754e5
push dword [esp + 0x14]
call fcn.0053e195
add esp, 4
push 0
push 0x80
push 3
push 0
push 3
push bind
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x47569e
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x475692
cmp esi, 0x19
jb 0x475692
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x475692
push 0
lea eax, [esp + 0x30]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x475682
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or edi, 0xffffffff
cmp dword [esp + 0x2c], esi
jne 0x475682
lea ecx, [ebx + 8]
push ecx
lea eax, [ebx - 0x10]
add eax, esi
push eax
push ecx
lea eax, [esi - 0x18]
push eax
push ecx
sub esp, 8
push 8
call fcn.0042ca60
mov edx, ebx
mov ecx, eax
call fcn.0049aa47
add esp, 0x20
xorps xmm0, xmm0
movdqa xmmword [0xa95120], xmm0
test eax, eax
je 0x475682
cmp byte [esp + 0x13], 0
je 0x4755ca
mov ecx, dword [0x611970]
test ecx, ecx
je 0x4755c0
push ecx
call fcn.00456a30
mov dword [0x611970], 0
push 0x14
call fcn.0053e4af
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4755ff
lea eax, [esp + 0x138]
xorps xmm0, xmm0
push eax
lea eax, [esi - 0x18]
push eax
lea eax, [ebx + 8]
movdqu xmmword [ecx], xmm0
push eax
mov dword [ecx + 0x10], 0
call fcn.00499d70
jmp 0x475601
xor eax, eax
cmp byte [esp + 0x138], 0
mov dword [0x611970], eax
je 0x475628
test eax, eax
je 0x47561c
push ecx
mov ecx, eax
call fcn.00456a30
mov dword [0x611970], 0
jmp 0x475682
cmp esi, 0xdbba0
jbe 0x475682
test eax, eax
je 0x475644
push 0x5e3ae0
mov ecx, eax
call fcn.0049a1dc
mov esi, eax
jmp 0x475646
xor esi, esi
push 0x14
call fcn.0053e4af
add esp, 4
test eax, eax
je 0x475670
xorps xmm0, xmm0
mov ecx, eax
movdqu xmmword [eax], xmm0
push 0x5e3ae0
mov dword [eax + 0x10], 0
call fcn.00499e19
jmp 0x475672
xor eax, eax
mov edx, eax
mov ecx, esi
call fcn.0049a27d
mov byte [0x60e55b], 1
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp edi, 0xffffffff
je 0x47569e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x611970], 0
jne 0x4756b3
call fcn.00474e50
mov byte [0x60e55b], 1
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
Function at 0x476d50
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x600f80]
xor eax, ebp
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x114], 0
call fcn.00474970
cmp dword [eax + 0x14], 0x10
jb 0x476d80
mov eax, dword [eax]
push 0x5e2370
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.005418e3
add esp, 0xc
cmp dword [ebp - 0x118], 0x10
jb 0x476dac
push dword [ebp - 0x12c]
call fcn.0053e195
add esp, 4
cmp dword [ebp - 0x114], 0
je 0x476eb9
lea eax, [ebp - 0x110]
push eax
call fcn.005410eb
add esp, 4
lea eax, [ebp - 0x108]
push 0x100
push 0
push eax
call fcn.00540250
add esp, 0xc
lea eax, [ebp - 0x108]
push dword [ebp - 0x114]
push 1
push 0x100
push eax
call fcn.00541aed
push dword [ebp - 0x114]
call fcn.005413f4
add esp, 0x14
xor eax, eax
jmp 0x476e10
xor byte [ebp + eax - 0x108], al
inc eax
cmp eax, 8
jb 0x476e10
mov ecx, dword [ebp - 0x110]
sub ecx, dword [ebp - 0x108]
mov eax, dword [ebp - 0x10c]
sbb eax, dword [ebp - 0x104]
test eax, eax
jg 0x476e86
jl 0x476e43
cmp ecx, 0x12c
jae 0x476e86
lea ecx, [ebp - 0x12c]
call fcn.00474970
cmp dword [eax + 0x14], 0x10
jb 0x476e56
mov eax, dword [eax]
push eax
call fcn.00556916
add esp, 4
cmp dword [ebp - 0x118], 0x10
jb 0x476e76
push dword [ebp - 0x12c]
call fcn.0053e195
add esp, 4
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x12c]
call fcn.00474970
cmp dword [eax + 0x14], 0x10
jb 0x476e99
mov eax, dword [eax]
push eax
call fcn.00556916
add esp, 4
cmp dword [ebp - 0x118], 0x10
jb 0x476eb9
push dword [ebp - 0x12c]
call fcn.0053e195
add esp, 4
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
Function at 0x476ed0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x600f80]
xor eax, ebp
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x114], 0
call fcn.00474ad0
cmp dword [eax + 0x14], 0x10
jb 0x476f00
mov eax, dword [eax]
push 0x5e2370
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.005418e3
add esp, 0xc
cmp dword [ebp - 0x118], 0x10
jb 0x476f2c
push dword [ebp - 0x12c]
call fcn.0053e195
add esp, 4
cmp dword [ebp - 0x114], 0
je 0x477006
lea eax, [ebp - 0x110]
push eax
call fcn.005410eb
add esp, 4
lea eax, [ebp - 0x108]
push 0x100
push 0
push eax
call fcn.00540250
add esp, 0xc
lea eax, [ebp - 0x108]
push dword [ebp - 0x114]
push 1
push 0x100
push eax
call fcn.00541aed
push dword [ebp - 0x114]
call fcn.005413f4
add esp, 0x14
xor eax, eax
jmp 0x476f90
xor byte [ebp + eax - 0x108], al
inc eax
cmp eax, 8
jb 0x476f90
mov ecx, dword [ebp - 0x110]
sub ecx, dword [ebp - 0x108]
mov eax, dword [ebp - 0x10c]
sbb eax, dword [ebp - 0x104]
test eax, eax
jg 0x477006
jl 0x476fc3
cmp ecx, 0x12c
jae 0x477006
lea ecx, [ebp - 0x12c]
call fcn.00474ad0
cmp dword [eax + 0x14], 0x10
jb 0x476fd6
mov eax, dword [eax]
push eax
call fcn.00556916
add esp, 4
cmp dword [ebp - 0x118], 0x10
jb 0x476ff6
push dword [ebp - 0x12c]
call fcn.0053e195
add esp, 4
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x12c]
call fcn.00474ad0
cmp dword [eax + 0x14], 0x10
jb 0x477019
mov eax, dword [eax]
push eax
call fcn.00556916
add esp, 4
cmp dword [ebp - 0x118], 0x10
jb 0x477039
push dword [ebp - 0x12c]
call fcn.0053e195
add esp, 4
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
Function at 0x479110
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x600f80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x27
lea eax, [ebp - 0x2c]
push 0
push eax
call fcn.00540250
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0x26
push eax
lea eax, [ebp - 0x2c]
mov edx, 0x6a
push eax
mov ecx, 0x5dd010
call fcn.0049969f
add esp, 0x14
lea eax, [ebp - 0x40]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
sub esp, 8
push 0x1025
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00499b52
mov esi, eax
lea eax, [ebp - 0x2c]
push 0x27
push 0
push eax
mov dword [0x611978], esi
call fcn.00540250
add esp, 0x1c
test esi, esi
jne 0x4791bd
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x611988]
test eax, eax
je 0x4791e3
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [0x611988], 0
jmp 0x4791e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push 0
push 6
push dword [0x611978]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x611988], eax
test eax, eax
jne 0x47920e
lea esi, [eax - 2]
mov eax, dword [0x611978]
test eax, eax
je 0x4791fd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x611978], 0
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
Function at 0x47bf80
Capabilities:
Terminate process

Disassembly:
push esi
push ecx
push 0
push 0x401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x47bf97
pop esi
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret

Function at 0x47cac0
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x600f80]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push ebx
cmovae eax, dword [ebp + 8]
mov ebx, ecx
push esi
push edi
push 0x80
push eax
mov esi, edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x47cb23
or esi, eax
jmp 0x47cbcb
call fcn.0042c9c0
mov edx, eax
lea ecx, [ebp - 0xe4]
call fcn.0049a4f0
lea eax, [ebp - 0x14]
mov edx, 3
push eax
push esi
push ebx
lea ecx, [ebp - 0xe4]
call fcn.0049a83a
push 0xd0
lea eax, [ebp - 0xe4]
push 0
push eax
call fcn.00540250
add esp, 0x18
lea eax, [ebp - 0xe8]
xorps xmm0, xmm0
movdqa xmmword [0xa95810], xmm0
push 0
push eax
push esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call ebx
test eax, eax
jne 0x47cb89
lea esi, [eax - 2]
jmp 0x47cbc4
cmp dword [ebp - 0xe8], esi
je 0x47cb98
mov esi, 0xfffffffd
jmp 0x47cbc4
push 0
lea eax, [ebp - 0xe8]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call ebx
test eax, eax
jne 0x47cbb3
lea esi, [eax - 4]
jmp 0x47cbc4
xor esi, esi
mov eax, 0xfffffffb
cmp dword [ebp - 0xe8], 0x10
cmovne esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x1c], 0x10
jb 0x47cbdc
push dword [ebp + 8]
call fcn.0053e195
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053cd12
mov esp, ebp
pop ebp
ret