joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40318f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor edi, edi
mov dword [ebp - 8], edi
cmp dword [esi + 0x100ac], edi
je 0x4031ef
cmp dword [esi + 0x7c], edi
jbe 0x4031ef
mov dword [ebp - 4], 0xffffff5c
sub dword [ebp - 4], esi
lea ebx, [esi + 0xa4]
lea edx, [esi + 0x100d0]
mov eax, edx
call fcn.00401f42
mov edi, dword [esi + 0x100dc]
mov dword [ebp - 0xc], eax
movzx eax, byte [ebx]
push eax
mov ecx, edx
call fcn.00401f5f
mov al, byte [ebp - 0xc]
xor byte [ebx], al
mov eax, dword [ebp - 4]
add esp, 4
inc ebx
add eax, ebx
cmp eax, dword [esi + 0x7c]
jb 0x4031b9
xor edi, edi
mov ebx, dword [esi + 0x7c]
push ebx
lea eax, [esi + 0xa4]
push eax
push dword [esi + 0x2c]
push dword [esi + 0x1c]
call dword [esi + 8]
add esp, 0x10
cmp eax, ebx
je 0x40320e
or dword [ebp - 8], 0xffffffff
mov ecx, dword [esi + 0x48]
lea eax, [esi + 0x100c0]
add dword [eax], ebx
mov dword [esi + 0x48], edi
mov dword [esi + 0x7c], edi
adc dword [eax + 4], edi
lea eax, [esi + 0x100c8]
add dword [eax], ecx
adc dword [eax + 4], edi
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret
Function at 0x403b60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp edi, ebx
jne 0x403b7f
push 0xffffffffffffff9a
pop eax
jmp 0x403cb1
cmp dword [edi + 0x38], 1
jne 0x403b8f
push edi
call fcn.00403b4f
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], ebx
jne 0x403b9d
mov eax, dword [edi + 0x10100]
mov dword [ebp + 0xc], eax
push esi
push dword [edi + 0x2c]
push edi
call fcn.00401cf0
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [ebp - 4], ebx
jne 0x403bee
mov esi, dword [edi + 0x30]
test esi, esi
je 0x403bee
cmp dword [ebp - 4], 0
jne 0x403be2
mov eax, dword [esi + 8]
test eax, eax
jbe 0x403be2
push eax
lea eax, [esi + 0x10]
push eax
push dword [edi + 0x2c]
push dword [edi + 0x1c]
call dword [edi + 8]
add esp, 0x10
cmp eax, dword [esi + 8]
je 0x403be2
or dword [ebp - 4], 0xffffffff
add ebx, dword [esi + 8]
mov esi, dword [esi]
test esi, esi
jne 0x403bbb
mov dword [ebp - 8], ebx
lea esi, [edi + 0x30]
call fcn.00402159
mov ecx, dword [ebp - 0x10]
sub ecx, dword [edi + 0x100f0]
mov eax, dword [ebp - 0xc]
sbb eax, dword [edi + 0x100f4]
test eax, eax
ja 0x403c28
jb 0x403c13
cmp ecx, 0xffffffff
jae 0x403c28
cmp dword [edi + 0x100fc], 0
ja 0x403c28
cmp dword [edi + 0x100f8], 0xffff
jbe 0x403c4f
push dword [edi + 0x2c]
push edi
call fcn.00401cf0
push dword [ebp - 0xc]
mov esi, eax
push dword [ebp - 0x10]
mov ebx, edx
push dword [ebp - 8]
push edi
call fcn.00403816
push ebx
push esi
push edi
call fcn.0040379f
add esp, 0x24
cmp dword [ebp - 4], 0
pop esi
jne 0x403c7d
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 8]
push edi
call fcn.0040390f
add esp, 0x10
mov dword [ebp - 4], eax
test eax, eax
jne 0x403c7d
push dword [ebp + 0xc]
push edi
call fcn.00403a1f
pop ecx
pop ecx
mov dword [ebp - 4], eax
push dword [edi + 0x2c]
push dword [edi + 0x1c]
call dword [edi + 0x14]
pop ecx
pop ecx
test eax, eax
je 0x403c96
cmp dword [ebp - 4], 0
jne 0x403c96
or dword [ebp - 4], 0xffffffff
mov eax, dword [edi + 0x10100]
test eax, eax
je 0x403ca7
push eax
call fcn.004b4845
pop ecx
push edi
call fcn.004b4845
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop ebx
leave
ret
Function at 0x40d7b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d27e0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x56b06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0048359c
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0047148e
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x411d60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x411d8b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040b7c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x411dad
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x411daf
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x411e33
jg 0x411dc4
test esi, esi
je 0x411e33
test ecx, ecx
jl 0x411e0d
jg 0x411dce
test eax, eax
je 0x411e0d
cmp edi, ecx
jg 0x411de2
jl 0x411dd8
cmp esi, eax
jae 0x411de2
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.004a9370
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x411e10
mov edx, dword [ebp + 8]
test edi, edi
jl 0x411e33
jg 0x411e1a
test esi, esi
je 0x411e33
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x411e33
push eax
push esi
push 1
push edx
call fcn.004b8c5b
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x411e50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x411e7b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040b8a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x411e9d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x411e9f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x411f3e
jg 0x411ebc
test esi, esi
je 0x411f3e
test ecx, ecx
jl 0x411f09
jg 0x411ec6
test eax, eax
je 0x411f09
cmp ebx, ecx
jg 0x411eda
jl 0x411ed0
cmp esi, eax
jae 0x411eda
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.004a9370
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x411f10
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x411f3e
jg 0x411f1a
test esi, esi
je 0x411f3e
cmp dword [edi + 0x4c], 0
je 0x411f3e
mov ecx, edi
call fcn.00413260
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.004b9564
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x412250
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x56b06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x412280
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048358b
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4122bc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4122bc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048358b
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4123a3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4122e4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x412317
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.004b4985
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048358b
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x4123a3
cmp eax, 1
jle 0x412376
cmp eax, 3
jne 0x4123a3
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.004b4985
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048358b
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x412393
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004b8c5b
add esp, 0x10
cmp edi, eax
jne 0x4123a3
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x4122a7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048358b
mov esp, ebp
pop ebp
ret 4
Function at 0x413290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x56b06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x413331
cmp byte [esi + 0x3d], 0
je 0x413331
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4132e7
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4132f9
sub eax, 1
je 0x4132fd
sub eax, 2
je 0x413331
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048358b
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x41331a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004b8c5b
add esp, 0x10
cmp edi, eax
jne 0x4132e7
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048358b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0048358b
mov esp, ebp
pop ebp
ret
Function at 0x41c920
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3f90
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x56b06c]
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 ebx, ecx
mov dword [ebp - 0x34], ebx
push dword [ebx + 0x1c]
lea eax, [ebx + 0x1c]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x41c97c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 4], 0xffffffff
mov esi, dword [ebx + 0xc]
mov edi, dword [ebx + 8]
cmp esi, edi
je 0x41ca09
cmp dword [esi - 4], 8
lea eax, [esi - 0x18]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
jb 0x41c99e
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push dword [ebp - 0x2c]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
cmp eax, 0xffffffff
je 0x41c9db
test al, 0x10
jne 0x41c9db
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x41c9d4
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp ebx, edi
je 0x41ca06
nop
cmp dword [esi - 4], 8
lea eax, [esi - 0x18]
jb 0x41c9eb
mov eax, dword [eax]
mov esi, ebx
add ebx, 0xffffffe8
mov ecx, ebx
cmp dword [ecx + 0x14], 8
jb 0x41c9fa
mov ecx, dword [ecx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp ebx, edi
jne 0x41c9e0
mov ebx, dword [ebp - 0x34]
mov esi, dword [ebx + 8]
cmp dword [esi + 0x14], 8
jb 0x41ca14
mov esi, dword [esi]
mov edx, esi
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41ca30
sub edx, ecx
lea ecx, [ebp - 0x28]
sar edx, 1
push edx
push esi
call fcn.00412c70
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.0041cac0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41ca8e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ca84
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41cab3
push edx
push ecx
call fcn.004835cc
add esp, 8
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.0048358b
mov esp, ebp
pop ebp
ret
call fcn.004b1db8
int3
Function at 0x41cac0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x56b06c]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
push esi
cmp dword [eax + 0x14], 8
jb 0x41cae0
mov eax, dword [eax]
push 0x80
push 4
push 3
lea esi, [ecx + 4]
push 0xc0000000
push eax
mov ecx, esi
call fcn.0041ddc0
push 2
push 0
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
je 0x41cba5
push 4
push 0x53f278
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0xf
mov byte [esp + 0x14], 0
call fcn.00409010
mov edx, dword [esp + 0x20]
lea eax, [esp + 0xc]
mov ecx, dword [esp + 0xc]
cmp edx, 0x10
cmovae eax, ecx
cmp dword [esp + 0x1c], 0
je 0x41cb7b
push 0
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push dword [esp + 0x24]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
cmp edx, 0x10
jb 0x41cba5
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41cb9b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41cbb7
push edx
push ecx
call fcn.004835cc
add esp, 8
mov ecx, dword [esp + 0x24]
pop esi
xor ecx, esp
call fcn.0048358b
mov esp, ebp
pop ebp
ret 4
call fcn.004b1db8
int3

Function at 0x41cbc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3fc8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x56b06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
cmp dword [esi + 4], 0xffffffff
je 0x41cc2f
push 0x53f280
lea ecx, [ebp + 8]
call fcn.0040a990
mov eax, dword [ebp + 0x1c]
lea edx, [ebp + 8]
mov ecx, dword [ebp + 8]
cmp eax, 0x10
cmovae edx, ecx
cmp dword [ebp + 0x18], 0
je 0x41cc35
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [ebp + 0x18]
push edx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x41cc61
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x41cc57
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41cc73
push edx
push ecx
call fcn.004835cc
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x18
call fcn.004b1db8
int3
Function at 0x423820
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4940
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x56b06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004119e0
mov edx, esi
lea ecx, [ebp - 0x18]
call fcn.00423650
mov esi, dword [ebp - 0x18]
add esp, 0x18
test esi, esi
je 0x42389c
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x4238d2
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4238c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4238e3
push edx
push ecx
call fcn.004835cc
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004b1db8
int3

Function at 0x4238f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4970
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x56b06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov esi, dword [ebp + 0x20]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004119e0
mov edx, esi
lea ecx, [ebp - 0x18]
call fcn.00423650
mov esi, dword [ebp - 0x18]
add esp, 0x18
test esi, esi
je 0x42399d
cmp dword [edi + 0x14], 8
jb 0x423969
mov edi, dword [edi]
test edi, edi
je 0x423996
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x423972
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x4239d3
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4239c9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4239e5
push edx
push ecx
call fcn.004835cc
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004b1db8
int3
Function at 0x4239f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d49a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x56b06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], edx
mov ebx, ecx
mov esi, dword [ebp + 0x20]
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004119e0
mov edx, esi
lea ecx, [ebp - 0x24]
call fcn.00423740
mov edi, dword [ebp - 0x24]
add esp, 0x18
test edi, edi
je 0x423b61
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x423b61
mov eax, dword [ebp - 0x10]
cmp eax, 1
je 0x423a9a
cmp eax, 2
jne 0x423b61
mov eax, dword [ebp - 0x14]
shr eax, 1
mov dword [ebp - 0x14], eax
je 0x423b61
push ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.0041d6b0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x24]
push eax
push esi
push ebx
call fcn.00427ba0
test eax, eax
jne 0x423b31
mov edx, esi
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x423ae0
sub edx, ecx
mov ecx, dword [ebp - 0x18]
sar edx, 1
push edx
push esi
call fcn.00412c70
test esi, esi
je 0x423b2d
mov ecx, dword [ebp - 0x28]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x423b23
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423bb8
push ecx
push esi
call fcn.004835cc
add esp, 8
mov bl, 1
jmp 0x423b63
test esi, esi
je 0x423b61
mov ecx, dword [ebp - 0x28]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x423b57
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423bbd
push ecx
push esi
call fcn.004835cc
add esp, 8
xor bl, bl
test edi, edi
je 0x423b6e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x423ba4
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x423b9a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423bc2
push edx
push ecx
call fcn.004835cc
add esp, 8
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
call fcn.004b1db8
call fcn.004b1db8
call fcn.004b1db8
int3