joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440d08
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x440d21
or eax, 0xffffffff
jmp 0x440d82
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x440d7e
push 0x3d
push esi
call fcn.00440f49
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x440d7e
cmp esi, eax
je 0x440d7e
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x45ac04]
sete cl
cmp eax, dword [0x45ac08]
mov dword [ebp - 8], ecx
jne 0x440d64
mov edi, eax
call fcn.00440ca7
mov dword [0x45ac04], eax
cmp eax, ebx
jne 0x440dbd
cmp dword [ebp + 0xc], ebx
je 0x440d86
cmp dword [0x45ac0c], ebx
je 0x440d86
call fcn.004401c1
test eax, eax
je 0x440dbd
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x440d8f
xor eax, eax
jmp 0x440d81
push 4
call fcn.00432fcf
cmp eax, ebx
pop ecx
mov dword [0x45ac04], eax
je 0x440d7e
mov dword [eax], ebx
cmp dword [0x45ac0c], ebx
jne 0x440dbd
push 4
call fcn.00432fcf
cmp eax, ebx
pop ecx
mov dword [0x45ac0c], eax
je 0x440d7e
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x45ac04]
call fcn.00440c5a
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x440e1e
cmp dword [esi], ebx
je 0x440e1e
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00432fe1
cmp dword [ebp - 8], ebx
pop ecx
jne 0x440e01
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x440e5f
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x440df8
mov eax, edi
shl eax, 2
push eax
push dword [0x45ac04]
call fcn.0043409b
cmp eax, ebx
pop ecx
pop ecx
je 0x440e5f
jmp 0x440e5a
cmp dword [ebp - 8], ebx
jne 0x440eca
cmp edi, ebx
jge 0x440e2d
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x45ac04]
call fcn.0043409b
cmp eax, ebx
pop ecx
pop ecx
je 0x440d7e
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x45ac04], eax
cmp dword [ebp + 0xc], ebx
je 0x440eb4
push dword [ebp - 4]
call fcn.00431980
inc eax
inc eax
push eax
call fcn.00432fcf
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x440eb4
push dword [ebp - 4]
push esi
call fcn.00431a20
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x440ead
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00432fe1
pop ecx
cmp dword [ebp - 8], ebx
je 0x440ec2
push dword [ebp - 4]
call fcn.00432fe1
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x440d81
push dword [ebp - 4]
call fcn.00432fe1
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x440d8b
Function at 0x418984
Capabilities:
Encode data using xor

Disassembly:
out dx, al
and eax, dword [ecx]
shr edi, 1
ret
retf 0x9ac8
fidivr dword [esi]
and al, 0x83
inc eax
jge 0x418949
std
jecxz 0x41891a
mov word [0x8ad45871], es
shl al, 0xa1
mov al, 0x3a
jmp 0x234966cc

Function at 0x419610
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
jne 0x41967f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
push 0x4ce074
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
lea eax, [esp + 0xc]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test esi, esi
mov ebx, eax
mov dword [edi], esi
je 0x419655
push 0x4ce064
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 8], eax
pop esi
test ebx, ebx
pop ebx
je 0x41967f
mov ecx, dword [0x4d1af4]
push 0x4d17e0
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edx, dword [0x4d1af4]
push edx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
mov dword [0x4d0fc8], eax
pop edi
pop ecx
ret

Function at 0x449980
Capabilities:
Encode data using xor

Disassembly:
mov ah, byte [esi + ebp*4 + 0x4200a745]
and dword [ebx + 0x5a3d5fb1], ecx
invalid
pop edx
in eax, dx
add al, 7
push ss
insd dword es:[edi], dx
cld
lcall 0xdaa4, 0xa3a1a053
inc ecx
sub dword [edi + 0x7f935dc8], ebx
sbb al, 0xaa
je 0x44996c
loopne 0x449945
invalid
out dx, eax
invalid

Function at 0x462ee0
Capabilities:
Encode data using xor

Disassembly:
pop ebp
std
mov word [esi], gs
dec ecx
movsb byte es:[edi], byte [esi]
xor eax, dword [esi]
xor dword [ecx - 0x4e], eax
inc edi
sbb dword [esi + 0x464eb188], esp
xchg ecx, eax
sti
cmp dword [0xfe418231], esp
add byte [ecx - 2], 0x37
add byte [ecx - 2], 0x37
ficomp word [ecx - 0x62]
pop edx
aas
xlatb
mov edi, 0xa7d9acf1
xor al, 0x2c
popal
aam 0x3c
jle 0x462ec8
salc
pop ds
adc esi, ebx
and edx, edi
in al, dx
lcall 0x5a75, 0x5e6aba55
push ecx
pushal
in eax, 4
arpl word [eax - 0x1b], bx
in eax, 0x7c
push edi
das
invalid

Function at 0x47aab4
Capabilities:
Encode data using xor

Disassembly:
int3
int1
mul byte [ebp + 0x61]
jno 0x47aa76
pop esp
in eax, 0x1b
pop eax
sub dl, byte [eax - 0x5b8f4b88]
jo 0x47aa5a
wait
ret 0xfc8f
Function at 0x4c6fe1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4ce3a8
cmp edx, dword [eax]
je 0x4c7003
add eax, 8
inc ecx
cmp eax, 0x4ce438
jl 0x4c6ff4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4ce3a8]
jne 0x4c7131
mov eax, dword [0x4d3dd8]
cmp eax, 1
je 0x4c710b
test eax, eax
jne 0x4c7034
cmp dword [0x4ce2d4], 1
je 0x4c710b
cmp edx, 0xfc
je 0x4c7131
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c706b
lea eax, [ebp - 0x1a4]
push 0x4cc6c8
push eax
call fcn.004c79c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c7e50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c70ae
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c7e50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cc6c4
push edi
call fcn.004c9d20
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4cc6a8
push eax
call fcn.004c79c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c79d0
lea eax, [ebp - 0xa0]
push 0x4cc6a4
push eax
call fcn.004c79d0
push dword [esi + 0x4ce3ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c79d0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4cc67c
push eax
call fcn.004c9c94
add esp, 0x2c
pop edi
jmp 0x4c7131
lea eax, [ebp + 8]
lea esi, [esi + 0x4ce3ac]
push 0
push eax
push dword [esi]
call fcn.004c7e50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x40bac4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
lea eax, [edi + 1]
push eax
push 0x40
call dword [0x40d00c]
mov esi, eax
xor ebx, ebx
mov byte [esi + edi], bl
test edi, edi
je 0x40bb18
sub dword [ebp - 4], esi
push dword [ebp - 8]
call dword [0x40d008]
mov ecx, eax
xor edx, edx
mov eax, ebx
div ecx
mov eax, dword [ebp - 8]
mov cl, byte [edx + eax]
lea edx, [ebx + esi]
mov eax, dword [ebp - 4]
mov al, byte [eax + edx]
xor al, cl
inc ebx
mov byte [edx], al
cmp ebx, edi
jb 0x40baef
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x527064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
mov eax, 0x20019
jne 0x401049
cmp dword [ebp - 0x110], 0
je 0x40104e
mov eax, 0x20219
test esi, esi
je 0x401080
lea ecx, [ebp - 0x11c]
push ecx
push eax
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x11c]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004908ad
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004908ad
mov esp, ebp
pop ebp
ret

Function at 0x4010a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push str.SoftwareMcAfeeSystemCore
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, 3
call section..text
mov ebx, eax
add esp, 8
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x4011bb
cmp byte [ebp + 8], 0
mov esi, dword [ebp + 0x14]
lea eax, [esi + esi]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
je 0x4010ef
lea eax, [ebp + 0x14]
push eax
push edi
lea ecx, [ebp + 0x10]
push ecx
push 0
push str.szInstallDir32
jmp 0x4010ff
lea edx, [ebp + 0x14]
push edx
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push str.szInstallDir64
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp + 8], eax
test eax, eax
jne 0x4011b0
test edi, edi
je 0x4011b0
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401120
sub eax, edx
sar eax, 1
mov ecx, esi
sub ecx, eax
sub ecx, 1
je 0x401167
xor edx, edx
mov eax, edi
mov word [edi + esi*2 - 2], dx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401144
sub eax, edx
sar eax, 1
mov ecx, esi
sub ecx, eax
dec ecx
push ecx
push 0x4f8180
push edi
call fcn.004a9540
add esp, 0xc
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4011ad
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401173
sub eax, edx
sar eax, 1
mov edx, esi
sub edx, eax
sub edx, 1
je 0x4011ad
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401190
sub eax, edx
sar eax, 1
sub esi, eax
dec esi
push esi
push ebx
push edi
call fcn.004a9540
add esp, 0xc
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 8]
pop edi
xor eax, eax
test esi, esi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4015d0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40164d
mov edx, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40164d
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40164d
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
push 0
lea eax, [ebp - 0xc]
push eax
push ecx
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [ebp - 4]
test eax, eax
je 0x40165b
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
test eax, eax
je 0x40166b
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x403050
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push ebx
mov ebx, ecx
je 0x40311e
cmp dword [ebp + 0xc], 1
jl 0x40311e
push esi
push edi
xor eax, eax
nop
mov byte [ebx + eax + 1], al
inc eax
cmp eax, 0x100
jl 0x403070
mov esi, dword [ebp + 8]
lea edi, [ebx + 1]
mov word [ebx + 0x201], 0
mov dword [ebp - 4], 0x100
movzx eax, byte [ebx + 0x201]
mov dword [ebx + 0x204], edi
movzx eax, byte [eax + esi]
add al, byte [edi]
add byte [ebx + 0x202], al
movzx eax, byte [ebx + 0x202]
inc eax
add eax, ebx
mov dword [ebx + 0x208], eax
movzx eax, byte [edi]
mov byte [ebx + 0x20c], al
mov eax, dword [ebx + 0x208]
movzx eax, byte [eax]
mov byte [edi], al
inc edi
mov ecx, dword [ebx + 0x208]
movzx eax, byte [ebx + 0x20c]
mov byte [ecx], al
movzx eax, byte [ebx + 0x201]
inc eax
cdq
idiv dword [ebp + 0xc]
sub dword [ebp - 4], 1
mov byte [ebx + 0x201], dl
jne 0x403092
lea edi, [ebx + 0x101]
mov word [ebx + 0x201], 0
lea esi, [ebx + 1]
mov byte [ebx], 1
mov ecx, 0x40
mov al, 1
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4032e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
test edx, edx
je 0x403379
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x403379
mov ecx, dword [ebp + 0x10]
cmp ecx, 1
jb 0x403379
test ecx, ecx
je 0x40336f
sub edx, eax
push ebx
mov dword [ebp + 8], edx
push edi
nop
mov al, byte [edx + eax]
mov ecx, esi
xor byte [esi + 0x221], al
call fcn.00403130
mov bh, al
mov ecx, esi
xor bh, byte [esi + 0x221]
call fcn.00403130
mov bl, al
mov edi, 1
add bl, bh
cmp dword [esi + 0x210], edi
jle 0x40335b
mov ecx, esi
call fcn.00403130
mov ecx, esi
xor bl, al
call fcn.00403130
inc edi
add bl, al
cmp edi, dword [esi + 0x210]
jl 0x403340
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov byte [eax], bl
inc eax
sub dword [ebp + 0x10], 1
mov dword [ebp + 0xc], eax
jne 0x403310
pop edi
pop ebx
mov eax, 1
pop esi
pop ebp
ret 0xc
xor eax, eax
pop esi
pop ebp
ret 0xc

Function at 0x403550
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret
Function at 0x404710
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5152f0
push 0x496320
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x527064]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x40476f
mov eax, ecx
jmp 0x404908
test dword [ebp + 0x18], 1
jne 0x404790
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, eax
call fcn.00405650
jmp 0x404908
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x404903
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x20], ecx
cmp ecx, 1
jb 0x404903
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4047bf
cmp eax, 7
je 0x4047bf
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ecx
jmp 0x4047e7
lea edx, [ebp - 0x28]
push edx
lea edx, [ebp - 0x24]
push edx
push eax
push ecx
push edi
call fcn.004055e0
mov edi, dword [ebp - 0x24]
test eax, eax
jne 0x4048d8
mov dword [ebp - 0x30], 1
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x20], ecx
lea ebx, [ecx + 0x20]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], esi
lea edx, [ebx + 8]
cmp ebx, edx
sbb eax, eax
test edx, eax
je 0x40486d
cmp ebx, edx
sbb eax, eax
and eax, edx
cmp eax, 0x400
ja 0x40483a
cmp ebx, edx
sbb eax, eax
and eax, edx
call fcn.00491390
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x34], esi
test esi, esi
je 0x40482b
mov dword [esi], 0xcccc
add esi, 8
mov dword [ebp - 0x34], esi
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x4048a9
cmp ebx, edx
sbb eax, eax
and eax, edx
push eax
call fcn.004a3e8e
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x40485e
mov dword [esi], 0xdddd
add esi, 8
mov dword [ebp - 0x38], esi
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x4048a9
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x4048a9
test esi, esi
jne 0x4048b2
lea ebx, [esi + 8]
jmp 0x4048df
push ebx
push esi
push dword [ebp + 0xc]
push ecx
push edi
call fcn.00404b30
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x4048dc
push ebx
push esi
push 3
push eax
push dword [ebp + 8]
mov eax, dword [ebp - 0x40]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
jmp 0x4048df
mov ebx, dword [ebp - 0x20]
test esi, esi
je 0x4048ec
push esi
call fcn.00402f60
add esp, 4
cmp dword [ebp - 0x30], 0
je 0x4048ff
test edi, edi
je 0x4048ff
push edi
call fcn.004a2e5c
add esp, 4
mov eax, ebx
jmp 0x404908
mov eax, 0x57
lea esp, [ebp - 0x50]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004908ad
mov esp, ebp
pop ebp
ret 0x18
Function at 0x404f40
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x527064]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x11c], ecx
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x118], ecx
mov eax, dword [ecx + 0x2c]
mov dword [ebp - 0x114], edx
test eax, eax
je 0x404f85
cmp dword [ecx + 4], 0
je 0x404f85
push edx
push dword [ebp + 0x10]
push ebx
call eax
jmp 0x404f8a
mov eax, 1
cmp dword [ebp + 0x18], 0
je 0x405057
test eax, eax
jne 0x405057
push edi
xor edi, edi
push esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x110]
mov byte [ebp - 0x108], 0
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x110], 0x104
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
test esi, esi
jne 0x40502d
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
push 0xf003f
push esi
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405035
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0x11c]
push dword [ebp - 0x114]
push dword [ebp + 0x10]
push dword [ebp - 0x10c]
push dword [ebp - 0x118]
call fcn.00404f40
push dword [ebp - 0x10c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405035
cmp esi, 0x103
je 0x405053
inc edi
test esi, esi
je 0x404fa0
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004908ad
mov esp, ebp
pop ebp
ret 0x14
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004908ad
mov esp, ebp
pop ebp
ret 0x14
Function at 0x405070
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x515338
push 0x496320
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x527064]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x30], ecx
xor edi, edi
mov dword [ebp - 0x20], edi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jne 0x4050ba
lea eax, [edi + 0x57]
jmp 0x4050e2
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4050db
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4050e2
mov edi, eax
mov dword [ebp - 0x20], edi
xor eax, eax
test eax, eax
jne 0x4051f5
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
lea ecx, [edi + 8]
cmp edi, ecx
sbb eax, eax
test ecx, eax
je 0x405167
cmp edi, ecx
sbb eax, eax
and eax, ecx
cmp eax, 0x400
ja 0x405137
cmp edi, ecx
sbb eax, eax
and eax, ecx
call fcn.00491390
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
test esi, esi
je 0x405169
mov dword [esi], 0xcccc
add esi, 8
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x4051a0
cmp edi, ecx
sbb eax, eax
and eax, ecx
push eax
call fcn.004a3e8e
add esp, 4
mov esi, eax
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x405169
mov dword [esi], 0xdddd
add esi, 8
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x4051a0
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x4051a0
test esi, esi
jne 0x4051a9
lea eax, [esi + 0xe]
jmp 0x4051f5
push edi
push 0
push esi
call fcn.00496490
lea eax, [ebp - 0x20]
push eax
push esi
push ebx
push 3
call fcn.00406110
add esp, 0x1c
mov edi, eax
test edi, edi
jne 0x4051df
push dword [ebp - 0x20]
push esi
push 1
push eax
push dword [ebp + 8]
mov eax, dword [ebp - 0x30]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
add esi, 0xfffffff8
cmp dword [esi], 0xdddd
jne 0x4051f3
push esi
call fcn.004a2e5c
add esp, 4
mov eax, edi
lea esp, [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004908ad
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4053b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 0x14]
mov ebx, ecx
push dword [ebp + 0x10]
call fcn.00405220
mov edi, dword [ebp - 4]
mov esi, eax
test esi, esi
jne 0x4053fa
push dword [ebp - 8]
push edi
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test edi, edi
je 0x405407
push edi
call fcn.004a2e5c
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405650
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
cmp eax, 1
je 0x405667
cmp eax, 7
jne 0x40568e
test edx, edx
je 0x40568e
test esi, esi
je 0x40568e
cmp eax, 1
jne 0x40567e
pop esi
mov dword [ebp + 0x10], edx
pop ebp
jmp fcn.00405070
push esi
push edx
push ecx
push dword [ebp + 8]
call fcn.004053b0
pop esi
pop ebp
ret 0x10
push esi
push edx
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
pop ebp
ret 0x10