joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413410
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x968
push ebx
push ebp
push esi
push edi
push eax
call fcn.004153d0
mov ebx, dword [0x466be4]
mov edi, dword [0x466c48]
mov ecx, ebx
shr ecx, 1
add esp, 4
xor eax, eax
test ecx, ecx
jle 0x413473
mov ebp, ecx
xor ebx, ebx
neg ebp
mov dword [esp + 0x10], ebp
lea esi, [esp + 0x1c]
jmp 0x413451
mov ebp, dword [esp + 0x10]
mov edx, ebx
sub edx, ebp
mov ebp, eax
sub ebp, ecx
add edx, edi
mov dword [esi - 4], ebp
mov dword [esi], edx
add eax, 2
sub ebx, 2
add esi, 8
cmp eax, ecx
jl 0x41344d
mov ebx, dword [0x466be4]
cmp eax, ebx
jge 0x413499
sub edi, ecx
mov edx, ecx
sub ebx, eax
sub edx, eax
add edi, eax
inc ebx
lea esi, [esp + eax*4 + 0x1c]
shr ebx, 1
mov dword [esi - 4], edx
mov dword [esi], edi
add edi, 2
sub edx, 2
add esi, 8
dec ebx
jne 0x413488
mov edi, dword [sym.imp.kernel32.dll_GetTickCount]
call edi
mov ebx, dword [esp + 0x980]
mov ebp, dword [esp + 0x97c]
mov esi, eax
mov dword [esp + 0x10], 0
call edi
add eax, 0x14
cmp esi, eax
mov dword [esp + 0x14], eax
ja 0x4135bb
mov ecx, dword [0x466be4]
xor esi, esi
test ecx, ecx
jle 0x41351d
lea edi, [esp + 0x18]
mov eax, dword [edi]
test eax, eax
jle 0x41350d
mov ecx, dword [0x466c48]
cmp eax, ecx
jle 0x4134ec
mov eax, ecx
push 0
push esi
push 0
push ebp
push 1
push eax
push esi
push 0
push ebx
push 0
push 0xffffffffffffffff
push 0
call fcn.00404300
mov ecx, dword [0x466be4]
add esp, 0x30
add esi, 2
add edi, 8
cmp esi, ecx
jl 0x4134da
mov edi, dword [sym.imp.kernel32.dll_GetTickCount]
mov esi, 1
cmp ecx, esi
jle 0x4135b3
mov edx, dword [0x466c48]
lea edi, [esp + 0x1c]
mov eax, dword [edi]
cmp eax, edx
jge 0x413567
test eax, eax
jge 0x413540
xor eax, eax
push 0
push esi
push eax
push ebp
push 1
sub edx, eax
push edx
push esi
push eax
push ebx
push 0
push 0xffffffffffffffff
push 0
call fcn.00404300
mov ecx, dword [0x466be4]
mov edx, dword [0x466c48]
add esp, 0x30
add esi, 2
add edi, 8
cmp esi, ecx
jl 0x413534
mov edi, dword [sym.imp.kernel32.dll_GetTickCount]
mov eax, dword [esp + 0x98c]
push 0xcc0020
push 0
push 0
push eax
push ecx
mov ecx, dword [esp + 0x99c]
push edx
mov edx, dword [0x466c14]
push 0
push 0
push ecx
push edx
call fcn.00401350
add esp, 0x28
call edi
cmp eax, dword [esp + 0x14]
jbe 0x4135a5
call edi
mov esi, eax
jmp 0x4135be
mov edx, dword [0x466c48]
jmp 0x413577
add esi, 0x14
mov ecx, dword [0x466be4]
test ecx, ecx
jle 0x4135dc
inc ecx
lea eax, [esp + 0x1c]
shr ecx, 1
add dword [eax - 4], 0x10
add dword [eax], 0xfffffff0
add eax, 8
dec ecx
jne 0x4135cf
mov eax, dword [esp + 0x984]
push eax
call fcn.004153b0
add esp, 4
test eax, eax
jne 0x413602
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x3c
mov dword [esp + 0x10], eax
jl 0x4134b9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x968
ret
Function at 0x4153d0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1c
push ebx
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, dword [sym.imp.user32.dll_PeekMessageA]
push 1
push 0x201
push 0x201
push esi
lea eax, [esp + 0x1c]
push eax
call edi
push 1
push 0x204
push 0x204
push esi
lea ecx, [esp + 0x1c]
push ecx
call edi
push 1
push 0x202
push 0x202
push esi
lea edx, [esp + 0x1c]
push edx
xor ebx, ebx
call edi
push 1
push 0x205
push 0x205
and ebx, eax
push esi
lea eax, [esp + 0x1c]
push eax
call edi
push 1
push 0x100
push 0x100
push esi
lea ecx, [esp + 0x1c]
push ecx
and ebx, eax
call edi
push 1
push 0x101
push 0x101
push esi
lea edx, [esp + 0x1c]
push edx
and ebx, eax
call edi
test ebx, eax
jne 0x4153e0
push 0xd
call dword [sym.imp.user32.dll_GetAsyncKeyState]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x1c
ret
Function at 0x4170f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x12c
mov eax, dword [0x45ff58]
mov ecx, dword [0x45ff5c]
mov edx, dword [0x45ff60]
push ebx
mov ebx, dword [esp + 0x140]
push ebp
mov ebp, dword [esp + 0x140]
mov dword [esp + 8], eax
mov eax, dword [0x45ff64]
mov dword [esp + 0xc], ecx
mov cx, word [0x45ff68]
push esi
push edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov word [esp + 0x20], cx
mov edx, dword [esp + 0x144]
mov eax, dword [0x45ff54]
push 0
push ebx
push ebp
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x4171e6
or ecx, 0xffffffff
mov edi, 0x4f5480
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [esp + 0x24]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
lea edx, [esp + 0x24]
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x24]
and ecx, 3
push 0x35
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00411150
add esp, 8
cmp eax, 2
jne 0x41713a
mov eax, dword [0x4f5464]
test eax, eax
jne 0x4171d9
mov ecx, dword [0x45ff54]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x12c
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x12c
ret

Function at 0x417970
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x12c
mov eax, dword [0x45ff6c]
mov ecx, dword [0x45ff70]
mov edx, dword [0x45ff74]
push ebx
mov ebx, dword [esp + 0x140]
push ebp
mov ebp, dword [esp + 0x140]
mov dword [esp + 8], eax
mov eax, dword [0x45ff78]
mov dword [esp + 0xc], ecx
mov cx, word [0x45ff7c]
push esi
push edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov word [esp + 0x20], cx
mov edx, dword [esp + 0x144]
mov eax, dword [0x45ff54]
push 0
push ebx
push ebp
push edx
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x417a6a
mov eax, dword [esp + 0x150]
test eax, eax
je 0x417a5d
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x4f5480
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [esp + 0x24]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
lea edx, [esp + 0x24]
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x24]
and ecx, 3
push 0x35
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00411150
add esp, 8
cmp eax, 2
jne 0x4179ba
mov ecx, dword [0x45ff54]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x12c
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x12c
ret
Function at 0x418d70
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x1c]
push esi
push edi
push 0
push 0
push 0xc0000000
push ebx
call fcn.00416a00
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
jne 0x418ddf
xor esi, esi
mov edi, dword [esi + 0x466c98]
test edi, edi
je 0x418dce
mov eax, dword [esi + 0x466c58]
add eax, edi
cmp edi, eax
jae 0x418dce
push edi
push ebx
call fcn.00452568
add esp, 8
test eax, eax
je 0x418e29
mov ecx, dword [esi + 0x466c98]
mov edx, dword [esi + 0x466c58]
add edi, 0x16
add ecx, edx
cmp edi, ecx
jb 0x418dab
add esi, 4
cmp esi, 0x40
jl 0x418d95
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x20]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.kernel32.dll_SystemTimeToFileTime]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.kernel32.dll_LocalFileTimeToFileTime]
lea eax, [esp + 0x14]
push eax
push 0
push 0
push esi
call dword [sym.imp.kernel32.dll_SetFileTime]
test eax, eax
push esi
jne 0x418e23
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret
Function at 0x4196b0
Capabilities:
Delete file
Read file on windows
Timestomp file
Write file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.kernel32.dll_CreateFileA]
push edi
xor ebx, ebx
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
xor ebp, ebp
push eax
mov dword [esp + 0x2c], ebp
call esi
mov edi, eax
test edi, edi
je 0x4197bb
mov ecx, dword [esp + 0x38]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push ecx
call esi
mov ebx, eax
test ebx, ebx
je 0x4197bb
push 0x100000
call fcn.00451b32
mov esi, eax
add esp, 4
test esi, esi
je 0x41978d
mov ebp, dword [sym.imp.kernel32.dll_ReadFile]
push 0
lea edx, [esp + 0x18]
push edx
push 0x100000
push esi
push ebx
call ebp
test eax, eax
je 0x41977c
mov eax, dword [esp + 0x14]
test eax, eax
je 0x419748
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
push esi
push edi
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x41977c
jmp 0x419716
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x34]
push ecx
push ebx
mov dword [esp + 0x20], 1
call dword [sym.imp.kernel32.dll_GetFileTime]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
call dword [sym.imp.kernel32.dll_SetFileTime]
mov ebp, dword [esp + 0x10]
test esi, esi
je 0x41978d
push esi
call fcn.00451be4
add esp, 4
test edi, edi
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
je 0x41979a
push edi
call esi
test ebx, ebx
je 0x4197a1
push ebx
call esi
cmp ebp, 1
je 0x4197b1
mov edx, dword [esp + 0x3c]
push edx
call dword [sym.imp.kernel32.dll_DeleteFileA]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x24
ret
mov esi, dword [esp + 0x3c]
jmp 0x419780

Function at 0x41b3e0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x466df8]
sub esp, 8
test eax, eax
je 0x41b408
push eax
call dword [sym.imp.user32.dll_DestroyWindow]
push 0
push 5
call fcn.00419d10
add esp, 8
mov eax, 1
add esp, 8
ret
push 1
push 5
call fcn.00419d10
push 6
call fcn.00419d00
add esp, 0xc
cmp eax, 0x186a0
mov dword [esp + 4], eax
jne 0x41b42e
mov dword [esp + 4], 0x80000000
push 7
call fcn.00419d00
add esp, 4
cmp eax, 0x186a0
mov dword [esp], eax
jne 0x41b44b
mov dword [esp], 0x80000000
push esi
push edi
push 8
call fcn.00419d00
mov edi, eax
add esp, 4
cmp edi, 0x186a0
jne 0x41b466
mov edi, 0x80000000
push 9
call fcn.00419d00
mov esi, eax
add esp, 4
cmp esi, 0x186a0
jne 0x41b47f
mov esi, 0x80000000
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00419d20
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add esp, 8
push 0
push edx
push 0
push 0
push esi
push edi
push eax
push ecx
push 0xff0000
push 0x4602a8
push 0x4602a8
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
push 5
push eax
mov dword [0x466df8], eax
call dword [sym.imp.user32.dll_ShowWindow]
mov edx, dword [0x466df8]
push edx
call dword [sym.imp.user32.dll_UpdateWindow]
pop edi
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x420ad0
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x10
call dword [sym.imp.user32.dll_GetKeyState]
test ax, ax
jge case.0x420af1.73
mov eax, dword [esp + 4]
add eax, 0xffffffbc
cmp eax, 0x13
ja case.0x420af1.73
xor ecx, ecx
mov cl, byte [eax + 0x420b5c]
jmp dword [ecx*4 + 0x420b44]
mov edx, dword [0x493e10]
push edx
call fcn.004082b0
add esp, 4
ret
mov eax, dword [0x493e10]
push eax
call fcn.0041b3e0
add esp, 4
ret
mov ecx, dword [esp + 8]
push ecx
call fcn.004264a0
add esp, 4
ret
mov edx, dword [0x493e10]
push edx
call fcn.00427cd0
add esp, 4
ret
mov eax, dword [0x493e10]
push eax
call fcn.0044e0f0
pop ecx
ret
Function at 0x423850
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0xa0]
test eax, eax
push edi
jne 0x4238c9
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x14]
mov eax, dword [0x493e10]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
push 0
push eax
mov eax, dword [esi + 0x9c]
push 0
push ebp
push ecx
mov ecx, dword [esi + 0x98]
push edx
push edi
push ebx
push eax
push 0x468520
push 0x460840
push ecx
call dword [sym.imp.user32.dll_CreateWindowExA]
test eax, eax
mov dword [esi + 0xa0], eax
jne 0x4238bf
push 0x35
push 0x4604a0
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x423905
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x42386e
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0xa0]
push edx
push 0
push eax
call dword [sym.imp.user32.dll_SetWindowLongA]
mov edx, dword [esi + 0xa0]
mov ecx, dword [esp + 0x20]
push 5
push edx
mov dword [esi + 0x8c], ecx
call dword [sym.imp.user32.dll_ShowWindow]
call fcn.004236a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x424e40
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, dword [esp + 0x40]
mov eax, dword [ebx + 0x20]
push ebp
push esi
xor esi, esi
cmp eax, esi
push edi
jne 0x424fbb
mov eax, dword [ebx + 0xe]
mov ecx, dword [ebx + 0x16]
push esi
push esi
push eax
push ecx
mov dword [ebx + 0x20], 1
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov ebp, dword [ebx + 0x12]
cmp ebp, esi
jbe 0x424ecf
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
cmp ebp, eax
mov esi, ebp
jbe 0x424e86
mov esi, eax
mov eax, dword [ebx + 0x16]
push 0
lea edx, [esp + 0x14]
push edx
push esi
push edi
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x424fa5
mov edx, dword [esp + 0x40]
push 0
lea ecx, [esp + 0x50]
push ecx
push esi
push edi
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x424fa5
mov eax, dword [esp + 0x4c]
cmp eax, esi
jne 0x424fa5
sub ebp, eax
jne 0x424e7a
xor esi, esi
mov ax, word [ebx + 0x1a]
mov ecx, dword [ebx + 0x1c]
mov dx, word [ebx + 0x1c]
mov ebp, dword [sym.imp.kernel32.dll_WriteFile]
push esi
mov word [esp + 0x18], ax
shr ecx, 0x10
lea eax, [esp + 0x50]
push eax
mov word [esp + 0x1e], cx
push 0x10
lea ecx, [esp + 0x20]
mov word [esp + 0x24], dx
mov edx, dword [esp + 0x50]
push ecx
push edx
mov word [esp + 0x2e], si
mov word [esp + 0x30], si
mov word [esp + 0x32], si
mov word [esp + 0x34], si
mov word [esp + 0x36], si
call ebp
test eax, eax
jne 0x424f30
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret
cmp dword [esp + 0x4c], 0x10
je 0x424f44
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret
or ecx, 0xffffffff
xor eax, eax
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
lea edx, [esp + 0x24]
mov esi, edi
mov edi, edx
mov edx, dword [ebx + 0x12]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x4e6f10]
push 0
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x3a], ecx
push 0x16
lea ecx, [esp + 0x30]
mov dword [esp + 0x42], edx
mov edx, dword [esp + 0x54]
push ecx
push edx
call ebp
test eax, eax
jne 0x424f9e
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret
cmp dword [esp + 0x4c], 0x16
je 0x424fb2
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret
mov eax, dword [ebx + 0x12]
add dword [0x4e6f10], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret
Function at 0x426850
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
movsx ebp, byte [esi]
mov al, byte [esi + 3]
add esi, 3
add ebp, 0x7fffffd0
xor ebx, ebx
test al, al
push edi
mov edi, esi
je 0x42689b
movsx eax, byte [edi]
push eax
call fcn.00451f5f
add esp, 4
test eax, eax
je 0x426885
add edi, 2
jmp 0x426892
cmp byte [edi], 0x5c
jne 0x426891
lea ebx, [edi + 1]
mov edi, ebx
jmp 0x426892
inc edi
cmp byte [edi], 0
jne 0x426870
test ebx, ebx
jne 0x4268a1
mov ebx, esi
mov esi, edi
jmp 0x4268b6
cmp byte [ebx], 0
jne 0x4268ac
dec ebx
mov byte [ebx], 0
jmp 0x4268b0
mov byte [ebx - 1], 0
cmp byte [esi], 0x5c
jne 0x4268b6
inc esi
mov edi, dword [sym.imp.advapi32.dll_RegCreateKeyExA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push ebp
call edi
test eax, eax
je 0x426912
push 0x35
push 0x4605dc
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x426979
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push ebp
call edi
test eax, eax
jne 0x4268db
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ebp, dword [sym.imp.advapi32.dll_RegSetValueExA]
push esi
push edi
push 3
push 0
push ebx
push edx
call ebp
test eax, eax
je 0x426958
push 0x35
push 0x4605c0
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x42696e
mov eax, dword [esp + 0x18]
push esi
push edi
push 3
push 0
push ebx
push eax
call ebp
test eax, eax
jne 0x426932
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x426990
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
movsx ebp, byte [edi]
mov al, byte [edi + 3]
add edi, 3
add ebp, 0x7fffffd0
xor ebx, ebx
test al, al
mov esi, edi
je 0x4269db
movsx eax, byte [esi]
push eax
call fcn.00451f5f
add esp, 4
test eax, eax
je 0x4269c5
add esi, 2
jmp 0x4269d2
cmp byte [esi], 0x5c
jne 0x4269d1
lea ebx, [esi + 1]
mov esi, ebx
jmp 0x4269d2
inc esi
cmp byte [esi], 0
jne 0x4269b0
test ebx, ebx
jne 0x4269e1
mov ebx, edi
mov edi, esi
jmp 0x4269f6
cmp byte [ebx], 0
jne 0x4269ec
dec ebx
mov byte [ebx], 0
jmp 0x4269f0
mov byte [ebx - 1], 0
cmp byte [edi], 0x5c
jne 0x4269f6
inc edi
mov esi, dword [sym.imp.advapi32.dll_RegCreateKeyExA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push edi
push ebp
call esi
test eax, eax
je 0x426a52
push 0x35
push 0x4605dc
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x426abb
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edi
push ebp
call esi
test eax, eax
jne 0x426a1b
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.advapi32.dll_RegSetValueExA]
push 4
lea edx, [esp + 0x20]
push edx
push 4
push 0
push ebx
push eax
call esi
test eax, eax
je 0x426a9a
push 0x35
push 0x4605c0
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x426ab0
mov edx, dword [esp + 0x18]
push 4
lea ecx, [esp + 0x20]
push ecx
push 4
push 0
push ebx
push edx
call esi
test eax, eax
jne 0x426a6f
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x426ad0
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
movsx ebp, byte [edi]
mov al, byte [edi + 3]
add edi, 3
add ebp, 0x7fffffd0
xor ebx, ebx
test al, al
mov esi, edi
je 0x426b1b
movsx eax, byte [esi]
push eax
call fcn.00451f5f
add esp, 4
test eax, eax
je 0x426b05
add esi, 2
jmp 0x426b12
cmp byte [esi], 0x5c
jne 0x426b11
lea ebx, [esi + 1]
mov esi, ebx
jmp 0x426b12
inc esi
cmp byte [esi], 0
jne 0x426af0
test ebx, ebx
jne 0x426b21
mov ebx, edi
mov edi, esi
jmp 0x426b36
cmp byte [ebx], 0
jne 0x426b2c
dec ebx
mov byte [ebx], 0
jmp 0x426b30
mov byte [ebx - 1], 0
cmp byte [edi], 0x5c
jne 0x426b36
inc edi
mov esi, dword [sym.imp.advapi32.dll_RegCreateKeyExA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push edi
push ebp
call esi
test eax, eax
je 0x426b92
push 0x35
push 0x4605dc
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x426c09
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edi
push ebp
call esi
test eax, eax
jne 0x426b5b
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ebp, dword [sym.imp.advapi32.dll_RegSetValueExA]
or ecx, 0xffffffff
xor eax, eax
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push 1
push eax
push ebx
push edx
call ebp
test eax, eax
je 0x426be8
push 0x35
push 0x4605c0
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x426bfe
xor eax, eax
or ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push 1
push eax
mov eax, dword [esp + 0x28]
push ebx
push eax
call ebp
test eax, eax
jne 0x426bb8
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x426c20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
movsx ebp, byte [edi]
mov al, byte [edi + 3]
add edi, 3
add ebp, 0x7fffffd0
xor ebx, ebx
test al, al
mov esi, edi
je 0x426c6d
movsx eax, byte [esi]
push eax
call fcn.00451f5f
add esp, 4
test eax, eax
je 0x426c57
add esi, 2
jmp 0x426c64
cmp byte [esi], 0x5c
jne 0x426c63
lea ebx, [esi + 1]
mov esi, ebx
jmp 0x426c64
inc esi
cmp byte [esi], 0
jne 0x426c42
test ebx, ebx
jne 0x426c73
mov ebx, edi
mov edi, esi
jmp 0x426c88
cmp byte [ebx], 0
jne 0x426c7e
dec ebx
mov byte [ebx], 0
jmp 0x426c82
mov byte [ebx - 1], 0
cmp byte [edi], 0x5c
jne 0x426c88
inc edi
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x1c]
push ecx
push 0xf003f
push 0
push edi
push ebp
call esi
test eax, eax
je 0x426cce
push 0x35
push 0x460614
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x426d88
lea edx, [esp + 0x1c]
push edx
push 0xf003f
push 0
push edi
push ebp
call esi
test eax, eax
jne 0x426ca2
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.advapi32.dll_RegQueryValueExA]
lea eax, [esp + 0x10]
push eax
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
push ebx
push edx
call esi
test eax, eax
je 0x426d1c
push 0x35
push 0x4605f8
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x426d68
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
push ebx
push edx
call esi
test eax, eax
jne 0x426cee
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push edi
lea edx, [esp + 0x1c]
push edx
push 0
push ebx
push eax
call esi
test eax, eax
je 0x426d92
push 0x35
push 0x4605f8
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x426d7d
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push edi
lea edx, [esp + 0x1c]
push edx
push 0
push ebx
push eax
call esi
test eax, eax
jne 0x426d39
jmp 0x426d92
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret