joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ec20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6b38
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x529748]
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 dword [ebp - 0x14], edx
mov edi, ecx
mov dword [ebp - 0x30], edi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov eax, dword [ebx]
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, eax
call fcn.0048eb00
neg eax
lea ecx, [ebp - 0x20]
sbb eax, eax
and eax, 0xffffff00
add eax, 0x20219
push eax
push dword [ebp - 0x14]
push dword [edi]
call fcn.0049c070
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x48ed3d
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp - 0x28]
push 0
push esi
mov esi, dword [ebp - 0x20]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48ed25
push dword [ebp - 0x24]
mov ecx, ebx
call fcn.00415880
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
sub eax, ecx
jne 0x48ecfc
push str.invalid_vector_T__subscript
call fcn.004bc548
lea eax, [ebp - 0x24]
push eax
push ecx
push dword [ebp - 0x28]
push 0
push dword [ebp - 0x2c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48ed25
test esi, esi
je 0x48ede4
push esi
call edi
xor esi, esi
xor edi, edi
jmp 0x48ed5b
test esi, esi
je 0x48ed33
push esi
call edi
mov dword [ebp - 0x20], 0
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x20]
push 0x20219
push dword [ebp - 0x14]
push dword [eax]
call fcn.0049c070
mov edi, eax
test edi, edi
je 0x48ed86
mov esi, dword [ebp - 0x20]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x48ed68
push esi
call ebx
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.004bd963
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x28]
push 0
push esi
mov esi, dword [ebp - 0x20]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x48edeb
push dword [ebp - 0x14]
mov ecx, ebx
call fcn.00415880
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
sub eax, ecx
jne 0x48edbf
push str.invalid_vector_T__subscript
call fcn.004bc548
lea eax, [ebp - 0x14]
push eax
push ecx
push dword [ebp - 0x28]
push 0
push dword [ebp - 0x2c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x48edeb
lea ecx, [ebp - 0x20]
call fcn.0049c040
mov esi, dword [ebp - 0x20]
xor edi, edi
jmp 0x48ed5b
test esi, esi
je 0x48ed5b
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call ebx
xor esi, esi
jmp 0x48ed61
Function at 0x48efe0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6bd0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x529748]
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 eax, edx
mov dword [ebp - 0x20], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov ebx, dword [ebp + 0x1c]
mov byte [ebp - 4], 1
test bl, bl
je 0x48f073
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, eax
call fcn.0048eb00
neg eax
sbb esi, esi
mov eax, dword [ebp - 0x20]
and esi, 0xffffff00
add esi, 0x20206
jmp 0x48f078
mov esi, 0x20206
push esi
push eax
push dword [edi]
lea ecx, [ebp - 0x1c]
call fcn.0049c070
mov edi, eax
test edi, edi
je 0x48f0a5
cmp byte [ebp + 0x20], 0
je 0x48f0a1
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
push ebx
call fcn.0048ef00
add esp, 4
mov edi, eax
test edi, edi
jne 0x48f0df
test bl, bl
je 0x48f0c2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, eax
call fcn.0048eb00
test eax, eax
je 0x48f0c2
or esi, 0x100
jmp 0x48f0c8
or esi, 0x200
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
push esi
push dword [ebp - 0x20]
push dword [eax]
call fcn.0049c070
mov edi, eax
test edi, edi
je 0x48f0e9
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x48f11e
push eax
jmp 0x48f118
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
sub eax, ecx
jne 0x48f0fd
push str.invalid_vector_T__subscript
call fcn.004bc548
mov esi, dword [ebp - 0x1c]
push eax
push ecx
push dword [ebp + 0x18]
push 0
push dword [ebp - 0x28]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test esi, esi
je 0x48f11e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x48f12e
push eax
call fcn.004191e0
add esp, 4
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.004bd963
mov esp, ebp
pop ebp
ret
Function at 0x48ff70
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x529748]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0xf0000040
push 0x18
push 0
push 0
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x48fffe
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x48fffe
push 0
push dword [ebp + 0xc]
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x48fffe
lea eax, [esi + 4]
push eax
push 1
push dword [ebp - 8]
push 0x6602
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x48fffe
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bd963
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 8]
test eax, eax
je 0x49000c
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004bd963
mov esp, ebp
pop ebp
ret 8
Function at 0x4901f0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6e4b
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x529748]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0xa0]
push 0xfde9
push dword [ebp + 8]
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xa4], eax
call fcn.004162e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
push dword [ebp - 0xa4]
call fcn.00416150
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa0]
mov eax, dword [ebp - 0xa4]
cmp eax, ecx
je 0x490285
push eax
call fcn.004be015
add esp, 4
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [eax - 0xc]
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 1
push 0
push dword [edi + 4]
call esi
test eax, eax
jne 0x4902b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x49030d
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
push eax
mov dword [ecx], eax
call fcn.004bc57c
mov ecx, dword [ebp - 0x20]
mov dword [ebx], eax
push dword [ecx]
push 0
push eax
call fcn.004c1b90
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
push dword [ebx]
call fcn.004be141
add esp, 0x20
lea eax, [ebp - 0x1c]
push dword [ebp - 0x18]
push eax
push dword [ebx]
push 0
push 1
push 0
push dword [edi + 4]
call esi
test eax, eax
jne 0x49030b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x49030d
xor esi, esi
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x490330
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp + 8]
add ebx, 0xfffffff0
lea eax, [ebx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x490351
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
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.004bd963
mov esp, ebp
pop ebp
ret 0xc
Function at 0x490380
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6e8b
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x529748]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [edi + 1]
mov dword [ebp - 0x14], edi
push eax
call fcn.004bc57c
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push 0
push eax
call fcn.004c1b90
push edi
push esi
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
push esi
call fcn.004be141
add esp, 0x20
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x14]
push eax
push esi
push 0
push 1
push 0
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x49041e
push esi
call fcn.004be903
mov ecx, dword [ebp - 0x18]
add esp, 4
call fcn.004155a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x49049d
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x120]
push 0xfde9
push esi
mov byte [esi + eax], 0
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], eax
call fcn.0049b520
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x120]
test edx, edx
jne 0x490457
xor ecx, ecx
jmp 0x49046f
mov ecx, edx
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x490460
sub ecx, edi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x18]
push edx
call fcn.0048ded0
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
cmp eax, ecx
je 0x490492
push eax
call fcn.004be015
add esp, 4
push esi
call fcn.004be903
add esp, 4
xor eax, eax
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.004bd963
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4909e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6f84
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x529748]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x224], 0x530714
mov dword [0x530714], 0
mov dword [0x530718], 0
mov dword [ebp - 4], 0
mov dword [0x530720], 0
mov dword [0x530724], 0
call fcn.00415c00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x490a62
push 0x80004005
call fcn.004162a0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [0x530728], eax
mov byte [ebp - 4], 1
call fcn.00415c00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x490a91
push 0x80004005
call fcn.004162a0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 2
call fcn.00415c00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x490ac1
push 0x80004005
call fcn.004162a0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea edx, [ebp - 0x220]
mov byte [ebp - 4], 3
mov ecx, 0x67
call fcn.0049b340
lea edx, [ebp - 0x21c]
mov ecx, 0x65
call fcn.0049b340
mov edi, dword [ebp - 0x220]
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x53071c], eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x490b58
mov ecx, 0x530728
call fcn.004155a0
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x490b37
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, 0x530728
call fcn.0049c940
mov esi, dword [ebp - 0x21c]
mov ecx, 0x530728
push esi
call fcn.0049b5e0
mov ecx, 0x530728
call fcn.0049afc0
mov edx, str.MyQiMg
lea ecx, [ebp - 0x230]
call fcn.0049c660
mov byte [ebp - 4], 4
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 1
jne 0x490b9c
push str.invalid_vector_T__subscript
call fcn.004bc548
push ecx
mov ecx, 0x530728
call fcn.0049b5e0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x490bbe
push eax
call fcn.004191e0
add esp, 4
push 0
push 0
push 1
push 0
push 0
push 0
push dword [0x530728]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 2
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x490bfd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x490c18
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 0x530714
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.004bd963
mov esp, ebp
pop ebp
ret
Function at 0x493010
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp eax, 4
jne 0x49301e
mov eax, dword [ecx + 8]
dec eax
je 0x493050
dec eax
je 0x493039
push dword [ecx + 4]
lea eax, [ecx + 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
pop ebp
ret 4
mov eax, dword [ecx + 0x24]
add eax, 0x20
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
pop ebp
ret 4
mov eax, dword [ecx + 0x24]
add eax, 0x1c
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
pop ebp
ret 4
Function at 0x495f10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f7a10
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x529748]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + esi + 0xc]
add ecx, esi
and eax, 0xfffffffe
cmp dword [ecx + 0x38], 0
jne 0x495f53
or eax, 4
push 0
push eax
call fcn.00414c80
mov eax, dword [esi]
mov dword [esp + 0xc], esi
mov eax, dword [eax + 4]
mov ecx, dword [eax + esi + 0x38]
test ecx, ecx
je 0x495f71
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.00413440
mov byte [esp + 0x10], al
mov dword [esp + 0x38], 1
mov eax, dword [esi]
mov eax, dword [eax + 4]
test byte [eax + esi + 0xc], 6
jne 0x495ff0
mov ecx, dword [eax + esi + 0x38]
lea edx, [esp + 0x14]
push 1
push 0
push dword [ebp + 0xc]
mov eax, dword [ecx]
push dword [ebp + 8]
push edx
call dword [eax + 0x28]
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
adc ecx, dword [esp + 0x20]
cmp eax, dword [0x4ff958]
jne 0x495ff0
cmp ecx, dword [0x4ff95c]
jne 0x495ff0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + esi + 0xc]
add ecx, esi
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x495fe8
or eax, 4
push 0
push eax
call fcn.00414c80
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov ecx, dword [eax + esi + 0x38]
test ecx, ecx
je 0x49600a
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x496720
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7b17
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x529748]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x5131f4
mov dword [edi + 0x70], 0x507d2c
mov dword [ebp - 4], 0
lea esi, [edi + 0x10]
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], 0x513254
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
push esi
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00414540
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], 0x5131f0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00411220
lea eax, [esi + 4]
mov dword [esi], 0x5131b4
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov byte [esi + 0x4c], 0
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov byte [esi + 0x45], 0
mov dword [esi + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x530710]
mov dword [esi + 0x48], eax
mov eax, edi
mov dword [esi + 0x50], 0
mov dword [esi + 0x40], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4972c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7bc7
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x529748]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x5131ac
mov dword [edi + 0x60], 0x507d2c
mov dword [ebp - 4], 0
lea esi, [edi + 4]
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], 0x507c6c
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
push esi
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00414540
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], 0x5131a8
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00411220
lea eax, [esi + 4]
mov dword [esi], 0x5131b4
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov byte [esi + 0x4c], 0
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov byte [esi + 0x45], 0
mov dword [esi + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x530710]
mov dword [esi + 0x48], eax
mov eax, edi
mov dword [esi + 0x50], 0
mov dword [esi + 0x40], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x497ca0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f7c28
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x529748]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x529748]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x497df4
cmp byte [ebx + 0x45], 0
je 0x497df4
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x497d00
xor al, al
jmp 0x497df6
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x497d40
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovae esi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x497d81
dec eax
je 0x497d85
sub eax, 2
je 0x497ddb
xor bl, bl
jmp 0x497ddd
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x497dbc
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004c021d
add esp, 0x10
cmp esi, eax
jne 0x497d7d
cmp byte [ebx + 0x45], 0
je 0x497ddb
test esi, esi
jne 0x497d40
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00414ea0
jmp 0x497d40
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x497df0
push dword [esp + 0x18]
call fcn.004191e0
add esp, 4
mov al, bl
jmp 0x497df6
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004bd963
mov esp, ebp
pop ebp
ret
Function at 0x4995c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x529748]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], edx
push edi
test ecx, ecx
push 0x20
setne al
inc eax
push eax
push edi
push edi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x499609
call fcn.0049bdb0
mov esi, eax
test esi, esi
jne 0x49963d
jmp 0x49960b
mov edi, eax
push 0
test ebx, ebx
lea eax, [ebp - 8]
cmovne eax, ebx
push eax
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x499630
call fcn.0049bdb0
mov esi, eax
jmp 0x499632
xor esi, esi
test edi, edi
je 0x49963d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49965a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bd963
mov esp, ebp
pop ebp
ret