joyce8/EMBER2024-capa huggingface dataset:
Function at 0x515ac0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5dc821
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x458], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x66d4f4]
xor eax, esp
push eax
lea eax, [esp + 0x470]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x480]
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x71]
push ebx
push eax
mov dword [esp + 0x58], ebx
mov byte [esp + 0x78], bl
call fcn.005c0cf0
add esp, 0xc
push 0x400
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x6c]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x515b36
mov edx, dword [str.yw_]
mov cl, byte [0x601cdc]
mov dword [eax], edx
mov byte [eax + 4], cl
call fcn.00506a50
test eax, eax
mov esi, 0xf
jne 0x515b6c
call fcn.00506a50
test eax, eax
je 0x515c7b
lea eax, [esp + 0x6c]
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x515b80
sub eax, edx
push eax
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x58]
call fcn.00408ea0
push 8
push str.syswow64
lea ecx, [esp + 0x38]
mov dword [esp + 0x480], ebx
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.00408ea0
push 8
push str.system32
lea ecx, [esp + 0x1c]
mov byte [esp + 0x480], 1
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00408ea0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x58]
push edx
mov byte [esp + 0x484], 2
call fcn.00510470
mov edi, 0x10
add esp, 0xc
cmp dword [esp + 0x2c], edi
jb 0x515c18
mov eax, dword [esp + 0x18]
push eax
call fcn.005a1b1d
add esp, 4
cmp dword [esp + 0x48], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
jb 0x515c37
mov ecx, dword [esp + 0x34]
push ecx
call fcn.005a1b1d
add esp, 4
mov edi, dword [esp + 0x68]
cmp edi, 0x10
mov ecx, dword [esp + 0x54]
jae 0x515c48
lea ecx, [esp + 0x54]
lea edx, [esp + 0x6c]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
cmp al, bl
jne 0x515c50
cmp edi, 0x10
mov dword [esp + 0x478], 0xffffffff
jb 0x515c7b
mov edx, dword [esp + 0x54]
push edx
call fcn.005a1b1d
add esp, 4
lea eax, [esp + 0x6c]
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], bl
lea edx, [eax + 1]
jmp 0x515c90
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x515c90
sub eax, edx
push eax
lea eax, [esp + 0x70]
push eax
mov ecx, ebp
call fcn.00408ea0
mov eax, ebp
mov ecx, dword [esp + 0x470]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x458]
xor ecx, esp
call fcn.005bd2d7
add esp, 0x468
ret
Function at 0x515ce0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x808
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x804], eax
push ebx
push ebp
mov ebp, dword [esp + 0x814]
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x411]
push ebx
push eax
mov dword [esp + 0x14], ebx
mov byte [esp + 0x418], bl
call fcn.005c0cf0
mov edx, dword [0x601ce4]
mov eax, dword [0x601ce8]
mov ecx, dword [str.qatchelient.ini]
push 0x3ef
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x601cec]
mov dword [esp + 0x20], edx
mov dl, byte [0x601cf0]
lea eax, [esp + 0x2d]
push ebx
push eax
mov dword [esp + 0x30], ecx
mov byte [esp + 0x34], dl
call fcn.005c0cf0
add esp, 0x18
push 0x400
lea ecx, [esp + 0x410]
push ecx
mov byte [esp + 0x15], 0x77
mov byte [esp + 0x1a], 0x63
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0xc]
mov edx, eax
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x515d84
push esi
push edi
lea edi, [esp + 0x414]
sub eax, edx
add edi, 0xffffffff
jmp 0x515da0
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x515da0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x414]
pop edi
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], bl
lea edx, [eax + 1]
pop esi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x515dd3
sub eax, edx
push eax
lea edx, [esp + 0x410]
push edx
mov ecx, ebp
call fcn.00408ea0
mov ecx, dword [esp + 0x80c]
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.005bd2d7
add esp, 0x808
ret

Function at 0x516150
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
ret
Function at 0x5162e0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x5dc93d
mov eax, dword fs:[0]
push eax
mov eax, 0x2048
call fcn.005c2160
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x2044], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x66d4f4]
xor eax, esp
push eax
lea eax, [esp + 0x205c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x206c]
mov esi, dword [esp + 0x2070]
mov ebp, dword [esp + 0x2074]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2078]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebx
mov edx, eax
jne 0x516354
mov edx, 0x63a990
mov eax, edx
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x516370
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x44]
call fcn.00408ea0
cmp esi, ebx
mov dword [esp + 0x2064], ebx
je 0x516454
cmp byte [esi], bl
je 0x516454
cmp ebp, ebx
je 0x516454
cmp byte [ebp], bl
je 0x516454
push 0x1fff
lea ecx, [esp + 0x5d]
push ebx
push ecx
mov byte [esp + 0x64], bl
call fcn.005c0cf0
mov eax, dword [esp + 0x28]
mov ecx, 0x10
add esp, 0xc
cmp dword [eax + 0x18], ecx
jb 0x5163d8
mov eax, dword [eax + 4]
jmp 0x5163db
add eax, 4
cmp dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x40]
jae 0x5163e9
lea ecx, [esp + 0x40]
push eax
push 0x1fff
lea edx, [esp + 0x60]
push edx
push ecx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x58], bl
je 0x516424
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x24]
call fcn.0040b540
mov ebx, 2
mov byte [esp + 0x2064], 1
mov dword [esp + 0x14], ebx
jmp 0x51642c
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x3c]
mov esi, dword [esp + 0x18]
push eax
mov ecx, esi
call fcn.0040b660
or ebx, 1
test bl, 2
je 0x516449
lea ecx, [esp + 0x20]
call fcn.0040b640
lea ecx, [esp + 0x3c]
call fcn.0040b640
jmp 0x516488
mov esi, dword [esp + 0x18]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x44]
push ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00407630
cmp dword [esp + 0x54], 0x10
jb 0x516488
mov edx, dword [esp + 0x40]
push edx
call fcn.005a1b1d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x205c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2044]
xor ecx, esp
call fcn.005bd2d7
add esp, 0x2054
ret 0x10
Function at 0x5166f0
Capabilities:
Query or enumerate registry value

Disassembly:
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x516703
push 0x80004005
call fcn.0041bdc0
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test esi, esi
je 0x51676a
mov ecx, dword [edi]
test ecx, ecx
jbe 0x516767
mov edx, dword [esp + 0x14]
test edx, edx
jbe 0x516762
cmp edx, 2
jbe 0x51675b
cmp edx, 7
jne 0x516762
cmp ecx, 1
jb 0x516762
cmp byte [ecx + esi - 1], 0
jne 0x516762
cmp ecx, 1
jbe 0x51676a
cmp byte [ecx + esi - 2], 0
jmp 0x516760
cmp byte [ecx + esi - 1], 0
je 0x51676a
mov eax, 0xd
mov byte [esi], 0
pop esi
pop edi
ret 0xc

Function at 0x516a90
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1044
call fcn.005c2160
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x1040], eax
push edi
push 0xfff
xor edi, edi
lea eax, [esp + 0x49]
push edi
push eax
mov byte [esp + 0x50], 0
call fcn.005c0cf0
add esp, 0xc
lea ecx, [esp + 0x44]
push ecx
push 0xfff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x516b2f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push esi
lea esi, [esp + 0x4c]
push esi
call ebx
cmp eax, 3
jne 0x516b20
push 0x40
lea edx, [esp + 0x10]
push 0
push edx
call fcn.005c0cf0
movsx eax, byte [esi]
push eax
lea ecx, [esp + 0x1c]
push 0x601038
push ecx
call fcn.005bd49b
lea edx, [esp + 0x24]
push edx
call fcn.00507120
add esp, 0x1c
add edi, eax
jmp 0x516b20
mov al, byte [esi]
add esi, 1
test al, al
jne 0x516b20
cmp byte [esi], al
jne 0x516ae3
pop esi
pop ebx
mov ecx, dword [esp + 0x1044]
mov eax, edi
pop edi
xor ecx, esp
call fcn.005bd2d7
add esp, 0x1044
ret
Function at 0x517db0
Capabilities:
Get hostname

Disassembly:
sub esp, 0x108
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push esi
mov esi, dword [esp + 0x114]
xor ebx, ebx
push 0xff
lea eax, [esp + 0x11]
push ebx
push eax
mov dword [esp + 0x14], ebx
mov byte [esp + 0x18], bl
call fcn.005c0cf0
add esp, 0xc
push pe_nt_image_headers32
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [esp + 0xc]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x517e10
sub eax, edx
push eax
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00408ea0
mov ecx, dword [esp + 0x10c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.005bd2d7
add esp, 0x108
ret 4

Function at 0x517e50
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x140], eax
xor eax, eax
push esi
mov esi, dword [esp + 0x14c]
push 0x9c
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
call fcn.005c0cf0
add esp, 0xc
push 0
push 0x63a990
mov ecx, esi
call fcn.00408ea0
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x517f6e
push str.GetNativeSystemInfo
push 0x6019f4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x517ef2
lea edx, [esp + 4]
push edx
call eax
jmp 0x517efd
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0x38], 2
jne 0x517f6e
push 0x7f
lea ecx, [esp + 0xc9]
push 0
push ecx
mov byte [esp + 0xd0], 0
call fcn.005c0cf0
movzx edx, word [esp + 0xca]
movzx eax, word [esp + 0xc8]
mov ecx, dword [esp + 0x40]
push edx
push eax
push ecx
lea edx, [esp + 0xdc]
push str._lu._lu._lu
push edx
call fcn.00516b80
lea eax, [esp + 0xe4]
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x517f53
sub eax, edx
push eax
lea eax, [esp + 0xc8]
push eax
mov ecx, esi
call fcn.00408ea0
mov ecx, dword [esp + 0x144]
pop esi
xor ecx, esp
call fcn.005bd2d7
add esp, 0x144
ret 4
Function at 0x517f90
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x114
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x110], eax
xor eax, eax
push esi
mov esi, dword [esp + 0x11c]
push 0x9c
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
call fcn.005c0cf0
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x51809b
push str.GetNativeSystemInfo
push 0x6019f4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x518024
lea edx, [esp + 4]
push edx
call eax
jmp 0x51802f
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0
push 0x63a990
mov ecx, esi
call fcn.00408ea0
cmp dword [esp + 0x38], 2
jne 0x51809b
cmp dword [esp + 0x2c], 4
jbe 0x51809b
movzx ecx, word [esp + 0xbe]
movzx edx, word [esp + 0xbc]
push ecx
push edx
push str._d._d
lea eax, [esp + 0xd0]
push 0x50
push eax
call fcn.00516c80
lea eax, [esp + 0xd8]
add esp, 0x14
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x518080
sub eax, edx
push eax
lea ecx, [esp + 0xc8]
push ecx
mov ecx, esi
call fcn.00408ea0
mov ecx, dword [esp + 0x114]
pop esi
xor ecx, esp
call fcn.005bd2d7
add esp, 0x114
ret 4
Function at 0x5181e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5dcaf8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov eax, dword [0x66d4f4]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, dword [esp + 0x60]
xor ebx, ebx
push ebx
push 0x63a990
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.00408ea0
push ebx
push 0x63a990
lea ecx, [esp + 0x1c]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00408ea0
lea ecx, [esp + 0xc]
mov byte [esp + 0x58], 1
call fcn.0059c1b0
lea ecx, [esp + 0xc]
mov byte [esp + 0x58], 2
call fcn.0059c7d0
lea eax, [esp + 0x30]
push eax
push str.Vendor
push str.Select__from_Win32_ComputerSystemProduct
lea ecx, [esp + 0x18]
call fcn.0059c2f0
lea ecx, [esp + 0x14]
push ecx
push 0x601ff0
push str.Select__from_Win32_ComputerSystemProduct
lea ecx, [esp + 0x18]
call fcn.0059c2f0
cmp dword [esp + 0x44], ebx
je 0x5182c7
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x38]
push edx
mov ecx, esi
call fcn.00407630
push 1
push 0x6011c4
mov ecx, esi
call fcn.004078e0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.004079f0
push 4
push ebx
push str.__t_r_n
mov ecx, esi
call fcn.004a2f90
push eax
push ebx
mov ecx, esi
call fcn.004076f0
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push str.__t_r_n
mov ecx, esi
call fcn.004d0260
add eax, 1
push eax
mov ecx, esi
call fcn.004076f0
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0x58], 1
je 0x518320
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x518330
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, 0x10
cmp dword [esp + 0x2c], esi
jb 0x518348
mov eax, dword [esp + 0x18]
push eax
call fcn.005a1b1d
add esp, 4
cmp dword [esp + 0x48], esi
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
jb 0x51836b
mov ecx, dword [esp + 0x34]
push ecx
call fcn.005a1b1d
add esp, 4
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.005bd2d7
add esp, 0x50
ret 4
Function at 0x518390
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5dcb2b
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push ebp
push esi
mov eax, dword [0x66d4f4]
xor eax, esp
push eax
lea eax, [esp + 0x424]
mov dword fs:[0], eax
mov esi, dword [esp + 0x434]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x10]
push eax
push 0x2001f
push ebx
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push reloc.WS2_32.dll_bind
mov dword [esp + 0x440], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x5184b4
mov ebp, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push ebx
push str.MHz
push ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [esp + 0x10], 4
jne 0x5184ac
cmp eax, ebx
jne 0x5184ac
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push 0x6019d4
push edx
call fcn.004cd640
lea eax, [esp + 0x2c]
add esp, 0xc
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x518460
sub eax, edx
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.00408ea0
cmp ebp, ebx
je 0x518483
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x424]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.005bd2d7
add esp, 0x420
ret 4
push ebx
push 0x63a990
jmp 0x518471
push ebx
push 0x63a990
mov ecx, esi
call fcn.00408ea0
jmp 0x518483

Function at 0x5184d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x204
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x200], eax
push esi
mov esi, dword [esp + 0x20c]
mov dword [esp + 8], 0x1f4
mov dword [esp + 0xc], 1
call fcn.00506a50
neg eax
sbb eax, eax
and eax, 0xd0126
lea ecx, [esp + 4]
push ecx
add eax, 0x20019
push eax
push 0
push str.SoftwareMicrosoftInternet_Explorer
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x51856f
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push str.Version
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x51856f
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x518557
sub eax, edx
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00408ea0
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x204]
pop esi
xor ecx, esp
call fcn.005bd2d7
add esp, 0x204
ret 4
Function at 0x518f00
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x5dcbeb
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x134], eax
push ebx
push esi
push edi
mov eax, dword [0x66d4f4]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
mov edi, dword [esp + 0x158]
xor eax, eax
push 0x9c
xor ebx, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x5c]
push ebx
push eax
call fcn.005c0cf0
add esp, 0xc
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x5c], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp eax, ebx
je 0x5190eb
push str.GetNativeSystemInfo
push 0x6019f4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x518fbb
lea edx, [esp + 0x14]
push edx
call eax
jmp 0x518fc6
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0x68], 2
jne 0x5190f2
cmp dword [esp + 0x5c], 4
jbe 0x5190f2
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x154], ebx
call fcn.005186a0
mov edx, dword [esp + 0x44]
add esp, 4
cmp dword [esp + 0x54], 0x10
jae 0x51900f
lea edx, [esp + 0x40]
mov esi, pe_nt_image_headers32
mov eax, edi
sub edx, edi
jmp 0x519020
lea ecx, [esi + 0x7ffffefe]
test ecx, ecx
je 0x51903d
mov cl, byte [edx + eax]
cmp cl, bl
je 0x51903d
mov byte [eax], cl
add eax, 1
sub esi, 1
jne 0x519020
jmp 0x519041
cmp esi, ebx
jne 0x519044
sub eax, 1
mov byte [eax], bl
lea eax, [esp + 0x6c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x519050
sub eax, edx
je 0x51907d
push 0x6011c4
push pe_nt_image_headers32
push edi
call fcn.00516be0
lea edx, [esp + 0x6c]
push edx
push pe_nt_image_headers32
push edi
call fcn.00516be0
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], ebx
call fcn.00506860
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
jbe 0x5190a8
push eax
push str.__build__d_
push 0x50
lea ecx, [esp + 0x100]
push ecx
jmp 0x5190bc
mov edx, dword [esp + 0x64]
push edx
push str.__build__d_
push 0x50
lea eax, [esp + 0x100]
push eax
call fcn.00516c80
add esp, 0x10
lea ecx, [esp + 0xf4]
push ecx
push pe_nt_image_headers32
push edi
call fcn.00516be0
cmp dword [esp + 0x54], 0x10
jb 0x5190eb
mov edx, dword [esp + 0x40]
push edx
call fcn.005a1b1d
add esp, 4
mov eax, 1
jmp 0x5190f4
xor eax, eax
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.005bd2d7
add esp, 0x144
ret
Function at 0x51bed0
Capabilities:
Get memory capacity

Disassembly:
push 0xffffffffffffffff
push 0x5dd236
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x66d4f4]
xor eax, esp
push eax
lea eax, [esp + 0xe4]
mov dword fs:[0], eax
call fcn.00506950
test eax, eax
jne 0x51bf35
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xf4]
shr ecx, 0x14
mov dword [edx], ecx
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xec
ret 4
call fcn.0041ac50
mov eax, dword [eax + 0x15c]
test eax, eax
jne 0x51c027
push 1
push 2
lea ecx, [esp + 0x6c]
call fcn.0040a750
lea eax, [esp + 0x64]
push 0x602838
push eax
mov dword [esp + 0xf4], 0
call fcn.00409270
add esp, 8
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x68]
call fcn.00408c00
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0xec], 1
jb 0x51bf93
mov eax, dword [eax + 4]
jmp 0x51bf96
add eax, 4
push eax
push str.BaseLib::CBaseInfo::GetPhyMemerySize
push 0x8e5
push str..ywSMPpubBaseInfo.cpp
push 0
call fcn.00408f70
mov ecx, eax
call fcn.00512650
cmp dword [esp + 0x1c], 0x10
jb 0x51bfc8
mov edx, dword [esp + 8]
push edx
call fcn.005a1b1d
add esp, 4
lea ecx, [esp + 0xb0]
mov dword [esp + 0x1c], 0xf
mov dword [esp + 0x18], 0
mov byte [esp + 8], 0
mov dword [esp + 0xec], 0xffffffff
call fcn.00409510
lea eax, [esp + 0xb0]
push eax
mov dword [esp + 0xb4], vtable.std::ios_base.0
call fcn.005d9cc4
add esp, 4
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xec
ret 4
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], 0x40
call eax
test eax, eax
mov edx, dword [esp + 0xf4]
jne 0x51c05b
mov dword [edx], eax
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xec
ret 4
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
shrd eax, ecx, 0x14
shr ecx, 0x14
mov dword [edx], eax
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xec
ret 4