joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004405
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x101401a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
xor edi, edi
push 0x206
mov word [ebp - 0x28c], ax
lea eax, [ebp - 0x28a]
push edi
push eax
mov dword [ebp - 0x290], edi
call fcn.100ab9a0
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x28c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10004471
lea eax, [ebp - 0x28c]
push 0x5c
push eax
call fcn.100a35c0
pop ecx
pop ecx
cmp eax, edi
je 0x10004471
xor ecx, ecx
mov word [eax], cx
push str.Version.ini
lea eax, [ebp - 0x28c]
push esi
push eax
call fcn.100a3620
xor eax, eax
push 0x7e
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x82]
push edi
push eax
call fcn.100ab9a0
add esp, 0x18
lea eax, [ebp - 0x28c]
push eax
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
push str.VERSION
push str.ROOT
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x84]
push eax
push ebx
call fcn.10014fe8
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, ebx
pop esi
call fcn.100a1c30
leave
ret

Function at 0x100048a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x26c
mov eax, 0x100eed2f
call fcn.100deb00
mov eax, dword [ebp + 8]
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
push esi
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x268], 0xff
mov dword [ebp - 0x270], 7
mov dword [ebp - 0x260], 1
call fcn.100015a1
call fcn.1001505f
lea edi, [eax + 1]
mov dword [ebp - 0x25c], esi
cmp edi, esi
jle 0x10004a20
cmp dword [ebp - 0x25c], esi
jle 0x10004915
or dword [ebp - 0x260], 0x100
push dword [ebp - 0x274]
lea eax, [ebp - 0x258]
push eax
call fcn.10014650
cmp dword [eax + 0x18], 8
pop ecx
pop ecx
jb 0x10004934
mov eax, dword [eax + 4]
jmp 0x10004937
add eax, 4
lea ecx, [ebp - 0x264]
push ecx
push dword [ebp - 0x260]
push esi
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
push 1
lea ecx, [ebp - 0x258]
mov ebx, eax
call fcn.100031be
lea ecx, [ebp - 0x258]
call fcn.10002740
cmp ebx, esi
jne 0x10004a0e
mov eax, 0x208
push eax
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.100ab9a0
add esp, 0xc
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x270]
push eax
push esi
push str.DisplayVersion
push dword [ebp - 0x264]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp word [ebp - 0x218], si
je 0x10004a02
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.10014fe8
pop ecx
pop ecx
mov ecx, dword [ebp - 0x278]
push eax
mov dword [ebp - 4], esi
call fcn.10002c71
or dword [ebp - 4], 0xffffffff
push esi
push 1
lea ecx, [ebp - 0x238]
call fcn.100015c0
lea ecx, [ebp - 0x238]
call fcn.10002740
push dword [ebp - 0x264]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x25c]
cmp dword [ebp - 0x25c], edi
jl 0x10004903
xor eax, eax
inc eax
call fcn.100deb60
ret
Function at 0x10008410
Capabilities:
Get common file path

Disassembly:
push 0x240
mov eax, 0x100eecfc
call fcn.100deb00
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x24c], edi
cmp dword [eax + 0x3b0], ebx
je 0x1000844a
add eax, 0x39c
push eax
mov ecx, edi
call fcn.1000ca0e
jmp 0x10008509
push 0x103
lea eax, [ebp - 0x117]
push ebx
push eax
mov byte [ebp - 0x118], bl
call fcn.100ab9a0
mov esi, 0x104
push esi
lea eax, [ebp - 0x220]
push ebx
push eax
call fcn.100ab9a0
add esp, 0x18
lea eax, [ebp - 0x244]
push eax
push 0x1a
push ebx
mov dword [ebp - 0x244], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp dword [ebp - 0x244], ebx
je 0x100084c2
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x244]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x100084c2
push esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x240]
call fcn.1000151a
xor esi, esi
lea eax, [ebp - 0x240]
inc esi
push eax
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.10002cd3
push ebx
push esi
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x248], esi
mov byte [ebp - 4], bl
call fcn.100015c0
lea ecx, [ebp - 0x240]
call fcn.10002740
mov eax, edi
call fcn.100deb60
ret 4
Function at 0x10009861
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100f058c
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x101401a0]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x101401a0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
movzx eax, byte [ebp + 0xc]
mov edi, dword [ebp + 8]
push eax
push edi
push str.CStatisticsInfo::ExecuteUpload_v_json:_s__b_useThread
push 1
push dword [0x101466d8]
mov esi, ecx
call fcn.100814a0
add esp, 0x14
push edi
lea ecx, [esp + 0x3c]
call fcn.1000151a
xor ebx, ebx
mov dword [esp + 0x68], ebx
cmp byte [esi + 0x314], bl
jne 0x100098e5
push str.CStatisticsInfo::ExecuteUpload_
push 1
push dword [0x101466d8]
call fcn.100814a0
add esp, 0xc
cmp byte [ebp + 0xc], bl
je 0x10009990
push 0x24
call fcn.100a20b0
mov edi, eax
pop ecx
mov dword [esp + 0x14], edi
mov byte [esp + 0x68], 1
cmp edi, ebx
je 0x1000990e
mov ecx, edi
call fcn.10002d18
jmp 0x10009910
xor edi, edi
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x40]
mov byte [esp + 0x70], bl
push eax
mov ecx, edi
mov dword [edi + 0x20], esi
call fcn.100011ec
push edi
push ebx
push 0x10009a0a
call fcn.100a4460
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x100099cb
push 3
lea eax, [esp + 0x1c]
push 0xffffffffffffffff
push eax
call fcn.1008b390
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 2
call fcn.10082ce0
push eax
push str.CStatisticsInfo::ExecuteUpload__beginthread_ExeUploadProc__failed__s
push 1
push dword [0x101466d8]
call fcn.10081400
add esp, 0x10
push ebx
push 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], bl
call fcn.100031be
lea ecx, [esp + 0x18]
call fcn.10002740
jmp 0x100099cb
sub esp, 0x20
mov ecx, esp
mov dword [esp + 0x34], esp
push edi
call fcn.1000151a
mov ecx, esi
call fcn.10006f5c
cmp al, 1
jne 0x100099cb
lea edi, [esi + 0xa8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esi + 0x88]
mov ecx, esi
call fcn.100085a3
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esi + 4]
or dword [esp + 0x68], 0xffffffff
push ebx
push 1
lea ecx, [esp + 0x40]
call fcn.100015c0
lea ecx, [esp + 0x38]
call fcn.10002740
mov eax, esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.100a1c30
mov esp, ebp
pop ebp
ret 8
Function at 0x1000c4ac
Capabilities:
Get session user name
Impersonate user

Disassembly:
push 0x2a4
mov eax, 0x100ee979
call fcn.100deb00
xor esi, esi
xor eax, eax
mov dword [ebp - 0x284], esi
push 0x206
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push esi
push eax
call fcn.100ab9a0
add esp, 0xc
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x290], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x25c]
call fcn.10005438
xor ebx, ebx
inc ebx
push ebx
sub esp, 0x20
mov dword [ebp - 0x28c], esp
mov ecx, esp
mov dword [ebp - 4], esi
push str.SYSTEM
mov dword [ebp - 0x284], ebx
call fcn.10005438
lea eax, [ebp - 0x25c]
push eax
call fcn.10084560
add esp, 0x28
push 7
pop edi
cmp eax, esi
je 0x1000c5e4
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x27c]
call fcn.10005438
push ebx
sub esp, 0x20
mov dword [ebp - 0x28c], esp
mov ecx, esp
mov dword [ebp - 4], ebx
push str.LOCAL_SERVICE
mov dword [ebp - 0x284], 3
call fcn.10005438
lea eax, [ebp - 0x27c]
push eax
call fcn.10084560
add esp, 0x28
cmp eax, esi
je 0x1000c5e4
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x23c]
call fcn.10005438
push ebx
sub esp, 0x20
mov dword [ebp - 0x28c], esp
mov ecx, esp
mov dword [ebp - 4], 2
push str.NETWORK_SERVICE
mov dword [ebp - 0x284], edi
call fcn.10005438
lea eax, [ebp - 0x23c]
push eax
call fcn.10084560
add esp, 0x28
mov byte [ebp - 0x27d], 0
cmp eax, esi
jne 0x1000c5ea
mov byte [ebp - 0x27d], bl
mov dword [ebp - 4], ebx
test byte [ebp - 0x284], 4
je 0x1000c615
and dword [ebp - 0x284], 0xfffffffb
push esi
push ebx
lea ecx, [ebp - 0x23c]
call fcn.100031be
lea ecx, [ebp - 0x23c]
call fcn.10002740
mov dword [ebp - 4], esi
test byte [ebp - 0x284], 2
je 0x1000c640
and dword [ebp - 0x284], 0xfffffffd
push esi
push ebx
lea ecx, [ebp - 0x27c]
call fcn.100031be
lea ecx, [ebp - 0x27c]
call fcn.10002740
or dword [ebp - 4], 0xffffffff
test byte [ebp - 0x284], bl
je 0x1000c664
push esi
push ebx
lea ecx, [ebp - 0x25c]
call fcn.100031be
lea ecx, [ebp - 0x25c]
call fcn.10002740
cmp byte [ebp - 0x27d], 0
je 0x1000c6fc
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea ecx, [ebp - 0x288]
push ecx
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x1000c68d
xor eax, eax
jmp 0x1000c701
push dword [ebp - 0x288]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x1000c6ab
push dword [ebp - 0x288]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000c689
mov ecx, edi
xor eax, eax
lea edi, [ebp - 0x2ac]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x2b0], 0x20
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x2ac], ebx
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
je 0x1000c69d
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp - 0x288]
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
je 0x1000c69d
mov eax, dword [ebp - 0x294]
jmp 0x1000c701
mov eax, 0x80000001
call fcn.100deb60
ret
Function at 0x1000eb17
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100ede54
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x101401a0]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x101401a0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor edi, edi
mov esi, ecx
mov dword [esp + 0x14], edi
cmp dword [esi + 0x44], edi
je 0x1000ed11
cmp byte [esi + 0x49], 0
je 0x1000ed11
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x1000eb7c
xor al, al
jmp 0x1000ed13
push edi
push 8
lea ecx, [esp + 0x58]
call fcn.1000e3a4
mov dword [esp + 0x80], edi
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x54]
call fcn.10014d5c
mov edi, eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x84], 1
call fcn.10014d5c
mov dword [esp + 0x18], eax
mov ecx, edi
mov byte [esp + 0x80], 2
call fcn.100103e3
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x64]
mov ebx, eax
call fcn.100103e3
mov ecx, dword [esi + 0x44]
mov edx, dword [ecx]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push eax
add edi, ebx
push edi
push dword [esp + 0x20]
lea eax, [esi + 0x4c]
push eax
call dword [edx + 0x18]
lea ecx, [esp + 0x20]
mov edi, eax
mov byte [esp + 0x80], 1
call fcn.10002d87
lea ecx, [esp + 0x44]
mov byte [esp + 0x80], 0
call fcn.10002d87
mov eax, edi
sub eax, 0
je 0x1000ec50
dec eax
je 0x1000ec54
dec eax
dec eax
je 0x1000ed0a
xor bl, bl
or dword [esp + 0x80], 0xffffffff
push 0
push 1
lea ecx, [esp + 0x58]
call fcn.100015c0
lea ecx, [esp + 0x50]
call fcn.10002740
mov al, bl
jmp 0x1000ed13
mov byte [esi + 0x49], 0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x54]
call fcn.10014d5c
mov ecx, eax
mov byte [esp + 0x80], 3
call fcn.100103e3
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
sub edi, eax
mov byte [esp + 0x80], 0
call fcn.10002d87
test edi, edi
je 0x1000ecc5
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x54]
call fcn.10014d5c
mov byte [esp + 0x80], 4
or dword [esp + 0x14], 1
mov ecx, eax
call fcn.100103e3
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.100a6ee0
add esp, 0x10
cmp edi, eax
je 0x1000ecc5
mov bl, 1
jmp 0x1000ecc7
xor bl, bl
and dword [esp + 0x80], 0
test byte [esp + 0x14], 1
je 0x1000ece4
and dword [esp + 0x14], 0xfffffffe
lea ecx, [esp + 0x38]
call fcn.10002d87
test bl, bl
jne 0x1000ec29
cmp byte [esi + 0x49], bl
je 0x1000ed0a
test edi, edi
jne 0x1000eb8f
push edi
push 8
lea ecx, [esp + 0x58]
call fcn.1000352f
jmp 0x1000eb8f
mov bl, 1
jmp 0x1000ec2b
mov al, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.100a1c30
mov esp, ebp
pop ebp
ret
Function at 0x100154df
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ee697
mov eax, dword fs:[0]
push eax
mov eax, 0x28b4
call fcn.100ab600
mov eax, dword [0x101401a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x28bc]
push eax
lea eax, [ebp - 0x2890]
mov edi, edx
xor ebx, ebx
mov dword [ebp - 0x28b8], ebx
push eax
mov esi, ecx
mov dword [ebp - 0x28b4], edi
mov dword [ebp - 0x28bc], 0x2880
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
je 0x10015558
push 0x1012a759
mov ecx, edi
call fcn.1000151a
mov eax, edi
jmp 0x1001561c
lea edi, [ebp - 0x2890]
test ebx, ebx
jne 0x1001558d
movzx ebx, byte [edi + 0x196]
movzx eax, byte [edi + 0x197]
shl ebx, 8
add ebx, eax
movzx eax, byte [edi + 0x198]
shl ebx, 8
add ebx, eax
movzx eax, byte [edi + 0x199]
shl ebx, 8
add ebx, eax
push 0
lea eax, [edi + 0x10c]
push eax
mov ecx, esi
call fcn.1001515e
test eax, eax
je 0x100155aa
cmp dword [edi + 0x1a0], 6
je 0x100155c3
cmp byte [esi], 0
jne 0x100155bb
lea eax, [edi + 0x194]
push eax
call fcn.100150f3
mov edi, dword [edi]
test edi, edi
jne 0x1001555e
jmp 0x100155cf
add edi, 0x194
push edi
call fcn.100150f3
push esi
lea ecx, [ebp - 0x28b0]
call fcn.1000151a
xor esi, esi
inc esi
lea eax, [ebp - 0x28b0]
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 0x28b4]
push eax
call fcn.10002cd3
push 0
push esi
lea ecx, [ebp - 0x28b0]
mov dword [ebp - 0x28b8], esi
mov byte [ebp - 4], 0
call fcn.100015c0
lea ecx, [ebp - 0x28b0]
call fcn.10002740
mov eax, dword [ebp - 0x28b4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100a1c30
leave
ret
Function at 0x10015f0c
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x101401a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
push esi
mov dword [ebp - 0x418], eax
push edi
mov dword [ebp - 0x410], ebx
mov dword [ebp - 0x40c], ebx
xor eax, eax
mov dword [ebp + eax*4 - 0x408], eax
inc eax
cmp eax, 0x100
jl 0x10015f44
xor edx, edx
mov dword [ebp - 0x414], ebx
mov eax, dword [ebp - 0x414]
mov ecx, dword [ebp - 0x418]
movzx ecx, byte [edx + ecx]
lea eax, [ebp + eax*4 - 0x408]
mov esi, dword [eax]
add ecx, esi
add ebx, ecx
and ebx, 0x800000ff
jns 0x10015f88
dec ebx
or ebx, 0xffffff00
inc ebx
lea ecx, [ebp + ebx*4 - 0x408]
mov edi, dword [ecx]
mov dword [eax], edi
lea eax, [edx + 1]
cdq
idiv dword [ebp + 0x14]
inc dword [ebp - 0x414]
cmp dword [ebp - 0x414], 0x100
mov dword [ecx], esi
jl 0x10015f5b
mov eax, dword [ebp - 0x410]
mov edx, dword [ebp - 0x40c]
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x10016016
jmp 0x10015fcf
mov dl, byte [ebp - 0x414]
mov al, byte [ebp - 0x418]
inc al
movzx eax, al
lea ecx, [ebp + eax*4 - 0x408]
mov ebx, dword [ecx]
mov dword [ebp - 0x418], eax
add dl, bl
movzx eax, dl
lea edx, [ebp + eax*4 - 0x408]
mov dword [ebp - 0x414], eax
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x41c]
add al, bl
movzx eax, al
mov dword [edx], ebx
mov al, byte [ebp + eax*4 - 0x408]
xor byte [ecx + esi], al
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x10015fc3
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a1c30
leave
ret
Function at 0x10016572
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3108
call fcn.100ab600
mov eax, dword [0x101401a0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x3108], eax
mov dword [ebp - 0x30fc], ebx
push dword [ebp - 0x30fc]
lea eax, [ebp - 0x20c]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 1
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3100], eax
cmp eax, 0xffffffff
jne 0x100165f9
lea eax, [ebp - 0x20c]
push eax
push str.ReadPhysicalDriveInNTWithZeroRights___CreateFile__ws__failed
push 1
push dword [0x101466d8]
call fcn.100814a0
add esp, 0x10
jmp 0x10016745
xor eax, eax
lea edi, [ebp - 0x30f8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, 0x2710
push esi
lea eax, [ebp - 0x30ec]
push ebx
push eax
mov dword [ebp - 0x3104], ebx
mov dword [ebp - 0x30f8], ebx
mov dword [ebp - 0x30f4], ebx
call fcn.100ab9a0
add esp, 0xc
push ebx
lea eax, [ebp - 0x3104]
push eax
push esi
lea eax, [ebp - 0x30ec]
push eax
push 0xc
lea eax, [ebp - 0x30f8]
push eax
push 0x2d1400
push dword [ebp - 0x3100]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10016716
mov esi, 0x3e8
push esi
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.100ab9a0
add esp, 0xc
push esi
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.100ab9a0
mov eax, dword [ebp - 0x30dc]
add esp, 0xc
lea esi, [ebp - 0x9dc]
lea ecx, [ebp - 0x30ec]
call fcn.100164a1
call fcn.10016440
mov eax, dword [ebp - 0x30d4]
lea esi, [ebp - 0x5f4]
lea ecx, [ebp - 0x30ec]
call fcn.100164a1
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100166bd
sub eax, edx
mov edi, eax
call fcn.1008ae50
cmp eax, 0xb
jle 0x100166f0
xor esi, esi
cmp edi, ebx
jle 0x100166f0
lea eax, [ebp + esi - 0x5f3]
mov cl, byte [eax - 1]
mov dl, byte [eax]
add esi, 2
mov byte [eax - 1], dl
mov byte [eax], cl
cmp esi, edi
jl 0x100166d8
lea esi, [ebp - 0x5f4]
call fcn.10016440
mov esi, dword [ebp - 0x3108]
lea eax, [ebp - 0x9dc]
push eax
lea edi, [ebp - 0x5f4]
call fcn.1001610c
pop ecx
jmp 0x10016739
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20c]
push eax
push str.ReadPhysicalDriveInNTWithZeroRights___DeviceIoControl_1__ws__failed:_d
push 1
push dword [0x101466d8]
call fcn.100814a0
add esp, 0x14
push dword [ebp - 0x3100]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x30fc]
cmp dword [ebp - 0x30fc], 0x10
jl 0x1001659d
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.100a1c30
leave
ret
Function at 0x100168d2
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x101401a0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [0x101466dc], 0
mov ecx, edi
call fcn.1000cd7c
push 0x114
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.100ab9a0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x110], 2
jne 0x10016950
call fcn.1008ae50
cmp eax, 0xb
jge 0x10016949
push 0x1012f08c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call fcn.100161bb
pop ecx
test eax, eax
jne 0x10016950
push edi
call fcn.10016572
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.100a1c30
leave
ret

Function at 0x10017082
Capabilities:
Get memory capacity

Disassembly:
push pe_nt_image_headers32
mov eax, 0x100ee642
call fcn.100deb00
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x68], ebx
push eax
mov dword [ebp - 0x54], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
shrd ecx, eax, 0x1e
xor esi, esi
shr eax, 0x1e
inc esi
add ecx, esi
adc eax, ebx
push 2
pop edx
cmp eax, ebx
ja 0x100170eb
jb 0x100170d1
cmp ecx, edx
ja 0x100170db
mov edi, 0x80000000
mov dword [ebp - 0x60], ebx
jmp 0x100170f0
cmp eax, ebx
ja 0x100170eb
jb 0x100170e6
cmp ecx, 4
ja 0x100170eb
mov dword [ebp - 0x60], esi
jmp 0x100170ee
mov dword [ebp - 0x60], edx
xor edi, edi
lea eax, [ebp - 0x114]
push eax
call fcn.1000dcd3
push dword [ebp - 0x60]
lea eax, [ebp - 0x104]
push edi
push eax
mov dword [ebp - 4], esi
call fcn.1001742d
mov ecx, dword [ebp - 0x58]
call fcn.10002d18
push dword [ebp - 0x58]
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x68], esi
call fcn.100188e6
pop ecx
pop ecx
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], bl
call fcn.1000dd52
lea eax, [ebp - 0xb4]
push eax
mov dword [ebp - 0xb4], vtable.std::ios_base.0
call fcn.1007c5b0
mov eax, dword [ebp - 0x58]
pop ecx
call fcn.100deb60
ret 4
Function at 0x10017178
Capabilities:
Get common file path
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x101401a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push str.._c:
push eax
call fcn.100a9300
add esp, 0xc
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100171fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFile___Error:__ld_n
call fcn.100a6c10
add eax, 0x40
push eax
call fcn.100aae70
add esp, 0xc
or eax, 0xffffffff
jmp 0x10017251
push esi
lea eax, [ebp - 0x21c]
push eax
push 0xc
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push 0x2d1080
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10017244
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IOCTL_STORAGE_GET_DEVICE_NUMBER_Error:__ld_n
call fcn.100a6c10
add eax, 0x40
push eax
call fcn.100aae70
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100171f6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100a1c30
leave
ret