joyce8/EMBER2024-capa huggingface dataset:
Function at 0x499290
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.004cb9a0
add esp, 0xc
lea eax, [esp + 4]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x499307
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.004c515f
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
xor al, al
pop esi
xor ecx, esp
call fcn.004c515f
add esp, 0x210
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x4ea018
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 0x49937e
mov eax, dword [esi]
jmp 0x499380
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x499388
mov ecx, dword [edi]
push 0xb
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x49945f
cmp dword [esi + 0x14], 8
jb 0x4993a4
mov eax, dword [esi]
jmp 0x4993a6
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x49949c
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.00499970
test al, al
je 0x49946a
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
cmp dword [esi + 0x14], 8
jb 0x499417
mov ecx, dword [esi]
jmp 0x499419
mov ecx, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x49946a
cmp dword [esi + 0x14], 8
jb 0x49942f
mov eax, dword [esi]
jmp 0x499431
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x499439
mov edi, dword [edi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [esp + 0xc]
test eax, eax
je 0x499463
call fcn.004994c0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00402a90
mov al, 1
jmp 0x49949e
mov edx, esi
call fcn.00499320
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x499485
push dword [esp + 0xc]
call fcn.004c515a
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.004c515f
add esp, 0x28
ret
Function at 0x4994c0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ea050
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 esi, ecx
cmp dword [esi + 0x14], 8
jb 0x4994f7
mov eax, dword [esi]
jmp 0x4994f9
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x499518
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x499522
mov eax, dword [esi]
jmp 0x499524
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
je 0x499615
cmp dword [esi + 0x14], 8
jb 0x499540
mov eax, dword [esi]
jmp 0x499542
mov eax, esi
push eax
lea ecx, [esp + 0x18]
call fcn.004029f0
mov dword [esp + 0x38], 0
lea eax, [esp + 0x14]
cmp dword [esp + 0x28], 8
push 0
cmovae eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
test al, al
sete al
mov byte [esp + 0x13], al
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x499598
push dword [esp + 0x14]
call fcn.004c515a
mov al, byte [esp + 0x17]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], cx
test al, al
jne 0x499615
cmp dword [esi + 0x14], 8
jb 0x4995bd
mov eax, dword [esi]
jmp 0x4995bf
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x499504
cmp dword [esi + 0x14], 8
jb 0x4995d6
mov esi, dword [esi]
push esi
lea ecx, [esp + 0x18]
call fcn.004029f0
mov dword [esp + 0x38], 1
and edi, 0xffffb1af
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
push edi
cmovae eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402a90
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x499630
Capabilities:
Get common file path

Disassembly:
sub esp, 0x624
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x620], eax
cmp dword [0x511030], 0
push esi
mov esi, ecx
je 0x49967e
cmp esi, 0x511020
je 0x499666
push 0xffffffffffffffff
push 0
push 0x511020
call fcn.00403000
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.004c515f
add esp, 0x624
ret
xor eax, eax
push 0x20a
push eax
mov word [esp + 0xc], ax
lea eax, [esp + 0xe]
push eax
call fcn.004cb9a0
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x49975d
xor eax, eax
push 0x410
push eax
mov word [esp + 0x216], ax
mov word [esp + 0x218], ax
lea eax, [esp + 0x21a]
push eax
call fcn.004cb9a0
add esp, 0xc
lea eax, [esp + 0x210]
push 0x208
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x499739
test eax, eax
je 0x499739
add eax, eax
cmp eax, 0x412
jae 0x499775
xor ecx, ecx
mov word [esp + eax + 0x210], cx
lea eax, [esp + 0x210]
push eax
mov ecx, esi
call fcn.00402ac0
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.004c515f
add esp, 0x624
ret
lea eax, [esp + 4]
mov ecx, esi
push eax
call fcn.00402ac0
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.004c515f
add esp, 0x624
ret
mov ecx, dword [esp + 0x624]
xor al, al
pop esi
xor ecx, esp
call fcn.004c515f
add esp, 0x624
ret
call fcn.004c5b58
int3

Function at 0x499780
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
xor eax, eax
push esi
push edi
push 0x20a
push eax
mov word [esp + 0x14], ax
mov edi, edx
lea eax, [esp + 0x16]
mov esi, ecx
push eax
call fcn.004cb9a0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x4997c4
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x4997cc
mov esi, dword [esi]
lea eax, [esp + 0xc]
push eax
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x499856
xor eax, eax
mov word [esp + 0x216], ax
cmp word [esp + 0xc], ax
jne 0x499819
xor ecx, ecx
lea eax, [esp + 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.00403120
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004c515f
add esp, 0x210
ret
lea ecx, [esp + 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x499820
sub ecx, edx
lea eax, [esp + 0xc]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.00403120
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004c515f
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c515f
add esp, 0x210
ret
Function at 0x499be0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x50
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x54]
push ebx
push esi
mov esi, dword [esp + 0x60]
mov ebx, edx
push edi
cdq
mov edi, ecx
push edx
push eax
lea ecx, [esp + 0x18]
call fcn.00495460
add esp, 8
cmp esi, edi
je 0x499c1c
push 0xffffffffffffffff
push 0
push edi
mov ecx, esi
call fcn.00403000
push 1
push 0x4fe714
mov ecx, esi
call fcn.00479c40
cmp word [esp + 0x10], 0
jne 0x499c36
xor ecx, ecx
jmp 0x499c4f
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x499c40
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.00479c40
push 1
push 0x4fe720
mov ecx, esi
call fcn.00479c40
push 0xffffffffffffffff
push 0
push ebx
mov ecx, esi
call fcn.004033c0
cmp dword [esi + 0x14], 8
jb 0x499c7e
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
sete al
mov ecx, dword [esp + 0x50]
pop esi
pop ebx
xor ecx, esp
call fcn.004c515f
add esp, 0x50
ret

Function at 0x499d90
Capabilities:
Read file on windows

Disassembly:
mov edx, ecx
mov eax, dword [edx]
test eax, eax
jne 0x499d9d
xor al, al
ret 0xc
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x499d98
cmp dword [eax], 0xffffffff
je 0x499d98
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [edx]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
ret 0xc
Function at 0x49a7f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ea297
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 edi, ecx
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push esi
mov word [edi], ax
call fcn.00403000
mov dword [esp + 0x18], 0
lea ecx, [edi + 0x18]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x18]
push eax
call fcn.00403000
mov byte [esp + 0x18], 1
lea ecx, [edi + 0x30]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x30]
push eax
call fcn.00403000
mov byte [esp + 0x18], 2
lea ecx, [edi + 0x48]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x48]
push eax
call fcn.00403000
mov byte [esp + 0x18], 3
lea ecx, [edi + 0x60]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x60]
push eax
call fcn.00403000
mov byte [esp + 0x18], 4
lea ecx, [edi + 0x78]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x78]
push eax
call fcn.00403000
mov byte [esp + 0x18], 5
lea ecx, [edi + 0x90]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x90]
push eax
call fcn.00403000
mov byte [esp + 0x18], 6
lea ecx, [edi + 0xa8]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0xa8]
push eax
call fcn.00403000
mov byte [esp + 0x18], 7
lea ecx, [edi + 0xc0]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0xc0]
push eax
call fcn.00403000
mov byte [esp + 0x18], 8
lea ecx, [edi + 0xd8]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0xd8]
push eax
call fcn.00403000
mov dword [esp + 0x18], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x49bdd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ea528
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call fcn.0049afe0
mov dword [esp + 0x30], 0
cmp dword [esp + 0x1c], 0
jne 0x49be1c
xor bl, bl
jmp 0x49be27
lea ecx, [esp + 0xc]
call fcn.00496100
mov bl, al
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x49be42
push dword [esp + 0xc]
call fcn.004c515a
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov al, bl
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004c515f
add esp, 0x2c
ret
Function at 0x49f4c0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4eab83
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
cmp dword [ecx + 0xc0], 0
je 0x49f630
lea edi, [ecx + 0xb0]
mov ecx, edi
call fcn.004994c0
push 4
call fcn.004c5c7f
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 0x38], 0
test esi, esi
je 0x49f534
mov dword [esi], 0
mov dword [esi], 0xffffffff
jmp 0x49f536
xor esi, esi
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x28], esi
mov dword [esp + 0x38], 1
test esi, esi
je 0x49f603
cmp dword [edi + 0x14], 8
jb 0x49f55a
mov edi, dword [edi]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x49f603
mov dword [esp + 0xc], 0
call fcn.0049f7d0
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x49f5ad
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea ecx, [esp + 0x1c]
push ecx
push eax
call edi
lea eax, [esp + 0x14]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x18], xmm0
call fcn.004c89e7
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x49f603
push 0
lea ecx, [esp + 0x10]
push ecx
push 8
lea ecx, [esp + 0x28]
push ecx
push eax
call edi
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x49f603
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x49f603
mov dword [esi], 0xffffffff
mov dword [esp + 0x38], 0xffffffff
test esi, esi
je 0x49f630
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x49f627
test eax, eax
je 0x49f627
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push esi
call fcn.004c515a
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004c515f
add esp, 0x30
ret

Function at 0x49f750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e6069
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 8], 0
xor eax, eax
mov esi, dword [esp + 0x1c]
add ecx, 0x30
push 0xffffffffffffffff
push eax
push ecx
mov dword [esi + 0x14], 7
mov ecx, esi
mov dword [esi + 0x10], 0
mov word [esi], ax
call fcn.00403000
mov dword [esp + 0x14], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x4a5550
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4eb71f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov dword [esp + 0x14], eax
mov dword [esi + 0x2c], 7
mov dword [esi + 0x28], eax
mov word [esi + 0x18], ax
mov byte [esp + 0x14], 1
mov dword [esi + 0x44], 7
mov dword [esi + 0x40], eax
mov word [esi + 0x30], ax
mov byte [esp + 0x14], 2
mov dword [esi + 0x5c], 7
mov dword [esi + 0x58], eax
mov word [esi + 0x48], ax
mov byte [esp + 0x14], 3
mov dword [esi + 0x74], 7
mov dword [esi + 0x70], eax
mov word [esi + 0x60], ax
mov byte [esp + 0x14], 4
mov dword [esi + 0x8c], 7
mov dword [esi + 0x88], eax
mov word [esi + 0x78], ax
mov byte [esp + 0x14], 5
push 0x35c
push eax
lea eax, [esi + 0x98]
push eax
call fcn.004cb9a0
add esp, 0xc
xor eax, eax
mov dword [esi + 0x90], eax
mov word [esi + 0x94], ax
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4a7a30
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4ebb32
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push esi
push edi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov dword [esp + 0x238], 0
xor eax, eax
mov esi, dword [esp + 0x240]
mov ebx, dword [esp + 0x244]
mov edi, dword [esp + 0x248]
mov dword [esp + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [esp + 0x14], esi
mov word [esi], ax
mov dword [esp + 0x238], eax
push 0x208
push eax
mov word [esp + 0x28], ax
lea eax, [esp + 0x2a]
push eax
mov dword [esp + 0x1c], 1
call fcn.004cb9a0
add esp, 0xc
mov dword [esp + 0x18], 0x208
cmp dword [edi + 0x14], 8
mov dword [esp + 0x1c], 1
jb 0x4a7ae8
mov edi, dword [edi]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a7b60
mov eax, dword [esp + 0x18]
cmp eax, 0x104
ja 0x4a7b27
add eax, eax
cmp eax, 0x20a
jae 0x4a7b22
xor ecx, ecx
mov word [esp + eax + 0x20], cx
jmp 0x4a7b31
call fcn.004c5b58
xor eax, eax
mov word [esp + 0x228], ax
cmp word [esp + 0x20], 0
jne 0x4a7b3d
xor ecx, ecx
jmp 0x4a7b53
lea ecx, [esp + 0x20]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a7b44
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.00403120
mov eax, esi
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.004c515f
add esp, 0x22c
ret 0xc
Function at 0x4a8bc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4eb523
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 edi, ecx
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push esi
mov word [edi], ax
call fcn.00403000
mov dword [esp + 0x18], 0
lea ecx, [edi + 0x18]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x18]
push eax
call fcn.00403000
mov byte [esp + 0x18], 1
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov ax, word [esi + 0x34]
mov word [edi + 0x34], ax
mov dword [esp + 0x18], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x4a8c70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ebcde
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 edi, ecx
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push esi
mov word [edi], ax
call fcn.00403000
mov dword [esp + 0x18], 0
lea ecx, [edi + 0x18]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x18]
push eax
call fcn.00403000
mov byte [esp + 0x18], 1
lea ecx, [edi + 0x30]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x30]
push eax
call fcn.00403000
mov dword [esp + 0x18], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x4c3040
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov eax, ecx
xorps xmm0, xmm0
push edi
lea edi, [eax + 8]
mov dword [esp + 0x10], eax
push 1
lea eax, [esp + 0x28]
movlpd qword [esp + 0x24], xmm0
push eax
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 0x20], esi
cmp esi, 0xffffffff
jne 0x4c30ae
call ebx
test eax, eax
je 0x4c30aa
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004c515f
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x4c30d2
call ebx
test eax, eax
jne 0x4c3091
mov eax, dword [esp + 0x1c]
xor ecx, ecx
add ecx, dword [esp + 0xc]
push 0
adc eax, 0
add ecx, dword [ebp + 8]
adc eax, dword [ebp + 0xc]
push eax
push ecx
mov ecx, edi
call fcn.00498a40
test eax, eax
sete bl
test bl, bl
je 0x4c3101
mov eax, dword [esp + 0x10]
mov byte [eax + 0x34], 1
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push dword [esp + 0x28]
mov ecx, edi
movlpd qword [esp + 0x18], xmm0
push esi
call fcn.00498430
test al, al
je 0x4c3127
test bl, bl
je 0x4c3127
mov cl, 1
jmp 0x4c3129
xor cl, cl
xor edx, edx
mov eax, 0x80004005
test cl, cl
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
cmovne eax, edx
pop ebx
xor ecx, esp
call fcn.004c515f
mov esp, ebp
pop ebp
ret 8

Function at 0x4c3870
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]
test esi, esi
jne 0x4c389c
lea eax, [esi + 1]
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004c515f
add esp, 8
ret 4
push edi
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push dword [ecx + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4c38c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4c38c8
xor cl, cl
jmp 0x4c38da
mov ecx, dword [esp + 8]
xor eax, eax
add eax, edi
mov dword [esi], eax
adc ecx, 0
mov dword [esi + 4], ecx
mov cl, 1
xor eax, eax
test cl, cl
mov ecx, dword [esp + 0xc]
pop edi
sete al
pop esi
xor ecx, esp
call fcn.004c515f
add esp, 8
ret 4