joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405880
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov eax, 0x8010
mov ebp, esp
push esi
push ebx
call fcn.00406960
lea esi, [ebp - 0x8008]
xor edx, edx
mov ebx, dword [ebp + 8]
mov dword [esp + 4], edx
mov ecx, 0x8000
mov dword [esp + 8], ecx
mov dword [esp], esi
call sub.msvcrt.dll_memset
mov eax, 0x400
mov ecx, 0xd
mov edx, 0xa
mov dword [esp + 0xc], eax
mov eax, dword [0x411680]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.KERNEL32.dll_FindResourceExA
sub esp, 0x10
test eax, eax
je 0x405a0d
mov dword [esp + 4], eax
mov edx, dword [0x411680]
mov dword [esp], edx
call sub.KERNEL32.dll_LoadResource
sub esp, 8
test eax, eax
je 0x40595b
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
test eax, eax
mov ecx, eax
je 0x40595b
xor edx, edx
mov esi, esi
movzx eax, byte [edx + ecx]
mov byte [edx + esi], al
inc edx
test al, al
jne 0x405910
mov ecx, dword [0x409028]
test ecx, ecx
je 0x405933
mov eax, dword [0x409090]
test eax, eax
jne 0x405a28
mov dword [esp], 0x4091a4
call sub.msvcrt.dll_strlen
mov dword [esp + 4], esi
mov edx, 0x20
mov word [eax + 0x4091a4], dx
mov dword [esp], 0x4091a4
call sub.msvcrt.dll_strcat
cmp byte [ebx], 0
jne 0x405967
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 4], ebx
mov dword [esp], esi
mov esi, esi
mov ebx, str.__l4j_
call sub.msvcrt.dll_strcpy
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll_strstr
test eax, eax
mov ebx, eax
je 0x4059c5
lea esi, [esi]
mov dword [esp], ebx
mov eax, 0x20
mov dword [esp + 4], eax
call sub.msvcrt.dll_strchr
test eax, eax
je 0x4059ab
cmp byte [eax + 1], 0
jne 0x405a00
mov byte [ebx], 0
mov ebx, str.__l4j_
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll_strstr
test eax, eax
mov ebx, eax
jne 0x405990
cmp byte [ebp - 0x8008], 0
je 0x405960
mov dword [esp], 0x4091a4
call sub.msvcrt.dll_strlen
mov dword [esp + 4], esi
mov ecx, 0x20
mov word [eax + 0x4091a4], cx
mov dword [esp], 0x4091a4
call sub.msvcrt.dll_strcat
jmp 0x405960
mov dword [esp], ebx
inc eax
mov dword [esp + 4], eax
jmp 0x405970
mov dword [esp], 0
call sub.KERNEL32.dll_SetLastError
mov byte [ebp - 0x8008], 0
sub esp, 4
jmp 0x40595b
mov dword [esp + 0xc], esi
mov ecx, 0xd
mov edx, str.Resource__d:_t_s_n
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x405933
Function at 0x406580
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov eax, 0x808c
mov ebp, esp
push edi
push esi
push ebx
call fcn.00406960
cld
mov edx, 0x44
xor eax, eax
lea esi, [ebp - 0x68]
xor ebx, ebx
mov edi, 0x4111b0
mov ecx, 4
rep stosd dword es:[edi], eax
mov dword [esp + 8], edx
xor edi, edi
mov dword [esp + 4], ebx
lea ebx, [ebp - 0x8068]
mov dword [esp], esi
call sub.msvcrt.dll_memset
mov dword [ebp - 0x68], 0x44
mov eax, 0x8000
mov dword [esp + 4], edi
mov edi, 0x4111b0
mov dword [esp + 8], eax
mov dword [esp], ebx
call sub.msvcrt.dll_memset
mov ecx, 0x22
mov edx, 0x4090a0
mov word [ebp - 0x8068], cx
mov dword [esp + 4], edx
mov dword [esp], ebx
call sub.msvcrt.dll_strcat
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov word [eax + ebx], 0x2022
mov byte [eax + ebx + 2], 0
mov eax, 0x4091a4
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_strcat
mov dword [esp + 0x20], esi
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x24], edi
mov eax, 1
xor edi, edi
mov dword [esp + 0x1c], esi
xor esi, esi
mov dword [esp + 0x18], ecx
mov edx, dword [0x4111c0]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], edx
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.KERNEL32.dll_CreateProcessA
sub esp, 0x28
test eax, eax
je 0x406690
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4066a3
mov ebx, dword [ebp + 0xc]
mov eax, 1
mov dword [ebx], 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + 0xc]
xor eax, eax
mov dword [edx], 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, 0xffffffff
mov dword [esp + 4], esi
mov eax, dword [0x4111b0]
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
mov edi, dword [ebp + 0xc]
sub esp, 8
mov dword [esp + 4], edi
mov ecx, dword [0x4111b0]
mov dword [esp], ecx
call sub.KERNEL32.dll_GetExitCodeProcess
mov edx, dword [0x4111b4]
sub esp, 8
mov dword [esp], edx
call sub.KERNEL32.dll_CloseHandle
mov ebx, dword [0x4111b0]
sub esp, 4
mov dword [esp], ebx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, 1
jmp 0x406682
Function at 0x406700
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.00406960
call fcn.004068f0
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x406738
jmp 0x4067d6
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x406737
cmp cl, 0x22
je 0x406790
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x4067b0
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x4067b0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x406770
jmp 0x4067b0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x406790
cmp cl, 0x22
je 0x406812
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x4067d0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x4067c0
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x4067f4
movzx edx, word [ebp - 0x28]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call fcn.004013b0
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x4067b0
Function at 0x10088d8
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
push esi
push esi
push 1
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
call fcn.01009649
push 0x10015e4
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1008926
push 0x10015a0
push esi
call fcn.010097fc
pop ecx
pop ecx
jmp 0x1008a63
push ebx
push edi
push 0x1001590
call fcn.0100afb1
mov ebx, dword [sym.imp.SHLWAPI.dll_IsOS]
push 0x1d
call ebx
test eax, eax
jne 0x100894a
push 0x100157c
call fcn.0100afb1
call fcn.0100adc9
push esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push esi
push 0x20019
push 1
push esi
push esi
push 0x1001508
mov edi, 0x80000002
push edi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push eax
call fcn.01008825
cmp eax, esi
jl 0x1008997
push 0x10014b8
push esi
call fcn.010097fc
pop ecx
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10089a7
push eax
push 0x1001458
push 1
call fcn.010097fc
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0x1001438
push 0x10013d8
push edi
mov dword [ebp - 0xc], esi
call fcn.010092c8
test eax, eax
jl 0x10089ce
cmp dword [ebp - 0xc], esi
je 0x10089ce
push 0x10013a0
jmp 0x10089e7
push 0x1d
call ebx
test eax, eax
je 0x10089f1
push dword [ebp - 8]
call fcn.01008886
test eax, eax
jne 0x10089f1
push 0x1001378
push esi
call fcn.010097fc
pop ecx
pop ecx
jmp 0x1008a25
push 0x100135c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, esi
je 0x1008a25
push 0x7b
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x1008a1e
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x14]
push dword [ebp - 8]
call eax
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop ebx
cmp dword [ebp - 0x10], esi
jne 0x1008a5a
push esi
push 1
push 0x1005728
call sub.ntdll.dll_WinSqmStartSession
mov esi, eax
xor eax, eax
cmp dword [ebp - 4], 0xbc2
push esi
sete al
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0100b2d1
push esi
call sub.ntdll.dll_WinSqmEndSession
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0100957a
mov eax, dword [ebp - 4]
pop esi
leave
ret 0x10
Function at 0x1008d7f
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x100eda8
call fcn.01008f14
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x10104a0
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x1008b36
cmp eax, esi
jne 0x1008b29
xor esi, esi
inc esi
mov ebx, esi
jmp 0x1008b39
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1008b10
xor esi, esi
inc esi
mov eax, dword [0x101049c]
cmp eax, esi
jne 0x1008b4c
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1008b7b
mov eax, dword [0x101049c]
test eax, eax
jne 0x1008b75
mov dword [0x101049c], esi
push 0x100124c
push 0x1001240
call fcn.01008a75
pop ecx
pop ecx
test eax, eax
je 0x1008b7b
jmp 0x1008ca3
mov dword [0x1010078], esi
mov eax, dword [0x101049c]
cmp eax, esi
jne 0x1008b9f
push 0x100123c
push 0x100122c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x101049c], 2
test ebx, ebx
jne 0x1008bab
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10104a4], 0
je 0x1008bcf
push 0x10104a4
call fcn.01008e89
pop ecx
test eax, eax
je 0x1008bcf
push 0
push 2
push 0
call dword [0x10104a4]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1008c2b
test al, al
je 0x1008be9
cmp dword [ebp - 0x1c], 0
jne 0x1008c2b
mov al, byte [esi]
test al, al
je 0x1008bf9
cmp al, 0x20
ja 0x1008bf9
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1008be9
test byte [ebp - 0x3c], 1
je 0x1008c05
movzx eax, word [ebp - 0x38]
jmp 0x1008c08
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x1010074], eax
cmp dword [0x1010068], 0
jne 0x1008c7f
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x1008c3a
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x1008c4d
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x1008bd6
cmp dword [0x1010078], 0
jne 0x1008c8e
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1010074]
jmp 0x1008caf
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01008f59
ret
call fcn.01009107
jmp 0x1008ad6
Function at 0x1009cdd
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x101000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
cmp esi, ebx
je 0x1009e71
xor eax, eax
cmp ax, word [esi]
je 0x1009e71
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.01009adb
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x1009e5a
push edi
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x1c], ebx
call fcn.01009abd
cmp eax, ebx
jl 0x1009dee
cmp dword [ebp - 0x1c], 1
jne 0x1009db9
mov eax, dword [ebp - 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1009d53
mov ecx, dword [ebp - 0x14]
sub eax, edx
sar eax, 1
lea esi, [ecx + eax*2]
cmp dword [ebp - 0xc], ebx
je 0x1009d7d
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x5c
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
mov esi, eax
pop ecx
push dword [ebp - 8]
cmp esi, ebx
je 0x1009e2e
xor eax, eax
mov word [esi], ax
call fcn.0100a5af
test eax, eax
jne 0x1009daf
push ebx
push dword [ebp - 8]
call edi
push 0x5c
pop eax
mov word [esi], ax
inc esi
inc esi
jmp 0x1009d83
mov esi, dword [ebp - 0x14]
movzx eax, word [esi]
cmp ax, 0x61
jb 0x1009dcb
cmp ax, 0x7a
jbe 0x1009dd7
cmp ax, 0x41
jb 0x1009d7d
cmp ax, 0x5a
ja 0x1009d7d
push 0x3a
pop eax
cmp ax, word [esi + 2]
jne 0x1009d7d
push 0x5c
pop eax
cmp ax, word [esi + 4]
jne 0x1009d7d
add esi, 8
jmp 0x1009d7d
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1005ae8
push 0x3000000
push 0x10103f4
mov dword [ebp - 0x10], eax
call fcn.01009817
add esp, 0x14
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
jmp 0x1009e63
call fcn.0100a5af
xor esi, esi
inc esi
cmp eax, esi
je 0x1009e55
push ebx
push dword [ebp - 8]
call edi
cmp eax, esi
je 0x1009e55
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x20]
push 0x1005a88
jmp 0x1009e05
mov dword [ebp - 0x18], esi
jmp 0x1009e1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x18]
jmp 0x1009e7b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0100919d
leave
ret 4
Function at 0x100a5af
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp eax, esi
je 0x100a620
xor ecx, ecx
cmp cx, word [eax]
je 0x100a620
push edi
push esi
push eax
call fcn.01009adb
mov edi, eax
cmp edi, esi
je 0x100a61b
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100a5e9
test al, 0x10
je 0x100a5e9
inc ebx
jmp 0x100a604
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x100a5fc
mov esi, 0x10b
cmp esi, 2
jne 0x100a604
push 3
pop esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
pop edi
jmp 0x100a62a
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebx
pop ebp
ret 4

Function at 0x100a635
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
xor ebx, ebx
cmp eax, edi
je 0x100a6a4
xor ecx, ecx
cmp cx, word [eax]
je 0x100a6a4
push esi
push edi
push eax
call fcn.01009adb
mov esi, eax
test esi, esi
je 0x100a690
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100a676
test al, 0x10
je 0x100a671
push 2
pop edi
jmp 0x100a67e
xor ebx, ebx
inc ebx
jmp 0x100a67e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100a698
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
pop esi
jmp 0x100a6ae
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop ebx
pop ebp
ret 4

Function at 0x100a76e
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x100a805
cmp dword [ebp + 0x18], esi
je 0x100a805
push edi
cmp dword [ebp + 0xc], esi
je 0x100a7dc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push 0x10061fc
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, esi
jne 0x100a7f4
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegSetValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100a7f4
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RegSetValueExW]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp edi, esi
sete al
pop edi
jmp 0x100a80f
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
leave
ret 0x18
Function at 0x100a819
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
jne 0x100a83b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
leave
ret 0xc
push esi
cmp dword [ebp + 0xc], edi
je 0x100a86c
lea ecx, [ebp - 4]
push ecx
push 0x20019
push edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100a85e
cmp dword [ebp - 4], edi
jne 0x100a86f
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
jmp 0x100a836
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], edi
je 0x100a88d
push edi
push edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegQueryValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x100a890
xor esi, esi
inc esi
cmp dword [ebp + 0xc], edi
je 0x100a860
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100a860
Function at 0x100a8a5
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
cmp eax, edi
jne 0x100a8d2
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
leave
ret 0x10
cmp dword [ebp + 0xc], edi
je 0x100a904
lea ecx, [ebp - 0xc]
push ecx
push 0x20019
push edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x100a8f7
cmp dword [ebp - 0xc], edi
jne 0x100a907
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
jmp 0x100a8cd
mov dword [ebp - 0xc], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_RegQueryValueExW]
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call ebx
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x100aa58
cmp dword [ebp - 8], 1
je 0x100a943
cmp dword [ebp - 8], 2
je 0x100a943
mov dword [ebp + 8], 0xd
jmp 0x100aa58
push esi
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x100aa4e
lea ecx, [ebp - 0x10]
push ecx
push eax
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call ebx
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x100a98c
cmp dword [ebp - 8], 1
je 0x100a9a1
cmp dword [ebp - 8], 2
je 0x100a9a1
mov dword [ebp + 8], 0xd
push dword [ebp - 4]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], edi
jmp 0x100aa57
cmp dword [ebp + 0x14], 1
jne 0x100aa57
cmp dword [ebp - 8], 2
jne 0x100aa57
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
push edi
push dword [ebp - 4]
call ebx
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x100aa2f
add eax, eax
push eax
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp + 0x10], eax
cmp eax, edi
je 0x100aa00
push dword [ebp - 0x10]
push eax
push dword [ebp - 4]
call ebx
test eax, eax
je 0x100aa00
push dword [ebp - 4]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
jmp 0x100aa57
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov dword [ebp + 8], eax
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call ebx
cmp dword [ebp + 0x10], edi
je 0x100a999
push dword [ebp + 0x10]
push edi
call esi
push eax
call ebx
jmp 0x100a999
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov dword [ebp + 8], eax
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x100aa57
jmp 0x100a999
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
pop esi
pop ebx
cmp dword [ebp + 0xc], edi
je 0x100aa67
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 4]
jmp 0x100a8f7
Function at 0x100aa92
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], esi
cmp eax, esi
jne 0x100aac0
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100ab2d
cmp dword [ebp + 0xc], esi
je 0x100aae5
lea ecx, [ebp - 4]
push ecx
push 0x20019
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x100aae2
cmp dword [ebp - 4], esi
jne 0x100aae8
push eax
jmp 0x100aab6
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, esi
jne 0x100ab11
cmp dword [ebp - 0xc], 4
je 0x100ab14
push 0xd
pop edi
mov dword [ebp - 8], esi
cmp dword [ebp + 0xc], esi
je 0x100ab22
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 0xc
Function at 0x100adc9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
push 0x100623c
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100ae1d
push esi
push esi
lea eax, [ebp - 8]
push eax
push esi
push 0x100622c
push dword [ebp - 4]
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0x100ae14
cmp dword [ebp - 8], 4
jne 0x100ae14
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret