joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4020c0
Capabilities:
Delete directory
Get common file path

Disassembly:
sub esp, 0x108
mov al, byte [0x4100f0]
push edi
mov byte [esp + 8], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
lea ecx, [esp + 4]
mov dword [esp + 4], 0
stosw word es:[edi], ax
push ecx
push 2
push 0
stosb byte es:[edi], al
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40216c
mov eax, dword [esp + 4]
test eax, eax
je 0x40216c
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x40216c
mov al, byte [esp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xc8
mov byte [str.C:Program_FilesBOCOM2010USBKeyHuaDa], al
mov byte [str.C:Program_FilesBOCOM2010USBKey], al
mov byte [str.C:Program_FilesBOCOM], al
call esi
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push str.C:Program_FilesBOCOM2010USBKeyHuaDa
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push 0xc8
call esi
push str.C:Program_FilesBOCOM2010USBKey
call edi
call ebx
push 0xc8
call esi
push str.C:Program_FilesBOCOM
call edi
call ebx
pop esi
pop ebx
pop edi
add esp, 0x108
ret

Function at 0x402180
Capabilities:
Delete directory
Get common file path

Disassembly:
sub esp, 0x108
mov al, byte [0x4100f0]
push edi
mov byte [esp + 8], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
lea ecx, [esp + 4]
mov dword [esp + 4], 0
stosw word es:[edi], ax
push ecx
push 2
push 0
stosb byte es:[edi], al
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40222c
mov eax, dword [esp + 4]
test eax, eax
je 0x40222c
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x40222c
mov al, byte [esp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xc8
mov byte [str.C:Program_Files__x86_BOCOM2010USBKeyHuaDa], al
mov byte [str.C:Program_Files__x86_BOCOM2010USBKey], al
mov byte [str.C:Program_Files__x86_BOCOM], al
call esi
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push str.C:Program_Files__x86_BOCOM2010USBKeyHuaDa
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push 0xc8
call esi
push str.C:Program_Files__x86_BOCOM2010USBKey
call edi
call ebx
push 0xc8
call esi
push str.C:Program_Files__x86_BOCOM
call edi
call ebx
pop esi
pop ebx
pop edi
add esp, 0x108
ret
Function at 0x402620
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x348
mov al, byte [0x4100f0]
push edi
mov byte [esp + 8], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
lea ecx, [esp + 4]
mov dword [esp + 4], 0
stosw word es:[edi], ax
push ecx
push 0x19
push 0
stosb byte es:[edi], al
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
pop edi
jne 0x4026ec
mov eax, dword [esp]
test eax, eax
je 0x4026ec
lea edx, [esp + 4]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x4026ec
mov ecx, dword [0x40d1b0]
mov edx, dword [0x4100e0]
lea eax, [esp + 0x108]
push 0x100
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0x108]
lea ecx, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x208]
lea eax, [esp + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4026da
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 4]
push edx
push 0x80000002
call fcn.004025d0
add esp, 8
add esp, 0x348
ret

Function at 0x402700
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x44]
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], str.open
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], str._remove
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
pop edi
add esp, 0x3c
ret
Function at 0x402e30
Capabilities:
Enumerate files on windows
Set file attributes

Disassembly:
sub esp, 0x348
push esi
push edi
push str.windir
call fcn.0040597d
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 4
mov esi, edx
repne scasb al, byte es:[edi]
not ecx
mov eax, ecx
lea edi, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov esi, edx
mov edx, ecx
lea edi, [esp + 0x10]
mov eax, dword [esp + 0x358]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x402f04
lea eax, [esp + 8]
lea ecx, [esp + 0x110]
push eax
push 0x100
push ecx
call fcn.00403290
test eax, eax
cmp eax, 1
jne 0x402f91
lea eax, [esp + 8]
lea ecx, [esp + 0x110]
push eax
push 0x100
push ecx
call fcn.00403290
test eax, eax
jl 0x402f85
mov eax, dword [esp + 8]
mov edx, 0x100
sub edx, eax
push str.inf_
lea eax, [esp + eax + 0x114]
push edx
push eax
call fcn.00403240
test eax, eax
jl 0x402f85
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
push 0x100
push edx
call fcn.00403290
test eax, eax
jl 0x402f85
mov eax, dword [esp + 8]
push str.infoem.inf
mov ecx, 0x100
cmp eax, 2
jne 0x402f85
lea eax, [esp + 8]
lea ecx, [esp + 0x110]
push eax
push 0x100
push ecx
call fcn.00403290
test eax, eax
jl 0x402f85
mov eax, dword [esp + 8]
mov edx, 0x100
sub edx, eax
push str.infother_
lea eax, [esp + eax + 0x114]
push edx
push eax
call fcn.00403240
test eax, eax
jl 0x402f85
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
push 0x100
push edx
call fcn.00403290
test eax, eax
jl 0x402f85
mov eax, dword [esp + 8]
mov ecx, 0x100
sub ecx, eax
push str.infother.inf
lea edx, [esp + eax + 0x14]
push ecx
push edx
call fcn.00403240
test eax, eax
jl 0x402f85

Function at 0x403320
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x44]
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], str.open
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], str._remove
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
xor eax, eax
pop edi
add esp, 0x3c
ret
Function at 0x403380
Capabilities:
Delete file

Disassembly:
sub esp, 0x104
push ebx
push ebp
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov ebx, dword [esp + 0x114]
rep stosd dword es:[edi], eax
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
call ebp
test eax, eax
jne 0x403423
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea edx, [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
mov edi, str..JHOLD
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x10]
push ecx
push ebx
call fcn.00405a1b
add esp, 8
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x104
ret

Function at 0x403430
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
push eax
xor esi, esi
push ecx
push ebx
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4034cf
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x4034cf
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esp + 0x24]
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push edx
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4034b1
lea eax, [esp + 0x1c]
push 0
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x28]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov edi, 1
jne 0x4034b5
mov edi, dword [esp + 0x10]
test esi, esi
je 0x4034c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4b99f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x38]
push ebp
push esi
push edi
push 0x10
push ebx
push eax
call fcn.004b7fa0
mov esi, dword [esp + 0x58]
push 0x10
lea ecx, [esp + 0x30]
push esi
push ecx
call fcn.004b7fa0
mov ecx, ebx
lea edi, [esp + 0x48]
add esp, 0x18
sub ecx, esi
mov eax, esi
sub edi, esi
mov ebp, 0x10
mov dl, byte [ecx + eax]
xor dl, byte [eax]
inc eax
dec ebp
mov byte [edi + eax - 1], dl
jne 0x4b9a2d
xor eax, eax
xor edx, edx
xor ecx, ecx
mov al, byte [eax + 0x10038440]
xor byte [esp + ecx + 0x10], al
mov al, byte [esp + ecx + 0x10]
and eax, 0xff
inc ecx
cmp ecx, 0x30
jb 0x4b9a40
add eax, edx
and eax, 0xff
inc edx
cmp edx, 0x12
jb 0x4b9a3e
lea ecx, [esp + 0x10]
push 0x10
push ecx
push ebx
call fcn.004b7fa0
mov eax, dword [esp + 0x54]
xor ecx, ecx
add esp, 0xc
sub esi, eax
mov cl, byte [eax + 0xf]
mov edi, 0x10
xor edx, edx
mov dl, byte [esi + eax]
xor edx, ecx
mov cl, byte [edx + 0x10038440]
mov dl, byte [eax]
xor dl, cl
mov cl, dl
mov byte [eax], dl
and ecx, 0xff
inc eax
dec edi
jne 0x4b9a86
push 0x30
lea edx, [esp + 0x14]
push 0
push edx
call fcn.004b7f70
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0xc
Function at 0x4ce1c0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x5c], ecx
ret
Function at 0x4065c9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42d2c4], 0
jne 0x406604
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4065dd
mov dword [ecx*4 + 0x42d2c0], eax
inc ecx
cmp ecx, 0x100
jl 0x4065d8
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406631
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42d2c0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406612
not eax
pop ebp
ret 0xc

Function at 0x162a000
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get ntdll base address
Get number of processors
Get process filename
Packed with generic packer
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
push ebx
push ebp
xor edx, edx
push esi
push edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
push esi
xor eax, eax
mov eax, dword fs:[eax + 0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [esp + 0x18], eax
pop esi
mov al, 0x6c
mov byte [esp + 0x29], al
mov byte [esp + 0x2a], al
mov al, 0x4c
mov bl, 0x64
mov byte [esp + 0x2c], al
mov cl, 0x61
mov byte [esp + 0x30], al
mov al, 0x72
mov byte [esp + 0x24], 0x66
mov byte [esp + 0x25], 0x75
mov byte [esp + 0x26], 0x6e
mov byte [esp + 0x27], 0x2e
mov byte [esp + 0x28], bl
mov byte [esp + 0x2b], dl
mov byte [esp + 0x2d], 0x6f
mov byte [esp + 0x2e], cl
mov byte [esp + 0x2f], bl
mov byte [esp + 0x31], 0x69
mov byte [esp + 0x32], 0x62
mov byte [esp + 0x33], al
mov byte [esp + 0x34], cl
mov byte [esp + 0x35], al
mov byte [esp + 0x36], 0x79
mov byte [esp + 0x37], 0x45
mov byte [esp + 0x38], 0x78
mov byte [esp + 0x39], 0x41
mov byte [esp + 0x3a], dl
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 0x3c]
add ebx, eax
add ebx, 0x78
mov ebx, dword [ebx]
add ebx, eax
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, dword [eax + 0x24]
mov edi, dword [eax + 0x20]
add ecx, esi
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
add ecx, esi
add edi, esi
xor ebp, ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
cmp eax, edx
jbe 0x162a119
jmp 0x162a0e0
mov ecx, dword [edi + ebp*4]
add ecx, esi
lea ebx, [esp + 0x2c]
xor eax, eax
sub ecx, ebx
lea ecx, [ecx]
lea ebx, [ecx + eax]
mov bl, byte [esp + ebx + 0x2c]
cmp bl, dl
je 0x162a108
cmp byte [esp + eax + 0x2c], bl
jne 0x162a108
inc eax
cmp byte [esp + eax + 0x2c], dl
jne 0x162a0f0
cmp eax, edx
je 0x162a112
cmp byte [esp + eax + 0x2c], dl
je 0x162a137
inc ebp
cmp ebp, dword [esp + 0x18]
jb 0x162a0e0
mov eax, dword [esp + 0x20]
cmp eax, edx
je 0x162a12a
push edx
push edx
lea ecx, [esp + 0x2c]
push ecx
call eax
jmp 0x81afd3
mov eax, dword [esp + 0x1c]
movzx ecx, word [eax + ebp*2]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + ecx*4]
add eax, esi
jmp 0x162a11d
Function at 0x406760
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
mov ebx, ecx
mov ecx, 0x51022b
push edi
mov dword [ebp - 0x18], ebx
call fcn.004b787d
mov edi, dword [ebx + 4]
lea eax, [ebp - 0x14]
push eax
or edi, 0x2001f
mov dword [ebp - 0xc], 0
push edi
push 0
push dword [ebp + 8]
mov dword [ebp - 8], 0
push dword [ebx]
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0xc]
test esi, esi
jne 0x406870
xor esi, esi
test eax, eax
je 0x4067d0
push eax
call ebx
mov esi, eax
mov eax, dword [ebp - 0x14]
and edi, 0x300
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edi
test esi, esi
jne 0x406870
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x20]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x100
push ecx
lea ecx, [ebp - 0x220]
push ecx
push esi
push eax
call edi
test eax, eax
jne 0x406848
nop
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0xc]
call fcn.00406760
mov esi, eax
test esi, esi
jne 0x40686d
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x220]
push eax
push esi
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x406810
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x406859
push eax
call ebx
mov dword [ebp - 0xc], 0
push dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 8], 0
call fcn.00404e30
mov esi, eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x406877
push eax
call ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407360
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcdb6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov ecx, 0x510279
mov dword [ebp - 0x10], 0
call fcn.004b787d
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x4e490c
call fcn.00403af0
mov eax, dword [ebp + 8]
push ecx
mov esi, esp
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], esi
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004049c0
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0
call fcn.0040b860
mov ebx, dword [ebp - 0x20]
add esp, 0xc
sub ebx, dword [ebp - 0x24]
sar ebx, 2
call fcn.004059f0
mov ecx, eax
test ecx, ecx
je 0x407570
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
xor edi, edi
mov byte [ebp - 4], 2
or ecx, 0xffffffff
test ebx, ebx
je 0x407500
nop
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + edi*4]
lea esi, [eax + edi*4]
mov eax, dword [ecx - 0xc]
test edi, edi
jne 0x4074cd
cmp eax, 1
jl 0x40757f
cmp word [ecx + 2], 0x3a
jne 0x4074fa
mov ecx, dword [ecx - 0x10]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x40745e
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x407474
call fcn.004059f0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x407570
mov eax, dword [ecx]
call dword [eax + 0xc]
or dword [ebp - 0x10], 1
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
push 1
push 0x4e4834
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00404aa0
mov esi, dword [ebp - 0x14]
lea ecx, [ebp + 8]
add esp, 0x14
push dword [esi - 0xc]
push esi
call fcn.00404690
and dword [ebp - 0x10], 0xfffffffe
add esi, 0xfffffff0
mov byte [ebp - 4], 2
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4074f1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4074f1
push eax
push ecx
lea ecx, [ebp + 8]
call fcn.00404690
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push 0x4e4834
lea ecx, [ebp + 8]
call fcn.00404690
inc edi
cmp edi, ebx
jb 0x407420
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
mov byte [ebp - 4], 0
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x407519
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40755f
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp - 0x20]
push eax
call fcn.004037f0
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
mov edx, dword [ebp - 0x24]
sub ecx, edx
and ecx, 0xfffffffc
mov eax, edx
cmp ecx, 0x1000
jb 0x407555
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40757a
push ecx
push edx
call fcn.004b786f
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004048a0
call fcn.004be79f
push 0x80070057
call fcn.004048a0
int3
Function at 0x408120
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcf1d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ecx, 0x510279
mov dword [ebp - 4], 0
call fcn.004b787d
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 1
push 0x4e4904
push eax
call fcn.00404490
add esp, 0xc
push 0x4e4904
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
call fcn.004043c0
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.00404180
mov edx, dword [ebp - 0x18]
or esi, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4081b6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
mov eax, esi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4081d4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0x1c], 0
mov ecx, 0x440
mov eax, 0x40
mov dword [ebp - 0x58], 0x3c
cmovne eax, ecx
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], eax
mov ecx, 5
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
xor eax, eax
cmp byte [ebp + 0x18], al
mov dword [ebp - 0x4c], 0
cmovne eax, ecx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x38], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x408257
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [edi], eax
cmp byte [ebp + 0x10], 0
je 0x408276
push dword [ebp + 0x20]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x408298
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4088f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4dd050
push eax
mov eax, 0x1008
mov dword fs:[0], esp
call fcn.004b7e60
mov ecx, 0x510279
mov dword [ebp - 0x14], 0
call fcn.004b787d
mov dword [ebp - 4], 1
call fcn.004059f0
mov ecx, eax
test ecx, ecx
je 0x408aa1
mov eax, dword [ecx]
push edi
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
push 0x800
push 0
mov dword [ebp - 0x14], 2
mov dword [edi], eax
lea eax, [ebp - 0x814]
push eax
call fcn.004ba8e0
add esp, 0xc
lea eax, [ebp - 0x814]
push 0
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4089b0
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408984
sub ecx, edx
lea eax, [ebp - 0x814]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00406d70
push 1
push 0x4e4834
mov ecx, edi
call fcn.00404690
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x408a90
mov dword [ebp - 4], 2
call fcn.004059f0
mov ecx, eax
test ecx, ecx
je 0x408aab
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
push 0x800
push 0
mov dword [ebp - 0x14], 5
lea esi, [eax + 0x10]
lea eax, [ebp - 0x1014]
mov dword [ebp - 0x10], esi
push eax
call fcn.004ba8e0
add esp, 0xc
lea eax, [ebp - 0x1014]
push 0
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x408a61
lea ecx, [ebp - 0x1014]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408a30
sub ecx, edx
lea eax, [ebp - 0x1014]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00406d70
push 1
push 0x4e4834
lea ecx, [ebp - 0x10]
call fcn.00404690
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.00404180
mov dword [ebp - 0x14], 1
add esi, 0xfffffff0
mov byte [ebp - 4], 0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x408a8f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004048a0
push 0x80004005
call fcn.004048a0
int3