joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477a60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5b9f51
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push edi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], ebx
mov eax, dword [0x6dd118]
mov edx, dword [eax + 0xc]
mov ecx, 0x6dd118
call edx
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], 1
cmp eax, ebx
jbe 0x477b63
cmp eax, 1
jne 0x477b22
test esi, esi
jns 0x477b04
lea eax, [esp + 0x14]
push ebp
push eax
mov ecx, esi
call fcn.004777a0
add esp, 8
mov dword [esp + 0x20], 2
call fcn.0040843b
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x477b57
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00477980
add esp, 4
mov dword [esp + 0x20], 4
call fcn.0040843b
jmp 0x477b3f
lea ecx, [esp + 0x14]
push ebp
push ecx
mov ecx, esi
call fcn.004777a0
add esp, 8
mov dword [esp + 0x20], 6
call fcn.0040843b
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x477b63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x477b80
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5bd1c8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x14], 0
cmp ecx, 0x64
ja 0x477cb2
mov eax, dword [edx]
cmp eax, 0x4e20
jg 0x477cb2
inc eax
mov dword [edx], eax
mov eax, dword [ebp + 4]
test eax, eax
jns 0x477c03
push edx
mov edx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push edx
mov edx, dword [ebp]
push edx
push ecx
and eax, 0x7fffffff
push edi
add eax, edi
push eax
mov ecx, ebx
call fcn.00477cd0
jmp 0x477cb4
mov esi, dword [ebp]
push edi
push ecx
lea eax, [esp + 0x38]
push eax
call fcn.00477a60
add esp, 0xc
mov dword [esp + 0x20], 0
mov ebp, dword [ebp + 4]
add ebp, edi
je 0x477ca1
mov edi, dword [ebp]
call fcn.00477680
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x2c]
push 0x693338
push ecx
mov edi, eax
call fcn.00413787
mov byte [esp + 0x28], 1
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x40]
push ecx
mov esi, eax
call fcn.00413735
add esp, 0x10
mov byte [esp + 0x20], 2
mov edx, dword [esp + 0x3c]
mov ecx, dword [ebp + 4]
push edx
push ecx
push edi
push eax
call dword [esp + 0x48]
mov bl, al
mov byte [esp + 0x20], 1
lea ecx, [esp + 0x34]
call fcn.00408418
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x2c]
call fcn.00408418
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.00408418
mov al, bl
jmp 0x477cb4
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.00408418
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x18
Function at 0x479d10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x5ac569
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, dword [esp + 0x34]
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x38]
movzx ecx, cx
push eax
push ecx
push ebx
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x479dcb
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
cmp ebp, ebx
je 0x479dcb
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], 1
cmp edi, ebx
je 0x479dbc
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov byte [esp + 0x2c], 2
mov dword [esi], eax
mov dword [esi + 4], ecx
mov byte [esp + 0x2c], 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x2c], bl
cmp edi, ebx
je 0x479dcb
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x479df0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x5adc74
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x24], ebx
push 0xc
mov dword [esp + 0x18], ebx
call fcn.00579757
add esp, 4
mov dword [esp + 0x18], eax
mov ecx, 1
mov dword [esp + 0x24], ecx
cmp eax, ebx
je 0x479e46
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
jmp 0x479e48
xor eax, eax
mov byte [esp + 0x24], bl
mov edi, dword [esp + 0x2c]
mov dword [edi], eax
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
movzx ecx, word [esp + 0x30]
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x479ee7
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], 2
cmp ebp, ebx
je 0x479ed8
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
je 0x479ed4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
je 0x479ed4
push edi
lea edx, [esp + 0x34]
push edx
mov edi, eax
call fcn.00479f10
add esp, 8
mov byte [esp + 0x24], 3
mov ebx, dword [esp + 0x2c]
push eax
call fcn.0042dddd
mov byte [esp + 0x24], 2
lea ebx, [esp + 0x30]
call fcn.00426633
xor ebx, ebx
mov edi, dword [esp + 0x2c]
mov byte [esp + 0x24], bl
cmp ebp, ebx
je 0x479ee7
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x47ef70
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5b3898
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x6c56f8]
xor eax, esp
mov dword [esp + 0x810], eax
push ebx
push edi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x820]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x828], ebx
mov dword [esp + 0x14], ebx
mov eax, dword [0x6dd118]
mov edx, dword [eax + 0xc]
mov ecx, 0x6dd118
mov dword [esp + 0x18], esi
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x828], ebx
mov dword [esp + 0x14], 1
mov dword [esp + 0xc], ebx
mov dword [esp + 0x828], 2
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x47f001
push eax
call edi
mov dword [esp + 0xc], ebx
lea eax, [esp + 0xc]
push eax
push 0x20119
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47f07c
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push ebx
push str.ProgramFilesDir
push eax
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47f07c
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x47f07c
shr eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x1c], cx
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x47f060
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x20]
push edx
mov eax, esi
call fcn.0040b3ac
mov byte [esp + 0x828], bl
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x47f08e
push eax
call edi
mov eax, esi
mov ecx, dword [esp + 0x820]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x810]
xor ecx, esp
call fcn.005796dc
add esp, 0x820
ret
Function at 0x487570
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x5ac454
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebp
push esi
push edi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
xor esi, esi
mov dword [esp + 0x30], esi
push 0xc
mov dword [esp + 0x18], esi
call fcn.00579757
add esp, 4
mov dword [esp + 0x1c], eax
mov ecx, 1
mov dword [esp + 0x30], ecx
cmp eax, esi
je 0x4875c9
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
jmp 0x4875cb
xor eax, eax
mov byte [esp + 0x30], 0
mov dword [ebp], eax
mov dword [esp + 0x30], esi
mov esi, dword [ebx]
mov edi, dword [ebp]
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
cmp esi, dword [edi + 4]
je 0x487616
mov eax, dword [edi]
push esi
push eax
call fcn.0057c558
mov ecx, dword [edi + 4]
add esp, 8
mov dword [edi], eax
cmp esi, ecx
jbe 0x487613
mov edx, esi
sub edx, ecx
push edx
add ecx, eax
push 0
push ecx
call fcn.0057e5e0
add esp, 0xc
mov dword [edi + 4], esi
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x10], ecx
push 5
add edx, 0xfffffff3
mov dword [esp + 0x1c], edx
mov eax, dword [eax]
lea ecx, [ebx + 8]
push ecx
lea edx, [esp + 0x20]
push edx
add ecx, 5
push ecx
lea ecx, [esp + 0x20]
push ecx
push eax
call fcn.0057358a
mov esi, dword [ebp]
test eax, eax
jne 0x487696
mov edi, dword [esp + 0x10]
cmp edi, dword [esi + 4]
je 0x4876b2
mov eax, dword [esi]
push edi
push eax
call fcn.0057c558
mov ecx, dword [esi + 4]
add esp, 8
mov dword [esi], eax
cmp edi, ecx
jbe 0x48767e
mov edx, edi
sub edx, ecx
push edx
add ecx, eax
push 0
push ecx
call fcn.0057e5e0
add esp, 0xc
mov dword [esi + 4], edi
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret
cmp dword [esi + 4], 0
je 0x4876b2
mov eax, dword [esi]
push 0
push eax
call fcn.0057c558
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], 0
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret
Function at 0x488000
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5b36d4
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x18], esi
cmp dword [ebp], esi
jne 0x48803f
call fcn.004878b0
mov eax, dword [ebp + 4]
cmp eax, esi
jne 0x48804b
call fcn.004878b0
push eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x34], esi
call fcn.00569c83
add esp, 4
cmp eax, 6
jne 0x488138
jmp 0x488070
cmp dword [esp + 0x14], 0x3e8
jg 0x488138
cmp dword [esp + 0x30], 3
jg 0x488138
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 8
mov edi, eax
call fcn.00579757
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], 1
test esi, esi
je 0x4880c6
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x4880c8
xor esi, esi
mov byte [esp + 0x28], 0
mov eax, dword [ebp]
push esi
push 0x4876f0
push eax
call fcn.00553a95
add esp, 0xc
nop
push 1
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
cmp eax, 0xc0
je 0x4880e0
test eax, eax
je 0x4880fd
inc dword [esp + 0x30]
mov ecx, dword [ebp]
push 0
push 0
push ecx
call fcn.00553a95
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 4]
inc dword [esp + 0x14]
push edx
call fcn.005635d3
mov eax, dword [ebp + 4]
push eax
call fcn.00569c83
add esp, 8
xor esi, esi
cmp eax, 6
je 0x488070
cmp eax, 0x65
jne 0x488180
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
push eax
mov dword [ebx], ecx
mov dword [ebx + 4], eax
mov byte [ebx + 8], 1
call fcn.0053df32
add esp, 4
mov dword [ebx + 0xc], eax
mov byte [ebx + 0x10], 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x18], 1
mov eax, ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
cmp eax, 0x64
mov eax, dword [ebp + 4]
push eax
jne 0x4881a6
mov edx, dword [ebp]
mov dword [ebx], edx
mov dword [ebx + 4], eax
mov byte [ebx + 8], 0
call fcn.0053df32
add esp, 4
mov dword [ebx + 0xc], eax
mov byte [ebx + 0x10], 0
jmp 0x48815c
call fcn.005635d3
mov ecx, dword [ebp]
push ecx
mov esi, eax
call fcn.0054c236
add esp, 8
push 0x69bc24
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x38], esi
call fcn.0057e372
int3
Function at 0x488590
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5b36d4
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [ebp], eax
jne 0x4885cb
call fcn.004878b0
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
push eax
mov ebx, ebp
call fcn.004888f0
mov ebx, eax
push ebx
call fcn.00569c83
add esp, 4
cmp eax, 6
jne 0x4886c6
cmp dword [esp + 0x14], 0x3e8
jg 0x4886c6
cmp dword [esp + 0x30], 3
jg 0x4886c6
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 8
mov edi, eax
call fcn.00579757
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], 1
test esi, esi
je 0x48864c
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x48864e
xor esi, esi
mov byte [esp + 0x28], 0
mov ecx, dword [ebp]
push esi
push 0x4876f0
push ecx
call fcn.00553a95
add esp, 0xc
push 1
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
cmp eax, 0xc0
je 0x488665
test eax, eax
je 0x488682
inc dword [esp + 0x30]
mov edx, dword [ebp]
push 0
push 0
push edx
call fcn.00553a95
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [esp + 0x14]
push ebx
call fcn.0056357c
mov eax, dword [esp + 0x3c]
add esp, 4
push eax
mov ebx, ebp
call fcn.004888f0
mov ebx, eax
push ebx
call fcn.00569c83
add esp, 4
cmp eax, 6
je 0x4885f3
push ebx
cmp eax, 0x65
jne 0x488713
mov ecx, dword [ebp]
mov esi, dword [esp + 0x38]
mov dword [esi], ecx
mov dword [esi + 4], ebx
mov byte [esi + 8], 1
call fcn.0053df32
add esp, 4
mov dword [esi + 0xc], eax
mov byte [esi + 0x10], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 1
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
cmp eax, 0x64
jne 0x488749
mov edx, dword [ebp]
mov esi, dword [esp + 0x38]
mov dword [esi], edx
mov dword [esi + 4], ebx
mov byte [esi + 8], 0
call fcn.0053df32
mov dword [esi + 0xc], eax
mov eax, 1
add esp, 4
mov byte [esi + 0x10], al
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], eax
jmp 0x4886fb
call fcn.0056357c
mov esi, eax
mov eax, dword [ebp]
push eax
call fcn.0054c236
add esp, 8
push 0x69bc24
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x40], esi
call fcn.0057e372
int3
Function at 0x48c800
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5c2f3a
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x14], 0
mov eax, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push edx
push ecx
push eax
push esi
call fcn.0048c880
add esp, 0x18
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 1
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x495850
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b93b9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x10], 0
mov eax, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push edx
push ecx
push eax
mov eax, dword [esp + 0x30]
push esi
push eax
call fcn.004958d0
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 0x14

Function at 0x498dd0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5b316d
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x6c56f8]
xor eax, esp
mov dword [esp + 0x810], eax
push edi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x81c]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x824], edi
mov dword [esp + 0x10], edi
mov eax, dword [0x6dd118]
mov edx, dword [eax + 0xc]
mov ecx, 0x6dd118
mov dword [esp + 0x14], esi
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x824], edi
lea eax, [esp + 8]
push eax
push 0x20119
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 1
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x498ec7
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
push edi
push str.ProgramFilesDir
push eax
mov dword [esp + 0x24], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x498ebc
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x498ebc
shr eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x18], cx
lea eax, [esp + 0x18]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x498ea0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x1c]
push edx
mov eax, esi
call fcn.0040b3ac
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x81c]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x810]
xor ecx, esp
call fcn.005796dc
add esp, 0x820
ret
Function at 0x499ff0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5b0a1c
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
push esi
call fcn.0048d550
xor edi, edi
mov dword [esp + 0x1c], edi
lea eax, [esi + 0x18]
push eax
call fcn.0048d550
mov byte [esp + 0x1c], 1
lea eax, [esi + 0x50]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esp + 0xc], eax
mov dword [eax], 0xffffffff
mov byte [esp + 0x1c], 2
mov dword [eax + 4], edi
mov byte [esp + 0x1c], 3
add eax, 8
mov dword [esp + 0x10], eax
mov dword [eax], edi
mov dword [esp + 0x1c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 4
Function at 0x49a4a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5c46fa
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
push esi
mov dword [esp + 0x24], 0
call fcn.0048b440
add esp, 0x1c
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
Function at 0x49a830
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b91b2
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x24]
xor ebx, ebx
push ecx
mov byte [esp + 0x1b], bl
call fcn.004b6790
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x49a958
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp dword [esp + 0x18], ebx
ja 0x49a8a8
cmp edi, 0x10
jbe 0x49a958
mov eax, dword [esp + 0x28]
push 4
push str.MSDB
push eax
call fcn.0057eb54
add esp, 0xc
test eax, eax
jne 0x49a958
mov ebx, dword [esp + 0x28]
add edi, 0xfffffffc
lea ecx, [esp + 0x14]
push edi
add ebx, 4
push ecx
call fcn.00487570
add esp, 8
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x14]
cmp dword [eax], 0
je 0x49a92a
cmp dword [eax + 4], 0
je 0x49a92a
lea ebx, [esi + 8]
mov edi, ebx
call fcn.0049a3e0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov edi, dword [esi]
push 1
push 0
push ecx
push eax
call fcn.00473390
add esp, 0x10
test al, al
je 0x49a92a
mov esi, dword [esi]
push esi
mov eax, ebx
call fcn.0049a090
test al, al
je 0x49a92a
mov byte [esp + 0x13], 1
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x14]
dec dword [eax + 8]
mov esi, eax
add eax, 8
cmp dword [eax], 0
jne 0x49a958
xor edi, edi
call fcn.00428d6c
mov edx, dword [esp + 0x14]
push edx
call fcn.005796d1
add esp, 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x38], 0xffffffff
lea eax, [esp + 0x20]
push eax
call fcn.004b6910
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x49ce90
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x4a0450
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
mov edi, eax
mov ebx, ecx
test edi, edi
jbe 0x4a0495
push ebp
jmp 0x4a0460
mov edx, dword [esi + 4]
movzx ebp, byte [ebx]
mov ecx, dword [esi]
mov eax, edx
shr eax, 0x18
shld edx, ecx, 8
xor eax, ebp
and eax, 0xff
xor edx, dword [eax*8 + 0x677f4c]
shl ecx, 8
xor ecx, dword [eax*8 + 0x677f48]
dec edi
inc ebx
mov dword [esi], ecx
mov dword [esi + 4], edx
test edi, edi
ja 0x4a0460
pop ebp
pop edi
pop ebx
ret