joyce8/EMBER2024-capa huggingface dataset:
Function at 0x637c94
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 9], cl
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x637e32
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
test eax, eax
je 0x637cc5
sub eax, 4
mov eax, dword [eax]
dec eax
jge 0x637cd1
mov byte [ebp - 0xa], 1
jmp 0x637e14
mov byte [ebp - 0xa], 0
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
mov eax, ebx
call fcn.004082fc
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x637e14
mov eax, ebx
call fcn.00637724
mov esi, eax
push 2
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
push ebx
call sub.kernel32.dll_GetFileSize
test eax, eax
jne 0x637d94
cmp byte [ebp - 9], 0
je 0x637d5c
lea eax, [ebp - 8]
mov edx, 0x637e50
call fcn.00407958
mov esi, dword [ebp - 8]
test esi, esi
je 0x637d3f
sub esi, 4
mov esi, dword [esi]
push 0
lea eax, [ebp - 0x10]
push eax
push esi
mov eax, dword [ebp - 8]
call fcn.00407edc
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
mov esi, 3
jmp 0x637d94
lea eax, [ebp - 4]
mov edx, 0x637e60
call fcn.004078bc
mov esi, dword [ebp - 4]
test esi, esi
je 0x637d75
sub esi, 4
mov esi, dword [esi]
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, esi
add eax, eax
push eax
mov eax, dword [ebp - 4]
call fcn.004082fc
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
mov esi, 1
cmp esi, 1
je 0x637d9e
cmp esi, 2
jne 0x637de2
lea eax, [ebp - 4]
mov edx, edi
call fcn.004078bc
cmp esi, 2
jne 0x637dba
mov eax, dword [ebp - 4]
call fcn.004082fc
call fcn.00634fd4
mov esi, dword [ebp - 4]
test esi, esi
je 0x637dc6
sub esi, 4
mov esi, dword [esi]
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, esi
add eax, eax
push eax
mov eax, dword [ebp - 4]
call fcn.004082fc
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
jmp 0x637e0e
lea edx, [ebp - 8]
mov eax, edi
call fcn.0040b388
mov esi, dword [ebp - 8]
test esi, esi
je 0x637df8
sub esi, 4
mov esi, dword [esi]
push 0
lea eax, [ebp - 0x10]
push eax
push esi
mov eax, dword [ebp - 8]
call fcn.00407edc
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x637e39
lea eax, [ebp - 8]
call fcn.004074b8
lea eax, [ebp - 4]
call fcn.00407494
ret
Function at 0x637f7c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407578
mov eax, dword [ebp - 8]
call fcn.00407578
xor eax, eax
push ebp
push 0x6380e6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.00407494
mov eax, dword [ebp - 8]
test eax, eax
je 0x637fce
sub eax, 4
mov eax, dword [eax]
dec eax
jge 0x637fde
lea eax, [ebp - 8]
mov edx, 0x638100
call fcn.004078bc
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.004082fc
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jbe 0x6380be
mov eax, ebx
call fcn.00634fac
mov esi, eax
push esi
push ebx
push 0
push edi
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x6380b5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x638118
push esi
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x6380b5
push 0x638158
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
mov edx, 4
call fcn.0041d010
push dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 2]
mov edx, 4
call fcn.0041d010
push dword [ebp - 0x24]
push 0x638188
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.0041c55c
push dword [ebp - 0x28]
lea eax, [ebp - 0xc]
mov edx, 5
call fcn.004085f0
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004082fc
push eax
push esi
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x6380b5
cmp dword [ebp - 0x18], 1
jbe 0x6380b5
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.00408364
mov edx, ebx
mov eax, esi
call fcn.00404d74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6380ed
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.004074f4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004074f4
ret
Function at 0x63818c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x638195
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x638373
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00407494
mov eax, edi
call fcn.00407494
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
mov eax, ebx
call fcn.004082fc
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x63834b
mov eax, dword [ebp - 0xc]
call fcn.00634fac
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x638344
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, ebx
call fcn.004082fc
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x63832b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x638384
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x63832b
push 0x6383c4
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
mov edx, 4
call fcn.0041d010
push dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 2]
mov edx, 4
call fcn.0041d010
push dword [ebp - 0x24]
push 0x6383f4
lea eax, [ebp - 4]
mov edx, 4
call fcn.004085f0
push 0x6383c4
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
mov edx, 4
call fcn.0041d010
push dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 2]
mov edx, 4
call fcn.0041d010
push dword [ebp - 0x2c]
push 0x638424
lea eax, [ebp - 8]
mov edx, 4
call fcn.004085f0
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call fcn.004082fc
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x6382f8
cmp dword [ebp - 0x14], 1
jbe 0x6382f8
mov eax, esi
mov edx, dword [ebp - 0x1c]
call fcn.00408364
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
call fcn.004082fc
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x63832b
cmp dword [ebp - 0x14], 1
jbe 0x63832b
mov eax, edi
mov edx, dword [ebp - 0x1c]
call fcn.00408364
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63834b
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
call fcn.00404d74
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63837a
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.004074f4
lea eax, [ebp - 8]
mov edx, 2
call fcn.004074f4
ret
Function at 0x638440
Capabilities:
Get memory capacity

Disassembly:
push ebx
push esi
add esp, 0xffffffc0
mov esi, edx
mov ebx, eax
mov eax, esp
xor ecx, ecx
mov edx, 0x40
call fcn.004053b0
mov dword [esp], 0x40
push esp
call sub.kernel32.dll_GlobalMemoryStatusEx
mov eax, dword [esp + 8]
mov dword [ebx], eax
mov eax, dword [esp + 0xc]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x10]
mov dword [esi], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
add esp, 0x40
pop esi
pop ebx
ret

Function at 0x6390a8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x6390d5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov ebx, dword [ebp - 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6390e1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x639230
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov byte [ebp - 9], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x639396
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4c8ad4]
call fcn.004995f4
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x63934c
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00424d38
lea eax, [ebp - 0x18]
mov ecx, 0x6393b0
mov edx, dword [ebp - 4]
call fcn.00408568
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov edx, 0x1ff
call fcn.006390ec
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x639331
inc ebx
mov dword [ebp - 0x14], 0
push dword [ebp - 4]
push 0x6393c8
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
push dword [ebp - 0x1c]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004085f0
mov eax, dword [ebp - 8]
call fcn.004082fc
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x6392fe
test al, 0x10
je 0x6392fe
movzx edx, byte [ebp - 9]
mov eax, dword [ebp - 8]
call fcn.00639230
jmp 0x63932b
cmp byte [ebp - 9], 0
je 0x639310
mov eax, dword [ebp - 8]
call fcn.00638fa0
test al, al
je 0x63932b
push 0x80
mov eax, dword [ebp - 8]
call fcn.004082fc
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, dword [ebp - 8]
call fcn.0041d82c
inc dword [ebp - 0x14]
dec ebx
jne 0x6392b3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x639353
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [ebp - 0x10], edx
call fcn.004058a8
ret
Function at 0x6393d4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x63948d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00407494
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
call sub.kernel32.dll_GetLogicalDrives
mov esi, eax
xor ebx, ebx
mov ecx, ebx
mov eax, esi
shr eax, cl
test eax, esi
jbe 0x639463
lea edi, [ebx + 0x41]
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.00408324
lea eax, [ebp - 0x10]
mov edx, 0x6394a8
call fcn.00408510
mov eax, dword [ebp - 0x10]
call fcn.004082fc
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, dword [ebp - 4]
jne 0x639463
lea eax, [ebp - 0x14]
mov edx, edi
call fcn.00408324
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00408510
mov eax, dword [ebp - 8]
inc ebx
cmp ebx, 0x1a
jne 0x639414
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x639494
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004074f4
ret
Function at 0x63a014
Capabilities:
Shutdown system

Disassembly:
push ebx
add esp, 0xffffffe8
mov ebx, eax
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x63a06f
lea eax, [esp + 0xc]
push eax
push 0x63a074
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
lea eax, [esp + 4]
push eax
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0
push ebx
call sub.user32.dll_ExitWindowsEx
add esp, 0x18
pop ebx
ret

Function at 0x63ae54
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407578
xor eax, eax
push ebp
push 0x63aefd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, 1
call fcn.00408490
push 0
mov eax, dword [ebp - 8]
call fcn.004082fc
push eax
mov eax, dword [ebp - 4]
call fcn.004082fc
mov esi, eax
push esi
call sub.kernel32.dll_ExpandEnvironmentStringsW
mov ebx, eax
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00408490
push ebx
mov eax, dword [ebp - 8]
call fcn.004082fc
push eax
push esi
call sub.kernel32.dll_ExpandEnvironmentStringsW
test eax, eax
je 0x63aed8
mov eax, dword [ebp - 8]
call fcn.004082fc
mov edx, eax
mov eax, edi
call fcn.00408364
jmp 0x63aee2
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00407874
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63af04
lea eax, [ebp - 8]
mov edx, 2
call fcn.004074f4
ret

Function at 0x63af0c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe8
mov dword [esp], eax
mov eax, dword [esp]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x63af2b
cmp eax, 1
jae 0x63af31
jmp 0x63afda
jl 0x63afda
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
jmp 0x63afbb
push dword [esp + 0x14]
push dword [esp + 0x14]
mov eax, dword [esp + 8]
call fcn.00499674
lea edx, [esp + 4]
mov ecx, 8
mov eax, dword [esp]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0xc]
dec esi
test esi, esi
jl 0x63af86
inc esi
xor edi, edi
lea ebx, [esp + 4]
mov ecx, edi
mov al, 2
shl al, cl
xor byte [ebx], al
inc edi
inc ebx
dec esi
jne 0x63af79
push dword [esp + 0x14]
push dword [esp + 0x14]
mov eax, dword [esp + 8]
call fcn.00499674
lea edx, [esp + 4]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp]
mov ebx, dword [eax]
call dword [ebx + 0x10]
cmp dword [esp + 0xc], 8
jl 0x63afda
mov eax, dword [esp + 0xc]
cdq
add dword [esp + 0x10], eax
adc dword [esp + 0x14], edx
mov eax, dword [esp]
mov edx, dword [eax]
call dword [edx]
cmp edx, dword [esp + 0x14]
jne 0x63afd4
cmp eax, dword [esp + 0x10]
ja 0x63af43
jmp 0x63afda
jg 0x63af43
add esp, 0x18
pop edi
pop esi
pop ebx
ret
Function at 0x63b08c
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov byte [ebp - 1], 0
mov dl, 2
mov ecx, 0x20
xor esi, esi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea ebx, [ebp - 8]
push ebx
mov ebx, dword [ebp - 0x1c]
push ebx
mov ebx, dword [ebp - 0x18]
push ebx
mov ebx, dword [ebp - 0x14]
push ebx
mov ebx, dword [ebp - 0x10]
push ebx
push edi
push esi
push eax
push ecx
push edx
push 0x688224
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
je 0x63b128
xor eax, eax
push ebp
push 0x63b121
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call sub.advapi32.dll_CheckTokenMembership
test eax, eax
je 0x63b10a
cmp dword [ebp - 0xc], 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63b128
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_FreeSid
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x64a294
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov byte [ebp - 5], dl
mov esi, eax
xor eax, eax
push ebp
push 0x64a413
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [esi + 0x1c]
call fcn.00407494
xor eax, eax
mov dword [esi + 0x18], eax
xor eax, eax
mov dword [esi + 0x7c], eax
movzx eax, byte [esi + 0x20]
sub al, 1
jb 0x64a30b
je 0x64a2de
dec al
je 0x64a2ed
dec al
je 0x64a2fc
jmp 0x64a3f0
call fcn.00646800
call fcn.00646790
mov dword [esi + 0x7c], eax
jmp 0x64a318
call fcn.0064681c
call fcn.00646790
mov dword [esi + 0x7c], eax
jmp 0x64a318
call fcn.00646838
call fcn.00646790
mov dword [esi + 0x7c], eax
jmp 0x64a318
call fcn.00646854
call fcn.00646790
mov dword [esi + 0x7c], eax
cmp dword [esi + 0x7c], 0
jne 0x64a32a
mov eax, esi
call fcn.00649a08
jmp 0x64a3f0
lea eax, [ebp - 4]
mov edx, dword [esi + 0x28]
mov ecx, 0
call fcn.00408018
lea edx, [ebp - 4]
mov eax, dword [esi + 0x7c]
call fcn.0064675c
cmp byte [esi + 0x54], 0
je 0x64a35c
xor ecx, ecx
mov edx, 1
mov eax, dword [esi + 0x7c]
call fcn.00646c64
jmp 0x64a368
xor ecx, ecx
xor edx, edx
mov eax, dword [esi + 0x7c]
call fcn.00646c64
mov edx, 0x649830
mov eax, dword [esi + 0x7c]
call fcn.00646a50
mov edx, esi
mov eax, dword [esi + 0x7c]
call fcn.00646a78
cmp byte [ebp - 5], 0
je 0x64a3c4
cmp dword [esi + 0x2c], 0
jne 0x64a3c4
cmp dword [esi + 0x34], 0
jne 0x64a3c4
cmp dword [esi + 0x40], 0
jne 0x64a3c4
cmp dword [esi + 0x3c], 0
jne 0x64a3c4
lea edx, [ebp - 0x10]
mov edi, dword [esi + 0x10]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
mov eax, edi
call fcn.00642560
mov edx, dword [ebp - 0xc]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, esi
call fcn.00649f54
test al, al
je 0x64a3f0
xor eax, eax
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x7c]
call fcn.00646ad0
mov edi, eax
mov dword [esi + 0x78], edi
test edi, edi
jne 0x64a3ee
mov eax, esi
call fcn.00649a08
jmp 0x64a3f0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64a41a
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004074f4
lea eax, [ebp - 4]
call fcn.004074b8
ret

Function at 0x64b558
Capabilities:
Get memory capacity

Disassembly:
push ebx
add esp, 0xffffffe0
mov ebx, eax
mov dword [esp], 0x20
push esp
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [esp + 8]
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0xc]
mov dword [ebx + 0x30], eax
add esp, 0x20
pop ebx
ret
Function at 0x61082205
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x61082240
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x61082227
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x61082238
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x61082242
inc edi
add eax, 0x28
cmp edi, esi
jb 0x6108221d
xor eax, eax
pop edi
pop esi
ret

Function at 0x610823c6
Capabilities:
Enumerate pe sections

Disassembly:
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
call fcn.610821c5
xor dword [ebx], ebp
movsb byte es:[edi], byte [esi]
sti
movzx eax, word [edi + 6]
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.610821c5
std
and dword [edx], edi
mov al, 0x66
mov eax, dword [edi + 6]
cmp ax, bx
jbe 0x6108241f
lea ecx, [esi + 0xc]

Function at 0x61085659
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push esi
push ecx
push str.REGISTRYMACHINESOFTWAREMicrosoftCryptographyDefaultsProvider_s
lea eax, [ebp - 0x244]
xor esi, esi
push 0x104
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x10
test eax, eax
jle 0x610856cf
push 0x38
lea eax, [ebp - 0x3c]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x38], 0x120
lea eax, [ebp - 4]
mov dword [ebp - 0x34], str.Type
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push esi
push esi
push eax
lea eax, [ebp - 0x244]
mov dword [ebp - 0x2c], 0x4000000
push eax
push esi
mov dword [ebp - 0x24], 4
call dword [sym.imp.ntdll.dll_RtlQueryRegistryValues]
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x61085c94
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 4], esi
je 0x61085cb1
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [edi + 4], esi
cmp dword [edi], 0
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov esi, 0x801e
mov dword [ebp - 0x10], 4
je 0x61085cf7
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x10
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptGetProvParam]
test eax, eax
je 0x61085cf7
mov eax, dword [ebp - 0xc]
sub eax, 0x50
je 0x61085cf2
sub eax, 1
jne 0x61085cf7
add esi, 4
jmp 0x61085cf7
mov esi, 0x8021
lea eax, [ebp - 8]
push eax
push 0
push 0
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x61085d4a
mov eax, dword [0x6108e850]
test eax, eax
je 0x61085d46
test dword [eax], 0x1041041
je 0x61085d46
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RecreateHashObject
push 0x1a1
push 0x6108929c
push str.CryptCreateHash_error__0x_X_
push dword [0x6108e850]
call fcn.6108245f
add esp, 0x18
xor eax, eax
jmp 0x61085db1
push 0
lea eax, [ebp - 1]
mov byte [ebp - 1], 1
push eax
push 0x14
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
jne 0x61085da8
mov eax, dword [0x6108e850]
test eax, eax
je 0x61085d9d
test dword [eax], 0x1041041
je 0x61085d9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RecreateHashObject
push 0x1a8
push 0x6108929c
push str.CryptSetHashParam_error__0x_X_
push dword [0x6108e850]
call fcn.6108245f
add esp, 0x18
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x61085d46
mov ecx, dword [ebp - 8]
xor eax, eax
mov dword [edi + 4], ecx
inc eax
pop edi
pop esi
leave
ret

Function at 0x61087015
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x6108cbf0
call fcn.610820dc
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x61087079
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x61087079
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x61087079
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x61087079
or dword [ebp - 4], 0xffffffff
mov al, 1
jmp 0x6108707f
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret