joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100047b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100a7770
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0xc
test eax, eax
push ebx
push ebp
push esi
je 0x100049ef
push eax
call fcn.10034f5f
add esp, 4
test eax, eax
je 0x100049ef
mov esi, dword [esp + 0x34]
test esi, esi
je 0x100049ef
push esi
call fcn.10034f5f
add esp, 4
test eax, eax
je 0x100049ef
mov ebp, dword [esp + 0x38]
test ebp, ebp
je 0x100049ef
push ebp
call fcn.10034f5f
add esp, 4
test eax, eax
je 0x100049ef
push esi
lea ecx, [esp + 0x10]
call fcn.1001ffc0
push 0x5c
push 0x2f
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0
call fcn.10022590
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x1000499b
lea eax, [esp + 0x38]
push 4
push eax
lea ecx, [esp + 0x14]
call fcn.10022ca0
mov eax, dword [eax]
push str..exe
push eax
mov byte [esp + 0x28], 1
call fcn.100356a9
add esp, 8
test eax, eax
je 0x100048b3
lea ecx, [esp + 0x34]
push 5
push ecx
lea ecx, [esp + 0x14]
call fcn.10022ca0
mov eax, dword [eax]
push str..oeax
push eax
call fcn.100356a9
add esp, 8
lea ecx, [esp + 0x34]
test eax, eax
setne bl
call fcn.10020760
test bl, bl
je 0x100048b3
mov bl, 1
jmp 0x100048b5
xor bl, bl
lea ecx, [esp + 0x38]
mov byte [esp + 0x20], 0
call fcn.10020760
test bl, bl
je 0x100048d5
push str..exe
lea ecx, [esp + 0x10]
call fcn.100213b0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100048ed
test al, 0x10
jne 0x100049c5
push ebp
call fcn.100040d0
mov esi, eax
add esp, 4
test esi, esi
jne 0x10004976
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push eax
call fcn.1001ffc0
mov ecx, dword [esp + 0x2c]
mov bl, 2
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call fcn.1001ffc0
lea edx, [esp + 0x14]
push 0x7c
push edx
mov byte [esp + 0x28], 3
call fcn.10002db0
lea eax, [esp + 0x18]
push 0x7c
push eax
call fcn.10002db0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
push 5
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
call fcn.10004ae0
add esp, 0x24
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x20], bl
call fcn.10020760
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 0
call fcn.10020760
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.10020760
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 0xc]
mov esi, 0x15027
mov dword [esp + 0x20], 0xffffffff
call fcn.10020760
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 0xc]
mov esi, 0x1502f
mov dword [esp + 0x20], 0xffffffff
call fcn.10020760
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
pop esi
pop ebp
mov eax, 0x15027
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x10004f40
Capabilities:
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100a7868
push eax
mov dword fs:[0], esp
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
xor edi, edi
test ebx, ebx
je 0x10005056
push ebx
call fcn.10034f5f
add esp, 4
test eax, eax
je 0x10005056
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x10005056
push esi
call fcn.10034f5f
add esp, 4
test eax, eax
je 0x10005056
push esi
call fcn.100040d0
mov esi, eax
add esp, 4
test esi, esi
jne 0x1000505b
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebp, 0xffffffff
cmp eax, ebp
je 0x1000504f
test al, 0x10
jne 0x1000504f
mov eax, dword [0x100ac914]
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x20]
push 9
push ecx
push ebx
mov dword [esp + 0x24], esi
call fcn.10004b90
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10005040
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
test edx, edx
mov eax, dword [ebx - 8]
lea edi, [eax + 1]
mov dword [esp + 0x2c], edi
je 0x10005040
mov eax, dword [esp + 0x28]
cmp eax, edi
jb 0x10005039
lea ecx, [eax + eax]
xor eax, eax
mov ebp, ecx
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
push ebx
and ecx, 3
push edx
rep stosb byte es:[edi], al
call fcn.10034f3a
add esp, 8
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.10020760
mov edi, dword [esp + 0x2c]
jmp 0x1000505b
mov esi, 0x15032
xor edi, edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], ebp
call fcn.10020760
jmp 0x1000505b
mov esi, 0x15024
jmp 0x1000505b
mov esi, 0x15027
mov eax, dword [esp + 0x30]
test eax, eax
je 0x10005065
mov dword [eax], esi
mov ecx, dword [esp + 0x10]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x10005b80
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100a78cb
push eax
mov eax, dword [0x100d700c]
mov dword fs:[0], esp
sub esp, 0xe14
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
jne 0x10005db9
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x61e]
mov word [esp + 0x61c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x416]
mov word [esp + 0x414], bx
rep stosd dword es:[edi], eax
push str.OAgent.ini
mov dword [0x100d700c], 1
mov dword [esp + 0xc], ebx
stosw word es:[edi], ax
call fcn.10001080
push eax
lea eax, [esp + 0x41c]
push 0x100c08c4
push eax
call fcn.10035545
add esp, 0x10
lea ecx, [esp + 0x414]
lea edx, [esp + 0x61c]
push ecx
push 0x400
push edx
push 0x100d7010
push 0x100ac674
push str.AgentConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x10005c7a
cmp word [esp + 0xe1a], bx
jne 0x10005c7a
lea eax, [esp + 0x14]
push 0x400
lea ecx, [esp + 0x620]
push eax
push ecx
call fcn.1008ccb0
add esp, 0xc
mov dword [esp + 8], eax
jmp 0x10005c7e
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x10005d83
lea ecx, [esp + 0xc]
call fcn.1002da30
push 0x20019
push str.SOFTWAREClassesCLSIDAFFAEF68_CDC5_4aad_9D3F_997C0D55927BProgID
push reloc.WS2_32.dll_bind
lea ecx, [esp + 0x18]
mov dword [esp + 0xe30], ebx
call fcn.1002dba0
test eax, eax
je 0x10005cfa
lea edx, [esp + 8]
lea ecx, [esp + 0xc]
push edx
push 0x100ac708
call fcn.1002dfc0
cmp eax, ebx
je 0x10005cfa
mov ecx, dword [esp + 8]
cmp ecx, 0x400
jae 0x10005ced
mov edx, ecx
push esi
mov esi, eax
lea edi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10005cf1
mov dword [esp + 8], ebx
push eax
call fcn.100353ae
add esp, 4
lea ecx, [esp + 0xc]
call fcn.1002dbf0
lea ecx, [esp + 0xc]
mov dword [esp + 0xe24], 0xffffffff
call fcn.1002db20
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x10005d83
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x61c]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x620]
push eax
push 0x100d7010
push 0x100ac708
push str.ED30_8AC4_11D5_8930_A730
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
test eax, eax
jbe 0x10005d7b
cmp word [esp + 0xe1a], bx
jne 0x10005d7b
lea ecx, [esp + 0x14]
push 0x400
lea edx, [esp + 0x620]
push ecx
push edx
call fcn.1008ccb0
add esp, 0xc
jmp 0x10005d7f
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x10005db9
cmp eax, 4
jbe 0x10005db9
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x10005db9
cmp dword [esp + 0x14], 1
je 0x10005db9
mov edx, dword [esp + 0x30]
and edx, 0xffff
lea ecx, [edx + edx + 0x22]
cmp ecx, ebx
je 0x10005db9
add eax, 0xfffffffc
cmp ecx, eax
ja 0x10005db9
mov eax, dword [esp + 0x1c]
mov dword [0x100d7008], eax
mov ecx, dword [esp + 0xe1c]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0xe20
ret
Function at 0x10007730
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x100a7b23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x100ac914]
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
lea edi, [esi + 4]
mov dword [edi], eax
mov dword [esi], 0x100ac7a8
mov eax, dword [0x100ac914]
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov byte [esp + 0x24], 4
test eax, eax
je 0x100077a2
call fcn.10062b70
push eax
lea ecx, [esp + 0x18]
push str.__lu
push ecx
call fcn.100236e0
add esp, 0xc
mov eax, dword [esp + 0x34]
test eax, eax
je 0x100077c3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea edx, [esp + 0x14]
push str.__lu
push edx
call fcn.100236e0
add esp, 0xc
mov eax, dword [esp + 0x38]
test eax, eax
je 0x100077e4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [esp + 0x10]
push str.__lu
push eax
call fcn.100236e0
add esp, 0xc
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10007805
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0xc]
push 0x100c0988
push ecx
call fcn.100236e0
add esp, 0xc
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push edx
call fcn.1001ffc0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x38]
push edx
push eax
push ecx
push str._s_s_s_s_s
push edi
mov byte [esp + 0x40], 5
call fcn.100236e0
add esp, 0x1c
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 4
call fcn.10020760
lea ecx, [esp + 8]
mov byte [esp + 0x24], 3
call fcn.10020760
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 2
call fcn.10020760
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call fcn.10020760
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.10020760
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0x14
Function at 0x100078d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100a7b58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x100ac914]
push esi
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov byte [esp + 0x1c], 3
cmp eax, 0xffffffff
je 0x10007929
push eax
lea eax, [esp + 0x14]
push str.__lu
push eax
call fcn.100236e0
add esp, 0xc
mov eax, dword [esp + 0x2c]
cmp eax, 0xffffffff
je 0x10007945
push eax
lea ecx, [esp + 0x10]
push str.__lu
push ecx
call fcn.100236e0
add esp, 0xc
mov eax, dword [esp + 0x30]
cmp eax, 0xffffffff
je 0x10007961
push eax
lea edx, [esp + 0xc]
push str.__lu
push edx
call fcn.100236e0
add esp, 0xc
mov eax, dword [esp + 0x34]
cmp eax, 0xffffffff
je 0x1000797d
push eax
lea eax, [esp + 8]
push 0x100c0988
push eax
call fcn.100236e0
add esp, 0xc
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
call fcn.1001ffc0
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
add esi, 4
push str._s_s_s_s_s
push esi
mov byte [esp + 0x38], 4
call fcn.100236e0
add esp, 0x1c
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 3
call fcn.10020760
lea ecx, [esp + 4]
mov byte [esp + 0x1c], 2
call fcn.10020760
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 1
call fcn.10020760
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call fcn.10020760
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.10020760
mov ecx, dword [esp + 0x14]
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x14

Function at 0x10007ab0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100a7bb7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x100ac914]
push esi
mov esi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 0x18], 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov byte [esp + 0x18], 2
test eax, eax
je 0x10007afc
push 0x100c09cc
jmp 0x10007b01
push 0x100c09bc
lea ecx, [esp + 8]
call fcn.100209e0
mov eax, dword [esi + 4]
mov ecx, dword [esp + 4]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x100c09b0
push edx
call fcn.100236e0
mov esi, dword [esp + 0x30]
add esp, 0x10
lea eax, [esp + 8]
mov ecx, esi
push eax
call fcn.1001fd60
mov dword [esp + 0xc], 1
lea ecx, [esp + 4]
mov byte [esp + 0x18], 1
call fcn.10020760
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call fcn.10020760
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x1000f1f0
Capabilities:
Get graphical window text

Disassembly:
call fcn.10033d40
test eax, eax
je 0x1000f20f
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
ret
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebp, ebp
test edi, edi
je 0x1000f290
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x1000f290
lea ecx, [esi + esi]
xor eax, eax
mov edx, ecx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.100353b9
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1000f290
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebp, eax
test ebp, ebp
je 0x1000f290
push esi
mov esi, dword [esp + 0x1c]
push esi
push 0xffffffffffffffff
push ebx
xor ebp, ebp
call fcn.1001a430
add esp, 0x10
test eax, eax
je 0x1000f290
push esi
call fcn.10034f5f
add esp, 4
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret

Function at 0x10015b90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov ecx, 0x100d7508
jmp 0x10015bc0
push 0xffffffffffffffff
push 0x100a86e2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 8], esi
mov dword [esi + 0x60], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x64], edi
lea ecx, [esi + 0x7c]
mov dword [esp + 0x14], edi
call fcn.10026080
lea ecx, [esi + 0x8c]
mov byte [esp + 0x14], 1
call fcn.10026080
lea ecx, [esi + 0x9c]
mov byte [esp + 0x14], 2
call fcn.1002d1a0
mov ecx, esi
mov byte [esp + 0x14], 3
mov dword [esi], 0x100ac7f4
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
call fcn.10015d40
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x10015fc0
Capabilities:
Acquire debug privileges

Disassembly:
mov eax, dword [0x100d75c4]
test eax, eax
jne 0x10015fdf
push 1
push str.SeDebugPrivilege
push 0xffffffffffffffff
call fcn.1008fb20
add esp, 0xc
mov dword [0x100d75c4], eax
ret

Function at 0x10016f00
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x100a87a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
push esi
push edi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.100260f0
mov ebp, dword [esp + 0x3c]
push 0xffffffffffffffff
push 0
mov ecx, ebp
call fcn.100260f0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, dword [esi + 0x70]
mov dword [esp + 0x38], eax
test ecx, ecx
je 0x10016fb5
cmp eax, ecx
jne 0x10016fb5
mov eax, dword [esi + 0x74]
test eax, eax
je 0x10016fb5
cmp edi, eax
jb 0x10016fb5
add eax, 0x493e0
cmp eax, edi
jb 0x10016fb5
mov ecx, dword [esi + 0x78]
lea eax, [esi + 0x9c]
inc ecx
push 1
mov dword [esi + 0x78], ecx
push eax
lea ecx, [esp + 0x18]
call fcn.1002d6d0
lea ecx, [esi + 0x7c]
mov dword [esp + 0x30], 0
push ecx
mov ecx, ebx
call fcn.100262d0
add esi, 0x8c
mov ecx, ebp
push esi
call fcn.100262d0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x10017024
push ebp
push ebx
mov ecx, esi
mov dword [esi + 0x78], 0
call fcn.10017050
lea edx, [esi + 0x9c]
push 1
push edx
lea ecx, [esp + 0x24]
call fcn.1002d6d0
mov eax, dword [esp + 0x38]
mov dword [esi + 0x74], edi
lea edi, [esi + 0x7c]
push 0xffffffffffffffff
push 0
mov ecx, edi
mov dword [esp + 0x38], 1
mov dword [esi + 0x70], eax
call fcn.100260f0
push ebx
mov ecx, edi
call fcn.100262d0
add esi, 0x8c
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.100260f0
push ebp
mov ecx, esi
call fcn.100262d0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.1002d730
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x10017050
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x100a87c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, dword [esp + 0x240]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.100260f0
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.100260f0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
test ecx, edx
je 0x10017189
mov edx, dword [0x100c13b8]
mov cx, word [0x100c13bc]
mov dword [esp + 0x18], edx
add word [esp + 0x18], ax
lea edx, [esp + 0x18]
mov word [esp + 0x1c], cx
push edx
lea ecx, [esp + 0x28]
mov word [esp + 0x22], bx
call fcn.1001ffc0
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.10026690
mov edx, dword [0x100ac914]
mov dword [esp + 0x14], edx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x2c]
push 0x103
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x248], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
push edx
mov word [esp + 0x236], bx
call fcn.100209e0
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.10026690
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.10020760
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.10020760
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jb 0x100170ab
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret 8
Function at 0x10017750
Capabilities:
Get disk information

Disassembly:
sub esp, 0x214
xor eax, eax
push ebp
mov dword [esp + 6], eax
push esi
mov word [esp + 0xe], ax
mov eax, dword [esp + 0x224]
xor ebp, ebp
push edi
cmp eax, 3
mov edi, ecx
mov word [esp + 0xc], bp
jbe 0x1001777e
mov eax, 3
mov esi, dword [esp + 0x224]
push eax
lea ecx, [esp + 0x10]
push esi
push ecx
call fcn.10034f7c
mov ax, word [esp + 0x18]
add esp, 0xc
cmp ax, 0x43
jb 0x100177a5
cmp ax, 0x5a
jbe 0x100177b1
cmp ax, 0x63
jb 0x100177dc
cmp ax, 0x7a
ja 0x100177dc
cmp word [esp + 0xe], 0x3a
jne 0x100177dc
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, ebp
je 0x100177dc
cmp eax, 2
je 0x100177dc
cmp eax, 3
je 0x100177dc
cmp eax, 5
je 0x100177dc
cmp eax, 6
jne 0x100177ea
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x214
ret 8
mov eax, dword [edi + 0x5c]
push ebx
xor ebx, ebx
test eax, eax
je 0x100177ff
push eax
call fcn.100907b0
add esp, 4
mov ebp, eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x24], 0x104
mov word [esp + 0x20], 0
call sub.MPR.dll_WNetGetConnectionW
test eax, eax
jne 0x1001788c
add esi, 4
push esi
call fcn.10034f5f
mov edi, eax
lea eax, [esp + 0x20]
push eax
call fcn.10034f5f
add edi, eax
add esp, 8
cmp edi, 0x104
jae 0x1001788c
lea ecx, [esp + 0x1c]
push esi
push ecx
call fcn.10034f10
mov edx, dword [esp + 0x234]
mov ecx, dword [esp + 0x230]
dec edx
lea eax, [esp + 0x24]
push edx
push eax
push ecx
call fcn.10034f7c
add esp, 0x14
mov ebx, 1
test ebp, ebp
je 0x10017895
call fcn.10090b30
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x214
ret 8

Function at 0x10019830
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x2001f
push esi
push ecx
push edx
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100198a8
mov eax, dword [esp + 4]
cmp eax, esi
je 0x100198a8
cmp dword [esp + 0x20], esi
je 0x10019881
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
inc ecx
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 1
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1001988d
mov edx, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
jne 0x10019896
mov esi, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret 0x18
xor eax, eax
pop esi
pop ecx
ret 0x18