joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432100
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x479883
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046c6da
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00473a19
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00475396
test eax, eax
je 0x43221c
mov ecx, dword [esp + 0x3c]
call fcn.00473a46
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4321e0
push edi
mov ecx, esi
call fcn.004702f9
mov ecx, esi
call fcn.004323c0
cmp dword [esp + 0x38], 1
jne 0x432215
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00470434
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43daa0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x479ce8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x43dad9
inc eax
mov dword [esi + 0x10], eax
jmp 0x43dbec
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43daed
mov eax, 0xffffffc7
jmp 0x43dbee
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43dafe
cmp dword [esi + 8], eax
jne 0x43daed
cmp dword [esi + 8], eax
jne 0x43db17
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x43db17
mov eax, 0xffffffc7
jmp 0x43dbee
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43db2b
push eax
mov ecx, ebx
call fcn.0043d2d0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00401060
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43db5c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00401080
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0043ca40
test eax, eax
mov dword [esp + 0x38], eax
je 0x43db8f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x480a90
call fcn.00401260
mov eax, dword [esp + 0x38]
jmp 0x43dbee
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0043d900
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x43dbd3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0043d920
mov esi, eax
test esi, esi
jne 0x43dc03
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0043d900
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x43dba5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x480a90
call fcn.00401260
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x480a90
call fcn.00401260
mov eax, esi
jmp 0x43dbee
Function at 0x440930
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x440963
push esi
call fcn.0044ea50
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44095c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4409e9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4409d2
mov eax, dword [esi + 8]
test eax, eax
je 0x440987
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4409ce
cmp eax, 2
je 0x4409d2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44097a
cmp eax, 3
je 0x4409ad
cmp eax, 1
jne 0x44097a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44097a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44097a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00440a10
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4409f8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00440a10
add esp, 4
pop esi
ret

Function at 0x441270
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x441291
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x441291
mov eax, dword [eax + 0x44]
test eax, eax
je 0x441291
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4416e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4416eb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x4417ee
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x480d58]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x480d58]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x480d58]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x480d58]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x480d58]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x480d58]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x480d58]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x480d58]
xor eax, edx
inc ecx
dec edi
jne 0x441706
pop edi
test esi, esi
je 0x441810
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x480d58]
xor eax, edx
inc ecx
dec esi
jne 0x4417f2
pop esi
pop ebx
not eax
ret
Function at 0x46d4d0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46d508
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004700b8
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00470090
jmp 0x46d514
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46ebc5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46ec07
call fcn.00476123
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46ec07
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46ebfe
xor eax, eax
jmp 0x46ec0f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046ec15
pop edi
pop esi
pop ebx
ret 4
Function at 0x40b801
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411a00
cmp edx, dword [eax]
je 0x40b823
add eax, 8
inc ecx
cmp eax, 0x411a90
jl 0x40b814
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411a00]
jne 0x40b951
mov eax, dword [0x41911c]
cmp eax, 1
je 0x40b92b
test eax, eax
jne 0x40b854
cmp dword [0x411488], 1
je 0x40b92b
cmp edx, 0xfc
je 0x40b951
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b88b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408740
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408910
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b8ce
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408910
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41050c
push edi
call fcn.00408fa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408740
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408750
lea eax, [ebp - 0xa0]
push 0x4104ec
push eax
call fcn.00408750
push dword [esi + 0x411a04]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408750
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040e2c6
add esp, 0x2c
pop edi
jmp 0x40b951
lea eax, [ebp + 8]
lea esi, [esi + 0x411a04]
push 0
push eax
push dword [esi]
call fcn.00408910
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 0x43b64b
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x43b3c1
sub ebx, ebx
and ecx, ecx
call fcn.0043b67c
mov ecx, ecx
add ecx, ebx
xor dword [eax], esi
mov ecx, 0x7957c35a
inc eax
sub ecx, 0x9504b785
cmp eax, edx
jne fcn.0043b64b
sub ebx, ebx
sub ecx, 0x32388e09
ret
Function at 0x402ad0
Capabilities:
Create process on windows
Create process suspended
Set current directory

Disassembly:
push ebp
mov eax, 0x325fc
mov ebp, esp
push edi
push esi
push ebx
call fcn.004f1df0
mov byte [ebp - 0x128], 0
xor ebx, ebx
mov byte [ebp - 0x19128], 0
mov byte [ebp - 0x325c9], 0
call sub.msvcrt.dll___p___argc
cmp dword [eax], ebx
jle 0x402b30
cmp byte [ebp - 0x325c9], 0
jne 0x402b70
call sub.msvcrt.dll___p___argv
cld
mov edx, dword [eax]
mov ecx, 7
mov edi, str._START
mov esi, dword [edx + ebx*4]
repe cmpsb byte [esi], byte es:[edi]
je 0x402bb0
inc ebx
call sub.msvcrt.dll___p___argc
cmp dword [eax], ebx
jg 0x402b00
cmp byte [ebp - 0x325c9], 0
je 0x402b64
xor ebx, ebx
lea edi, [ebp - 0x128]
jmp 0x402b4d
inc ebx
cmp ebx, 0x28
jge 0x402be7
mov ecx, dword [ebx*4 + section..data]
mov dword [esp], edi
mov dword [esp + 4], ecx
call sub.msvcrt.dll_strstr
test eax, eax
je 0x402b43
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll___p___argv
mov esi, dword [eax]
lea eax, [ebp - 0x19128]
mov edi, dword [esi + ebx*4]
mov dword [esp], eax
inc ebx
mov dword [esp + 4], edi
call sub.msvcrt.dll_strcat
lea edx, [ebp - 0x19128]
mov dword [esp], edx
call sub.msvcrt.dll_strlen
mov ecx, 0x20
mov word [eax + ebp - 0x19128], cx
jmp 0x402b27
mov byte [ebp - 0x325c9], 1
inc ebx
call sub.msvcrt.dll___p___argc
cmp dword [eax], ebx
jle 0x402b26
call sub.msvcrt.dll___p___argv
mov esi, dword [eax]
lea eax, [ebp - 0x128]
mov edi, dword [esi + ebx*4]
mov dword [esp], eax
inc ebx
mov dword [esp + 4], edi
call sub.msvcrt.dll_strcpy
jmp 0x402b27
mov dword [esp], edi
xor edx, edx
lea esi, [ebp - 0x19348]
mov dword [esp + 0xc], edx
lea ebx, [ebp - 0x19238]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
call sub.msvcrt.dll__splitpath
mov dword [esp + 8], ebx
mov ecx, 0x505493
lea ebx, [ebp - 0x19458]
mov dword [esp + 4], ecx
mov dword [esp + 0xc], esi
lea esi, [ebp - 0x19128]
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp], ebx
mov ebx, str.__s___s
call sub.KERNEL32.dll_SetCurrentDirectoryA
sub esp, 4
mov dword [esp + 4], ebx
lea ebx, [ebp - 0x32568]
mov dword [esp + 0xc], esi
mov esi, 0x100
mov dword [esp + 8], edi
lea edi, [ebp - 0x325c8]
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp + 0x24], edi
lea eax, [ebp - 0x325b8]
xor edx, edx
mov dword [esp + 0x20], eax
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x1c], edx
xor eax, eax
xor edx, edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 4], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp], 0
call sub.KERNEL32.dll_CreateProcessA
sub esp, 0x28
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402cc0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov eax, 0x104
mov ebp, esp
push ebx
sub esp, 0x134
lea ebx, [ebp - 0x118]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleFileNameA
sub esp, 0xc
mov ecx, ebx
mov esi, esi
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
mov eax, edx
and eax, 0x80808080
je 0x402cf0
and edx, 0x8080
jne 0x402d16
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, ebx
cmp ecx, 3
jbe 0x402db0
mov ecx, ebx
nop
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
mov eax, edx
and eax, 0x80808080
je 0x402d30
and edx, 0x8080
jne 0x402d56
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, ebx
xor edx, edx
mov byte [ecx + ebp - 0x11c], dl
mov dword [esp], ebx
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
je 0x402db0
mov dword [esp + 0xc], ebx
mov edx, 5
xor eax, eax
mov dword [esp + 0x14], edx
mov ecx, 0x5054a0
mov ebx, str.explorer
mov dword [esp + 0x10], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
lea esi, [esi]
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x403240
Capabilities:
Check if file exists
Check os version
Create directory
Create process on windows
Delete file
Persist via run registry key
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1dc
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp], eax
call sub.msvcrt.dll_srand
call fcn.00403e00
mov dword [esp], eax
mov edi, eax
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
je 0x403445
mov dword [esp], edi
call sub.KERNEL32.dll_SetCurrentDirectoryA
sub esp, 4
mov ebx, 0x104
call fcn.00403f40
mov dword [esp + 8], ebx
lea ecx, [ebp - 0x128]
mov esi, eax
mov dword [esp + 4], ecx
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleFileNameA
sub esp, 0xc
mov dword [esp], esi
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
jne 0x403438
mov dword [esp + 4], esi
xor eax, eax
lea ebx, [ebp - 0x128]
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.00408f60
mov dword [esp], esi
call fcn.0040a7b0
mov dword [esp], esi
mov ecx, 6
mov dword [esp + 4], ecx
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
mov dword [esp], esi
call fcn.00409060
mov edx, 0x94
lea eax, [ebp - 0x1c8]
mov dword [ebp - 0x1c8], edx
mov dword [esp], eax
call sub.KERNEL32.dll_GetVersionExA
sub esp, 4
cmp dword [ebp - 0x1c4], 5
jbe 0x403370
call fcn.00404290
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.00409770
mov dword [esp + 4], esi
lea eax, [ebp - 0x128]
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x4033bf
test edi, edi
je 0x403357
mov dword [esp], edi
call fcn.004efd60
test esi, esi
je 0x403363
mov dword [esp], esi
call fcn.004efd60
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov ebx, eax
call fcn.00404290
mov dword [esp + 0xc], eax
mov ecx, 1
mov edx, 0x50551c
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp], 0x80000001
call fcn.00409640
mov dword [esp + 4], esi
lea eax, [ebp - 0x128]
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x40334b
mov dword [esp], esi
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
je 0x40334b
mov eax, dword [0x536100]
test eax, eax
jne 0x40347c
mov dword [esp + 8], esi
mov eax, 5
xor ebx, ebx
mov dword [esp + 0x14], eax
mov ecx, 0x50554a
mov edx, 0x5054a0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edx
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
test edi, edi
je 0x403420
mov dword [esp], edi
call fcn.004efd60
test esi, esi
je 0x40342c
mov dword [esp], esi
call fcn.004efd60
mov dword [esp], 0
call sub.msvcrt.dll_exit
mov dword [esp], esi
call sub.msvcrt.dll_remove
jmp 0x4032c3
mov dword [esp], edi
call sub.msvcrt.dll__mkdir
mov dword [esp], edi
mov edx, 6
mov dword [esp + 4], edx
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
mov dword [esp], edi
call fcn.00409060
mov dword [esp], edi
xor eax, eax
mov dword [esp + 4], eax
call fcn.00402dc0
jmp 0x40327b
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
jmp 0x4033e0
Function at 0x403490
Capabilities:
Check if file exists
Create directory
Create process on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x15c
mov dword [ebp - 0x13c], esp
call fcn.00404050
mov dword [esp], eax
mov esi, eax
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
je 0x403655
mov dword [esp], esi
call sub.msvcrt.dll_strlen
add eax, 0x26
and eax, 0xfffffff0
call fcn.004f1df0
mov dword [esp + 8], esi
lea ebx, [esp + 0x27]
mov edx, str._s
mov dword [esp + 4], edx
and ebx, 0xfffffff0
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp], ebx
lea eax, [ebp - 0x138]
mov dword [esp + 4], eax
call sub.msvcrt.dll__findfirst
mov dword [ebp - 0x140], eax
test eax, eax
je 0x4035ed
lea edi, [ebp - 0x124]
lea esi, [esi]
lea edi, [edi]
mov dword [ebp - 0x144], esp
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov ebx, eax
mov ecx, edi
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
mov eax, edx
and eax, 0x80808080
je 0x403540
and edx, 0x8080
jne 0x403566
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, edi
lea eax, [ebx + ecx + 0x26]
and eax, 0xfffffff0
call fcn.004f1df0
mov dword [esp + 0xc], edi
lea ebx, [esp + 0x27]
mov edx, 0x5054ae
mov dword [esp + 4], edx
and ebx, 0xfffffff0
mov dword [esp + 8], esi
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp], edi
mov ecx, str..dll
mov dword [esp + 4], ecx
call sub.msvcrt.dll_strstr
test eax, eax
je 0x403607
mov dword [esp], ebx
call sub.KERNEL32.dll_LoadLibraryA
sub esp, 4
mov esp, dword [ebp - 0x144]
lea edx, [ebp - 0x138]
mov dword [esp + 4], edx
mov ebx, dword [ebp - 0x140]
mov dword [esp], ebx
call sub.msvcrt.dll__findnext
test eax, eax
je 0x403520
mov edi, dword [ebp - 0x140]
mov dword [esp], edi
call sub.msvcrt.dll__findclose
test esi, esi
je 0x4035f9
mov dword [esp], esi
call fcn.004efd60
mov esp, dword [ebp - 0x13c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
mov ecx, str..exe
mov dword [esp + 4], ecx
call sub.msvcrt.dll_strstr
test eax, eax
je 0x4035b9
mov dword [esp + 8], ebx
mov ecx, 5
xor eax, eax
mov dword [esp + 0x14], ecx
mov edx, 0x50554a
mov ebx, 0x5054a0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
jmp 0x4035b9
mov dword [esp], esi
call sub.msvcrt.dll__mkdir
mov dword [esp], esi
mov ecx, 6
mov dword [esp + 4], ecx
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
mov dword [esp], esi
call fcn.00409060
jmp 0x4034bd
Function at 0x403e00
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp], eax
call sub.msvcrt.dll_srand
xor esi, esi
jmp 0x403e30
mov eax, dword [edi*4 + 0x5360dc]
mov dword [esp], eax
call sub.msvcrt.dll_getenv
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov ecx, dword [esi*4 + 0x5360c0]
mov ebx, eax
mov dword [esp], ecx
call sub.msvcrt.dll_strlen
lea edx, [ebx + eax + 8]
mov dword [esp], edx
call fcn.004efcc0
mov ebx, eax
mov eax, dword [edi*4 + 0x5360dc]
mov dword [esp], eax
call sub.msvcrt.dll_getenv
mov dword [esp + 8], eax
mov ecx, dword [esi*4 + 0x5360c0]
mov edx, 0x505570
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [esp + 0xc], ecx
call sub.msvcrt.dll_sprintf
mov dword [esp], ebx
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
jne 0x403f34
test ebx, ebx
je 0x403eb5
mov dword [esp], ebx
call fcn.004efd60
inc esi
cmp esi, 7
jl 0x403e30
inc edi
cmp edi, 1
jl 0x403e1f
call sub.msvcrt.dll_rand
mov edi, 1
cdq
idiv edi
mov eax, dword [edx*4 + 0x5360dc]
mov dword [esp], eax
call sub.msvcrt.dll_getenv
mov edi, eax
call sub.msvcrt.dll_rand
mov dword [esp], edi
mov ecx, 7
cdq
idiv ecx
mov esi, dword [edx*4 + 0x5360c0]
call sub.msvcrt.dll_strlen
mov ebx, eax
mov dword [esp], esi
call sub.msvcrt.dll_strlen
lea edx, [ebx + eax + 8]
mov dword [esp], edx
call fcn.004efcc0
mov dword [esp + 0xc], esi
mov esi, 0x505570
mov ebx, eax
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret