joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408d00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
jmp 0x408d1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x408d21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x408d10
mov eax, 1
add ebx, ebx
jne 0x408d33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x408d28
jne 0x408d44
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408d28
xor ecx, ecx
sub eax, 3
jb 0x408d58
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408dca
mov ebp, eax
add ebx, ebx
jne 0x408d63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x408d70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x408d94
inc ecx
add ebx, ebx
jne 0x408d80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x408d75
jne 0x408d91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408d75
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x408db4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x408da5
jmp 0x408d16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x408db4
add edi, ecx
jmp 0x408d16
pop esi
mov edi, esi
mov ecx, 0x29
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x408dd2
cmp byte [edi], 1
jne 0x408dd2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x408dd7
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x408e46
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9110]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x914c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x408e04
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9154]
or eax, eax
je 0x408e40
mov dword [ebx], eax
add ebx, 4
jmp 0x408e21
call dword [esi + 0x9150]
mov ebp, dword [esi + 0x9158]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x408e7a
sub esp, 0xffffff80
jmp 0x402550

Function at 0x432001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x40b2b0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4e8268
call sym._EnterCriticalSection_4
mov ebx, dword [0x4e8260]
sub esp, 4
test ebx, ebx
je 0x40b2fb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x40b2f4
test esi, esi
je 0x40b2f4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40b2d0
mov dword [esp], 0x4e8268
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40b4e0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x40b530
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40b608
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40b56e
cmp eax, 4
jne 0x40b590
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40b57e
cmp edx, 4
je 0x40b57e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0040b4e0

Function at 0x40bb80
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sym._GetLastError_0
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sym._SetLastError_4
sub esp, 4
mov eax, ebx
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40bbb0
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
je 0x40bbd4
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp sym._GetLastError_0
Function at 0x41d5a0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x4a3adc], 0
jne 0x41d674
mov byte [0x4a3adc], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x41d70e
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0x1c], 0xffffffff
sete al
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call sym.___cxa_demangle
mov esi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x30
mov ebp, eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
lea edi, [esi + 0x40]
mov dword [esp + 0xc], edi
call sym._fwrite
cmp dword [esp + 0x1c], 0
mov dword [esp + 4], edi
je 0x41d66a
mov dword [esp], ebx
call sym._fputs
lea eax, [esi + 0x40]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x4a5249
mov dword [esp + 0xc], eax
call sym._fwrite
cmp dword [esp + 0x1c], 0
je 0x41d6a1
call sym.___cxa_rethrow
mov dword [esp], ebp
call sym._fputs
jmp 0x41d63b
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
call sym._abort
mov dword [esp], ebp
call sym._free
jmp 0x41d665
call sym._abort
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
jmp 0x41d709
Function at 0x10006590
Capabilities:
Set registry value

Disassembly:
call fcn.100487e0
sub esp, 0x5c
mov eax, dword [0x1009e0d0]
push 0x100012e4
push 0x100011cc
mov dword [ebp - 4], eax
call fcn.1000754a
test eax, eax
jl 0x100066a0
lea eax, [ebp - 0x54]
push eax
push 0x100011cc
call fcn.100074f3
test eax, eax
jl 0x100066a0
lea ecx, [ebp - 0x58]
push ecx
push 2
push 0
lea edx, [ebp - 0x54]
push edx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10006612
mov ecx, dword [ebp - 0x58]
push 4
lea eax, [ebp - 0x5c]
push eax
push 4
push 0
push 0x100012dc
push ecx
mov dword [ebp - 0x5c], 0x800001
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push edi
push 0x1009e0a0
push 2
push 0x1000308c
call fcn.10005030
push 0x1009e0a8
push 6
push 0x1000308c
mov esi, eax
call fcn.10005030
test esi, esi
mov edi, eax
je 0x1000668c
test edi, edi
je 0x10006689
push ebx
push edi
push 6
push esi
push 2
push 0
push 0x10002f9c
push 0x100011cc
push 0x100012ac
call sub.msdmo.dll_DMORegister
push esi
mov ebx, eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
xor eax, eax
test ebx, ebx
setge al
dec eax
and eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
call fcn.10007179
mov esp, ebp
pop ebp
ret
push esi
jmp 0x10006691
test edi, edi
je 0x10006699
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
mov eax, 0x8007000e
pop esi
mov ecx, dword [ebp - 4]
call fcn.10007179
mov esp, ebp
pop ebp
ret

Function at 0x10007179
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1009e0d0]
jne 0x1000718a
test ecx, 0xffff0000
jne 0x1000718a
ret
jmp fcn.10007194
Function at 0x1000754a
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x1009e0d0]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x158]
push eax
push dword [0x100b86bc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x54]
push eax
push edi
call fcn.100074f3
xor ebx, ebx
cmp eax, ebx
jl 0x100076bb
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x80000000
lea ecx, [ebp - 0x15c]
call fcn.10007416
cmp dword [ebp - 0x164], ebx
jne 0x100075d2
cmp dword [ebp - 0x15c], ebx
je 0x10007692
push dword [ebp - 0x15c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10007692
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x100075d7
sub eax, ecx
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push 1
push ebx
push dword [ebp - 0x164]
call esi
test eax, eax
jne 0x100075b5
lea eax, [ebp - 0x168]
push eax
push 0x100014d0
push dword [ebp - 0x164]
lea ecx, [ebp - 0x160]
call fcn.10007416
cmp dword [ebp - 0x168], ebx
je 0x10007645
lea eax, [ebp - 0x158]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10007625
sub eax, edx
push eax
lea eax, [ebp - 0x158]
push eax
push 1
push ebx
push dword [ebp - 0x168]
call esi
test eax, eax
je 0x1000764d
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10007672
push 4
push 0x100014c8
push 1
push ebx
push 0x100014b8
push dword [ebp - 0x168]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x10007699
cmp dword [ebp - 0x160], ebx
je 0x10007682
push dword [ebp - 0x160]
call esi
cmp dword [ebp - 0x15c], ebx
je 0x10007692
push dword [ebp - 0x15c]
call esi
mov eax, 0x80004005
jmp 0x100076bb
cmp dword [ebp - 0x160], ebx
je 0x100076a9
push dword [ebp - 0x160]
call esi
cmp dword [ebp - 0x15c], ebx
je 0x100076b9
push dword [ebp - 0x15c]
call esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.10007179
leave
ret 8
Function at 0x1000e490
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x1009e0d0]
push ebx
mov ebx, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x14ac]
push edi
xor edi, edi
cmp eax, edi
jge 0x1000e57f
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0x60]
push eax
push 0x100018c0
push 0x80000001
mov dword [ebp - 0x64], 0x50
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x60], edi
call esi
cmp eax, edi
jne 0x1000e51f
mov edx, dword [ebp - 0x60]
lea ecx, [ebp - 0x58]
push ecx
push 0x100018b4
push edx
call esi
cmp eax, edi
jne 0x1000e503
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x5c]
push eax
push 0x100018ac
push ecx
call esi
jmp 0x1000e51b
cmp eax, 2
jne 0x1000e51b
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x5c]
push edx
push 0x100018ac
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp eax, edi
je 0x1000e527
mov dword [ebx + 0x14ac], edi
jmp 0x1000e554
lea ecx, [ebp - 0x64]
push ecx
mov ecx, dword [ebp - 0x5c]
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x68]
push eax
push edi
push 0x10001898
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x54]
neg eax
sbb eax, eax
not eax
and eax, ecx
mov dword [ebx + 0x14ac], eax
mov eax, dword [ebp - 0x5c]
cmp eax, edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x1000e564
push eax
call esi
mov eax, dword [ebp - 0x58]
cmp eax, edi
je 0x1000e56e
push eax
call esi
mov eax, dword [ebp - 0x60]
cmp eax, edi
je 0x1000e578
push eax
call esi
mov eax, dword [ebx + 0x14ac]
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.10007179
mov esp, ebp
pop ebp
ret
Function at 0x10013d40
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1bc8]
xor edx, edx
sub eax, edx
push edi
mov edi, dword [esi + 0xaf0]
je 0x10013ed0
dec eax
je 0x10013e35
dec eax
jne 0x10013f3e
cmp dword [esi + 0xb8], edx
mov ebx, edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edx
jbe 0x10013f3e
jmp 0x10013d90
mov ecx, dword [esi + 0xf74]
push 1
call fcn.10012390
test eax, eax
je 0x10013dcb
mov ecx, dword [esi + 0xbc]
xor eax, eax
test ecx, ecx
jbe 0x10013e10
lea ecx, [ecx]
or dword [ebx], 1
mov ecx, dword [esi + 0xb8]
imul ecx, ecx, 0x70
add ebx, ecx
mov ecx, dword [esi + 0xbc]
inc eax
cmp eax, ecx
jb 0x10013db0
jmp 0x10013e10
mov eax, dword [esi + 0xbc]
xor edi, edi
test eax, eax
jbe 0x10013e10
jmp 0x10013de0
mov ecx, dword [esi + 0xf74]
push 1
call fcn.10012390
mov edx, dword [ebx]
xor edx, eax
mov eax, dword [ebx]
and edx, 1
xor eax, edx
mov dword [ebx], eax
mov eax, dword [esi + 0xb8]
imul eax, eax, 0x70
add ebx, eax
mov eax, dword [esi + 0xbc]
inc edi
cmp edi, eax
jb 0x10013de0
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0xb8]
add ebx, 0x70
inc eax
cmp eax, ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
jb 0x10013d90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xbc], edx
mov dword [ebp - 8], edx
jbe 0x10013f3e
jmp 0x10013e50
mov ecx, dword [esi + 0xf74]
push 1
call fcn.10012390
test eax, eax
je 0x10013e83
mov ecx, dword [esi + 0xb8]
xor eax, eax
test ecx, ecx
jbe 0x10013eb8
lea ecx, [ecx]
or dword [edi], 1
mov ecx, dword [esi + 0xb8]
add edi, 0x70
inc eax
cmp eax, ecx
jb 0x10013e70
jmp 0x10013eb8
mov eax, dword [esi + 0xb8]
xor ebx, ebx
test eax, eax
jbe 0x10013eb8
nop
mov ecx, dword [esi + 0xf74]
push 1
call fcn.10012390
mov ecx, dword [edi]
xor ecx, eax
mov eax, dword [edi]
and ecx, 1
xor eax, ecx
mov dword [edi], eax
mov eax, dword [esi + 0xb8]
add edi, 0x70
inc ebx
cmp ebx, eax
jb 0x10013e90
mov eax, dword [ebp - 8]
mov ecx, dword [esi + 0xbc]
inc eax
cmp eax, ecx
mov dword [ebp - 8], eax
jb 0x10013e50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xbc], edx
mov dword [ebp - 8], edx
jbe 0x10013f3e
mov eax, dword [esi + 0xb8]
cmp eax, edx
mov dword [ebp - 4], edx
jbe 0x10013f20
mov ebx, edi
lea ebx, [ebx]
mov ecx, dword [esi + 0xf74]
push 1
call fcn.10012390
mov edx, dword [ebx]
xor edx, eax
mov eax, dword [ebx]
and edx, 1
xor eax, edx
mov dword [ebx], eax
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0xb8]
inc eax
add ebx, 0x70
cmp eax, ecx
mov dword [ebp - 4], eax
jb 0x10013ef0
xor edx, edx
mov eax, dword [esi + 0xb8]
mov ebx, dword [esi + 0xbc]
mov ecx, eax
imul ecx, ecx, 0x70
add edi, ecx
mov ecx, dword [ebp - 8]
inc ecx
cmp ecx, ebx
mov dword [ebp - 8], ecx
jb 0x10013ee1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10015180
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x1009e0d0]
mov edx, dword [ebp + 0x18]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x6c], eax
mov eax, dword [edi + 0x1a54]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x70], edx
jge 0x1001529b
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0x60]
push eax
push 0x100018c0
push 0x80000001
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x74], 0x50
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x60], ebx
call esi
cmp eax, ebx
jne 0x10015252
mov edx, dword [ebp - 0x60]
lea ecx, [ebp - 0x58]
push ecx
push 0x100018b4
push edx
call esi
cmp eax, ebx
jne 0x1001520e
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x5c]
push eax
push 0x100018ac
push ecx
call esi
jmp 0x10015226
cmp eax, 2
jne 0x10015226
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x5c]
push edx
push 0x100018ac
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp eax, ebx
jne 0x10015252
lea ecx, [ebp - 0x74]
push ecx
mov ecx, dword [ebp - 0x5c]
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x10001898
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x10015252
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x64], edx
jmp 0x10015259
mov dword [ebp - 0x64], 0xffffffff
mov eax, dword [ebp - 0x68]
cmp eax, ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x10015269
push eax
call esi
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x10015273
push eax
call esi
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x1001527d
push eax
call esi
mov eax, dword [ebp - 0x60]
cmp eax, ebx
je 0x10015287
push eax
call esi
mov eax, dword [ebp - 0x64]
cmp eax, ebx
mov dword [edi + 0x1a54], eax
pop esi
jge 0x1001529b
mov dword [edi + 0x1a54], ebx
mov eax, dword [edi + 0x1a54]
cmp eax, dword [ebp + 8]
pop edi
pop ebx
jl 0x100152c2
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x78]
push ecx
mov ecx, dword [ebp - 0x6c]
push edx
push eax
push ecx
mov ecx, 0x1009e2d0
call fcn.10014b80
mov ecx, dword [ebp - 4]
call fcn.10007179
mov esp, ebp
pop ebp
ret 0x14
Function at 0x100152e0
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1009e0d0]
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, ecx
lea ecx, [ebp - 0x10]
push ecx
xor ebx, ebx
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x9a8]
push 0x100018c0
push 0x80000001
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0x50
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call edi
cmp eax, ebx
jne 0x10015385
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
push edx
push 0x100018b4
push eax
call edi
cmp eax, ebx
jne 0x10015351
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 8]
push ecx
push 0x100018ac
push edx
call edi
jmp 0x10015369
cmp eax, 2
jne 0x10015369
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push 0x100018ac
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp eax, ebx
jne 0x10015385
mov eax, dword [ebp - 8]
push 4
lea edx, [ebp - 0x18]
push edx
push 4
push ebx
push 0x10001a64
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x10015395
push eax
call edi
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x1001539f
push eax
call edi
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x100153a9
push eax
call edi
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x100153b3
push eax
call edi
mov eax, dword [esi + 0x1aa0]
cmp eax, ebx
jle 0x10015408
push 0x10001d00
push eax
push ebx
push 0x10001cf0
push 2
mov ecx, esi
call fcn.10015180
mov ecx, dword [esi + 0x1a9c]
push 0x10001d00
push ecx
push ebx
push 0x10001ce8
push 2
mov ecx, esi
call fcn.10015180
mov edx, dword [esi + 0x1aa4]
push 0x10001ce4
push edx
push ebx
push 0x10001cc0
push 2
mov ecx, esi
call fcn.10015180
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.10007179
mov esp, ebp
pop ebp
ret
Function at 0x10034d50
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x264]
mov ebx, 2
cmp eax, ebx
push edi
jb 0x10034f37
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x2e4c], eax
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x2e50], eax
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x2e54], eax
call edi
mov dword [esi + 0x2e58], eax
cmp dword [esi + 0x264], 4
jne 0x10034dff
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x2e5c], eax
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x2e60], eax
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x2e64], eax
call edi
mov dword [esi + 0x2e68], eax
push 0
push 0
push 1
push 0
call edi
push 0
push 0
mov dword [esi + 0x278], eax
cmp dword [esi + 0x264], ebx
push 0
push 0
jne 0x10034e39
call edi
push 0
push 0
push 1
push 0
mov dword [esi + 0x268], eax
call edi
mov dword [esi + 0x26c], eax
jmp 0x10034e71
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x268], eax
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x26c], eax
call edi
push 0
push 0
push 1
push 0
mov dword [esi + 0x270], eax
call edi
mov dword [esi + 0x274], eax
cmp dword [esi + 0x264], ebx
jb 0x10034f37
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x100346c0
push 0
push 0
call ebx
test eax, eax
mov dword [esi + 0x2e6c], eax
je 0x10034f23
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea ecx, [ebp - 8]
push ecx
push 0
push esi
push 0x100348a0
push 0
push 0
call ebx
test eax, eax
mov dword [esi + 0x2e70], eax
je 0x10034f23
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
cmp dword [esi + 0x264], 4
jne 0x10034f37
lea edx, [ebp - 0xc]
push edx
push 0
push esi
push fcn.10033580
push 0
push 0
call ebx
test eax, eax
mov dword [esi + 0x2e74], eax
je 0x10034f23
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [ebp - 0x10]
push eax
push 0
push esi
push fcn.10033580
push 0
push 0
call ebx
test eax, eax
mov dword [esi + 0x2e78], eax
jne 0x10034f2f
pop edi
pop esi
mov eax, 0xffffff9c
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret