joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431a6d
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push 3
xor edx, edx
lea eax, [esi + 3]
pop ecx
div ecx
lea eax, [eax + esi + 4]
push eax
push dword [ebp + 0x10]
call fcn.004302ab
pop ecx
test eax, eax
pop ecx
je 0x431b3e
push dword [ebp + 0x10]
call fcn.004302a4
and dword [ebp + 0x10], 0
pop ecx
test esi, esi
mov ecx, eax
jbe 0x431b1a
push ebx
push edi
push 3
lea eax, [esi + 2]
xor edx, edx
pop edi
div edi
mov edx, dword [ebp + 8]
mov edi, eax
lea eax, [edi + edi*2]
mov dword [ebp + 0x10], eax
movzx eax, byte [edx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_SSPINTLM:We_do_not_support_ntlm_on_this_platform_n]
mov byte [ecx], al
mov al, byte [edx]
movzx ebx, byte [edx + 1]
and eax, 3
inc ecx
shl eax, 4
shr ebx, 4
or eax, ebx
add edx, 3
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_SSPINTLM:We_do_not_support_ntlm_on_this_platform_n]
mov byte [ecx], al
mov al, byte [edx - 2]
movzx ebx, byte [edx - 1]
and eax, 0xf
inc ecx
shl eax, 2
shr ebx, 6
or eax, ebx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_SSPINTLM:We_do_not_support_ntlm_on_this_platform_n]
mov byte [ecx], al
mov al, byte [edx - 1]
and eax, 0x3f
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_SSPINTLM:We_do_not_support_ntlm_on_this_platform_n]
mov byte [ecx], al
inc ecx
dec edi
jne 0x431abf
pop edi
pop ebx
lea eax, [esi + 1]
cmp dword [ebp + 0x10], eax
jne 0x431b28
mov byte [ecx - 1], 0x3d
jmp 0x431b38
add esi, 2
cmp dword [ebp + 0x10], esi
jne 0x431b38
mov byte [ecx - 1], 0x3d
mov byte [ecx - 2], 0x3d
and byte [ecx], 0
push 1
pop eax
pop esi
pop ebp
ret
Function at 0x431c70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433988
push 0x431e2c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x4456a8], 0xffffffff
mov dword [0x4456ac], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4456a0]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x44569c]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x4456a4], ecx
call fcn.00431eb0
mov eax, dword [0x441710]
test eax, eax
jne 0x431d01
push 0x431ea0
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00431e80
push 0x436024
push 0x436020
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x445698]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x445694]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x43601c
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [edx]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x431e0f
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x431d75
cmp al, 0x22
jne 0x431d67
cmp byte [esi], 0x22
jne 0x431d7e
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x431d8e
cmp al, 0x20
ja 0x431d8e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x431d7e
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x431daf
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x431db4
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x431df4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x431d7e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x431e0f
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43b64b
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x43b3c1
or ebx, edx
or ebx, ebx
call fcn.0043b68a
or ebx, ebx
dec ebx
add edx, edx
xor dword [ecx], esi
sub ebx, 0x5c6a37a8
sub ebx, ebx
dec ebx
inc ecx
and edx, ebx
and ebx, edx
push 0x33d993f
mov edx, dword [esp]
add esp, 4
cmp ecx, edi
jne fcn.0043b64b
mov edx, edx
add edx, 0x2e4b2b1c
and ebx, edx
ret
Function at 0x401000
Capabilities:
Get installed programs

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ad70
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x566148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x30]
mov esi, dword [eax + 0x568a98]
xor ecx, ecx
push 0x34
mov word [ebp - 0x2c], cx
push 0x543b20
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
call fcn.00404dc0
mov eax, esi
mov dword [ebp - 4], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401060
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404540
xor esi, esi
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x401087
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x34]
push edx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x4010ab
mov esi, dword [ebp - 0x34]
xor eax, eax
cmp eax, edi
sete bl
cmp esi, edi
je 0x4010b9
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x4010d2
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004e895a
add esp, 4
test bl, bl
jne 0x4010ec
mov eax, dword [ebp - 0x30]
add eax, 4
mov dword [ebp - 0x30], eax
cmp eax, 8
jb 0x401030
xor al, al
jmp 0x4010ee
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e8965
mov esp, ebp
pop ebp
ret

Function at 0x401d60
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526d80
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x566148]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
sub esp, 0x18
mov dword [ebp - 4], 0
mov esi, esp
lea edi, [ebp + 0x10]
mov dword [ebp - 0x10], esp
call fcn.004016a0
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x14], eax
call fcn.00402300
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], ecx
mov byte [ebx + 0x30], 0
cmp eax, ecx
je 0x401e08
cmp dword [ebx], 0
je 0x401de6
push ecx
push eax
lea esi, [ebp - 0x14]
mov ecx, ebx
call fcn.004100c0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
jmp 0x401de8
mov edx, ecx
mov eax, dword [ebx + 0x2c]
cmp edx, eax
jne 0x401dfc
cmp ecx, eax
jne 0x401dfc
cmp dword [ebx + 0x24], eax
jne 0x401dfc
mov byte [ebx + 0x30], 1
mov eax, dword [ebx + 0x28]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], edx
mov dword [ebx + 0x28], ecx
cmp dword [ebp + 0x20], 8
jbe 0x401e1e
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x401e1e
push eax
call fcn.004e94c1
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x407c60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x53b560
push reloc.OLEAUT32.dll_SysReAllocString
xor bl, bl
mov dword [esi], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407cd7
mov eax, dword [ebp - 4]
push edi
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
push esi
lea edx, [ebp - 0xc]
push edx
push 0
push ecx
push eax
mov edi, eax
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407cc4
cmp dword [ebp - 0xc], 4
jne 0x407cc4
mov bl, 1
test edi, edi
je 0x407ccf
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407ce0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x527f90
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x566148]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [eax + 0x14], 8
mov byte [esp + 0x13], bl
mov dword [eax + 0x10], ebx
jb 0x407d20
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
push 0x53b560
mov dword [esp + 0x58], ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x407e2e
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ebx
lea ecx, [esp + 0x24]
push ecx
push ebx
push 0x53e9f8
push esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x407e23
mov eax, dword [esp + 0x1c]
cmp eax, 1
je 0x407d9e
cmp eax, 2
jne 0x407e23
mov eax, dword [esp + 0x18]
shr eax, 1
mov dword [esp + 0x18], eax
cmp eax, 1
jbe 0x407e1e
lea edx, [eax - 1]
cmp edx, dword [ebp + 0xc]
ja 0x407e1e
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x4c], 1
call fcn.0040a550
mov esi, dword [esp + 0x2c]
push 0x53e9f8
lea eax, [esp + 0x24]
push eax
lea edi, [esp + 0x20]
call fcn.00412ca0
test eax, eax
jne 0x407e11
mov eax, dword [esp + 0x18]
cmp eax, 1
jbe 0x407e11
dec eax
push eax
lea ecx, [esp + 0x30]
call fcn.0040a550
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [ebp + 8]
push ecx
push edx
call fcn.0040a940
lea ecx, [esp + 0x2c]
call fcn.004d9370
mov esi, dword [esp + 0x14]
mov byte [esp + 0x13], 1
cmp esi, ebx
je 0x407e2e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bc60
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x528f71
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
mov eax, dword [0x566148]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov ecx, dword [edi + 0x3c]
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x40]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov dword [edx], ecx
sub eax, ecx
mov ecx, dword [edi + 0x30]
sar eax, 1
mov dword [ecx], eax
mov dword [ebp - 0x6c], 0x53ed38
mov dword [ebp - 4], ebx
lea esi, [ebp - 0x5c]
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x5c], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
call fcn.00411850
mov ecx, esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], ebx
call fcn.00411920
mov word [ebp - 0x1c], ax
cmp dword [ebp - 0x24], ebx
jne 0x40bcef
mov eax, dword [ebp - 0x50]
or eax, 4
push ebx
mov ecx, esi
call fcn.00411a30
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 4]
and dword [ebp + eax - 0x58], 0xfffffffe
lea eax, [ebp + eax - 0x6c]
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 4]
lea eax, [ebp + eax - 0x6c]
push ecx
lea edx, [ebp - 0x6c]
push edx
mov dword [eax + 0x18], 6
mov dword [eax + 0x1c], ebx
call fcn.0040bdf0
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 0xc]
add ecx, eax
and dl, 6
movsx eax, dl
neg eax
sbb eax, eax
not eax
test ecx, eax
je 0x40bd56
lea ecx, [ebp - 0x6c]
push ecx
call fcn.0040bfb0
mov edx, 0xffff
cmp ax, dx
jne 0x40bd56
mov bl, 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x5c]
mov dword [ebp + ecx - 0x6c], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
push edx
mov dword [ebp - 0x5c], vtable.std::ios_base.0
call fcn.004ccb3f
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40c9b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5286b8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x566148]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
mov eax, dword [0x566148]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x24]
mov edi, ecx
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
mov dword [esp + 0xc], ecx
push eax
mov ecx, esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], 0
call fcn.004118e0
lea ecx, [esp + 0x10]
push ecx
push ecx
push eax
mov dword [esp + 0x6c], 0
mov esi, dword [esi + 0x14]
push esi
lea edx, [ebp + 0x14]
push edx
lea eax, [ebp + 0xc]
push eax
lea ecx, [esp + 0x48]
push ecx
push edi
call fcn.0040d170
add esp, 0x1c
push eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.004cceb6
mov dword [esp + 0x34], eax
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x30]
add esp, 0x10
mov dword [esp + 0x28], edx
test eax, eax
je 0x40caa5
push 0
lea ecx, [esp + 0x30]
mov edi, eax
call fcn.004cc487
mov eax, dword [edi + 4]
test eax, eax
je 0x40ca85
cmp eax, 0xffffffff
jae 0x40ca85
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
lea ecx, [esp + 0x2c]
not esi
call fcn.004cc4af
and esi, edi
je 0x40caa5
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
cmp byte [ebp + 0x10], 0
jne 0x40cab3
lea ecx, [ebp + 0xc]
call fcn.0040fcc0
cmp byte [ebp + 0x18], 0
jne 0x40cac1
lea ecx, [ebp + 0x14]
call fcn.0040fcc0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x40caf5
cmp dword [ebp + 0x14], ecx
je 0x40cafb
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x30]
cmp dword [esp + 0x14], edx
je 0x40cb04
cmp dword [esp + 0x10], 0
jne 0x40cb04
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [eax], edx
mov edx, dword [esp + 0x28]
mov dword [eax + 4], edx
jmp 0x40cb07
cmp dword [ebp + 0x14], 0
je 0x40cacd
mov eax, dword [esp + 0xc]
or dword [eax], 1
jmp 0x40cad1
or dword [eax], 2
mov eax, dword [esp + 0x1c]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004e8965
mov esp, ebp
pop ebp
ret 0x20
Function at 0x40cb40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5286b8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x566148]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
mov eax, dword [0x566148]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x24]
mov edi, ecx
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
mov dword [esp + 0xc], ecx
push eax
mov ecx, esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], 0
call fcn.004118e0
lea ecx, [esp + 0x10]
push ecx
push ecx
push eax
mov dword [esp + 0x6c], 0
mov esi, dword [esi + 0x14]
push esi
lea edx, [ebp + 0x14]
push edx
lea eax, [ebp + 0xc]
push eax
lea ecx, [esp + 0x48]
push ecx
push edi
call fcn.0040d170
add esp, 0x1c
push eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.004ccf79
mov dword [esp + 0x34], eax
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x30]
add esp, 0x10
mov dword [esp + 0x28], edx
test eax, eax
je 0x40cc35
push 0
lea ecx, [esp + 0x30]
mov edi, eax
call fcn.004cc487
mov eax, dword [edi + 4]
test eax, eax
je 0x40cc15
cmp eax, 0xffffffff
jae 0x40cc15
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
lea ecx, [esp + 0x2c]
not esi
call fcn.004cc4af
and esi, edi
je 0x40cc35
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
cmp byte [ebp + 0x10], 0
jne 0x40cc43
lea ecx, [ebp + 0xc]
call fcn.0040fcc0
cmp byte [ebp + 0x18], 0
jne 0x40cc51
lea ecx, [ebp + 0x14]
call fcn.0040fcc0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x40cc85
cmp dword [ebp + 0x14], ecx
je 0x40cc8b
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x30]
cmp dword [esp + 0x14], edx
je 0x40cc94
cmp dword [esp + 0x10], 0
jne 0x40cc94
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [eax], edx
mov edx, dword [esp + 0x28]
mov dword [eax + 4], edx
jmp 0x40cc97
cmp dword [ebp + 0x14], 0
je 0x40cc5d
mov eax, dword [esp + 0xc]
or dword [eax], 1
jmp 0x40cc61
or dword [eax], 2
mov eax, dword [esp + 0x1c]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004e8965
mov esp, ebp
pop ebp
ret 0x20
Function at 0x411c30
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52638b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x566148]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004cca91
push 4
mov dword [ebp - 4], 0
call fcn.004e90d8
mov edi, eax
add esp, 4
test edi, edi
je 0x411cac
call fcn.004cc393
mov dword [edi], eax
call fcn.004cc152
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004cc487
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x411ca2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004cc4af
jmp 0x411cae
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 4

Function at 0x412ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push esi
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412d0e
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x412cdd
cmp eax, 2
jne 0x412cf8
mov eax, dword [ebp - 4]
test esi, esi
je 0x412d08
test eax, eax
je 0x412d03
test al, 1
jne 0x412cf8
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x412d08
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x417160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x417178
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4171aa
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4171a6
cmp esi, eax
jae 0x4171aa
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x417198
cmp esi, eax
jb 0x4171b0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret