joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b26d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040802f
and dword [ebp - 4], 0
cmp dword [0x43c614], 0
mov ebx, eax
jne 0x40b31e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b3cf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b3cf
push eax
call fcn.00407fbd
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43c614], eax
call esi
push eax
call fcn.00407fbd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43c618], eax
call esi
push eax
call fcn.00407fbd
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43c61c], eax
call esi
push eax
call fcn.00407fbd
pop ecx
mov dword [0x43c624], eax
test eax, eax
je 0x40b31e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407fbd
pop ecx
mov dword [0x43c620], eax
mov eax, dword [0x43c620]
cmp eax, ebx
je 0x40b376
cmp dword [0x43c624], ebx
je 0x40b376
push eax
call fcn.00408038
push dword [0x43c624]
mov esi, eax
call fcn.00408038
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b376
test edi, edi
je 0x40b376
call esi
test eax, eax
je 0x40b36d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b36d
test byte [ebp - 0xc], 1
jne 0x40b376
or dword [ebp + 0x10], 0x200000
jmp 0x40b3af
mov eax, dword [0x43c618]
cmp eax, ebx
je 0x40b3af
push eax
call fcn.00408038
pop ecx
test eax, eax
je 0x40b3af
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b3af
mov eax, dword [0x43c61c]
cmp eax, ebx
je 0x40b3af
push eax
call fcn.00408038
pop ecx
test eax, eax
je 0x40b3af
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43c614]
call fcn.00408038
pop ecx
test eax, eax
je 0x40b3cf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b3d1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401060
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
add eax, esi
nop
nop
nop
nop
nop
nop
nop
mov ebx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x20]
add ebx, esi
add ecx, esi
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 0x18]
mov dword [ebp - 4], edx
mov edx, dword [eax + 0x10]
nop
nop
nop
nop
nop
nop
nop
mov edi, dword [eax + 0x24]
add edi, esi
mov dword [ebp - 8], edi
nop
nop
nop
nop
nop
nop
nop
mov edi, dword [ebp + 0xc]
test edi, 0xffff0000
jne 0x4010e2
cmp edi, edx
jb 0x401126
mov eax, dword [eax + 0x14]
lea ecx, [eax + edx - 1]
cmp edi, ecx
ja 0x401126
sub edi, edx
mov eax, dword [ebx + edi*4]
pop edi
add eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov dword [ebp + 0xc], 0
test eax, eax
jle 0x401126
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 8]
mov eax, esi
add eax, dword [edx]
nop
nop
nop
nop
nop
nop
nop
push eax
push edi
call entry0
add esp, 8
test eax, eax
je 0x40112f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 4]
inc eax
add edx, 4
cmp eax, ecx
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], edx
jl 0x4010f3
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
xor eax, eax
pop edi
mov ax, word [ecx + edx*2]
mov eax, dword [ebx + eax*4]
add eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401150
Capabilities:
Access peb ldr_data

Disassembly:
xor ecx, ecx
mov esi, dword fs:[ecx + 0x30]
mov esi, dword [esi + 0xc]
mov esi, dword [esi + 0x1c]
mov eax, dword [esi + 8]
mov edi, dword [esi + 0x20]
mov esi, dword [esi]
cmp byte [edi + 0x18], cl
jne 0x40115c
ret
Function at 0x100094e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x100094f3
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
shl edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10009536
mov eax, dword [ebp - 0x10]
jmp 0x1000959c
cmp dword [ebp - 8], 1
je 0x10009549
cmp dword [ebp - 8], 2
je 0x10009549
mov eax, 0xd
jmp 0x1000959c
cmp dword [ebp + 0xc], 0
je 0x10009590
cmp dword [ebp - 0xc], 0
je 0x1000957f
mov eax, dword [ebp - 0xc]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x10009576
mov edx, dword [ebp - 0xc]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x1000957d
mov eax, 0xd
jmp 0x1000959c
jmp 0x10009590
mov edx, 2
imul eax, edx, 0
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov word [edx + eax], cx
mov eax, dword [ebp - 0xc]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101534c8
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1000a460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1000a484
xor eax, eax
jmp 0x1000a504
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000a49b
xor eax, eax
jmp 0x1000a504
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x1000a4e7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x1000a4e7
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x1000a4be
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x1000a4f3
xor eax, eax
jmp 0x1000a504
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x1000a501
xor eax, eax
jmp 0x1000a504
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1000fb80
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017c040
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x101fd398]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CSetupReport.0
call fcn.1002bee0
push 0
lea ecx, [ebp - 0x18]
call fcn.10011fe0
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.10011f60
lea ecx, [ebp - 0x18]
call fcn.10011fa0
mov ecx, dword [ebp - 0x10]
add ecx, 0x74
call fcn.10009c10
mov ecx, dword [ebp - 0x10]
add ecx, 0x70
call fcn.10009c10
mov ecx, dword [ebp - 0x10]
add ecx, 0x64
call fcn.10009c10
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
call fcn.10009c10
mov ecx, dword [ebp - 0x10]
add ecx, 0x5c
call fcn.10009c10
mov ecx, dword [ebp - 0x10]
add ecx, 0x58
call fcn.10009c10
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.10009c10
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.10009c10
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call fcn.10004780
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.10009c10
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.10011fa0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10010d10
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017c7c8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x2c]
call fcn.10004650
mov dword [ebp - 4], 0
push 0
push 0x200
lea ecx, [ebp - 0x2c]
call fcn.10009480
push 0x1388
lea eax, [ebp - 0x14]
push eax
push 0x200
push 0
lea ecx, [ebp - 0x2c]
call fcn.10004160
push eax
mov ecx, dword [ebp + 0xc]
call fcn.100044a0
add eax, 1
push eax
push 0
mov ecx, dword [ebp + 0xc]
call fcn.10004160
push eax
push str..pipee985eb35bca890d841971794e2c18c89
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x10010db4
push 0
mov ecx, dword [ebp - 0x14]
sub ecx, 1
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10009480
jmp 0x10010dc0
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.10009480
lea edx, [ebp - 0x2c]
push edx
call fcn.100044f0
add esp, 4
push eax
mov ecx, dword [ebp + 8]
call fcn.100045d0
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10004780
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101534c8
mov esp, ebp
pop ebp
ret
Function at 0x10010e10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017c820
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
push 4
lea ecx, [ebp - 0x1c]
call fcn.10005000
lea ecx, [ebp - 0x1c]
call fcn.1003e760
mov dword [ebp - 4], 0
push 4
lea ecx, [ebp - 0x24]
call fcn.10005000
push 0x101e05e0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.10005370
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.100055d0
xor dl, dl
mov ecx, eax
call fcn.1003e030
push 4
lea ecx, [ebp - 0x20]
call fcn.10005000
push str.GameSharedUp.exe
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.10005370
add esp, 0xc
mov byte [ebp - 4], 2
push 4
lea ecx, [ebp - 0x14]
call fcn.10005000
push 0x101e0624
lea ecx, [ebp - 0x14]
call fcn.1000af00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x14]
call fcn.10012180
push 0x101e0628
lea ecx, [ebp - 0x14]
call fcn.1001fb50
push 0
lea ecx, [ebp - 0x14]
call fcn.100055d0
mov edx, 0x7530
mov ecx, eax
call fcn.1003dcd0
add esp, 4
push 4
lea ecx, [ebp - 0x18]
call fcn.10005000
lea ecx, [ebp - 0x18]
call fcn.10007cc0
mov byte [ebp - 4], 4
push 0x101e0634
push str.schtasks__delete__tn__s__F
lea edx, [ebp - 0x18]
push edx
call fcn.10012d30
add esp, 0xc
push 0
lea ecx, [ebp - 0x18]
call fcn.100055d0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push str._action_:_exit___params_:
lea ecx, [ebp - 0x40]
call fcn.10004f90
mov byte [ebp - 4], 5
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.10010d10
add esp, 8
lea ecx, [ebp - 0x58]
call fcn.10004780
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.10004780
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.10009c10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.10009c10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.10009c10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.10009c10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.10009c10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101534c8
mov esp, ebp
pop ebp
ret
Function at 0x1001f7b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
xor eax, eax
jne 0x1001f7b9
cmp dword [ebp + 0xc], 0
je 0x1001f7cc
mov dword [ebp - 0xc], 1
jmp 0x1001f7d3
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x1001f7e6
mov eax, 0xd
jmp 0x1001f83b
xor edx, edx
jne 0x1001f7bd
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
mov ax, word [edx]
mov word [ebp - 2], ax
add dword [ebp - 8], 2
cmp word [ebp - 2], 0
jne 0x1001f7f9
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x14]
sar ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
lea eax, [edx + edx + 2]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1001fb70
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x1001fbcf
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1001fb9c
mov eax, 1
jmp 0x1001fbed
push str.RegDeleteKeyTransactedW
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1001fbcd
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0xc]
jmp 0x1001fbed
jmp 0x1001fbe8
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x1001fbe8
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x1001fbed
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x1001fcb0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x224], ecx
push 0xc
lea ecx, [ebp - 0x21c]
call fcn.10005000
push 0
lea ecx, [ebp - 0x21c]
call fcn.10009930
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.100096a0
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x1001fd3c
mov edx, dword [ebp - 0x220]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x21c]
call fcn.10009910
mov eax, dword [ebp - 0x228]
jmp 0x1001fdf1
mov dword [ebp - 0x208], 0x100
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0x204]
push edx
push 0
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1001fdc0
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.1001fcb0
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x1001fdb4
mov edx, dword [ebp - 0x220]
mov dword [ebp - 0x22c], edx
lea ecx, [ebp - 0x21c]
call fcn.10009910
mov eax, dword [ebp - 0x22c]
jmp 0x1001fdf1
mov dword [ebp - 0x208], 0x100
jmp 0x1001fd46
lea ecx, [ebp - 0x21c]
call fcn.100098c0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x224]
call fcn.1001fc00
mov dword [ebp - 0x230], eax
lea ecx, [ebp - 0x21c]
call fcn.10009910
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101534c8
mov esp, ebp
pop ebp
ret 4
Function at 0x100203a0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017d3e7
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 0x28]
call fcn.10004f90
mov dword [ebp - 4], 0
push 0
push 0x101e22dc
lea ecx, [ebp - 0x28]
call fcn.10005240
mov dword [ebp - 0x34], eax
push 0
push 0x101e22e0
lea ecx, [ebp - 0x28]
call fcn.10005240
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x1002040e
cmp dword [ebp - 0x38], 0xffffffff
je 0x10020415
mov dword [ebp + 0x10], 1
mov ecx, 0x10202870
call fcn.100055d0
test eax, eax
jne 0x10020470
push 0x78
call fcn.1015350a
add esp, 4
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x2c], 0
je 0x10020451
push 0x78
mov ecx, dword [ebp - 0x2c]
call fcn.10005000
mov ecx, dword [ebp - 0x2c]
call fcn.1000f800
mov dword [ebp - 0x30], eax
jmp 0x10020458
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x3c]
push ecx
mov ecx, 0x10202870
call fcn.10023410
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, 0x10202870
call fcn.1000e850
mov ecx, eax
call fcn.1000fad0
cmp dword [ebp + 8], 0
je 0x100204ed
cmp dword [ebp + 0x10], 0
jne 0x100204b2
push 0
mov ecx, 0x10202870
call fcn.1000e850
mov ecx, eax
call fcn.100105a0
jmp 0x100204c5
push 1
mov ecx, 0x10202870
call fcn.1000e850
mov ecx, eax
call fcn.100105a0
mov ecx, 0x10202870
call fcn.1000e850
mov ecx, eax
call fcn.10010610
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004780
mov eax, dword [ebp - 0x40]
jmp 0x10020519
push 2
mov ecx, 0x10202870
call fcn.1000e850
mov ecx, eax
call fcn.100105a0
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004780
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101534c8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1002bbc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017db28
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x40], 0xffffffff
lea eax, [ebp + 0xc]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0x10]
call fcn.1000b2d0
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x1002bc3b
push 0x101dee4f
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov edx, dword [ebp - 0x38]
or edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp + 8]
jmp 0x1002bd2f
lea ecx, [ebp - 0x30]
call fcn.10004650
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x400
mov dword [ebp - 0x18], 1
push 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
call fcn.10009480
lea ecx, [ebp - 0x14]
push ecx
push 0
lea ecx, [ebp - 0x30]
call fcn.10004160
push eax
lea edx, [ebp - 0x18]
push edx
push 0
mov ecx, dword [ebp + 0x14]
call fcn.1000b2d0
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x40], 0
je 0x1002bccb
push 0x101deea6
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov edx, dword [ebp - 0x38]
or edx, 1
mov dword [ebp - 0x38], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.10004780
mov eax, dword [ebp + 8]
jmp 0x1002bd2f
lea ecx, [ebp - 0x30]
call fcn.1000b2d0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x3c]
mov dl, byte [ecx]
mov byte [ebp - 0x31], dl
add dword [ebp - 0x3c], 1
cmp byte [ebp - 0x31], 0
jne 0x1002bcdf
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
push 0
mov ecx, dword [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x30]
call fcn.10009480
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp + 8]
call fcn.100045d0
mov eax, dword [ebp - 0x38]
or eax, 1
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.10004780
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101534c8
mov esp, ebp
pop ebp
ret
Function at 0x1002d4a0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017e122
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x101fd398]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.1002d980
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.1002de50
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.10007640
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x10], 0
jne 0x1002d56d
push 0x14
call fcn.1015350a
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], 0
je 0x1002d54a
push 0x14
mov ecx, dword [ebp - 0x14]
call fcn.10005000
push 0
push 0x10000
mov ecx, dword [ebp - 0x14]
call fcn.1002e200
mov dword [ebp - 0x18], eax
jmp 0x1002d551
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x10], 0
jne 0x1002d583
push str.error_
call fcn.1001f510
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10031480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, 0xc
call fcn.1000aff0
movzx eax, al
test eax, eax
jne 0x100314eb
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
jne 0x100314ce
push 0x101e4174
mov ecx, dword [ebp - 4]
add ecx, 0xc
call fcn.1000b2d0
push eax
call fcn.101635b9
add esp, 8
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x100314ce
xor eax, eax
jmp 0x1003150c
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1016384f
add esp, 0x10
jmp 0x10031505
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0xb4
call fcn.1000b1d0
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret 0xc