joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a490
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cbd83
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x505034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
mov dword [ebp - 4], eax
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], 7
mov word [edi + 0x38], ax
mov dword [edi + 0x60], eax
mov dword [edi + 0x64], eax
mov dword [edi + 0x68], eax
lea esi, [edi + 0x70]
mov byte [ebp - 4], 1
push 0x2c
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.00479ea3
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43bec0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc040
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x505034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00479ea3
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0047728d
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43c1a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc0db
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x505034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov dword [ebp + 8], 0
mov dword [ebp + 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
movq xmm0, qword [eax]
movq qword [esi + 0xc], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0xf
mov byte [esi + 0x1c], 0
sub esp, 8
mov byte [ebp - 4], 2
lea ecx, [esi + 0x38]
call fcn.0043bf90
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x43c258
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x43c258
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x43c258
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43ec50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc4a0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x505034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, dword [ebx + 8]
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
push 0x19
xor eax, eax
mov dword [ebp - 0x48], 0
push str.SOFTWAREIcarus_Volatile_
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.00415170
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x43ecd3
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x58]
call fcn.00414dc0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov word [eax], cx
lea ecx, [ebp - 0x18]
push ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push 1
cmovae eax, dword [ebp - 0x40]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x2c]
mov esi, eax
cmp edx, 8
jb 0x43ed5c
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43ed52
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43ee33
push edx
push ecx
call fcn.00479e95
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x43edaa
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43eda0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43ee33
push edx
push ecx
call fcn.00479e95
add esp, 8
test esi, esi
jne 0x43edf5
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x1c], esi
jb 0x43edc3
mov edi, dword [edi]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43edf5
cmp dword [ebp - 0x1c], 4
jne 0x43edf5
cmp dword [ebp - 0x20], 4
jne 0x43edf5
cmp dword [ebp - 0x24], 1
sete byte [ebp - 0x25]
jmp 0x43edf9
mov byte [ebp - 0x25], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x43ee12
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x43ee12
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [ebp - 0x25]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00479e61
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0049b19a
int3
Function at 0x43ff10
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x505034]
xor eax, esp
mov dword [esp + 0x68], eax
push esi
mov esi, dword [ebp + 8]
push edx
mov edx, ecx
mov dword [esp + 0x20], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.0043ffd0
add esp, 4
test esi, esi
je 0x43ffbe
mov edx, dword [esp + 0x18]
mov ecx, 0x78
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x64], edx
shr edx, 3
mov dword [esp + 0x68], eax
and edx, 0x3f
sub ecx, edx
mov eax, 0x38
sub eax, edx
cmp edx, 0x38
mov edx, 0x4eaf48
cmovae eax, ecx
lea ecx, [esp + 8]
push eax
call fcn.0043ffd0
push 8
lea edx, [esp + 0x6c]
lea ecx, [esp + 0x10]
call fcn.0043ffd0
movups xmm0, xmmword [esp + 0x10]
add esp, 8
movups xmmword [esi], xmm0
mov ecx, dword [esp + 0x6c]
pop esi
xor ecx, esp
call fcn.00479e61
mov esp, ebp
pop ebp
ret
Function at 0x440cb0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x401c
call fcn.0047a740
mov eax, dword [0x505034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor bl, bl
mov dword [ebp - 0x400c], 0
mov word [ebp - 0x4008], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x4018]
push ecx
push 0x20008
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x440e17
mov esi, dword [ebp - 0x4018]
lea eax, [ebp - 0x4014]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push 4
lea eax, [ebp - 0x4010]
mov dword [ebp - 0x4010], 0
push eax
push 0x14
push esi
call edi
test eax, eax
je 0x440e0c
cmp dword [ebp - 0x4010], 0
je 0x440e0c
lea eax, [ebp - 0x4014]
push eax
push 0x4000
lea eax, [ebp - 0x4004]
push eax
push 2
push dword [ebp - 0x4018]
call edi
test eax, eax
je 0x440e0c
test esi, esi
je 0x440d70
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x401c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x400c]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
xor esi, esi
cmp dword [ebp - 0x4004], esi
jbe 0x440ded
mov edi, dword [sym.imp.ADVAPI32.dll_EqualSid]
nop dword [eax]
push dword [ebp + esi*8 - 0x4000]
push dword [ebp - 0x401c]
call edi
test eax, eax
jne 0x440deb
inc esi
cmp esi, dword [ebp - 0x4004]
jb 0x440db0
push dword [ebp - 0x401c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00479e61
mov esp, ebp
pop ebp
ret
mov bl, 1
push dword [ebp - 0x401c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00479e61
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x440e17
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00479e61
mov esp, ebp
pop ebp
ret
Function at 0x440e30
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x505034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x25c]
mov dword [0x50bae0], eax
mov eax, dword [ebp - 0x244]
mov dword [0x50b5c8], eax
mov eax, dword [ebp - 0x254]
mov dword [0x5059e0], eax
mov eax, dword [ebp - 0x24c]
push 0x118
mov dword [0x5059f0], eax
lea eax, [ebp - 0x11c]
push 0
push eax
mov dword [0x5059e4], 0
call fcn.004928b0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x120]
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
push eax
call esi
test eax, eax
jne 0x440ecd
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call esi
mov esi, dword [0x50ba64]
test esi, esi
jne 0x440efa
push str.RtlGetVersion
push str.NTDLL.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [0x50ba64], esi
test esi, esi
je 0x440f3c
push 0x118
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.004928b0
add esp, 0xc
mov dword [ebp - 0x23c], 0x11c
lea eax, [ebp - 0x23c]
push eax
call esi
test eax, eax
jne 0x440f3c
push edi
mov ecx, 0x47
lea esi, [ebp - 0x23c]
lea edi, [ebp - 0x120]
rep movsd dword es:[edi], dword [esi]
pop edi
cmp dword [ebp - 0x110], 2
pop esi
jne 0x44107c
mov ecx, dword [ebp - 0x11c]
mov eax, 0xa
cmp ecx, 5
jb 0x4410d1
mov eax, 0xb
cmp ecx, 6
jb 0x44106c
mov eax, 0xd
cmp ecx, 7
jb 0x441034
mov eax, 0x11
cmp ecx, 0xa
jb 0x4410d1
mov ecx, dword [ebp - 0x114]
cmp ecx, 0x4a38
jb 0x440fa0
mov eax, 0x1a
jmp 0x4410d1
cmp ecx, 0x47bb
jb 0x440fb2
mov eax, 0x19
jmp 0x4410d1
cmp ecx, 0x4650
jb 0x440fc4
mov eax, 0x18
jmp 0x4410d1
cmp ecx, 0x44c0
jb 0x440fd6
mov eax, 0x17
jmp 0x4410d1
cmp ecx, 0x4268
jb 0x440fe8
mov eax, 0x16
jmp 0x4410d1
cmp ecx, 0x3e80
jb 0x440ffa
mov eax, 0x15
jmp 0x4410d1
cmp ecx, 0x3a98
jb 0x44100c
mov eax, 0x14
jmp 0x4410d1
cmp ecx, 0x36b0
jb 0x44101e
mov eax, 0x13
jmp 0x4410d1
cmp ecx, 0x295a
jb 0x4410d1
mov eax, 0x12
jmp 0x4410d1
mov ecx, dword [ebp - 0x118]
cmp ecx, 1
jb 0x4410d1
mov eax, 0xe
cmp ecx, 2
jb 0x4410d1
mov eax, 0xf
cmp ecx, 3
jb 0x4410d1
mov eax, 0x10
cmp ecx, 4
jb 0x4410d1
mov eax, 0x11
jmp 0x4410d1
cmp dword [ebp - 0x118], 1
jb 0x4410d1
mov eax, 0xc
jmp 0x4410d1
cmp dword [ebp - 0x11c], 4
jne 0x4410cf
mov ecx, dword [ebp - 0x118]
mov eax, 1
test ecx, ecx
jne 0x4410a9
mov ecx, 0x457
cmp word [ebp - 0x114], cx
jb 0x4410d1
mov eax, 2
jmp 0x4410d1
cmp ecx, 0x5a
jae 0x4410c8
mov ecx, 0x8ae
mov eax, 3
cmp word [ebp - 0x114], cx
jb 0x4410d1
mov eax, 4
jmp 0x4410d1
mov eax, 5
jmp 0x4410d1
xor eax, eax
mov ecx, dword [ebp - 4]
mov dword [0x50bae4], eax
xor ecx, ebp
xor eax, eax
call fcn.00479e61
mov esp, ebp
pop ebp
ret
Function at 0x4411a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10004
call fcn.0047a740
mov eax, dword [0x505034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x8000
lea eax, [ebp - 0x10004]
mov edi, ecx
push eax
push edi
mov esi, edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4411f9
lea edx, [ebp - 0x10004]
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4411e0
sub edx, ecx
lea eax, [ebp - 0x10004]
sar edx, 1
push edx
push eax
jmp 0x441221
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x441203
mov eax, dword [esi]
cmp edi, eax
je 0x441228
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x441210
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.00415170
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00479e61
mov esp, ebp
pop ebp
ret

Function at 0x441240
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x505034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea esi, [ebp - 0x20c]
mov dword [ebp - 0x418], edx
push 0x104
mov eax, esi
mov ebx, ecx
push eax
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, 0x104
jne 0x44129c
push 0x10000
call fcn.0049b1eb
mov esi, eax
add esp, 4
test esi, esi
je 0x441305
push 0x8000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x44130d
cmp byte [ebp + 8], 0
je 0x4412d6
push 0x104
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x4412d6
lea eax, [ebp - 0x20c]
cmp esi, eax
je 0x4412d0
push esi
call fcn.0049b1f6
add esp, 4
lea esi, [ebp - 0x414]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44130d
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4412e7
sub edx, ecx
mov ecx, dword [ebp - 0x418]
sar edx, 1
push edx
push esi
call fcn.00415170
jmp 0x441315
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x20c]
cmp esi, eax
je 0x441332
lea eax, [ebp - 0x414]
cmp esi, eax
je 0x441332
push esi
call fcn.0049b1f6
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00479e61
mov esp, ebp
pop ebp
ret
Function at 0x441350
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x505034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x234], 7
push 0x13
mov edi, ecx
mov word [ebp - 0x248], ax
xor esi, esi
mov dword [ebp - 0x220], eax
push str.SoftwareMicrosoft_
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x238], esi
xor bl, bl
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.00415170
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x4413cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp - 0x238], 0
je 0x4414c6
movzx ecx, word [0x50ba8c]
lea eax, [ebp - 0x230]
neg ecx
lea edx, [ebp - 0x24c]
push edx
sbb ecx, ecx
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
and ecx, 0x100
or ecx, 1
push ecx
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x441504
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x214], 0x208
push ecx
lea ecx, [ebp - 0x218]
push ecx
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push esi
push eax
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4414ba
mov eax, dword [ebp - 0x214]
mov ecx, 0x103
shr eax, 1
cmp eax, 0x104
cmove eax, ecx
mov dword [ebp - 0x214], eax
add eax, eax
cmp eax, 0x208
jae 0x4415b0
xor ecx, ecx
cmp dword [ebp - 0x218], 2
mov word [ebp + eax - 0x210], cx
jne 0x4414ba
lea eax, [ebp - 0x210]
push 0x25
push eax
call fcn.004918e5
add esp, 8
test eax, eax
je 0x4414ba
mov bl, 1
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x441504
xor eax, eax
lea ecx, [ebp - 0x210]
mov word [ebp - 0xa], ax
test bl, bl
je 0x4414e3
mov edx, edi
call fcn.004411a0
jmp 0x441504
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4414e6
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00415170
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x441544
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44153a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4415b5
push edx
push ecx
call fcn.00479e95
add esp, 8
mov edx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp edx, 8
jb 0x44159d
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x441593
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4415b5
push edx
push ecx
call fcn.00479e95
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00479e61
mov esp, ebp
pop ebp
ret
call fcn.0047a245
call fcn.0049b19a
int3
Function at 0x441740
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x505034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
mov edx, ecx
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x21c], edx
push esi
mov esi, dword [ebp + 8]
test edx, edx
je 0x4418b0
test eax, eax
je 0x4418b0
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x441781
mov ecx, dword [esi]
push ebx
push edi
xor edi, edi
mov dword [esi + 0x10], 0
mov word [ecx], di
xor ecx, ecx
mov word [ebp - 0x20c], cx
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push ecx
push edi
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, 0xea
jne 0x44186b
mov eax, dword [ebp - 0x210]
add eax, 2
push 0x509240
push eax
mov dword [ebp - 0x214], eax
call fcn.0047a324
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x441853
lea eax, [ebp - 0x214]
push eax
push ebx
push 0
push 0
push dword [ebp - 0x218]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x441837
mov eax, dword [ebp - 0x214]
shr eax, 1
je 0x44182e
lea edx, [eax - 1]
lea edx, [ebx + edx*2]
nop
cmp word [edx], 0
jne 0x44182e
sub edx, 2
sub eax, 1
jne 0x441820
push eax
push ebx
mov ecx, esi
call fcn.00415170
push ebx
call fcn.0047a31f
add esp, 4
mov eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00479e61
mov esp, ebp
pop ebp
ret
mov edi, 8
mov eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00479e61
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x44189d
mov eax, dword [ebp - 0x210]
shr eax, 1
je 0x44188e
lea ecx, [ebp + eax*2 - 0x20e]
cmp word [ecx], 0
jne 0x44188e
sub ecx, 2
sub eax, 1
jne 0x441880
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00415170
mov eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00479e61
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x57
xor ecx, ebp
pop esi
call fcn.00479e61
mov esp, ebp
pop ebp
ret
Function at 0x444450
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
test ecx, 0x400
je 0x444461
or dword [edx], 0x80
test ecx, 0x800
je 0x44446f
or dword [edx], 0x100
test cl, 1
je 0x44447a
or dword [edx], 0x80000000
test ecx, 0x100
je 0x444488
or dword [edx], 0x20000000
test ecx, 0x200
je 0x444496
or dword [edx], 0x10000
push esi
test cl, 2
je 0x4444a4
or dword [edx], 0x40000000
jmp 0x4444b7
test cl, 4
je 0x4444b7
mov esi, dword [ebp + 8]
mov eax, dword [edx]
mov dword [esi], eax
or eax, 0x100
mov dword [edx], eax
push ebx
mov ebx, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
test cl, 8
je 0x4444d2
mov dword [edi], 2
mov dword [ebx], 5
jmp 0x4444f0
test cl, cl
jns 0x4444e4
mov dword [edi], 4
mov dword [ebx], 3
jmp 0x4444f0
mov dword [edi], 3
mov dword [ebx], 1
mov eax, dword [ebp + 0xc]
test cl, 0x10
je 0x4444fb
or dword [eax], 1
test cl, 0x20
je 0x444503
or dword [eax], 2
test cl, 0x40
je 0x44450b
or dword [eax], 4
mov esi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x14]
test ecx, ecx
jns 0x444521
or dword [eax], 0x4000000
or dword [esi], 0x1000
test ecx, 0x10000000
je 0x444535
or dword [eax], 0x2000000
or dword [esi], 0x4000
test ecx, 0x20000000
je 0x44454e
cmp dword [edi], 2
jne 0x44454e
mov dword [edi], 1
mov dword [ebx], 2
test ecx, 0x8000000
je 0x44455f
or dword [eax], 0x2000000
or dword [esi], 1
test ecx, 0x40000
je 0x444573
or dword [eax], 0x200000
or dword [esi], 0x200000
mov edi, ecx
and edi, 0x7000000
je 0x4445d2
cmp edi, 0x6000000
ja 0x4445c1
je 0x4445b6
cmp edi, 0x4000000
je 0x4445a5
cmp edi, 0x5000000
jne 0x4445d2
or dword [eax], 0x10000000
or dword [esi], 0x800
jmp 0x4445d2
or dword [eax], 0x2100
mov eax, dword [ebp + 0x20]
or dword [eax], 0x2100
jmp 0x4445d2
or dword [eax], 0x8000000
or dword [esi], 4
jmp 0x4445d2
cmp edi, 0x7000000
jne 0x4445d2
or dword [eax], 0x80000000
or dword [esi], 2
pop edi
pop ebx
test ecx, 0x10000
jne 0x4445ee
mov eax, dword [ebp + 8]
or dword [edx], 0x100000
or dword [eax], 0x100000
or dword [esi], 0x20
test ecx, 0xc000
je 0x4445fc
or dword [esi], 0x100
pop esi
pop ebp
ret

Function at 0x445010
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, ecx
mov byte [ebp - 1], dl
test edi, edi
je 0x44508d
cmp word [edi], 0
je 0x44508d
mov eax, dword [0x50bad8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 8], 1
test eax, eax
je 0x445040
push esi
call eax
mov dword [ebp - 8], eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x445058
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x44505a
xor edi, edi
mov eax, dword [0x50bad8]
test eax, eax
je 0x445068
push dword [ebp - 8]
call eax
test edi, edi
jne 0x445084
test bl, 0x10
je 0x44507f
movzx esi, byte [ebp - 1]
dec esi
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov esi, 1
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret