joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014d40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x1018e600]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
lea eax, [esp + 0x10]
push eax
mov esi, ecx
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareHewlett_PackardCSIBootstrap
push reloc.OLEAUT32.dll_SysReAllocString
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10014de6
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov esi, dword [esi]
mov ecx, dword [esp + 8]
push 0x10
lea eax, [esp + 0x18]
push eax
push 3
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10014dc8
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push str.SetRebootFlag_failed_creating_registry_value._n
call fcn.10003a30
call sym.BootstrapLibrary.dll_public:_static_bool___cdecl_CBootstrapLog::LogEntry_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t____
add esp, 4
xor bl, bl
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1010d913
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push str.SetRebootFlag_failed_creating_registry_key._n
call fcn.10003a30
call sym.BootstrapLibrary.dll_public:_static_bool___cdecl_CBootstrapLog::LogEntry_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t____
mov ecx, dword [esp + 0x28]
add esp, 4
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.1010d913
mov esp, ebp
pop ebp
ret
Function at 0x10015020
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1018e600]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10015057
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010d913
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x18]
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10015047
push 0x80040002
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.1010d913
mov esp, ebp
pop ebp
ret

Function at 0x100259f7
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x10025a32
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x10025a19
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x10025a2a
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x10025a34
inc edi
add eax, 0x28
cmp edi, esi
jb 0x10025a0f
xor eax, eax
pop edi
pop esi
ret

Function at 0x10025bb6
Capabilities:
Enumerate pe sections

Disassembly:
add edi, eax
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
cmp byte [eax], bl
mov dword [ebp - 0x44], esi
call fcn.100259b7
xchg ch, ch
leave
out dx, eax
movzx eax, word [edi + 6]
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
invalid
invalid
dec esp
invalid

Function at 0x10025c33
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
mov cl, 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.100259b7
loopne 0x10025ccd
mov al, byte [0xa8458d81]
push eax
call fcn.100259c7
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.1002597c
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
inc ebp
clc
inc ebp
enter 0xffffffffffffc666, 0x45
leave
jb 0x10025c9b
inc ebp
retf 0xc67f
Function at 0x100260f1
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [ebp + 8], ebx
je 0x100260fa
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x10026104
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x100260e6

Function at 0x10026117
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1002608e
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x100260ac
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
test bh, al
clc
add byte [eax], al
invalid
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
invalid
invalid
push dword [ebx]
ror byte [ecx - 0x3e7443bb], cl
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1002610a
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
invalid
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je fcn.100260f1
or byte [eax + ecx], 1
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x10026070
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x10026157
dec eax
je 0x1002614e
sub eax, 3
je 0x10026145
mov dword [ebp - 4], 0x40
jmp 0x10026174
mov dword [ebp - 4], 4
jmp 0x1002615a
mov dword [ebp - 4], 0x20
jmp 0x1002615a
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x100261a6
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x10026126
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
js fcn.100261b7
add edi, esi
call fcn.100259b7
mov eax, dword [0xff2ab18c]
jne 0x100261b1
push 1
push esi
call edi
mov eax, esi
jmp 0x100261b2
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx

Function at 0x10026e04
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
invalid
invalid
cmp dword [ebp - 0x700], 5
jge 0x10026e0d
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x10026db7
call fcn.100259b7
or ecx, ecx
pop edi
das
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
clc
invalid
dec dword [ecx - 0x3a]
test esp, ebx
clc
invalid
dec dword [eax - 0x3a]
test ebp, ebx
clc
invalid
call [esi + eax*8 - 0x7b]
fdivp st(0)
invalid
call dword [ecx - 0x3a]
invalid
Function at 0x1002c96c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x1002c9b3
call fcn.10021af5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1002c9b3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x1002c9cf
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.1002c46c
mov esi, eax
test edi, edi
je 0x1002c9cd
test ebx, ebx
je 0x1002c9cd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1002cdae
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x1013474e
call fcn.10110cdc
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x1002cdd3
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x1002ce25
call fcn.1001f031
push eax
lea ecx, [ebp - 0x10]
call fcn.100044d0
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10110e32
push eax
call fcn.10001000
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.10001160
mov eax, esi
call fcn.10110db4
ret 8

Function at 0x1002ee0d
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.1002eab1
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x1002ee57
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1001ef32
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.1001ef03
jmp 0x1002ee62
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.1002ceb9
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1002ee68
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.1002ca78
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x1002eea5
call fcn.1002eab1
mov dword [esi + 0xc], 1
jmp 0x1002eeaa
call fcn.1002eab1
cmp dword [esi], 0
je 0x1002eef3
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x1002eecb
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1001ef32
jmp 0x1002eedd
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.10004610
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.1001ef03
jmp 0x1002ef17
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x1002ef17
push dword [esi]
push dword [ebp + 8]
call fcn.1002ceb9
pop esi
pop ebp
ret 0xc

Function at 0x10031066
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1018e600]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1003109b
xor eax, eax
jmp 0x100310ee
lea eax, [ebp - 0x210]
push eax
call fcn.1011079d
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x100310cc
push 0x101676e4
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.1010ff29
add esp, 0xc
test eax, eax
jne 0x10031097
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.1010ff29
add esp, 0xc
test eax, eax
jne 0x10031097
lea eax, [ebp - 0x210]
push eax
call fcn.10023d01
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1010d913
leave
ret

Function at 0x10035099
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.10021af5
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x100350d2
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.10034cd5
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x10035130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x10035154
cmp dword [edi + 0x74], 0
jne 0x10035154
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.10021af5
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.100350f1
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1009b6b9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x1009b6d3
call fcn.10021af5
mov esi, dword [eax + 0xc]
push dword [0x10193fcc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1009b6f1
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x1009b6e9
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x1009b71e
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x1009b6eb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.1009b5e7
mov esi, eax
jmp 0x1009b710

Function at 0x100eb6a5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.1002aeff
call fcn.1002252a
cmp eax, esi
pop esi
jne 0x100eb6c1
mov ecx, 0x10192120
jmp fcn.10031cd4
ret

Function at 0x100ef045
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x100ef05d
mov edi, dword [esi + 0xc]
jmp 0x100ef09d
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x100ef076
call fcn.1002d5d6
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x100ef08b
call fcn.1002d5d6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x100ef09d
call fcn.1002d5d6
call fcn.10021af5
cmp dword [eax + 0x3c], 0
je 0x100ef0b2
push edi
mov ecx, ebx
call fcn.100ede6f
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.100eef5f
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x100ef0d0
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x100ef0dc
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x1010d913
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1018e600]
jne 0x1010d91d
repz ret
jmp fcn.101159d4

Function at 0x1012524f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1018e600]
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.10117483
and dword [ebp - 0x14], 0
cmp dword [0x10196538], 0
mov dword [ebp - 0x18], eax
jne 0x10125302
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x101253aa
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1016354c
push ebx
call edi
test eax, eax
je 0x101253aa
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x1016353c
push ebx
mov dword [0x10196538], eax
call edi
push eax
call esi
push 0x10163528
push ebx
mov dword [0x1019653c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10196540], eax
call edi
push eax
call esi
mov dword [0x10196548], eax
test eax, eax
je 0x10125302
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10196544], eax
mov eax, dword [0x10196544]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1012535b
cmp dword [0x10196548], ecx
je 0x1012535b
push eax
call esi
push dword [0x10196548]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1012535b
test ebx, ebx
je 0x1012535b
call edi
test eax, eax
je 0x10125352
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10125352
test byte [ebp - 8], 1
jne 0x1012535b
or dword [ebp + 0x10], 0x200000
jmp 0x1012538e
mov eax, dword [0x1019653c]
cmp eax, dword [ebp - 0x18]
je 0x1012538e
push eax
call esi
test eax, eax
je 0x1012538e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1012538e
mov eax, dword [0x10196540]
cmp eax, dword [ebp - 0x18]
je 0x1012538e
push eax
call esi
test eax, eax
je 0x1012538e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10196538]
call esi
test eax, eax
je 0x101253aa
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x101253ac
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1010d913
leave
ret
Function at 0x535000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push eax
push ecx
push edx
push ebx
push ebp
push esi
push edi
call 0x53500c
pop ecx
sub ecx, 0x8d00c
mov edx, 0
push ecx
Function at 0x100037f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x10071290]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x40
push eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x264]
push eax
mov dword [ebp - 0x220], 0
call fcn.10049a70
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20e]
push edx
mov word [ebp - 0x210], cx
call fcn.10049a70
lea eax, [ebp - 0x210]
add esp, 0x18
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10003860
sub eax, edx
lea ecx, [ebp - 0x220]
push ecx
xor ecx, ecx
sar eax, 1
lea edx, [ebp - 0x268]
push edx
cmp ecx, eax
sbb edx, edx
lea eax, [ebp - 0x210]
and edx, eax
push edx
push ecx
push ecx
push ecx
push ecx
push ecx
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100038ab
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10043fd1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x220]
xor ecx, ebp
call fcn.10043fd1
mov esp, ebp
pop ebp
ret

Function at 0x10003ac0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [eax]
xor edx, edx
sub esp, 8
cmp eax, edx
jne 0x10003ad4
xor al, al
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 0x18], 8
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
jb 0x10003ae5
mov ecx, dword [ecx + 4]
jmp 0x10003ae8
add ecx, 4
push esi
lea esi, [ebp - 4]
push esi
push edx
lea esi, [ebp - 8]
push esi
push edx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10003b10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [eax]
test eax, eax
jne 0x10003b1f
xor al, al
pop ebp
ret 4
cmp dword [ecx + 0x18], 8
jb 0x10003b2a
mov ecx, dword [ecx + 4]
jmp 0x10003b2d
add ecx, 4
push 4
lea edx, [ebp + 8]
push edx
push 4
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
pop ebp
ret 4

Function at 0x10003b50
Capabilities:
Set registry value

Disassembly:
mov edx, dword [edx]
test edx, edx
jne 0x10003b59
xor al, al
ret
cmp dword [eax + 0x18], 8
push esi
mov esi, dword [eax + 0x14]
lea esi, [esi + esi + 2]
jb 0x10003b6c
mov eax, dword [eax + 4]
jmp 0x10003b6f
add eax, 4
cmp dword [ecx + 0x18], 8
jb 0x10003b7a
mov ecx, dword [ecx + 4]
jmp 0x10003b7d
add ecx, 4
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
pop esi
ret
Function at 0x10003ba0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [edx]
test edx, edx
jne 0x10003ba9
xor al, al
ret
cmp dword [eax + 0x18], 8
push esi
mov esi, dword [eax + 0x14]
lea esi, [esi + esi + 2]
jb 0x10003bbc
mov eax, dword [eax + 4]
jmp 0x10003bbf
add eax, 4
cmp dword [ecx + 0x18], 8
jb 0x10003bca
mov ecx, dword [ecx + 4]
jmp 0x10003bcd
add ecx, 4
push esi
push eax
push 2
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
pop esi
ret

Function at 0x10003f60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [edi], 0
push esi
je 0x10003fd9
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.10003bf0
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x10]
add esp, 8
sar eax, 1
lea esi, [eax + eax]
jne 0x10003f8e
call fcn.10044148
cmp dword [ebx + 0x18], 8
jb 0x10003f99
mov eax, dword [ebx + 4]
jmp 0x10003f9c
lea eax, [ebx + 4]
mov edx, dword [ebp - 0x10]
push esi
push edx
push 7
xor esi, esi
push esi
push eax
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov eax, dword [ebp - 0x10]
je 0x10003fe2
cmp eax, esi
je 0x10003fc4
push eax
call fcn.10043fe0
add esp, 4
mov ecx, dword [ebp - 0x1c]
push ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.10043fe0
add esp, 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
cmp eax, esi
je 0x10003fef
push eax
call fcn.10043fe0
add esp, 4
mov edx, dword [ebp - 0x1c]
push edx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.10043fe0
add esp, 4
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10004010
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [eax]
sub esp, 0xc
test eax, eax
jne 0x10004024
xor al, al
mov esp, ebp
pop ebp
ret 4
cmp dword [ecx + 0x18], 8
mov edx, 4
mov dword [ebp - 4], 0
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
jb 0x10004041
mov ecx, dword [ecx + 4]
jmp 0x10004043
add ecx, edx
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 4]
push edx
lea edx, [ebp - 0xc]
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000401c
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov al, 1
mov esp, ebp
pop ebp
ret 4