joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e5bf0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10151508
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x1019a128]
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
mov dword [ebp - 0x74], ecx
call fcn.100deed0
mov dword [ebp - 0x14], 7
lea esi, [eax + 0x60]
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.100e1770
mov eax, dword [ebp - 0x7c]
cmp byte [eax + 0xd], 0
jne 0x100e5c6b
cmp dword [eax + 0x10], 7
jg 0x100e5c6b
cmp eax, dword [esi]
je 0x100e5c6b
add eax, 0x14
cmp dword [eax + 0x14], 8
jb 0x100e5c60
mov eax, dword [eax]
test eax, eax
jne 0x100e5c70
xor al, al
jmp 0x100e5df6
mov eax, 0x10168c44
lea ecx, [ebp - 0x70]
push ecx
push 0x209
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100e5c92
xor al, al
jmp 0x100e5df6
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x6c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
test esi, esi
jne 0x100e5de8
mov eax, dword [ebp - 0x6c]
xor ecx, ecx
mov edx, 2
lea eax, [eax + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10115c68
xor edi, edi
add esp, 4
mov ebx, eax
cmp dword [ebp - 0x14], edi
jle 0x100e5ddf
nop dword [eax]
mov ecx, dword [ebp - 0x6c]
inc ecx
push ecx
push ebx
push edi
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
mov dword [ebp - 0x78], esi
test esi, esi
jne 0x100e5ddf
lea ecx, [ebp - 0x68]
call fcn.10042000
mov edx, ecx
mov dword [ebp - 4], esi
mov ecx, ebx
call fcn.100e5790
test al, al
je 0x100e5dc6
push ebx
lea ecx, [ebp - 0x90]
call fcn.100281f0
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x90]
push eax
mov byte [ebp - 4], 1
call fcn.100e6a40
mov esi, eax
lea eax, [ebp - 0x68]
cmp esi, eax
je 0x100e5d76
cmp dword [ebp - 0x54], 8
mov ecx, eax
push dword [ebp - 0x58]
cmovae ecx, dword [ebp - 0x68]
push ecx
mov ecx, esi
call fcn.10002060
lea ecx, [esi + 0x18]
lea eax, [ebp - 0x50]
cmp ecx, eax
je 0x100e5d91
cmp dword [ebp - 0x3c], 8
push dword [ebp - 0x40]
cmovae eax, dword [ebp - 0x50]
push eax
call fcn.10002060
mov eax, dword [ebp - 0x38]
lea ecx, [esi + 0x34]
mov dword [esi + 0x30], eax
lea eax, [ebp - 0x34]
cmp ecx, eax
je 0x100e5db2
cmp dword [ebp - 0x20], 8
push dword [ebp - 0x24]
cmovae eax, dword [ebp - 0x34]
push eax
call fcn.10002060
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x90]
mov dword [esi + 0x4c], eax
call fcn.10002400
mov esi, dword [ebp - 0x78]
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], 0xffffffff
call fcn.100351d0
inc edi
cmp edi, dword [ebp - 0x14]
jl 0x100e5d00
push ebx
call fcn.1011582b
add esp, 4
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
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.101157bc
mov esp, ebp
pop ebp
ret
Function at 0x100e5e20
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015154d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1019a128]
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
mov dword [ebp - 0x20], ecx
call fcn.100deed0
mov dword [ebp - 0x14], 7
lea esi, [eax + 0x60]
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.100e1770
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0xd], 0
jne 0x100e5e95
cmp dword [eax + 0x10], 7
jg 0x100e5e95
cmp eax, dword [esi]
je 0x100e5e95
add eax, 0x14
cmp dword [eax + 0x14], 8
jb 0x100e5e8a
mov eax, dword [eax]
test eax, eax
jne 0x100e5e9a
xor al, al
jmp 0x100e5f7a
mov eax, 0x10168c44
lea ecx, [ebp - 0x1c]
push ecx
push 0x209
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100e5ebc
xor al, al
jmp 0x100e5f7a
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
test edi, edi
jne 0x100e5f6c
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov edx, 2
lea eax, [eax + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10115c68
xor esi, esi
add esp, 4
mov ebx, eax
cmp dword [ebp - 0x14], esi
jle 0x100e5f63
nop dword [eax + eax]
mov ecx, dword [ebp - 0x18]
inc ecx
push ecx
push ebx
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, eax
test edi, edi
jne 0x100e5f63
push ebx
lea ecx, [ebp - 0x38]
call fcn.100281f0
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 4], edi
call fcn.100e6960
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.10002400
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x100e5f20
push ebx
call fcn.1011582b
add esp, 4
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
sete al
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.101157bc
mov esp, ebp
pop ebp
ret
Function at 0x100e6c00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101516cb
mov eax, dword fs:[0]
push eax
sub esp, 0x394
mov eax, dword [0x1019a128]
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
mov esi, edx
mov dword [ebp - 0x250], ecx
push 0x228
lea eax, [ebp - 0x244]
mov dword [ebp - 0x24c], 0
push 0
push eax
call fcn.10117ff0
add esp, 0xc
mov dword [ebp - 0x248], 0x22c
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100e6cca
push str.GetProcessPid
mov edx, 4
lea ecx, [ebp - 0x2f8]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0
cmp byte [esi + 0x48], 0
je 0x100e6ca4
mov edx, str.CreateToolhelp32Snapshot_failed_err
mov ecx, esi
call fcn.10020800
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x48], 0
je 0x100e6cb8
push eax
mov ecx, esi
call fcn.100201d0
lea ecx, [ebp - 0x2f8]
call fcn.1000ad70
xor eax, eax
jmp 0x100e6d94
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x100e6d35
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
push dword [ebp - 0x250]
lea eax, [ebp - 0x224]
push eax
call fcn.10123ead
add esp, 8
test eax, eax
jne 0x100e6d17
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x100e6d17
cmp dword [ebp - 0x14], esi
je 0x100e6d27
lea eax, [ebp - 0x248]
push eax
push edi
call ebx
test eax, eax
jne 0x100e6ce2
jmp 0x100e6d87
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x24c], eax
jmp 0x100e6d87
push str.GetProcessPid
mov edx, 4
lea ecx, [ebp - 0x3a0]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 1
cmp byte [esi + 0x48], 0
je 0x100e6d68
mov edx, str.Process32First_failed_err
mov ecx, esi
call fcn.10020800
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x48], 0
je 0x100e6d7c
push eax
mov ecx, esi
call fcn.100201d0
lea ecx, [ebp - 0x3a0]
call fcn.1000ad70
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24c]
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.101157bc
mov esp, ebp
pop ebp
ret
Function at 0x100e7e60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015190d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1019a128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0xc
call fcn.101157fb
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [eax], 0x2710
mov dword [eax + 4], esi
mov dword [eax + 8], 0x100e7f20
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x100b9d10
push 0
push 0
call fcn.101236ea
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x100e7efd
cmp dword [esi + 0x20], 0
jne 0x100e7f0b
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x20], eax
mov al, 1
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101157bc
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [ebp - 0x18], 0
call fcn.10113718
call fcn.10123552
int3
Function at 0x100ecf40
Capabilities:
Get hostname

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101526d6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x5c
mov eax, dword [0x1019a128]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
xor eax, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
mov dword [ebp - 4], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x10
push eax
lea eax, [ebp - 0x34]
push eax
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x100ed00b
lea ecx, [ebp - 0x34]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100ecfd2
sub ecx, edx
lea eax, [ebp - 0x34]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x50]
call fcn.10002060
cmp dword [ebp - 0x3c], 8
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x2c]
cmovae edx, dword [ebp - 0x50]
call fcn.1000c880
lea ecx, [ebp - 0x2c]
mov eax, 1
jmp 0x100ed037
push 0
push 0x10164d88
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
call fcn.10002c70
lea ecx, [ebp - 0x68]
mov eax, 2
movups xmm0, xmmword [ecx]
mov dword [esi], 0
or eax, 4
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
test al, 2
je 0x100ed0ac
mov edx, dword [ebp - 0x54]
and eax, 0xfffffffd
mov dword [ebp - 0x38], eax
cmp edx, 0x10
jb 0x100ed0ac
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100ed09f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100ed109
push edx
push ecx
call fcn.101157ed
mov eax, dword [ebp - 0x38]
add esp, 8
test al, 1
je 0x100ed0e0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x100ed0e0
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100ed0d6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100ed109
push edx
push ecx
call fcn.101157ed
add esp, 8
lea ecx, [ebp - 0x50]
call fcn.10002400
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101157bc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.1011a6bf
int3
Function at 0x100ee870
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [esi], 0
lea ecx, [esi + 0x40]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
movzx eax, byte [edi + 0x1c]
mov byte [esi + 0x1c], al
mov dword [esi + 0x20], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [esi + 0x20], xmm0
movq xmm0, qword [edi + 0x30]
movq qword [esi + 0x30], xmm0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0xf
mov byte [edi + 0x20], 0
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
movzx eax, byte [edi + 0x3c]
mov byte [esi + 0x3c], al
lea eax, [edi + 0x40]
push eax
call fcn.1001bd90
mov byte [esi + 0x84], 0
cmp byte [edi + 0x84], 0
je 0x100ee970
mov dword [esi + 0x64], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
movups xmm0, xmmword [edi + 0x64]
movups xmmword [esi + 0x64], xmm0
movq xmm0, qword [edi + 0x74]
movq qword [esi + 0x74], xmm0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0xf
mov byte [edi + 0x64], 0
mov eax, dword [edi + 0x7c]
mov dword [esi + 0x7c], eax
mov al, byte [edi + 0x80]
mov byte [esi + 0x80], al
mov byte [esi + 0x84], 1
mov byte [esi + 0xa8], 0
cmp byte [edi + 0xa8], 0
je 0x100ee9f6
mov dword [esi + 0x88], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0
movups xmm0, xmmword [edi + 0x88]
movups xmmword [esi + 0x88], xmm0
movq xmm0, qword [edi + 0x98]
movq qword [esi + 0x98], xmm0
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0xf
mov byte [edi + 0x88], 0
mov eax, dword [edi + 0xa0]
mov dword [esi + 0xa0], eax
mov al, byte [edi + 0xa4]
mov byte [esi + 0xa4], al
mov byte [esi + 0xa8], 1
mov byte [esi + 0xcc], 0
cmp byte [edi + 0xcc], 0
je 0x100eea7c
mov dword [esi + 0xac], 0
mov dword [esi + 0xbc], 0
mov dword [esi + 0xc0], 0
movups xmm0, xmmword [edi + 0xac]
movups xmmword [esi + 0xac], xmm0
movq xmm0, qword [edi + 0xbc]
movq qword [esi + 0xbc], xmm0
mov dword [edi + 0xbc], 0
mov dword [edi + 0xc0], 0xf
mov byte [edi + 0xac], 0
mov eax, dword [edi + 0xc4]
mov dword [esi + 0xc4], eax
mov al, byte [edi + 0xc8]
mov byte [esi + 0xc8], al
mov byte [esi + 0xcc], 1
mov byte [esi + 0xf0], 0
cmp byte [edi + 0xf0], 0
je 0x100eeb02
mov dword [esi + 0xd0], 0
mov dword [esi + 0xe0], 0
mov dword [esi + 0xe4], 0
movups xmm0, xmmword [edi + 0xd0]
movups xmmword [esi + 0xd0], xmm0
movq xmm0, qword [edi + 0xe0]
movq qword [esi + 0xe0], xmm0
mov dword [edi + 0xe0], 0
mov dword [edi + 0xe4], 0xf
mov byte [edi + 0xd0], 0
mov eax, dword [edi + 0xe8]
mov dword [esi + 0xe8], eax
mov al, byte [edi + 0xec]
mov byte [esi + 0xec], al
mov byte [esi + 0xf0], 1
pop edi
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x10102e80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x1019a128]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edx
push esi
push edi
mov edi, dword [ebp + 8]
mov edx, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
push 0
lea esi, [esp + 0x34]
mov dword [esp + 0x34], 0
push esi
push edx
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10102eda
call ebx
mov ecx, eax
xor esi, esi
mov eax, 0x1019abc0
jmp 0x10102ee5
mov esi, dword [esp + 0x30]
xor ecx, ecx
mov eax, 0x1019ab88
mov eax, dword [eax + 4]
cmp eax, dword [0x1019ab8c]
jne 0x10102ef4
test ecx, ecx
je 0x10102f0f
call ebx
cmp eax, 0xea
jne 0x10102f37
add edi, esi
je 0x10102f23
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
jmp 0x10102eb0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.101157bc
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x34]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101157bc
mov esp, ebp
pop ebp
ret
mov edx, str.read_file_failed
lea ecx, [esp + 0x1c]
call fcn.10068960
push 0x10197920
lea eax, [esp + 0x20]
push eax
call fcn.101179f2
int3

Function at 0x10103020
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x1019a128]
xor eax, esp
mov dword [esp + 0x44], eax
lea eax, [esp]
mov dword [esp], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 8]
xor ecx, esp
mov edx, dword [esp + 0xc]
call fcn.101157bc
mov esp, ebp
pop ebp
ret
Function at 0x10103060
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015489b
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x1019a128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xfffe
call fcn.10115c68
add esp, 4
mov esi, eax
push 0xfffe
push 0
push esi
call fcn.10117ff0
add esp, 0xc
mov dword [ebp - 0x34], esi
push 0x7fff
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
jne 0x10103154
push str.system_info::get_ospartion
lea edx, [eax + 4]
lea ecx, [ebp - 0xe0]
call fcn.1000aed0
add esp, 4
mov edi, eax
mov byte [ebp - 4], 1
cmp byte [edi + 0x48], 0
je 0x101030f8
mov edx, str.GetSystemWindowsDirectory_err
mov ecx, edi
call fcn.100205a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [edi + 0x48], 0
je 0x1010310c
push eax
mov ecx, edi
call fcn.100201d0
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0
call fcn.1000ad70
xor eax, eax
mov dword [ebp - 0x28], 0
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10103140
sub ecx, edx
sar ecx, 1
push ecx
push 0
jmp 0x101031c1
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10103160
sub ecx, edx
xor eax, eax
sar ecx, 1
cmp ecx, 3
jae 0x10103190
push 3
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0x10176ec4
jmp 0x101031c1
mov word [esi + 6], ax
mov ecx, esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x101031b0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10002060
push esi
call fcn.1011582b
add esp, 4
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 2
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x10103248
push str.system_info::get_ospartion_available_size
lea edx, [eax + 4]
lea ecx, [ebp - 0x188]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 3
cmp byte [esi + 0x48], 0
je 0x10103225
mov edx, str.GetDiskFreeSpaceEx_err
mov ecx, esi
call fcn.100205a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x48], 0
je 0x10103239
push eax
mov ecx, esi
call fcn.100201d0
lea ecx, [ebp - 0x188]
call fcn.1000ad70
xor esi, esi
jmp 0x10103252
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
shrd esi, ecx, 0x14
lea ecx, [ebp - 0x28]
call fcn.10002400
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101157bc
mov esp, ebp
pop ebp
ret
Function at 0x101052c0
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10154d00
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x1019a128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.100b3220
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 0
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 0
push ecx
push 5
push eax
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
jne 0x10105368
push str.IsOSUserLoggedIn::operator___
lea edx, [eax + 0x10]
lea ecx, [ebp - 0xc4]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0
cmp byte [esi + 0x48], 0
je 0x10105347
mov edx, str.WTSQuerySessionInformation_WTSUserName_failed_err
mov ecx, esi
call fcn.10020800
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x48], 0
je 0x1010535b
push eax
mov ecx, esi
call fcn.100201d0
lea ecx, [ebp - 0xc4]
call fcn.1000ad70
jmp 0x101053a3
cmp dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x18]
je 0x1010539c
test edx, edx
je 0x1010539c
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10105380
sub ecx, esi
sar ecx, 1
je 0x1010539c
push edx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov al, 1
jmp 0x101053a5
push edx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101157bc
mov esp, ebp
pop ebp
ret
Function at 0x10106540
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10154fec
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1019a128]
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
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 0
call fcn.10004840
mov dword [ebp - 4], 0
lea esi, [ebx + 0x38]
mov dword [ebx], vtable.http::istreambuf.0
mov dword [ebp - 0x24], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, 0x190
mov byte [esi + 0xe], 1
mov word [esi + 0xc], ax
push 0
push 0
push 0
push 1
xorps xmm0, xmm0
mov byte [ebp - 4], 4
push str.WindowsProductAgentService
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
test edi, edi
jne 0x101065e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x1019abc0
jmp 0x101065ef
mov ecx, dword [ebp - 0x18]
mov edx, 0x1019ab88
mov eax, dword [edx + 4]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], 1
cmp eax, dword [0x1019ab8c]
jne 0x1010665f
test ecx, ecx
jne 0x1010665f
mov eax, dword [esi]
test eax, eax
je 0x1010661b
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi], 0
mov dword [esi], edi
mov dword [ebp - 0x1c], edi
push ecx
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 5
push eax
mov ecx, edi
mov dword [ebp - 0x14], 0x800
call fcn.10107690
add esp, 8
mov dword [ebx + 0x48], 0
mov eax, ebx
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.101157bc
mov esp, ebp
pop ebp
ret
push edx
push ecx
mov edx, str.WinHttpOpen_failed
lea ecx, [ebp - 0x38]
call fcn.1002dfd0
add esp, 8
lea eax, [ebp - 0x38]
push 0x10197920
push eax
call fcn.101179f2
int3

Function at 0x10106e50
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push 0x20000000
push 0xffffffffffffffff
push edx
push dword [ecx]
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x10106e81
mov eax, dword [esp + 0x18]
mov edx, 0x1019ab88
jmp 0x10106e8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x1019abc0
mov ecx, dword [edx + 4]
cmp ecx, dword [0x1019ab8c]
jne 0x10106e9f
test eax, eax
jne 0x10106e9f
mov esp, ebp
pop ebp
ret
push edx
push eax
mov edx, str.WinHttpAddRequestHeaders_failed
lea ecx, [esp + 0xc]
call fcn.1002dfd0
add esp, 8
lea eax, [esp + 4]
push 0x10197920
push eax
call fcn.101179f2
int3