joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f263b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4f2668
call fcn.004f5d43
mov dword [eax], esi
call fcn.004f5d30
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004ee9ea
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4f2644
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4f2697
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004f5d56
pop ecx
call fcn.004f5d30
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4f26be
test al, 1
je 0x4f26be
test byte [esp + 0xc], 2
je 0x4f26be
call fcn.004f5d43
mov dword [eax], 5
call fcn.004f5d30
mov dword [eax], 0xd
jmp 0x4f268e
xor eax, eax
pop esi
ret

Function at 0x4f4be0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x55709c]
jne 0x4f4bea
repz ret
jmp fcn.00505db7

Function at 0x4fa99f
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x557c08]
je 0x4fa9ba
inc edi
cmp edi, 0x17
jb 0x4fa9ab
cmp edi, 0x17
jae 0x4fab3a
push ebp
push 3
call fcn.00507927
cmp eax, 1
pop ecx
je 0x4fab06
push 3
call fcn.00507927
test eax, eax
pop ecx
jne 0x4fa9ee
cmp dword [0x557098], 1
je 0x4fab06
cmp ebx, 0xfc
je 0x4fab39
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x55dc48
push ebp
call fcn.004f273d
add esp, 0xc
test eax, eax
je 0x4faa24
push esi
push esi
push esi
push esi
push esi
call fcn.004ee8ee
add esp, 0x14
push 0x104
mov esi, 0x55dc61
push esi
push 0
mov byte [0x55dd65], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4faa68
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004f273d
add esp, 0xc
test eax, eax
je 0x4faa68
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004ee8ee
add esp, 0x14
push esi
call fcn.004ec4d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4faaad
push esi
call fcn.004ec4d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x55df5c
push 0x53a324
sub ecx, eax
push ecx
push eax
call fcn.00504d08
add esp, 0x14
test eax, eax
je 0x4faaad
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004ee8ee
add esp, 0x14
jmp 0x4faaaf
xor esi, esi
push 0x53a320
push ebx
push ebp
call fcn.00504c97
add esp, 0xc
test eax, eax
je 0x4faacf
push esi
push esi
push esi
push esi
push esi
call fcn.004ee8ee
add esp, 0x14
push dword [edi*8 + 0x557c0c]
push ebx
push ebp
call fcn.00504c97
add esp, 0xc
test eax, eax
je 0x4faaf1
push esi
push esi
push esi
push esi
push esi
call fcn.004ee8ee
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0050776a
add esp, 0xc
jmp 0x4fab39
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4fab39
cmp ebp, 0xffffffff
je 0x4fab39
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x557c0c]
push dword [esi]
call fcn.004ec4d0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x50776a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004fa420
xor ebx, ebx
cmp dword [0x55e6e8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x507840
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x507920
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x53af28
push edi
call esi
cmp eax, ebx
je 0x507920
push eax
call fcn.004fa3b2
mov dword [esp], 0x53af18
push edi
mov dword [0x55e6e8], eax
call esi
push eax
call fcn.004fa3b2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x55e6ec], eax
call esi
push eax
call fcn.004fa3b2
mov dword [0x55e6f0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004f471f
test eax, eax
pop ecx
pop ecx
je 0x50780e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004ee8ee
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x507840
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004fa3b2
cmp eax, ebx
pop ecx
mov dword [0x55e6f8], eax
je 0x507840
push 0x53aed0
push edi
call esi
push eax
call fcn.004fa3b2
pop ecx
mov dword [0x55e6f4], eax
mov eax, dword [0x55e6f4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x5078c5
cmp dword [0x55e6f8], ecx
je 0x5078c5
push eax
call fcn.004fa429
push dword [0x55e6f8]
mov esi, eax
call fcn.004fa429
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x5078c5
cmp edi, ebx
je 0x5078c5
call esi
cmp eax, ebx
je 0x507892
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x507892
test byte [ebp - 0x18], 1
jne 0x5078c5
lea eax, [ebp - 0x10]
push eax
call fcn.004f4756
test eax, eax
pop ecx
je 0x5078ad
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004ee8ee
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x5078bc
or dword [ebp + 0x10], 0x200000
jmp 0x507900
or dword [ebp + 0x10], 0x40000
jmp 0x507900
mov eax, dword [0x55e6ec]
cmp eax, dword [ebp - 8]
je 0x507900
push eax
call fcn.004fa429
cmp eax, ebx
pop ecx
je 0x507900
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x507900
mov eax, dword [0x55e6f0]
cmp eax, dword [ebp - 8]
je 0x507900
push eax
call fcn.004fa429
cmp eax, ebx
pop ecx
je 0x507900
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x55e6e8]
call fcn.004fa429
cmp eax, ebx
pop ecx
je 0x507920
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x507922
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x4ed97ce9
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x59d27a8e
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..3ean
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x4bd26ec3
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
mov eax, section..7LWLf
nop
nop
nop
cmp eax, 0
je 0x4310d2
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x2ca42bfd
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x30001370
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.30001df0
test esi, esi
jne 0x300013a6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.30001edc
jmp 0x300013c4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.30001284
mov edi, eax
test esi, esi
je 0x300013c4
cmp dword [ebx], 0
je 0x300013c4
dec esi
jmp 0x300013ad
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x30001dac
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.30001140
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x30015030], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x30001d74
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x300032a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
test esi, esi
jbe 0x30003340
mov edx, dword [ebx + 0x4c]
mov eax, ebx
call fcn.30003238
mov edx, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x60]
xor eax, eax
mov edi, dword [ebx + 0x64]
mov al, byte [ecx + edx]
mov ecx, dword [ebx + 0x60]
shl eax, 5
movzx ecx, byte [ecx + edx + 1]
xor eax, ecx
mov ecx, dword [ebx + 0x60]
shl eax, 5
movzx ecx, byte [ecx + edx + 2]
xor eax, ecx
mov ecx, eax
lea eax, [ecx + eax*4]
shl eax, 6
sub eax, ecx
shl eax, 2
sub eax, ecx
shl eax, 5
sub eax, ecx
mov ecx, dword [ebx + 0x68]
shr eax, 5
and eax, 0xffff
mov edi, dword [edi + eax*4]
mov dword [ecx + edx*4], edi
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x48]
mov dword [edx + eax*4], ecx
mov ecx, dword [ebx + 0x48]
mov edx, dword [ebx + 0x6c]
mov edi, dword [ebx + 4]
inc edi
mov dword [edx + ecx*4], edi
mov edx, dword [ebx + 0x70]
inc dword [edx + eax*4]
mov eax, dword [ebx + 0x60]
mov edx, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x74]
movzx eax, word [eax + edx]
mov dword [ecx + eax*4], edx
mov eax, ebx
call fcn.300031b8
dec esi
jne 0x300032af
pop edi
pop esi
pop ebx
ret

Function at 0x300043f8
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebx
add esp, 0xffffffec
mov ebx, edx
mov dword [esp], 0x10
push esp
lea edx, [esp + 8]
push edx
mov eax, dword [eax + 0x20]
push eax
call sub.wsock32.dll_getsockname
push dword [esp + 8]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, ebx
call fcn.30001f1c
add esp, 0x14
pop ebx
ret
Function at 0x300044e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push ebx
push esi
add esp, 0xfffffff0
mov ebx, eax
mov eax, ebx
call fcn.30004a0c
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebx + 0x20], eax
mov word [esp], 2
mov ax, word [ebx + 0x14]
push eax
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0x18]
call fcn.3000218c
push eax
call sub.wsock32.dll_inet_addr
mov esi, eax
mov dword [esp + 4], esi
inc esi
jne 0x30004545
mov eax, dword [ebx + 0x18]
call fcn.3000218c
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x30004545
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x20]
push eax
call sub.wsock32.dll_connect
test eax, eax
jne 0x30004560
mov dword [ebx + 0x1c], 0xffffffff
add esp, 0x10
pop esi
pop ebx
ret

Function at 0x300045c8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.3000217c
xor eax, eax
push ebp
push 0x300046b9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.3000218c
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov ecx, 4
mov eax, esi
call fcn.3000442c
jmp 0x3000466c
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.300044b0
mov eax, dword [ebp - 0xc]
call fcn.30001f94
mov ebx, eax
test ebx, ebx
jbe 0x3000466c
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteFile
add dword [ebp - 0x1c], ebx
cmp dword [ebp - 8], 0
je 0x3000466c
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov eax, esi
call dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jae 0x3000467a
cmp dword [esi + 0x1c], 0
jne 0x3000462c
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jne 0x30004691
cmp dword [ebp - 0x14], 0
ja 0x30004695
xor eax, eax
jmp 0x30004697
mov al, 1
neg al
sbb ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x300046c0
lea eax, [ebp - 0xc]
call fcn.30001df0
lea eax, [ebp - 4]
call fcn.30001df0
ret
Function at 0x300046c8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.3000217c
xor eax, eax
push ebp
push 0x300047d8
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x18], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.3000218c
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x10]
mov ecx, 4
mov eax, ebx
call fcn.30004568
mov eax, 0x800
call fcn.30001140
mov esi, eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x800
mov edi, esi
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile
mov edx, edi
mov ecx, dword [ebp - 0x14]
mov eax, ebx
call fcn.30004568
jmp 0x300047a6
push 1
call sub.kernel32.dll_Sleep
push 0
lea eax, [ebp - 0x14]
push eax
push 0x800
mov edi, esi
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile
mov edx, edi
mov ecx, dword [ebp - 0x14]
mov eax, ebx
call fcn.30004568
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x18], eax
cmp dword [ebp - 8], 0
je 0x300047a6
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov eax, ebx
call dword [ebp - 8]
cmp dword [ebp - 0x14], 0
jbe 0x300047b2
cmp dword [ebx + 0x1c], 0
jne 0x30004765
mov eax, esi
call fcn.30001158
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x300047df
lea eax, [ebp - 4]
call fcn.30001df0
ret
Function at 0x30005aa8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.3000217c
xor eax, eax
push ebp
push 0x30005bb3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.30005a44
mov esi, eax
test esi, esi
jle 0x30005b95
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.300021e8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.3000218c
push eax
push edi
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x30005b95
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.30001f94
mov ecx, eax
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.300021e8
cmp dword [ebp - 0xc], 0
jne 0x30005b67
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
jmp 0x30005b8c
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.3000218c
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x30005bba
lea eax, [ebp - 0xc]
call fcn.30001df0
lea eax, [ebp - 4]
call fcn.30001df0
ret
Function at 0x30005bc8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.3000217c
xor eax, eax
push ebp
push 0x30005cfc
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.30005a44
mov esi, eax
test esi, esi
jle 0x30005cde
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.300021e8
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0xc]
call fcn.3000218c
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x30005cde
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.30001f94
mov ecx, eax
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.300021e8
cmp dword [ebp - 0xc], 0
jne 0x30005c65
xor esi, esi
jmp 0x30005c6f
mov eax, dword [ebp - 0xc]
call fcn.3000218c
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x30005cd5
mov eax, dword [ebp - 0x18]
call fcn.30001140
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push 0
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x30005cce
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jne 0x30005cc5
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov bl, 1
jmp 0x30005cd5
mov eax, edi
call fcn.30001158
jmp 0x30005cd5
mov eax, edi
call fcn.30001158
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x30005d03
lea eax, [ebp - 0xc]
call fcn.30001df0
lea eax, [ebp - 4]
call fcn.30001df0
ret
Function at 0x30006230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.3000217c
xor eax, eax
push ebp
push 0x30006336
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [edi], eax
mov edx, dword [ebp - 8]
mov al, 0x5c
call fcn.30005a44
mov esi, eax
test esi, esi
jle 0x3000631b
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.300021e8
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0xc]
call fcn.3000218c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x3000631b
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.30001f94
mov ecx, eax
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.300021e8
cmp dword [ebp - 0xc], 0
jne 0x300062e8
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
sete bl
jmp 0x30006309
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.3000218c
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
sete bl
test bl, bl
je 0x30006312
mov eax, dword [ebp - 0x14]
mov dword [edi], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3000633d
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.30001e14
ret

Function at 0x30006348
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.3000217c
xor eax, eax
push ebp
push 0x3000640b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.30005a44
mov esi, eax
test esi, esi
jle 0x300063f0
lea eax, [ebp - 8]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.300021e8
lea eax, [ebp - 0xc]
push eax
push 0x20006
push 0
mov eax, dword [ebp - 8]
call fcn.3000218c
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x300063f0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.30001f94
mov ecx, eax
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.300021e8
mov eax, dword [ebp - 8]
call fcn.3000218c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegDeleteValueA
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x30006412
lea eax, [ebp - 8]
mov edx, 2
call fcn.30001e14
ret
Function at 0x3000641c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 5], cl
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.3000217c
xor eax, eax
push ebp
push 0x3000657a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov eax, 0x30006594
call fcn.300022cc
test eax, eax
je 0x30006554
lea eax, [ebp - 0xc]
push eax
push 0x2000e
push 0
mov eax, dword [ebp - 4]
call fcn.3000218c
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExA
mov esi, eax
cmp byte [ebp - 5], 0
je 0x30006537
test esi, esi
jne 0x30006554
mov eax, dword [0x300141d0]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.30002314
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
call fcn.300021e0
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov esi, eax
cmp esi, 0x103
jne 0x300064ec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, dword [ebp - 4]
call fcn.3000218c
push eax
push edi
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
jmp 0x3000652d
test esi, esi
jne 0x3000652d
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.30002314
push dword [ebp - 4]
push 0x30006594
push dword [ebp - 0x10]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.30002054
mov edx, dword [ebp - 0x18]
mov cl, byte [ebp - 5]
mov eax, edi
call fcn.3000641c
test al, al
je 0x30006528
xor esi, esi
jmp 0x3000652d
mov esi, 0x3f2
test esi, esi
je 0x30006490
jmp 0x30006554
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, dword [ebp - 4]
call fcn.3000218c
push eax
push edi
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x30006581
lea eax, [ebp - 0x18]
call fcn.30001df0
lea eax, [ebp - 0x10]
call fcn.30001df0
lea eax, [ebp - 4]
call fcn.30001df0
ret