joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6727b8d0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], 0x672d8aa8
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._mark_section_writable

Function at 0x6727b930
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov eax, dword [0x6730f990]
test eax, eax
jle 0x6727ba33
mov edx, dword [0x6730f994]
xor ebx, ebx
mov ecx, dword [edx + 4]
cmp ecx, esi
ja 0x6727b961
mov edi, dword [edx + 8]
add ecx, dword [edi + 8]
cmp esi, ecx
jb 0x6727b9d6
add ebx, 1
add edx, 0xc
cmp ebx, eax
jne 0x6727b950
mov dword [esp], esi
call sym.___mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x6727ba5a
lea esi, [ebx + ebx*2]
mov ebx, dword [0x6730f994]
shl esi, 2
add ebx, esi
mov dword [ebx + 8], eax
mov dword [ebx], 0
call sym.__GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [ebx + 4], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [0x6730f994]
mov dword [esp + 8], 0x1c
mov eax, dword [eax + esi + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6727ba3a
mov eax, dword [ebp - 0x20]
cmp eax, 0x40
jne 0x6727b9e0
add dword [0x6730f990], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 4
je 0x6727b9cf
cmp eax, 0x80
je 0x6727b9cf
cmp eax, 8
je 0x6727b9cf
mov eax, dword [ebp - 0x28]
add esi, dword [0x6730f994]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6727b9cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
xor ebx, ebx
jmp 0x6727b96b
mov eax, dword [0x6730f994]
mov eax, dword [eax + esi + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
lea esi, [esi]

Function at 0x6727c180
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 0x6727c1b8
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x6727c1ae
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x6727c1ba
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x6727c1a0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x429004]
jne 0x40100a
repz ret
jmp fcn.0040130d

Function at 0x403f8b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x429004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402540
and dword [ebp - 0x14], 0
cmp dword [0x42badc], 0
mov dword [ebp - 0x18], eax
jne 0x40403e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4040e6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4040e6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42badc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42bae0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42bae4], eax
call edi
push eax
call esi
mov dword [0x42baec], eax
test eax, eax
je 0x40403e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42bae8], eax
mov eax, dword [0x42bae8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404097
cmp dword [0x42baec], ecx
je 0x404097
push eax
call esi
push dword [0x42baec]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404097
test ebx, ebx
je 0x404097
call edi
test eax, eax
je 0x40408e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40408e
test byte [ebp - 8], 1
jne 0x404097
or dword [ebp + 0x10], 0x200000
jmp 0x4040ca
mov eax, dword [0x42bae0]
cmp eax, dword [ebp - 0x18]
je 0x4040ca
push eax
call esi
test eax, eax
je 0x4040ca
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4040ca
mov eax, dword [0x42bae4]
cmp eax, dword [ebp - 0x18]
je 0x4040ca
push eax
call esi
test eax, eax
je 0x4040ca
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42badc]
call esi
test eax, eax
je 0x4040e6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4040e8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x409cd0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x429f60]
sub esp, 0x10
push esi
mov esi, dword [0x470ea8]
push edi
mov edi, dword [0x471184]
push eax
call fcn.00409bd0
add esp, 4
cmp dword [0x471184], 0x2f
jne 0x409d2d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
push esi
call fcn.00409c20
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409f70
Capabilities:
Get file size

Disassembly:
mov eax, dword [0x471184]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
xor esi, esi
nop
cmp eax, 0x8cf
jne 0x409f92
push 0
push 0
call edi
mov eax, dword [0x471184]
cmp esi, 0x845013
jne 0x409fa9
mov eax, dword [0x42ad80]
add eax, 0xa231
mov dword [0x471184], eax
cmp eax, 0x141
jne 0x409fc4
mov dword [0x42c020], 0xec58acac
mov dword [0x42c024], 0xffffffff
inc esi
cmp esi, 0xbbe2a98
jl 0x409f80
call fcn.00409d40
pop edi
xor eax, eax
pop esi
ret 0x10

Function at 0xcaebc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x32a000]
push edi
or ebp, 0xffffffff
jmp 0xcaebe2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xcaebe9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xcaebd8
mov eax, 1
add ebx, ebx
jne 0xcaebfb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xcaebf0
jne 0xcaec0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xcaebf0
xor ecx, ecx
sub eax, 3
jb 0xcaec20
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xcaec92
mov ebp, eax
add ebx, ebx
jne 0xcaec2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0xcaec38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0xcaec5c
inc ecx
add ebx, ebx
jne 0xcaec48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xcaec3d
jne 0xcaec59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xcaec3d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xcaec7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xcaec6d
jmp 0xcaebde
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xcaec7c
add edi, ecx
jmp 0xcaebde
pop esi
mov edi, esi
mov ecx, 0x70f4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xcaec9a
cmp byte [edi], 0x28
jne 0xcaec9a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xcaec9f
lea edi, [esi + 0x8aa000]
mov eax, dword [edi]
or eax, eax
je 0xcaed17
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8b0c58]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8b0d98]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xcaeccc
mov ecx, edi
jns 0xcaecfb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8b0d9c]
or eax, eax
je 0xcaed11
mov dword [ebx], eax
add ebx, 4
jmp 0xcaece9
call dword [esi + 0x8b0dac]
mov ebp, dword [esi + 0x8b0da0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xcaed4b
sub esp, 0xffffff80
jmp 0x4ea001
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x40229a
Capabilities:
Terminate process

Disassembly:
mov edx, eax
push edi
push dword [0x403716]
call dword [sym.imp.pdh.dll_PdhCloseLog]
mov eax, 5
add eax, 5
inc eax
xor edi, edi
xor esi, esi
test eax, 0xb
jne 0x4022c9
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
mov dword [0x40164f], eax
ret
Function at 0x435080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
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.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
test eax, eax
je 0x4350dd
push eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4350dd
push edi
push ebx
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4350ca
cmp esi, edx
jae 0x4350dd
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4350b8
cmp esi, edx
jae 0x4350dd
cmp word [esi], 0
je 0x4350dd
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
Function at 0x437e20
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x441004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x3c
xor ebx, ebx
mov dword [ebp - 0x218], edx
lea eax, [ebp - 0x254]
mov edi, ecx
push ebx
push eax
call sub.msvcrt.dll_memset
mov eax, dword [0x441180]
add esp, 0xc
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4422c4]
mov ecx, 0x441180
call esi
push 0x104
lea esi, [eax + 0x10]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], esi
push eax
push ebx
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
test eax, eax
jne 0x437ef5
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x437ea0
movzx ebx, bx
or ebx, 0x80070000
lea edx, [ebp - 0x214]
mov dword [ebp - 0x214], 0
mov ecx, ebx
call fcn.00435760
cmp dword [0x441604], 0
je 0x437fd9
push 0x42ce9c
push dword [ebp - 0x214]
push ebx
push 0x42b728
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x18
cmp dword [0x441604], 0
je 0x437fd9
push 0x6b
jmp 0x437fc3
mov edx, dword [ebp - 0x218]
lea eax, [ebp - 0x214]
push eax
add edx, 4
lea ecx, [edi - 1]
call fcn.00438010
mov esi, dword [ebp - 0x214]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x254]
push eax
mov dword [ebp - 0x254], 0x3c
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x248], 0x42cec8
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], 1
call dword [sym.imp.ext_ms_win_shell_shell32_l1_2_0.dll_ShellExecuteExW]
test eax, eax
jne 0x437fd9
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x437f7b
movzx ebx, bx
or ebx, 0x80070000
lea edx, [ebp - 0x214]
mov dword [ebp - 0x214], 0
mov ecx, ebx
call fcn.00435760
cmp dword [0x441604], 0
je 0x437fd9
push 0x42ced4
push dword [ebp - 0x214]
push ebx
push 0x42b728
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x18
cmp dword [0x441604], 0
je 0x437fd9
push 0x78
push 0x42cdb8
push 0x42b77c
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x14
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x437ffd
mov edi, dword [esi]
push esi
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x4422c4]
mov ecx, edi
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043ffc0
mov esp, ebp
pop ebp
ret
Function at 0x438b50
Capabilities:
Get token membership
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x441004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x438c97
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push 0
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
push dword [ebp - 0x10]
neg eax
sbb eax, eax
and dword [ebp - 0x14], eax
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
cmp dword [ebp - 0x14], 0
je 0x438c97
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 4
push 0x42d384
push 0x42d3a0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
mov esi, eax
test esi, esi
jle 0x438bfc
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x438c67
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov ecx, esi
call fcn.00435760
cmp dword [0x441604], 0
je 0x438c56
push 0x42d410
push dword [ebp - 0x10]
push esi
push 0x42b728
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x18
cmp dword [0x441604], 0
je 0x438c56
push 0xec
push 0x42cdb8
push 0x42b77c
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x14
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043ffc0
mov esp, ebp
pop ebp
ret
cmp dword [0x441604], 0
je 0x438c56
push 0x42d4dc
push 0x42d4e4
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x10
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043ffc0
mov esp, ebp
pop ebp
ret
push 0x42cf74
push 0xc
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0xc
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x10]
mov ecx, 0x80070005
call fcn.00435760
cmp dword [0x441604], 0
je 0x438d07
push 0x42cf98
push dword [ebp - 0x10]
push 0x80070005
push 0x42b728
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x18
cmp dword [0x441604], 0
je 0x438d07
push 0xe1
push 0x42cdb8
push 0x42b77c
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x14
mov eax, 0x80070005
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043ffc0
mov esp, ebp
pop ebp
ret
Function at 0x438d20
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0xff
push eax
push 4
push 0x42d4fc
mov edi, ecx
push 0
push edi
call dword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
mov esi, eax
test esi, esi
jle 0x438d5a
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x438dab
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00435760
cmp dword [0x441604], 0
je 0x438ea9
push 0x42d508
push dword [ebp - 4]
push esi
push 0x42b728
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x18
cmp dword [0x441604], 0
je 0x438ea9
push 0x101
jmp 0x438e93
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 5
push eax
push 4
push 0x42d570
push 0
push edi
call dword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
mov esi, eax
test esi, esi
jle 0x438dd9
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x438e27
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00435760
cmp dword [0x441604], 0
je 0x438ea9
push 0x42d580
push dword [ebp - 4]
push esi
push 0x42b728
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x18
cmp dword [0x441604], 0
je 0x438ea9
push 0x10b
jmp 0x438e93
push 0x12
push 0x42d5e8
push 1
push 0x42d5fc
push 0
push edi
call dword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
mov esi, eax
test esi, esi
jle 0x438e4f
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x438ea9
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00435760
cmp dword [0x441604], 0
je 0x438ea9
push 0x42d610
push dword [ebp - 4]
push esi
push 0x42b728
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x18
cmp dword [0x441604], 0
je 0x438ea9
push 0x114
push 0x42cdb8
push 0x42b77c
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x14
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x438ec0
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x441004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
mov word [ebp - 8], 0x500
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x439068
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push 0
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
push dword [ebp - 0x10]
neg eax
sbb eax, eax
and dword [ebp - 0x14], eax
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
cmp dword [ebp - 0x14], 0
je 0x439068
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push 0x42d688
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jle 0x438f74
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x438fc5
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov ecx, esi
call fcn.00435760
cmp dword [0x441604], 0
je 0x4390d6
push 0x42d700
push dword [ebp - 0x10]
push esi
push 0x42b728
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x18
cmp dword [0x441604], 0
je 0x4390d6
push 0x130
jmp 0x4390c0
cmp dword [ebp - 0x1c], 2
jne 0x438fee
cmp dword [0x441604], 0
je 0x4390d6
push 0x42d810
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0xc
jmp 0x4390d6
mov ecx, dword [ebp - 0x18]
call fcn.00438d20
mov esi, eax
test esi, esi
jns 0x439048
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov ecx, esi
call fcn.00435760
cmp dword [0x441604], 0
je 0x4390d6
push 0x42d88c
push dword [ebp - 0x10]
push esi
push 0x42b728
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x18
cmp dword [0x441604], 0
je 0x4390d6
push 0x138
jmp 0x4390c0
cmp dword [0x441604], 0
je 0x4390d6
push 0x42d8a8
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0xc
jmp 0x4390d6
push 0x42cf74
push 0xc
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0xc
mov dword [ebp - 0x10], 0
mov esi, 0x80070005
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.00435760
cmp dword [0x441604], 0
je 0x4390d6
push 0x42cf98
push dword [ebp - 0x10]
push esi
push 0x42b728
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x18
cmp dword [0x441604], 0
je 0x4390d6
push 0x124
push 0x42cdb8
push 0x42b77c
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x14
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4390e4
push eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043ffc0
mov esp, ebp
pop ebp
ret
Function at 0x439100
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x441004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
mov word [ebp - 8], 0x500
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4392a8
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push 0
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
push dword [ebp - 0x10]
neg eax
sbb eax, eax
and dword [ebp - 0x14], eax
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
cmp dword [ebp - 0x14], 0
je 0x4392a8
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push 0x42d8c8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jle 0x4391b4
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x439205
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov ecx, esi
call fcn.00435760
cmp dword [0x441604], 0
je 0x439316
push 0x42d920
push dword [ebp - 0x10]
push esi
push 0x42b728
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x18
cmp dword [0x441604], 0
je 0x439316
push 0x15c
jmp 0x439300
cmp dword [ebp - 0x1c], 2
jne 0x43922e
cmp dword [0x441604], 0
je 0x439316
push 0x42da20
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0xc
jmp 0x439316
mov ecx, dword [ebp - 0x18]
call fcn.00438d20
mov esi, eax
test esi, esi
jns 0x439288
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov ecx, esi
call fcn.00435760
cmp dword [0x441604], 0
je 0x439316
push 0x42d88c
push dword [ebp - 0x10]
push esi
push 0x42b728
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x18
cmp dword [0x441604], 0
je 0x439316
push 0x164
jmp 0x439300
cmp dword [0x441604], 0
je 0x439316
push 0x42d8a8
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0xc
jmp 0x439316
push 0x42cf74
push 0xc
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0xc
mov dword [ebp - 0x10], 0
mov esi, 0x80070005
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.00435760
cmp dword [0x441604], 0
je 0x439316
push 0x42cf98
push dword [ebp - 0x10]
push esi
push 0x42b728
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x18
cmp dword [0x441604], 0
je 0x439316
push 0x150
push 0x42cdb8
push 0x42b77c
push 7
push 0xfffffffffffffff4
call fcn.004357e0
add esp, 0x14
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x439324
push eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043ffc0
mov esp, ebp
pop ebp
ret