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

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
dec eax
push esi
cmp eax, 8
push edi
ja case.default.0x6ea542
jmp dword [eax*4 + 0x6ea738]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 1
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 2
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 4
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov eax, dword [esp + 0x14]
push ebp
lea ecx, [esp + 0x1c]
push 0
push ecx
lea edx, [esp + 0x18]
push 4
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.kernel32.dll_ReadFile]
mov edi, 0x7c4d88
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
mov ecx, ebx
push ebp
call fcn.00401450
test al, al
je 0x6ea61f
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x7c4d88
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ebp
mov byte [eax + ebp], 0
mov esi, dword [esp + 0x10]
pop ebp
test esi, esi
jle 0x6ea720
cmp esi, 0xffffffff
jne 0x6ea636
call fcn.007373b0
mov ecx, ebx
call fcn.00404990
cmp eax, esi
jae 0x6ea646
call fcn.007373b0
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x6ea66b
mov al, byte [ecx - 1]
test al, al
je 0x6ea66b
cmp al, 0xff
je 0x6ea66b
test esi, esi
jne 0x6ea68f
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.00404760
jmp 0x6ea6b9
test esi, esi
jne 0x6ea67a
push 1
mov ecx, ebx
call fcn.00404760
jmp 0x6ea6b9
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x6ea686
cmp eax, esi
jae 0x6ea697
push 1
mov ecx, ebx
call fcn.00404760
push esi
mov ecx, ebx
call fcn.00401570
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
mov eax, 0x20202020
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 4]
mov dword [ebx + 8], esi
mov byte [eax + esi], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x6ea6e8
mov al, byte [eax - 1]
test al, al
je 0x6ea6d8
cmp al, 0xff
je 0x6ea6d8
mov ecx, dword [ebx + 8]
push 0
push ecx
mov ecx, ebx
call fcn.00401450
mov eax, dword [ebx + 4]
test eax, eax
je 0x6ea6e3
mov byte [eax - 1], 0xff
mov ebx, dword [ebx + 4]
jmp 0x6ea6ed
mov ebx, 0x765608
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push 0
push edx
push eax
push ebx
jmp 0x6ea715
lea edx, [esp + 0x18]
push 0
push edx
push 4
jmp 0x6ea710
lea edx, [esp + 0x18]
push 0
push edx
push 8
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x6ea9b0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
dec eax
push esi
cmp eax, 8
push edi
ja case.default.0x6ea9c2
jmp dword [eax*4 + 0x6eabb8]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 1
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 2
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 4
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov eax, dword [esp + 0x14]
push ebp
lea ecx, [esp + 0x1c]
push 0
push ecx
lea edx, [esp + 0x18]
push 4
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.kernel32.dll_ReadFile]
mov edi, 0x7c4d88
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
mov ecx, ebx
push ebp
call fcn.00401450
test al, al
je 0x6eaa9f
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x7c4d88
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ebp
mov byte [eax + ebp], 0
mov esi, dword [esp + 0x10]
pop ebp
test esi, esi
jle 0x6eaba0
cmp esi, 0xffffffff
jne 0x6eaab6
call fcn.007373b0
mov ecx, ebx
call fcn.00404990
cmp eax, esi
jae 0x6eaac6
call fcn.007373b0
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x6eaaeb
mov al, byte [ecx - 1]
test al, al
je 0x6eaaeb
cmp al, 0xff
je 0x6eaaeb
test esi, esi
jne 0x6eab0f
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.00404760
jmp 0x6eab39
test esi, esi
jne 0x6eaafa
push 1
mov ecx, ebx
call fcn.00404760
jmp 0x6eab39
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x6eab06
cmp eax, esi
jae 0x6eab17
push 1
mov ecx, ebx
call fcn.00404760
push esi
mov ecx, ebx
call fcn.00401570
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
mov eax, 0x20202020
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 4]
mov dword [ebx + 8], esi
mov byte [eax + esi], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x6eab68
mov al, byte [eax - 1]
test al, al
je 0x6eab58
cmp al, 0xff
je 0x6eab58
mov ecx, dword [ebx + 8]
push 0
push ecx
mov ecx, ebx
call fcn.00401450
mov eax, dword [ebx + 4]
test eax, eax
je 0x6eab63
mov byte [eax - 1], 0xff
mov ebx, dword [ebx + 4]
jmp 0x6eab6d
mov ebx, 0x765608
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push 0
push edx
push eax
push ebx
jmp 0x6eab95
lea edx, [esp + 0x18]
push 0
push edx
push 4
jmp 0x6eab90
lea edx, [esp + 0x18]
push 0
push edx
push 8
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x6eb540
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x763072
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 8], edi
xor ebp, ebp
cmp edi, ebp
mov dword [esp + 0x14], ebp
je 0x6eb6ce
push ebx
push esi
mov esi, dword [esp + 0x28]
add edi, 4
mov dword [esp + 0x28], edi
mov eax, dword [esi]
mov dword [edi - 4], eax
mov ecx, dword [esi + 4]
mov dword [edi], ecx
mov dl, byte [esi + 8]
lea eax, [esi + 0xc]
mov byte [edi + 4], dl
lea ecx, [edi + 8]
mov dl, byte [eax]
mov byte [ecx], dl
mov dword [ecx + 4], ebp
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], ebp
mov edx, dword [0x76560c]
push edx
push ebp
push eax
call fcn.00404560
mov al, byte [esi + 0x1c]
lea ebx, [esi + 0x1c]
lea ebp, [edi + 0x18]
mov byte [esp + 0x1c], 1
push 0
mov ecx, ebp
mov byte [ebp], al
call fcn.00404760
mov ecx, dword [0x76560c]
push ecx
push 0
push ebx
mov ecx, ebp
call fcn.00404560
mov edx, dword [esi + 0x2c]
mov byte [esp + 0x1c], 2
mov dword [edi + 0x28], edx
mov al, byte [esi + 0x30]
mov byte [edi + 0x2c], al
mov ecx, dword [esi + 0x34]
mov dword [edi + 0x30], ecx
mov edx, dword [esi + 0x38]
mov dword [edi + 0x34], edx
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x38], eax
mov ecx, dword [esi + 0x40]
mov dword [edi + 0x3c], ecx
mov dl, byte [esi + 0x44]
mov byte [edi + 0x40], dl
mov al, byte [esi + 0x45]
mov byte [edi + 0x41], al
mov cl, byte [esi + 0x46]
mov byte [edi + 0x42], cl
mov dl, byte [esi + 0x47]
mov byte [edi + 0x43], dl
mov al, byte [esi + 0x48]
mov byte [edi + 0x44], al
mov cx, word [esi + 0x4a]
mov word [edi + 0x46], cx
mov dx, word [esi + 0x4c]
mov word [edi + 0x48], dx
mov ax, word [esi + 0x4e]
mov word [edi + 0x4a], ax
mov cx, word [esi + 0x50]
mov word [edi + 0x4c], cx
mov dx, word [esi + 0x52]
mov word [edi + 0x4e], dx
mov eax, dword [esi + 0x54]
mov dword [edi + 0x50], eax
mov ecx, dword [esi + 0x58]
mov dword [edi + 0x54], ecx
mov dx, word [esi + 0x5c]
mov word [edi + 0x58], dx
mov al, byte [esi + 0x5e]
mov byte [edi + 0x5a], al
mov ecx, dword [esi + 0x60]
mov dword [edi + 0x5c], ecx
mov edx, dword [esi + 0x64]
mov dword [edi + 0x60], edx
mov al, byte [esi + 0x68]
mov byte [edi + 0x64], al
mov cl, byte [esi + 0x69]
mov byte [edi + 0x65], cl
mov dl, byte [esi + 0x6a]
mov byte [edi + 0x66], dl
mov al, byte [esi + 0x6b]
mov byte [edi + 0x67], al
mov cl, byte [esi + 0x6c]
mov byte [edi + 0x68], cl
mov dl, byte [esi + 0x6d]
mov byte [edi + 0x69], dl
mov al, byte [esi + 0x6e]
mov byte [edi + 0x6a], al
mov cl, byte [esi + 0x6f]
mov byte [edi + 0x6b], cl
mov dl, byte [esi + 0x70]
mov byte [edi + 0x6c], dl
mov al, byte [esi + 0x71]
mov byte [edi + 0x6d], al
mov cl, byte [esi + 0x72]
mov byte [edi + 0x6e], cl
pop esi
pop ebx
mov byte [esp + 0x14], 0
pop edi
mov dword [esp + 0x10], 0xffffffff
pop ebp
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], 0xffffffff
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x6f0670
Capabilities:
Capture screenshot

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebx
call dword [sym.imp.user32.dll_IsRectEmpty]
test eax, eax
je 0x6f068c
xor eax, eax
pop ebx
add esp, 8
ret 4
push ebp
push esi
push edi
push 0
push 0
push 0
push 0x7aaf8c
call dword [sym.imp.gdi32.dll_CreateDCA]
mov esi, eax
push esi
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
mov ecx, dword [ebx + 4]
mov ebp, dword [ebx + 8]
mov edi, eax
mov eax, dword [ebx]
mov ebx, dword [ebx + 0xc]
push 8
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.gdi32.dll_GetDeviceCaps]
push 0xa
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.gdi32.dll_GetDeviceCaps]
mov edx, dword [esp + 0x10]
xor ecx, ecx
cmp edx, ecx
jge 0x6f06e2
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x1c], ecx
jge 0x6f06ec
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x14]
cmp ebp, ecx
jle 0x6f06f6
mov ebp, ecx
cmp ebx, eax
jle 0x6f06fc
mov ebx, eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
sub ebx, edx
sub ebp, eax
push ebx
push ebp
push esi
call dword [sym.imp.gdi32.dll_CreateCompatibleBitmap]
push eax
push edi
call dword [sym.imp.gdi32.dll_SelectObject]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
push 0xcc0020
push edx
push eax
push esi
push ebx
push ebp
push 0
push 0
push edi
call dword [sym.imp.gdi32.dll_BitBlt]
mov ecx, dword [esp + 0x14]
push ecx
push edi
call dword [sym.imp.gdi32.dll_SelectObject]
push esi
mov esi, dword [sym.imp.gdi32.dll_DeleteDC]
mov ebx, eax
call esi
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret 4

Function at 0x6f0850
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x24
xor al, al
mov byte [esp + 5], 0x10
mov byte [esp + 4], al
mov byte [esp + 3], al
mov eax, dword [esp + 0x2c]
mov byte [esp + 6], 0x18
and eax, 0xffff
mov byte [esp + 7], 0x20
mov ecx, eax
mov byte [esp + 8], 0x28
and ecx, 0x1f
mov byte [esp + 9], 0x30
mov byte [esp + 0xa], 0x38
mov byte [esp + 0xb], 0x40
mov byte [esp + 0xc], 0x48
mov byte [esp + 0xd], 0x50
mov byte [esp + 0xe], 0x58
mov byte [esp + 0xf], 0x60
mov byte [esp + 0x10], 0x68
mov byte [esp + 0x11], 0x70
mov byte [esp + 0x12], 0x78
mov byte [esp + 0x13], 0x80
mov byte [esp + 0x14], 0x88
mov byte [esp + 0x15], 0x90
mov byte [esp + 0x16], 0x98
mov byte [esp + 0x17], 0xa0
mov byte [esp + 0x18], 0xa8
mov byte [esp + 0x19], 0xb0
mov byte [esp + 0x1a], 0xb8
mov byte [esp + 0x1b], 0xc0
mov byte [esp + 0x1c], 0xc8
mov byte [esp + 0x1d], 0xd0
mov byte [esp + 0x1e], 0xd8
mov byte [esp + 0x1f], 0xe0
mov byte [esp + 0x20], 0xe8
mov byte [esp + 0x21], 0xf0
mov byte [esp + 0x22], 0xf8
mov byte [esp + 0x23], 0xff
mov dl, byte [esp + ecx + 4]
mov ecx, eax
shr ecx, 5
shr eax, 0xa
and ecx, 0x1f
and eax, 0x1f
mov byte [esp], dl
mov al, byte [esp + eax + 4]
mov dl, byte [esp + ecx + 4]
mov byte [esp + 2], al
mov eax, dword [esp + 0x28]
mov byte [esp + 1], dl
mov ecx, dword [esp]
mov dword [eax], ecx
add esp, 0x24
ret 8
Function at 0x6f5580
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.kernel32.dll_ReadFile]
push esi
push edi
mov esi, ecx
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push ebx
mov dword [esp + 0x24], 0
call ebp
lea edx, [esp + 0x18]
push 0
push edx
lea eax, [esi + 4]
push 4
push eax
push ebx
call ebp
lea ecx, [esp + 0x18]
push 0
lea edi, [esi + 8]
push ecx
push 0x10
push edi
push ebx
call ebp
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
jle 0x6f55da
mov dword [esi + 0xc], ecx
mov dword [esi + 0x14], eax
mov eax, dword [edi]
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jle 0x6f55e8
mov dword [edi], ecx
mov dword [esi + 0x10], eax
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
mov ecx, dword [edi]
shl edx, 2
mov dword [esi + 0xc], edx
mov edx, dword [esi + 0x10]
shl eax, 2
shl ecx, 2
shl edx, 2
mov dword [edi], ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], edx
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 4

Function at 0x6f5ab0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov edx, dword [esp + 0x1c]
push esi
push edi
mov edi, dword [ecx]
mov eax, dword [edx]
mov edx, dword [edx + 4]
mov dword [esp + 0x14], edi
mov edi, dword [ecx + 4]
mov dword [esp + 0x10], edi
mov edi, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x1c], edi
xor esi, esi
mov dword [esp + 0x18], ecx
mov edi, 0x20
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov ecx, edx
sub esi, 0x61c88647
shr ecx, 5
add ecx, ebx
mov ebx, edx
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x1c]
xor ecx, ebx
lea ebx, [esi + edx]
xor ecx, ebx
mov ebx, dword [esp + 0x18]
add eax, ecx
mov ecx, eax
shr ecx, 5
add ecx, ebx
mov ebx, eax
shl ebx, 4
add ebx, ebp
xor ecx, ebx
lea ebx, [esi + eax]
xor ecx, ebx
add edx, ecx
dec edi
jne 0x6f5ae2
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov dword [ecx + 4], edx
pop ebx
add esp, 0x10
ret 4
Function at 0x6f76c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x763bb1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
mov ecx, dword [esp + 0x248]
push ebx
lea eax, [esp + 0x250]
push edi
push eax
lea edx, [esp + 0x40]
push ecx
push edx
call fcn.00727ad8
mov al, byte [esp + 0x17]
mov edi, 0x7ab3c8
mov byte [esp + 0x28], al
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x20], ebx
push ecx
push 0x7ab3c8
lea ecx, [esp + 0x24]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.004047b0
mov cl, byte [esp + 0xb]
mov dword [esp + 0x244], ebx
mov byte [esp + 0xc], cl
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x3c]
push ecx
push edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.004047b0
push ebx
push 1
lea eax, [esp + 0x24]
push ebx
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
mov byte [esp + 0x25c], 1
call fcn.006f9ae0
add esp, 0x18
mov eax, dword [esp + 0x30]
mov byte [esp + 0x244], 1
cmp eax, ebx
je 0x6f77b6
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x6f77ad
cmp al, 0xff
je 0x6f77ad
dec al
mov byte [ecx], al
jmp 0x6f77b6
push ecx
call fcn.00726ea6
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
cmp eax, ebx
mov byte [esp + 0x244], bl
je 0x6f77ee
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x6f77e5
cmp al, 0xff
je 0x6f77e5
dec al
mov byte [ecx], al
jmp 0x6f77ee
push ecx
call fcn.00726ea6
add esp, 4
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
cmp eax, ebx
mov dword [esp + 0x244], 0xffffffff
je 0x6f783f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x6f7836
cmp al, 0xff
je 0x6f7836
dec al
pop edi
mov byte [ecx], al
pop ebx
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
add esp, 0x240
ret
push ecx
call fcn.00726ea6
add esp, 4
mov ecx, dword [esp + 0x23c]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x240
ret
Function at 0x6f9bb0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x763e98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
lea eax, [esp + 4]
push eax
call fcn.006faac0
add esp, 4
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], 0
test eax, eax
jne 0x6f9be9
mov eax, 0x765608
push ebx
lea ecx, [esp + 4]
push esi
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyA]
push ecx
push eax
push closesocket
call esi
test eax, eax
push 1
lea ecx, [esp + 0x10]
setne bl
mov dword [esp + 0x28], 0xffffffff
call fcn.00404760
test bl, bl
je 0x6f9d10
lea edx, [esp + 0xc]
push edx
call fcn.006faac0
add esp, 4
mov eax, dword [eax + 4]
mov dword [esp + 0x24], 1
test eax, eax
jne 0x6f9c3f
mov eax, 0x765608
lea ecx, [esp + 8]
push ecx
push eax
push closesocket
call dword [sym.imp.advapi32.dll_RegCreateKeyA]
test eax, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
setne bl
test eax, eax
je 0x6f9c82
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x6f9c79
cmp al, 0xff
je 0x6f9c79
dec al
mov byte [ecx], al
jmp 0x6f9c82
push ecx
call fcn.00726ea6
add esp, 4
test bl, bl
je 0x6f9c99
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
lea edx, [esp + 0xc]
push edx
call fcn.006faac0
add esp, 4
mov eax, dword [eax + 4]
mov dword [esp + 0x24], 2
test eax, eax
jne 0x6f9cba
mov eax, 0x765608
lea ecx, [esp + 8]
push ecx
push eax
push closesocket
call esi
test eax, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
setne bl
test eax, eax
je 0x6f9cf9
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x6f9cf0
cmp al, 0xff
je 0x6f9cf0
dec al
mov byte [ecx], al
jmp 0x6f9cf9
push ecx
call fcn.00726ea6
add esp, 4
test bl, bl
je 0x6f9d10
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0xc]
push eax
push 3
push 0
push ecx
push edx
call dword [sym.imp.advapi32.dll_RegSetValueExA]
test eax, eax
je 0x6f9d50
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
pop esi
test eax, eax
sete al
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x6f9d80
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x763ec8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
lea eax, [esp + 4]
push eax
call fcn.006fabf0
add esp, 4
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], 0
test eax, eax
jne 0x6f9db9
mov eax, 0x765608
push ebx
lea ecx, [esp + 4]
push esi
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyA]
push ecx
push eax
push closesocket
call esi
test eax, eax
push 1
lea ecx, [esp + 0x10]
setne bl
mov dword [esp + 0x28], 0xffffffff
call fcn.00404760
test bl, bl
je 0x6f9ee0
lea edx, [esp + 0xc]
push edx
call fcn.006fabf0
add esp, 4
mov eax, dword [eax + 4]
mov dword [esp + 0x24], 1
test eax, eax
jne 0x6f9e0f
mov eax, 0x765608
lea ecx, [esp + 8]
push ecx
push eax
push closesocket
call dword [sym.imp.advapi32.dll_RegCreateKeyA]
test eax, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
setne bl
test eax, eax
je 0x6f9e52
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x6f9e49
cmp al, 0xff
je 0x6f9e49
dec al
mov byte [ecx], al
jmp 0x6f9e52
push ecx
call fcn.00726ea6
add esp, 4
test bl, bl
je 0x6f9e69
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
lea edx, [esp + 0xc]
push edx
call fcn.006fabf0
add esp, 4
mov eax, dword [eax + 4]
mov dword [esp + 0x24], 2
test eax, eax
jne 0x6f9e8a
mov eax, 0x765608
lea ecx, [esp + 8]
push ecx
push eax
push closesocket
call esi
test eax, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
setne bl
test eax, eax
je 0x6f9ec9
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x6f9ec0
cmp al, 0xff
je 0x6f9ec0
dec al
mov byte [ecx], al
jmp 0x6f9ec9
push ecx
call fcn.00726ea6
add esp, 4
test bl, bl
je 0x6f9ee0
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0xc]
push eax
push 3
push 0
push ecx
push edx
call dword [sym.imp.advapi32.dll_RegSetValueExA]
test eax, eax
je 0x6f9f20
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
pop esi
test eax, eax
sete al
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x6f9f50
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x763ee8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
lea ecx, [esp + 8]
push ecx
mov dword [esp + 4], eax
call fcn.006faac0
add esp, 4
mov eax, dword [eax + 4]
mov dword [esp + 0x20], 0
test eax, eax
jne 0x6f9f91
mov eax, 0x765608
lea edx, [esp + 0x30]
push ebx
push edx
push eax
push closesocket
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
test eax, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
setne bl
test eax, eax
je 0x6f9fd5
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x6f9fcc
cmp al, 0xff
je 0x6f9fcc
dec al
mov byte [ecx], al
jmp 0x6f9fd5
push ecx
call fcn.00726ea6
add esp, 4
test bl, bl
pop ebx
je 0x6f9feb
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov ecx, dword [esp + 0x2c]
lea eax, [esp]
push eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x38]
push edx
push 0
push eax
push ecx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
je 0x6fa02c
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
test eax, eax
sete al
mov dword fs:[0], ecx
add esp, 0x24
ret