joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401760
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
lea eax, [ebp - 0x28]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
cmp eax, 0x182
je 0x4017a3
cmp eax, 0x1e6
je 0x4017a3
push eax
push ebx
push ecx
push edx
mov eax, 1
cpuid
mov dword [ebp - 4], edx
pop edx
pop ecx
pop ebx
pop eax
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4026c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, 0x17
mov ecx, 0x16
mov dword [esp + 0x78], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x94]
push edi
mov ebp, 0x18
mov edi, 0x1a
mov edx, 0x15
mov dword [esp + 0x88], ecx
mov eax, 0x14
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x24], ecx
push ebx
mov ecx, esi
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], 0x19
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], edx
mov dword [esp + 0x90], eax
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], 0x19
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edx
mov dword [esp + 0x74], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], 0x19
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], 0x19
mov dword [esp + 0x3c], edi
call fcn.004029b0
sub eax, 2
je 0x4027b5
dec eax
je 0x4027ab
dec eax
je 0x4027a5
lea eax, [esp + 0x98]
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], eax
jmp 0x4027d8
lea ecx, [esp + 0x20]
jmp 0x4027cc
lea edx, [esp + 0x3c]
mov dword [esp + 0x14], edx
jmp 0x4027d0
cmp ebx, ebp
je 0x4027c8
cmp ebx, 0x19
je 0x4027c8
lea eax, [esp + 0x58]
mov dword [esp + 0x14], eax
jmp 0x4027d0
lea ecx, [esp + 0x74]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 7
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], 0
test eax, eax
jle 0x40285b
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x94]
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x19]
mov edi, dword [ecx]
mov ecx, dword [esi + 0x1d]
mov edx, dword [eax]
push edi
push 1
push 1
push ebx
push ecx
push ebp
push eax
call dword [edx + 0x28]
test eax, eax
jne 0x40283f
mov ecx, dword [esp + 0x9c]
mov eax, dword [esi + 0x19]
push ecx
mov ecx, dword [esi + 0x1d]
mov edx, dword [eax]
push edi
push ebx
push ecx
push ebp
push eax
call dword [edx + 0x24]
test eax, eax
jne 0x40283f
push edi
push ebx
push ebp
mov ecx, esi
call fcn.00402890
test eax, eax
jne 0x40286a
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
jl 0x4027f7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x80
ret 0xc
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov eax, dword [edx + eax*4]
pop ebp
pop ebx
add esp, 0x80
ret 0xc
Function at 0x4030b0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x10]
mov al, byte [esi + 0x10d]
test al, al
je 0x4030d6
cmp edi, 0xffff
jbe 0x4030ce
push 0
jmp 0x4030cf
push edi
mov ecx, esi
call fcn.004036a0
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 0x105]
lea eax, [esp + 0x10]
push 0
push eax
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
ret 8

Function at 0x403100
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.00403790
mov al, byte [ebx + 0x10d]
mov ebp, dword [esp + 0x80]
test al, al
mov esi, ebp
mov edi, ebp
je 0x40313b
mov ecx, ebx
call fcn.004036d0
mov di, ax
and edi, 0xffff
je 0x40313b
cmp ebp, edi
jb 0x40313b
mov esi, edi
mov ecx, dword [esp + 0x7c]
mov edx, dword [ebx + 0x105]
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, eax
cmp esi, edi
mov dword [esp + 0x80], edx
jae 0x403175
sub edi, esi
push 1
push edi
mov ecx, ebx
call fcn.00403760
mov edx, dword [esp + 0x80]
cmp esi, ebp
jae 0x403193
mov edi, dword [esp + 0x7c]
mov ecx, ebp
sub ecx, esi
add edi, esi
mov esi, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
test edx, edx
jne 0x4031c5
mov eax, dword [ebx + 0x109]
test eax, eax
je 0x4031c5
push ebx
lea eax, [esp + 0x18]
push str.Error_reading_file__s__Retry__
push eax
call fcn.0040698a
mov eax, dword [esp + 0x8c]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 8
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
add esp, 0x68
ret 8

Function at 0x4036a0
Capabilities:
Write file on windows

Disassembly:
push ecx
lea eax, [esp]
push 0
push eax
mov eax, dword [ecx + 0x105]
lea edx, [esp + 0x10]
push 2
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
neg eax
pop ecx
ret 4

Function at 0x4036d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea edx, [esp]
push 0
push eax
mov eax, dword [ecx + 0x105]
push 2
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp]
neg eax
sbb eax, eax
and eax, ecx
add esp, 8
ret

Function at 0x403730
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea edx, [esp]
push 0
push eax
mov eax, dword [ecx + 0x105]
push 4
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp]
neg eax
sbb eax, eax
and eax, ecx
add esp, 8
ret
Function at 0x404810
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40c68b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x320
push ebx
mov ebx, dword [esp + 0x334]
push esi
push edi
test ebx, ebx
mov dword [esp + 0x14], ecx
jne 0x404842
mov ebx, str.OPTION.DAT
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 0x100
push eax
push 0x20019
push 0
push str.SoftwareEnlight_SoftwareMarine_Park_Empire
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x12c]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push str.Path
push ecx
call esi
lea edx, [esp + 0x10]
lea eax, [esp + 0x22c]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.Version
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x40f864
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x12c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x121], 0xffffffff
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x12c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x334], eax
push eax
lea eax, [esp + 0x130]
push 1
push eax
lea ecx, [esp + 0x28]
call fcn.00402e60
test eax, eax
jne 0x404956
lea ecx, [esp + 0x1c]
mov dword [esp + 0x334], 0xffffffff
call fcn.004030a0
xor eax, eax
jmp 0x404985
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004049a0
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00403070
lea ecx, [esp + 0x1c]
mov dword [esp + 0x334], 0xffffffff
call fcn.004030a0
mov eax, esi
mov ecx, dword [esp + 0x32c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x32c
ret 4
Function at 0x4049b0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40c6ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x460
push ebx
mov ebx, dword [esp + 0x474]
push esi
push edi
test ebx, ebx
mov dword [esp + 0x14], ecx
jne 0x4049e2
mov ebx, str.OPTION.DAT
mov dword [esp + 0x121], 0xffffffff
lea eax, [esp + 0xc]
mov dword [esp + 0x474], 0
push eax
push 0x20019
push 0
push str.SoftwareEnlight_SoftwareMarine_Park_Empire
push SysStringLen
mov dword [esp + 0x24], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x12c]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push str.Path
push ecx
call esi
lea edx, [esp + 0x10]
lea eax, [esp + 0x22c]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.Version
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x40f864
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x12c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x12c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x32c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor edx, edx
cmp eax, 0xffffffff
setne dl
cmp eax, 0xffffffff
mov esi, edx
je 0x404af6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
je 0x404b54
push 0
lea eax, [esp + 0x130]
push 1
push eax
lea ecx, [esp + 0x28]
call fcn.00402d50
test eax, eax
je 0x404b54
lea ecx, [esp + 0x1c]
xor esi, esi
call fcn.004037b0
cmp eax, 0x13
jne 0x404b33
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00404b90
mov esi, eax
lea ecx, [esp + 0x1c]
call fcn.00403070
lea ecx, [esp + 0x1c]
mov dword [esp + 0x474], 0xffffffff
call fcn.004030a0
mov eax, esi
jmp 0x404b6a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x474], 0xffffffff
call fcn.004030a0
xor eax, eax
mov ecx, dword [esp + 0x46c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x46c
ret 4
Function at 0x405990
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, 0x17
mov ecx, 0x16
mov dword [esp + 0x78], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x94]
push edi
mov ebp, 0x18
mov edi, 0x1a
mov edx, 0x15
mov dword [esp + 0x88], ecx
mov eax, 0x14
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x24], ecx
push ebx
mov ecx, esi
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], 0x19
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], edx
mov dword [esp + 0x90], eax
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], 0x19
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edx
mov dword [esp + 0x74], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], 0x19
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], 0x19
mov dword [esp + 0x3c], edi
call fcn.00405c80
sub eax, 2
je 0x405a85
dec eax
je 0x405a7b
dec eax
je 0x405a75
lea eax, [esp + 0x98]
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], eax
jmp 0x405aa8
lea ecx, [esp + 0x20]
jmp 0x405a9c
lea edx, [esp + 0x3c]
mov dword [esp + 0x14], edx
jmp 0x405aa0
cmp ebx, ebp
je 0x405a98
cmp ebx, 0x19
je 0x405a98
lea eax, [esp + 0x58]
mov dword [esp + 0x14], eax
jmp 0x405aa0
lea ecx, [esp + 0x74]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 7
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], 0
test eax, eax
jle 0x405b2b
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x94]
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x19]
mov edi, dword [ecx]
mov ecx, dword [esi + 0x1d]
mov edx, dword [eax]
push edi
push 1
push 1
push ebx
push ecx
push ebp
push eax
call dword [edx + 0x28]
test eax, eax
jne 0x405b0f
mov ecx, dword [esp + 0x9c]
mov eax, dword [esi + 0x19]
push ecx
mov ecx, dword [esi + 0x1d]
mov edx, dword [eax]
push edi
push ebx
push ecx
push ebp
push eax
call dword [edx + 0x24]
test eax, eax
jne 0x405b0f
push edi
push ebx
push ebp
mov ecx, esi
call fcn.00405b60
test eax, eax
jne 0x405b3a
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
jl 0x405ac7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x80
ret 0xc
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov eax, dword [edx + eax*4]
pop ebp
pop ebx
add esp, 0x80
ret 0xc
Function at 0x408cf8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40f9b8
cmp edx, dword [eax]
je 0x408d1a
add eax, 8
inc ecx
cmp eax, 0x40fa48
jl 0x408d0b
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40f9b8]
jne 0x408e48
mov eax, dword [0x410320]
cmp eax, 1
je 0x408e22
test eax, eax
jne 0x408d4b
cmp dword [0x40f904], 1
je 0x408e22
cmp edx, 0xfc
je 0x408e48
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408d82
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040a9a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409340
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x408dc5
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409340
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d6a0
push edi
call fcn.0040ae50
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040a9a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040a9b0
lea eax, [ebp - 0xa0]
push 0x40d680
push eax
call fcn.0040a9b0
push dword [esi + 0x40f9bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040a9b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040adc5
add esp, 0x2c
pop edi
jmp 0x408e48
lea eax, [ebp + 8]
lea esi, [esi + 0x40f9bc]
push 0
push eax
push dword [esi]
call fcn.00409340
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40c02d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040b204
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40c04e
test byte [esp + 8], 2
je 0x40c04e
mov dword [0x410334], 0xd
mov dword [0x410338], 5
jmp 0x40c029
xor eax, eax
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0xd513bd5
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x1c7a0934
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4027a0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov eax, 0x201c
call fcn.00414cb0
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
xor ebx, ebx
push edi
push ebx
push 1
push ebx
lea eax, [esp + 0x1c]
push ebx
push eax
call esi
test eax, eax
jne 0x4027d2
push 8
push 1
push ebx
lea ecx, [esp + 0x1c]
push ebx
push ecx
call esi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
push ebx
push ebx
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov ecx, dword [esp + 0x2038]
mov edx, dword [esp + 0xc]
push ebx
push 0x80
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push 0x800000
push ecx
push 0x6801
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2034]
mov dword [esp + 0xc], ebx
cmp eax, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], 0x2000
jle 0x4028e7
mov edx, dword [esp + 0x202c]
push ebp
mov ebp, dword [esp + 0x2034]
sub edx, ebp
mov dword [esp + 0x1c], edx
jmp 0x402878
mov edx, dword [esp + 0x1c]
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x2038]
lea eax, [ecx - 1]
cmp ebx, eax
jne 0x40289b
mov dword [esp + 0x18], 1
mov ecx, 0x800
lea esi, [edx + ebp]
lea edi, [esp + 0x28]
lea edx, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x28]
push edx
mov edx, dword [esp + 0x24]
push eax
push 0
push ecx
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov eax, dword [esp + 0x2038]
mov edi, ebp
inc ebx
mov ecx, 0x800
lea esi, [esp + 0x28]
add ebp, 0x2000
cmp ebx, eax
rep movsd dword es:[edi], dword [esi]
jl 0x402874
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x201c
ret

Function at 0x402dc0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402e34
lea ecx, [esp + 4]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push 0
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 8]
push 0x10
push ecx
push 0
push edx
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
add esp, 0x1c
ret
xor eax, eax
add esp, 0x1c
ret
Function at 0x4030d0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x43104b
push eax
mov eax, 0x122c
mov dword fs:[0], esp
call fcn.00414cb0
mov eax, dword [0x43d3d4]
mov cl, byte [esp + 0x123c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], eax
push 0xc
mov byte [esp + 0x18], cl
call fcn.00429814
push 0xa
mov ebp, eax
call fcn.00429814
add esp, 8
mov ebx, eax
lea edx, [esp + 0x20]
lea eax, [esp + 0x24]
push 0xa
push ebx
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
push 0xc
lea edx, [esp + 0x2c]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x23d]
mov byte [esp + 0x23c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0xac]
xor esi, esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0xa8]
mov dword [esp + 0x18], esi
push eax
mov dword [esp + 0xac], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0xb8], 2
jne 0x4031c8
lea ecx, [esp + 0x18]
push 0x400
lea edx, [esp + 0x240]
push ecx
push edx
call fcn.00402010
add esp, 0xc
test eax, eax
jne 0x4031c8
lea eax, [esp + 0x18]
push 0x400
lea ecx, [esp + 0x240]
push eax
push ecx
call fcn.00401df0
add esp, 0xc
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x28]
push edx
stosb byte es:[edi], al
call fcn.00402e40
mov eax, dword [0x43e9dc]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x240]
lea edx, [esp + 0x2c]
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
push str._lx__s_s
push ecx
mov dword [esp + 0x125c], esi
call fcn.0042445b
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x155]
mov byte [esp + 0x154], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x28]
add esp, 0x18
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [esi - 8]
cmp ecx, 0x40
jle 0x403247
mov ecx, 0x40
mov edx, ecx
lea edi, [esp + 0x13c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x13c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x4429cc
call fcn.0042951d
push ebp
call fcn.0042983d
push ebx
call fcn.0042983d
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x1244], 0xffffffff
call fcn.00429394
mov ecx, dword [esp + 0x123c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1238
ret
Function at 0x403610
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0xd4
cmp eax, 0xff
push esi
push edi
jae 0x40362e
pop edi
xor eax, eax
pop esi
add esp, 0xd4
ret
mov ecx, dword [esp + 0xe0]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
test eax, eax
jge 0x403650
pop edi
xor eax, eax
pop esi
add esp, 0xd4
ret
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jge 0x40366f
pop edi
xor eax, eax
pop esi
add esp, 0xd4
ret
mov edx, dword [esp + 0xc]
push 0
push 0
lea ecx, [esp + 0x28]
push 0x3c
push ecx
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x60]
push str.CLSID_sLocalServer32
push edx
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea eax, [esp + 8]
lea ecx, [esp + 0x5c]
push eax
push 0xf003f
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
je 0x40370d
lea edx, [esp + 0x20]
lea eax, [esp + 0x5c]
push edx
push str.CLSID_sLocalServer
push eax
call esi
add esp, 0xc
lea ecx, [esp + 8]
lea edx, [esp + 0x5c]
push ecx
push 0xf003f
push 0
push edx
push SysReAllocString
call edi
test eax, eax
je 0x40370d
pop edi
xor eax, eax
pop esi
add esp, 0xd4
ret
mov esi, dword [esp + 0xe4]
mov ecx, dword [esp + 8]
lea eax, [esp + 0xe8]
push eax
push esi
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
mov edi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x40374a
pop edi
xor eax, eax
pop esi
add esp, 0xd4
ret
push 0x2f
push esi
call fcn.00414fa0
add esp, 8
test eax, eax
je 0x40375c
mov byte [eax], 0
pop edi
mov eax, 1
pop esi
add esp, 0xd4
ret