joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x230
nop
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4022b0
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword fs:[0], eax
xor ecx, ecx
nop dword [eax + eax]
nop
mov byte [ebp + ecx - 0x13c], cl
mov eax, ecx
cdq
idiv esi
movzx eax, byte [edi + edx]
mov byte [ebp + ecx - 0x23c], al
lea eax, [ecx + 1]
mov byte [ebp + ecx - 0x13b], al
cdq
idiv esi
movzx eax, byte [edi + edx]
mov byte [ebp + ecx - 0x23b], al
add ecx, 2
cmp ecx, 0x100
jne 0x401430
mov eax, 1
xor ecx, ecx
nop word cs:[eax + eax]
nop
movzx edx, byte [ebp + eax - 0x13d]
add cl, dl
add cl, byte [ebp + eax - 0x23d]
movzx esi, cl
mov dh, byte [ebp + esi - 0x13c]
mov byte [ebp + eax - 0x13d], dh
mov byte [ebp + esi - 0x13c], dl
movzx edx, byte [ebp + eax - 0x13c]
add cl, dl
add cl, byte [ebp + eax - 0x23c]
movzx esi, cl
mov dh, byte [ebp + esi - 0x13c]
mov byte [ebp + eax - 0x13c], dh
mov byte [ebp + esi - 0x13c], dl
add eax, 2
cmp eax, 0x101
jne 0x401480
cmp dword [ebp + 0xc], 0
jle 0x401603
nop
mov dword [ebp - 0x10], 0
xor esi, esi
nop
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0
nop
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], 0
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov eax, dword [ebp - 0x20]
nop
mov dword [ebp - 0x24], eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_CryptContextAddRef]
mov esi, dword [ebp - 0x20]
lea eax, [esi + 1]
lea ecx, [esi + 0x100]
test eax, eax
cmovns ecx, eax
and ecx, 0xffffff00
neg ecx
add esi, ecx
inc esi
test byte [ebp - 0x28], 1
jne 0x40159d
nop
mov dword [ebp - 0x24], esi
push 0x1000
mov dword [ebp - 0x20], esi
call fcn.004084f1
mov ecx, dword [ebp - 0x20]
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x40158b
nop
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x20]
nop
mov dword [ebp - 0x24], ecx
push eax
push 0x419f2d
call fcn.004016a0
mov ecx, dword [ebp - 0x20]
add esp, 8
nop
mov dword [ebp - 0x24], ecx
push dword [ebp - 0x2c]
call fcn.004084d6
mov esi, dword [ebp - 0x20]
add esp, 4
nop
movzx eax, byte [ebp + esi - 0x13c]
mov edx, dword [ebp - 0x30]
add dl, al
movzx edx, dl
movzx ecx, byte [ebp + edx - 0x13c]
mov byte [ebp + esi - 0x13c], cl
mov dword [ebp - 0x30], edx
mov byte [ebp + edx - 0x13c], al
add al, byte [ebp + esi - 0x13c]
movzx eax, al
movzx eax, byte [ebp + eax - 0x13c]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x28]
xor byte [ecx + edx], al
inc edx
mov dword [ebp - 0x28], edx
cmp dword [ebp + 0xc], edx
jne 0x401500
jmp 0x401603
nop
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x230
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401700
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, dword [0x41e600]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0x9385646d
push dword [0x41f058]
call section..text
add esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
call edx
push 0x1c
push section..data
push 0x549
push 0x41e01c
call fcn.004013f0
add esp, 0x10
push 9
push section..rdata
push edi
push esi
call fcn.004013f0
add esp, 0x10
push 0x8aafdc01
push dword [0x41f058]
call section..text
add esp, 8
lea ecx, [ebp - 0x14]
push ecx
push 0x40
push 0x549
push 0x41e01c
call eax
test eax, eax
jne 0x401799
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004023ae
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x10]
push esi
mov edx, 0x41e01c
mov ecx, 0x27
xor ecx, 0x1af
add edx, ecx
call edx
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401d20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x128
nop
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4022e0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea ecx, [ebp - 0x134]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 8
call fcn.0040233a
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], eax
nop
mov dword [ebp - 0x10], 1
push 8
call fcn.0040233a
add esp, 4
lea ecx, [ebp - 0x134]
mov dword [eax], ecx
mov dword [eax + 4], 0x4017c0
mov dword [ebp - 0x28], eax
nop
mov ecx, dword [ebp - 0x2c]
add ecx, 4
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x2c], ecx
push ecx
push 0
push eax
push 0x4020c0
push 0
push 0
call fcn.00406f8f
add esp, 0x18
nop
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
test eax, eax
je 0x401ed1
nop
mov dword [ebp - 0x28], 0
nop
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
test esi, esi
je 0x401ee5
call sub.KERNEL32.dll_GetCurrentThreadId
cmp esi, eax
je 0x401ef4
nop
push 0
mov esi, dword [ebp - 0x20]
push dword [esi + 4]
push dword [esi]
call fcn.00402e05
add esp, 0xc
test eax, eax
jne 0x401f03
nop
mov dword [esi], 0
mov dword [esi + 4], 0
nop
push dword [ebp - 0x20]
call fcn.0040236a
add esp, 4
mov dword [ebp - 0x10], 0xffffffff
push 4
call fcn.0040233a
add esp, 4
mov dword [eax], 0x401c30
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 0
push ecx
push 0
push eax
push 0x4021f0
push 0
push 0
call fcn.00406f8f
add esp, 0x18
nop
mov dword [ebp - 0x28], eax
test eax, eax
je 0x401f12
nop
mov dword [ebp - 0x30], 0
nop
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x401f24
call sub.KERNEL32.dll_GetCurrentThreadId
cmp esi, eax
je 0x401f36
nop
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.00402e05
add esp, 0xc
test eax, eax
jne 0x401f48
nop
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
nop
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
xor eax, eax
add esp, 0x128
pop esi
pop edi
pop ebx
pop ebp
ret
nop
mov eax, dword [ebp - 0x2c]
mov dword [eax], 0
push 6
call fcn.0040276d
add esp, 4
nop
mov dword [ebp - 0x10], 0xffffffff
push 1
call fcn.0040276d
nop
mov dword [ebp - 0x10], 0xffffffff
push 5
call fcn.0040276d
nop
mov dword [ebp - 0x10], 0xffffffff
push 2
call fcn.0040276d
nop
mov dword [ebp - 0x24], 0
push 6
call fcn.0040276d
add esp, 4
nop
mov dword [ebp - 0x10], 4
push 1
call fcn.0040276d
add esp, 4
nop
mov dword [ebp - 0x10], 4
push 5
call fcn.0040276d
add esp, 4
nop
mov dword [ebp - 0x10], 4
push 2
call fcn.0040276d
add esp, 4
nop word [eax + eax]
push ebp
sub esp, 0x18
add ebp, 0xc
lea ecx, [ebp - 0x28]
call fcn.00402170
add esp, 0x18
pop ebp
ret
Function at 0x403834
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x403869
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x403866
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x403872
add edx, 0x28
cmp edx, esi
jne 0x403854
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x40386f

Function at 0x40398e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4039cd
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4039cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4039cd
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4039cd
cmp dword [ecx + 0x74], 0xe
jbe 0x4039cd
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x409570
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40959d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40959d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4098ed
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416f44
push 0x416f3c
push str.FlsAlloc
push 0x1f
call fcn.00409c79
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409921
push dword [ebp + 8]
mov ecx, esi
call dword [0x41ca18]
call esi
jmp 0x409927
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40996b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416f54
push 0x416f4c
push str.FlsGetValue
push 0x21
call fcn.00409c79
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4099a2
push dword [ebp + 8]
mov ecx, esi
call dword [0x41ca18]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4099aa
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416f5c
push 0x416f54
push str.FlsSetValue
push 0x22
call fcn.00409c79
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4099e4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41ca18]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40e442
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40e4df
push ebx
push esi
call fcn.0040e4e2
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040e346
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40e48c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40e4de
push edi
push eax
call fcn.0040b8c6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40e4ac
call fcn.0040af1b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40e4dd
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040e346
add esp, 0x20
test eax, eax
jne 0x40e4cb
push edi
call fcn.0040af1b
jmp 0x40e4d3
push ebx
call fcn.0040af1b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4c5f51
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4cd3a0
cmp edx, dword [eax]
je 0x4c5f73
add eax, 8
inc ecx
cmp eax, 0x4cd430
jl 0x4c5f64
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4cd3a0]
jne 0x4c60a1
mov eax, dword [0x4d2dd0]
cmp eax, 1
je 0x4c607b
test eax, eax
jne 0x4c5fa4
cmp dword [0x4cd2c8], 1
je 0x4c607b
cmp edx, 0xfc
je 0x4c60a1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c5fdb
lea eax, [ebp - 0x1a4]
push 0x4cb6b8
push eax
call fcn.004c6930
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c6dc0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c601e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c6dc0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cb6b4
push edi
call fcn.004c8c90
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4cb698
push eax
call fcn.004c6930
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c6940
lea eax, [ebp - 0xa0]
push 0x4cb694
push eax
call fcn.004c6940
push dword [esi + 0x4cd3a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c6940
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4cb66c
push eax
call fcn.004c8c04
add esp, 0x2c
pop edi
jmp 0x4c60a1
lea eax, [ebp + 8]
lea esi, [esi + 0x4cd3a4]
push 0
push eax
push dword [esi]
call fcn.004c6dc0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401a10
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415780
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xc
mov eax, dword [0x4473c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov byte [ebp - 0x15], 0
mov eax, dword fs:[0x30]
mov al, byte [eax + 2]
mov byte [ebp - 0x15], al
movsx eax, byte [ebp - 0x15]
test eax, eax
je 0x401a67
mov byte [ebp - 0x16], 1
jmp 0x401a6b
mov byte [ebp - 0x16], 0
mov al, byte [ebp - 0x16]
jmp 0x401a93
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040a33b
mov esp, ebp
pop ebp
ret
Function at 0x405c90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x405cb4
xor eax, eax
jmp 0x405d34
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x405ccb
xor eax, eax
jmp 0x405d34
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x405d17
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x405d17
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x405cee
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x405d23
xor eax, eax
jmp 0x405d34
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x405d31
xor eax, eax
jmp 0x405d34
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x410f89
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4473c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040c231
mov dword [ebp - 0x14], eax
cmp dword [0x4498c8], edi
jne 0x41107a
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x411007
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41115a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41115a
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41115a
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4498c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4498cc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4498d0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4498d8], eax
test eax, eax
je 0x411077
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4498d4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41109f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x411092
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4110b4
push 4
pop eax
jmp 0x41115c
cmp dword [ebp - 0x14], edi
je 0x4110b4
push dword [0x4498c8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x411099
mov eax, dword [0x4498d4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x411112
cmp dword [0x4498d8], esi
je 0x411112
push eax
call ebx
push dword [0x4498d8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x411112
test eax, eax
je 0x411112
call ecx
test eax, eax
je 0x411107
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x411107
test byte [ebp - 8], 1
jne 0x411112
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x411142
mov eax, dword [0x4498cc]
cmp eax, esi
je 0x41113f
push eax
call ebx
test eax, eax
je 0x41113f
call eax
mov edi, eax
test edi, edi
je 0x41113f
mov eax, dword [0x4498d0]
cmp eax, esi
je 0x41113f
push eax
call ebx
test eax, eax
je 0x41113f
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4498c8]
call ebx
test eax, eax
je 0x41115a
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41115c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a33b
leave
ret
Function at 0x4098a5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1044
call fcn.0040e630
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp word [esi], bx
je 0x409aa3
push esi
call fcn.0040e5ba
pop ecx
cmp eax, 0x7f6
jae 0x409aa3
push edi
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.0040e540
movzx ecx, word [esi]
add esp, 0xc
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], 0x1c0
cmp cx, 0x22
jne 0x409900
lea eax, [esi + 2]
mov dword [ebp - 0x34], eax
jmp 0x409903
mov dword [ebp - 0x34], esi
xor eax, eax
cmp cx, bx
je 0x409959
mov ecx, esi
cmp word [ecx], 0x22
jne 0x40992b
jmp 0x40991b
cmp word [esi + eax*2], 0x22
je 0x409924
inc eax
cmp word [esi + eax*2], bx
jne 0x409914
jmp 0x40992b
push 0x20
pop ecx
mov word [esi + eax*2], cx
cmp word [esi + eax*2], 0x20
je 0x409945
cmp word [esi + eax*2 + 2], 0x2f
je 0x409945
inc eax
lea ecx, [esi + eax*2]
cmp word [ecx], bx
jne 0x40990c
jmp 0x409959
lea eax, [esi + eax*2]
cmp word [eax], 0x20
jne 0x409953
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x409965
cmp word [eax], bx
jne 0x40997a
cmp byte [ebp + 0xc], bl
jne 0x40997a
cmp word [0x43265a], bx
je 0x40997a
mov dword [ebp - 0x30], 0x43265a
push dword [ebp - 0x34]
mov dword [ebp - 0x28], 1
call fcn.00406717
mov edi, eax
cmp edi, ebx
je 0x4099a5
push str..inf
push edi
call fcn.0040c927
test eax, eax
jne 0x4099a5
mov dword [ebp - 0x38], str.Install
push dword [ebp - 0x34]
call fcn.00403adb
test al, al
je 0x4099ce
push 0x800
lea eax, [ebp - 0x1044]
push eax
push dword [ebp - 0x34]
call fcn.004067a5
lea eax, [ebp - 0x1044]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x409aa2
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov byte [ebp - 1], bl
cmp byte [0x431650], bl
jne 0x4099fe
cmp byte [ebp + 0xc], bl
jne 0x4099fe
cmp byte [0x43163d], bl
je 0x409a5e
cmp dword [ebp + 8], ebx
je 0x409a1a
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x409a1a
push ebx
push dword [ebp + 8]
call esi
mov byte [ebp - 1], 1
push 0x7d0
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0xc]
call fcn.00408cfc
cmp byte [0x43163d], bl
je 0x409a5e
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x409a5e
mov eax, dword [ebp - 8]
add eax, 0x3e8
cmp eax, dword [0x431640]
jbe 0x409a5e
mov dword [0x431640], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x409a7a
push 0x41e724
push edi
call fcn.0040c927
test eax, eax
je 0x409a91
cmp byte [0x431650], bl
je 0x409a91
cmp byte [ebp + 0xc], bl
jne 0x409a91
mov dword [0x431644], 0x1b58
cmp byte [ebp - 1], bl
je 0x409aa2
cmp byte [ebp + 0xc], bl
je 0x409aa2
push 1
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x407f00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x6cdff0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], 0
call fcn.00405f60
mov ecx, eax
call fcn.00406820
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x408074
mov eax, 1
shl eax, 2
mov byte [ebp + eax - 0x1c], 0x43
mov ecx, 1
imul edx, ecx, 0xc
mov byte [ebp + edx - 0x1c], 0x6e
mov eax, 1
imul ecx, eax, 0x11
mov byte [ebp + ecx - 0x1c], 0x73
mov edx, 1
imul eax, edx, 0xd
mov byte [ebp + eax - 0x1c], 0x74
mov ecx, 1
imul edx, ecx, 0
mov byte [ebp + edx - 0x1c], 0x49
mov eax, 1
imul ecx, eax, 7
mov byte [ebp + ecx - 0x1c], 0x6d
mov edx, 1
imul eax, edx, 6
mov byte [ebp + eax - 0x1c], 0x6d
mov ecx, 1
imul edx, ecx, 0xe
mov byte [ebp + edx - 0x1c], 0x72
mov eax, 1
imul ecx, eax, 5
mov byte [ebp + ecx - 0x1c], 0x6f
mov edx, 1
imul eax, edx, 0xa
mov byte [ebp + eax - 0x1c], 0x43
mov ecx, 1
shl ecx, 0
mov byte [ebp + ecx - 0x1c], 0x6e
mov edx, 1
imul eax, edx, 9
mov byte [ebp + eax - 0x1c], 0x6e
mov ecx, 1
imul edx, ecx, 3
mov byte [ebp + edx - 0x1c], 0x74
mov eax, 1
imul ecx, eax, 0xb
mov byte [ebp + ecx - 0x1c], 0x6f
mov edx, 1
imul eax, edx, 0xf
mov byte [ebp + eax - 0x1c], 0x6f
mov ecx, 1
shl ecx, 4
mov byte [ebp + ecx - 0x1c], 0x6c
mov edx, 1
shl edx, 1
mov byte [ebp + edx - 0x1c], 0x69
mov eax, 1
imul ecx, eax, 0x13
mov byte [ebp + ecx - 0x1c], 0x78
mov edx, 1
shl edx, 3
mov byte [ebp + edx - 0x1c], 0x6f
mov eax, 1
imul ecx, eax, 0x14
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0x15
jae 0x408039
jmp 0x40803e
call fcn.005d86f3
mov edx, dword [ebp - 0x20]
mov byte [ebp + edx - 0x1c], 0
mov eax, 1
imul ecx, eax, 0x12
mov byte [ebp + ecx - 0x1c], 0x45
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x408074
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005d81d9
mov esp, ebp
pop ebp
ret