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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498a80
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4c4014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004699a8
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00468984
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41da10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4991d5
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4c4014]
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 dword [ebp - 0x18], edx
mov edi, ecx
mov ecx, dword [ebp + 8]
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
cmp byte [edi + 0x38], al
je 0x41dabe
mov esi, dword [ebp + 0xc]
nop dword [eax]
cmp byte [edi + 0x39], 0
je 0x41dabe
push 0
lea edx, [ebp - 0x14]
add eax, ecx
push edx
mov edx, dword [ebp - 0x18]
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x14]
cmp eax, 0x6d
je 0x41da91
test ecx, ecx
jne 0x41da9b
jmp 0x41daaa
cmp dword [ebp - 0x20], 0
je 0x41db5c
cmp ecx, esi
je 0x41dabe
add dword [ebp - 0x1c], ecx
sub esi, ecx
cmp ebx, 0x64
jg 0x41dadc
inc ebx
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [edi + 0x38], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
jne 0x41da60
mov al, 1
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.0046999a
mov esp, ebp
pop ebp
ret
mov esi, dword [0x4c8c94]
test esi, esi
je 0x41db14
push dword [ebp - 0x18]
mov ecx, esi
push eax
push str.Number_of_retries_to_read_pipe_exhausted_with_last_errno___lu._Aborting_read_on_pipe__p
push 0x4aea60
push 0x4aea60
push str.CommBridge
push str.OOBEUtils
push 0x28
call dword [0x49e2d4]
call esi
add esp, 0x20
jmp 0x41db46
mov ecx, dword [0x4c8c98]
test ecx, ecx
je 0x41db46
push dword [ebp - 0x18]
mov esi, dword [ecx]
push eax
push str.Number_of_retries_to_read_pipe_exhausted_with_last_errno___lu._Aborting_read_on_pipe__p
push str.CommBridge
mov esi, dword [esi + 0x34]
push 0x4aea60
push 0x28
push ecx
mov ecx, esi
call dword [0x49e2d4]
call esi
add esp, 0x1c
push str.Terminate_channel
lea ecx, [ebp - 0x3c]
call fcn.00402010
mov dword [ebp - 4], 1
jmp 0x41dbda
mov esi, dword [0x4c8c94]
test esi, esi
je 0x41db94
push eax
push dword [ebp - 0x18]
mov ecx, esi
push str.Aborting_read_on_pipe__p___errno:__lu
push 0x4aea60
push 0x4aea60
push str.CommBridge
push str.OOBEUtils
push 0x28
call dword [0x49e2d4]
call esi
add esp, 0x20
jmp 0x41dbc6
mov ecx, dword [0x4c8c98]
test ecx, ecx
je 0x41dbc6
mov esi, dword [ecx]
push eax
push dword [ebp - 0x18]
mov esi, dword [esi + 0x34]
push str.Aborting_read_on_pipe__p___errno:__lu
push str.CommBridge
push 0x4aea60
push 0x28
push ecx
mov ecx, esi
call dword [0x49e2d4]
call esi
add esp, 0x1c
push str.Terminate_channel
lea ecx, [ebp - 0x3c]
call fcn.00402010
mov dword [ebp - 4], 0
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
call fcn.0041fc40
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.00401fb0
mov ecx, edi
call fcn.0041fb30
xor al, al
jmp 0x41dac0
Function at 0x41f360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4c4014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], edx
push ebx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push ecx
push esi
push edx
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41f3d6
cmp dword [ebp - 8], esi
ja 0x41f3d6
jae 0x41f49a
call dword [sym.imp.KERNEL32.dll_GetLastError]
add edi, dword [ebp - 8]
sub esi, dword [ebp - 8]
cmp ebx, 0xbb8
jg 0x41f42c
push 0xa
inc ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push esi
add eax, edi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41f394
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x4c8c94]
mov ecx, eax
test esi, esi
je 0x41f4ad
push ecx
push dword [ebp - 0xc]
mov ecx, esi
push str.Write_failed_or_else__No_of_bytes_written___data_._Aborting_write_on_pipe__p___errno:__lu
push 0x4aea60
push 0x4aea60
push str.CommBridge
push str.OOBEUtils
push 0x28
call dword [0x49e2d4]
call esi
add esp, 0x20
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046999a
mov esp, ebp
pop ebp
ret
mov esi, dword [0x4c8c94]
test esi, esi
je 0x41f476
push dword [ebp - 0xc]
mov ecx, esi
push eax
push str.Number_of_retries_to_write_to_pipe_exhausted_with_last_error___lu._Aborting_write_on_pipe__p
push 0x4aea60
push 0x4aea60
push str.CommBridge
push str.OOBEUtils
push 0x28
call dword [0x49e2d4]
call esi
add esp, 0x20
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046999a
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4c8c98]
test ecx, ecx
je 0x41f4de
push dword [ebp - 0xc]
mov esi, dword [ecx]
push eax
push str.Number_of_retries_to_write_to_pipe_exhausted_with_last_error___lu._Aborting_write_on_pipe__p
push str.CommBridge
push 0x4aea60
push 0x28
push ecx
jmp 0x41f4ce
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046999a
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4c8c98]
test eax, eax
je 0x41f4de
mov esi, dword [eax]
push ecx
push dword [ebp - 0xc]
push str.Write_failed_or_else__No_of_bytes_written___data_._Aborting_write_on_pipe__p___errno:__lu
push str.CommBridge
push 0x4aea60
push 0x28
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x49e2d4]
call esi
add esp, 0x1c
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046999a
mov esp, ebp
pop ebp
ret
Function at 0x420880
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49927d
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4c4014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea esi, [edi + 0x18]
mov dword [ebp - 4], eax
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.004699a8
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xor eax, eax
mov dword [edi + 0x20], 0
mov word [edi + 0x20], ax
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x420ae0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x4c4014]
xor eax, esp
mov dword [esp + 8], eax
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [ebx + 0x8c], 1
jne 0x420b82
xor eax, eax
cmp dword [ebx + 0x60], 8
mov word [esp + 0xc], ax
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x4c]
jb 0x420b1b
mov eax, dword [eax]
push str.rb__ccsUTF_8
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0048023b
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x420b82
push eax
push 2
lea eax, [esp + 0x14]
push 1
push eax
call fcn.0047a0f1
push dword [esp + 0x20]
call fcn.00479ab1
mov ax, word [esp + 0x20]
add esp, 0x14
cmp al, 0xff
jne 0x420b5f
cmp ah, 0xfe
je 0x420b82
cmp ah, 0xff
jne 0x420b68
cmp al, 0xfe
je 0x420b82
mov eax, dword [edi]
test eax, eax
je 0x420b7b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
mov ecx, ebx
call fcn.004239a0
lea esi, [ebx + 0x4c]
push 1
mov ecx, esi
call fcn.004351c0
add esp, 4
test eax, eax
je 0x420baf
cmp eax, 1
jne 0x420c01
push ecx
mov ecx, esi
call fcn.00427320
add esp, 4
test al, al
je 0x420c01
mov dword [edi], 0xffffffff
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x420bb9
mov eax, dword [esi]
push 0
push 0x200080
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x420c58
cmp dword [esi + 0x14], 8
jb 0x420be1
mov esi, dword [esi]
push 0
push 0x200080
push 1
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x420c17
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0046999a
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 0x8c], 1
push 0
jne 0x420c39
mov ecx, 0xfeff
mov word [esp + 0x10], cx
lea ecx, [esp + 0x14]
push ecx
push 2
lea ecx, [esp + 0x18]
jmp 0x420c50
lea ecx, [esp + 0x14]
mov word [esp + 0x10], 0xbbef
push ecx
mov byte [esp + 0x16], 0xbf
lea ecx, [esp + 0x14]
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046999a
mov esp, ebp
pop ebp
ret 4
Function at 0x4211e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4c4014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x421200
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
sar esi, 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
add esi, esi
push esi
push edi
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 4
push 0x4b40ac
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046999a
mov esp, ebp
pop ebp
ret 4

Function at 0x421270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4c4014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x421290
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push esi
push edi
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 2
push 0x4b40b4
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046999a
mov esp, ebp
pop ebp
ret 4
Function at 0x426c90
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
push 0
push 0
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
test edi, edi
je 0x426cdc
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004796d1
mov esi, eax
add esp, 4
test esi, esi
je 0x426cdc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x426ce2
push esi
call fcn.00479652
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
ret
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x426ce7
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, ebx
call fcn.00402e00
push esi
call fcn.00479652
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x427260
Capabilities:
Check if file exists
Create directory

Disassembly:
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x42726d
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esi + 0x14]
test eax, eax
je 0x427290
cmp ecx, 8
jb 0x427282
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
pop esi
setne al
ret
cmp ecx, 8
jb 0x427297
mov esi, dword [esi]
push edi
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edi, eax
test edi, edi
je 0x427314
mov esi, dword [0x4c8c94]
test esi, esi
je 0x4272e4
push edi
push 0x4b4610
push 0x4aea60
push 0x4aea60
push 0x4b42fc
push str.OOBEUtils
push 0x32
mov ecx, esi
call dword [0x49e2d4]
call esi
add esp, 0x1c
test edi, edi
sete al
pop edi
pop esi
ret
mov eax, dword [0x4c8c98]
test eax, eax
je 0x427312
mov esi, dword [eax]
push edi
push 0x4b4610
push 0x4b42fc
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x4aea60
push 0x32
push eax
call dword [0x49e2d4]
call esi
add esp, 0x18
test edi, edi
pop edi
sete al
pop esi
ret
Function at 0x4274e0
Capabilities:
Check if file exists
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49993d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4c4014]
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, edx
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x427519
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x427591
mov esi, dword [0x4c8c94]
test esi, esi
je 0x42755d
push str.Source_file_does_not_exist_in_CopyFileFromSourceToDestination
push 0x4aea60
push 0x4aea60
push 0x4b42fc
push str.OOBEUtils
push 0x32
mov ecx, esi
call dword [0x49e2d4]
call esi
add esp, 0x18
xor al, al
jmp 0x4276b8
mov eax, dword [0x4c8c98]
test eax, eax
je 0x42758a
mov esi, dword [eax]
push str.Source_file_does_not_exist_in_CopyFileFromSourceToDestination
push 0x4b42fc
push 0x4aea60
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x32
push eax
call dword [0x49e2d4]
call esi
add esp, 0x14
xor al, al
jmp 0x4276b8
push edi
lea ecx, [ebp - 0x28]
call fcn.00403570
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004270d0
push ecx
lea ecx, [ebp - 0x28]
call fcn.00427260
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x4275bd
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4275c7
mov eax, dword [edi]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x42766a
cmp dword [0x4c8c94], eax
je 0x427623
cmp dword [edi + 0x14], 8
jb 0x4275e9
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x4c8c94]
mov ecx, esi
push eax
push edi
push str.Failed_to_copy_file_at_the_destination:_s._LastError:__d
push 0x4aea60
push 0x4aea60
push 0x4b42fc
push str.OOBEUtils
push 0x32
call dword [0x49e2d4]
call esi
add esp, 0x20
xor bl, bl
jmp 0x427680
mov esi, dword [0x4c8c98]
test esi, esi
je 0x427666
cmp dword [edi + 0x14], 8
jb 0x427635
mov edi, dword [edi]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi + 0x34]
mov ecx, esi
push eax
push edi
push str.Failed_to_copy_file_at_the_destination:_s._LastError:__d
push 0x4b42fc
push 0x4aea60
push 0x32
push dword [0x4c8c98]
call dword [0x49e2d4]
call esi
add esp, 0x1c
xor bl, bl
jmp 0x427680
cmp dword [edi + 0x14], 8
jb 0x427672
mov edi, dword [edi]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov bl, 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x4276b6
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4276ac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4276d4
push ecx
push edx
call fcn.004699d8
add esp, 8
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 - 0x10]
xor ecx, ebp
call fcn.0046999a
mov esp, ebp
pop ebp
ret
call fcn.00479601
int3
Function at 0x435f10
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0046a770
mov eax, dword [0x4c4014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, edx
mov edi, ecx
push 1
mov ecx, esi
call fcn.004351c0
add esp, 4
test eax, eax
je 0x435f63
cmp eax, 1
jne 0x435f51
push ecx
mov ecx, esi
call fcn.00427320
add esp, 4
test al, al
jne 0x435f63
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046999a
mov esp, ebp
pop ebp
ret
push ebx
xor ebx, ebx
cmp dword [edi + 0x14], 8
jb 0x435f6e
mov edi, dword [edi]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [esi + 0x14], 8
mov edi, eax
jb 0x435f91
mov esi, dword [esi]
push 0
push 0x200080
push 4
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x435fd0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046999a
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x2008]
push eax
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43600f
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 0x2008]
lea eax, [ebp - 0x2004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x436017
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp dword [ebp - 0x2008], 0x1000
je 0x435fd0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
test ebx, ebx
pop ebx
sete al
xor ecx, ebp
pop edi
pop esi
call fcn.0046999a
mov esp, ebp
pop ebp
ret
Function at 0x45b9e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
mov ebx, edx
mov edx, esi
mov dword [esp + 0x10], ebx
shr edx, 2
xor ebp, ebp
mov dword [esp + 0xc], edx
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
test edx, edx
je 0x45bac2
cmp edx, 0x10
jb 0x45baa2
lea eax, [ebx - 4]
lea eax, [eax + edx*4]
lea ecx, [edi - 4]
lea ecx, [ecx + edx*4]
cmp edi, eax
ja 0x45ba27
cmp ecx, ebx
jae 0x45baa2
mov eax, edx
lea ecx, [ebx + 0x30]
and eax, 0xfffffff0
mov esi, ebx
sub esi, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], esi
lea eax, [edi + 0x10]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
movups xmm0, xmmword [eax - 0x10]
add ebp, 0x10
lea eax, [eax + 0x40]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [ecx - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [edx + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ecx - 0x50]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ebp, dword [esp + 0x20]
jb 0x45ba46
mov edx, dword [esp + 0x10]
mov dword [esp + 0x20], ebp
cmp ebp, edx
jae 0x45bac2
mov esi, ebx
lea ecx, [edi + ebp*4]
sub esi, edi
sub edx, ebp
mov ebp, dword [esp + 0x10]
nop
mov eax, dword [esi + ecx]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
sub edx, 1
jne 0x45bab0
mov esi, dword [esp + 0x28]
shl ebp, 2
sub esi, ebp
je 0x45bb81
add edi, ebp
add ebx, ebp
xor ecx, ecx
test esi, esi
je 0x45bb81
cmp esi, 0x40
jb 0x45bb66
lea eax, [ebx - 1]
lea edx, [edi - 1]
add eax, esi
add edx, esi
cmp edi, eax
ja 0x45baf6
cmp edx, ebx
jae 0x45bb66
mov ebp, dword [esp + 0x14]
lea eax, [edi + 0x10]
mov edx, esi
add ebx, 0x30
and edx, 0xffffffc0
sub ebp, dword [esp + 0x18]
nop dword [eax]
movups xmm0, xmmword [eax - 0x10]
add ecx, 0x40
lea ebx, [ebx + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ebx - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [eax + ebp - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ebx - 0x50]
pxor xmm1, xmm0
movups xmm0, xmmword [ebx - 0x40]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ecx, edx
jb 0x45bb10
mov dword [esp + 0x20], ecx
cmp ecx, esi
jae 0x45bb81
mov ebx, dword [esp + 0x14]
lea eax, [ecx + edi]
sub ebx, dword [esp + 0x18]
sub esi, ecx
mov cl, byte [ebx + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub esi, 1
jne 0x45bb73
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x45be10
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov eax, edx
mov ebp, esi
mov dword [esp + 0xc], eax
shr ebp, 2
xor ebx, ebx
push edi
xor edi, edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x45bec8
mov edx, ecx
sub edx, eax
cmp ebp, 8
jb 0x45bea4
mov ebx, ebp
xorps xmm3, xmm3
and ebx, 0xfffffff8
xorps xmm2, xmm2
add eax, 0x10
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ecx + edi*4]
add edi, 8
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [eax + edx - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp edi, ebx
jb 0x45be51
mov eax, dword [esp + 0x10]
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd ebx, xmm2
cmp edi, ebp
jae 0x45bec8
lea ecx, [eax + edi*4]
sub ebp, edi
mov edi, dword [esp + 0x14]
nop dword [eax]
mov eax, dword [ecx + edx]
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
or ebx, eax
sub ebp, 1
jne 0x45beb0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
shl edi, 2
sub esi, edi
jne 0x45bedc
pop edi
pop esi
test ebx, ebx
pop ebp
sete al
pop ebx
add esp, 0xc
ret
add eax, edi
mov edx, ebx
mov dword [esp + 0x10], eax
add ecx, edi
shr edx, 0x18
mov eax, ebx
shr eax, 0x10
xor edi, edi
or dl, al
mov eax, ebx
shr eax, 8
or dl, al
or dl, bl
test esi, esi
je 0x45bfb0
mov ebp, dword [esp + 0x10]
mov ebx, ecx
sub ebx, ebp
cmp esi, 0x20
jb 0x45bf9b
mov eax, esi
xorps xmm3, xmm3
and eax, 0xffffffe0
xorps xmm2, xmm2
mov dword [esp + 0x18], eax
lea eax, [ebp + 0x10]
nop word [eax + eax]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [edi + ecx]
add edi, 0x20
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [eax + ebx - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp edi, dword [esp + 0x18]
jb 0x45bf30
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd eax, xmm2
or dl, al
cmp edi, esi
jae 0x45bfb0
lea ecx, [edi + ebp]
sub esi, edi
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
or dl, al
sub esi, 1
jne 0x45bfa0
pop edi
pop esi
test dl, dl
pop ebp
sete al
pop ebx
add esp, 0xc
ret