joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10030d28
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10030dc5
push ebx
push esi
call fcn.10030cf1
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10030c3a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10030d72
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10030dc4
push edi
push eax
call fcn.1002ee81
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10030d92
call fcn.1002e2d8
pop ecx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10030dc3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10030c3a
add esp, 0x20
test eax, eax
jne 0x10030db1
push edi
call fcn.1002e2d8
jmp 0x10030db9
push ebx
call fcn.1002e2d8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x1003231c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x1005f758]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1003235c
cmp byte [ebx], 0xa
jne 0x1003235c
or byte [eax + edi + 0x28], 4
jmp 0x10032361
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1003245f
mov al, byte [edx]
cmp al, 0x1a
je 0x10032441
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10032390
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x100323b5
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x100323bf
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x10032372
jmp 0x1003245f
push 0
lea eax, [ebp - 0xc]
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 0x1003243c
cmp dword [ebp - 0xc], 0
je 0x1003243c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1005f758]
test byte [eax + edi + 0x28], 0x48
je 0x10032416
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10032401
mov byte [esi], dl
jmp 0x10032412
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1005f758]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1003245f
cmp byte [ebp - 1], 0xa
jne 0x10032425
cmp esi, ebx
jne 0x10032425
mov byte [esi], 0xa
jmp 0x1003245e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10034259
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1003245f
mov byte [esi], 0xd
jmp 0x1003245e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1005f758]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1003245b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1003245f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10032468
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x1005f758]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100324ab
cmp word [esi], dx
jne 0x100324ab
or byte [edi + eax + 0x28], 4
jmp 0x100324b0
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x10032603
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x100325e3
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x100324f2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10032528
cmp eax, edx
jae 0x10032534
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x100324ca
jmp 0x10032603
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x100325df
cmp dword [ebp - 0x14], 0
je 0x100325df
mov eax, dword [ebx*4 + 0x1005f758]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x100325b7
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x10032580
mov word [esi], cx
jmp 0x100325b3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1005f758]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x1005f758]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1005f758]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x10032603
pop ebx
cmp word [ebp - 4], bx
jne 0x100325c8
cmp esi, dword [ebp + 0xc]
jne 0x100325c8
mov word [esi], bx
jmp 0x10032600
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10034259
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10032603
push 0xd
jmp 0x100325fc
mov ecx, dword [ebx*4 + 0x1005f758]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100325fa
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10032603
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100363b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100363dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100363dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10036bb0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
lea eax, [ebp - 0x20]
push dword [ebp + 8]
push edx
push eax
call fcn.100212b0
add esp, 0xc
mov eax, dword [ebp - 0x20]
cmp eax, 0x80000000
jne 0x10036c29
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x40]
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x38], 1
push eax
push ecx
push 0
push edi
call dword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x10036c55
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
mov eax, 1
mov dword [esi + 4], 0
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
jne 0x10036c75
jmp 0x10036c81
mov ecx, dword [0x1003ec20]
mov edx, dword [0x1003ec24]
test eax, eax
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], 1
je 0x10036c81
push 1
push eax
push dword [ebp - 0x1c]
call fcn.100063d0
add esp, 0x40
jmp 0x10036c84
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax]
movzx eax, word [eax]
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov word [esi + 0xc], ax
xor eax, eax
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
je 0x10036c81
push 1
push ebx
push edi
call fcn.100063d0
add esp, 0xc
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401000
Capabilities:
Hide graphical window
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov eax, 0x438008
lea ecx, [ebp - 0x24]
mov edx, dword [eax]
mov dword [ecx], edx
mov ax, word [eax + 4]
mov word [ecx + 4], ax
mov dword [0x429b10], 0
mov eax, dword [ebp + 8]
mov dword [0x42b2b0], eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.0041d0c4
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40105c
lea eax, [ebp - 0x24]
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], 0
jmp 0x40106b
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x14], eax
jle 0x401099
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
movsx eax, byte [eax + ecx]
cmp eax, 0x3d
jne 0x401094
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
mov byte [eax + ecx], 0x20
jmp 0x401068
push 0x100
call fcn.0041cfac
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.00401476
add esp, 0xc
mov eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00403878
add esp, 8
push 0x42b2c0
call fcn.004036e0
add esp, 4
call fcn.00424cc4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40110e
mov eax, dword [ebp + 8]
push eax
call fcn.00401d45
add esp, 4
push 0
call fcn.0041ceeb
add esp, 4
cmp dword [0x4292b4], 0
je 0x401131
mov eax, dword [ebp + 8]
push eax
call fcn.00401d45
add esp, 4
push 0
call fcn.0041ceeb
add esp, 4
call fcn.0040395e
test eax, eax
jne 0x401154
mov eax, dword [ebp + 8]
push eax
call fcn.00401d45
add esp, 4
push 0xffffffffffffffff
call fcn.0041ceeb
add esp, 4
call fcn.004046c4
test eax, eax
je 0x40117a
cmp dword [0x4295dc], 0
jne 0x40117a
mov eax, dword [ebp + 8]
push eax
call fcn.00401228
add esp, 4
push 0x429190
call fcn.00402090
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4011cf
xor eax, eax
mov al, byte [0x429b21]
test eax, eax
je 0x4011cf
call fcn.004046c4
test eax, eax
je 0x4011be
push 0
mov eax, dword [0x429b10]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00401b70
mov eax, dword [0x429b10]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004051e4
mov dword [ebp - 0x10], eax
jmp 0x4011eb
dec dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 0
je 0x40120d
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax*4 - 4]
push eax
call fcn.0041ce53
add esp, 4
jmp 0x4011e8
mov eax, dword [ebp - 4]
push eax
call fcn.0041ce53
add esp, 4
mov eax, dword [ebp - 0x10]
jmp 0x401221
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x401c46
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
cmp dword [0x4295dc], 0
jne 0x401d40
call fcn.004046c4
test eax, eax
je 0x401c77
push 0
mov eax, dword [0x429b10]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
jmp 0x401d11
push 0x4382d4
push 0x429910
call fcn.0041d1f1
add esp, 8
push 0
push 0x429910
mov eax, dword [ebp + 8]
push eax
mov eax, dword [0x429b10]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401d34
push 0x43830c
push 0x429910
call fcn.0041d1f1
add esp, 8
push 0
push 0x429910
mov eax, dword [ebp + 8]
push eax
mov eax, dword [0x429b10]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401d34
push 0x438344
push 0x429910
call fcn.0041d1f1
add esp, 8
push 0
push 0x429910
mov eax, dword [ebp + 8]
push eax
mov eax, dword [0x429b10]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401d34
cmp dword [ebp - 4], 0
je 0x401cde
cmp dword [ebp - 4], 1
je 0x401cb0
cmp dword [ebp - 4], 2
je 0x401c82
jmp 0x401d34
mov eax, dword [0x429b10]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4075ff
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
call fcn.00406f77
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
jmp 0x40764c
push 0x47420c
lea eax, [ebp - 0xc]
push eax
call fcn.0041d13c
add esp, 8
jmp 0x407665
push 0x474210
lea eax, [ebp - 0xc]
push eax
call fcn.0041d13c
add esp, 8
jmp 0x407665
cmp dword [ebp - 0x58], 1
je 0x40761b
cmp dword [ebp - 0x58], 2
je 0x407631
jmp 0x407665
push 0x474214
lea eax, [ebp - 0x50]
push eax
call fcn.0041d13c
add esp, 8
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x407706
cmp dword [ebp - 0x10], 2
jne 0x4076ef
lea eax, [ebp - 0xc]
push eax
call fcn.0041d0c4
add esp, 4
push eax
lea eax, [ebp - 0xc]
push eax
push 1
push 0
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4076ea
push 0x10003
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x40770d
jmp 0x407706
push 0x10006
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x40770d
xor eax, eax
jmp 0x40770d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407883
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
mov eax, dword [ebp + 8]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x407900
cmp dword [ebp - 8], 2
jne 0x4078dc
push 0x474224
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
call fcn.0041d13c
add esp, 8
xor eax, eax
jmp 0x407a13
push 0x2002000
call fcn.0040648e
add esp, 4
push 0x10001
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x407a13
mov dword [ebp - 8], 0xea
mov dword [ebp - 0xc], pe_nt_image_headers32
jmp 0x40791a
add dword [ebp - 0xc], 0x80
cmp dword [ebp - 8], 0xea
jne 0x407977
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
lea eax, [ebp - 4]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xea
jne 0x407972
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
call fcn.0041d4b8
add esp, 8
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x407913
cmp dword [ebp - 8], 0
je 0x4079d1
cmp dword [ebp - 8], 2
jne 0x4079a3
push 0x474228
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
call fcn.0041d13c
add esp, 8
jmp 0x4079d1
push 0x2002000
call fcn.0040648e
add esp, 4
push 0x10006
call fcn.004064f2
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xffffffff
jmp 0x407a13
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x407a0c
push 0x2002000
call fcn.0040648e
add esp, 4
push 0x10002
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x407a13
xor eax, eax
jmp 0x407a13
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407a18
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
mov eax, dword [ebp + 8]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x407a6c
push 0x2002007
call fcn.0040648e
add esp, 4
push 0x10001
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x407b05
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x407ac3
push 0x2002007
call fcn.0040648e
add esp, 4
push 0x10003
call fcn.004064f2
add esp, 4
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xffffffff
jmp 0x407b05
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x407afe
push 0x2002007
call fcn.0040648e
add esp, 4
push 0x10002
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x407b05
xor eax, eax
jmp 0x407b05
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407b0a
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
mov eax, dword [ebp + 8]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x407b5e
push 0x2002007
call fcn.0040648e
add esp, 4
push 0x10001
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x407bfd
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x407bbb
cmp dword [ebp - 4], 2
je 0x407bbb
cmp dword [ebp - 4], 3
je 0x407bbb
push 0x2002007
call fcn.0040648e
add esp, 4
push 0x10004
call fcn.004064f2
add esp, 4
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xffffffff
jmp 0x407bfd
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x407bf6
push 0x2002007
call fcn.0040648e
add esp, 4
push 0x10002
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x407bfd
xor eax, eax
jmp 0x407bfd
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407c02
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2f28
call fcn.0041d328
push ebx
push esi
push edi
mov dword [ebp - 8], 0x1388
mov dword [ebp - 0x810], 0
mov dword [ebp - 0x818], 0
lea eax, [ebp - 0x814]
push eax
push 0xf003f
push 0
push 0x47422c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x407c82
push 0x10001
call fcn.004064f2
add esp, 4
push 0x2002012
call fcn.0040648e
add esp, 4
mov eax, 0xffffffff
jmp 0x407e7d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2f28]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x474264
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x407ce9
push 0x10006
call fcn.004064f2
add esp, 4
push 0x2002012
call fcn.0040648e
add esp, 4
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xffffffff
jmp 0x407e7d
mov eax, dword [ebp - 0x810]
xor ecx, ecx
mov cl, byte [ebp + eax - 0x2f28]
test ecx, ecx
je 0x407dbb
mov eax, dword [ebp - 0x810]
lea eax, [ebp + eax - 0x2f28]
push eax
lea eax, [ebp - 0x808]
push eax
call fcn.0041d13c
add esp, 8
lea eax, [ebp - 0x808]
push eax
call fcn.0041d60a
add esp, 4
push 0x474268
lea eax, [ebp - 0x808]
push eax
call fcn.0041d3d4
add esp, 8
test eax, eax
jne 0x407d91
mov eax, dword [ebp - 0x810]
lea eax, [ebp + eax - 0x2f28]
push eax
mov eax, dword [ebp - 0x818]
lea eax, [ebp + eax - 0x1ba0]
push eax
call fcn.0041d13c
add esp, 8
mov eax, dword [ebp - 0x818]
lea eax, [ebp + eax - 0x1ba0]
push eax
call fcn.0041d0c4
add esp, 4
mov ecx, dword [ebp - 0x818]
add ecx, eax
inc ecx
mov dword [ebp - 0x818], ecx
mov eax, dword [ebp - 0x810]
lea eax, [ebp + eax - 0x2f28]
push eax
call fcn.0041d0c4
add esp, 4
mov ecx, dword [ebp - 0x810]
add ecx, eax
inc ecx
mov dword [ebp - 0x810], ecx
jmp 0x407ce9
mov eax, dword [ebp - 0x818]
mov byte [ebp + eax - 0x1ba0], 0
mov eax, dword [ebp - 0x818]
inc eax
push eax
lea eax, [ebp - 0x1ba0]
push eax
push 7
push 0
push 0x474274
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x407e32
push 0x10006
call fcn.004064f2
add esp, 4
push 0x2002012
call fcn.0040648e
add esp, 4
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xffffffff
jmp 0x407e7d
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x407e76
push 0x10002
call fcn.004064f2
add esp, 4
push 0x2002012
call fcn.0040648e
add esp, 4
mov eax, 0xffffffff
jmp 0x407e7d
xor eax, eax
jmp 0x407e7d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407e82
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2f28
call fcn.0041d328
push ebx
push esi
push edi
mov dword [ebp - 8], 0x1388
mov dword [ebp - 0x810], 0
mov dword [ebp - 0x818], 0
lea eax, [ebp - 0x814]
push eax
push 0xf003f
push 0
push 0x474278
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x407f02
push 0x10001
call fcn.004064f2
add esp, 4
push 0x2002011
call fcn.0040648e
add esp, 4
mov eax, 0xffffffff
jmp 0x408113
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2f28]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x4742b0
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x407f3f
mov byte [ebp - 0x2f28], 0
mov eax, dword [ebp - 0x810]
xor ecx, ecx
mov cl, byte [ebp + eax - 0x2f28]
test ecx, ecx
je 0x408011
mov eax, dword [ebp - 0x810]
lea eax, [ebp + eax - 0x2f28]
push eax
lea eax, [ebp - 0x808]
push eax
call fcn.0041d13c
add esp, 8
lea eax, [ebp - 0x808]
push eax
call fcn.0041d60a
add esp, 4
push 0x4742b4
lea eax, [ebp - 0x808]
push eax
call fcn.0041d3d4
add esp, 8
test eax, eax
jne 0x407fe7
mov eax, dword [ebp - 0x810]
lea eax, [ebp + eax - 0x2f28]
push eax
mov eax, dword [ebp - 0x818]
lea eax, [ebp + eax - 0x1ba0]
push eax
call fcn.0041d13c
add esp, 8
mov eax, dword [ebp - 0x818]
lea eax, [ebp + eax - 0x1ba0]
push eax
call fcn.0041d0c4
add esp, 4
mov ecx, dword [ebp - 0x818]
add ecx, eax
inc ecx
mov dword [ebp - 0x818], ecx
mov eax, dword [ebp - 0x810]
lea eax, [ebp + eax - 0x2f28]
push eax
call fcn.0041d0c4
add esp, 4
mov ecx, dword [ebp - 0x810]
add ecx, eax
inc ecx
mov dword [ebp - 0x810], ecx
jmp 0x407f3f
push 0x4742c0
mov eax, dword [ebp - 0x818]
lea eax, [ebp + eax - 0x1ba0]
push eax
call fcn.0041d13c
add esp, 8
mov eax, dword [ebp - 0x818]
lea eax, [ebp + eax - 0x1ba0]
push eax
call fcn.0041d0c4
add esp, 4
mov ecx, dword [ebp - 0x818]
add ecx, eax
inc ecx
mov dword [ebp - 0x818], ecx
mov eax, dword [ebp - 0x818]
mov byte [ebp + eax - 0x1ba0], 0
mov eax, dword [ebp - 0x818]
inc eax
push eax
lea eax, [ebp - 0x1ba0]
push eax
push 7
push 0
push 0x4742cc
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x4080c8
push 0x10006
call fcn.004064f2
add esp, 4
push 0x2002011
call fcn.0040648e
add esp, 4
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xffffffff
jmp 0x408113
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x40810c
push 0x10002
call fcn.004064f2
add esp, 4
push 0x2002011
call fcn.0040648e
add esp, 4
mov eax, 0xffffffff
jmp 0x408113
xor eax, eax
jmp 0x408113
pop edi
pop esi
pop ebx
leave
ret