joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4072e5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edi
push esi
push ebx
sub esp, 0x60
mov ebx, dword [esp + 0x80]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x74]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x1c], edx
and eax, 0xf
cmp al, 6
je 0x407335
mov dword [esp + 8], 0xd6
mov dword [esp + 4], str..._.._.._jv.c
mov dword [esp], 0x4349e8
call dbg._assert
test ebx, ebx
js 0x407479
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x14]
mov dword [esp + 0x24], esi
mov edx, dword [esp + 0x18]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x2c], edx
and eax, 0xf
cmp al, 6
je 0x407380
mov dword [esp + 8], 0xcc
mov dword [esp + 4], str..._.._.._jv.c
mov dword [esp], 0x4349e8
call dbg._assert
mov eax, 0
cmp ebx, esi
jge 0x40747e
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x14]
mov dword [esp + 0x34], edx
mov esi, dword [esp + 0x18]
mov dword [esp + 0x38], esi
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x3c], edx
and eax, 0xf
cmp al, 6
je 0x4073d0
mov dword [esp + 8], 0xaf
mov dword [esp + 4], str..._.._.._jv.c
mov dword [esp], 0x4349e8
call dbg._assert
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x14]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x4c], edx
movzx edi, word [esp + 0x12]
and eax, 0xf
cmp al, 6
je 0x407418
mov dword [esp + 8], 0xd1
mov dword [esp + 4], str..._.._.._jv.c
mov dword [esp], 0x4349e8
call dbg._assert
movzx edi, di
add edi, ebx
cmp edi, dword [esi + 4]
jl 0x40743e
mov dword [esp + 8], 0xd9
mov dword [esp + 4], str..._.._.._jv.c
mov dword [esp], str.i__jvp_array_offset_a____array__length
call dbg._assert
movzx edi, word [esp + 0x12]
movzx eax, byte [esp + 0x10]
and eax, 0xf
cmp al, 6
je 0x40746b
mov dword [esp + 8], 0xd1
mov dword [esp + 4], str..._.._.._jv.c
mov dword [esp], 0x4349e8
call dbg._assert
movzx edi, di
lea eax, [ebx + edi + 1]
shl eax, 4
add eax, esi
jmp 0x40747e
mov eax, 0
add esp, 0x60
pop ebx
pop esi
pop edi
ret
Function at 0x409c98
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x70]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x74]
mov dword [esp + 0x24], edx
mov ebp, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x2c], edx
mov edi, ebp
and eax, 0xf
cmp al, 7
je 0x409ce0
mov dword [esp + 8], 0x3b8
mov dword [esp + 4], str..._.._.._jv.c
mov dword [esp], str.jv_get_kind_o___JV_KIND_OBJECT
call dbg._assert
mov eax, dword [ebp]
sub eax, 1
mov dword [ebp], eax
mov esi, 0
test eax, eax
je 0x409d6f
jmp 0x409de6
mov dword [esp + 0x28], edi
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov dword [esp + 8], edi
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], eax
call dbg.jvp_object_get_slot
mov ebx, eax
movzx eax, byte [eax + 8]
and eax, 0xf
cmp al, 1
je 0x409d6c
mov eax, dword [ebx + 8]
mov dword [esp], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0xc], eax
call dbg.jvp_string_free
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 0xc], eax
call dbg.jv_free
add esi, 1
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], edi
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x3c], edx
and eax, 0xf
cmp al, 7
je 0x409dae
mov dword [esp + 8], 0x380
mov dword [esp + 4], str..._.._.._jv.c
mov dword [esp], str.jv_get_kind_o___JV_KIND_OBJECT
call dbg._assert
cmp esi, ebx
jl 0x409cf7
movzx eax, byte [esp + 0x20]
and eax, 0xf
cmp al, 7
je 0x409dde
mov dword [esp + 8], 0x376
mov dword [esp + 4], str..._.._.._jv.c
mov dword [esp], str.jv_get_kind_o___JV_KIND_OBJECT
call dbg._assert
mov dword [esp], ebp
call dbg.jv_mem_free
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40cd54
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x38
mov ebx, dword [esp + 0x40]
test ebx, ebx
je 0x40cdac
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp], ecx
call dbg.jv_string_append_buf
mov eax, dword [esp + 0x20]
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0xc], eax
jmp 0x40cdc4
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._fwrite
add esp, 0x38
pop ebx
ret
Function at 0x41228c
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
mov dword [esp], 0x433004
call dbg.__emutls_get_address
mov edx, dword [eax]
test edx, edx
je 0x4122a9
mov eax, dword [eax + 4]
mov dword [esp], eax
call edx
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1e
mov dword [esp + 4], 1
mov dword [esp], 0x4358a8
call sym._fwrite
call sym._abort
Function at 0x42fb80
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp sym.___write_memory.part.0
Function at 0x4302f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x43d3c8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x43d3c0]
sub esp, 4
test ebx, ebx
je 0x430345
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x43033e
test eax, eax
jne 0x43033e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x430320
mov dword [esp], 0x43d3c8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x430560
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x430598
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x43058e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x43059a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x430580
xor eax, eax
pop ebx
pop esi
ret

Function at 0x430b70
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
mov dword [global_Addend], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
sub esp, 0x10
mov dword [0x43d3f0], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x430bd2
mov dword [esp + 4], dbg.emutls_destroy
mov dword [esp], eax
mov dword [global___key], eax
call dbg.__mingwthr_key_dtor
test eax, eax
jne 0x430bda
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x430bca
call sym._abort
nop
Function at 0x401434
Capabilities:
Copy file
Create shortcut via ishelllink
Delete file
Delete registry value
Enumerate files on windows
Get file attributes
Move file
Query environment variable
Query or enumerate registry key
Query or enumerate registry value
Read .ini file
Read file on windows
Set current directory
Set file attributes
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [0x434ee8]
push 7
pop ecx
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
mov edi, section..ndata
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
xor ebx, ebx
shl ecx, 0xb
add ecx, edi
mov esi, eax
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x28]
shl esi, 0xb
mov dword [0x40ce2c], ecx
lea ecx, [edx - 2]
add esi, edi
cmp ecx, 0x43
mov dword [ebp - 4], ebx
ja case.0x40148a.65
jmp dword [ecx*4 + 0x402ad7]
push ebx
push eax
call fcn.00405322
jmp 0x4022f7
inc dword [0x433eac]
cmp dword [ebp - 8], ebx
je 0x4022f7
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x4022f7
push eax
call fcn.0040136d
dec eax
push ebx
push eax
invalid

Function at 0x402780
Capabilities:
Read file on windows

Disassembly:
ret
Function at 0x40338f
Capabilities:
Check os version

Disassembly:
sub esp, 0x2d4
push ebx
push esi
push edi
push 0x20
pop edi
xor ebx, ebx
push 0x8001
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xbfffffff
cmp ax, 6
mov dword [0x434eec], eax
je 0x4033df
push ebx
call fcn.00406694
invalid

Function at 0x4033d5
Capabilities:
Encode data using xor

Disassembly:
ret

Function at 0x40420a
Capabilities:
Hash data using murmur3

Disassembly:
sub eax, 0xd4ba5ee2
call fcn.00406842
sub ecx, 0x20049764
rol esi, 0x19
xchg edx, eax
ror edx, 1
call fcn.00406a00
rol edi, 0x17
xor esi, ebp
xchg ebx, edx
ror ecx, 0xe
push cs

Function at 0x404231
Capabilities:
Hash data using murmur3

Disassembly:
push cs
call fcn.004056e4
rol esi, 0x15
call fcn.00404da3
ror esi, 0x15
call fcn.0040589f
rol ecx, 0xe
xchg ebx, edx
xor esi, ebp
ror edi, 0x17
rol edx, 1
xchg edx, eax
ror esi, 0x19
add ecx, 0x20049764
call fcn.004014c2
invalid
invalid

Function at 0x404266
Capabilities:
Hash data using murmur3

Disassembly:
loop 0x4042c6
mov edx, 0xf38150d4
push esp
invalid
leave

Function at 0x40427d
Capabilities:
Hash data using murmur3

Disassembly:
or ecx, ecx
neg edi
xor edi, 0xf2198701
inc edx
call fcn.00404da3
add eax, 0x468b9f58
call fcn.00406842
Function at 0x4057f1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f0
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e0
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405842
xor eax, eax
jmp 0x405869
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405869
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x40583e
call esi
pop esi
leave
ret 4

Function at 0x4058a3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x430250], 0x44
push eax
xor eax, eax
push 0x430250
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4058e2
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4058e6
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405984
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405d8b
mov edi, eax
cmp edi, 0xffffffff
je 0x4059c5
test byte [esp + 0x10], 1
push esi
je 0x4059a7
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4059ad
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4059b6
xor eax, eax
inc eax
jmp 0x4059c7
test byte [esp + 0x10], 4
jne 0x4059c5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8

Function at 0x4059cc
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
invalid

Function at 0x4059df
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
ret
Function at 0x405f06
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x4308e8], 0x55004e
mov dword [0x4308ec], 0x4c
mov edi, 0x400
mov ebp, 0x4308e8
je 0x405f5c
push 1
push 0
push esi
call fcn.00405db0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40607b
cmp eax, edi
jg 0x40607b
mov esi, 0x4310e8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40607b
cmp eax, edi
jg 0x40607b
push esi
push ebp
push str._ls_ls_r_n
push 0x4304e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x434ef4]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004062dc
push 4
push 0xc0000000
push esi
call fcn.00405db0
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x40607b
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406074
push edi
push esi
push ebp
call fcn.00405e33
test eax, eax
je 0x406074
push str._Rename__r_n
push esi
call fcn.00405d15
test eax, eax
jne 0x406012
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406047
add eax, 0xa
push 0x40a560
push eax
call fcn.00405d15
mov ebp, eax
test ebp, ebp
je 0x406043
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406034
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x40602e
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406049
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4304e8
push eax
call fcn.00405d6b
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405e62
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx

Function at 0x406080
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4060a3
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405f06
pop ecx
pop ecx
inc dword [0x434f90]
ret 8
Function at 0x401ae1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401b3a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401b3a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401b29
cmp esi, ecx
jae 0x401b3a
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x401b17
cmp esi, ecx
jae 0x401b3a
cmp word [esi], 0
je 0x401b3a
lfence
mov eax, esi
jmp 0x401b3c
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4026b7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x43900c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x14], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov edi, 0x80070003
call fcn.00401cda
lea ecx, [ebp - 0x14]
call fcn.00402e1c
mov esi, dword [ebp - 0x14]
test eax, eax
je 0x402811
and dword [ebp - 0xc], 0
or edx, 0xf003f
push ecx
push ecx
push edx
push ecx
push ecx
push esi
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x434048
mov dword [ebp - 8], 0x200
call fcn.0040253c
mov edi, eax
test edi, edi
jne 0x4027fc
mov eax, dword [ebp + 8]
sub eax, 1
je 0x4027b9
sub eax, 1
je 0x4027b5
sub eax, 1
je 0x402786
sub eax, 1
je 0x402777
sub eax, 3
je 0x402764
sub eax, 4
je 0x402752
mov edi, 0x8007065d
jmp 0x4027c9
push dword [ebx + 4]
lea ecx, [ebp - 0x10]
push dword [ebx]
push dword [ebp - 0x18]
call fcn.00402ceb
jmp 0x4027c7
push 7
push dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
push ebx
push dword [ebp - 0x18]
call fcn.00402d51
jmp 0x4027c7
push dword [ebx]
lea ecx, [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.00402cc1
jmp 0x4027c7
mov eax, ebx
neg eax
lfence
sbb eax, eax
and eax, dword [ebp + 0x10]
push eax
push ebx
push 3
push 0
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
jle 0x4027c9
movzx edi, di
or edi, 0x80070000
jmp 0x4027c9
push 2
jmp 0x4027bb
push 1
push ebx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
call fcn.00402d15
mov edi, eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
test eax, eax
je 0x4027f4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, eax
test ecx, ecx
jle 0x4027e8
movzx ecx, cx
or ecx, 0x80070000
xor eax, eax
mov dword [ebp - 8], 0x200
mov dword [ebp - 0xc], eax
test edi, edi
jne 0x4027ff
mov edi, ecx
jmp 0x4027ff
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], 0x434048
test eax, eax
je 0x402811
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
call fcn.004015b2
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c7be
leave
ret
Function at 0x402ab5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x43900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], eax
mov edi, ecx
xor ecx, ecx
lea eax, [ebp - 0xc]
push eax
push ecx
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
push eax
push ecx
push ebx
push dword [edi + 4]
mov dword [ebp - 8], ecx
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x402b00
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x402b53
mov eax, dword [ebp - 0xc]
xor ecx, ecx
shr eax, 1
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041d51c
cmp dword [ebp - 0xc], 0
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
je 0x402b4e
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push 0
push ebx
push dword [edi + 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x402b53
movzx esi, si
or esi, 0x80070000
jmp 0x402b53
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c7be
leave
ret 8

Function at 0x402b66
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x43900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
push ecx
push edx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], edx
push ecx
push edx
push eax
push dword [ebx + 4]
mov dword [ebp - 8], edx
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x402bb1
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x402c22
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x402c1b
shr edx, 1
add edx, 1
js 0x402c35
mov eax, dword [edi]
xor ecx, ecx
inc ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or ecx, eax
jge 0x402bdd
push edx
mov ecx, edi
lfence
call fcn.00402095
cmp dword [edi], 0
jne 0x402be9
mov esi, 0x8007000e
jmp 0x402c10
lea eax, [ebp - 0xc]
push eax
push dword [edi]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp - 0x10]
push dword [ebx + 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x402c10
movzx esi, si
or esi, 0x80070000
push 0xffffffffffffffff
mov ecx, edi
call fcn.004031a1
jmp 0x402c22
mov ecx, edi
call fcn.00401d26
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c7be
leave
ret 8
push 0x80070057
call fcn.00401a85
int3

Function at 0x403824
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
lea ebx, [ecx + 4]
push edi
mov edi, edx
test ebx, ebx
je 0x40385a
lea esi, [edi + 4]
test esi, esi
je 0x40385a
call fcn.00403784
test al, al
je 0x40385a
mov ecx, edi
call fcn.00403784
test al, al
je 0x40385a
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x40385c
xor al, al
pop edi
pop esi
pop ebx
ret