joyce8/EMBER2024-capa huggingface dataset:
Function at 0x497ad0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x60000]
push edi
jmp 0x497aea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x497af1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x497ae0
mov eax, 1
add ebx, ebx
jne 0x497b03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x497b14
jne 0x497b33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x497b33
dec eax
add ebx, ebx
jne 0x497b20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x497af8
add ebx, ebx
jne 0x497b2f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x497b85
xor ecx, ecx
sub eax, 3
jb 0x497b4b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x497bba
sar eax, 1
mov ebp, eax
jmp 0x497b56
add ebx, ebx
jne 0x497b56
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x497b24
inc ecx
add ebx, ebx
jne 0x497b64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x497b24
add ebx, ebx
jne 0x497b71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x497b66
jne 0x497b82
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x497b66
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x497ba4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x497b96
jmp 0x497ae6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x497ba4
add edi, ecx
jmp 0x497ae6
pop esi
mov edi, esi
mov ecx, 0x318d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x497bc2
cmp byte [edi], 0x1b
jne 0x497bc2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x497bc7
lea edi, [esi + 0x94000]
mov eax, dword [edi]
or eax, eax
je 0x497c3f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9a150]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9a268]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x497bf4
mov ecx, edi
jns 0x497c23
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9a26c]
or eax, eax
je 0x497c39
mov dword [ebx], eax
add ebx, 4
jmp 0x497c11
call dword [esi + 0x9a27c]
mov ebp, dword [esi + 0x9a270]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x497c73
sub esp, 0xffffff80
jmp 0x453e3d
Function at 0x404690
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0x10325476
pop ebp
ret
Function at 0x40ceb0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov dword [ebp - 0x20c], 0
jmp 0x40ced4
mov eax, dword [ebp - 0x20c]
add eax, 1
mov dword [ebp - 0x20c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x20c]
cmp eax, dword [edx + 8]
jge 0x40cf20
mov ecx, dword [ebp - 0x20c]
push ecx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0xc]
call fcn.00405b78
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0x40f388
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40cec5
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 8]
sub edx, 1
mov dword [ebp - 0x20c], edx
jmp 0x40cf43
mov eax, dword [ebp - 0x20c]
sub eax, 1
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
jl 0x40cf87
mov ecx, dword [ebp - 0x20c]
push ecx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x10]
call fcn.00405b78
push eax
mov eax, dword [ebp + 0xc]
push eax
push str._s_s
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40cf34
mov esp, ebp
pop ebp
ret

Function at 0x40cf8b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx]
cmp edx, 0x22
jne 0x40cff8
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx]
test edx, edx
je 0x40cfdf
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x40cfd4
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x40cfdf
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x40cfb4
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0x20
jne 0x40cff3
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x40d023
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx]
test edx, edx
je 0x40d020
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
cmp ecx, 0x20
jne 0x40d015
mov eax, dword [ebp - 8]
add eax, 1
jmp 0x40d023
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x40cff8
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x404d87
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4460dc]
mov ecx, dword [0x445ea8]
sub esp, 0xc18
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x404e4b
push ebx
push edi
mov ebx, ecx
mov dword [ebp - 8], eax
cmp dword [0x4460dc], 0x959
jne 0x404e38
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessWorkingSetSize]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push esi
call edi
push esi
lea eax, [ebp - 0xc18]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
push 0x4047b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
call edi
push esi
push esi
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
call fcn.00404c25
add ebx, 8
dec dword [ebp - 8]
jne 0x404db0
pop edi
pop ebx
pop esi
leave
ret
Function at 0x407b1b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x419c70]
jne 0x407b25
repz ret
jmp fcn.0041066c

Function at 0x411870
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00408b27
and dword [ebp - 4], 0
cmp dword [0x444cfc], 0
mov ebx, eax
jne 0x411921
push 0x402760
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4119d2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402754
push edi
call esi
test eax, eax
je 0x4119d2
push eax
call fcn.00408ab5
mov dword [esp], 0x402744
push edi
mov dword [0x444cfc], eax
call esi
push eax
call fcn.00408ab5
mov dword [esp], 0x402730
push edi
mov dword [0x444d00], eax
call esi
push eax
call fcn.00408ab5
mov dword [esp], 0x402714
push edi
mov dword [0x444d04], eax
call esi
push eax
call fcn.00408ab5
pop ecx
mov dword [0x444d0c], eax
test eax, eax
je 0x411921
push 0x4026fc
push edi
call esi
push eax
call fcn.00408ab5
pop ecx
mov dword [0x444d08], eax
mov eax, dword [0x444d08]
cmp eax, ebx
je 0x411979
cmp dword [0x444d0c], ebx
je 0x411979
push eax
call fcn.00408b30
push dword [0x444d0c]
mov esi, eax
call fcn.00408b30
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x411979
test edi, edi
je 0x411979
call esi
test eax, eax
je 0x411970
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x411970
test byte [ebp - 0xc], 1
jne 0x411979
or dword [ebp + 0x10], 0x200000
jmp 0x4119b2
mov eax, dword [0x444d00]
cmp eax, ebx
je 0x4119b2
push eax
call fcn.00408b30
pop ecx
test eax, eax
je 0x4119b2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4119b2
mov eax, dword [0x444d04]
cmp eax, ebx
je 0x4119b2
push eax
call fcn.00408b30
pop ecx
test eax, eax
je 0x4119b2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x444cfc]
call fcn.00408b30
pop ecx
test eax, eax
je 0x4119d2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4119d4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401ad7
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x120], edx
cmp edx, 0x10
je 0x401c54
cmp edx, 0x18
je 0x401bba
cmp edx, 0x20
jne 0x401cb9
movdqu xmm0, xmmword [ecx]
movdqa xmmword [eax + 0x30], xmm0
movdqu xmm2, xmmword [ecx + 0x10]
movdqa xmmword [eax + 0x40], xmm2
xor ecx, ecx
add eax, 0x60
movzx edx, byte [ecx + 0x1158e4]
movdqa xmm1, xmm0
pslldq xmm1, 4
pxor xmm0, xmm1
movdqa xmm1, xmm0
pslldq xmm0, 4
pxor xmm1, xmm0
movdqa xmm3, xmm1
pslldq xmm1, 4
aeskeygenassist xmm0, xmm2, 0
pshufd xmm0, xmm0, 0xff
pxor xmm3, xmm1
pxor xmm3, xmm0
movd xmm0, edx
pshufd xmm0, xmm0, 0
pxor xmm0, xmm3
movdqa xmmword [eax - 0x10], xmm0
cmp ecx, 6
je 0x401cb9
movdqa xmm1, xmm2
pslldq xmm2, 4
pxor xmm1, xmm2
movdqa xmm2, xmm1
pslldq xmm1, 4
pxor xmm2, xmm1
movdqa xmm1, xmm2
pslldq xmm2, 4
pxor xmm1, xmm2
aeskeygenassist xmm2, xmm0, 0
pshufd xmm2, xmm2, 0xaa
pxor xmm2, xmm1
movdqa xmmword [eax], xmm2
inc ecx
add eax, 0x20
cmp ecx, 7
jb 0x401b16
jmp 0x401cb9
movdqu xmm0, xmmword [ecx]
movdqa xmmword [eax + 0x30], xmm0
movdqu xmm2, xmmword [ecx + 8]
psrldq xmm2, 8
movdqa xmmword [eax + 0x40], xmm2
xor ecx, ecx
add eax, 0x58
movzx edx, byte [ecx + 0x1158e4]
movdqa xmm1, xmm0
pslldq xmm1, 4
pxor xmm0, xmm1
movdqa xmm1, xmm0
pslldq xmm0, 4
pxor xmm1, xmm0
movdqa xmm3, xmm1
pslldq xmm1, 4
aeskeygenassist xmm0, xmm2, 0
pshufd xmm0, xmm0, 0x55
pxor xmm3, xmm1
pxor xmm3, xmm0
movd xmm0, edx
pshufd xmm0, xmm0, 0
pxor xmm0, xmm3
movdqu xmmword [eax - 0x10], xmm0
cmp ecx, 7
je 0x401cb9
movdqa xmm1, xmm2
pslldq xmm2, 4
pxor xmm1, xmm2
pshufd xmm2, xmm0, 0xff
pxor xmm2, xmm1
movq qword [eax], xmm2
inc ecx
add eax, 0x18
cmp ecx, 8
jb 0x401bd7
jmp 0x401cb9
movdqu xmm0, xmmword [ecx]
movdqa xmmword [eax + 0x30], xmm0
xor ecx, ecx
add eax, 0x40
movzx edx, byte [ecx + 0x1158e4]
movdqa xmm1, xmm0
aeskeygenassist xmm2, xmm0, 0
pslldq xmm1, 4
pxor xmm0, xmm1
movdqa xmm1, xmm0
pslldq xmm0, 4
pxor xmm1, xmm0
movdqa xmm3, xmm1
pslldq xmm1, 4
pshufd xmm0, xmm2, 0xff
pxor xmm3, xmm1
pxor xmm3, xmm0
movd xmm0, edx
pshufd xmm0, xmm0, 0
pxor xmm0, xmm3
movdqa xmmword [eax], xmm0
inc ecx
add eax, 0x10
cmp ecx, 0xa
jb 0x401c62
pop ebp
ret 4
Function at 0x40371b
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x111cfe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
push esi
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], eax
mov byte [esp + 0x30], al
mov dword [esp + 0x74], eax
push ebx
lea eax, [esp + 0x50]
push eax
push dword [ebp + 8]
call fcn.0040397c
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
push ecx
push dword [ebp + 8]
mov byte [esp + 0x80], 1
call fcn.004056f3
push 1
xor edi, edi
lea esi, [esp + 0x50]
call fcn.00406714
push 1
lea esi, [esp + 0x34]
mov byte [esp + 0x78], 4
call fcn.00406714
mov eax, dword [ebp + 8]
xor esi, esi
push esi
not ebx
push ebx
push dword [eax + 0xc]
push dword [eax + 8]
call fcn.0040390f
add esp, 0x10
mov ebx, eax
mov edi, edx
cmp dword [esp + 0x24], esi
jbe 0x4037fe
cmp dword [esp + 0x28], 0x10
mov ecx, dword [esp + 0x14]
mov eax, ecx
jae 0x4037d0
lea eax, [esp + 0x14]
mov al, byte [eax + esi]
add al, bl
cmp dword [esp + 0x28], 0x10
jae 0x4037e0
lea ecx, [esp + 0x14]
mov byte [ecx + esi], al
movzx eax, al
cdq
push edx
push eax
push edi
push ebx
call fcn.0040390f
add esp, 0x10
inc esi
mov ebx, eax
mov edi, edx
cmp esi, dword [esp + 0x24]
jb 0x4037bf
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x14]
push eax
call fcn.004066d9
push 1
xor edi, edi
lea esi, [esp + 0x18]
call fcn.00406714
mov ecx, dword [esp + 0x6c]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40390f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp - 4]
shrd eax, ecx, 0x19
shld ebx, edx, 7
shl edx, 7
shr ecx, 0x19
xor eax, edx
mov edx, dword [ebp + 0x14]
xor ecx, ebx
rol esi, 7
xor edi, edi
add esi, eax
mov eax, dword [ebp + 0x10]
adc edi, ecx
mov ecx, dword [ebp - 4]
call fcn.00410790
add esi, eax
adc edi, edx
add esi, 0x4e456def
adc edi, 0x58749df5
add dword [ebp + 8], esi
adc dword [ebp + 0xc], edi
inc dword [ebp - 4]
cmp dword [ebp - 4], 7
jb 0x40391a
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40530f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0
call dword [0x113108]
mov ebx, eax
mov eax, dword [ebx + 0x3c]
mov edi, dword [eax + ebx + 0x50]
add edi, ebx
lea edx, [edi - 0x18]
mov dword [ebp - 0xc], ebx
mov eax, ebx
cmp ebx, edx
jae 0x40535a
mov ecx, dword [eax]
test ecx, ecx
je 0x405355
mov esi, ecx
xor esi, 0x88bbdd8d
cmp dword [eax + 4], esi
jne 0x405355
xor ecx, 0xddbca2b2
cmp dword [eax + 8], ecx
je 0x405371
inc eax
cmp eax, edx
jb 0x405337
xor eax, eax
mov dword [0x11c038], eax
test eax, eax
jne 0x405466
push 0xfffffffffffffffe
call dword [0x11313c]
mov edx, dword [eax]
mov esi, dword [eax + 0xc]
lea ecx, [eax + 0x14]
mov eax, dword [eax + 0x10]
xor eax, edx
xor esi, edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x40535a
cmp esi, eax
ja 0x40535a
add ecx, esi
cmp ecx, edi
ja 0x40535a
mov edi, dword [0x113180]
push 4
push 0x3000
push esi
push 0
call edi
mov dword [ebp - 4], eax
test eax, eax
je 0x40535a
mov ebx, dword [ebp - 0x10]
add ebx, 0xa078c405
xor edx, edx
test esi, esi
je 0x4053f7
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov cl, dl
and cl, 0x1f
mov eax, ebx
rol eax, cl
ror ebx, 3
mov ecx, edx
add ebx, eax
mov eax, dword [ebp - 4]
ror ecx, 0xb
add ecx, 0x72462828
xor ebx, ecx
mov ecx, dword [ebp - 0x14]
add eax, edx
mov cl, byte [ecx + eax]
xor cl, bl
inc edx
mov byte [eax], cl
cmp edx, esi
jb 0x4053c8
cmp esi, dword [ebp - 8]
jne 0x405407
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
jmp 0x40535c
push 4
push 0x3000
push dword [ebp - 8]
push 0
call edi
mov esi, dword [0x11317c]
mov ebx, eax
mov edi, 0x8000
test ebx, ebx
je 0x405442
call fcn.0040143c
mov ecx, dword [ebp - 4]
push ebx
lea eax, [ebp - 8]
call fcn.0040147f
pop ecx
test eax, eax
je 0x405452
push edi
push 0
push ebx
call esi
push edi
push 0
push dword [ebp - 4]
call esi
mov ebx, dword [ebp - 0xc]
jmp 0x40535a
push 0x8000
push 0
push dword [ebp - 4]
call dword [0x11317c]
mov eax, ebx
jmp 0x4053ff
push ebx
call fcn.004068b4
pop ecx
call fcn.0040bb81
push eax
jmp 0x40536b
Function at 0x403c30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004228ca

Function at 0x408c70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d040
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x5f4e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 0
push str.CInstructions::DeleteModuleIfPartial
lea ecx, [ebp - 0x1c]
call fcn.0055c110
xor bl, bl
cmp dword [ebp + 0xc], 0xffffffff
mov dword [ebp - 4], 0
je 0x408d22
lea ecx, [ebp - 0x30]
call fcn.00426bfe
mov esi, dword [ebp + 8]
push 0
push 0
push dword [esi]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00427192
cmp eax, 1
jne 0x408d16
lea ecx, [ebp - 0x30]
call fcn.004270b5
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
cdq
cmp ecx, eax
jne 0x408cf3
cmp dword [ebp - 0x10], edx
je 0x408d16
lea ecx, [ebp - 0x30]
mov bl, 1
call fcn.00426edc
push dword [esi]
push str._CInstructions::DeleteModuleIfPartial__Deleting_incomplete_file___s__from_tmp
push 2
call fcn.0055b030
add esp, 0xc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00426c74
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.0055c180
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
Function at 0x40a060
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d338
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5f4e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 1
push 0
push str.CInstructions::RegisterPackageAndComponents
lea ecx, [ebp - 0x28]
call fcn.0055c110
lea eax, [edi + 0xc]
push eax
mov dword [ebp - 4], 0
call fcn.00407330
mov esi, dword [edi + 0x2c]
add esp, 4
cmp esi, dword [edi + 0x30]
je 0x40a140
or ebx, 0xffffffff
lea ecx, [ecx]
mov ecx, dword [esi]
lea eax, [ebp - 0x10]
push eax
call fcn.00408eb0
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp dword [eax - 0xc], 0
je 0x40a161
mov ecx, dword [esi]
lea eax, [ebp - 0x14]
push eax
call fcn.00408f80
lea ecx, [ebp - 0x10]
push ecx
push eax
mov byte [ebp - 4], 4
call fcn.00407090
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
add esp, 8
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a118
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
add esi, 8
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a13b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, dword [edi + 0x30]
jne 0x40a0c0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0055c180
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004157e7
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40a17d
push 0x80004005
call fcn.00401220
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [esi]
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 2
call fcn.00409420
push dword [eax]
lea eax, [ebp - 0x14]
push str.There_is_no_checksum_associated_with_module___s_.
push eax
mov byte [ebp - 4], 3
call fcn.00403f60
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40a1ce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00558540
push 0x5d5bd4
lea eax, [ebp - 0x1c]
push eax
call fcn.00539d5c
int3
Function at 0x40d080
Capabilities:
Query or enumerate registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d8ec
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x5f4e20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0xec]
push eax
push 1
push 0
push str.SoftwareMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d295
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0xd8]
push eax
push 0
push 0
push str.Version
push dword [ebp - 0xec]
mov dword [ebp - 0xf0], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d285
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0xe0]
call fcn.00401030
lea eax, [ebp - 0xe4]
push eax
push 0x58782c
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0xe0]
mov dword [ebp - 4], 0
mov dword [ebp - 0xe4], 0
call fcn.00402cd0
push dword [ebp - 0xdc]
mov byte [ebp - 4], 1
call fcn.0053b05e
add esp, 4
or esi, 0xffffffff
cmp eax, 5
jle 0x40d169
mov bl, 1
jmp 0x40d23e
push dword [ebp - 0xdc]
call fcn.0053b05e
add esp, 4
cmp eax, 5
jne 0x40d23e
lea eax, [ebp - 0xe4]
push eax
push 0x58782c
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0xe0]
call fcn.00402cd0
push eax
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 2
call fcn.00401f90
mov edx, dword [ebp - 0xe8]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d1d1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0xdc]
call fcn.0053b05e
add esp, 4
test eax, eax
jle 0x40d1e7
mov bl, 1
jmp 0x40d23e
lea eax, [ebp - 0xe4]
push eax
push 0x58782c
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0xe0]
call fcn.00402cd0
push eax
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 3
call fcn.00401f90
lea ecx, [ebp - 0xe8]
call fcn.004010f0
push dword [ebp - 0xdc]
call fcn.0053b05e
movzx ebx, bl
add esp, 4
mov ecx, 1
cmp eax, 0xc1f
cmovge ebx, ecx
mov edx, dword [ebp - 0xdc]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d261
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xe0]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40d285
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0xec]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x40d2b1
push 0
push str.Installation_Error
push 0x587830
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00539659
mov esp, ebp
pop ebp
ret