joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100068a0
Capabilities:
Get file attributes

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
xor ebx, ebx
push ebx
mov byte [esp + 0x17], bl
call esi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
je 0x100068c1
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push dword [esp + 0x18]
call fcn.100067d2
mov ebp, eax
cmp ebp, ebx
pop ecx
je 0x1000691f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10006918
push ebx
call esi
test eax, eax
je 0x100068fa
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebp
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov byte [esp + 0x13], 1
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10006929
Capabilities:
Create thread
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
xor ebx, ebx
push ebx
call esi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
je 0x10006948
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100069b8
Capabilities:
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
xor ebx, ebx
push ebx
call esi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
je 0x100069d7
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
mov esi, dword [ebp + 0x10]
push ebx
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10006a0c
cmp dword [ebp - 4], esi
jne 0x10006a0c
xor eax, eax
inc eax
jmp 0x10006a0e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006a13
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push str.OpenProcessToken
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 4]
push ecx
push 0xf01ff
push dword [ebp + 8]
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
xor edi, edi
test eax, eax
push edi
je 0x10006a72
call esi
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
je 0x10006a5b
push edi
call ebx
push edi
call ebx
push edi
call esi
push edi
call ebx
push edi
call esi
push edi
call ebx
push edi
call esi
mov eax, dword [ebp - 4]
jmp 0x10006a95
call esi
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
je 0x10006a81
push edi
call ebx
push edi
call ebx
push edi
call esi
push edi
call ebx
push edi
call esi
push edi
call ebx
push edi
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006a9a
Capabilities:
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x36c
push ebx
push esi
push edi
lea eax, [ebp - 0x36c]
push str.explo
push eax
mov byte [ebp - 1], 0
call fcn.100081d0
lea eax, [ebp - 0x36c]
push str.rer.exe
push eax
call fcn.100081e0
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
add esp, 0x10
xor edi, edi
push edi
call esi
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
je 0x10006ae7
push edi
call ebx
push edi
call ebx
push edi
call esi
push edi
call ebx
push edi
call esi
push edi
call ebx
push edi
call esi
lea eax, [ebp - 0x36c]
push eax
call fcn.10006dd3
pop ecx
push edi
mov dword [ebp - 8], eax
call esi
test eax, eax
je 0x10006b13
push edi
call ebx
push edi
call ebx
push edi
call esi
push edi
call ebx
push edi
call esi
push edi
call ebx
push edi
call esi
push dword [ebp - 8]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x10006b42
xor al, al
jmp 0x10006c8e
push eax
call fcn.10006a13
cmp eax, edi
pop ecx
mov dword [ebp - 8], eax
jne 0x10006b57
xor bl, bl
jmp 0x10006c83
push 0x10
pop ecx
xor eax, eax
mov dword [ebp - 0x60], 0x44
lea edi, [ebp - 0x5c]
rep stosd dword es:[edi], eax
push 0x10
xor edi, edi
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.100082d0
push 0x44
lea eax, [ebp - 0x60]
push edi
push eax
call fcn.100082d0
add esp, 0x18
push edi
call esi
test eax, eax
je 0x10006b8f
push edi
call ebx
push edi
call ebx
push edi
call esi
push edi
call ebx
push edi
call esi
push edi
call ebx
push edi
call esi
lea eax, [ebp - 0x164]
push str.winsta0default
push eax
call fcn.100081d0
pop ecx
pop ecx
push edi
call esi
test eax, eax
je 0x10006bbe
push edi
call ebx
push edi
call ebx
push edi
call esi
push edi
call ebx
push edi
call esi
push edi
call ebx
push edi
call esi
lea eax, [ebp - 0x164]
push edi
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x34], 1
call esi
test eax, eax
je 0x10006bf1
push edi
call ebx
push edi
call ebx
push edi
call esi
push edi
call ebx
push edi
call esi
push edi
call ebx
push edi
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push dword [ebp + 8]
mov word [ebp - 0x30], 5
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x10006c77
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
test eax, eax
je 0x10006c3c
push edi
call ebx
push edi
call ebx
push edi
call esi
push edi
call ebx
push edi
call esi
push edi
call ebx
push edi
call esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
test eax, eax
je 0x10006c61
push edi
call ebx
push edi
call ebx
push edi
call esi
push edi
call ebx
push edi
call esi
push edi
call ebx
push edi
call esi
mov byte [ebp - 1], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [ebp - 1]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006c93
Capabilities:
Enumerate files on windows
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
push ebx
push 0x10009664
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x210]
push eax
push 1
xor ebx, ebx
push ebx
push 0x25
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.100081d0
lea eax, [ebp - 0x10c]
push 0x100095f4
push eax
call fcn.100081e0
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
call fcn.100081e0
add esp, 0x18
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x10006dd0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
push ebx
call esi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
je 0x10006d3a
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x454]
push 0x1000933c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x454]
push eax
call dword [ebp - 8]
push ebx
call esi
test eax, eax
je 0x10006d83
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
lea eax, [ebp - 0x350]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10006d4c
push ebx
call esi
test eax, eax
je 0x10006db3
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006dd3
Capabilities:
Check if file exists
Enumerate processes
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push ebx
mov dword [ebp - 4], eax
call esi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
je 0x10006e02
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
cmp dword [ebp - 4], 0xffffffff
je 0x10006ec3
push ebx
mov dword [ebp - 0x12c], 0x128
call esi
test eax, eax
je 0x10006e32
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Process32First
jmp 0x10006e9a
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call fcn.10007504
add esp, 0x10
test eax, eax
push ebx
je 0x10006eca
call esi
test eax, eax
je 0x10006e79
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10006e55
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
test eax, eax
je 0x10006eb1
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
call esi
test eax, eax
je 0x10006ed3
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x124]
jmp 0x10006ec5
Function at 0x10006ef6
Capabilities:
Get file attributes
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
call esi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
je 0x10006f1d
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10006ffc
push ebx
mov dword [ebp - 8], 0x104
call esi
test eax, eax
je 0x10006f62
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push 0x104
lea eax, [ebp - 0x10c]
push ebx
push eax
call fcn.100082d0
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10006fba
push dword [ebp + 0x14]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x10006ff3
push ebx
call esi
test eax, eax
je 0x10006fc4
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x14]
push 1
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000715a
Capabilities:
Create thread
Get file attributes

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebp, ecx
push edi
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x18]
xor ebx, ebx
push ebx
mov dword [ebp + 8], eax
call esi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
je 0x10007187
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
cmp dword [ebp + 4], ebx
mov dword [esp + 0x18], ebx
jle 0x1000728c
mov dword [esp + 0x1c], ebx
push ebx
call esi
test eax, eax
je 0x100071b4
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x1c]
add eax, ecx
cmp dword [eax + 8], ebx
je 0x100071fd
push ebx
call esi
test eax, eax
je 0x100071de
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x1c]
call dword [eax + ecx + 8]
jmp 0x10007210
push dword [eax + 0x10]
push dword [eax + 0xc]
push dword [eax + 4]
push dword [eax]
call fcn.10006ef6
add esp, 0x10
push ebx
call fcn.100067d2
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x20]
push ebx
mov dword [ecx + edx + 0x14], eax
call fcn.100067d2
mov edx, dword [esp + 0x24]
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
push ebx
mov dword [ecx + edx + 0x18], eax
call esi
test eax, eax
je 0x1000723e
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
lea eax, [esp + 0x10]
push eax
mov eax, dword [ebp + 8]
add eax, dword [esp + 0x20]
push ebx
push eax
push 0x10007001
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp + 8]
inc dword [esp + 0x18]
add dword [esp + 0x1c], 0x20
mov dword [ecx + edx + 0x1c], eax
mov eax, dword [esp + 0x18]
cmp eax, dword [ebp + 4]
jl 0x100071aa
push ebx
call esi
test eax, eax
je 0x10007296
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x100072b2
Capabilities:
Get file attributes

Disassembly:
push ecx
push ebx
push ebp
xor ebp, ebp
mov ebx, ecx
cmp dword [ebx + 4], ebp
mov dword [esp + 8], ebp
jle 0x10007380
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebx + 8]
add eax, ebp
cmp dword [eax + 0x1c], 0
je 0x1000736a
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
push dword [eax + ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
call esi
test eax, eax
je 0x10007307
push 0
call edi
push 0
call edi
push 0
call esi
push 0
call edi
push 0
call esi
push 0
call edi
push 0
call esi
mov eax, dword [ebx + 8]
push dword [eax + ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call esi
test eax, eax
je 0x10007338
push 0
call edi
push 0
call edi
push 0
call esi
push 0
call edi
push 0
call esi
push 0
call edi
push 0
call esi
mov eax, dword [ebx + 8]
push dword [eax + ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 8]
push dword [eax + ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
add ebp, 0x20
cmp eax, dword [ebx + 4]
jl 0x100072d4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10007384
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
xor ebx, ebx
push ebx
mov byte [ebp - 1], bl
call esi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
je 0x100073ab
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
mov dword [ebp - 8], eax
call esi
test eax, eax
je 0x100073df
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
cmp dword [ebp - 8], 0xffffffff
je 0x100074fc
push 0xd
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.100082d0
add esp, 0xc
push ebx
call esi
test eax, eax
je 0x10007414
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push 2
push ebx
push 0xfffffffffffffff3
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x1c]
push eax
push 0xd
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov byte [ebp - 0x120], 0x56
mov byte [ebp - 0x11f], 0x45
call esi
test eax, eax
je 0x10007460
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
mov byte [ebp - 0x11e], 0x52
mov byte [ebp - 0x11d], 0x49
mov byte [ebp - 0x11c], 0x44
mov byte [ebp - 0x11b], bl
call esi
test eax, eax
je 0x10007497
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push 5
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.100083c0
add esp, 0xc
test eax, eax
jne 0x100074f3
push 0xd
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call fcn.100084d0
add esp, 0xc
push ebx
mov byte [ebp - 1], 1
call esi
test eax, eax
je 0x100074e1
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10007504
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
xor ebx, ebx
push ebx
call esi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
je 0x1000751f
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
cmp dword [esp + 0x18], 0xffffffff
je 0x1000758c
push ebp
push dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
call ebp
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jge 0x10007553
mov dword [esp + 0x1c], ecx
jmp 0x1000755d
push dword [esp + 0x14]
call ebp
mov dword [esp + 0x1c], eax
push ebx
call esi
test eax, eax
je 0x10007567
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push dword [esp + 0x18]
call ebp
cmp dword [esp + 0x1c], eax
jl 0x1000758b
push dword [esp + 0x18]
call ebp
pop ebp
push 0xffffffffffffffff
push dword [esp + 0x18]
xor eax, eax
cmp byte [esp + 0x24], bl
push 0xffffffffffffffff
push dword [esp + 0x1c]
setne al
push eax
push 1
call dword [sym.imp.KERNEL32.dll_CompareStringA]
pop edi
dec eax
pop esi
dec eax
pop ebx
ret
Function at 0x432000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x6ae31337
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0x56e263dd
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x1034]
mov dword [esp + 0x38], eax
push eax
push ebx
push esi
push edi
mov esi, eax
mov ebx, edx
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1038], eax
mov dword [ebp - 0x1034], 0
mov eax, 1
lea edx, [ebp - 0x102c]
lea ecx, [ebp - 0x1014]
call fcn.00406030
call fcn.00407300
push eax
test eax, eax
jne 0x4016ad
lea eax, [ebp - 4]
push eax
call fcn.00401570
or eax, 0x20019
push eax
push 0
mov eax, ebx
test ebx, ebx
jne 0x4015fb
mov eax, 0x4142f0
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
lea ebx, [ebp - 0x1008]
push 0
push 0
push ebx
push 0
mov eax, edi
test edi, edi
jne 0x40161a
mov eax, 0x4142f0
push eax
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA
mov eax, dword [ebp - 0x1008]
cmp eax, 1
je 0x40164d
cmp eax, 2
je 0x40164d
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
mov eax, dword [ebp - 0x1038]
mov edx, 0
call fcn.004039e0
jmp 0x4016ad
mov dword [ebp - 0x1008], 0x1000
push ebx
lea eax, [ebp - 0x1004]
push eax
push 0
push 0
mov eax, edi
test edi, edi
jne 0x40166e
mov eax, 0x4142f0
push eax
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA
push 1
lea eax, [ebp - 0x1034]
push eax
lea eax, [ebp - 0x1004]
mov cx, 0
mov edx, 0xfff
call fcn.00404370
mov edx, dword [ebp - 0x1034]
mov eax, dword [ebp - 0x1038]
call fcn.004039e0
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
call fcn.004062b0
lea eax, [ebp - 0x1034]
call fcn.004032a0
pop eax
test eax, eax
je 0x4016c7
call fcn.004063e0
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4016d0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov edi, eax
mov ebx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 4]
lea eax, [ebp - 8]
mov esi, eax
push 0
push edx
push 0
call fcn.00401570
or eax, 0x2001b
push eax
push 0
push 0
push 0
mov eax, ebx
test ebx, ebx
jne 0x401710
mov eax, 0x4142f0
push eax
mov eax, edi
push eax
call sub.advapi32.dll_RegCreateKeyExA
push 0
push 0
mov eax, esi
push eax
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x40172e
mov eax, 0x4142f0
push eax
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 2
je 0x401758
cmp eax, 6
je 0x401758
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x40175f
cmp eax, 2
je 0x40175f
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
jmp 0x401799
mov dword [ebp - 8], 1
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x401769
mov eax, dword [eax - 4]
push eax
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x401776
mov eax, 0x4142f0
push eax
push dword [ebp - 8]
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x401788
mov eax, 0x4142f0
push eax
push dword [ebp - 4]
call sub.advapi32.dll_RegSetValueExA
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
pop edi
pop esi
pop ebx
leave
ret 4