joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401b39
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401b74
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401b70
lea ebx, [ebx]
cmp esi, edx
jae 0x401b74
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x401b60
cmp esi, edx
jb 0x401b7b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40fbc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4caf36
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x52cc80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x21c], ecx
mov esi, dword [0x530c44]
push 0xf0
push 0x81
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40fd7c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40fd7c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40fd7c
mov edx, 0x1234
mov edi, edi
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x40fd7c
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
mov dword [ebp - 0x220], ecx
mov ecx, 0x403
add esi, 8
cmp cx, ax
jne 0x40fcd9
push 3
lea eax, [ebp - 0x214]
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x218], eax
call fcn.0040ffa0
mov dword [ebp - 4], 0
push dword [ebp - 0x218]
mov eax, dword [ebp - 0x21c]
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x214]
cmp eax, ecx
je 0x40fd69
push eax
call fcn.004aa45d
add esp, 4
jmp 0x40fd69
cmp dx, ax
jne 0x40fd6e
push 3
lea eax, [ebp - 0x110]
push esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x244], 1
mov dword [ebp - 0x240], 0xffffffff
mov dword [ebp - 0x114], eax
call fcn.0040ffa0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x114]
lea ecx, [ebp - 0x110]
cmp eax, ecx
je 0x40fd43
push eax
call fcn.004aa45d
add esp, 4
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x21c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
mov edx, 0x1234
add esi, dword [ebp - 0x220]
test edi, edi
jne 0x40fc40
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a992a
mov esp, ebp
pop ebp
ret 4
Function at 0x4182c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
mov dword [edi], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x418331
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4182ff
cmp eax, 2
jne 0x41831b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x41832b
test ecx, ecx
je 0x418326
test cl, 1
jne 0x41831b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x41832b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
mov dword [edi], ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x418340
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x418355
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x418360
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418360
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x41b6b0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov ecx, esi
call fcn.0041b630
mov dword [ebp - 8], eax
test ebx, ebx
je 0x41b7b3
mov edi, dword [ebp + 8]
test edi, edi
je 0x41b7b3
cmp eax, dword [ebp + 0xc]
ja 0x41b7b3
xor eax, eax
test esi, esi
je 0x41b774
cmp eax, esi
jae 0x41b6f8
movzx edx, byte [eax + ebx]
inc eax
jmp 0x41b6fa
xor edx, edx
cmp eax, esi
jae 0x41b708
movzx ecx, byte [eax + ebx]
mov dword [ebp - 4], ecx
inc eax
jmp 0x41b70f
mov dword [ebp - 4], 0
cmp eax, esi
jae 0x41b71a
movzx ecx, byte [eax + ebx]
inc eax
jmp 0x41b71c
xor ecx, ecx
shl edx, 8
add edx, dword [ebp - 4]
add edi, 4
shl edx, 8
add edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_nliaolhrlrchboiuujshcruspbimprntrpkcfkmgimljcjnomloiaiodeskdflocntsalouqqefjlojehufbrakimrcpogelbuml]
mov byte [edi - 4], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_nliaolhrlrchboiuujshcruspbimprntrpkcfkmgimljcjnomloiaiodeskdflocntsalouqqefjlojehufbrakimrcpogelbuml]
mov byte [edi - 3], cl
mov ecx, edx
shr ecx, 6
and ecx, 0x3f
and edx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_nliaolhrlrchboiuujshcruspbimprntrpkcfkmgimljcjnomloiaiodeskdflocntsalouqqefjlojehufbrakimrcpogelbuml]
mov byte [edi - 2], cl
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_nliaolhrlrchboiuujshcruspbimprntrpkcfkmgimljcjnomloiaiodeskdflocntsalouqqefjlojehufbrakimrcpogelbuml]
mov byte [edi - 1], cl
cmp eax, esi
jb 0x41b6f1
mov edi, dword [ebp + 8]
mov eax, 0xaaaaaaab
mul esi
shr edx, 1
xor ecx, ecx
lea eax, [edx + edx*2]
mov edx, dword [ebp - 8]
sub esi, eax
cmp dword [esi*4 + 0x511800], ecx
jle 0x41b7a5
lea eax, [edx - 1]
add eax, edi
mov byte [eax], 0x3d
inc ecx
lea eax, [eax - 1]
cmp ecx, dword [esi*4 + 0x511800]
jl 0x41b795
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4216d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0769
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x52cc80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x58], 0
xor eax, eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x54], 0x5f005f
mov dword [ebp - 0x50], 0x520043
mov dword [ebp - 0x4c], 0x40005f
mov dword [ebp - 0x48], 0x410046
mov dword [ebp - 0x44], 0x4c0049
mov dword [ebp - 0x40], 0x440045
mov dword [ebp - 0x3c], 0x44005f
mov dword [ebp - 0x38], 0x57004f
mov dword [ebp - 0x34], 0x4c004e
mov dword [ebp - 0x30], 0x41004f
mov dword [ebp - 0x2c], 0x5f0044
mov dword [ebp - 0x28], 0x450052
mov dword [ebp - 0x24], 0x440041
mov dword [ebp - 0x20], 0x5f0040
mov dword [ebp - 0x1c], 0x520043
mov dword [ebp - 0x18], 0x5f005f
call fcn.004024a0
mov dword [ebp - 4], 0
mov dword [ebp - 0x58], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a992a
mov esp, ebp
pop ebp
ret

Function at 0x422490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0c50
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x52cc80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4224e2
xor bl, bl
jmp 0x422547
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], 0
mov ecx, dword [eax - 8]
mov esi, dword [eax - 0xc]
mov edx, 1
sub edx, dword [eax - 4]
or ecx, edx
jge 0x422518
push 0
lea ecx, [ebp + 8]
call fcn.00402750
mov eax, dword [ebp + 8]
push 0
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [esi + esi]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 1
sete bl
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42256b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422580
Capabilities:
Get file size

Disassembly:
push esi
push edi
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push ecx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4225c6
mov ecx, dword [0x531d90]
mov esi, 0x11
lea eax, [ecx + 1]
imul eax, ecx
cdq
idiv esi
cmp edx, 0x10
jne 0x4225c1
dec ecx
mov dword [0x531d90], ecx
pop edi
xor eax, eax
pop esi
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
ret
Function at 0x422ea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18690
call fcn.004aeba0
mov eax, dword [0x52cc80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push dword [ecx]
mov esi, edx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1868c], edi
cmp edi, 0xffffffff
je 0x422fbb
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi]
push 0
lea ecx, [ebp - 0x18690]
push ecx
mov dword [ebp - 0x18690], 0
push dword [eax - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x422fbb
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [0x531d90]
mov esi, 0x11
lea eax, [ecx + 1]
imul eax, ecx
cdq
idiv esi
cmp edx, 1
jne 0x422fb7
xor eax, eax
push 0x2760
push eax
mov word [ebp - 0x18688], ax
lea eax, [ebp - 0x18686]
push eax
call fcn.004aee10
add esp, 0xc
xor edi, edi
xor esi, esi
xor eax, eax
lea esp, [esp]
test edi, edi
je 0x422f98
test eax, eax
je 0x422f98
lea ecx, [esi + eax]
lea edx, [ebp - 0x18688]
lea edx, [edx + ecx*2]
lea ecx, [esi + eax]
mov cx, word [ebp + ecx*2 - 0x18716]
inc cx
add cx, word [edx - 2]
mov word [edx], cx
inc eax
cmp eax, 0x47
jl 0x422f70
add esi, 0x47
inc edi
cmp esi, 0x13b1
jl 0x422f67
movsx ecx, word [ebp - 0x15f28]
mov dword [0x531d90], ecx
mov bl, 1
jmp 0x422fc1
mov ecx, dword [0x531d90]
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0xe
idiv ecx
cmp edx, 0xb
jne 0x423042
xor eax, eax
push 0x15f1e
push eax
mov word [ebp - 0x15f24], ax
lea eax, [ebp - 0x15f22]
push eax
call fcn.004aee10
add esp, 0xc
xor edi, edi
xor esi, esi
xor edx, edx
test edi, edi
je 0x423020
test edx, edx
je 0x423020
lea eax, [esi + edx]
lea ecx, [ebp - 0x15f24]
lea ecx, [ecx + eax*2]
lea eax, [esi + edx]
mov ax, word [ebp + eax*2 - 0x160cc]
inc ax
add ax, word [ecx - 2]
mov word [ecx], ax
inc edx
cmp edx, 0xd4
jl 0x422ff8
add esi, 0xd4
inc edi
cmp esi, 0xaf90
jl 0x422ff6
movsx ecx, word [ebp - 6]
mov dword [0x531d90], ecx
mov eax, dword [ebp - 0x1868c]
cmp eax, 0xffffffff
je 0x423054
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004a992a
mov esp, ebp
pop ebp
ret
Function at 0x4390c0
Capabilities:
Check os version
Get disk size

Disassembly:
mov edx, dword [0x531d90]
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 0xc
idiv ecx
cmp edx, 5
jne 0x4390ef
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
sbb eax, eax
neg eax
ret
Function at 0x43a2a0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push esi
push eax
push 0xf003f
push 0
push dword [ecx]
mov esi, edx
push dword [0x52e31c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x43a2cd
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x43a2e8
push dword [esi]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
jmp 0x43a31a
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push dword [esi]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x43a31a
push dword [edi]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43ac00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d46b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x52cc80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
sub esp, 8
push 0x2001f
push 0x100
push ecx
push dword [esi]
lea ecx, [ebp - 0x1c]
push edi
call fcn.00418190
test eax, eax
je 0x43ac8d
sub esp, 8
push 0x2001f
push 0
push ecx
push dword [esi]
lea ecx, [ebp - 0x1c]
push edi
call fcn.00418190
test eax, eax
je 0x43ac8d
mov esi, dword [ebp - 0x1c]
xor bl, bl
jmp 0x43acf2
mov eax, dword [ebp - 0x10]
mov edx, dword [ebx]
mov ebx, dword [eax]
mov esi, dword [ebp - 0x1c]
xor eax, eax
test edx, edx
setne al
test eax, eax
jne 0x43aca9
mov edi, 0xd
jmp 0x43acd6
mov ecx, edx
lea edi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43acb0
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test esi, esi
je 0x43ace6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x1c], esi
test edi, edi
mov dword [ebp - 0x18], 0
sete bl
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x43ad0b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
mov al, bl
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43b080
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
lea ecx, [ebp + 8]
push ecx
push 0x2001f
push 0
push dword [eax]
mov esi, edx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x43b0ac
pop edi
xor al, al
pop esi
pop ebp
ret
mov ecx, dword [esi]
mov eax, dword [ecx - 0xc]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push dword [edi]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
pop ebp
ret
Function at 0x43b7a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
lea ecx, [ebp + 8]
push ecx
push 0x2001f
push 0
push dword [eax]
mov dword [ebp - 4], edx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x43b7ce
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push dword [esi]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43b800
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4582
mov eax, dword fs:[0]
push eax
sub esp, 0x824
mov eax, dword [0x52cc80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x824], edx
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x81c], 0
mov dword [ebp - 0x818], 0
mov dword [ebp - 4], 0
mov edx, ecx
push 0
lea ecx, [ebp - 0x814]
call fcn.00439bf0
add esp, 4
mov byte [ebp - 4], 1
push 0x2001f
push dword [eax]
lea ecx, [ebp - 0x820]
push dword [0x52e31c]
call fcn.00418210
test eax, eax
setne bl
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x814]
add edx, 0xfffffff0
or eax, 0xffffffff
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x43b8b0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x820]
test bl, bl
je 0x43b8c7
xor bl, bl
jmp 0x43b9f6
xor ebx, ebx
lea esp, [esp]
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call fcn.004aee10
add esp, 0xc
lea eax, [ebp - 0x830]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
push edi
mov dword [ebp - 0x828], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc ebx
test eax, eax
jne 0x43b9d5
mov eax, dword [0x52c6d8]
mov ecx, 0x52c6d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x810]
test eax, 0xffff0000
jne 0x43b968
movzx esi, ax
mov ecx, esi
call fcn.00401b90
test eax, eax
je 0x43b992
push esi
push eax
lea ecx, [ebp - 0x814]
call fcn.00402900
jmp 0x43b992
lea edx, [eax + 2]
jmp 0x43b970
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43b970
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x814]
call fcn.00402690
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x824]
lea eax, [ebp - 0x814]
push eax
call fcn.00419880
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x814]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43b8d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x43b8d0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x43b9ea
push edi
call esi
xor edi, edi
mov dword [ebp - 0x820], edi
mov dword [ebp - 0x81c], 0
mov bl, 1
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x43ba0e
push edi
call esi
mov dword [ebp - 0x820], 0
mov al, bl
mov dword [ebp - 0x81c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a992a
mov esp, ebp
pop ebp
ret
Function at 0x43ba40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d45f2
mov eax, dword fs:[0]
push eax
mov eax, 0x8024
call fcn.004aeba0
mov eax, dword [0x52cc80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8030], edx
mov dword [ebp - 0x8028], 0
mov dword [ebp - 0x8024], 0
mov dword [ebp - 0x8020], 0
mov dword [ebp - 4], 0
mov edx, ecx
push 0
lea ecx, [ebp - 0x801c]
call fcn.00439bf0
add esp, 4
mov byte [ebp - 4], 1
push 0x2001f
push dword [eax]
lea ecx, [ebp - 0x8028]
push dword [0x52e31c]
call fcn.00418210
test eax, eax
setne bl
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x801c]
add edx, 0xfffffff0
or eax, 0xffffffff
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x43baf4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x43bb05
mov ebx, dword [ebp - 0x8028]
xor al, al
jmp 0x43bc45
xor eax, eax
push 0x7ffe
push eax
mov word [ebp - 0x8010], ax
lea eax, [ebp - 0x800e]
push eax
mov dword [ebp - 0x802c], 0x4000
call fcn.004aee10
mov ebx, dword [ebp - 0x8028]
add esp, 0xc
xor edi, edi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x802c]
push eax
lea eax, [ebp - 0x8010]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
inc edi
mov dword [ebp - 0x801c], edi
test esi, esi
je 0x43bb6c
cmp esi, 0x103
jne 0x43bc1e
mov eax, dword [0x52c6d8]
mov ecx, 0x52c6d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8018], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x8010]
test eax, 0xffff0000
jne 0x43bc93
movzx edi, ax
mov ecx, edi
call fcn.00401b90
test eax, eax
je 0x43bbb2
push edi
push eax
lea ecx, [ebp - 0x8018]
call fcn.00402900
mov edi, dword [ebp - 0x801c]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x8018]
cmp dword [eax - 0xc], 0
je 0x43bbda
mov ecx, dword [ebp - 0x8030]
lea eax, [ebp - 0x8018]
push eax
call fcn.00419880
push 0x8000
lea eax, [ebp - 0x8010]
push 0
push eax
mov dword [ebp - 0x802c], 0x4000
call fcn.004aee10
add esp, 0xc
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x8018]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43bc1e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x43bb35
test ebx, ebx
je 0x43bc39
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [ebp - 0x8028], ebx
mov dword [ebp - 0x8024], 0
mov al, 1
mov byte [ebp - 0x8011], al
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x43bc6d
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x8011]
mov dword [ebp - 0x8028], 0
mov dword [ebp - 0x8024], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a992a
mov esp, ebp
pop ebp
ret
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43bc96
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x8010]
push eax
lea ecx, [ebp - 0x8018]
call fcn.00402690
jmp 0x43bbb8