joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423b68
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x10c
push 8
push dword [0x4abcb4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x4acfd0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x4acfd4], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 1
mov dword [esi + 0x78], 7
mov dword [esi], 0x422ae7
mov dword [esi + 4], 0x422ba2
mov dword [esi + 8], 0x422c35
mov dword [esi + 0xc], 0x422d6d
mov dword [esi + 0x10], 0x422e3a
mov dword [esi + 0x14], 0x422e94
mov dword [esi + 0x18], 0x422ed4
mov dword [esi + 0x1c], 0x422eec
mov dword [esi + 0x20], fcn.00422f04
mov dword [esi + 0x24], 0x4231e0
mov dword [esi + 0x28], fcn.00423055
mov dword [esi + 0x2c], 0x4231fc
mov dword [esi + 0x30], 0x4232de
mov dword [esi + 0x34], 0x423409
mov dword [esi + 0x38], 0x422c72
mov dword [esi + 0x3c], 0x4234aa
mov dword [esi + 0x40], 0x422b05
mov dword [esi + 0x44], 0x42354d
mov dword [esi + 0x48], 0x423631
mov dword [esi + 0x4c], 0x423680
mov dword [esi + 0x50], 0x423742
mov dword [esi + 0x54], 0x4238ef
mov dword [esi + 0x58], 0x423a33
mov dword [esi + 0x5c], 0x423aee
mov dword [esi + 0x60], 0x4239f2
mov dword [esi + 0x64], 0x4239ab
mov eax, esi
pop esi
ret

Function at 0x424b77
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov dword [0x4acb94], eax
cmp eax, edi
je 0x424baa
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4acb98], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x4acb90], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x424be8
cmp dword [ebp - 0xc], 1
je 0x424bf9
cmp dword [ebp - 0xc], 2
jne 0x424be8
cmp dword [ebp - 0x18], 5
jb 0x424bf9
jne 0x424be8
cmp dword [ebp - 0x14], edi
jne 0x424be8
mov dword [0x4acb90], edi
cmp dword [0x4acb90], edi
je 0x424bff
call fcn.00424abe
test eax, eax
jne 0x424bff
mov dword [0x4acb90], edi
pop edi
add ebp, 0x78
leave
ret
Function at 0x4405d0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x440666
push ebx
push ebp
push esi
mov esi, dword [ecx]
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov esi, dword [ecx + 4]
xor eax, eax
push edi
cmp esi, edx
jle 0x44061d
mov edi, dword [ecx]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
shl eax, 8
xor eax, dword [ebx*4 + 0x45baf0]
inc edx
cmp edx, esi
jl 0x440601
xor edx, edx
mov esi, dword [ecx + 0xc]
cmp esi, edx
jle 0x440641
mov edi, dword [ecx + 8]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
shl eax, 8
xor eax, dword [ebx*4 + 0x45baf0]
inc edx
cmp edx, esi
jl 0x440627
mov edx, dword [ecx]
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
pop edi
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
pop esi
shr eax, 0x18
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret
Function at 0x441530
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
push ebx
push esi
push edi
push eax
push ecx
mov ebx, 1
xor esi, esi
mov dword [ebp - 8], esi
push ebx
call fcn.00449e90
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
add esp, 0xc
test edx, edx
je 0x4416ed
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, 0x7fffffff
mov dword [ecx + 0x280], eax
mov dword [edx + 0x284], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [sym.imp.MSVCRT.dll_longjmp]
mov dword [eax + 0x288], esi
mov eax, dword [ebp - 4]
push 0x40
push edx
push eax
mov dword [ecx + 0x28c], esi
call fcn.00444f00
push esi
push eax
call sub.MSVCRT.dll__setjmp3
add esp, 0x14
test eax, eax
je 0x4415b2
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
mov edx, dword [ebp - 4]
push esi
push ecx
push edi
push edx
call fcn.00449f60
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push ecx
push edx
push eax
call fcn.00444f60
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push ecx
push edx
call fcn.00444340
add esp, 0x28
test eax, eax
jne 0x4415f3
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
test eax, eax
jne 0x441635
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xb4], 0x2000
mov eax, dword [edx + 0xb4]
mov ecx, dword [ebp - 4]
push eax
push ecx
call fcn.0044a080
mov edx, dword [ebp - 4]
mov dword [edx + 0xb0], eax
mov eax, dword [ebp - 4]
add esp, 8
cmp dword [eax + 0xb0], 0
jne 0x441635
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov dword [ecx + 0x98], 0x442890
mov ecx, dword [ebp - 4]
mov dword [edx + 0x9c], fcn.004428e0
mov edx, dword [ebp - 8]
mov dword [ecx + 0xa0], eax
test edx, edx
jne case.0x441680.0
mov eax, dword [ebp - 4]
push 0x38
add eax, 0x78
push str.1.2.8
push eax
call fcn.00457690
add eax, 6
add esp, 0xc
cmp eax, 6
ja case.0x441680.5
jmp dword [eax*4 + 0x441730]
push str.zlib_memory_error
jmp 0x4416a9
mov edx, dword [ebp - 4]
push str.zlib_stream_error
push edx
jmp 0x4416ad
mov eax, dword [ebp - 4]
push str.zlib_version_error
push eax
jmp 0x4416ad
push str.Unknown_zlib_error
mov ecx, dword [ebp - 4]
push ecx
call fcn.00444f90
mov dword [ebp - 8], ebx
add esp, 8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
test edx, edx
mov edx, dword [ebp - 4]
je 0x4416f6
mov ecx, dword [eax + 0xb0]
push ecx
push edx
call fcn.0044a050
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
push edi
push esi
push ecx
mov dword [eax + 0xb0], 0
call fcn.00449f10
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0xb0]
mov dword [edx + 0x84], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0xb4]
mov eax, dword [ebp - 4]
push 0
push 0
push eax
mov dword [ecx + 0x88], edx
call fcn.004451f0
mov eax, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x444f20
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x444f3a
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x444f3a
mov edx, dword [esp + 8]
push edx
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x450d7a
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x184
push 8
push dword [0x4abcb4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x4acfd0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x4acfd4], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.0045734f
mov dword [esi + 0x58], 0x450cec
mov dword [esi + 0x5c], 0x450d38
mov dword [esi + 0x10], fcn.0044fe7e
mov dword [esi + 0x30], 0x450006
mov dword [esi + 0x64], 0x450112
mov dword [esi + 0x60], 0x45015f
mov dword [esi + 0x34], 0x450885
mov dword [esi + 0x24], 0x450724
mov dword [esi + 0x28], 0x45074d
mov dword [esi + 0x2c], 0x450778
mov dword [esi + 0x44], 0x450b76
mov eax, esi
pop esi
ret 4

Function at 0x452147
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x20], 0
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ecx + 0xd4]
mov dword [ebp - 4], esi
je 0x4521ce
imul esi, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
imul eax, dword [ebp + 0x18]
neg dword [ebp + 0x10]
add eax, dword [ebp + 8]
push ebx
lea edx, [eax + edx*4]
push edi
mov eax, dword [ecx + 0xcc]
imul eax, dword [ebp + 0x14]
add eax, dword [ecx + 0xc8]
mov edi, edx
add eax, esi
cmp dword [ebp + 0x1c], 0
jle 0x4521af
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x18], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add eax, dword [ebp - 4]
add edi, 4
dec dword [ebp + 0x18]
jne 0x452194
dec dword [ebp + 0x20]
inc dword [ebp + 0x14]
cmp dword [ecx + 0xe8], 0
jne 0x4521c3
add edx, dword [ebp + 0x10]
jmp 0x4521c6
add edx, dword [ebp + 0xc]
cmp dword [ebp + 0x20], 0
jne 0x452174
pop edi
pop ebx
pop esi
leave
ret 0x1c
Function at 0x4530f1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x20], 0
mov edx, dword [ecx + 0xd4]
push edi
mov edi, dword [ebp + 0xc]
je 0x45317f
mov dword [ebp - 4], edi
imul edi, dword [ebp + 0x18]
imul eax, eax, 3
add edi, dword [ebp + 8]
neg dword [ebp - 4]
push ebx
push esi
mov esi, edx
imul esi, dword [ebp + 0x10]
add edi, eax
mov dword [ebp + 0x10], edi
mov eax, dword [ecx + 0xcc]
imul eax, dword [ebp + 0x14]
add eax, dword [ecx + 0xc8]
add eax, esi
cmp dword [ebp + 0x1c], 0
jle 0x45315a
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x18], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add edi, 3
add eax, edx
dec dword [ebp + 0x18]
jne 0x453140
dec dword [ebp + 0x20]
inc dword [ebp + 0x14]
cmp dword [ecx + 0xe8], 0
mov edi, dword [ebp + 0x10]
jne 0x453171
add edi, dword [ebp - 4]
jmp 0x453174
add edi, dword [ebp + 0xc]
cmp dword [ebp + 0x20], 0
mov dword [ebp + 0x10], edi
jne 0x453122
pop esi
pop ebx
pop edi
leave
ret 0x1c

Function at 0x4531e8
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
imul eax, eax, 3
cmp dword [ebp + 0x18], 0
mov dword [ebp - 8], eax
je 0x453294
mov eax, dword [ebp + 0xc]
imul ecx, ecx, 3
neg eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x14]
add eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
imul esi, esi, 3
add ecx, eax
mov dword [ebp + 0x14], ecx
mov edx, dword [ebp - 8]
mov dword [ebp + 8], ecx
mov ecx, dword [edi + 0xcc]
imul ecx, dword [ebp + 0x10]
add ecx, dword [edi + 0xc8]
add ecx, esi
test edx, edx
jle 0x45326f
mov eax, 0xff
sub eax, dword [ebp + 0x1c]
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 8]
movzx edx, byte [edx]
movzx eax, byte [ecx]
imul edx, dword [ebp + 0x1c]
imul eax, dword [ebp - 0xc]
add eax, edx
cdq
mov ebx, 0xff
idiv ebx
inc dword [ebp + 8]
mov byte [ecx], al
inc ecx
dec dword [ebp - 4]
jne 0x453249
dec dword [ebp + 0x18]
inc dword [ebp + 0x10]
cmp dword [edi + 0xe8], 0
mov ecx, dword [ebp + 0x14]
jne 0x453286
add ecx, dword [ebp - 0x10]
jmp 0x453289
add ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x18], 0
mov dword [ebp + 0x14], ecx
jne 0x45321f
pop esi
pop ebx
leave
ret 0x18
Function at 0x401470
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
call fcn.0046d4f0
test eax, eax
je 0x4014f6
push 0
push str.CAddRmv::OpenARWindow_n
push 0x633a88
call fcn.00599ee3
mov eax, dword [str.ENTRY:]
mov ecx, dword [0x5ccf7c]
mov dword [0x633988], eax
mov eax, 0x633a88
mov dword [0x63398c], ecx
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4014b2
mov edi, 0x633988
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4014c3
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d500
push 0x633988
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
push 0x3c
lea edx, [ebp - 0x3c]
push 0
push edx
call fcn.00599fb0
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0x540
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x2c], str.control.exe
mov dword [ebp - 0x28], str.appwiz.cpl
mov dword [ebp - 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x40155f
call fcn.0046d4f0
test eax, eax
je 0x40155f
push str.ShellExecuteEx__FALSE_n
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d4f0
test eax, eax
je 0x4015e4
push 0
push str.CAddRmv::OpenARWindow_n
push 0x633888
call fcn.00599ee3
mov ecx, dword [str.EXIT:]
mov edx, dword [0x5ccefc]
mov eax, 0x633888
mov dword [0x633788], ecx
add esp, 0xc
mov dword [0x63378c], edx
mov ecx, eax
jmp 0x4015a0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4015a0
mov edi, 0x633788
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4015b1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x633788
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d510
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4015f0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x6319d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x10c], ebx
call fcn.0046d4f0
test eax, eax
je 0x401693
push 0
push str.CAddRmv::SendF5ToWindow_n
push 0x633e88
call fcn.00599ee3
mov eax, dword [str.ENTRY:]
mov ecx, dword [0x5ccf7c]
mov dword [0x633d88], eax
mov eax, 0x633e88
mov dword [0x633d8c], ecx
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401648
mov edi, 0x633d88
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401660
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d500
push 0x633d88
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
lea edx, [ebp - 0x108]
push edx
mov ecx, ebx
call section..text
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x401731
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
push 1
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
call fcn.0049cbe0
test eax, eax
je 0x401703
push 0
push 0xa220
push 0x111
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
push 0
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
jmp 0x40174b
push esi
mov esi, dword [ebp - 0x10c]
mov ecx, esi
call fcn.00401220
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.00401470
push 0
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
jmp 0x40174b
call fcn.0046d4f0
test eax, eax
je 0x40174b
push str.No_Window_n
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d4f0
test eax, eax
je 0x4017cb
push 0
push str.CAddRmv::SendF5ToWindow_n
push 0x633c88
call fcn.00599ee3
mov ecx, dword [str.EXIT:]
mov edx, dword [0x5ccefc]
mov eax, 0x633c88
mov dword [0x633b88], ecx
add esp, 0xc
mov dword [0x633b8c], edx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401787
mov edi, 0x633b88
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401798
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x633b88
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d510
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00599ed4
mov esp, ebp
pop ebp
ret
Function at 0x401b80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401b9b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401bd2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401bce
jmp 0x401bc0
cmp esi, eax
jae 0x401bd2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401bc0
cmp esi, eax
jb 0x401bd9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x409000
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3846
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6319d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp + 8]
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.004022e0
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [esi + 4]
sub eax, 0x10
push eax
mov dword [ebp - 4], 0
call fcn.004022e0
add eax, 0x10
mov dword [ebx + 4], eax
mov eax, dword [esi + 8]
sub eax, 0x10
push eax
mov byte [ebp - 4], 1
call fcn.004022e0
add eax, 0x10
mov dword [ebx + 8], eax
mov eax, dword [esi + 0xc]
sub eax, 0x10
push eax
mov byte [ebp - 4], 2
call fcn.004022e0
add eax, 0x10
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
sub eax, 0x10
push eax
mov byte [ebp - 4], 3
call fcn.004022e0
add eax, 0x10
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
sub eax, 0x10
push eax
mov byte [ebp - 4], 4
call fcn.004022e0
add eax, 0x10
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
sub eax, 0x10
push eax
mov byte [ebp - 4], 5
call fcn.004022e0
add eax, 0x10
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 0x1c]
sub eax, 0x10
push eax
mov byte [ebp - 4], 6
call fcn.004022e0
add esp, 0x20
add eax, 0x10
mov dword [ebx + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [ebx + 0x20], eax
mov ecx, dword [esi + 0x24]
mov dword [ebx + 0x24], ecx
mov edx, dword [esi + 0x28]
mov dword [ebx + 0x28], edx
mov eax, dword [esi + 0x2c]
mov dword [ebx + 0x2c], eax
mov ecx, dword [esi + 0x30]
mov dword [ebx + 0x30], ecx
mov edx, dword [esi + 0x34]
mov dword [ebx + 0x34], edx
mov eax, dword [esi + 0x38]
mov dword [ebx + 0x38], eax
mov ecx, dword [esi + 0x3c]
mov byte [ebp - 4], 7
push fcn.00406e40
push fcn.00408460
push 5
push 8
lea edx, [esi + 0x40]
push edx
lea eax, [ebx + 0x40]
push eax
mov dword [ebx + 0x3c], ecx
call fcn.0059b723
mov eax, dword [esi + 0x68]
sub eax, 0x10
push eax
call fcn.004022e0
add eax, 0x10
mov dword [ebx + 0x68], eax
mov eax, dword [esi + 0x6c]
sub eax, 0x10
push eax
mov byte [ebp - 4], 8
call fcn.004022e0
add eax, 0x10
mov dword [ebx + 0x6c], eax
mov eax, dword [esi + 0x70]
sub eax, 0x10
push eax
mov byte [ebp - 4], 9
call fcn.004022e0
add eax, 0x10
mov dword [ebx + 0x70], eax
mov eax, dword [esi + 0x74]
sub eax, 0x10
push eax
mov byte [ebp - 4], 0xa
call fcn.004022e0
mov edx, dword [ebp + 8]
add eax, 0x10
mov dword [ebx + 0x74], eax
mov ecx, dword [esi + 0x78]
mov dword [ebx + 0x78], ecx
add esp, 0x10
add esi, 0x7c
lea edi, [ebx + 0x7c]
mov ecx, 0x146
rep movsd dword es:[edi], dword [esi]
mov eax, dword [edx + 0x594]
mov dword [ebx + 0x594], eax
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 4
Function at 0x4091c0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3878
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6319d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0046d4f0
test eax, eax
je 0x409266
push 0
push str.CInstall_::_CleanUpFilesAndRegistryAfterInstall_n
push 0x639f88
call fcn.00599ee3
mov eax, dword [str.ENTRY:]
mov ecx, dword [0x5ccf7c]
mov dword [0x639e88], eax
mov eax, 0x639f88
mov dword [0x639e8c], ecx
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409222
mov edi, 0x639e88
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409233
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d500
push 0x639e88
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
push 0x5cdad4
add ebx, 0x4fb4
lea edx, [ebp - 0x10]
push ebx
push edx
call fcn.004029d0
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call fcn.0046d4f0
test eax, eax
je 0x409314
push 0
push str.CInstall_::_CleanUpFilesAndRegistryAfterInstall_n
push 0x639d88
call fcn.00599ee3
mov ecx, dword [str.EXIT:]
mov edx, dword [0x5ccefc]
mov eax, 0x639d88
mov dword [0x639c88], ecx
add esp, 0xc
mov dword [0x639c8c], edx
mov ecx, eax
jmp 0x4092d0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4092d0
mov edi, 0x639c88
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4092e1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x639c88
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d510
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40933a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call 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