joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57c490
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
lea ecx, [eax + 0xc]
mov ecx, dword [ecx]
mov dword [edx + 0xc], ecx
lea ecx, [eax + 0x10]
mov ecx, dword [ecx]
mov dword [edx + 0x10], ecx
lea ecx, [eax + 0x14]
mov ecx, dword [ecx]
mov dword [edx + 0x14], ecx
lea ecx, [eax + 0x18]
mov ecx, dword [ecx]
mov dword [edx + 0x18], ecx
add eax, 0x1c
mov eax, dword [eax]
mov dword [edx + 0x1c], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0x1c]
mov edi, ecx
shl edi, 0x18
shr ecx, 8
or edi, ecx
mov ecx, edi
movzx ecx, cl
mov ecx, dword [ecx*4 + str.cwko0]
mov dword [esp + 4], ecx
mov ecx, edi
shr ecx, 8
movzx ecx, cl
mov ecx, dword [ecx*4 + str.cwko0]
mov ebx, edi
shr ebx, 0x10
movzx ebx, bl
mov esi, dword [ebx*4 + str.cwko0]
mov ebx, edi
shr ebx, 0x18
movzx ebx, bl
mov ebx, dword [ebx*4 + str.cwko0]
mov dword [esp + 8], ebx
mov ebx, ecx
shl ebx, 8
shr ecx, 0x18
or ebx, ecx
xor ebx, dword [esp + 4]
mov ecx, esi
shl ecx, 0x10
shr esi, 0x10
or ecx, esi
xor ebx, ecx
mov ecx, dword [esp + 8]
shl ecx, 0x18
mov esi, dword [esp + 8]
shr esi, 8
or ecx, esi
xor ebx, ecx
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x5bc678]
mov dword [edx + eax*4 + 0x20], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x20]
mov dword [edx + eax*4 + 0x24], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x28], ebx
mov edi, dword [edx + eax*4 + 0xc]
xor edi, ebx
mov dword [edx + eax*4 + 0x2c], edi
movzx ecx, byte [edx + eax*4 + 0x2c]
mov ecx, dword [ecx*4 + str.cwko0]
mov dword [esp + 4], ecx
mov ecx, edi
shr ecx, 8
movzx ecx, cl
mov ecx, dword [ecx*4 + str.cwko0]
mov ebx, edi
shr ebx, 0x10
movzx ebx, bl
mov esi, dword [ebx*4 + str.cwko0]
mov ebx, edi
shr ebx, 0x18
movzx ebx, bl
mov ebx, dword [ebx*4 + str.cwko0]
mov dword [esp + 8], ebx
mov ebx, ecx
shl ebx, 8
shr ecx, 0x18
or ebx, ecx
xor ebx, dword [esp + 4]
mov ecx, esi
shl ecx, 0x10
shr esi, 0x10
or ecx, esi
xor ebx, ecx
mov ecx, dword [esp + 8]
shl ecx, 0x18
mov esi, dword [esp + 8]
shr esi, 8
or ecx, esi
xor ebx, ecx
xor ebx, dword [edx + eax*4 + 0x10]
mov dword [edx + eax*4 + 0x30], ebx
mov ecx, dword [edx + eax*4 + 0x14]
xor ecx, dword [edx + eax*4 + 0x30]
mov dword [edx + eax*4 + 0x34], ecx
mov ebx, dword [edx + eax*4 + 0x18]
xor ebx, ecx
mov dword [edx + eax*4 + 0x38], ebx
mov ecx, dword [edx + eax*4 + 0x1c]
xor ecx, ebx
mov dword [edx + eax*4 + 0x3c], ecx
add eax, 8
cmp eax, 0x34
jl 0x57c4db
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x58a1b4
Capabilities:
Reference http user-agent string

Disassembly:
push ebx
xor ecx, ecx
mov dl, 1
mov eax, dword [0x5499a8]
call fcn.004d9bb4
mov ebx, eax
movzx eax, byte [ebx + 0x141]
or al, byte [0x58a21c]
mov byte [ebx + 0x141], al
mov byte [ebx + 0x140], 1
mov eax, ebx
call fcn.0054cc08
add eax, 4
mov edx, 0x58a22c
call fcn.0040728c
mov eax, ebx
call fcn.0054cc08
add eax, 0xa0
mov edx, 0x58a24c
call fcn.0040728c
mov edx, 0x7530
mov eax, ebx
call fcn.00524c88
mov eax, ebx
pop ebx
ret
Function at 0x591408
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x591436
mov eax, ebx
call fcn.00591ebc
cmp dword [ebx + 0x40], 0
je 0x59142f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x5914a7
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x591499
cmp dword [ebx + 8], 0
je 0x591458
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x59146a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x591499
cmp dword [ebx + 8], 0
je 0x59144b
cmp eax, 3
je 0x59147d
dec eax
jne 0x59144b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x59144b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x59144b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x5914c5
cmp dword [ebx + 0x14], 0xcc
je 0x5914c5
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.005914d0
pop ebx
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x401750
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx esi, word [ebp + 8]
mov edi, eax
push str.Binary
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x401796
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 8], eax
test eax, eax
jne 0x40179f
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, dword [ebp - 4]
mov ecx, dword [ebx]
cmp eax, ecx
cmovl ecx, eax
push ecx
push esi
push dword [ebp - 8]
mov dword [ebx], ecx
call fcn.00421760
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4017e0
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x45c070]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00421ce0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00421ce0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x414]
push str.install__u.tmp
push eax
call fcn.00406290
add esp, 0xc
cmp word [ebp - 0x20c], 0
jne 0x40185a
xor ecx, ecx
jmp 0x401872
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401863
sub ecx, edx
sar ecx, 1
push ebx
push esi
push ecx
lea eax, [ebp - 0x20c]
mov esi, 0x45e230
push eax
mov ecx, esi
call fcn.00406ac0
cmp word [ebp - 0x414], 0
jne 0x401896
xor ecx, ecx
jmp 0x4018af
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4018a0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x414]
mov ecx, esi
push eax
call fcn.00406050
cmp dword [0x45e244], 8
push 0
cmovae esi, dword [0x45e230]
push 0x100
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4018fe
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e8a6
mov esp, ebp
pop ebp
ret
push edi
push 0x4528fc
push 0x12c
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40192a
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e8a6
mov esp, ebp
pop ebp
ret
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [ebp - 0x418]
mov dword [ebp - 0x418], 0
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e8a6
mov esp, ebp
pop ebp
ret
Function at 0x401ed0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x45c070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x404]
push edi
push 0x400
push 0
push eax
mov ebx, edx
mov byte [ebp - 0x405], 0
mov edi, ecx
call fcn.00421ce0
push esi
lea eax, [ebp - 0x404]
push 0x452b40
push eax
call fcn.00406430
lea eax, [ebp - 0x404]
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401f25
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x404]
push eax
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ecx, byte [ebp - 0x405]
test eax, eax
mov edx, 1
cmove ecx, edx
mov al, cl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e8a6
mov esp, ebp
pop ebp
ret
Function at 0x403e10
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], eax
mov ebx, edx
cmp dword [esi + 0x14], 8
jb 0x403e2a
mov eax, dword [esi]
jmp 0x403e2c
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403e9f
cmp dword [esi + 0x14], 8
jb 0x403e3f
mov esi, dword [esi]
push edi
push 0x452f68
push esi
call fcn.00427935
mov edi, eax
add esp, 8
test edi, edi
je 0x403e96
push 2
push 0
push edi
call fcn.00427ec5
push edi
call fcn.0042856c
push 0
push 0
push edi
mov esi, eax
call fcn.00427ec5
mov eax, dword [ebp - 4]
push edi
push 1
mov eax, dword [eax]
cmp eax, esi
cmovl esi, eax
push esi
push ebx
call fcn.0042875d
push edi
call fcn.00427b6a
add esp, 0x30
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4052d0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44224e
mov eax, dword fs:[0]
push eax
sub esp, 0x884
mov eax, dword [0x45c070]
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
push str.MFile_
mov edx, 0x45e128
lea ecx, [ebp - 0x878]
xor esi, esi
call fcn.004062b0
push 0x45e218
mov edx, eax
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x40]
call fcn.00406530
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x864]
cmp eax, 8
jb 0x40534e
inc eax
lea ecx, [ebp - 0x878]
push eax
push dword [ebp - 0x878]
call fcn.00407820
xor eax, eax
mov dword [ebp - 0x864], 7
cmp dword [ebp - 0x2c], 8
mov word [ebp - 0x878], ax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push 0
push 0xf001f
mov dword [ebp - 0x868], 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x860], eax
test eax, eax
je 0x4054ed
push 0
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x854], eax
test eax, eax
je 0x4054e1
push 0x800
lea eax, [ebp - 0x844]
mov dword [ebp - 0x848], 0
xorps xmm0, xmm0
push 0
push eax
movlpd qword [ebp - 0x850], xmm0
call fcn.00421ce0
mov eax, dword [edi + 0x10]
lea ecx, [ebp - 0x858]
add esp, 0xc
mov dword [ebp - 0x858], eax
cmp eax, 0x7ff
mov dword [ebp - 0x85c], 0x7ff
lea edx, [ebp - 0x85c]
cmovge ecx, edx
cmp dword [edi + 0x14], 0x10
mov esi, dword [ecx]
jb 0x40540e
mov edi, dword [edi]
push esi
lea eax, [ebp - 0x844]
push edi
push eax
call fcn.004288c0
push str.ParMutex
mov edx, 0x45e128
mov dword [ebp - 0x848], esi
lea ecx, [ebp - 0x890]
call fcn.004062b0
push 0x45e218
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00406530
mov eax, dword [ebp - 0x87c]
add esp, 0x14
cmp eax, 8
jb 0x40546b
inc eax
lea ecx, [ebp - 0x890]
push eax
push dword [ebp - 0x890]
call fcn.00407820
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov ebx, eax
test ebx, ebx
je 0x405493
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x854]
mov ecx, 0x203
lea esi, [ebp - 0x850]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, 1
test ebx, ebx
je 0x4054c5
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x854]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4054e1
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407820
push dword [ebp - 0x860]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x405502
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.00407820
mov eax, esi
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.0041e8a6
mov esp, ebp
pop ebp
ret
Function at 0x407db0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4424c8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x45c070]
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
xor eax, eax
cmp dword [ecx + 0x10], eax
je 0x407f4a
push 0xffffffffffffffff
push eax
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
call fcn.00406f70
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x407e2c
push 0x5c
push 1
lea ecx, [ebp - 0x28]
call fcn.0040e270
mov ecx, dword [ebp - 0x18]
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
xor edx, edx
movq qword [ebp - 0x34], xmm0
xor eax, eax
mov dword [ebp - 0x50], edx
xor ebx, ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], edx
mov word [ebp - 0x4c], dx
xor edi, edi
mov byte [ebp - 4], 2
xor esi, esi
test ecx, ecx
je 0x407ec0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 8
cmovae eax, edx
cmp word [eax + esi*2], 0x5c
je 0x407e88
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
jmp 0x407e9f
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x34]
call fcn.00409b00
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
movzx eax, word [eax + esi*2]
lea ecx, [ebp - 0x4c]
push eax
push 1
call fcn.0040e270
inc esi
cmp esi, dword [ebp - 0x18]
jb 0x407e67
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x34]
mov esi, eax
cmp eax, ebx
je 0x407eea
cmp dword [esi + 0x14], 8
jb 0x407ed0
mov eax, dword [esi]
jmp 0x407ed2
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
neg edi
sbb edi, edi
add esi, 0x18
neg edi
cmp esi, ebx
jne 0x407ec6
mov eax, dword [ebp - 0x38]
cmp eax, 8
jb 0x407eff
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.00407820
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x407f33
push dword [ebp - 0x50]
mov edx, ebx
push ecx
mov ecx, esi
call fcn.0040cae0
mov ecx, dword [ebp - 0x50]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 8
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.0040ad00
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x407f48
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00407820
mov eax, edi
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.0041e8a6
mov esp, ebp
pop ebp
ret
Function at 0x408760
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4425d8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x45c070]
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
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4c]
push 3
xor eax, eax
mov dword [ebp - 0x38], 7
push 0x45325c
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
call fcn.00406ac0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
push 1
xor eax, eax
mov dword [ebp - 0x20], 7
push 0x453250
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
call fcn.00406ac0
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
lea edx, [ebp - 0x1c]
call fcn.00408580
mov ecx, dword [ebp - 0x20]
add esp, 8
mov ebx, eax
cmp ecx, 8
jb 0x408832
inc ecx
push ecx
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.00407820
xor eax, eax
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x24], 0
cmp eax, 8
jb 0x40885b
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.00407820
mov eax, dword [ebp - 0x1c]
mov esi, eax
mov edi, dword [ebp - 0x18]
cmp eax, edi
je 0x408886
cmp dword [esi + 0x14], 8
jb 0x408871
mov eax, dword [esi]
jmp 0x408873
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esi, 0x18
mov ebx, eax
cmp esi, edi
jne 0x408867
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4088ba
push dword [ebp - 0x50]
mov edx, edi
push ecx
mov ecx, eax
call fcn.0040cae0
mov ecx, dword [ebp - 0x14]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x1c]
add esp, 8
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.0040ad00
mov eax, ebx
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.0041e8a6
mov esp, ebp
pop ebp
ret
Function at 0x4088e0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442610
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x45c070]
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
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
push 1
xor eax, eax
mov dword [ebp - 0x20], 7
push 0x453250
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
call fcn.00406ac0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x1c]
mov ecx, esi
call fcn.004080b0
mov ecx, dword [ebp - 0x20]
add esp, 4
mov ebx, eax
cmp ecx, 8
jb 0x408987
inc ecx
push ecx
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.00407820
mov esi, dword [ebp - 0x18]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x1c]
mov ecx, esi
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4089d4
cmp esi, edi
je 0x4089d9
add esi, 0xffffffe8
nop dword [eax + eax]
cmp dword [esi + 0x14], 8
jb 0x4089ba
mov eax, dword [esi]
jmp 0x4089bc
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
sub esi, 0x18
mov ebx, eax
lea eax, [esi + 0x18]
cmp eax, edi
jne 0x4089b0
mov esi, dword [ebp - 0x18]
jmp 0x4089d9
mov ebx, 1
test edi, edi
je 0x408a0a
push dword [ebp - 0x38]
mov edx, esi
push ecx
mov ecx, edi
call fcn.0040cae0
mov ecx, dword [ebp - 0x14]
mov eax, 0x2aaaaaab
sub ecx, edi
add esp, 8
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push edi
call fcn.0040ad00
mov eax, ebx
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.0041e8a6
mov esp, ebp
pop ebp
ret
Function at 0x408ce0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x45c070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push edi
push 0x38
push 0
push eax
mov ebx, edx
mov edi, ecx
call fcn.00421ce0
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
lea eax, [ebp - 0x40]
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
push eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
pop esi
pop ebx
test eax, eax
je 0x408d6f
mov eax, dword [ebp - 8]
test eax, eax
je 0x408d6f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e8a6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0041e8a6
mov esp, ebp
pop ebp
ret
Function at 0x40d950
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442d1a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x45c070]
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
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.0041dc79
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x40da10
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.004211d1
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x45aaa0
push eax
call fcn.0042130d
push edi
push esi
call fcn.0041db2d
add esp, 8
mov eax, esi
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.0041e8a6
mov esp, ebp
pop ebp
ret 4

Function at 0x40e3b0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442e0e
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x45c070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov edx, ecx
mov dword [ebp - 4], eax
push str.app_global_only_mutex
lea ecx, [ebp - 0x40]
call fcn.004062b0
add esp, 4
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x40e43e
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40e421
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407820
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00407620
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x40e453
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00407820
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call esi
cmp eax, 0xb7
je 0x40e485
call esi
cmp eax, 5
je 0x40e485
xor esi, esi
jmp 0x40e48f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x40e4a4
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00407820
mov eax, esi
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.0041e8a6
mov esp, ebp
pop ebp
ret