joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008ab0
Capabilities:
Access peb ldr_data
Get ntdll base address
Set environment variable

Disassembly:
push 0xffffffffffffffff
push 0x10026b80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x10030f6c]
push ebx
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0xc], eax
mov ebx, 1
push 0x400
push 0x400
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], bl
call fcn.1001f508
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call fcn.1001f558
lea ecx, [esp + 0xc]
mov esi, dword [esp + 0x30]
lea eax, [esi + 0xa5a]
push eax
call fcn.1001f2c0
push 0x5c
lea ecx, [esp + 0x10]
call fcn.1001e450
inc eax
lea ecx, [esp + 0x30]
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.1001e3d8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.1001f270
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call fcn.1001f129
push 0
lea ecx, [esp + 0x10]
call fcn.1001f508
push eax
push str.CURDIR
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea edx, [esi + 0xf22]
push 0
push edx
push 0
lea ecx, [esp + 0x18]
call fcn.1001f508
push eax
call fcn.100080d0
add esp, 0xc
mov edi, eax
lea eax, [esi + 0xca]
lea ecx, [esp + 0x10]
push eax
call fcn.1001f19d
push str.amp_
push 0x100304cc
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 3
call fcn.1001e132
lea ecx, [esi + 0x25a]
push ecx
lea ecx, [esp + 0x34]
call fcn.1001f19d
push str.amp_
push 0x100304cc
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 4
call fcn.1001e132
push ecx
mov ecx, esp
lea edx, [esp + 0x14]
mov dword [esp + 0x1c], esp
push edx
call fcn.1001ee96
xor eax, eax
lea edx, [esp + 0x34]
mov al, byte [esi]
mov byte [esp + 0x2c], 5
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.1001ee96
push edi
mov byte [esp + 0x38], 4
call fcn.10008c90
add esp, 0x10
test edi, edi
je 0x10008c33
cmp dword [0x10034144], ebx
jne 0x10008c33
add esi, 0x65a
push esi
call fcn.10009690
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 3
call fcn.1001f129
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.1001f129
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.1001f129
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.1001f129
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 4
Function at 0x1000a880
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x1002f68c]
sub esp, 0xc
test eax, eax
jge 0x1000a914
lea eax, [esp]
mov dword [esp], 0
push eax
push 1
push 0
push str.SOFTWAREAsusAI_SUITE_II
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000a90a
lea ecx, [esp + 4]
lea edx, [esp + 8]
push ecx
push 0x10034ddc
push edx
push eax
mov eax, dword [esp + 0x10]
push str.ExeName
push eax
mov dword [esp + 0x1c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.AISuite3.exe
push 0x10034ddc
call fcn.1000db05
add esp, 8
neg eax
sbb eax, eax
add eax, 3
mov dword [0x1002f68c], eax
add esp, 0xc
ret
mov eax, 2
mov dword [0x1002f68c], eax
add esp, 0xc
ret

Function at 0x1000be50
Capabilities:
Set file attributes
Timestomp file

Disassembly:
push 0xffffffffffffffff
push 0x10026dcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x284
push esi
mov esi, dword [esp + 0x298]
push edi
push esi
lea ecx, [esp + 0xc]
call fcn.1001ee96
mov esi, dword [esi]
lea eax, [esp + 0x3c]
push eax
push esi
mov dword [esp + 0x29c], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [esp + 0x2c]
mov esi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov edi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea edx, [esp + 0xc]
lea eax, [esp + 0x2c]
push edx
push eax
call edi
mov edx, dword [esp + 0x2a0]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [edx + 0x38]
call fcn.1001e9be
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
call edi
test esi, esi
je 0x1000bef0
lea edx, [esp + 0x14]
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov edx, dword [esp + 8]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 8]
mov dword [esp + 0x294], 0xffffffff
call fcn.1001f129
mov ecx, dword [esp + 0x28c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x290
ret 8

Function at 0x10010ede
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x531], 0
mov byte [ebp - 0x530], 0xd4
invalid
test ecx, edx
cli
invalid
Function at 0x10013dcb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10031cf8
cmp edx, dword [eax]
je 0x10013ded
add eax, 8
inc ecx
cmp eax, 0x10031d88
jl 0x10013dde
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10031cf8]
jne 0x10013f1b
mov eax, dword [0x1003762c]
cmp eax, 1
je 0x10013ef5
test eax, eax
jne 0x10013e1e
cmp dword [0x10037630], 1
je 0x10013ef5
cmp edx, 0xfc
je 0x10013f1b
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10013e55
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10013560
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10013650
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10013e98
lea eax, [ebp - 0x1a4]
push eax
call fcn.10013650
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x10029824
push edi
call fcn.1000d700
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10013560
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10013570
lea eax, [ebp - 0xa0]
push 0x10029804
push eax
call fcn.10013570
push dword [esi + 0x10031cfc]
lea eax, [ebp - 0xa0]
push eax
call fcn.10013570
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.10015afe
add esp, 0x2c
pop edi
jmp 0x10013f1b
lea eax, [ebp + 8]
lea esi, [esi + 0x10031cfc]
push 0
push eax
push dword [esi]
call fcn.10013650
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 0x1001b490
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x1001b49b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x1001b59e
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 + 0x10029e08]
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 + 0x10029e08]
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 + 0x10029e08]
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 + 0x10029e08]
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 + 0x10029e08]
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 + 0x10029e08]
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 + 0x10029e08]
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 + 0x10029e08]
xor eax, edx
inc ecx
dec edi
jne 0x1001b4b6
pop edi
test esi, esi
je 0x1001b5c0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x10029e08]
xor eax, edx
inc ecx
dec esi
jne 0x1001b5a2
pop esi
pop ebx
not eax
ret
Function at 0x402500
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43e6f0
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x454760
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0x454760
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 0xffffffff
je 0x402551
test al, 0x10
jne 0x402585
push 0x454760
call ebp
jmp 0x402585
push 0x454760
lea ecx, [esp + 0x14]
call fcn.00416cb2
lea eax, [esp + 0x10]
mov dword [esp + 0x28], 0
push eax
call fcn.00404f30
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00416d10
mov edi, str.tbtemp
or ecx, 0xffffffff
xor eax, eax
push 0x454760
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x454760
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
cmp eax, 0xffffffff
je 0x4025d3
test al, 0x10
push 0x454760
jne 0x4025cb
call ebp
jmp 0x4025d3
call fcn.00402900
add esp, 4
push 0x454760
lea ecx, [esp + 0x1c]
call fcn.00416cb2
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 1
push eax
call fcn.00404f30
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.00416d10
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x402900
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43e72b
push eax
mov dword fs:[0], esp
sub esp, 0x750
or ecx, 0xffffffff
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x768]
push esi
push edi
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x25c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x25c]
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, 0x44a408
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x11c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x260]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402a6a
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
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, 0x44a3cc
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 edx, [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x148]
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 al, byte [esp + 0x11c]
mov ecx, edx
and ecx, 3
test al, 0x10
rep movsb byte es:[edi], byte [esi]
je 0x402a41
cmp byte [esp + 0x148], 0x2e
je 0x402a4c
lea eax, [esp + 0x18]
push eax
call fcn.00402900
add esp, 4
jmp 0x402a4c
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x11c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40299e
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
call fcn.0043391a
add esp, 4
test eax, eax
je 0x402af3
push ebp
push str.Unable_to_remove_directory__s
push 0
call fcn.00412ac0
add esp, 8
push eax
lea eax, [esp + 0x368]
push eax
call fcn.004330da
add esp, 0xc
lea ecx, [esp + 0x360]
push ecx
lea ecx, [esp + 0x14]
call fcn.00416cb2
lea edx, [esp + 0x10]
push 5
push edx
mov dword [esp + 0x770], 0
call fcn.00407480
add esp, 8
cmp eax, 2
lea ecx, [esp + 0x10]
mov dword [esp + 0x768], 0xffffffff
sete bl
call fcn.00416d10
test bl, bl
je 0x402ae6
call fcn.004081b0
push ebp
call fcn.0043391a
add esp, 4
test eax, eax
jne 0x402a77
mov ecx, dword [esp + 0x760]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x75c
ret
Function at 0x402d50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x454358]
push ebx
push ebp
push esi
push edi
push str.BINRES
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edx, dword [0x454358]
mov esi, eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
mov eax, dword [0x454358]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, dword [esp + 0x18]
push 0
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov esi, eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll__hwrite]
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
push ebp
call fcn.00402dd0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x402dd0
Capabilities:
Copy file
Delete file

Disassembly:
sub esp, 0x18c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp]
push ebx
mov ebx, dword [esp + 0x194]
push ebp
push esi
push edi
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str.__xxtmp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x118]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebx
call sub.LZ32.dll_LZOpenFileA
lea ecx, [esp + 0x114]
push 0x1000
lea edx, [esp + 0x14]
push ecx
push edx
mov esi, eax
call sub.LZ32.dll_LZOpenFileA
mov edi, eax
push edi
push esi
call sub.LZ32.dll_LZCopy
push esi
call sub.LZ32.dll_LZClose
push edi
call sub.LZ32.dll_LZClose
push 0
lea eax, [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18c
ret
Function at 0x402ea0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x27c
push ebx
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or ecx, 0xffffffff
mov edi, 0x454760
xor eax, eax
lea edx, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x48], 1
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov word [esp + 0x4c], 0
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str.expand__r
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x60]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x28c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x60]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.__F:
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x290]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x60]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x64]
push ecx
push 0x454760
push 0
push 0x200
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403006
mov esi, 0x400
call fcn.00418537
test eax, eax
je 0x402fec
mov esi, 0x100400
mov eax, dword [esp + 0x14]
push eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x61a80
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
pop ebx
add esp, 0x27c
ret
Function at 0x403010
Capabilities:
Check if file exists
Create process on windows
Create process suspended
Get file attributes

Disassembly:
sub esp, 0x484
lea eax, [esp + 0x158]
push ebx
push esi
push edi
push 0x104
push eax
push str.UPDD_Folder
push 0
call fcn.00413c6a
lea ecx, [esp + 0x60]
push 0x104
push ecx
push str.UPDD_Folder
push 0
call fcn.00413c6a
mov edi, str.jdraw.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x60]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40316d
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea edi, [esp + 0x164]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x268]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x48], 1
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x268]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov word [esp + 0x4c], 5
rep movsb byte es:[edi], byte [esi]
mov edi, str.jdraw.exe__s
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x168]
push ecx
push edx
push 0
push 0x200
push 0
push 0
lea eax, [esp + 0x284]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40316d
mov esi, 0x400
call fcn.00418537
test eax, eax
je 0x403153
mov esi, 0x100400
mov ecx, dword [esp + 0x14]
push ecx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x61a80
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
pop ebx
add esp, 0x484
ret
Function at 0x403180
Capabilities:
Check if file exists
Create process on windows
Create process suspended
Get file attributes

Disassembly:
sub esp, 0x488
lea eax, [esp + 0x58]
push ebx
push esi
push edi
push 0x104
push eax
push str.UPDD_Folder
push 0
call fcn.00413c6a
lea ecx, [esp + 0x168]
push 0x104
push ecx
push str.UPDD_Folder
push 0
call fcn.00413c6a
mov edi, str.drawunwise.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x168]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x64]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.draw
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x168]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403362
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea edi, [esp + 0x64]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x26c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x228
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x270]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x50], 1
rep movsb byte es:[edi], byte [esi]
mov edi, str.unwise.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov word [esp + 0x54], 0
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x270]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [esp + 0x274]
push ecx
call esi
lea edx, [esp + 0x64]
push 0x104
lea eax, [esp + 0x68]
push edx
push eax
call esi
lea ecx, [esp + 0x168]
push 0x104
lea edx, [esp + 0x16c]
push ecx
push edx
call esi
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x68]
push ecx
push edx
push 0
push 0x200
push 0
push 0
lea eax, [esp + 0x288]
push 0
lea ecx, [esp + 0x28c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403362
mov esi, 0x400
call fcn.00418537
test eax, eax
je 0x40333a
mov esi, 0x100400
mov edx, dword [esp + 0x18]
push edx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0x61a80
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
pop edi
pop esi
pop ebx
add esp, 0x488
ret