joyce8/EMBER2024-capa huggingface dataset:
Function at 0x491ab0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4e8e20
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov dword [esp + 0x40], 0
xor eax, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
mov byte [esp + 0x40], 1
lea edx, [esp + 0x1c]
xor ecx, ecx
call fcn.004868d0
test al, al
je 0x491b7f
lea eax, [esp + 0x48]
push eax
lea edx, [esp + 0x20]
lea ecx, [esp + 8]
call fcn.00496cb0
add esp, 4
mov byte [esp + 0x40], 2
lea eax, [esp + 4]
cmp dword [esp + 0x18], 8
cmovae eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x40], 1
cmp dword [esp + 0x18], 8
jb 0x491b68
push dword [esp + 4]
call fcn.004c4eaa
add esp, 4
xor eax, eax
mov dword [esp + 0x18], 7
mov dword [esp + 0x14], 0
mov word [esp + 4], ax
lea edx, [esp + 0x1c]
mov ecx, 0x19
call fcn.004868d0
test al, al
je 0x491bef
lea eax, [esp + 0x48]
push eax
lea edx, [esp + 0x20]
lea ecx, [esp + 8]
call fcn.00496cb0
add esp, 4
mov byte [esp + 0x40], 3
lea eax, [esp + 4]
cmp dword [esp + 0x18], 8
cmovae eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x40], 1
cmp dword [esp + 0x18], 8
jb 0x491bd8
push dword [esp + 4]
call fcn.004c4eaa
add esp, 4
xor eax, eax
mov dword [esp + 0x18], 7
mov dword [esp + 0x14], 0
mov word [esp + 4], ax
mov byte [esp + 0x40], 0
cmp dword [esp + 0x30], 8
jb 0x491c07
push dword [esp + 0x1c]
call fcn.004c4eaa
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x5c], 8
jb 0x491c39
push dword [esp + 0x48]
call fcn.004c4eaa
add esp, 4
xor eax, eax
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], 0
mov word [esp + 0x48], ax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004c4eaf
add esp, 0x40
ret 0x18
Function at 0x494080
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push 0
push dword [0x70dbde]
push dword [0x70dbe4]
call fcn.004c7f77
movzx eax, word [0x70dbf6]
imul eax, dword [0x70dbf0]
imul eax, dword [0x70dbec]
cdq
and edx, 7
add eax, edx
sar eax, 3
push eax
call fcn.004c447f
movzx ecx, word [0x70dbf6]
imul ecx, dword [0x70dbf0]
push dword [0x70dbe4]
mov dword [0x70dc14], eax
push 1
imul ecx, dword [0x70dbec]
shr ecx, 3
push ecx
push eax
call fcn.004c7e3c
mov ax, word [0x70dbf6]
mov esi, dword [0x70dbf0]
mov ecx, dword [0x70dbec]
shr ax, 3
movzx ebp, ax
mov ebx, ebp
mov dword [esp + 0x34], ecx
mov eax, ebx
mov dword [esp + 0x38], esi
imul eax, esi
imul eax, ecx
push eax
call fcn.004c447f
lea edi, [esi - 1]
mov edx, eax
mov eax, dword [esp + 0x38]
add esp, 0x24
imul edi, ebx
mov dword [0x70dc10], edx
imul edi, eax
add edi, edx
test esi, esi
je 0x4941c0
mov esi, ebx
lea ebx, [edi + 2]
imul esi, eax
mov eax, dword [0x70dc14]
sub eax, edx
add ebx, eax
sub edx, dword [0x70dc14]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], esi
lea esp, [esp]
xor eax, eax
test esi, esi
je 0x4941b6
mov ecx, ebx
mov edx, ebp
sub ecx, edi
add ecx, 0xfffffffe
mov dword [esp + 0x14], ecx
cmp ebp, 1
jne 0x494182
lea edx, [eax + edi]
mov cl, byte [ecx + edx]
mov byte [edx], cl
jmp 0x4941aa
cmp ebp, 3
jne 0x4941b0
mov edx, dword [esp + 0x1c]
lea esi, [eax + edi]
movzx ecx, byte [ecx + esi]
add edx, ebx
mov byte [edx + eax], cl
movzx ecx, byte [ebx + eax - 1]
mov byte [eax + edi + 1], cl
movzx ecx, byte [ebx + eax]
mov byte [esi], cl
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, ebp
add eax, edx
cmp eax, esi
jb 0x494173
sub edi, esi
sub ebx, esi
dec dword [esp + 0x18]
jne 0x494160
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x494720
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push edi
push 0x4f3f18
push dword [esp + 0x14]
call fcn.004c69ad
push 0x4f3f0c
push dword [esp + 0x20]
mov dword [0x70dbe4], eax
call fcn.004c69ad
push dword [0x70dbe4]
mov dword [0x70dbd0], eax
push 1
push 0xe
push 0x70dbd4
call fcn.004c7e3c
push dword [0x70dbe4]
push 1
push 0x28
push 0x70dbe8
call fcn.004c7e3c
add esp, 0x30
call fcn.00494080
call fcn.004941d0
push dword [0x70dbe4]
call fcn.004c6c6f
add esp, 4
push dword [0x70dbd0]
call fcn.004c6c6f
mov esi, dword [0x70dc14]
add esp, 4
mov edi, 0x8123
test esi, esi
je 0x4947c1
push esi
call fcn.004c5749
mov eax, dword [0x70dc14]
add esp, 4
test esi, esi
cmovne eax, edi
mov dword [0x70dc14], eax
mov esi, dword [0x70dc10]
test esi, esi
je 0x4947e3
push esi
call fcn.004c5749
mov eax, dword [0x70dc10]
add esp, 4
test esi, esi
cmovne eax, edi
mov dword [0x70dc10], eax
pop edi
pop esi
pop ecx
ret 8
Function at 0x495d10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4e9550
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x34], 0
push 0xffffffffffffffff
push eax
push ecx
mov dword [esp + 0x44], 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
call fcn.00403000
mov dword [esp + 0x48], 0
mov ecx, dword [esp + 0x34]
cmp ecx, 2
jb 0x495de1
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x24]
cmp edx, 8
cmovae eax, dword [esp + 0x24]
cmp word [eax], 0x22
jne 0x495de1
cmp edx, 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
cmp word [eax + ecx*2 - 2], 0x22
jne 0x495de1
lea eax, [ecx - 2]
push eax
push 1
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
call fcn.00495760
add esp, 8
mov byte [esp + 0x48], 1
lea ecx, [esp + 0x24]
push eax
call fcn.00402a50
mov byte [esp + 0x48], 0
lea ecx, [esp + 0xc]
call fcn.00402a90
mov edx, 0x4ffe8c
lea ecx, [esp + 0x24]
call fcn.00495580
cmp dword [esp + 0x38], 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x38], 8
jb 0x495e25
push dword [esp + 0x24]
call fcn.004c4eaa
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
mov word [esp + 0x24], ax
mov al, bl
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004c4eaf
add esp, 0x44
ret
Function at 0x495e60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4e9550
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x34], 0
push 0xffffffffffffffff
push eax
push ecx
mov dword [esp + 0x44], 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
call fcn.00403000
mov dword [esp + 0x48], 0
mov ecx, dword [esp + 0x34]
cmp ecx, 2
jb 0x495f31
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x24]
cmp edx, 8
cmovae eax, dword [esp + 0x24]
cmp word [eax], 0x22
jne 0x495f31
cmp edx, 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
cmp word [eax + ecx*2 - 2], 0x22
jne 0x495f31
lea eax, [ecx - 2]
push eax
push 1
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
call fcn.00495760
add esp, 8
mov byte [esp + 0x48], 1
lea ecx, [esp + 0x24]
push eax
call fcn.00402a50
mov byte [esp + 0x48], 0
lea ecx, [esp + 0xc]
call fcn.00402a90
mov edx, 0x4ffe8c
lea ecx, [esp + 0x24]
call fcn.00495580
cmp dword [esp + 0x38], 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x495f61
test al, 0x10
jne 0x495f61
mov bl, 1
jmp 0x495f63
xor bl, bl
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x38], 8
jb 0x495f7e
push dword [esp + 0x24]
call fcn.004c4eaa
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
mov word [esp + 0x24], ax
mov al, bl
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004c4eaf
add esp, 0x44
ret
Function at 0x495fc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4e9550
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x34], 0
push 0xffffffffffffffff
push eax
push ecx
mov dword [esp + 0x44], 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
call fcn.00403000
mov dword [esp + 0x48], 0
mov ecx, dword [esp + 0x34]
cmp ecx, 2
jb 0x496091
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x24]
cmp edx, 8
cmovae eax, dword [esp + 0x24]
cmp word [eax], 0x22
jne 0x496091
cmp edx, 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
cmp word [eax + ecx*2 - 2], 0x22
jne 0x496091
lea eax, [ecx - 2]
push eax
push 1
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
call fcn.00495760
add esp, 8
mov byte [esp + 0x48], 1
lea ecx, [esp + 0x24]
push eax
call fcn.00402a50
mov byte [esp + 0x48], 0
lea ecx, [esp + 0xc]
call fcn.00402a90
mov edx, 0x4ffe8c
lea ecx, [esp + 0x24]
call fcn.00495580
cmp dword [esp + 0x38], 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4960c1
test al, 0x10
je 0x4960c1
mov bl, 1
jmp 0x4960c3
xor bl, bl
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x38], 8
jb 0x4960de
push dword [esp + 0x24]
call fcn.004c4eaa
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
mov word [esp + 0x24], ax
mov al, bl
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004c4eaf
add esp, 0x44
ret
Function at 0x496280
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4e95d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esi + 0x10]
xor edi, edi
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test ebx, ebx
je 0x49636b
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x4962d3
mov ecx, dword [esi]
jmp 0x4962d5
mov ecx, esi
mov edx, 0x2f
cmp dx, word [ecx + edi*2]
mov edx, 0x5c
je 0x4962f6
cmp eax, 8
jb 0x4962ee
mov eax, dword [esi]
jmp 0x4962f0
mov eax, esi
cmp dx, word [eax + edi*2]
jne 0x496362
push edi
push 0
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.00495a40
mov dword [esp + 0x38], 0
cmp dword [esp + 0x24], 0
je 0x496334
lea ecx, [esp + 0x14]
call fcn.00495d10
test al, al
jne 0x496334
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
push 0
cmovae eax, dword [esp + 0x18]
push eax
call ebp
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x49634f
push dword [esp + 0x14]
call fcn.004c4eaa
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], eax
mov word [esp + 0x14], ax
inc edi
cmp edi, ebx
jb 0x4962c7
mov ecx, esi
call fcn.00495d10
test al, al
jne 0x496387
cmp dword [esi + 0x14], 8
jb 0x496380
mov eax, dword [esi]
jmp 0x496382
mov eax, esi
push 0
push eax
call ebp
mov ecx, esi
call fcn.00495fc0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004c4eaf
add esp, 0x28
ret

Function at 0x496a70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4e9700
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
push 2
sub esp, 8
call fcn.00496c30
cmp eax, 0xffffffff
jne 0x496acc
cmp dword [esi + 0x14], 8
jb 0x496ab9
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x496b1e
lea ecx, [esp + 0xc]
call fcn.004989b0
mov dword [esp + 0x58], 0
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.00498f10
mov bl, al
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x48], 8
jb 0x496b05
push dword [esp + 0x34]
call fcn.004c4eaa
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov word [esp + 0x34], ax
mov al, bl
mov dword [esp + 0x44], 0
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004c4eaf
add esp, 0x50
ret
Function at 0x497180
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4e9829
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
push 0x18
call fcn.004c59cf
add esp, 4
mov dword [edi + 0x20], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x38], 0
lea esi, [edi + 0x24]
mov dword [esi], 0
xor eax, eax
mov byte [esi + 4], 0
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], 0
mov dword [esp + 0x14], esi
mov word [esi + 8], ax
mov byte [esp + 0x38], 2
lea ecx, [esp + 0x18]
push eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 0x10], 0xffffffff
mov dword [edi + 0x14], 0xffffffff
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push 0x4f3da4
mov byte [edi + 8], al
mov dword [edi + 0x18], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x1c], eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], eax
mov word [esp + 0x20], ax
call fcn.00403120
mov byte [esp + 0x38], 3
sub esp, 8
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.00499be0
mov byte [esp + 0x38], 2
cmp dword [esp + 0x2c], 8
jb 0x497264
push dword [esp + 0x18]
call fcn.004c4eaa
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
mov dword [esp + 0x38], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
Function at 0x4977a0
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x4e9958
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 8]
test edi, edi
jne 0x4977e2
xor al, al
jmp 0x4978a7
add edi, 0x20
mov dword [esp + 0x14], edi
je 0x4977f8
mov eax, dword [edi]
test eax, eax
je 0x4977f8
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x24], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x497882
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea ebx, [esi + 4]
push 1
push ebx
call ebp
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x4972a0
push 0
push 0
call fcn.004c8794
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
je 0x49786b
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x24]
test eax, eax
je 0x497856
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x49786b
mov bl, 1
jmp 0x497884
push 0xffffffffffffffff
push ebx
call ebp
dec eax
jne 0x49787a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.00497450
xor bl, bl
mov dword [esp + 0x24], 0xffffffff
test edi, edi
je 0x4978a5
mov eax, dword [edi]
test eax, eax
je 0x49789d
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x14], 0
mov al, bl
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004c4eaf
add esp, 0x14
ret

Function at 0x498110
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push edi
push eax
push dword [ecx]
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x49815f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x49815f
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004c4eaf
add esp, 8
ret 4
mov ecx, dword [esp + 8]
xor eax, eax
add eax, edi
mov dword [esi], eax
mov al, 1
adc ecx, 0
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.004c4eaf
add esp, 8
ret 4
Function at 0x498210
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4e9b46
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov byte [esi], 0
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
mov dword [esp + 0x18], eax
lea ecx, [esi + 0x1c]
push 0xffffffffffffffff
push eax
push dword [esp + 0x28]
mov dword [esi + 0x30], 7
mov dword [esi + 0x2c], eax
mov word [esi + 0x1c], ax
call fcn.00403000
mov byte [esp + 0x18], 1
cmp dword [esi + 0x2c], 0
jne 0x49828b
push 3
push 0x4ffea0
lea ecx, [esi + 0x1c]
call fcn.00403120
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x4985b0
Capabilities:
Get file size
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e9bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x498606
mov dword [ecx], 0
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x100000
mov dword [eax], 0
mov eax, dword [esp + 0x54]
jmp 0x498620
push 0
mov ebx, eax
mov dword [esp + 0x34], 0
cmp eax, 0x100000
lea eax, [esp + 0x34]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x498741
test eax, eax
je 0x498741
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
jae 0x498745
call ebp
mov dword [esp + 0x18], eax
lea eax, [esp + 0x38]
push eax
push dword [edi]
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4986aa
call ebp
test eax, eax
je 0x4986aa
xorps xmm0, xmm0
movlpd qword [esp + 0x24], xmm0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
jmp 0x4986b5
mov eax, dword [esp + 0x38]
xor ecx, ecx
add ecx, esi
adc eax, 0
push 0
push dword [esp + 0x1c]
push eax
push ecx
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [esp + 0x40], esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [edi + 4]
push eax
call fcn.00403000
mov dword [esp + 0x70], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [esp + 0x70], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [esp + 0x14]
test eax, eax
jne 0x498741
push eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x30]
neg eax
sbb eax, eax
add ecx, dword [esp + 0x34]
and eax, 0x7fffbffb
mov dword [esp + 0x30], ecx
add eax, 0x80004005
jne 0x498667
jmp 0x498745
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
add dword [edx], ecx
test eax, eax
jne 0x498772
test ecx, ecx
je 0x49876e
mov eax, dword [esp + 0x54]
add esi, ecx
sub eax, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x54], eax
mov ecx, 0x100000
jne 0x498620
mov al, 1
jmp 0x49877e
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x49877c
mov dword [ecx], eax
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004c4eaf
add esp, 0x38
ret 0x10
Function at 0x498ff0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
xor eax, eax
mov esi, ecx
push 0x20a
push eax
mov word [esp + 0xc], ax
lea eax, [esp + 0xe]
push eax
call fcn.004cb700
add esp, 0xc
lea eax, [esp + 4]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x499067
xor eax, eax
mov ecx, esi
mov word [esp + 0x20e], ax
lea eax, [esp + 4]
push eax
call fcn.00402ac0
mov al, 1
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004c4eaf
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
xor al, al
pop esi
xor ecx, esp
call fcn.004c4eaf
add esp, 0x210
ret

Function at 0x4990a0
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4e9d48
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push edi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
cmp dword [esi + 0x14], 8
jb 0x4990de
mov eax, dword [esi]
jmp 0x4990e0
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x4990e8
mov ecx, dword [edi]
push 0xb
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4991bf
cmp dword [esi + 0x14], 8
jb 0x499104
mov eax, dword [esi]
jmp 0x499106
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4991fc
xor eax, eax
mov dword [esp + 0x1c], 0
push 0xffffffffffffffff
push eax
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x14]
push esi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.00403000
mov dword [esp + 0x30], 0
lea ecx, [esp + 0xc]
call fcn.004996d0
test al, al
je 0x4991ca
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
cmp dword [esi + 0x14], 8
jb 0x499177
mov ecx, dword [esi]
jmp 0x499179
mov ecx, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4991ca
cmp dword [esi + 0x14], 8
jb 0x49918f
mov eax, dword [esi]
jmp 0x499191
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x499199
mov edi, dword [edi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [esp + 0xc]
test eax, eax
je 0x4991c3
call fcn.00499220
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00402a90
mov al, 1
jmp 0x4991fe
mov edx, esi
call fcn.00499080
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x4991e5
push dword [esp + 0xc]
call fcn.004c4eaa
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004c4eaf
add esp, 0x28
ret