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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x10086fff
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x10086ff6
push 0x10081950
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], eax
push 0x10081948
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc], eax
push 0x1008193c
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], eax
push 0x10081930
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x14], eax
push 0x10081928
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x18], eax
push 0x10081920
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x1c], eax
push 0x10081914
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x20], eax
push 0x10081908
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x24], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 8], 0
je 0x10086fed
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
je 0x10086fed
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x10], 0
je 0x10086fed
mov edx, dword [ebp - 8]
cmp dword [edx + 0x14], 0
je 0x10086fed
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 0
je 0x10086fed
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x1c], 0
je 0x10086fed
mov edx, dword [ebp - 8]
cmp dword [edx + 0x20], 0
je 0x10086fed
mov eax, dword [ebp - 8]
cmp dword [eax + 0x24], 0
je 0x10086fed
mov dword [ebp - 4], 1
jmp 0x10086ff4
mov dword [ebp - 4], 0
jmp 0x10086ffd
mov dword [ebp - 4], 0
jmp 0x10087006
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x1008ac80
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jge 0x1008acd4
mov edx, 1
test edx, edx
je 0x1008acc3
jmp 0x1008acd0
push 0x10082074
call fcn.1008c4d0
add esp, 4
xor eax, eax
jmp 0x1008acdd
xor eax, eax
cmp eax, dword [ebp - 4]
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret 4
Function at 0x1008acf0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1008ad49
mov edx, 1
test edx, edx
je 0x1008ad38
jmp 0x1008ad45
push 0x1008208c
call fcn.1008c4d0
add esp, 4
xor eax, eax
jmp 0x1008ad92
cmp dword [ebp - 4], 1
jne 0x1008ad89
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1008ad82
xor eax, eax
cmp dword [ebp - 0xc], 0
sete al
jmp 0x1008ad92
mov eax, 1
jmp 0x1008ad92
xor edx, edx
cmp edx, dword [ebp - 4]
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret 4
Function at 0x1008c7e0
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x10091040]
xor eax, ebp
mov dword [ebp - 0x64], eax
mov eax, dword [0x10091558]
and eax, 1
jne 0x1008c818
mov ecx, dword [0x10091558]
or ecx, 1
mov dword [0x10091558], ecx
call fcn.1008c970
mov dword [0x10091554], eax
mov eax, 4
call fcn.1008f220
mov dword [ebp - 0x100], esp
mov edx, dword [ebp - 0x100]
mov dword [ebp - 0x10], edx
push 0x1c
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1008c84c
xor eax, eax
jmp 0x1008c94b
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x60], edx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
sub edx, 1
not edx
and edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
mov eax, dword [0x10091364]
sub eax, 1
neg eax
sbb eax, eax
and eax, 0xffff1000
add eax, 0x11000
add eax, dword [ebp - 0x60]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 8]
jae 0x1008c89e
xor eax, eax
jmp 0x1008c94b
cmp dword [0x10091364], 1
je 0x1008c916
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x5c], edx
push 0x1c
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1008c8c8
xor eax, eax
jmp 0x1008c94b
mov edx, dword [ebp - 0x5c]
add edx, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x48]
and eax, 0x1000
je 0x1008c8ad
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x44]
and edx, 0x100
je 0x1008c8f3
mov eax, 1
jmp 0x1008c94b
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x5c]
jae 0x1008c8ff
xor eax, eax
jmp 0x1008c94b
push 4
push 0x1000
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
jmp 0x1008c91c
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x5c], eax
mov ecx, dword [0x10091364]
sub ecx, 1
neg ecx
sbb ecx, ecx
and ecx, 0x103
add ecx, 1
mov dword [ebp - 4], ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x100]
mov ecx, dword [ebp - 0x64]
xor ecx, ebp
call fcn.1008f0a6
mov esp, ebp
pop ebp
ret

Function at 0x1008cf80
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov ecx, dword [ebp + 8]
push ecx
push 1
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret 8
Function at 0x1008cfc0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x10091040]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x10], 0
push 0xf003f
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x128]
mov edx, dword [ecx]
push edx
lea ecx, [ebp - 0x10]
call fcn.1008cef0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1008d021
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x11c], eax
lea ecx, [ebp - 0x10]
call fcn.1008ce30
mov eax, dword [ebp - 0x11c]
jmp 0x1008d0b6
mov dword [ebp - 4], 0x100
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x118]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1008d087
lea edx, [ebp - 0x118]
push edx
lea ecx, [ebp - 0x10]
call fcn.1008cfc0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1008d07e
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x120], eax
lea ecx, [ebp - 0x10]
call fcn.1008ce30
mov eax, dword [ebp - 0x120]
jmp 0x1008d0b6
mov dword [ebp - 4], 0x100
jmp 0x1008d028
lea ecx, [ebp - 0x10]
call fcn.1008ce30
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x128]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 0x124], eax
lea ecx, [ebp - 0x10]
call fcn.1008ce30
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.1008f0a6
mov esp, ebp
pop ebp
ret 4

Function at 0x1008e3d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.1008e770
test eax, eax
je 0x1008e4a6
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1008e46d
cmp dword [ebp - 0x10], 1
jne 0x1008e44a
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x100824d0
push 0x40000
call fcn.10088450
add esp, 0x10
mov dword [ebp - 4], 1
jmp 0x1008e46b
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x100824a4
push 0x20000
call fcn.10088450
add esp, 0x10
mov dword [ebp - 4], 0
jmp 0x1008e48e
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x1008246c
push 0x40000
call fcn.10088450
add esp, 0x10
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0x294]
je 0x1008e4a6
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1008e4c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x10091040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x40]
call fcn.1008e770
test eax, eax
je 0x1008e5d5
mov dword [ebp - 0x3c], 0x20
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x38]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1008e59c
cmp dword [ebp - 0x38], 4
jne 0x1008e53c
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x34]
mov dword [ecx], edx
mov dword [ebp - 4], 1
jmp 0x1008e57e
cmp dword [ebp - 0x38], 1
jne 0x1008e55d
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll_atol]
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ebp - 4], 1
jmp 0x1008e57e
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x10082554
push 0x20000
call fcn.10088450
add esp, 0x10
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x10082530
push 0x40000
call fcn.10088450
add esp, 0x10
jmp 0x1008e5bd
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x100824f4
push 0x40000
call fcn.10088450
add esp, 0x10
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax + 0x294]
je 0x1008e5d5
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008f0a6
mov esp, ebp
pop ebp
ret 8

Function at 0x1008e5f0
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.1008e770
test eax, eax
je 0x1008e69b
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1008e662
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x100825bc
push 0x40000
call fcn.10088450
add esp, 0x10
jmp 0x1008e683
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x10082584
push 0x20000
call fcn.10088450
add esp, 0x10
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0x294]
je 0x1008e69b
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1008e6b0
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.1008e770
test eax, eax
je 0x1008e75c
mov dword [ebp - 0x10], 4
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
push 4
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1008e723
mov dword [ebp - 4], 1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x10082618
push 0x40000
call fcn.10088450
add esp, 0x10
jmp 0x1008e744
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x100825e0
push 0x20000
call fcn.10088450
add esp, 0x10
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax + 0x294]
je 0x1008e75c
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x1008ea10
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
push eax
push 0x10082838
mov ecx, dword [ebp - 4]
call fcn.1008e4c0
test eax, eax
je 0x1008ea33
jmp 0x1008ea3c
mov ecx, dword [ebp - 4]
mov dword [ecx], 1
mov edx, dword [ebp - 4]
add edx, 4
push edx
push 0x10082828
mov ecx, dword [ebp - 4]
call fcn.1008e4c0
test eax, eax
je 0x1008ea56
jmp 0x1008ea60
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 4]
add ecx, 8
push ecx
push 0x1008281c
mov ecx, dword [ebp - 4]
call fcn.1008e4c0
test eax, eax
je 0x1008ea7a
jmp 0x1008ea84
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x1008eb43
push 0x104
push 0
mov ecx, dword [ebp - 4]
add ecx, 0xc
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
mov edx, dword [ebp - 4]
add edx, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jbe 0x1008eb39
mov eax, dword [ebp - 4]
add eax, 0xb
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov dl, byte [ecx + 1]
mov byte [ebp - 9], dl
add dword [ebp - 8], 1
cmp byte [ebp - 9], 0
jne 0x1008eac6
mov edi, dword [ebp - 8]
mov eax, dword [0x10082814]
mov dword [edi], eax
mov cx, word [0x10082818]
mov word [edi + 4], cx
mov dl, byte [0x1008281a]
mov byte [edi + 6], dl
mov eax, dword [ebp - 4]
add eax, 0xb
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x11], dl
add dword [ebp - 0x10], 1
cmp byte [ebp - 0x11], 0
jne 0x1008eb00
mov edi, dword [ebp - 0x10]
mov eax, dword [0x10082804]
mov dword [edi], eax
mov ecx, dword [0x10082808]
mov dword [edi + 4], ecx
mov edx, dword [0x1008280c]
mov dword [edi + 8], edx
mov al, byte [0x10082810]
mov byte [edi + 0xc], al
jmp 0x1008eb43
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
je 0x1008ec12
push 0x104
push 0
mov eax, dword [ebp - 4]
add eax, 0x110
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
mov ecx, dword [ebp - 4]
add ecx, 0x110
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jbe 0x1008ec08
mov edx, dword [ebp - 4]
add edx, 0x10f
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov cl, byte [eax + 1]
mov byte [ebp - 0x19], cl
add dword [ebp - 0x18], 1
cmp byte [ebp - 0x19], 0
jne 0x1008eb91
mov edi, dword [ebp - 0x18]
mov edx, dword [0x10082814]
mov dword [edi], edx
mov ax, word [0x10082818]
mov word [edi + 4], ax
mov cl, byte [0x1008281a]
mov byte [edi + 6], cl
mov edx, dword [ebp - 4]
add edx, 0x10f
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov cl, byte [eax + 1]
mov byte [ebp - 0x21], cl
add dword [ebp - 0x20], 1
cmp byte [ebp - 0x21], 0
jne 0x1008ebce
mov edi, dword [ebp - 0x20]
mov edx, dword [0x100827f4]
mov dword [edi], edx
mov eax, dword [0x100827f8]
mov dword [edi + 4], eax
mov ecx, dword [0x100827fc]
mov dword [edi + 8], ecx
mov dl, byte [0x10082800]
mov byte [edi + 0xc], dl
jmp 0x1008ec12
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1008f550
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1008f563
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1008f55f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x1008f590
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x1008f5cf
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1008f5c5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1008f5d1
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1008f5b5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1004db60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10177a30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.1016a40c
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.10051b00
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x1004dbb4
jmp dword [ecx*4 + 0x1004dd1c]
mov al, byte [esi]
test al, al
je 0x1004dbe2
cmp al, 0x20
je 0x1004dbce
cmp al, 0xa1
jne 0x1004dbe2
cmp byte [esi + 1], al
jne 0x1004dbe2
test al, 0x80
je 0x1004dbda
mov al, byte [esi + 1]
inc esi
test al, al
je 0x1004dbe2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1004dbc1
test ecx, ecx
je case.default.0x1004dbb4
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x1004dbb4
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x1004dc28
cmp dl, 0xa1
jne 0x1004dc1c
cmp byte [eax + 1], 0xa1
jne 0x1004dc1c
test ecx, ecx
jne 0x1004dc14
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1004dc3c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x1004dc56
jmp 0x1004dc3c
cmp dl, 0x20
jne 0x1004dc3a
test ecx, ecx
jne 0x1004dc33
mov edi, eax
mov ecx, 1
jmp 0x1004dc3c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x1004dbfc
cmp ecx, 1
jne case.default.0x1004dbb4
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1004dbb4
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1004dbb4
mov al, byte [esi]
test al, al
je 0x1004dcae
test al, 0x80
mov byte [esp + 0x3c], al
je 0x1004dc94
mov cl, byte [esi + 1]
test cl, cl
je 0x1004dcae
cmp al, 0xa1
jne 0x1004dc84
cmp cl, al
je 0x1004dc91
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.10051d90
inc esi
jmp 0x1004dca6
cmp al, 0x20
je 0x1004dca6
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10051dd0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1004dc6d
push 0
lea ecx, [esp + 0x14]
call fcn.10051dd0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10061c40
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x1004dce1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x1024b768
call fcn.10051d00
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.1016a39e
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x1005a400
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x101783fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.1016a113
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x1005a482
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.10166e64
mov eax, dword [eax]
push 0x103323a4
push eax
call fcn.1014d684
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.1016a39e
test bl, bl
je 0x1005a482
push 0x103323a4
lea ecx, [esp + 0xc]
call fcn.1016a77a
push 0x10335f40
lea ecx, [esp + 0xc]
call fcn.1016a77a
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x1005a4be
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.1016a39e
jmp 0x1005a589
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x1005a542
lea edx, [esp + 0x7c]
push 0x10335f3c
push edx
call fcn.1014d684
add esp, 8
test eax, eax
je 0x1005a542
lea eax, [esp + 0x7c]
push 0x10335f38
push eax
call fcn.1014d684
add esp, 8
test eax, eax
je 0x1005a542
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1005a4d2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.1016a39e
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x1005ad80
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x1005ade2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc