joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4337e5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x433807
cmp dword [edi + 0x3c], 0
jne 0x433807
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0043c1be
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00433834
pop edi
pop esi
pop ebx
ret 8

Function at 0x434e3b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x434e73
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00437589
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00437561
jmp 0x434e7f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x43643f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x436481
call fcn.0043c1be
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x436481
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x436478
xor eax, eax
jmp 0x436489
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0043648f
pop edi
pop esi
pop ebx
ret 4

Function at 0x43c8c1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x43c8ef
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43c90d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043c827
jmp 0x43c90d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43c90d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0043c827
test edi, edi
mov eax, edi
jne 0x43c8f7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1001f55
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100e008]
push ebx
xor ebx, ebx
cmp byte [0x10121bc], bl
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x214], ebx
je 0x1001f94
add esi, esi
jmp 0x1001fca
push esi
call dword [sym.imp.msvcrt.dll_malloc]
cmp eax, ebx
pop ecx
mov dword [ebp - 0x214], eax
je 0x1001fb8
push ebx
push ebx
push esi
push eax
push esi
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1001fc2
mov dword [ebp - 0x210], 8
cmp dword [ebp - 0x210], ebx
jne 0x1002028
cmp byte [0x10121bc], bl
jne 0x1001fd8
mov edi, dword [ebp - 0x214]
push ebx
push 0x100edc8
push esi
push edi
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1002028
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xa
lea ecx, [ebp - 0x20c]
push ecx
push eax
mov dword [ebp - 0x210], eax
call dword [sym.imp.msvcrt.dll__itow]
push 0x55
push 7
call fcn.01004a3e
lea eax, [ebp - 0x20c]
push eax
push 0x73
push 7
call fcn.01004a3e
add esp, 0x20
cmp dword [ebp - 0x214], ebx
pop edi
pop esi
pop ebx
je 0x1002040
push dword [ebp - 0x214]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
call fcn.01005e07
leave
ret 0xc
Function at 0x1003361
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x1f4
lea eax, [ebp - 0x24]
push eax
call fcn.01003305
mov ebx, eax
test ebx, ebx
je 0x10033b3
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
push ebx
push 0x100efe8
call esi
test eax, eax
je 0x10033d6
xor edi, edi
push ebx
inc edi
push 0x100f008
mov dword [0x1011c30], edi
call esi
test eax, eax
je 0x10033d6
jmp 0x10033d0
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x100efe8
call esi
xor edi, edi
inc edi
push 0x100f008
mov dword [0x1011c30], edi
call esi
mov dword [0x1011c34], edi
cmp dword [0x1011c30], 0
je 0x1003455
cmp dword [0x1011c34], 0
je 0x1003455
xor eax, eax
mov esi, 0x100f030
mov ecx, 0xb00
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, 0x100f020
mov dword [0x100f024], eax
mov dword [0x100f020], eax
mov eax, 0x100f000
mov edx, 0x100f028
mov dword [0x100f004], eax
mov dword [0x100f000], eax
mov ecx, edx
mov dword [0x100f028], edx
mov eax, esi
mov dword [eax + 4], eax
mov dword [eax], eax
mov dword [eax + 4], ecx
mov dword [eax], edx
mov dword [ecx], eax
mov ecx, eax
add eax, 0x2c
cmp eax, 0x1011c30
jl 0x1003425
and dword [0x1011c38], 0
and dword [0x1011c3c], 0
mov dword [0x100f02c], ecx
xor eax, eax
jmp 0x100345b
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100476e
Capabilities:
Get domain controller name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
cmp byte [ebp + 8], bl
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
je 0x1004798
push 0x1010
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
jmp 0x10047b6
mov esi, dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
push 0x50
push ebx
push ebx
push ebx
push ebx
call esi
cmp eax, ebx
je 0x10047ba
lea eax, [ebp - 4]
push eax
push 0x10
push ebx
push ebx
push ebx
push ebx
call esi
cmp eax, ebx
jne 0x10047d2
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x10047df
mov eax, dword [eax]
cmp eax, ebx
je 0x10047d2
add eax, 4
push eax
call fcn.0100c497
mov edi, eax
cmp dword [ebp - 4], ebx
je 0x10047df
push dword [ebp - 4]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10048c7
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x201c
call fcn.01006110
mov eax, dword [0x100e008]
mov dword [ebp - 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
push esi
mov esi, dword [ebp + 0xc]
add eax, 0x40
cmp dword [ebp + 8], eax
push edi
mov edi, dword [ebp + 0x10]
jne 0x10048f7
push 0xfffffffffffffff4
jmp 0x10048f9
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push edi
push esi
mov dword [ebp - 0x2008], eax
lea eax, [ebp - 0x2004]
push 0x1000
push eax
call dword [sym.imp.msvcrt.dll__vsnwprintf]
lea eax, [ebp - 0x2004]
xor esi, esi
push eax
mov word [ebp - 6], si
call dword [sym.imp.msvcrt.dll_wcslen]
add esp, 0x14
push dword [ebp - 0x2008]
mov dword [ebp - 0x200c], eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
jne 0x1004983
lea eax, [ebp - 0x201c]
push eax
push dword [ebp - 0x2008]
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x1004983
push esi
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 0x200c]
lea eax, [ebp - 0x2004]
push eax
push dword [ebp - 0x2008]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x1004a09
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push ebx
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x2004]
push eax
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
call ebx
push eax
mov dword [ebp - 0x2014], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
mov dword [ebp - 0x2010], eax
je 0x1004a02
push esi
push esi
push dword [ebp - 0x2014]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x2004]
push eax
push esi
call edi
push eax
call ebx
push esi
lea eax, [ebp - 0x2018]
push eax
mov eax, dword [ebp - 0x2014]
dec eax
push eax
push dword [ebp - 0x2010]
push dword [ebp - 0x2008]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x2010]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x1004a08
mov dword [ebp - 0x200c], esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x200c]
pop edi
pop esi
call fcn.01005e07
leave
ret
Function at 0x1005e07
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100e008]
jne 0x1005e18
test ecx, 0xffff0000
jne 0x1005e18
ret
jmp fcn.01005e22

Function at 0x1005f07
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x10015b8
call fcn.01006094
cmp word [0x1000000], 0x5a4d
jne 0x1005f46
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x1005f46
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x1005f5f
cmp ecx, 0x20b
je 0x1005f4c
and dword [ebp - 0x1c], 0
jmp 0x1005f76
cmp dword [eax + 0x1000084], 0xe
jbe 0x1005f46
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x1005f70
cmp dword [eax + 0x1000074], 0xe
jbe 0x1005f46
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x101226c], 0xffffffff
or dword [0x1012270], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1011f88]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1011f84]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1012274], eax
call fcn.0100618e
cmp dword [0x100e010], 0
jne 0x1005fd3
push fcn.0100618e
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01006177
push 0x1001288
push 0x1001284
call sub.msvcrt.dll__initterm
mov eax, dword [0x1011f80]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1011f7c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x1001280
push 0x1001278
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0100553a
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], 0
jne 0x100604b
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1006080
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010060cf
ret
Function at 0x100a907
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x12c
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x100e008]
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
mov dword [ebp - 0x124], ecx
xor ecx, ecx
push ebx
inc ecx
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x80000000
push eax
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x114], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x110], esi
je 0x100a9d4
lea eax, [ebp - 0x12c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x100a98e
mov dword [ebp - 0x108], ebx
jmp 0x100a9c4
xor eax, eax
cmp byte [0x10121bc], bl
push edi
setne al
push 2
push ebx
inc eax
mov edi, eax
xor eax, eax
mov ecx, edi
neg ecx
adc eax, ebx
neg eax
push eax
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
call esi
test eax, eax
jne 0x100aae8
mov dword [ebp - 0x108], ebx
pop edi
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x100a9da
mov dword [ebp - 0x108], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x108]
pop esi
pop ebx
call fcn.01005e07
leave
ret 8
cmp ax, 0xd
je 0x100aa39
add dword [ebp - 0x114], edi
push 0xffffffffffffffff
mov dword [ebp - 0x118], eax
push 0xfffffffffffffffe
xor eax, eax
push eax
push edi
call sub.ntdll.dll__allmul
push 1
push ebx
push edx
push eax
push dword [ebp - 0x110]
call esi
test eax, eax
jne 0x100aae8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x83
jne 0x100a9bd
mov dword [ebp - 0x11c], 1
cmp word [ebp - 0x118], 0x23
jne 0x100aa81
mov eax, dword [ebp - 0x11c]
neg eax
sbb eax, eax
not eax
and eax, edi
add eax, dword [ebp - 0x114]
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x118], ebx
jmp 0x100aabc
mov eax, dword [ebp - 0x104]
jmp 0x100aa75
movzx ax, byte [ebp - 0x104]
cmp ax, 0xa
jne 0x100a9ee
jmp 0x100aa39
cmp word [ebp - 0x118], 0x20
jne 0x100aaa1
mov eax, dword [ebp - 0x11c]
neg eax
sbb eax, eax
not eax
and eax, edi
add dword [ebp - 0x114], eax
jmp 0x100aac2
cmp word [ebp - 0x118], bx
jne 0x100ab3a
mov eax, dword [ebp - 0x11c]
neg eax
sbb eax, eax
not eax
and eax, edi
add dword [ebp - 0x120], eax
cmp dword [ebp - 0x11c], ebx
jne 0x100ab3a
push 0xffffffffffffffff
push 0xfffffffffffffffe
xor eax, eax
push eax
push edi
call sub.ntdll.dll__allmul
push 1
push ebx
push edx
push eax
push dword [ebp - 0x110]
call esi
test eax, eax
je 0x100ab29
push ebx
lea eax, [ebp - 0x10c]
push eax
push edi
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100a9bd
cmp dword [ebp - 0x10c], edi
jne 0x100a9bd
cmp byte [0x10121bc], bl
jne 0x100aa65
jmp 0x100aa6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x83
jne 0x100a9bd
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ebp - 0x128]
xor eax, eax
sub ecx, dword [ebp - 0x120]
sbb edx, eax
mov eax, dword [ebp - 0x124]
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x100a9c3
Function at 0x100c272
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 3
pop edi
lea eax, [esi + 3]
cdq
mov ecx, edi
idiv ecx
and dword [ebp - 4], 0
add eax, esi
lea eax, [eax + eax + 0xc]
push eax
call fcn.0100c5a4
mov ebx, eax
mov eax, esi
cdq
mov ecx, edi
idiv ecx
mov eax, edi
mov dword [ebp - 0x10], ebx
sub eax, edx
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x100c2b7
mov ecx, dword [ebp + 8]
jmp 0x100c2f8
add eax, esi
push eax
call fcn.0100c5a4
mov ecx, esi
mov esi, dword [ebp + 8]
mov edi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x100c2f2
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
lea eax, [eax + edx - 1]
mov byte [eax + ecx], 0
dec ecx
jne 0x100c2eb
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
and dword [ebp + 0xc], 0
test esi, esi
jle 0x100c386
push 3
xor edx, edx
pop edi
lea eax, [esi - 1]
div edi
mov edi, eax
inc edi
lea eax, [edi + edi*2]
mov dword [ebp + 0xc], eax
movzx eax, byte [ecx]
shr eax, 2
mov ax, word [eax*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [ebx], ax
movzx edx, byte [ecx + 1]
xor eax, eax
mov al, byte [ecx]
shr edx, 4
inc ebx
inc ebx
add ecx, 3
and eax, 3
shl eax, 4
or eax, edx
mov ax, word [eax*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [ebx], ax
movzx edx, byte [ecx - 1]
xor eax, eax
mov al, byte [ecx - 2]
inc ebx
shr edx, 6
inc ebx
and eax, 0xf
shl eax, 2
or eax, edx
mov ax, word [eax*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [ebx], ax
xor eax, eax
mov al, byte [ecx - 1]
inc ebx
inc ebx
and eax, 0x3f
mov ax, word [eax*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [ebx], ax
inc ebx
inc ebx
dec edi
jne 0x100c317
lea eax, [esi + 1]
cmp dword [ebp + 0xc], eax
je 0x100c39c
add esi, 2
cmp dword [ebp + 0xc], esi
jne 0x100c3a2
mov word [ebx - 4], 0x3d
mov word [ebx - 2], 0x3d
and word [ebx], 0
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x100c3b7
push dword [ebp - 4]
call fcn.0100c41a
mov eax, dword [ebp - 0x10]
leave
ret 8

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x6cc87b8d
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x7e620456
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401f80
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
lea ebx, [edi + 0x10]
push ebx
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
mov eax, dword [edi]
dec dword [edi + 0x14]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0x4012c8
push 0x80000002
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x402022
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x402022
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push 0x4012b0
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, 2
je 0x405371
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x402036
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [ebp - 4]
test eax, eax
je 0x402041
push eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
jne 0x4020a8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push 0x40130c
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x4020a8
cmp dword [ebp - 0x10], 1
jne 0x4020a8
cmp dword [ebp - 0x1c], 4
jne 0x4020a8
cmp dword [edi + 0x14], eax
jne 0x4020a8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [edi + 4]
push dword [eax + 0x14]
call dword [sym.imp.api_ms_win_core_sidebyside_l1_1_0.dll_ActivateActCtx]
test eax, eax
je 0x4020a8
mov eax, dword [edi + 4]
push dword [eax + 8]
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
mov eax, dword [edi + 4]
mov dword [eax + 8], esi
push dword [ebp - 0xc]
push esi
call dword [sym.imp.api_ms_win_core_sidebyside_l1_1_0.dll_DeactivateActCtx]
push ebx
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
test eax, eax
je 0x4020c0
push eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
xor esi, esi
jmp 0x402025
Function at 0x403160
Capabilities:
Access pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
je 0x4031ad
push dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
mov eax, ecx
push dword [esi + 0x34]
mov edx, dword [esi + 0x18]
shr eax, 5
and eax, 1
push eax
mov eax, ecx
shr ecx, 1
shr eax, 4
and ecx, 1
and eax, 1
push eax
push ecx
push ecx
lea eax, [esi + 0x24]
push eax
push dword [esi + 0x20]
push dword [esi + 0x1c]
call fcn.00404240
test eax, eax
je 0x4032a7
mov eax, dword [esi + 0x3c]
test eax, eax
jne 0x403293
mov eax, dword fs:[0x30]
push dword [eax + 8]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x4031d4
push dword [eax + 0x64]
call dword [sym.imp.RPCRT4.dll_RpcMgmtSetServerStackSize]
cmp dword [esi + 0x40], 1
je 0x40329c
cmp dword [esi + 0x44], 0
jne 0x405943
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x40327d
mov eax, dword [esi + 0x50]
test eax, eax
je 0x40320b
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 4
push eax
push 8
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
cmp dword [esi + 0x54], 0
je 0x403235
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
push 6
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
push 0
push 1
push 0x401428
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_SetProtectedPolicy]
push 0
push 0
push 1
push 0
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapSetInformation]
test byte [esi + 0x58], 4
jne 0x405957
cmp dword [0x4073a0], 0
jbe 0x403264
push 0
push 0
push 4
push 0
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapSetInformation]
call fcn.004032b0
test byte [esi + 0x58], 8
jne 0x405977
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push 4
push eax
push 2
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
jmp 0x4031f3
shl eax, 0xa
push eax
jmp 0x4031ce
call dword [sym.imp.RPCRT4.dll_I_RpcServerDisableExceptionFilter]
jmp 0x4031de
xor eax, eax
jmp 0x403278
push 1
push 0
push 1
call dword [sym.imp.ntdll.dll_RtlSetProcessIsCritical]
add esp, 0xc
jmp 0x4031e8
mov eax, dword fs:[0x30]
mov ecx, dword [eax + 0x240]
mov eax, dword fs:[0x30]
or ecx, 1
mov dword [eax + 0x240], ecx
jmp 0x40324d
xor eax, eax
mov dword [ebp - 0x14], 4
or eax, 1
push 8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0x34
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtSetInformationProcess]
test eax, eax
js 0x4032a7
jmp 0x403273
Function at 0x40525f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
lea eax, [ebp - 4]
push esi
push eax
push esi
mov ebx, ecx
call dword [sym.imp.ntdll.dll_RtlGetDeviceFamilyInfoEnum]
cmp dword [ebp - 4], 3
je 0x405290
cmp dword [ebp - 4], 9
je 0x405290
cmp dword [ebp - 4], 0xd
je 0x405290
xor ebx, ebx
inc ebx
jmp 0x4052e8
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push 0x4018f0
push 0x80000002
call sub.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW
test eax, eax
jne 0x4052e8
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x401948
push dword [ebp - 8]
call sub.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW
test eax, eax
jne 0x4052e0
cmp dword [ebp - 0x10], 4
jne 0x4052e0
xor ebx, ebx
cmp dword [ebp - 0x14], ebx
setne bl
push dword [ebp - 8]
call sub.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret