joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005b60
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push esi
push edi
lea eax, [ebp - 0x118]
push eax
xor edi, edi
push edi
push edi
push 0x1c
push edi
call ebx
test eax, eax
js 0x10005d7b
push 0x28
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, edi
je 0x10005ba9
push 0x99
push 0x22
mov edx, 0x10028748
call fcn.100117e3
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x10005d7b
push 0x30
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 4], eax
cmp eax, edi
je 0x10005bee
push 0x98
push 0x2b
mov edx, 0x1002876c
call fcn.100117e3
push 0x38
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 0x10], eax
mov esi, 0x82
cmp eax, edi
je 0x10005c11
push esi
push 0x33
mov edx, 0x10028798
call fcn.100117e3
push 0x38
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 8], eax
cmp eax, edi
je 0x10005c2f
push esi
push 0x33
mov edx, 0x100287cc
call fcn.100117e3
push 0x38
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x10005c51
push 0x80
push 0x30
mov edx, 0x10028800
call fcn.100117e3
lea eax, [ebp - 0x118]
push eax
push edi
push edi
push 0x1c
push edi
call ebx
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
js 0x10005c93
push dword [ebp - 4]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x118]
push eax
call esi
test eax, eax
je 0x10005c93
lea edi, [ebp - 0x118]
call fcn.100122a2
xor edi, edi
lea eax, [ebp - 0x118]
push eax
push edi
push edi
push 0x1c
push edi
call ebx
test eax, eax
js 0x10005ccf
push dword [ebp - 0x10]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x118]
push eax
call esi
test eax, eax
je 0x10005ccf
lea edi, [ebp - 0x118]
call fcn.100122a2
xor edi, edi
lea eax, [ebp - 0x118]
push eax
push edi
push edi
push 0x1c
push edi
call ebx
test eax, eax
js 0x10005d0b
push dword [ebp - 8]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x118]
push eax
call esi
test eax, eax
je 0x10005d0b
lea edi, [ebp - 0x118]
call fcn.100122a2
xor edi, edi
lea eax, [ebp - 0x118]
push eax
push edi
push edi
push 0x1c
push edi
call ebx
test eax, eax
js 0x10005d47
push dword [ebp - 0xc]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x118]
push eax
call esi
test eax, eax
je 0x10005d47
lea edi, [ebp - 0x118]
call fcn.100122a2
xor edi, edi
mov eax, dword [ebp - 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005d4d
sub eax, edx
lea esi, [eax + 1]
call fcn.10012679
mov dword [0x1002b190], eax
cmp eax, edi
je 0x10005d7b
mov ecx, dword [ebp - 4]
sub eax, ecx
mov dl, byte [ecx]
mov byte [eax + ecx], dl
inc ecx
test dl, dl
jne 0x10005d6c
call fcn.1001af58
lea esp, [ebp - 0x128]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005d86
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push esi
push edi
lea eax, [ebp - 0x118]
push eax
xor edi, edi
push edi
push edi
push 0x1c
push edi
call ebx
test eax, eax
js 0x10005fa1
push 0x20
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, edi
je 0x10005dcf
push 0x98
push 0x1c
mov edx, 0x100288f0
call fcn.100117e3
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x10005fa1
push 0x28
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 4], eax
mov esi, 0x81
cmp eax, edi
je 0x10005e15
push esi
push 0x25
mov edx, 0x1002890c
call fcn.100117e3
push 0x30
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x10005e33
push esi
push 0x2d
mov edx, 0x10028934
call fcn.100117e3
push 0x30
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 8], eax
cmp eax, edi
je 0x10005e55
push 0x94
push 0x2d
mov edx, 0x10028964
call fcn.100117e3
push 0x30
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x10005e77
push 0x8c
push 0x2a
mov edx, 0x10028994
call fcn.100117e3
lea eax, [ebp - 0x118]
push eax
push edi
push edi
push 0x1c
push edi
call ebx
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
js 0x10005eb9
push dword [ebp - 4]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x118]
push eax
call esi
test eax, eax
je 0x10005eb9
lea edi, [ebp - 0x118]
call fcn.100122a2
xor edi, edi
lea eax, [ebp - 0x118]
push eax
push edi
push edi
push 0x1c
push edi
call ebx
test eax, eax
js 0x10005ef5
push dword [ebp - 0x10]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x118]
push eax
call esi
test eax, eax
je 0x10005ef5
lea edi, [ebp - 0x118]
call fcn.100122a2
xor edi, edi
lea eax, [ebp - 0x118]
push eax
push edi
push edi
push 0x1c
push edi
call ebx
test eax, eax
js 0x10005f31
push dword [ebp - 8]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x118]
push eax
call esi
test eax, eax
je 0x10005f31
lea edi, [ebp - 0x118]
call fcn.100122a2
xor edi, edi
lea eax, [ebp - 0x118]
push eax
push edi
push edi
push 0x1c
push edi
call ebx
test eax, eax
js 0x10005f6d
push dword [ebp - 0xc]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x118]
push eax
call esi
test eax, eax
je 0x10005f6d
lea edi, [ebp - 0x118]
call fcn.100122a2
xor edi, edi
mov eax, dword [ebp - 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005f73
sub eax, edx
lea esi, [eax + 1]
call fcn.10012679
mov dword [0x1002b190], eax
cmp eax, edi
je 0x10005fa1
mov ecx, dword [ebp - 4]
sub eax, ecx
mov dl, byte [ecx]
mov byte [eax + ecx], dl
inc ecx
test dl, dl
jne 0x10005f92
call fcn.1001af58
lea esp, [ebp - 0x128]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005fad
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push esi
push edi
lea eax, [ebp - 0x118]
push eax
xor edi, edi
push edi
push edi
push 0x1a
push edi
call ebx
test eax, eax
js 0x100061c8
push 0x20
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, edi
je 0x10005ff6
push 0x93
push 0x1a
mov edx, 0x10028830
call fcn.100117e3
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x100061c8
push 0x28
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 4], eax
cmp eax, edi
je 0x1000603b
push 0x90
push 0x23
mov edx, 0x1002884c
call fcn.100117e3
push 0x30
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 0x10], eax
mov esi, 0x88
cmp eax, edi
je 0x1000605e
push esi
push 0x2b
mov edx, 0x10028870
call fcn.100117e3
push 0x30
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 8], eax
cmp eax, edi
je 0x10006080
push 0x89
push 0x2b
mov edx, 0x1002889c
call fcn.100117e3
push 0x30
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x1000609e
push esi
push 0x28
mov edx, 0x100288c8
call fcn.100117e3
lea eax, [ebp - 0x118]
push eax
push edi
push edi
push 0x1c
push edi
call ebx
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
js 0x100060e0
push dword [ebp - 4]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x118]
push eax
call esi
test eax, eax
je 0x100060e0
lea edi, [ebp - 0x118]
call fcn.100122a2
xor edi, edi
lea eax, [ebp - 0x118]
push eax
push edi
push edi
push 0x1c
push edi
call ebx
test eax, eax
js 0x1000611c
push dword [ebp - 0x10]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x118]
push eax
call esi
test eax, eax
je 0x1000611c
lea edi, [ebp - 0x118]
call fcn.100122a2
xor edi, edi
lea eax, [ebp - 0x118]
push eax
push edi
push edi
push 0x1c
push edi
call ebx
test eax, eax
js 0x10006158
push dword [ebp - 8]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x118]
push eax
call esi
test eax, eax
je 0x10006158
lea edi, [ebp - 0x118]
call fcn.100122a2
xor edi, edi
lea eax, [ebp - 0x118]
push eax
push edi
push edi
push 0x1c
push edi
call ebx
test eax, eax
js 0x10006194
push dword [ebp - 0xc]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x118]
push eax
call esi
test eax, eax
je 0x10006194
lea edi, [ebp - 0x118]
call fcn.100122a2
xor edi, edi
mov eax, dword [ebp - 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000619a
sub eax, edx
lea esi, [eax + 1]
call fcn.10012679
mov dword [0x1002b190], eax
cmp eax, edi
je 0x100061c8
mov ecx, dword [ebp - 4]
sub eax, ecx
mov dl, byte [ecx]
mov byte [eax + ecx], dl
inc ecx
test dl, dl
jne 0x100061b9
call fcn.1001af58
lea esp, [ebp - 0x128]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100061d3
Capabilities:
Enumerate files on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push esi
push edi
xor al, al
lea edi, [ebp - 0x248]
mov ecx, 0x140
rep stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push 0x21
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x100062a7
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x100062a7
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x1000623e
push 0x87
push 7
mov edx, 0x100297e0
call fcn.100117e3
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10006240
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10006250
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100062a7
lea edi, [ebp - 0x21c]
call fcn.100122a2
lea eax, [ebp - 0x248]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10006283
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea esp, [ebp - 0x250]
pop edi
pop esi
leave
ret

Function at 0x100062b1
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x1000633b
push 0x10
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x100062f4
push 0x95
push 0xc
mov edx, 0x10029614
call fcn.100117e3
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100062f6
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10006306
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x108]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x1000633b
lea eax, [ebp - 0x108]
push eax
call fcn.100122c3
lea esp, [ebp - 0x110]
pop edi
pop esi
leave
ret
Function at 0x10006366
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
and dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x100064f2
push 7
call fcn.100119a6
mov dword [ebp - 8], eax
test eax, eax
je 0x100064f2
push 0x38
xor al, al
pop ecx
lea edi, [ebp - 0x4c]
rep stosb byte es:[edi], al
mov esi, 0x98
mov eax, esi
call fcn.1001dad0
mov eax, esp
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100063be
push esi
push 0x97
mov edx, 0x10029ef0
call fcn.100117e3
push 0x30
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100063e0
push 0x8d
push 0x2f
mov edx, 0x10029fbc
call fcn.100117e3
push 0x10
pop eax
call sub.ntdll.dll__alloca_probe
mov ebx, esp
test ebx, ebx
je 0x10006401
push 0x8a
push 0xf
mov eax, ebx
mov edx, 0x1002a02c
call fcn.100117e3
push 0x28
pop eax
call sub.ntdll.dll__alloca_probe
mov edi, esp
test edi, edi
je 0x10006422
push 0x87
push 0x24
mov eax, edi
mov edx, 0x10029f98
call fcn.100117e3
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov esi, esp
test esi, esi
je 0x10006443
push 0x8b
push 5
mov eax, esi
mov edx, 0x10029e18
call fcn.100117e3
call fcn.100052df
cmp dword [0x1002b750], 0
je 0x10006458
call fcn.10005877
jmp 0x1000645b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x44], eax
xor eax, eax
inc eax
mov dword [ebp - 0x24], ecx
mov ecx, esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10006485
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x4c]
sub ecx, esi
push eax
mov dword [ebp - 0x30], ecx
call fcn.1000f58c
mov edi, eax
xor eax, eax
cmp edi, eax
je 0x100064ea
cmp dword [edi], eax
je 0x100064ea
cmp dword [edi + 4], eax
je 0x100064ea
cmp dword [edi + 8], eax
je 0x100064ea
mov esi, 0x104
call fcn.10012679
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x100064ea
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push dword [ebp - 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push dword [edi + 4]
mov eax, dword [edi + 8]
push ebx
call fcn.10012238
mov esi, dword [ebp - 8]
call fcn.1001272d
mov eax, dword [ebp - 0xc]
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100066bb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [esi + 0x3c]
and dword [ebp - 0x10], 0
and dword [ebp - 4], 0
lea ecx, [eax + esi + 0x78]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
push ebx
mov dword [ebp - 0x18], eax
add eax, esi
mov ebx, dword [eax + 0x1c]
mov edx, dword [eax + 0x24]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 0x20]
push edi
mov edi, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
add edx, esi
add ecx, esi
add ebx, esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
test edi, edi
je 0x10006764
mov eax, dword [ebp - 4]
movsx edi, word [edx + eax*2]
mov dword [ebp - 0xc], edi
cmp eax, dword [ebp - 8]
jae 0x1000677a
mov eax, edi
cmp eax, dword [ebp - 0x14]
jae 0x1000677a
mov eax, dword [ebx + eax*4]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp eax, edi
jb 0x10006731
mov eax, dword [ebp - 0x1c]
add eax, edi
cmp dword [ebp - 0x20], eax
jb 0x10006759
mov eax, dword [ebp - 4]
mov ecx, dword [ecx + eax*4]
add ecx, esi
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1000673e
sub eax, edi
mov edi, eax
call fcn.100128bb
cmp eax, dword [ebp + 8]
je 0x1000676d
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x10006704
mov eax, dword [ebp - 0x10]
pop edi
pop ebx
leave
ret 4
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebx + eax*4]
add ebx, esi
mov dword [ebp - 0x10], ebx
jmp 0x10006764
xor eax, eax
jmp 0x10006767

Function at 0x1000677e
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
push ebx
push esi
mov esi, dword [eax + 0xc]
push edi
mov dl, 0x19
movzx ecx, word [esi + 0x24]
test cx, cx
je 0x10006804
and dword [ebp - 4], 0
mov eax, dword [esi + 0x28]
mov edi, ecx
test edi, edi
jle 0x10006804
cmp word [eax], 0x5c
jne 0x100067f9
add eax, 2
mov cl, byte [eax]
lea ebx, [ecx - 0x61]
cmp bl, dl
ja 0x100067be
sub cl, 0x20
cmp cl, 0x4b
jne 0x100067f9
mov cl, byte [eax + 2]
lea ebx, [ecx - 0x61]
cmp bl, dl
ja 0x100067d0
sub cl, 0x20
cmp cl, 0x45
jne 0x100067f9
mov cl, byte [eax + 4]
lea ebx, [ecx - 0x61]
cmp bl, dl
ja 0x100067e2
sub cl, 0x20
cmp cl, 0x52
jne 0x100067f9
mov cl, byte [eax + 6]
lea ebx, [ecx - 0x61]
cmp bl, dl
ja 0x100067f4
sub cl, 0x20
cmp cl, 0x4e
je 0x10006811
add eax, 2
inc dword [ebp - 4]
cmp dword [ebp - 4], edi
jl 0x100067a9
mov esi, dword [esi]
test esi, esi
jne 0x10006793
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [esi + 0x18]
jmp 0x1000680c
Function at 0x100085c4
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push esi
push edi
xor esi, esi
push 0x923d5594
mov dword [ebp - 4], esi
call fcn.100101a3
test eax, eax
je 0x10008780
push 0x34
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, esi
je 0x10008605
push 0x86
push 0x32
mov edx, 0x10029e7c
call fcn.100117e3
lea ecx, [ebp - 4]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10008780
cmp dword [ebp - 4], esi
je 0x1000878f
push 0x10
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, esi
je 0x10008645
push 0x80
push 0xd
mov edx, 0x10029eb0
call fcn.100117e3
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10008780
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x110]
push eax
call esi
test eax, eax
je 0x10008780
push 8
pop edi
mov eax, edi
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x100086ad
push 0x8b
push 7
mov edx, 0x10029ec0
call fcn.100117e3
push eax
call esi
test eax, eax
jne 0x1000874c
mov eax, edi
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x100086d6
push 0x93
push 7
mov edx, 0x10029ec8
call fcn.100117e3
push eax
call esi
test eax, eax
jne 0x1000874c
mov eax, edi
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x100086fb
push 0x95
push 7
mov edx, 0x10029ed0
call fcn.100117e3
push eax
call esi
test eax, eax
jne 0x1000874c
mov eax, edi
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x10008720
push 0x85
push 7
mov edx, 0x10029ed8
call fcn.100117e3
push eax
call esi
test eax, eax
jne 0x1000874c
mov eax, edi
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x10008745
push 0x8d
push 7
mov edx, 0x10029ee0
call fcn.100117e3
push eax
call esi
test eax, eax
je 0x10008780
mov eax, edi
call sub.ntdll.dll__alloca_probe
mov esi, esp
test esi, esi
je 0x1000876c
push 0x96
push 6
mov eax, esi
mov edx, 0x10029ee8
call fcn.100117e3
push esi
call fcn.100122c3
push str.1:_GPLS
xor eax, eax
push esi
inc eax
call fcn.10012238
cmp dword [ebp - 4], 0
je 0x1000878f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0x118]
pop edi
pop esi
leave
ret
Function at 0x10008799
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
and dword [ebp - 4], 0
push edi
push 0xc0bfbba0
call fcn.100101a3
test eax, eax
je 0x100088ae
push 0x30
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x100087d8
push 0x85
push 0x2f
mov edx, 0x10029e28
call fcn.100117e3
lea ecx, [ebp - 4]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100088ae
cmp dword [ebp - 4], eax
je 0x100088bd
push 0xc
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x10008818
push 0x92
push 0xa
mov edx, 0x10029c04
call fcn.100117e3
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100088ae
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x100088ae
push 0x14
pop eax
call sub.ntdll.dll__alloca_probe
mov edi, esp
test edi, edi
je 0x10008877
push 0x98
push 0x10
mov eax, edi
mov edx, 0x10029e58
call fcn.100117e3
call fcn.100122a2
push edi
call fcn.1001253a
push 0x18
pop eax
call sub.ntdll.dll__alloca_probe
mov edi, esp
test edi, edi
je 0x100088a3
push 0x91
push 0x14
mov eax, edi
mov edx, 0x10029e68
call fcn.100117e3
call fcn.100122a2
push edi
call fcn.1001253a
cmp dword [ebp - 4], 0
je 0x100088bd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0x114]
pop edi
leave
ret
Function at 0x10009aa2
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x44
xor ebx, ebx
pop eax
mov dword [ebp - 4], ebx
call fcn.1001dad0
mov eax, esp
cmp eax, ebx
je 0x10009acf
push 0x8b
push 0x43
mov edx, 0x10029120
call fcn.100117e3
lea ecx, [ebp - 4]
push ecx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x10009b48
cmp dword [ebp - 4], ebx
je 0x10009b56
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov edi, esp
push 4
pop esi
cmp edi, ebx
je 0x10009b0b
push 0x89
push esi
mov eax, edi
mov edx, 0x10029164
call fcn.100117e3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push dword [ebp - 4]
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10009b48
cmp dword [ebp - 8], ebx
je 0x10009b48
push esi
lea eax, [ebp - 8]
push eax
push esi
push ebx
push edi
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp - 4], ebx
je 0x10009b56
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret