joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x40226a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push edi
mov byte [ebp - 0x104], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 4], 0
mov eax, 0x4021d6
sub eax, 0x401cf5
mov dword [ebp - 4], eax
push 8
push 0x408008
lea ecx, [ebp - 0x104]
push ecx
call fcn.00406350
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
push 0x401cf5
lea eax, [ebp - 0x104]
push eax
call fcn.00406464
add esp, 0xc
push 0x100
push 0
lea ecx, [ebp - 0x104]
push ecx
call fcn.00406890
add esp, 0xc
call fcn.00401d3d
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x406464
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jmp 0x40648a
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 0x10]
jge 0x40654c
mov edx, dword [ebp - 0xc]
add edx, 1
and edx, 0x800000ff
jns 0x4064ac
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax]
mov edx, dword [ebp - 0x10]
add edx, ecx
and edx, 0x800000ff
jns 0x4064ce
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov byte [ebp - 4], cl
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
mov al, byte [ebp - 4]
mov byte [edx], al
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x40651d
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 4], al
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp - 4]
and eax, 0xff
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
mov byte [ecx], dl
jmp 0x406481
mov esp, ebp
pop ebp
ret
Function at 0x100091e0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002b5b9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x1003d014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx], vtable.RC::IAntiVEngine.0
mov dword [ebp - 4], 0
lea esi, [ebx + 0x10]
push 0x18
mov dword [ebx], vtable.RC::RCAntiVEsswEngine.0
mov word [ebx + 4], 0
mov dword [ebx + 8], 0x3a98
mov dword [ebx + 0xc], 0x200
mov dword [ebp - 0x14], esi
call fcn.10028e0f
add esp, 4
mov dword [esi], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 1
add esi, 4
push 0
mov dword [ebp - 0x18], esi
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1000b200
mov dword [esi], eax
mov byte [ebp - 4], 5
lea esi, [ebx + 0x1c]
mov dword [ebp - 0x18], esi
mov dword [esi], vtable.IQsCloudQuery.0
mov byte [ebp - 4], 6
xor eax, eax
mov dword [esi], vtable.RC::RCAvCloudQuery.0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 7
mov word [esi + 4], ax
mov byte [ebp - 4], 7
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 7
mov word [esi + 0x1c], ax
mov byte [ebp - 4], 8
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov byte [ebp - 4], 9
push 0x18
mov dword [esi + 0x40], eax
call fcn.10028e0f
add esp, 4
mov dword [esi + 0x44], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 0xb
mov dword [ebx + 0x64], 0
mov byte [ebp - 4], 0xc
sub esp, 0xc
lea ecx, [ebx + 0x68]
call fcn.100151b0
mov byte [ebp - 4], 0xd
sub esp, 0xc
lea ecx, [ebx + 0x88]
call fcn.100151b0
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100093e0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002b657
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x1003d014]
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 ebx, ecx
cmp byte [ebx + 4], 0
jne 0x10009563
lea ecx, [ebx + 0x10]
mov byte [ebx + 5], 0
call fcn.1000ae50
mov eax, dword [ebx + 0x1c]
lea ecx, [ebx + 0x1c]
mov eax, dword [eax]
call eax
test al, al
je 0x10009565
mov eax, dword [ebx + 0x68]
test eax, eax
je 0x10009443
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [ebx + 0x64], 0
jne 0x1000955f
push 0xc
call fcn.10028e0f
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push ebx
push ecx
movq qword [eax], xmm0
mov ecx, eax
mov dword [eax + 8], 0
call fcn.10014f30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0x64]
push eax
call fcn.1000ab10
mov edi, dword [ebx + 0x64]
mov esi, dword [edi + 8]
test esi, esi
je 0x1000955f
add esi, 0x20
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], esi
je 0x100094b2
mov eax, dword [esi]
test eax, eax
je 0x100094b2
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 1
mov eax, dword [edi + 8]
cmp dword [eax + 4], 0
je 0x10009540
lea eax, [edi + 4]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [edi + 8]
add eax, 0xc
push eax
push 4
push edi
push 0x10014d30
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [edi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [edi + 8]
cmp dword [eax + 0x10], 0
je 0x1000951f
mov byte [eax + 8], 1
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x10009511
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [edi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x10009540
push 0xffffffffffffffff
lea eax, [edi + 4]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
call eax
sub eax, 1
jne 0x10009538
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [edi + 8]
call fcn.10014ef0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1000955f
mov eax, dword [esi]
test eax, eax
je 0x10009558
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x14], 0
mov byte [ebx + 4], 1
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.10028dfe
mov esp, ebp
pop ebp
ret 4
Function at 0x100177b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10038fa0
push 0x100291c1
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1003d014]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x100
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x10017819
xor eax, eax
jmp 0x1001798f
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001795a
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x1001795a
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001795a
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call eax
test eax, eax
je 0x1001795a
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001795a
push dword [ebp - 0x28]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x1001795a
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001795a
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x1001795a
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001795a
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x1001795a
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1001795a
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x10017943
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x10017930
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x10017940
jmp 0x1001795a
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push esi
push 1
push dword [ebp - 0x34]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.100179b6
test ebx, ebx
jne 0x1001798d
test esi, esi
je 0x1001797f
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1001798d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10028dfe
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10019020
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002d228
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x1003d014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10019056
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10019106
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.10019130
test al, al
je 0x100190af
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x100190f2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100190e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100190e8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10028e3f
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10028dfe
mov esp, ebp
pop ebp
ret
Function at 0x10019230
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002d258
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x1003d014]
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, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x10019273
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.100175f0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x1001929c
lea eax, [esi + 8]
jmp 0x1001929e
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x100192ae
cmp dword [ebx + 0x14], 8
jb 0x100192b0
mov ebx, dword [ebx]
jmp 0x100192b0
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x100192d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100192d1
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x100192fa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1001930f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.10028e3f
add esp, 8
mov dword [ebp - 0x14], 0
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.10028dfe
mov esp, ebp
pop ebp
ret 4
Function at 0x1001a030
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002d4e0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1003d014]
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 esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
test eax, eax
je 0x1001a117
cmp byte [eax + 0x54], 0
je 0x1001a117
add eax, 0x1c
lea ecx, [ebp - 0x34]
push eax
call fcn.10018f70
push 0
mov edx, edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10013b40
add esp, 4
mov byte [ebp - 4], 1
lea edi, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [esi]
cmovae edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
cmp dword [eax + 0x14], 8
jb 0x1001a0b2
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001a0fc
push 2
push 0
push 0
push esi
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x2c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.10002440
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.10018fc0
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.10028dfe
mov esp, ebp
pop ebp
ret 4

Function at 0x10023b80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002e945
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x1003d014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x1050
call fcn.10028e0f
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
push 0x1050
push 0
push esi
call sub.VCRUNTIME140.dll_memset
lea ecx, [esi + 0x44]
mov dword [esi], 0
mov eax, ecx
mov dword [esi + 4], 0
neg eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
lea edx, [esi + 0x1044]
mov dword [esi + 0x10], 0
and eax, 3
mov dword [esi + 0x14], 0
add esp, 0x10
mov dword [esi + 0x18], 0
add eax, ecx
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [ebp - 0x14], esi
mov dword [edx], 0
mov dword [esi + 0x1048], 0
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edx
mov byte [ebp - 4], 2
mov dword [esi + 0x104c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov dword [edi], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10025c90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x1003d014]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x10025d12
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x10025d12
test ecx, ecx
je 0x10025d0e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x10025cd0
xor eax, eax
jmp 0x10025d17
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10025d21
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10028dfe
add esp, 0xc
ret 0xc

Function at 0x10025da0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x1003d014]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x10025dce
mov eax, 1
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.10028dfe
add esp, 8
ret 4
mov eax, dword [ecx + 0xc]
cmp eax, 0xffffffff
je 0x10025db7
push edi
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10025e14
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10025e14
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.10028dfe
add esp, 8
ret 4
mov ecx, dword [esp + 8]
xor eax, eax
add eax, edi
mov dword [esi], eax
adc ecx, 0
xor eax, eax
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.10028dfe
add esp, 8
ret 4
Function at 0x421490
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ce0c7
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x6c9db0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x134]
call fcn.00418130
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1bc]
call fcn.00418130
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x134]
call fcn.0041a2c0
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x1bc]
call fcn.0041a2c0
push 0x5c
push 0x2f
lea ecx, [ebp - 0x134]
call fcn.0041abf0
push 0x5c
push 0x2f
lea ecx, [ebp - 0x1bc]
call fcn.0041abf0
mov byte [ebp - 0x1bd], 0
lea ecx, [ebp - 0xac]
call fcn.0044dc30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xac]
call fcn.0044dcb0
movzx edx, al
test edx, edx
je 0x42156e
lea ecx, [ebp - 0x1bc]
call fcn.00419540
push eax
lea ecx, [ebp - 0x134]
call fcn.00419540
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
setne al
mov byte [ebp - 0x1bd], al
jmp 0x42164c
lea ecx, [ebp - 0x134]
call fcn.004182c0
test eax, eax
jg 0x421590
lea ecx, [ebp - 0x1bc]
call fcn.004182c0
test eax, eax
jle 0x421623
lea ecx, [ebp - 0x24c]
call fcn.00418130
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2d4]
call fcn.00418130
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x134]
push edx
call fcn.004216c0
add esp, 8
lea eax, [ebp - 0x2d4]
push eax
lea ecx, [ebp - 0x1bc]
push ecx
call fcn.004216c0
add esp, 8
lea ecx, [ebp - 0x2d4]
call fcn.00418bd0
push eax
lea ecx, [ebp - 0x24c]
call fcn.00418bd0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne dl
mov byte [ebp - 0x1bd], dl
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2d4]
call fcn.00418240
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24c]
call fcn.00418240
jmp 0x42164c
lea ecx, [ebp - 0x1bc]
call fcn.00418bd0
push eax
lea ecx, [ebp - 0x134]
call fcn.00418bd0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
mov byte [ebp - 0x1bd], al
movzx ecx, byte [ebp - 0x1bd]
test ecx, ecx
jne 0x421665
cmp dword [ebp + 0x10], 0
je 0x421665
mov ecx, dword [ebp + 0x10]
call fcn.004357d0
mov dl, byte [ebp - 0x1bd]
mov byte [ebp - 0x2d5], dl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xac]
call fcn.0044dc90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1bc]
call fcn.00418240
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134]
call fcn.00418240
mov al, byte [ebp - 0x2d5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005aede3
mov esp, ebp
pop ebp
ret
Function at 0x4217f0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ce14c
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x6c9db0]
xor eax, ebp
mov dword [ebp - 0x98], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x94]
call fcn.00418130
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x94]
call fcn.0041a2c0
push 0x5c
push 0x2f
lea ecx, [ebp - 0x94]
call fcn.0041abf0
lea ecx, [ebp - 0x134]
call fcn.0044dc30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x134]
call fcn.0044dcb0
movzx ecx, al
test ecx, ecx
je 0x4218b8
lea ecx, [ebp - 0x94]
call fcn.00419540
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne dl
mov byte [ebp - 0x255], dl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x134]
call fcn.0044dc90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00418240
mov al, byte [ebp - 0x255]
jmp 0x421a8b
lea ecx, [ebp - 0x94]
call fcn.004182c0
cmp eax, 0x104
jle 0x4219be
lea ecx, [ebp - 0x1bc]
call fcn.00418130
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x94]
push ecx
call fcn.00421120
add esp, 8
lea ecx, [ebp - 0x24c]
call fcn.00418130
mov byte [ebp - 4], 3
push 0x61b5bc
lea ecx, [ebp - 0x24c]
call fcn.00419d80
lea ecx, [ebp - 0x1bc]
call fcn.00419fa0
push eax
lea ecx, [ebp - 0x24c]
call fcn.00419d80
lea ecx, [ebp - 0x24c]
call fcn.00418bd0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x1c0], eax
cmp dword [ebp - 0x1c0], 0
jne 0x42195f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x42195f
mov dword [ebp - 0x1c0], 1
cmp dword [ebp - 0x1c0], 0
setne dl
mov byte [ebp - 0x256], dl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24c]
call fcn.00418240
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1bc]
call fcn.00418240
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x134]
call fcn.0044dc90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00418240
mov al, byte [ebp - 0x256]
jmp 0x421a8b
lea ecx, [ebp - 0x94]
call fcn.00418bd0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0
jne 0x421a31
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x254], eax
cmp dword [ebp + 0xc], 0
je 0x421a1e
mov eax, dword [ebp - 0x254]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00435870
lea ecx, [ebp - 0x94]
call fcn.00419fa0
push eax
push str.failedToDeleteFilepath
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 0x2c]
call eax
cmp dword [ebp - 0x254], 2
jne 0x421a31
mov dword [ebp - 0x250], 1
cmp dword [ebp - 0x250], 0
setne cl
mov byte [ebp - 0x257], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x134]
call fcn.0044dc90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00418240
mov al, byte [ebp - 0x257]
jmp 0x421a8b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x98]
xor ecx, ebp
call fcn.005aede3
mov esp, ebp
pop ebp
ret