joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b710
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x454388
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
cmp ebp, 1
mov edi, ecx
jle 0x43b788
push ecx
lea esi, [edi + 0x1c8]
mov ecx, esp
mov dword [esp + 0x14], esp
push esi
call fcn.0044d0c2
lea ebx, [edi + 0x1cc]
mov ecx, edi
push ebx
call fcn.0043b820
mov ecx, ebp
sub ecx, eax
dec ecx
test ecx, ecx
jle 0x43b788
mov ebp, ecx
push esi
mov ecx, ebx
call fcn.0044d4c4
push esi
lea ecx, [edi + 0x1d0]
call fcn.0044d4c4
push esi
lea ecx, [edi + 0x1d4]
call fcn.0044d4c4
dec ebp
jne 0x43b761
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
dec edx
mov ecx, dword [eax + 4]
neg edx
mov ebp, dword [ecx + ebp*4 - 4]
lea ecx, [esp + 0x10]
sbb dl, dl
push ebp
and dl, 0x10
add dl, 0x2d
mov byte [esp + 0x30], dl
mov eax, dword [esp + 0x30]
push eax
call fcn.0044d422
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x1c], 0
push ecx
lea ecx, [edi + 0x1cc]
call fcn.0044d4c4
lea edx, [esp + 0x10]
lea ecx, [edi + 0x1d0]
push edx
call fcn.0044d4c4
mov eax, dword [esp + 0x24]
lea ecx, [edi + 0x1d4]
push eax
call fcn.0044d4c4
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0044d0bc
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 0x18

Function at 0x43dec0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x454722
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
xor ebx, ebx
mov esi, ecx
push edi
cmp eax, ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov edi, 1
je 0x43df0a
mov dword [esi], 0x45c9e8
mov dword [esi + 0x44], 0x456080
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
or ebp, 0xffffffff
mov dword [esi + 0x14], ebx
push 0x469484
lea ecx, [esi + 0x28]
mov word [esi + 0x18], bp
mov dword [esi + 0x1c], ebx
mov word [esi + 0x20], bp
mov byte [esi + 0x22], bl
mov word [esi + 0x24], bx
mov word [esi + 0x26], bx
call dword [0x46e104]
mov dword [esp + 0x20], edi
mov edi, dword [0x46dfb8]
lea ecx, [esi + 0x2c]
call edi
lea ecx, [esi + 0x30]
mov byte [esp + 0x20], 2
call edi
mov dword [esi + 0x34], ebp
mov dword [esi + 0x38], ebp
mov eax, dword [esi]
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
pop edi
mov ecx, dword [eax + 4]
mov eax, esi
mov dword [ecx + esi], 0x45c9e4
mov ecx, dword [esp + 0x14]
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret 4
Function at 0x43ee60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45486c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
mov eax, dword [esp + 0xc0]
push ebx
push ebp
mov ebp, dword [esp + 0xcc]
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
lea edi, [eax + 1]
push ecx
push edi
push ebp
call fcn.0044ceee
xor edx, edx
cmp eax, 1
push 0x3d
push 0x469658
sete dl
push 1
push edx
call fcn.0044a110
mov eax, dword [esp + 0xa8]
add esp, 0x10
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x18]
call dword [0x46dfe4]
lea ebx, [esi + 0x2c]
push eax
mov ecx, ebx
mov dword [esp + 0xcc], 0
call dword [0x46dfbc]
lea ecx, [esp + 0x10]
mov dword [esp + 0xc8], 0xffffffff
call dword [0x46df8c]
push ebx
lea ecx, [esi + 0x30]
call dword [0x46dfbc]
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0xa4]
mov cx, word [esp + 0xd0]
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0xac]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0xa8]
mov word [esi + 0x18], cx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0xd8]
mov dword [esi + 4], 0
test eax, eax
je 0x43efbd
lea ecx, [esp + 0x10]
lea edx, [esi + 0x34]
push ecx
push 0xfffe7961
push edx
push edi
push 0x14e8
push ebp
mov dword [esp + 0x28], 0xffffffff
call fcn.0044cee8
xor ecx, ecx
cmp eax, 1
push 0x55
push 0x469658
sete cl
push 1
push ecx
call fcn.0044a110
add esp, 0x10
lea edx, [esp + 0x10]
add esi, 0x38
push edx
push 0xfffe7961
push esi
push edi
push 0x14e6
push ebp
call fcn.0044cee8
xor ecx, ecx
cmp eax, 1
push 0x5c
push 0x469658
sete cl
push 1
push ecx
call fcn.0044a110
add esp, 0x10
jmp 0x43efc6
or eax, 0xffffffff
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov ecx, dword [esp + 0xc0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xbc
ret 0xc
Function at 0x446b70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x455995
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
call dword [0x46e010]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
lea edi, [esi + 0xc]
xor ebx, ebx
push edi
push 0x70
mov dword [esp + 0x2c], ebx
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi], 0x45d128
mov dword [esi + 0x14], edx
call fcn.0044ceca
cmp dword [esi + 4], ebx
je 0x446bea
mov eax, dword [edi]
push 0x70
push eax
call fcn.0044cf00
cmp eax, 1
je 0x446bea
push 0x469ff0
call fcn.0041ca30
add esp, 4
jmp 0x446d50
mov ecx, dword [edi]
push 0x446170
push 4
push 0x22
push ebx
push ecx
call fcn.0044cefa
cmp eax, 1
je 0x446c0b
push 0xc
call fcn.0044ae80
add esp, 4
mov eax, dword [edi]
push ebx
lea edx, [esp + 0x14]
push 0xfffe7961
push edx
push 0x2396
push 0x22
push eax
mov dword [esp + 0x28], 0x1fb0
call fcn.0044cef4
mov ecx, dword [edi]
push 0x445d90
push 3
push 0x22
push ebx
push ecx
call fcn.0044cefa
mov edx, dword [edi]
push fcn.00445ed0
push 2
push 0x22
push ebx
push edx
call fcn.0044cefa
mov ecx, dword [edi]
push ebx
lea eax, [esp + 0x18]
push 4
push eax
push 0x2394
push 0x22
push ecx
mov dword [esp + 0x2c], esi
call fcn.0044cec4
push 0x10
call fcn.0044d0fe
mov edi, eax
add esp, 4
mov dword [esp + 0x34], edi
mov ebp, dword [0x46dfb4]
cmp edi, ebx
mov byte [esp + 0x24], 1
je 0x446ca0
mov edx, dword [0x46dff4]
mov ecx, edi
mov eax, dword [edx]
push eax
call ebp
mov dword [edi], 0x45d0a8
jmp 0x446ca2
xor edi, edi
push 0x10
mov byte [esp + 0x28], bl
mov dword [esi + 0x18], edi
call fcn.0044d0fe
mov edi, eax
add esp, 4
mov dword [esp + 0x34], edi
cmp edi, ebx
mov byte [esp + 0x24], 2
je 0x446cd7
mov ecx, dword [0x46dff4]
mov edx, dword [ecx]
mov ecx, edi
push edx
call ebp
mov dword [edi], 0x45d0a8
jmp 0x446cd9
xor edi, edi
push 0x10
mov byte [esp + 0x28], bl
mov dword [esi + 0x1c], edi
call fcn.0044d0fe
mov edi, eax
add esp, 4
mov dword [esp + 0x34], edi
cmp edi, ebx
mov byte [esp + 0x24], 3
je 0x446d0d
mov eax, dword [0x46dff4]
mov ecx, dword [eax]
push ecx
mov ecx, edi
call ebp
mov dword [edi], 0x45d0a8
jmp 0x446d0f
xor edi, edi
push 4
mov byte [esp + 0x28], bl
mov dword [esi + 0x20], edi
mov byte [esi + 0x30], 1
mov byte [esi + 0x31], 1
call fcn.0044d0fe
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, ebx
mov byte [esp + 0x24], 4
je 0x446d3e
mov ecx, eax
call fcn.0044ad40
jmp 0x446d40
xor eax, eax
mov ecx, dword [esi + 8]
push esi
mov byte [esp + 0x28], bl
mov dword [esi + 0x10], eax
call fcn.0044ad20
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 0xc
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
jmp int.00401219
Function at 0x412e00
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 4]
push esi
xor esi, esi
push eax
push 0x2001f
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionSharedDLLs
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412e89
lea ecx, [esp + 0xc]
mov dword [esp + 4], eax
lea edx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push eax
push 0
mov esi, 4
push ecx
push edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 8]
inc eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push esi
push eax
push esi
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
lea ecx, [esp + 0x18]
call fcn.005eb9e1
mov eax, esi
pop esi
add esp, 0x10
ret 4
Function at 0x4305e0
Capabilities:
Terminate thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x60722a
push eax
mov eax, dword [0x6a1e5c]
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
test eax, eax
mov esi, ecx
je 0x43060b
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
call fcn.004300a0
test eax, eax
jne 0x43063d
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x43063d
mov eax, dword [esp + 0x20]
mov ecx, esi
mov dword [esi + 0x34], eax
call fcn.0042f4a0
mov eax, dword [0x6a1e5c]
test eax, eax
je 0x43071a
jmp 0x430713
mov eax, dword [esi + 0x24]
mov ebp, dword [esp + 0x20]
xor ebx, ebx
mov edi, 1
test eax, eax
je 0x430665
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edi, eax
test edi, edi
jne 0x430665
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, esi
call fcn.0042fbf0
mov eax, dword [esp + 0x24]
test edi, edi
jne 0x4306e0
test eax, eax
jne 0x4306e4
push 0x14
call fcn.005eb722
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
mov dword [esp + 0x18], 0
je 0x4306b3
push 3
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push ebx
push ecx
call fcn.0042f210
add esp, 8
mov ecx, edi
push esi
call fcn.0042f110
mov esi, eax
jmp 0x4306b5
xor esi, esi
mov eax, dword [0x6a1e5c]
mov dword [esp + 0x18], 0xffffffff
test eax, eax
je 0x4306cd
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edx, [esp + 0x20]
push 0x653cb0
push edx
mov dword [esp + 0x28], esi
call fcn.005d0fb1
test eax, eax
je 0x4306e7
mov dword [esi + 0x34], ebp
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4306f5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0042f9a0
mov ecx, esi
call fcn.0042f4a0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov eax, dword [0x6a1e5c]
test eax, eax
je 0x43071a
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8

Function at 0x432910
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x124
lea eax, [esp + 0x10]
mov dword [esp], 3
push eax
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x432960
cmp dword [esp + 0x20], 1
jne 0x432944
mov eax, dword [esp + 0x18]
test eax, eax
je 0x432960
lea ecx, [esp]
push 0
push ecx
push 0
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [esp]
add esp, 0x124
ret
lea edx, [esp + 4]
push edx
push 1
push 0
push str.Control_PanelDesktop
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4329cf
lea eax, [esp + 8]
lea ecx, [esp + 0xa4]
push eax
mov eax, dword [esp + 8]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push str.WheelScrollLines
push eax
mov dword [esp + 0x20], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4329c4
push 0xa
lea ecx, [esp + 0xa8]
push eax
push ecx
call fcn.005d0251
add esp, 0xc
mov dword [esp], eax
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 0x124
ret
Function at 0x58f5b5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor edi, edi
push 1
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionMultimediaMIDIMap
push 0x80000001
mov dword [ebp - 0xc], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x58f6f6
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push str.CurrentInstrument
push dword [ebp - 4]
call esi
cmp eax, edi
je 0x58f629
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push str.szPname
push dword [ebp - 4]
call esi
cmp eax, edi
jne 0x58f6f6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], edi
mov esi, 0x134
push esi
lea eax, [ebp - 0x140]
push edi
push eax
call fcn.005d2a00
mov eax, dword [0x6bebac]
add esp, 0xc
lea edx, [ebp - 0x140]
mov dword [ebp - 0x140], esi
mov ecx, dword [eax]
push edx
push dword [ebp - 8]
push eax
call dword [ecx + 0xc]
mov ebx, eax
cmp ebx, edi
jne 0x58f6bb
cmp dword [ebp - 0x128], 1
jne 0x58f6bb
push edi
push edi
lea eax, [ebp - 0x340]
push 0x100
push eax
lea eax, [ebp - 0x10c]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x240]
push eax
call fcn.0057bb64
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x340]
push eax
call fcn.0057bc34
add esp, 0x10
test eax, eax
je 0x58f6c9
inc dword [ebp - 8]
cmp ebx, 1
jne 0x58f63a
jmp 0x58f6e8
lea eax, [ebp - 0x138]
push 0x10
push eax
push dword [ebp + 8]
call fcn.005d26c0
mov eax, dword [0x688c20]
add esp, 0xc
test byte [eax + 8], 1
je 0x58f6f6
mov eax, dword [0x6bebac]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5901f1
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp eax, ecx
je 0x590288
mov edx, dword [eax]
push ebx
push esi
push edi
mov byte [edx + 0x16], cl
mov edx, dword [eax]
mov byte [edx + 0x17], cl
mov edx, dword [eax]
mov byte [edx + 0x18], cl
mov edx, dword [eax]
mov byte [edx + 0x19], cl
mov esi, dword [eax + 4]
xor edx, edx
cmp esi, ecx
jle 0x59023d
mov edi, dword [eax]
mov ebx, ecx
shr ebx, 0x18
movzx edi, byte [edi + edx]
xor edi, ebx
shl ecx, 8
mov edi, dword [edi*4 + 0x68df20]
xor ecx, edi
inc edx
cmp edx, esi
jl 0x59021f
xor edx, edx
cmp dword [eax + 0xc], edx
jle 0x590264
mov esi, dword [eax + 8]
movzx edi, byte [esi + edx]
mov ebx, ecx
shr ebx, 0x18
xor edi, ebx
shl ecx, 8
mov edi, dword [edi*4 + 0x68df20]
xor ecx, edi
inc edx
cmp edx, dword [eax + 0xc]
jl 0x590247
mov edx, dword [eax]
pop edi
mov byte [edx + 0x16], cl
mov esi, dword [eax]
mov edx, ecx
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [eax]
mov edx, ecx
shr edx, 0x10
mov byte [esi + 0x18], dl
mov eax, dword [eax]
shr ecx, 0x18
pop esi
mov byte [eax + 0x19], cl
pop ebx
ret
Function at 0x59aa71
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
lea eax, [ebp - 4]
push edi
mov esi, ecx
push eax
xor edi, edi
push str.software_asio
push 0x80000002
mov dword [ebp - 4], edi
xor ebx, ebx
mov dword [esi + 4], edi
mov dword [esi], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x59aad9
lea ecx, [ebp - 0x84]
mov eax, ebx
push 0x80
push ecx
push eax
inc ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, edi
jne 0x59aad9
push dword [esi]
lea eax, [ebp - 0x84]
push edi
push eax
push dword [ebp - 4]
call fcn.0059ab0b
add esp, 0x10
mov dword [esi], eax
jmp 0x59aaa3
cmp dword [ebp - 4], edi
je 0x59aae7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
jmp 0x59aaf4
inc dword [esi + 4]
mov eax, dword [eax + 0x298]
cmp eax, edi
jne 0x59aaeb
cmp dword [esi + 4], edi
je 0x59ab04
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x59ab0b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3dc
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
push edi
jne 0x59ac55
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x59ac72
lea eax, [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x114]
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], 1
push eax
push esi
push str.clsid
mov dword [ebp + 8], 0x100
push dword [ebp - 4]
call edi
test eax, eax
jne 0x59ac49
lea eax, [ebp - 0x3dc]
push 0x200
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0059ac78
add esp, 0xc
test eax, eax
jne 0x59ac49
mov ebx, 0x29c
push ebx
call fcn.005eb722
mov esi, eax
pop ecx
test esi, esi
je 0x59ac49
push ebx
push 0
push esi
call fcn.005d2a00
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [esi], eax
lea eax, [ebp - 0x1dc]
push 0x64
push eax
lea eax, [ebp - 0x114]
push 0xffffffffffffffff
xor ebx, ebx
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1dc]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x59ac03
lea eax, [ebp - 0x14]
push 0x10
push eax
lea eax, [esi + 4]
push eax
call fcn.005d26c0
add esp, 0xc
lea eax, [ebp + 8]
mov dword [ebp + 0x14], 1
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp + 0x14]
push eax
push ebx
push str.description
mov dword [ebp + 8], 0x100
push dword [ebp - 4]
call edi
test eax, eax
jne 0x59ac38
lea eax, [ebp - 0x114]
push eax
jmp 0x59ac3b
push dword [ebp + 0xc]
lea eax, [esi + 0x214]
push eax
call fcn.005d2b30
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
jmp 0x59ac72
mov eax, dword [ebp + 0x10]
lea edi, [esi + 0x298]
inc eax
push dword [edi]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0059ab0b
add esp, 0x10
mov dword [edi], eax
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x59ac78
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a8
or dword [ebp - 0x18], 0xffffffff
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
call fcn.005d2640
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea eax, [ebp - 8]
push eax
push str.clsid
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, edi
jne 0x59ade9
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
mov dword [ebp - 4], edi
cmp dword [ebp - 0xc], edi
jne 0x59adde
mov eax, dword [ebp - 4]
inc dword [ebp - 4]
lea ecx, [ebp - 0x2a8]
push 0x200
push ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, edi
jne 0x59adde
lea eax, [ebp - 0x2a8]
push eax
call fcn.005d2640
pop ecx
push eax
lea eax, [ebp - 0x2a8]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffA]
push dword [ebp + 8]
lea eax, [ebp - 0x2a8]
push eax
call fcn.005d3480
pop ecx
test eax, eax
pop ecx
jne 0x59acc5
lea eax, [ebp - 0x14]
push eax
push 0x20019
lea eax, [ebp - 0x2a8]
push edi
push eax
push dword [ebp - 8]
call ebx
mov esi, eax
cmp esi, edi
jne 0x59adcf
lea eax, [ebp - 0x10]
push eax
push 0x20019
push edi
push str.InprocServer32
push dword [ebp - 0x14]
call ebx
mov esi, eax
cmp esi, edi
jne 0x59adc6
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push dword [ebp + 0xc]
push eax
push edi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, edi
jne 0x59adbd
push 0x88
lea eax, [ebp - 0xa8]
push edi
push eax
call fcn.005d2a00
add esp, 0xc
lea eax, [ebp - 0xa8]
mov byte [ebp - 0xa8], 0x88
push 0x4000
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_OpenFile]
test eax, eax
je 0x59adbd
mov dword [ebp - 0x18], edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
mov dword [ebp - 0xc], 1
je 0x59acc5
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov eax, dword [ebp - 0x18]
pop edi
leave
ret

Function at 0x5aa3c0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6dac94]
push esi
push edi
xor edi, edi
test eax, eax
je 0x5aa417
mov eax, dword [0x6eeaa0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x5aa417
push 0x95b6
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x5aa40f
push esi
call fcn.005ab6e0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, 1
pop esi
ret
mov eax, edi
pop edi
pop esi
ret
Function at 0x5aaa70
Capabilities:
Get thread local storage value
Read file on windows

Disassembly:
push ecx
mov eax, dword [0x6eeaa0]
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x5aaaf5
mov ebp, dword [esp + 0x14]
mov edx, dword [edi + 0x97e]
lea ecx, [esp + 0xc]
push 0
lea esi, [edi + 0x8f5c]
push ecx
push ebp
push esi
push edx
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5aaaf5
cmp dword [esp + 0xc], ebp
jne 0x5aaaf5
mov byte [edi + ebp + 0x8f5c], 0
mov al, byte [edi + 0xc60]
test al, 8
je 0x5aaaed
push 0x2e
push esi
call fcn.005d1ff0
add esp, 8
test eax, eax
je 0x5aaae6
push 0x2e
push esi
mov byte [eax], 0x20
call fcn.005d1ff0
add esp, 8
test eax, eax
jne 0x5aaad4
mov byte [edi + 0x8f67], 0
push esi
push esi
call dword [sym.imp.USER32.dll_OemToCharA]
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x5aab40
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6eeaa0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x5aab58
or eax, 0xffffffff
pop esi
ret
call fcn.005aab00
push 0
push 0x8000080
push 3
push 0
push 3
lea ecx, [esi + 0x8cfc]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x97e], eax
pop esi
ret

Function at 0x5aab90
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6eeaa0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x5aabaa
mov eax, 9
pop esi
ret
mov eax, dword [esi + 0x44]
mov dword [esi + 0x9070], 0
test eax, eax
mov dword [esi + 0x9074], 0
jne 0x5aac32
push ebx
push edi
push 0
push 0x80
push 3
push 0
lea ebx, [esi + 0x8cfc]
push 3
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x5aac19
push edi
call fcn.005b2d90
add esp, 4
mov dword [esi + 0x9070], eax
mov dword [esi + 0x9074], edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi + 0x8f04]
push ecx
push ebx
call fcn.005b1b10
add esp, 8
mov edx, dword [esi + 0x9070]
mov eax, dword [esi + 0x9074]
or edx, eax
pop edi
pop ebx
jne 0x5aac32
mov eax, 9
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x5aac40
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6eeaa0]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x5aacae
mov ebp, dword [esp + 0x18]
lea esi, [ebx + 0x8f5c]
push ebp
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x5aacae
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.005aacc0
lea eax, [edi + eax + 0x2e]
xor edi, edi
mov di, word [ebx + 0xc56]
add esp, 8
lea ecx, [edi + 1]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
push esi
mov byte [edi + esi], 0
call dword [sym.imp.USER32.dll_OemToCharA]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
pop esi
pop ebp
pop ebx
ret