joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483c84
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.0048cd44
mov ebx, eax
test esi, esi
je 0x483cbd
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
je 0x483caa
movzx eax, word [eax]
jmp 0x483cb1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
cmp ax, 0xffff
je 0x483cbd
test bl, bl
jne 0x483cc3
jmp 0x483d20
xor esi, esi
test bl, bl
jne 0x483d11
mov ecx, dword [edi]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x483cd2
movzx eax, word [eax]
jmp 0x483cd7
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
movzx eax, ax
push eax
push 8
call dword [edx + 0xc]
test al, al
je 0x483d02
mov ecx, dword [edi]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x483cfb
add eax, 2
mov dword [ecx + 0xc], eax
jmp 0x483c90
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x483c90
mov ecx, edi
call fcn.0048cd44
mov ebx, eax
test esi, esi
jne 0x483d29
jmp 0x483d1a
mov ecx, edi
call fcn.0048cd44
mov ebx, eax
test bl, bl
jne 0x483d48
jmp 0x483d4e
mov ecx, edi
call fcn.0048cd44
mov ebx, eax
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
je 0x483d36
movzx eax, word [eax]
jmp 0x483d3d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
cmp ax, 0xffff
sete al
xor bl, al
jne 0x483d4e
mov eax, dword [ebp + 0x10]
or byte [eax], 2
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
Function at 0x485110
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov esi, esp
mov dword [esi + 0x88], ebp
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x90]
mov dword [eax - 4], esp
xor edx, edx
dec edx
mov dword [eax + 8], edx
mov dword [eax + 4], 0x48d6e0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea ecx, [esi + 0x20]
mov dword [ecx + 0x60], edx
pcmpeqd xmm0, xmm0
movdqa xmmword [ecx + 0x50], xmm0
movdqa xmmword [ecx + 0x40], xmm0
movdqa xmmword [ecx + 0x30], xmm0
movdqa xmmword [ecx + 0x20], xmm0
movdqa xmmword [ecx + 0x10], xmm0
movdqa xmmword [ecx], xmm0
mov dword [esi + 8], ecx
mov dword [esi + 0x18], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0xc], fcn.00402f50
mov dword [esi + 0x14], edx
mov dword [eax + 8], 1
lea eax, [esi + 4]
mov dword [eax], edx
push eax
call fcn.004772c8
mov dword [esi + 0x98], 2
lea ecx, [esi + 4]
push 0x703d78
call fcn.00489138
mov dword [esi + 0x10], eax
mov al, byte [ebp + 0x14]
lea ecx, [esi + 0x84]
lea edx, [esi + 3]
mov byte [edx], 0
lea edi, [esi + 0x14]
lea ebx, [esi + 8]
movzx eax, al
push ecx
push edi
push ebx
push dword [esi + 0x10]
push edx
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push dword [ecx + 4]
lea ecx, [esi + 4]
push ecx
push eax
push dword [esi + 0x1c]
lea eax, [ebp + 0xc]
push eax
call fcn.00484690
add esp, 0x2c
test al, al
je 0x485270
mov ecx, dword [ebp + 0x20]
cmp byte [ecx + 0xb], 0
js 0x48520a
xor eax, eax
mov byte [ecx], al
mov byte [ecx + 0xb], al
jmp 0x485216
mov eax, dword [ecx]
mov byte [eax], 0
mov dword [ecx + 4], 0
cmp byte [esi + 3], 0
je 0x485232
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push 0x2d
call dword [eax + 0x1c]
movsx eax, al
mov ecx, dword [ebp + 0x20]
push eax
call fcn.0048e158
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push 0x30
call dword [eax + 0x1c]
mov edx, dword [esi + 8]
mov edi, dword [esi + 0x14]
lea ebx, [edi - 1]
cmp edx, ebx
jae 0x48525c
lea ecx, [edx + 1]
cmp ebx, ecx
cmova ecx, ebx
cmp byte [edx], al
jne 0x48525c
inc edx
cmp ecx, edx
jne 0x485251
mov edx, ecx
mov dword [esi + 0x98], 2
mov ecx, dword [ebp + 0x20]
push edi
push edx
call fcn.0048cd80
lea eax, [ebp + 0x10]
lea ecx, [ebp + 0xc]
push eax
call fcn.00429a00
mov edi, dword [ebp + 8]
test al, al
je 0x485289
mov eax, dword [ebp + 0x1c]
or byte [eax], 2
mov eax, dword [ebp + 0xc]
mov dword [edi], eax
mov ecx, dword [esi + 4]
xor eax, eax
dec eax
lock xadd dword [ecx + 4], eax
test eax, eax
jne 0x4852a2
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
je 0x4852c4
mov dword [esi + 0x98], 0
push eax
call dword [esi + 0xc]
mov edi, dword [ebp + 8]
add esp, 4
mov eax, dword [esi + 0x90]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
Function at 0x4915e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword [0x704420]
test edi, edi
jne 0x491686
push 0x24
call fcn.0064173e
add esp, 4
mov esi, eax
mov dword [eax + 4], 0
mov dword [eax], 0
push 0xc
call fcn.0064173e
add esp, 4
mov dword [esi + 8], eax
lea ecx, [eax + 0xc]
mov dword [esi + 0x10], ecx
mov dword [eax + 8], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [esi + 0xc], ecx
lea eax, [esi + 0x18]
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], 1
mov dword [0x704420], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor edx, edx
test eax, eax
je 0x49167d
cmp word [eax], 0
je 0x49167d
xor ecx, ecx
nop dword [eax + eax]
lea edx, [ecx + 1]
cmp word [eax + ecx*2 + 2], 0
mov ecx, edx
jne 0x491670
mov ecx, esi
push edx
push eax
call fcn.00491690
test edi, edi
sete al
pop esi
pop edi
pop ebp
ret
Function at 0x491690
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov edi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x7024bc]
xor edx, ebp
mov dword [ebp - 0x10], edx
lea ebx, [ebp - 0x20]
push 3
push ecx
push eax
push ebx
call fcn.004a7430
add esp, 0x10
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x49188b
mov esi, dword [ebp - 0x20]
mov dword [edi], esi
mov dword [edi + 4], eax
mov dword [ebp - 0x14], 0
push 0x800
push 0
push str.api_ms_win_downlevel_shell32_l1_1_0.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x49170a
push 0x68936a
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x491719
mov ecx, eax
lea eax, [ebp - 0x14]
push eax
push esi
call ecx
jmp 0x491715
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
jmp 0x49171b
xor esi, esi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
test eax, eax
je 0x491821
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edi
cmp eax, 0x15555556
jae 0x4918ab
shl eax, 2
mov dword [ebp - 0x30], eax
lea esi, [eax + eax*2]
push esi
call fcn.0064173e
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
add eax, esi
mov dword [ebp - 0x18], eax
xor eax, eax
mov esi, dword [ebp - 0x24]
jmp 0x4917b5
mov byte [edi + 0xb], bl
mov eax, edi
test ebx, ebx
je 0x4917a1
mov ecx, ebx
add ecx, ebx
push ecx
push dword [ebp - 0x34]
push eax
mov esi, eax
call fcn.006452d0
mov eax, esi
mov esi, dword [ebp - 0x24]
add esp, 0xc
mov word [eax + ebx*2], 0
add edi, 0xc
mov eax, dword [ebp - 0x38]
add eax, 4
cmp dword [ebp - 0x30], eax
je 0x491818
mov dword [ebp - 0x38], eax
mov eax, dword [esi + eax]
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [edi + 8], 0
mov dword [ebp - 0x34], eax
push eax
call fcn.0065e7c2
add esp, 4
cmp eax, 0x7ffffff0
jae 0x49189f
mov ebx, eax
cmp eax, 5
jb 0x491780
lea esi, [ebx + 8]
and esi, 0xfffffff8
js 0x4918a6
lea eax, [esi + esi]
push eax
call fcn.0064173e
add esp, 4
mov dword [edi], eax
or esi, 0x80000000
mov dword [edi + 8], esi
mov dword [edi + 4], ebx
jmp 0x491789
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x28]
lea ebx, [ebp - 0x20]
mov ecx, edi
push ebx
call fcn.00491300
mov dword [edi], 0
mov dword [edi + 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x49184b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x49188b
mov eax, dword [ebp - 0x1c]
cmp eax, esi
jne 0x491866
mov eax, esi
jmp 0x49187f
mov eax, edi
cmp esi, edi
je 0x49187c
lea edi, [eax - 0xc]
cmp byte [eax - 1], 0
jns 0x491860
push dword [eax - 0xc]
call fcn.006417be
add esp, 4
jmp 0x491860
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], esi
push eax
call fcn.006417be
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064180a
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ecx, edi
call fcn.0048da34
call fcn.00656a75
lea ecx, [ebp - 0x20]
call fcn.0048fe3c
int3
Function at 0x493120
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov edi, ecx
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 8], edx
mov dword [esp + 0x1c], edx
movzx ecx, byte [0x704424]
xor ecx, 3
xor eax, eax
mov dword [esp + 0x10], ecx
mov ebx, dword [eax*8 + 0x6892fc]
mov dword [esp + 0x14], eax
mov eax, dword [eax*8 + 0x6892f8]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov byte [esp + 0x2b], bl
lea ecx, [ebx + ebx]
push ecx
push eax
lea eax, [esp + 0x28]
push eax
call fcn.006452d0
add esp, 0xc
mov word [esp + ebx*2 + 0x20], 0
movzx eax, byte [esp + 0x2b]
test al, al
mov ecx, dword [esp + 0x24]
mov edx, eax
mov dword [esp + 0xc], ecx
cmovs edx, ecx
cmp edx, dword [esp + 8]
jbe 0x4931c0
test al, al
js 0x493200
mov ecx, dword [esp + 0x10]
jmp 0x493216
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
test edx, edx
je 0x49322a
test al, al
lea esi, [esp + 0x20]
cmovs esi, dword [esp + 4]
xor ebx, ebx
nop dword [eax]
movzx ecx, word [edi + ebx*2]
cmp cx, word [esi + ebx*2]
jne 0x4931b6
add ebx, 1
cmp edx, ebx
jne 0x4931e0
jmp 0x49322a
push dword [esp + 0x20]
call fcn.006417be
add esp, 4
movzx ecx, byte [0x704424]
xor ecx, 3
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, ecx
jb 0x493151
jmp 0x4932b6
test al, al
js 0x493238
mov ecx, eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
jmp 0x49324e
push dword [esp + 4]
call fcn.006417be
add esp, 4
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, dword [esp + 0xc]
xor ebx, ebx
test ecx, ecx
je 0x4932bc
cmp ecx, dword [esp + 8]
je 0x4932bc
lea eax, [esp + 0x18]
push 0
push 0x6893a8
push eax
mov ebx, ecx
call fcn.004a4cd0
add esp, 0xc
mov ecx, dword [esp + 0x1c]
sub ecx, ebx
jb 0x4932d1
mov edx, ebx
sub eax, ebx
cmp ecx, eax
cmovb eax, ecx
cmp eax, esi
jne 0x4932b6
test esi, esi
je 0x4932ba
add edx, edx
add edx, dword [esp + 0x18]
xor eax, eax
nop word cs:[eax + eax]
nop dword [eax + eax]
movzx ecx, word [edx + eax*2]
cmp cx, word [edi + eax*2]
sete bl
jne 0x4932bc
add eax, 1
cmp esi, eax
jne 0x4932a0
jmp 0x4932bc
xor ebx, ebx
jmp 0x4932bc
mov bl, 1
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.0064180a
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
int3
Function at 0x494ff0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov ebx, ecx
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x24], edx
push edx
push ecx
push edi
call fcn.004a9730
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x49501f
mov edi, dword [ebp - 0x1c]
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
cmp byte [ebp - 0x11], 0
jns 0x49503d
push dword [ebp - 0x1c]
call fcn.006417be
add esp, 4
cmp dword [ebp + 8], 0
je 0x49511c
test esi, esi
je 0x49511c
mov dword [ebp - 0x20], esi
add esi, esi
mov ecx, 0xffffffff
cmovae ecx, esi
push ecx
call fcn.006417f3
add esp, 4
mov edi, eax
lea esi, [ebp - 0x1c]
push dword [ebp - 0x24]
push ebx
push esi
call fcn.004a9730
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x495080
mov esi, dword [ebp - 0x1c]
push dword [ebp - 0x20]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [ebp - 0x11], 0
jns 0x49509c
push dword [ebp - 0x1c]
call fcn.006417be
add esp, 4
cmp word [edi], 0
mov esi, dword [ebp + 8]
je 0x4950bf
xor ecx, ecx
nop word [eax + eax]
lea eax, [ecx + 1]
cmp word [edi + ecx*2 + 2], 0
mov ecx, eax
jne 0x4950b0
jmp 0x4950c1
xor eax, eax
lea ecx, [ebp - 0x1c]
push eax
push edi
push ecx
call fcn.004a9bb0
add esp, 0xc
cmp byte [esi + 0xb], 0
js 0x4950de
mov byte [esi], 0
mov byte [esi + 0xb], 0
jmp 0x495101
mov eax, dword [esi]
mov byte [eax], 0
mov dword [esi + 4], 0
cmp byte [esi + 0xb], 0
jns 0x495101
push dword [esi]
call fcn.006417be
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [ebp - 0x14]
mov dword [esi + 8], eax
movsd xmm0, qword [ebp - 0x1c]
movsd qword [esi], xmm0
push edi
call fcn.00641805
add esp, 4
mov esi, dword [ebp - 0x20]
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064180a
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x495440
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004b6ef0
mov dword [esi], 0
test eax, eax
je 0x4954a4
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
add ecx, 1
cmp ecx, 2
jb 0x49548a
mov dword [ebp - 0x10], eax
call fcn.00499510
push dword [esi]
call fcn.004bbc10
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
lea ecx, [ebx + 1]
cmp ecx, 2
jb 0x49549d
mov dword [esi], ebx
mov ebx, eax
call fcn.00499510
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esi + 4]
lea eax, [edi + 4]
push eax
call fcn.00444420
lea ecx, [esi + 0x10]
call fcn.00552f60
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov al, byte [edi + 0x18]
mov byte [esi + 0x18], al
mov al, byte [edi + 0x19]
mov byte [esi + 0x19], al
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x497d50
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.00497890
test al, al
jne 0x497d6e
mov ecx, esi
call fcn.00497890
test al, al
je 0x497d73
xor eax, eax
pop esi
pop ebp
ret
pop esi
pop ebp
jmp fcn.004b6a90
Function at 0x497d80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov ecx, dword [ebp + 0x10]
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [esp + 0x98], eax
test ecx, ecx
je 0x497dbf
cmp byte [ecx + 0xb], 0
js 0x497db3
mov byte [ecx], 0
mov byte [ecx + 0xb], 0
jmp 0x497dbf
mov eax, dword [ecx]
mov byte [eax], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
push 0
push 0
mov edi, dword [ebp + 8]
push edi
call fcn.0065c150
add esp, 0xc
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x80], xmm0
movdqa xmmword [esp + 0x70], xmm0
movdqa xmmword [esp + 0x60], xmm0
mov dword [esp + 0x94], 0xffffffff
mov dword [esp + 0x90], 0xffffffff
lea esi, [esp + 0x20]
push 0x9e
push str..._.._base_files_file_util.cc
push str.ReadStreamToStringWithMaxSize
push esi
call fcn.004994e0
add esp, 0x10
lea ecx, [esp + 0x60]
push 0
push esi
call fcn.004ab280
pxor xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
mov dword [esp + 0x50], 0
push edi
call fcn.006534b0
add esp, 4
push eax
call fcn.00653ecd
add esp, 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
xor esi, esi
test eax, eax
je 0x497e8d
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
xor eax, eax
mov edi, edx
neg edi
mov edi, 0
sbb edi, ecx
cmovl eax, ecx
mov ebx, 0xffff
cmovl ebx, edx
jmp 0x497e94
mov ebx, 0xffff
xor eax, eax
mov edx, dword [ebp + 0xc]
cmp edx, ebx
mov ecx, 0
sbb ecx, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
cmovb ebx, edx
add ebx, 1
lea edi, [esp + 0x10]
mov ecx, edi
push 0
push ebx
call fcn.0048dc4c
cmp byte [esp + 0x1b], 0
jns 0x497ed7
mov edi, dword [esp + 0x10]
push dword [ebp + 8]
push ebx
push 1
push edi
call fcn.0065bf40
add esp, 0x10
test eax, eax
je 0x497f55
xor esi, esi
lea edi, [esp + 0x10]
jmp 0x497f15
add eax, esi
push dword [ebp + 8]
push ebx
push 1
push eax
call fcn.0065bf40
add esp, 0x10
test eax, eax
je 0x497f55
mov ecx, dword [ebp + 0xc]
sub ecx, esi
cmp ecx, eax
jb 0x497f6b
test esi, esi
mov ecx, 0x10000
cmove ebx, ecx
add esi, eax
push dword [ebp + 8]
call fcn.0065b65b
add esp, 4
test eax, eax
jne 0x497f55
lea eax, [esi + ebx]
mov ecx, edi
push 0
push eax
call fcn.0048dc4c
cmp byte [esp + 0x1b], 0
mov eax, edi
jns 0x497f00
mov eax, dword [esp + 0x10]
jmp 0x497f00
push dword [ebp + 8]
call fcn.0065b687
add esp, 4
test eax, eax
sete bl
mov dword [esp + 0xc], esi
jmp 0x497f6d
xor ebx, ebx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x497fa4
mov eax, dword [ecx]
mov edi, dword [ecx + 4]
mov edx, dword [ecx + 8]
mov esi, dword [esp + 0x18]
mov dword [ecx + 8], esi
movq xmm0, qword [esp + 0x10]
movq qword [ecx], xmm0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edx
push 0
push dword [esp + 0x10]
call fcn.0048dc4c
cmp byte [esp + 0x1b], 0
jns 0x497fb7
push dword [esp + 0x10]
call fcn.006417be
add esp, 4
lea ecx, [esp + 0x60]
call fcn.004ab2f0
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.0064180a
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x499520
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
call fcn.004918c0
mov esi, eax
mov ecx, eax
push 0x68c069
call fcn.00491da0
test al, al
jne 0x49955e
mov ecx, esi
push str.vmodule
call fcn.00491da0
test al, al
je 0x4995f0
cmp dword [0x704438], 0
jne 0x4996bb
mov eax, dword [0x70443c]
mov dword [0x704438], eax
push 0x10
call fcn.0064173e
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], str.vmodule
push str.vmodule
call fcn.0065e4d0
add esp, 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
lea edx, [ebp - 0x1c]
mov ecx, esi
push eax
push edx
call fcn.00491e10
mov dword [ebp - 0x38], 0x68c069
push 0x68c069
call fcn.0065e4d0
add esp, 4
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
lea ebx, [ebp - 0x30]
mov ecx, esi
push eax
push ebx
call fcn.00491e10
mov ecx, edi
push 0x704440
lea eax, [ebp - 0x1c]
push eax
push ebx
call fcn.00555260
mov dword [0x70443c], edi
cmp byte [ebp - 0x25], 0
js 0x499631
cmp byte [ebp - 0x11], 0
js 0x499642
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov dword [0x7011f0], eax
mov bl, 1
test al, 1
je 0x4996a7
mov eax, dword [0x704454]
test eax, eax
je 0x49964f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x704454], 0
mov ecx, dword [0x704444]
test ecx, ecx
jne 0x49967e
and byte [0x7011f0], 0xfe
jmp 0x499659
push dword [ebp - 0x30]
call fcn.006417be
add esp, 4
cmp byte [ebp - 0x11], 0
jns 0x4995f0
push dword [ebp - 0x1c]
call fcn.006417be
add esp, 4
jmp 0x4995f0
mov ecx, dword [0x704444]
test ecx, ecx
jne 0x49967e
push 0xc
call fcn.0064173e
add esp, 4
mov ecx, eax
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [0x704444], eax
push dword [esi + 4]
call fcn.0048f136
cmp dword [esi + 0xc], 0
jne 0x4996a0
mov eax, dword [0x704444]
cmp byte [eax + 0xb], 0
jns 0x499699
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004996c0
mov ebx, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064180a
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
int3
Function at 0x4996c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [0x704454], 0
jne 0x499916
mov esi, dword [0x704444]
test esi, esi
je 0x499701
test byte [0x7011f0], 1
jne 0x4997fb
jmp 0x499916
push 0xc
call fcn.0064173e
add esp, 4
mov esi, eax
lea edi, [ebp - 0x218]
push 0x208
push 0xff
push edi
call fcn.00645dd0
add esp, 0xc
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 8], 0
push edi
call fcn.0065e7c2
add esp, 4
cmp eax, 0x7ffffff0
jae 0x49992d
mov ebx, eax
cmp eax, 5
jae 0x49976e
mov byte [esi + 0xb], bl
mov eax, esi
test ebx, ebx
jne 0x49979a
jmp 0x4997ad
lea edi, [ebx + 8]
and edi, 0xfffffff8
js 0x499934
lea eax, [edi + edi]
push eax
call fcn.0064173e
add esp, 4
mov dword [esi], eax
or edi, 0x80000000
mov dword [esi + 8], edi
mov dword [esi + 4], ebx
lea edi, [ebp - 0x218]
mov ecx, ebx
add ecx, ebx
push ecx
push edi
push eax
mov edi, eax
call fcn.006452d0
mov eax, edi
add esp, 0xc
mov word [eax + ebx*2], 0
movzx eax, byte [esi + 0xb]
test al, al
jns 0x4997be
mov eax, dword [esi + 4]
mov ecx, esi
push eax
push 0x5c
call fcn.0048f5f0
cmp eax, 0xffffffff
mov bl, 1
je 0x4997dc
add eax, 1
mov ecx, esi
push 0xffffffffffffffff
push eax
call fcn.0048f350
mov ecx, esi
push 0x689654
call fcn.0048efb2
mov dword [0x704444], esi
test byte [0x7011f0], 1
je 0x499916
cmp byte [esi + 0xb], 0
jns 0x499803
mov esi, dword [esi]
sub esp, 0x1c
movaps xmm0, xmmword [0x689600]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x704454], eax
add eax, 1
cmp eax, 1
ja 0x499916
lea eax, [ebp - 0x216]
push 0x206
push 0xff
push eax
call fcn.00645dd0
add esp, 0xc
mov word [ebp - 0x218], 0
lea esi, [ebp - 0x218]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x499914
cmp eax, 0x104
ja 0x499914
mov ecx, dword [0x704444]
push esi
call fcn.0048f136
mov ecx, dword [0x704444]
movzx eax, byte [ecx + 0xb]
test al, al
js 0x4998a1
mov edx, ecx
jmp 0x4998a6
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
cmp word [edx + eax*2 - 2], 0x5c
je 0x4998be
push 0x673ab0
call fcn.0048efb2
mov ecx, dword [0x704444]
push 0x689654
call fcn.0048efb2
mov eax, dword [0x704444]
cmp byte [eax + 0xb], 0
jns 0x4998d5
mov eax, dword [eax]
movaps xmm0, xmmword [0x689600]
sub esp, 0x1c
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x704454], eax
add eax, 1
cmp eax, 1
ja 0x499916
mov dword [0x704454], 0
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064180a
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
call fcn.0048da34
call fcn.00656a75
int3