joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100bdd10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1013a0b3
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x101bb518]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
test byte [0x101cb200], 1
je 0x100bdd5e
push dword [0x101cb20c]
mov ecx, 0x10172518
push dword [0x101cb208]
call fcn.100c21c0
add esp, 8
push 0xc
call fcn.100c21c0
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 0
test eax, eax
je 0x100bdd97
mov dword [eax], vtable.appv::utility::scope_guard_func.0
mov byte [esp + 0x20], 1
mov dword [eax], vtable.._AV__scope_guard_func_impl_V___Bind__00XQ6AXXZ___V_std___utility_appv__.0
mov dword [eax + 4], 0x100bbe00
mov byte [esp + 0x20], 0
jmp 0x100bdd99
xor eax, eax
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], 3
lea ecx, [esi + 0x60]
call fcn.100c21c0
lea ecx, [esi + 0x50]
call fcn.100c21c0
lea ecx, [esi + 0x58]
call fcn.100c21c0
lea ecx, [esi + 0x28]
call fcn.100c21c0
lea ecx, [esi + 0x30]
call fcn.100c21c0
lea ecx, [esi + 0x38]
call fcn.100c21c0
lea ecx, [esi + 0x40]
call fcn.100c21c0
mov dword [esi + 0x48], 0
xorps xmm0, xmm0
mov dword [esi + 0x4c], 0
movdqu xmmword [esi + 8], xmm0
movdqu xmmword [esi + 0x18], xmm0
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.100c21c0
xor eax, eax
mov edx, 0x80
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100c21c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x100c21cf
pop dword [ebp - 0x20]
mov eax, 0x100c21cf
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x8bcc0
push 0
mov eax, 0x453ebb33
sub eax, 0x352968df
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x25b91410
add ecx, 0xda47451b
mov edi, eax
mov edx, 0x101eb000
add edx, dword [ebp - 0x20]
mov esi, 0x543f71f
sub esi, 0x7c939d38
xor dword [ebp - 0x10], ecx
mov ebx, dword [edx]
add dword [ebp - 8], 0xb1238e6b
xor ebx, esi
sub dword [ebp - 0x10], 0xe6a5f6f5
mov dword [edi], ebx
sub dword [ebp - 0x10], eax
add edi, 4
add edx, 0xb00964be
add edx, 0x4ff69b46
loop 0x100c2223
add eax, 0x1577f
mov ebx, eax
add eax, 0xf4840784
sub eax, 0xf484077f
mov ecx, 0x35f570be
sub ecx, 0x25f570be
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x100c6560
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10148618
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x101bb518]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
add eax, 0xc
mov ecx, dword [0x101caba8]
mov dword [esp + 0x24], eax
mov eax, ebx
and eax, 0x300
mov dword [esp + 0x1c], 0x18
or eax, dword [esi + 4]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0x40
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x100c65ee
lea edx, [esp + 0x1c]
push edx
push eax
lea eax, [esp + 0x18]
push eax
call ecx
jmp 0x100c65ff
lea ecx, [esp + 0x1c]
push ecx
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
js 0x100c66b4
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x40], 1
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
push eax
movzx eax, byte [esi + 0x10]
push eax
call fcn.100c21c0
mov edi, eax
add esp, 0xc
test edi, edi
js 0x100c667c
cmp byte [esi + 8], 0
je 0x100c665d
mov edx, ebx
lea ecx, [esp + 0x14]
call fcn.100c21c0
mov edi, eax
test edi, edi
js 0x100c667c
mov edx, dword [ebp + 0x14]
xor edi, edi
mov eax, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [edx], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov dword [edx + 4], ecx
mov dword [esp + 0x40], 0xffffffff
mov esi, dword [esp + 0x18]
test esi, esi
je 0x100c66b2
or ebx, 0xffffffff
lea ecx, [esi + 4]
mov eax, ebx
lock xadd dword [ecx], eax
jne 0x100c66b2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], ebx
dec ebx
jne 0x100c66b2
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x100fa8e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov byte [eax], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + 4]
mov edx, dword [eax + 0x14]
mov esi, dword [eax + 0x10]
mov edi, dword [eax + 0xc]
mov ebx, dword [eax + 8]
mov eax, dword [eax + 4]
mov dword [ebp + 0xc], edx
mov edx, dword [0x101cabac]
test edx, edx
mov dword [ebp + 8], edx
mov edx, dword [ebp + 0xc]
push edx
push esi
push edi
push ebx
push eax
push ecx
je 0x100fa924
call dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret 8
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x100fb6e0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014f483
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x101bb518]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
mov eax, dword [eax + 0x38]
call eax
test al, al
je 0x100fb72c
mov eax, 0xc0000022
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
mov ecx, ebx
push 1
push 1
call dword [eax + 0x48]
test eax, eax
js 0x100fb81d
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 3
lea eax, [ebp - 0x28]
push eax
mov ecx, ebx
call fcn.100c21c0
mov esi, eax
test esi, esi
jns 0x100fb7a5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100c21c0
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
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
call fcn.100c21c0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x28]
call fcn.100c21c0
mov esi, dword [ebp - 0x10]
cmp esi, dword [eax]
setne al
test al, al
je 0x100fb80c
lea esp, [esp]
mov eax, dword [esi]
mov edx, dword [0x101cabb4]
add eax, 0xc
mov ecx, dword [ebx + 4]
push eax
push ecx
test edx, edx
je 0x100fb7e8
call edx
jmp 0x100fb7ee
call dword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov edi, eax
test edi, edi
js 0x100fb82f
mov esi, dword [esi + 0xc]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x28]
call fcn.100c21c0
cmp esi, dword [eax]
setne al
test al, al
jne 0x100fb7d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100c21c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100c21c0
mov eax, edi
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 0x100fbb30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014f4f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x101bb518]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
add eax, 0xc
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp + 8], 0
mov dword [ebp - 4], 0
mov eax, dword [0x101caba8]
test eax, eax
je 0x100fbbaa
lea ecx, [ebp - 0x30]
push ecx
push 1
lea ecx, [ebp + 8]
push ecx
call eax
jmp 0x100fbbba
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebp + 8]
push eax
call dword [sym.imp.ntdll.dll_NtOpenKey]
mov esi, eax
test esi, esi
js 0x100fbc88
push 0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, dword [0x101cabac]
mov ecx, dword [edi + 0x24]
mov edx, dword [edi + 0x2c]
mov dword [ebp - 0x10], 0
test eax, eax
je 0x100fbbf9
lea esi, [ebp - 0x10]
push esi
push ecx
push edx
push 0
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 8]
call eax
jmp 0x100fbc0e
lea eax, [ebp - 0x10]
push eax
push ecx
push edx
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
cmp esi, 0xc0000034
je 0x100fbc86
test esi, esi
jns 0x100fbcae
cmp esi, 0x80000005
je 0x100fbc30
cmp esi, 0xc0000023
jne 0x100fbc88
push dword [ebp - 0x10]
lea ecx, [edi + 0x24]
call fcn.100c21c0
mov esi, eax
test esi, esi
js 0x100fbc88
mov eax, dword [0x101cabac]
mov ecx, dword [edi + 0x24]
mov edx, dword [edi + 0x2c]
test eax, eax
je 0x100fbc63
lea esi, [ebp - 0x10]
push esi
push ecx
push edx
push 0
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 8]
call eax
jmp 0x100fbc78
lea eax, [ebp - 0x10]
push eax
push ecx
push edx
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
test esi, esi
jns 0x100fbcae
cmp esi, 0xc0000034
jne 0x100fbc88
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
test eax, eax
je 0x100fbcce
cmp byte [0x101ca990], 0
jne 0x100fbcce
mov ecx, dword [0x101cab8c]
push eax
test ecx, ecx
je 0x100fbcc1
call ecx
jmp 0x100fbcc7
mov eax, dword [edi + 0x2c]
test dword [eax + 4], 0x10000
je 0x100fbc86
mov esi, 0xc0000034
jmp 0x100fbc88
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [ebp + 8], 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 0x101116cd
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x10151d44
call fcn.10119a04
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x101117c5
cmp byte [esi + 0x46], bl
je 0x101117c5
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x10111709
xor al, al
jmp 0x101117c7
push ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.100c21c0
mov dword [ebp - 4], ebx
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ebx, edi
cmp eax, 0x10
jae 0x10111736
lea ebx, [ebp - 0x28]
mov edi, ebx
mov ecx, dword [esi + 0x40]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, ebx
mov edx, dword [ecx]
push eax
push edi
lea eax, [esi + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x1011175d
dec eax
je 0x10111761
dec eax
dec eax
je 0x101117b3
xor bl, bl
jmp 0x101117b5
mov byte [esi + 0x46], 0
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov ecx, edi
cmp eax, 0x10
jae 0x10111771
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
sub ebx, ecx
je 0x10111799
cmp eax, 0x10
jae 0x10111780
lea edi, [ebp - 0x28]
push dword [esi + 0x50]
push ebx
push 1
push edi
call fcn.1011d718
add esp, 0x10
cmp ebx, eax
jne 0x10111759
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
cmp byte [esi + 0x46], 0
je 0x101117b3
test ebx, ebx
jne 0x1011172a
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.100c21c0
jmp 0x10111724
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.100c21c0
mov al, bl
jmp 0x101117c7
mov al, 1
call fcn.101199c2
ret
Function at 0x10111be0
Capabilities:
Write file on windows

Disassembly:
push 0x30
mov eax, 0x10151d96
call fcn.10119a04
mov edi, ecx
mov ebx, dword [ebp + 8]
mov esi, 0xffff
cmp si, bx
jne 0x10111c02
xor eax, eax
jmp 0x10111d8a
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x10111c2e
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x10111c2e
dec dword [edx]
mov ax, bx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x10111d8a
cmp dword [edi + 0x50], 0
je 0x10111d87
mov ecx, edi
call fcn.1011186e
xor ecx, ecx
cmp dword [edi + 0x40], ecx
jne 0x10111c61
push dword [edi + 0x50]
push ebx
call fcn.100c21c0
pop ecx
pop ecx
test al, al
je 0x10111d87
movzx esi, bx
jmp 0x10111d87
push ecx
movzx eax, bx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x14], 0xf
call fcn.100c21c0
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
cmp ecx, 0x10
jae 0x10111c94
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
cmp ecx, 0x10
jae 0x10111ca2
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov ecx, dword [edi + 0x40]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x2c]
mov edx, dword [ecx]
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x32]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [edi + 0x48]
push eax
call dword [edx + 0x1c]
mov ebx, dword [ebp + 8]
test eax, eax
js 0x10111d7b
cmp eax, 1
jg 0x10111d5f
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
cmp ecx, 0x10
jb 0x10111cef
mov dword [ebp - 0x2c], eax
jmp 0x10111cf5
lea edx, [ebp - 0x28]
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x38]
sub edx, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], edx
je 0x10111d27
cmp ecx, 0x10
jae 0x10111d08
lea eax, [ebp - 0x28]
push dword [edi + 0x50]
push edx
push 1
push eax
call fcn.1011d718
mov edx, dword [ebp - 0x2c]
add esp, 0x10
cmp edx, eax
jne 0x10111d57
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
lea ebx, [ebp - 0x34]
mov byte [edi + 0x46], 1
cmp dword [ebp - 0x3c], ebx
mov ebx, dword [ebp + 8]
jne 0x10111d54
test edx, edx
jne 0x10111c8c
cmp dword [ebp - 0x18], 0x20
jae 0x10111d5a
push edx
push 8
lea ecx, [ebp - 0x28]
call fcn.100c21c0
jmp 0x10111c83
movzx esi, bx
movzx esi, si
movzx esi, si
jmp 0x10111d78
cmp eax, 3
jne 0x10111d7b
push dword [edi + 0x50]
push dword [ebp - 0x34]
call fcn.100c21c0
pop ecx
pop ecx
test al, al
je 0x10111d78
movzx esi, bx
movzx esi, si
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.100c21c0
mov ax, si
call fcn.101199c2
ret 4
Function at 0x4028a3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x28
mov eax, 0x45a6f2
call fcn.0043d5d4
lea ecx, [ebp - 0x18]
call fcn.0042eab1
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
call fcn.00402b1b
or dword [ebp - 4], 0xffffffff
call fcn.0042eac7
and dword [ebp - 0x14], 0
push 0x21
push 1
mov edi, 0x400000
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4029cc
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x4029c3
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
cmp eax, ebx
je 0x4029cc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x4029cc
mov dword [ebp - 4], 3
shr esi, 1
lea edi, [eax + esi*2]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ebx
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, edi
je 0x402969
cmp word [esi], bx
jne 0x402965
cmp dword [ebp - 0x1c], ebx
je 0x40295f
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp + 8]
call fcn.00402a83
lea eax, [esi + 2]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ebx
jmp 0x402965
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
inc esi
inc esi
jmp 0x402935
or dword [ebp - 4], 0xffffffff
jmp 0x4029ca
mov dword [ebp - 0x14], 1
jmp 0x4029d4
call fcn.00403179
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
jmp 0x4029fd
call fcn.0043d679
ret 4
Function at 0x409d53
Capabilities:
Terminate process

Disassembly:
push 0x2c
mov eax, 0x45c887
call fcn.0043d5a1
push 0x465468
mov ecx, 0x47e074
call fcn.00402a05
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x409d90
push 0xbd3
lea eax, [ebp - 0x24]
push eax
call fcn.004047a0
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x24]
jmp 0x40f416
lea ecx, [ebp - 0x38]
call fcn.0043445e
mov dword [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x46547c
lea edi, [ebp - 0x38]
call fcn.0040153e
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push dword [ebp - 0x10]
call fcn.0040153e
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
call fcn.0041756a
cmp dword [ebp - 0x30], ebx
pop ecx
pop ecx
jle 0x409e8a
mov edi, 0x47e048
push 0x465480
mov ecx, edi
call fcn.00422d30
test eax, eax
je 0x409e6f
push str.LI_SKIP_EULA
mov ecx, edi
call fcn.00422d30
test eax, eax
je 0x409e6f
cmp dword [ebp - 0x30], 1
jle 0x409e6f
cmp dword [ebp - 0x30], ebx
jg 0x409e11
jmp fcn.0042e9a6
mov ecx, dword [ebp - 0x34]
push 0x4654b0
call fcn.004043f3
test eax, eax
jne 0x409e6f
cmp dword [ebp - 0x30], 1
jle 0x409e0c
mov eax, dword [ebp - 0x34]
add eax, 4
push eax
lea ecx, [esi + 0x98]
call fcn.0040ae94
push ebx
mov byte [esi + 0xac], 1
mov eax, dword [0x47df8c]
push ebx
push 0x401
push dword [eax + 0x30]
mov dword [eax + 0x58], ebx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov eax, dword [0x47e044]
cmp eax, ebx
je 0x409e6f
push ebx
push ebx
push 0x465428
push eax
call fcn.00415a01
cmp byte [esi + 0xac], bl
jne 0x409e8a
cmp dword [ebp - 0x30], ebx
jle 0x409e0c
push dword [ebp - 0x34]
lea ecx, [esi + 0x98]
call fcn.0040ae94
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0043460f
call fcn.0043d679
ret

Function at 0x409e9c
Capabilities:
Terminate process

Disassembly:
push 0x2c
mov eax, 0x45c887
call fcn.0043d5a1
push 0x465468
mov ecx, 0x47e074
call fcn.00402a05
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x409ed8
push 0xbd3
lea eax, [ebp - 0x24]
push eax
call fcn.004047a0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
jmp 0x40f416
lea ecx, [ebp - 0x38]
call fcn.0043445e
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x46547c
lea edi, [ebp - 0x38]
call fcn.0040153e
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push dword [ebp - 0x10]
call fcn.0040153e
mov byte [ebp - 4], 3
mov byte [ebp - 4], bl
call fcn.0041756a
cmp byte [esi + 0xac], 0
pop ecx
pop ecx
mov edi, ebx
je 0x409f27
push 2
pop edi
mov ebx, dword [ebp - 0x30]
jmp 0x409f72
test edi, edi
jl 0x409f88
cmp edi, dword [ebp - 0x30]
jge 0x409f88
mov eax, dword [ebp - 0x34]
lea eax, [eax + edi*4]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
je 0x409f71
push str.CProgressPage
push eax
call fcn.0040ab0f
test al, al
pop ecx
pop ecx
je 0x409f5a
push esi
call fcn.0040a0d1
cmp edi, dword [ebp - 0x30]
jge 0x409f88
mov eax, dword [ebp - 0x34]
lea eax, [eax + edi*4]
push eax
lea ecx, [esi + 0x98]
call fcn.0040ae94
inc edi
cmp edi, ebx
jb 0x409f2c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0043460f
call fcn.0043d679
ret
jmp fcn.0042e9a6
Function at 0x40d16c
Capabilities:
Move file

Disassembly:
push 0x20
mov eax, 0x45c249
call fcn.0043d5d4
lea ecx, [ebp - 0x2c]
call fcn.0042eab1
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00401a99
mov byte [ebp - 4], 2
lea eax, [ebp - 0x18]
push eax
call fcn.00408c0d
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push eax
push 0x465f80
lea ecx, [ebp - 0x18]
call fcn.00417118
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
test eax, eax
jge 0x40d1e5
mov byte [ebp - 4], 2
lea eax, [ebp - 0x18]
push eax
call fcn.00418f38
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00401b86
or dword [ebp - 4], 0xffffffff
call fcn.0042eac7
mov eax, dword [ebp - 0x20]
jmp 0x40d268
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x18]
mov ecx, dword [ebp + 0x14]
call fcn.00425650
mov dword [ebp - 0x20], eax
test eax, eax
jl 0x40d1bb
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40d20e
and dword [ebp - 0x18], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x1c]
push eax
mov esi, dword [ebp + 0x18]
mov ecx, esi
call fcn.00401b21
push str..exe
mov ecx, esi
call fcn.0040949e
push dword [esi]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x40d1bb
call fcn.00403179
mov dword [ebp - 0x20], eax
jmp 0x40d1bb
call fcn.0043d679
ret 0x14
Function at 0x40ed70
Capabilities:
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x477fc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Calling_SetDllDirectory_n
call ebx
push 0x463db4
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40edd0
push 0x800
call eax
test eax, eax
jne 0x40edc9
push str.Failed_to_SetDefaultDlLDirectories_n
jmp 0x40edd5
push str.Succeeded_to_SetDefaultDlLDirectories_n
jmp 0x40edd5
push str.Failed_to_load_SetDefaultDlLDirectories_n
call ebx
push 0x104
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40ef3f
push esi
push edi
lea esi, [ebp + eax*2 - 0x428]
mov edi, 0x103
sub edi, eax
mov word [esi], 0x5c
inc esi
inc esi
and dword [ebp - 0x42c], 0
mov dword [ebp - 0x434], edi
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x464], str.BCRYPT.DLL
mov dword [ebp - 0x460], str.RSAENH.DLL
mov dword [ebp - 0x45c], str.CRYPT32.DLL
mov dword [ebp - 0x458], str.MSASN1.DLL
mov dword [ebp - 0x454], str.USERENV.DLL
mov dword [ebp - 0x450], str.WINTRUST.DLL
mov dword [ebp - 0x44c], str.GDIPLUS.DLL
mov dword [ebp - 0x448], str.MSI.DLL
mov dword [ebp - 0x444], str.OLEACC.DLL
mov dword [ebp - 0x440], str.OLEDLG.DLL
mov dword [ebp - 0x43c], str.VERSION.DLL
mov dword [ebp - 0x438], str.WINHTTP.DLL
mov eax, dword [ebp - 0x42c]
push dword [ebp + eax*4 - 0x464]
push edi
push esi
call fcn.0043bdc3
add esp, 0xc
test eax, eax
jne 0x40ef23
mov esi, str.Loading
lea edi, [ebp - 0x220]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x20a
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x20e]
push eax
movsw word es:[edi], word [esi]
call fcn.0043d160
lea eax, [ebp - 0x428]
push eax
mov esi, 0x10e
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.0043c477
push 0x4664ec
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.0043c477
add esp, 0x24
lea eax, [ebp - 0x220]
push eax
call ebx
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [ebp - 0x434]
mov esi, dword [ebp - 0x430]
jmp 0x40ef2a
push 0x4664f0
call ebx
inc dword [ebp - 0x42c]
cmp dword [ebp - 0x42c], 0xc
jb 0x40ee93
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004390c2
leave
ret
Function at 0x40f1e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.00433676
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x40f201
xor eax, eax
jmp 0x40f214
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40f1fd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop esi
pop ebp
ret 8