joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404d7c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
stosb byte es:[edi], al
add byte [eax], al
add byte [ecx + 0x331c247c], cl
ror byte [ecx - 0x76e7db8c], 0x5c
and al, 0x10

Function at 0x404ea8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push eax
cmp al, 3
ror byte [ebx + 0x4f12080d], 1
invalid
invalid
invalid

Function at 0x404ec0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov esi, dword [edi + eax + 0x1c]
add edx, eax
mov ebx, dword [edi + eax + 0x24]
add esi, eax
mov edi, dword [edi + eax + 0x18]
add ebx, eax
test edi, edi
jbe 0x404f88
mov dword [esp + 0x1c], edi
xor eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], ecx

Function at 0x404f18
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ebx, dword [esp + 0x34]
add ebx, dword [edx + eax*4]
cmp byte [ebx], 0
je 0x404f71
xor ecx, ecx
inc ecx
lea esi, [ecx + ecx]
cmp byte [ebx + esi - 1], 0
lea edi, [ecx + ecx - 1]
je 0x404f11
mov edi, esi
cmp byte [ebx + esi], 0
jne 0x404efa
mov dword [esp + 0xc], edi
cmp dword [esp + 0xc], 0
or al, 0
jbe 0x404f71
xor ecx, ecx
shr edi, 1
je 0x405647
mov dword [esp], eax
xor esi, esi
mov dword [esp + 8], edx
mov eax, dword [esp + 0x20]
imul ecx, eax
movzx edx, byte [ebx + esi*2]
add ecx, edx
imul ecx, eax
movzx edx, byte [ebx + esi*2 + 1]
inc esi
add ecx, edx
cmp esi, edi
jb 0x404f33
mov dword [esp + 0x20], eax
lea edi, [esi + esi + 1]
mov eax, dword [esp]
mov edx, dword [esp + 8]
lea esi, [edi - 1]
cmp esi, dword [esp + 0xc]
jae 0x404f73
imul ecx, dword [esp + 0x20]
movzx ebx, byte [ebx + edi - 1]
add ecx, ebx
jmp 0x404f73
xor ecx, ecx
cmp ecx, dword [esp + 0x24]
je 0x405719
invalid
pushfd
pop es
add byte [eax], al
test byte [edi + eax + 0x3b400000], bl
inc esp
and al, 0x1c
inc eax
cmp eax, dword [esp + 0x1c]
jb 0x404eec
xor eax, eax
xor ebx, ebx
push ebx
mov esi, dword [0x4f11f0]
mov ecx, dword [0x4f120c]
or eax, 0x4f120c
mov edx, dword [0x4f1204]
push edx
push ecx
push ebx
push 1
push esi
push dword [esp + 0x2c]
call eax
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [0x4f11ec]
mov edi, 1
jmp 0x404f5a
mov ebx, dword [esp + 0x18]
movzx edx, word [ebx + eax*2]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
add eax, dword [esi + edx*4]
jmp 0x404f8a
Function at 0x404f78
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ebx, dword [esp + 0x34]
add ebx, dword [edx + eax*4]
cmp byte [ebx], 0
je 0x404f71
xor ecx, ecx
inc ecx
lea esi, [ecx + ecx]
cmp byte [ebx + esi - 1], 0
lea edi, [ecx + ecx - 1]
je 0x404f11
mov edi, esi
cmp byte [ebx + esi], 0
jne 0x404efa
mov dword [esp + 0xc], edi
cmp dword [esp + 0xc], 0
or al, 0
jbe 0x404f71
xor ecx, ecx
shr edi, 1
je 0x405647
mov dword [esp], eax
xor esi, esi
mov dword [esp + 8], edx
mov eax, dword [esp + 0x20]
imul ecx, eax
movzx edx, byte [ebx + esi*2]
add ecx, edx
imul ecx, eax
movzx edx, byte [ebx + esi*2 + 1]
inc esi
add ecx, edx
cmp esi, edi
jb 0x404f33
mov dword [esp + 0x20], eax
lea edi, [esi + esi + 1]
mov eax, dword [esp]
mov edx, dword [esp + 8]
lea esi, [edi - 1]
cmp esi, dword [esp + 0xc]
jae 0x404f73
imul ecx, dword [esp + 0x20]
movzx ebx, byte [ebx + edi - 1]
add ecx, ebx
jmp 0x404f73
xor ecx, ecx
cmp ecx, dword [esp + 0x24]
je 0x405719
invalid
pushfd
pop es
add byte [eax], al
test byte [edi + eax + 0x3b400000], bl
inc esp
and al, 0x1c
inc eax
cmp eax, dword [esp + 0x1c]
jb 0x404eec
xor eax, eax
xor ebx, ebx
push ebx
mov esi, dword [0x4f11f0]
mov ecx, dword [0x4f120c]
or eax, 0x4f120c
mov edx, dword [0x4f1204]
push edx
push ecx
push ebx
push 1
push esi
push dword [esp + 0x2c]
call eax
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [0x4f11ec]
mov edi, 1
jmp 0x404f5a
mov ebx, dword [esp + 0x18]
movzx edx, word [ebx + eax*2]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
add eax, dword [esi + edx*4]
jmp 0x404f8a

Function at 0x404fb8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 0x3c]
add edx, eax
mov ecx, dword [0x4f1208]
mov ebx, dword [0x4f1210]
mov edi, dword [edx + ebx*8 + 0x78]
mov edx, dword [edi + eax + 0x20]
mov ebx, dword [edi + eax + 0x1c]
add edx, eax
mov esi, dword [edi + eax + 0x24]
add ebx, eax
mov edi, dword [edi + eax + 0x18]
add esi, eax
test edi, edi
dec dword [edi]
invalid
mov al, 0
add byte [eax], al
mov dword [esp + 0x20], edi
xor eax, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx

Function at 0x404fe8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 0x3c]
add edx, eax
mov ecx, dword [0x4f1208]
mov ebx, dword [0x4f1210]
mov edi, dword [edx + ebx*8 + 0x78]
mov edx, dword [edi + eax + 0x20]
mov ebx, dword [edi + eax + 0x1c]
add edx, eax
mov esi, dword [edi + eax + 0x24]
add ebx, eax
mov edi, dword [edi + eax + 0x18]
add esi, eax
test edi, edi
dec dword [edi]
invalid
mov al, 0
add byte [eax], al
mov dword [esp + 0x20], edi
xor eax, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
Function at 0x405104
Capabilities:
Resolve function by parsing pe exports

Disassembly:
ror byte [ecx - 0x76dfdb8c], 0x5c
and al, 0x1c

Function at 0x405178
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add dword [ebx - 0x72efdbac], ecx
ja 0x40517f
invalid

Function at 0x405180
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp esi, dword [esp + 0x18]
jae 0x405196
imul ecx, dword [esp + 0x2c]
movzx ebx, byte [ebx + edi - 1]

Function at 0x405268
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp eax, ebx
jae 0x405275
add dword [esi + eax*4 + 8], ecx
inc eax
cmp eax, ebx
jb 0x40526c
invalid
cld
invalid

Function at 0x4052ec
Capabilities:
Resolve function by parsing pe exports

Disassembly:
and al, 0x14
movzx ecx, byte [eax + ebx]
add ecx, edx
jmp 0x4052f8
mov eax, dword [esp + 0x34]
Function at 0x40531c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sbb al, 3
ror byte [ebx + 0x3240774], 1
fmul dword [ebx + 0x318077c]
invalid

Function at 0x405334
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jl 0x40535a
and al, 0x33
ror byte [ecx - 0x76dfdb8c], 0x5c
and al, 0x1c
inc dword [eax]

Function at 0x405358
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jl 0x40538d
scasd eax, dword es:[edi]
enter 0xffffffffffffb60f, 0x14
jae 0x405397
retf 0xaf0f
enter 0xffffffffffffb60f, 0x54
jae 0x40539e

Function at 0x40538c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
imul ecx, eax
movzx edx, byte [ebx + esi*2]
add ecx, edx
imul ecx, eax
movzx edx, byte [ebx + esi*2 + 1]
inc esi
add ecx, edx
cmp esi, edi
jb fcn.0040538c
mov eax, dword [esp]
lea edi, [esi + esi + 1]
mov edx, dword [esp + 8]

Function at 0x405e10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xchg dword [esp], ecx
push ecx
xor ecx, ecx
test edx, edx
je 0x405e24
cmp word [edx - 0xa], 1
je 0x405e29
mov ecx, dword [edx - 4]
jmp fcn.004051e4
pop ecx
xchg dword [esp], ecx
jmp fcn.00404fe8
Function at 0x4013e0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push edi
mov edi, ecx
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [edi + 0x10]
cmp eax, 0xffffffff
jne 0x4013fd
pop edi
xor eax, eax
pop ebx
pop ecx
ret 0xc
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov dword [esp + 0x10], ebx
test ebp, ebp
mov dword [esp + 0x1c], 0
jbe 0x401484
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push 0
push ecx
mov ecx, dword [edi + 0x10]
lea eax, [ebx + edx]
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test esi, esi
jne 0x401489
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x79
jne 0x401479
mov ecx, dword [edi + 0x10]
lea edx, [esp + 0x1c]
push esi
push edx
lea eax, [esp + 0x18]
push 4
push eax
push esi
push esi
push 0x222100
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, eax
test esi, esi
je 0x4014a8
mov eax, dword [esp + 0x10]
sub ebp, eax
push 0x64
mov ecx, edi
add ebx, eax
call fcn.004014c0
test eax, eax
jne 0x4014a8
jmp 0x401407
cmp eax, 0x15
mov eax, dword [esp + 0x1c]
jne 0x4014a6
jmp 0x401468
mov esi, 1
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
add ebx, eax
mov eax, esi
pop esi
mov dword [edi + 8], 0
pop ebp
mov dword [edx], ebx
pop edi
pop ebx
pop ecx
ret 0xc
add ebx, eax
mov edx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebp
mov dword [edx], ebx
pop edi
pop ebx
pop ecx
ret 0xc

Function at 0x401500
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [ecx + 0x10]
xor eax, eax
cmp ecx, 0xffffffff
je 0x401524
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
ret 0xc
mov ecx, dword [esp + 0xc]
mov dword [ecx], 0
ret 0xc
Function at 0x4016f0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x28
push ebp
push edi
xor ebp, ebp
push 0x12
push ebp
push ebp
push 0x4205b0
mov dword [esp + 0x20], ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401812
lea eax, [esp + 0x14]
mov dword [esp + 0xc], ebp
push eax
push ebp
push 0x4205b0
push ebp
push edi
mov dword [esp + 0x28], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x40180b
push ebx
push esi
lea ecx, [esp + 0x10]
push ebp
push ecx
push ebp
lea edx, [esp + 0x28]
push ebp
push edx
push edi
mov dword [esp + 0x28], ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
mov eax, dword [esp + 0x10]
push eax
mov esi, eax
call fcn.0041815b
mov ebx, eax
add esp, 4
cmp ebx, ebp
je 0x4017dd
lea eax, [esp + 0x10]
push ebp
push eax
push esi
lea ecx, [esp + 0x28]
push ebx
push ecx
push edi
mov dword [ebx], 5
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
test eax, eax
je 0x4017d4
push ebp
push ebp
push 3
lea edx, [esp + 0x28]
push ebp
push edx
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiCreateDeviceInterfaceRegKeyA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4017b7
push 3
lea eax, [esp + 0x20]
push ebp
push eax
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDeviceInterfaceRegKey]
mov esi, eax
cmp esi, 0xffffffff
je 0x4017d4
lea ecx, [esp + 0x18]
push 4
push ecx
push 4
push ebp
push str.UsedVersion
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00418184
add esp, 4
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
inc eax
push edx
push eax
push 0x4205b0
push ebp
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x40173e
pop esi
pop ebx
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop edi
pop ebp
add esp, 0x28
ret

Function at 0x4019e0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x401a65
lea ebx, [edi + 0x10]
push 3
push ebp
push ebx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDeviceInterfaceRegKey]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401a1f
mov eax, dword [edi + 8]
push ebp
push ebp
push 3
push ebp
push ebx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiCreateDeviceInterfaceRegKeyA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401a65
lea ecx, [esp + 0x1c]
push 4
push ecx
push 4
push 0
push str.UsedVersion
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x401a5e
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x401a59
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0
push 1
push 0
call sub.WINSPOOL.DRV_EnumPortsA
mov ebp, 1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x4023d0
Capabilities:
Get common file path
Get file version info

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x110
lea ecx, [esp + 0xc]
push ebp
xor ebp, ebp
push 0x104
push ecx
mov dword [eax], ebp
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, 0x104
jbe 0x402402
xor eax, eax
pop ebp
add esp, 0x110
ret 8
push ebx
push esi
lea edx, [esp + 0x18]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esp + eax + 0x1b]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp cl, 0x5c
je 0x40242b
lea eax, [esp + 0x1c]
push 0x427324
push eax
call esi
mov ebx, dword [esp + 0x124]
lea ecx, [esp + 0x1c]
push ebx
push ecx
call esi
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ebp
push edx
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebp
je 0x4024a6
push esi
call fcn.0041815b
mov edi, eax
add esp, 4
cmp edi, ebp
je 0x4024a6
mov eax, dword [esp + 0x10]
push edi
push esi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40249d
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
push 0x427324
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40249d
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x128]
mov ebp, 1
mov ecx, dword [eax + 8]
mov dword [edx], ecx
push edi
call fcn.00418184
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebx
pop ebp
add esp, 0x110
ret 8

Function at 0x4024c0
Capabilities:
Access the windows event log

Disassembly:
mov eax, dword [ecx + 0x78]
sub esp, 0x20c
push esi
push edi
xor edi, edi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x402537
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esp + 0x224]
lea edx, [esp + 0xc]
push ecx
push eax
push str.PID_d:__s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esp + 0x230]
add esp, 0x10
lea ecx, [esp + 8]
lea eax, [esp + 0xc]
push edi
push ecx
mov ecx, dword [esp + 0x220]
push edi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x228]
push 1
push edi
push edx
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, edi
pop edi
pop esi
add esp, 0x20c
ret 0x10
Function at 0x402e80
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ee70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x104]
mov dword [ebp - 0x10], esp
cmp eax, ebx
jle 0x402ec3
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0xfc]
call fcn.004048c0
cmp dword [esi + 0x118], ebx
jle 0x402ed9
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0x110]
call fcn.00413d79
cmp dword [esi + 0x12c], ebx
jle 0x402eef
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0x124]
call fcn.00413d79
mov eax, dword [esi + 0xdc]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push 0x1105
push eax
call edi
cmp eax, ebx
je 0x402f22
cmp eax, 0xffffffff
je 0x402f22
mov ecx, dword [esi + 0xdc]
push 0xffff0000
push ebx
push 0x1101
push ecx
call edi
mov edx, dword [str.V2.xx]
push 0xffff0002
push 0xffff0000
push ebx
push ebx
push ebx
push ebx
lea edi, [esi + 0xc0]
push ebx
push edx
push 1
mov ecx, edi
call fcn.00413b4e
mov eax, dword [str.V3.03]
push 0xffff0002
push 0xffff0000
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push 1
mov ecx, edi
call fcn.00413b4e
mov ecx, dword [0x427340]
push 0xffff0002
push 0xffff0000
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push 1
mov ecx, edi
call fcn.00413b4e
mov eax, dword [0x42abf8]
lea edx, [ebp - 0x14]
push edx
push 0x20019
push ebx
push eax
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x403019
mov edi, dword [ebp - 0x14]
mov ecx, esi
mov ebx, edi
push edi
mov dword [ebp - 0x18], ebx
call fcn.004030b0
push edi
mov ecx, esi
call fcn.004031e0
mov eax, dword [0x4275b0]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x12c]
push 0x105
push ecx
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0x103
jne 0x40302a
test ebx, ebx
je 0x403002
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0041841a
test ebx, ebx
je 0x403019
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x4030a7
sub esp, 0x2c
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0
call fcn.00404e60
lea ecx, [esi + 0xfc]
call fcn.00404550
lea ecx, [eax + eax*4]
lea edx, [ebp - 0x12c]
push edx
lea edi, [eax + ecx*2]
mov eax, dword [esi + 0x100]
shl edi, 2
mov ecx, edi
add ecx, eax
call fcn.00404f80
test eax, eax
je 0x4030a0
lea eax, [esi + 0xc0]
mov ecx, edi
push eax
mov eax, dword [esi + 0x100]
add ecx, eax
call fcn.00405560
jmp 0x4030a0
mov dword [ebp - 4], 1
inc dword [ebp - 0x14]
jmp 0x402fd4
Function at 0x4030b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ee80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x118]
mov dword [ebp - 0x10], esp
test eax, eax
mov dword [ebp - 0x20], ebx
jle 0x4030ef
push 0xffffffffffffffff
push 0
lea ecx, [ebx + 0x110]
call fcn.00413d79
mov edx, dword [0x42abf4]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
push 0
push ecx
push 0
mov edi, 3
push edx
push esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4031c0
cmp dword [ebp - 0x18], edi
jne 0x4031c0
mov eax, dword [ebp - 0x14]
test eax, eax
jbe 0x4031c0
push eax
call fcn.0041815b
add esp, 4
mov edi, eax
test eax, eax
mov dword [ebp - 0x24], edi
je 0x4031b7
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x18]
push ecx
push eax
mov eax, dword [0x42abf4]
push edx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4031b7
xor esi, esi
mov eax, dword [ebp - 0x14]
mov dword [ebp + 8], esi
cmp esi, eax
jae 0x4031b7
mov cl, byte [esi + edi]
mov eax, dword [ebx + 0x118]
mov byte [ebp - 0x1c], cl
lea ecx, [ebx + 0x110]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0
push edx
push eax
call fcn.00413e70
mov dword [ebp - 4], 0xffffffff
inc esi
jmp 0x403167
push edi
call fcn.00418184
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4031e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ee90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x12c]
mov dword [ebp - 0x10], esp
test eax, eax
mov dword [ebp - 0x20], ebx
jle 0x40321f
push 0xffffffffffffffff
push 0
lea ecx, [ebx + 0x124]
call fcn.00413d79
mov edx, dword [0x42abf0]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
push 0
push ecx
push 0
mov edi, 3
push edx
push esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4032f0
cmp dword [ebp - 0x18], edi
jne 0x4032f0
mov eax, dword [ebp - 0x14]
test eax, eax
jbe 0x4032f0
push eax
call fcn.0041815b
add esp, 4
mov edi, eax
test eax, eax
mov dword [ebp - 0x24], edi
je 0x4032e7
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x18]
push ecx
push eax
mov eax, dword [0x42abf0]
push edx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4032e7
xor esi, esi
mov eax, dword [ebp - 0x14]
mov dword [ebp + 8], esi
cmp esi, eax
jae 0x4032e7
mov cl, byte [esi + edi]
mov eax, dword [ebx + 0x12c]
mov byte [ebp - 0x1c], cl
lea ecx, [ebx + 0x124]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0
push edx
push eax
call fcn.00413e70
mov dword [ebp - 4], 0xffffffff
inc esi
jmp 0x403297
push edi
call fcn.00418184
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403440
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x41eeb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x42abe8]
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
mov ebx, ecx
jne 0x403504
mov esi, dword [ebx + 0x118]
mov eax, dword [0x42abf8]
lea ecx, [esp + 0x10]
push ecx
push 0x20006
push edi
push eax
push 0x80000002
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x403504
mov ebp, dword [esp + 0x10]
cmp esi, edi
mov dword [esp + 0x10], ebp
jle 0x4034ec
push esi
call fcn.0041815b
mov edi, eax
add esp, 4
test edi, edi
je 0x4034f9
xor eax, eax
test esi, esi
jle 0x4034cd
mov edx, dword [ebx + 0x114]
inc eax
cmp eax, esi
mov cl, byte [edx + eax - 1]
mov byte [eax + edi - 1], cl
jl 0x4034ba
mov edx, dword [0x42abf4]
push esi
push edi
push 3
push 0
push edx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
call fcn.00418184
add esp, 4
jmp 0x4034f9
mov eax, dword [0x42abf4]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test ebp, ebp
je 0x403504
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x403520
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x41eed8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x42abe8]
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
mov ebx, ecx
jne 0x4035e4
mov esi, dword [ebx + 0x12c]
mov eax, dword [0x42abf8]
lea ecx, [esp + 0x10]
push ecx
push 0x20006
push edi
push eax
push 0x80000002
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x4035e4
mov ebp, dword [esp + 0x10]
cmp esi, edi
mov dword [esp + 0x10], ebp
jle 0x4035cc
push esi
call fcn.0041815b
mov edi, eax
add esp, 4
test edi, edi
je 0x4035d9
xor eax, eax
test esi, esi
jle 0x4035ad
mov edx, dword [ebx + 0x128]
inc eax
cmp eax, esi
mov cl, byte [edx + eax - 1]
mov byte [eax + edi - 1], cl
jl 0x40359a
mov edx, dword [0x42abf0]
push esi
push edi
push 3
push 0
push edx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
call fcn.00418184
add esp, 4
jmp 0x4035d9
mov eax, dword [0x42abf0]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test ebp, ebp
je 0x4035e4
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret