joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d16c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10018ec8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1000d1ac
cmp byte [ebx], 0xa
jne 0x1000d1ac
or byte [edi + eax + 0x28], 4
jmp 0x1000d1b1
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1000d2b0
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1000d293
inc eax
cmp dl, 0xd
je 0x1000d1dd
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1000d203
cmp eax, ecx
jae 0x1000d211
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1000d1c5
jmp 0x1000d2b0
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000d28e
cmp dword [ebp - 0x10], 0
je 0x1000d28e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10018ec8]
test byte [eax + edi + 0x28], 0x48
je 0x1000d268
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1000d253
mov byte [esi], dl
jmp 0x1000d264
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10018ec8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1000d2b0
cmp byte [ebp - 1], 0xa
jne 0x1000d277
cmp esi, ebx
jne 0x1000d277
mov byte [esi], 0xa
jmp 0x1000d2af
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1000d0dc
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1000d2b0
mov byte [esi], 0xd
jmp 0x1000d2af
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10018ec8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1000d2ad
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1000d2b0
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1000d2b9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10018ec8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1000d2ff
cmp word [ebx], dx
jne 0x1000d2ff
or byte [eax + edi + 0x28], 4
jmp 0x1000d304
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1000d467
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1000d447
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1000d345
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1000d37b
cmp eax, edx
jae 0x1000d389
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1000d320
jmp 0x1000d467
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000d442
cmp dword [ebp - 0x18], 0
je 0x1000d442
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10018ec8]
test byte [eax + edi + 0x28], 0x48
je 0x1000d418
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1000d3dc
mov word [esi], cx
jmp 0x1000d413
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10018ec8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10018ec8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10018ec8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1000d467
pop eax
cmp word [ebp - 4], ax
jne 0x1000d428
cmp esi, ebx
jne 0x1000d428
mov word [esi], ax
jmp 0x1000d464
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1000d0dc
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1000d467
push 0xd
pop eax
jmp 0x1000d423
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10018ec8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1000d461
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1000d467
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1000dbc1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1000db3d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1000dd30
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1000dd30
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1000dce5
jg 0x1000dc1d
test eax, eax
je 0x1000dcdb
push 1
push 0x1000
call fcn.10008259
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1000dc40
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1000dcd2
push 0x8000
push ebx
call fcn.1000da6e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1000dc69
jg 0x1000dc64
cmp ecx, 0x1000
jb 0x1000dc69
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1000b00a
add esp, 0x10
cmp eax, 0xffffffff
je 0x1000dcae
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1000dc64
jl 0x1000dc95
test ecx, ecx
jne 0x1000dc56
push dword [ebp - 0xc]
push ebx
call fcn.1000da6e
push esi
call fcn.1000676d
add esp, 0xc
xor ebx, ebx
jmp 0x1000dd3e
cmp byte [edi + 0x24], 0
je 0x1000dcc5
cmp dword [edi + 0x20], 5
jne 0x1000dcc5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1000dcd0
mov ebx, dword [edi + 0x18]
jmp 0x1000dcd2
xor ebx, ebx
push esi
call fcn.1000676d
pop ecx
jmp 0x1000dd3e
test ecx, ecx
jg 0x1000dca7
jl 0x1000dce5
test eax, eax
jae 0x1000dca7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1000d0dc
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1000dd05
cmp byte [edi + 0x1c], 0
je 0x1000dca7
jmp 0x1000dd36
push ebx
call fcn.1000a597
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1000dca7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1000dd3e
cmp byte [edi + 0x1c], 0
je 0x1000dd3b
mov ebx, dword [edi + 0x18]
jmp 0x1000dd3e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1000d0dc
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000fdd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000fdfd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000fdfd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402590
Capabilities:
Access peb ldr_data
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x435fc7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], 1
mov eax, dword [0xe47e48]
mov dword [esp + 0xc], eax
mov ecx, dword [ecx + 0xd0]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
push ecx
push 0x1ff
push 0x200
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 4
call fcn.0042a3ae
push eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call fcn.0042a3fd
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00429d08
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 3
call fcn.00429f93
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 2
call fcn.00429f93
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 1
call fcn.00429f93
lea ecx, [esp + 0x30]
mov byte [esp + 0x1c], 0
call fcn.00429f93
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10

Function at 0x4039c0
Capabilities:
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x436119
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push esi
mov esi, ecx
push eax
push 0x66
mov dword [esp + 0x10], esi
call fcn.0042e00e
lea ecx, [esi + 0x60]
mov dword [esp + 0x14], 0
call fcn.0040df80
lea ecx, [esi + 0x254]
mov byte [esp + 0x14], 1
call fcn.00431508
mov bl, 2
mov dword [esi], method.CDialog.virtual_0
mov byte [esp + 0x14], bl
call fcn.00432ce1
call fcn.00432ce1
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x170
mov dword [esi + 0x2f0], eax
call fcn.0042a4f4
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 3
je 0x403a58
mov ecx, eax
call fcn.004062f0
jmp 0x403a5a
xor eax, eax
push 0xb0
mov byte [esp + 0x18], bl
mov dword [esi + 0x2dc], eax
call fcn.0042a4f4
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 4
je 0x403a87
mov ecx, eax
call fcn.00409c70
jmp 0x403a89
xor eax, eax
push 0xe8
mov byte [esp + 0x18], bl
mov dword [esi + 0x2e0], eax
call fcn.0042a4f4
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 5
je 0x403ab6
mov ecx, eax
call fcn.0040b010
jmp 0x403ab8
xor eax, eax
push 0x150
mov byte [esp + 0x18], bl
mov dword [esi + 0x2e4], eax
call fcn.0042a4f4
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 6
je 0x403ae5
mov ecx, eax
call fcn.0040cd30
jmp 0x403ae7
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x2e8], eax
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x404c90
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4362d7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [0xe47e48]
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ebx, [ebp + 8]
mov dword [esp + 0x24], ebp
mov dword [ebx], eax
mov ecx, dword [0xe47e48]
xor eax, eax
mov dword [esp + 0x134], eax
mov dword [ebp + 0xc], ecx
mov edi, dword [esp + 0x144]
mov byte [esp + 0x134], 1
cmp edi, eax
mov dword [ebp], 0x439a00
mov dword [ebp + 4], eax
je 0x404d2b
or ecx, 0xffffffff
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push reloc.OLEAUT32.dll_SysStringLen
push edx
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
mov edi, dword [esp + 0x144]
jmp 0x404d3c
lea ecx, [esp + 0x14]
push ecx
push reloc.OLEAUT32.dll_SysStringLen
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
test eax, eax
jne 0x404e44
lea edx, [esp + 0x18]
push edx
push 0x20019
push eax
mov eax, dword [esp + 0x20]
push 0xe473d4
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404d73
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404e44
mov edx, dword [0xe47e48]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x140]
mov ecx, dword [esp + 0x13c]
push eax
push ecx
lea edx, [esp + 0x18]
push 0xe473cc
push edx
mov byte [esp + 0x144], 2
call fcn.00427a01
mov edx, dword [esp + 0x20]
add esp, 0x10
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
push 0
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404e1f
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0042a4f4
mov esi, eax
add esp, 4
test esi, esi
je 0x404e1f
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
push edi
inc eax
lea ecx, [ebp + 0xc]
mov dword [ebp + 4], eax
call fcn.0042a11c
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.0042a0cc
push esi
call fcn.0042a51d
add esp, 4
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 1
call fcn.00429f93
mov ecx, dword [esp + 0x12c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret 0xc
Function at 0x404e90
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x436306
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], edi
mov dword [edi], 0x439a00
mov eax, dword [edi + 8]
lea ebp, [edi + 8]
mov dword [edi + 4], 0
mov dword [esp + 0x2c], 1
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x404fc4
mov ecx, dword [edi + 0xc]
lea esi, [edi + 0xc]
mov eax, dword [ecx - 8]
mov ecx, esi
push eax
call fcn.0042a3ae
lea edx, [esp + 0x14]
push edx
push reloc.OLEAUT32.dll_SysStringLen
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
push 0xffffffffffffffff
mov ecx, esi
mov ebx, eax
call fcn.0042a3fd
test ebx, ebx
jne 0x404fc4
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
push 0xe473e8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404f3c
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404fc4
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
lea edx, [esp + 0x20]
push 0
push edx
push 0
push eax
mov eax, dword [esp + 0x24]
push eax
call ebx
test eax, eax
je 0x404f75
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
jmp 0x404fc4
mov eax, dword [esp + 0x18]
push eax
call fcn.0042a4f4
mov esi, eax
add esp, 4
test esi, esi
je 0x404fa9
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push esi
push edx
push 0
push eax
mov eax, dword [esp + 0x24]
push eax
call ebx
push esi
call fcn.0042a51d
add esp, 4
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
mov ecx, ebp
call fcn.00429f1e
lea ecx, [edi + 0xc]
mov byte [esp + 0x2c], 0
call fcn.00429f93
mov ecx, ebp
mov dword [esp + 0x2c], 0xffffffff
call fcn.00429f93
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x405000
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
jne 0x405018
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 4
mov eax, dword [esi + 0xc]
lea edi, [esi + 0xc]
mov dword [esi + 4], 0
push ebx
mov eax, dword [eax - 8]
mov ecx, edi
push eax
call fcn.0042a3ae
lea ecx, [esp + 0xc]
push ecx
push reloc.OLEAUT32.dll_SysStringLen
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
push 0xffffffffffffffff
mov ecx, edi
mov ebx, eax
call fcn.0042a3fd
test ebx, ebx
pop ebx
je 0x40505c
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 4
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push 0x20019
push 0
push 0xe473fc
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405091
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 4
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
mov dword [esp + 0x14], 3
push edx
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], 4
push eax
mov dword [esi + 4], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4050d3
mov dword [esi + 4], 0
mov ecx, dword [esp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call edi
mov edx, dword [esp + 8]
push edx
call edi
mov eax, dword [esi + 4]
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x405260
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebp
mov ebp, ecx
mov eax, dword [ebp + 4]
test eax, eax
jne 0x405276
xor eax, eax
pop ebp
add esp, 0xc
ret 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push edi
push 0x2ee0
push 8
mov dword [esp + 0x18], 0x2ee0
mov dword [esp + 0x20], 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
mov esi, eax
mov eax, dword [ebp + 8]
push ecx
push esi
push 0
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
call edi
cmp eax, 0xea
jne 0x4052fb
mov eax, dword [esp + 0x10]
add eax, 0x3e8
push eax
push esi
push 8
mov dword [esp + 0x1c], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
lea edx, [esp + 0x10]
mov esi, eax
mov eax, dword [ebp + 8]
push edx
push esi
push 0
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
call edi
cmp eax, 0xea
je 0x4052c3
mov edi, dword [esi + 0x18]
mov dword [esp + 0x14], 0
add edi, esi
mov ebx, dword [edi + 8]
mov eax, dword [edi + 0x20]
add ebx, edi
test eax, eax
jle 0x405344
mov eax, dword [ebp + 0xc]
push eax
call fcn.004169f6
mov ecx, dword [ebx + 4]
add esp, 4
cmp ecx, eax
je 0x40533d
mov eax, dword [ebx]
mov ecx, dword [edi + 0x20]
add ebx, eax
mov eax, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x405314
jmp 0x405344
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x18], eax
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x18]
add ecx, edi
push esi
push 0
mov eax, dword [ecx + edx]
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
test eax, eax
pop ebx
jne 0x405370
mov dword [ebp + 4], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ebp
add esp, 0xc
ret 4
Function at 0x405390
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x108
mov al, byte [0xe4c18c]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x18], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
xor ebx, ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
xor esi, esi
push ecx
push 0x20019
stosw word es:[edi], ax
push ebx
push 0xe47418
push reloc.OLEAUT32.dll_SysReAllocString
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
push edx
push ebx
push ebx
push ebx
push 0xe47410
push eax
call ebp
mov ecx, dword [esp + 0x14]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x405420
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret 8
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push edi
push 0
push 0
push 0xe47410
push ecx
call ebp
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4054cb
mov al, byte [edi + esi]
mov ecx, dword [esp + 0x120]
test al, al
je 0x40545c
inc esi
mov byte [ebx + ecx], al
inc ebx
mov al, byte [edi + esi]
test al, al
jne 0x405450
inc esi
mov byte [ebx + ecx], 0
xor ecx, ecx
mov al, byte [edi + esi]
test al, al
je 0x405477
inc esi
mov byte [esp + ecx + 0x18], al
inc ecx
mov al, byte [edi + esi]
test al, al
jne 0x40546a
mov al, byte [edi + esi + 1]
inc esi
xor ebx, ebx
mov byte [esp + ecx + 0x18], 0
test al, al
jne 0x405488
inc esi
mov ebp, dword [esp + 0x11c]
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [ebp]
jne 0x4054b8
test cl, cl
je 0x4054b4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [ebp + 1]
jne 0x4054b8
add eax, 2
add ebp, 2
test cl, cl
jne 0x405493
xor eax, eax
jmp 0x4054bd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4054cb
cmp esi, dword [esp + 0x14]
jne 0x405442
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret 8
Function at 0x4059a0
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x43641f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov dword [esp + 0xc], 0
mov ebx, 1
mov dword [esp + 0x20], ebx
mov eax, dword [0xe47e48]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 3
push ecx
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405a0f
mov esi, dword [esp + 0x28]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.00429d08
mov dword [esp + 0xc], ebx
jmp 0x405a83
mov esi, dword [esp + 0x34]
lea edx, [esp + 0x10]
push edx
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], 0x104
mov dword [esp + 0x1c], 2
call fcn.0042a3ae
mov ecx, dword [esp + 0x30]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.0042a3fd
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x405a6f
lea ecx, [esp + 8]
call fcn.00429f1e
mov esi, dword [esp + 0x28]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.00429d08
mov dword [esp + 0xc], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x20], 2
call fcn.00429f93
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call fcn.00429f93
lea ecx, [esp + 0x34]
mov byte [esp + 0x20], 0
call fcn.00429f93
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x405de0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x405e42
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc