joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10024dc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1012c4d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 8]
push ecx
xor esi, esi
mov ecx, 0x10138e00
mov dword [esp + 0xc], 0x10024c30
mov dword [esp + 0x10], esi
call fcn.1000de40
neg al
sbb eax, eax
and eax, 0x10138e00
mov dword [esp + 8], eax
mov dword [esp + 0x30], 1
lea edx, [esp + 8]
push edx
mov ecx, 0x101a54d8
call fcn.10024f20
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 8]
cmp eax, esi
je 0x10024e48
mov eax, dword [eax]
cmp eax, esi
je 0x10024e44
lea ecx, [esp + 0x10]
push 1
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov dword [esp + 8], esi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 8]
push ecx
mov ecx, 0x10136c60
mov dword [esp + 0xc], 0x10024ce0
mov dword [esp + 0x10], esi
call fcn.1000de40
neg al
sbb eax, eax
and eax, 0x10136c60
mov dword [esp + 8], eax
mov dword [esp + 0x30], 4
lea edx, [esp + 8]
push edx
mov ecx, 0x101a53a8
call fcn.10010e90
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 8]
cmp eax, esi
je 0x10024eb5
mov eax, dword [eax]
cmp eax, esi
je 0x10024eb1
lea ecx, [esp + 0x10]
push 1
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov dword [esp + 8], esi
mov ecx, dword [esp + 0x28]
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x10026340
Capabilities:
Get disk information
Get storage device properties

Disassembly:
sub esp, 0x30
mov eax, dword [0x10194180]
push ebx
movsx ebx, byte [esp + 0x38]
mov dword [esp + 0x30], eax
xor eax, eax
push ebx
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], eax
push str._c:_
push ecx
mov word [esp + 0x38], ax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
mov dword [esp + 0xc], eax
jne 0x1002639c
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x2c]
call fcn.100571c6
add esp, 0x30
ret
cmp eax, 1
jne 0x100263b1
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
call fcn.100571c6
add esp, 0x30
ret
push esi
push edi
xor eax, eax
push ebx
mov dword [esp + 0x1d], eax
lea ecx, [esp + 0x1c]
mov word [esp + 0x21], ax
push str.._c:
xor edi, edi
push ecx
xor esi, esi
mov byte [esp + 0x24], 0
mov byte [esp + 0x2b], al
mov dword [esp + 0x4c], edi
call fcn.100578f4
add esp, 0xc
push edi
push 0x80
push 3
push edi
push 3
push edi
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100264db
push edi
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea edx, [esp + 0x44]
push edx
push 8
xor ecx, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x18]
push eax
push 0xc
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x34]
push ecx
push 0x2d1400
push ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, eax
cmp esi, edi
je 0x100264d4
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x100264d4
push ebp
push eax
call fcn.100567f4
mov ebp, eax
add esp, 4
cmp ebp, edi
je 0x100264d3
mov ecx, dword [esp + 0x14]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x48]
push eax
push ecx
push ebp
push 0xc
lea edx, [esp + 0x38]
push edx
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, eax
test esi, esi
je 0x100264ca
mov ecx, dword [ebp + 0x1c]
xor eax, eax
cmp ecx, 7
sete al
mov esi, eax
test esi, esi
je 0x100264ca
mov eax, dword [esp + 0x18]
cmp eax, 3
je 0x100264c5
cmp eax, 6
je 0x100264c5
xor esi, esi
jmp 0x100264ca
mov esi, 1
push ebp
call fcn.100569b3
add esp, 4
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x38]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.100571c6
add esp, 0x30
ret
Function at 0x100264f0
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1012c700
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 0x101360cc
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.10008c50
mov dword [esp + 0x20], 0
mov bl, 0x61
mov byte [esp + 0x14], bl
mov esi, 1
mov ebp, 0x61
lea ebx, [ebx]
push ebp
lea eax, [esp + 0x14]
push str._c:_
push eax
call fcn.1000d2e0
add esp, 0xc
test edi, esi
je 0x10026594
cmp bl, 0x61
je 0x10026592
cmp bl, 0x62
je 0x10026592
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
je 0x10026592
mov edx, dword [esp + 0x14]
push edx
call fcn.10026340
add esp, 4
test eax, eax
jne 0x10026592
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10026594
xor edi, esi
inc bl
inc ebp
shl esi, 1
cmp bl, 0x7a
mov byte [esp + 0x14], bl
jle 0x10026540
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100265c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x100265e0
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1012c728
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x10194180]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 0x101360cc
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.10008c50
mov dword [esp + 0x40], 0
push str.floppyDiskFlag
push str.SOFTWAREHUAWEISPES5.0CompositesCPM
lea eax, [esp + 0x20]
push connect
push eax
call fcn.100eb30d
add esp, 0x10
mov byte [esp + 0x40], 1
mov bl, 0x61
mov byte [esp + 0x14], bl
mov esi, 1
mov ebp, 0x61
push ebp
lea ecx, [esp + 0x14]
push str._c:_
push ecx
call fcn.1000d2e0
add esp, 0xc
test edi, esi
je 0x100266e3
cmp bl, 0x61
je 0x10026675
cmp bl, 0x62
jne 0x100266c0
mov edx, dword [esp + 0x2c]
push 1
push 0x101368e0
push edx
push 0
lea ecx, [esp + 0x28]
call fcn.1001bd30
test eax, eax
jne 0x100266a0
push eax
push str.The_a_b_represent_floopy_disk_letter.
call fcn.10010990
add esp, 8
jmp 0x100266e1
mov eax, dword [esp + 0x14]
push eax
call fcn.10026340
add esp, 4
test eax, eax
je 0x100266c0
push 0
push str.The_a_b_represent_USB_driver_letter.
call fcn.10010990
add esp, 8
mov ecx, dword [esp + 0x14]
push ecx
call fcn.10026340
add esp, 4
test eax, eax
je 0x100266e1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100266e3
xor edi, esi
inc bl
inc ebp
shl esi, 1
cmp bl, 0x7a
mov byte [esp + 0x14], bl
jle 0x10026654
mov byte [esp + 0x40], 0
cmp dword [esp + 0x30], 0x10
jb 0x1002670e
mov eax, dword [esp + 0x1c]
push eax
call fcn.101209d7
add esp, 4
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10026749
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x38]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x28]
pop ebx
call fcn.100571c6
add esp, 0x34
ret
Function at 0x10027f80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012ca10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov eax, dword [0x10194180]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x118]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [ebp - 0x118]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10027fd6
mov ecx, dword [str.drivers_]
mov dword [edi], ecx
mov edx, dword [0x1013915c]
mov dword [edi + 4], edx
mov ax, word [0x10139160]
mov word [edi + 8], ax
lea edi, [ebp - 0x118]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10028000
mov ecx, dword [str.CDRomFlt.sys]
mov dword [edi], ecx
mov edx, dword [0x10137b8c]
mov dword [edi + 4], edx
mov eax, dword [0x10137b90]
mov dword [edi + 8], eax
mov cl, byte [0x10137b94]
mov byte [edi + 0xc], cl
mov dword [ebp - 4], 0
push str..CDRomFlt
lea edx, [ebp - 0x118]
push edx
push str.CDRomFlt
push str.CDRomFlt
lea ecx, [esi + 0x28]
call fcn.10025ba0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.100571c6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100280a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012ca20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov eax, dword [0x10194180]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x118]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [ebp - 0x118]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100280f6
mov ecx, dword [str.drivers_]
mov dword [edi], ecx
mov edx, dword [0x1013915c]
mov dword [edi + 4], edx
mov ax, word [0x10139160]
mov word [edi + 8], ax
lea edi, [ebp - 0x118]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10028120
mov ecx, dword [str.CDRomFlt.sys]
mov dword [edi], ecx
mov edx, dword [0x10137b8c]
mov dword [edi + 4], edx
mov eax, dword [0x10137b90]
mov dword [edi + 8], eax
mov cl, byte [0x10137b94]
mov byte [edi + 0xc], cl
push 0
push 0
push 3
push 0
push 1
push accept
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], 0
push str..CDRomFlt
lea eax, [ebp - 0x118]
push eax
push str.CDRomFlt
push str.CDRomFlt
lea ecx, [esi + 0x28]
call fcn.10025ba0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.100571c6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10028430
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1012cb39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov esi, ecx
push 0x3a
mov dword [esp + 0xc], esi
call fcn.100262d0
mov dword [esp + 0x18], 0
lea edi, [esi + 0x1c]
push 0xffffffffffffffff
mov ecx, edi
mov dword [esi], vtable.CPlugCDRomWriteControl.0
mov dword [esp + 0x10], edi
call fcn.1006e480
mov byte [esp + 0x18], 1
mov dword [edi], vtable.nsdev::toys::CWaitableTimer.0
mov byte [esp + 0x18], 2
lea edi, [esi + 0x24]
mov dword [esp + 0xc], edi
call fcn.10120b20
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x18], 4
lea ecx, [esi + 0x28]
call fcn.10025b20
mov byte [esp + 0x18], 5
mov dword [esi + 0x30], 0
mov dword [esp + 0x18], 0xffffffff
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x10028a20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1012cc60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
push edi
mov dword [esp + 0x20], 2
mov eax, dword [esp + 0x28]
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call esi
mov ecx, dword [esp + 0x2c]
push ecx
mov dword [esp + 0x10], eax
call esi
mov edx, dword [esp + 0x30]
push edx
mov dword [esp + 0x14], eax
call esi
mov dword [esp + 0x14], eax
mov ecx, 4
lea edi, [esp + 0x10]
lea esi, [esp + 0xc]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
mov ebp, 0xffffffff
je 0x10028a86
sbb eax, eax
sbb eax, ebp
test eax, eax
jl 0x10028ae4
mov ecx, 4
lea edi, [esp + 0x14]
lea esi, [esp + 0xc]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10028aa1
sbb eax, eax
sbb eax, ebp
test eax, eax
jg 0x10028ae4
mov byte [esp + 0x20], 1
lea ecx, [esp + 0x28]
call fcn.10001b80
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x2c]
call fcn.10001b80
mov dword [esp + 0x20], ebp
lea ecx, [esp + 0x30]
call fcn.10001b80
pop edi
pop esi
mov al, 1
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
mov byte [esp + 0x20], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10028b06
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [esp + 0x20], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10028b28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x10028b47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
xor al, al
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
Function at 0x1002a9c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012cfc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov eax, dword [0x10194180]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
or ebx, 0xffffffff
cmp dword [esi + 0x58], ebx
jne 0x1002ab7f
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x118]
rep stosd dword es:[edi], eax
call fcn.1002a920
push 0x104
test eax, eax
je 0x1002aa99
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [ebp - 0x118]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1002aa30
mov ecx, dword [str._syswow64drivers_]
mov dword [edi], ecx
mov edx, dword [0x1013942c]
mov dword [edi + 4], edx
mov eax, dword [0x10139430]
mov dword [edi + 8], eax
mov ecx, dword [0x10139434]
mov dword [edi + 0xc], ecx
mov dx, word [0x10139438]
mov word [edi + 0x10], dx
mov al, byte [0x1013943a]
mov byte [edi + 0x12], al
lea edi, [ebp - 0x118]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1002aa74
mov ecx, dword [str.GS.sys]
mov dword [edi], ecx
mov dx, word [0x10137bb4]
mov word [edi + 4], dx
mov al, byte [0x10137bb6]
mov byte [edi + 6], al
jmp 0x1002ab03
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [ebp - 0x118]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1002aab0
mov edx, dword [str.drivers_]
mov dword [edi], edx
mov eax, dword [0x1013915c]
mov dword [edi + 4], eax
mov cx, word [0x10139160]
mov word [edi + 8], cx
lea edi, [ebp - 0x118]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1002aae0
mov edx, dword [str.GS.sys]
mov dword [edi], edx
mov ax, word [0x10137bb4]
mov word [edi + 4], ax
mov cl, byte [0x10137bb6]
mov byte [edi + 6], cl
mov dword [ebp - 4], 0
push str..FsCrypt
lea edx, [ebp - 0x118]
push edx
push 0x10138360
push 0x10138360
lea ecx, [esi + 0x44]
call fcn.10025ba0
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x48]
mov dword [esi + 0x58], eax
push 0
push 0
push 3
push 0
push 1
push accept
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edx, [ebp - 0x11c]
push edx
mov eax, dword [esi + 0x58]
push eax
call fcn.10016e40
add esp, 8
test al, al
je 0x1002ab70
cmp dword [ebp - 0x11c], 0x1204a
je 0x1002ab7f
push 2
push str.FsCrypt_located_a_driver_with_the_wrong_version.
call fcn.10010990
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.100571c6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002b2d0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x1012d253
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov eax, dword [0x10194180]
push ebx
push esi
push edi
mov dword [esp + 0x120], eax
xor eax, eax
mov ebx, 1
push ebx
mov dword [esp + 0x1c], 0
mov ecx, 0x41
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
push 0x23
lea eax, [esp + 0x24]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10008c50
mov dword [esp + 0x12c], ebx
push ebx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
call fcn.1002a860
mov byte [esp + 0x12c], 2
mov eax, dword [eax]
push 0x101366a0
push eax
call fcn.10057ca9
add esp, 8
test eax, eax
setne byte [esp + 0xf]
mov byte [esp + 0x12c], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002b38c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esp + 0xf]
test al, al
je 0x1002b3a3
push ebx
push 0x101366a0
lea ecx, [esp + 0x18]
call fcn.1001f3d0
push 4
push str.TEMP
lea ecx, [esp + 0x18]
call fcn.1001f3d0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1002b3ce
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.10007380
mov esi, dword [esp + 0x138]
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [esp + 0x12c], bl
mov dword [esp + 0x18], ebx
mov dword [esp + 0x12c], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1002b41e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x124]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x118]
pop ebx
call fcn.100571c6
add esp, 0x124
ret 4
Function at 0x1002d420
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012d750
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1e8
mov eax, dword [0x10194180]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x11c]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov dword [ebp - 0x128], 0x104
mov ebx, 1
mov dword [ebp - 0x12c], ebx
xor edi, edi
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x124], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x120]
push eax
push 0x20019
push edi
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push connect
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call esi
test eax, eax
je 0x1002d4cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Open_HKEY_LOCAL_MACHINE_Key__error
lea ecx, [ebp - 0x1f0]
call fcn.1006e6d0
push 0x10180678
lea ecx, [ebp - 0x1f0]
push ecx
call fcn.10056f02
mov edx, dword [ebp + 8]
push edx
push str._sConnection
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x124]
push ecx
push 0x20019
push edi
lea edx, [ebp - 0x11c]
push edx
mov eax, dword [ebp - 0x120]
push eax
call esi
test eax, eax
je 0x1002d53c
mov ecx, dword [ebp - 0x120]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Open_Key_SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_error
lea ecx, [ebp - 0x1b0]
call fcn.1006e6d0
push 0x10180678
lea edx, [ebp - 0x1b0]
push edx
call fcn.10056f02
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x12c]
push edx
push edi
push str.PnpInstanceID
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1002d5a8
mov ecx, dword [ebp - 0x124]
push ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
mov edx, dword [ebp - 0x120]
push edx
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Get_PnpInstanceID_error
lea ecx, [ebp - 0x170]
call fcn.1006e6d0
push 0x10180678
lea eax, [ebp - 0x170]
push eax
call fcn.10056f02
push 3
push 0x10139b00
lea ecx, [ebp - 0x11c]
push ecx
call fcn.100581c0
add esp, 0xc
test eax, eax
je 0x1002d5f7
mov edx, dword [ebp - 0x124]
push edx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
mov eax, dword [ebp - 0x120]
push eax
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.100571c6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x130], ebx
mov ecx, dword [ebp - 0x124]
push ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
mov edx, dword [ebp - 0x120]
push edx
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
jmp 0x1002d5dc
Function at 0x10035860
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x1012e6e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x10194180]
push ebx
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x30], eax
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x1c], 0
mov dword [esp + 0x40], ebp
add ecx, 0x18
push ecx
lea eax, [esp + 0x1c]
push eax
call fcn.10041140
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x24]
add esp, 8
cmp eax, 0x10
jae 0x100358c2
lea esi, [esp + 0x1c]
cmp esi, ebp
push ecx
mov dword [esp + 0x18], esp
mov ebx, esp
je 0x100358dc
mov ebp, esi
lea ecx, [ebp + 1]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x100358d2
sub ebp, ecx
push ebp
mov ecx, ebx
call fcn.10001520
mov edi, dword [ebx]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov byte [eax + ebp], 0
mov byte [esp + 0x44], 0
mov ecx, dword [esp + 0x14]
add ecx, 0x90
call fcn.10016a40
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x30], 0x10
jb 0x1003592c
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.101209d7
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
call fcn.100571c6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret