joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d17d
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1003b38
call fcn.0100d348
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x100d1b8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100d1b8
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100d1d0
cmp eax, 0x20b
je 0x100d1bd
mov dword [ebp - 0x1c], edi
jmp 0x100d1e4
cmp dword [ecx + 0x84], 0xe
jbe 0x100d1b8
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x100d1de
cmp dword [ecx + 0x74], 0xe
jbe 0x100d1b8
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100eed8], 0xffffffff
or dword [0x100eedc], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100eed4]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100eed0]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100eee0], eax
call fcn.0100d340
cmp dword [0x100eac0], edi
jne 0x100d23f
push fcn.0100d340
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100d329
push 0x100e010
push 0x100e00c
call sub.msvcrt.dll__initterm
mov eax, dword [0x100eecc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100eec8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x100e008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01008747
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x100d2b6
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100d2eb
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100d383
ret
Function at 0x10001070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
jmp 0x1000113c
lea eax, [ebp - 0x104]
push eax
call 0x100012e8
push 0x1000107e
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x10001209
lea eax, [ebp - 0x108]
push eax
push 0x20019
push 0
push 0x10001112
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x1000126e
mov dword [ebp - 0x10c], 0x103
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x10001102
push dword [ebp - 0x108]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x108]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x1000126e
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x100011ee
mov word [ebx], 0x5c
push 0x10001132
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x1000126e
mov dword [0x1000300c], eax
push 0x10001107
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x10001263
push eax
push 0x3ea
call eax
pop edx
test eax, eax
je 0x10001263
mov dword [0x10003008], eax
push 0x3eb
mov ebx, section..data
call edx
test eax, eax
je 0x10001263
mov dword [section..data], edx
call 0x1000124a
add dword [esp], 0x4db6
call eax
mov dword [0x10003004], eax
sub esp, 4
pop dword [0x10003010]
leave
ret
push dword [0x1000300c]
call sub.KERNEL32.dll_FreeLibrary
mov dword [0x1000300c], 0
mov dword [section..data], 0xffffffff
mov dword [0x10003010], 0
mov dword [0x10003004], 0
mov dword [0x10003008], 0
push 0x10
push 0x1000112c
push 0x10001088
push 0
call sub.USER32.dll_MessageBoxA
push 0xffffffffffffffff
call sub.KERNEL32.dll_ExitProcess
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x404bf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 4], 0
je 0x404c6b
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0x104
lea eax, [ebp - 0xc]
push eax
push 0x104
mov ecx, dword [ebp + 0x14]
call fcn.004033e0
push eax
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x14]
call fcn.00403d80
mov eax, 1
jmp 0x404c6d
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404fc0
Capabilities:
Get installed programs
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d2c2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x38]
call fcn.00405520
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 4], 0
push 0x450e74
mov edx, dword [ebp - 0x54]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.00402bf0
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.0041bff0
lea ecx, [ebp - 0x10]
call fcn.00403380
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x14]
push ecx
push 8
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 0x14], 0
je 0x405160
mov dword [ebp - 0x20], 0
mov edx, 1
test edx, edx
je 0x405156
lea ecx, [ebp - 0x2c]
call fcn.00403380
mov byte [ebp - 4], 4
mov dword [ebp - 0x34], 0x104
mov dword [ebp - 0x30], 0x104
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x30]
push ecx
push 0x104
lea ecx, [ebp - 0x2c]
call fcn.004033e0
push eax
push 0
lea edx, [ebp - 0x34]
push edx
push 0x104
lea ecx, [ebp - 0x10]
call fcn.004033e0
push eax
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4050d2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0041bff0
jmp 0x405156
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00403d80
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403d80
lea ecx, [ebp - 0x18]
call fcn.00403400
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x10]
call fcn.004048e0
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
call fcn.00411fb0
push eax
lea ecx, [ebp - 0x18]
call fcn.00405300
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x39], al
lea ecx, [ebp - 0x40]
call fcn.0041bff0
movzx ecx, byte [ebp - 0x39]
test ecx, ecx
je 0x405145
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0041bff0
jmp 0x405156
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0041bff0
jmp 0x40505e
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 0
je 0x40519e
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.00411fb0
push eax
mov ecx, dword [ebp - 0x4c]
call fcn.00404d40
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.0041bff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041bff0
mov eax, dword [ebp - 0x44]
jmp 0x4051c3
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.0041bff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041bff0
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4051e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d2d4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x10]
call fcn.00403380
mov dword [ebp - 4], 0
push str.SoftwareMicrosoftInternet_ExplorerMain
lea eax, [ebp - 0x10]
push eax
call fcn.00403ce0
add esp, 8
lea ecx, [ebp - 0x14]
push ecx
push 2
push 0
lea ecx, [ebp - 0x10]
call fcn.00411fb0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 0x14], 0
je 0x405293
mov edx, dword [ebp + 8]
push edx
call fcn.0042f590
add esp, 4
add eax, 1
push eax
mov eax, dword [ebp + 8]
push eax
push 1
push 0
push str.Start_Page
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041bff0
mov eax, dword [ebp - 0x18]
jmp 0x4052ac
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041bff0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x406110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
call fcn.0040a060
mov dword [ebp - 0x10], eax
push str.Image
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x406141
xor eax, eax
jmp 0x4061a5
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00406f10
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00406f70
push eax
call fcn.0042fc10
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
call fcn.00406950
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x40c030
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0x43
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [0x451168]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], 0
jmp 0x40c06e
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0x1a
jge 0x40c0e3
mov edx, 1
mov ecx, dword [ebp - 0x1c]
shl edx, cl
and edx, dword [ebp - 4]
je 0x40c0e1
mov eax, dword [ebp - 0x1c]
add eax, 0x41
mov byte [ebp - 8], al
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
jne 0x40c0e1
mov dword [ebp - 0x28], 0
xor edx, edx
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x28]
push eax
push 0
push 0
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x14]
jb 0x40c0e1
ja 0x40c0cf
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x18]
jbe 0x40c0e1
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x14], edx
mov al, byte [ebp - 8]
mov byte [ebp - 9], al
jmp 0x40c065
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x40c190
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x4664b0]
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xa8], 0x9c
mov ecx, 0x26
xor eax, eax
lea edi, [ebp - 0xa4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa4], 6
jb 0x40c1e7
cmp dword [ebp - 0xa0], 1
jb 0x40c1e7
mov eax, 1
jmp 0x40c1e9
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.004303c0
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40e970
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0
push 0
push 2
push 0
push 3
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40e9dc
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 8]
call fcn.00406f30
test eax, eax
je 0x40e9d2
push 0
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406f30
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.00406f70
push eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x412030
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44df0e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp + 8]
add eax, 4
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.004033a0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
add ecx, 8
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.004033a0
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
add edx, 0xc
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.004033a0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
add eax, 0x10
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.004033a0
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 8]
add ecx, 0x14
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.004033a0
mov byte [ebp - 4], 4
mov edx, dword [ebp + 8]
add edx, 0x18
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.004033a0
mov byte [ebp - 4], 5
mov eax, dword [ebp + 8]
add eax, 0x1c
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.004033a0
mov byte [ebp - 4], 6
mov ecx, dword [ebp + 8]
add ecx, 0x20
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.004033a0
mov byte [ebp - 4], 7
mov edx, dword [ebp + 8]
add edx, 0x24
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.004033a0
mov byte [ebp - 4], 8
mov eax, dword [ebp + 8]
add eax, 0x28
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call fcn.004033a0
mov byte [ebp - 4], 9
mov ecx, dword [ebp + 8]
add ecx, 0x2c
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.004033a0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x30]
mov dword [edx + 0x30], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
mov dword [edx + 0x34], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x416da0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e443
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push edi
mov dword [ebp - 0x84], ecx
lea eax, [ebp - 0x74]
push eax
call fcn.0040d400
mov ecx, eax
call fcn.00417530
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x84]
add ecx, 0x14ec
call fcn.00411fb0
push eax
lea edx, [ebp - 0x78]
push edx
call fcn.00418bf0
add esp, 8
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x8c]
push ecx
mov edx, dword [ebp - 0x94]
push edx
lea eax, [ebp - 0x70]
push eax
call fcn.00402b50
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78]
call fcn.0041bff0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x74]
call fcn.0041bff0
push 0
call fcn.00425ba0
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x416e67
jmp 0x416e8d
mov edx, dword [ebp - 0x70]
push edx
push str.Call_LaunchGuaGua__s__n
push 0x316
push 0x452924
push 0
call fcn.00425bc0
add esp, 0xc
push eax
call fcn.00425b00
add esp, 0xc
mov dword [ebp - 0x6c], 0x44
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x68]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x70]
call fcn.00411fb0
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0041ad90
add esp, 8
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], ecx
mov byte [ebp - 4], 5
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x9c]
call fcn.00411fb0
push eax
push 0
push 0
push 0
push 0
push 0
push 0x104
lea ecx, [ebp - 0x70]
call fcn.004033e0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c]
call fcn.0041bff0
cmp dword [ebp - 0x20], 0
je 0x416f28
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call fcn.00425ba0
add esp, 4
movzx eax, al
test eax, eax
jne 0x416f3b
jmp 0x416f65
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x70]
push edx
push str.Exec__s___d__n
push 0x320
push 0x452950
push 0
call fcn.00425bc0
add esp, 0xc
push eax
call fcn.00425b00
add esp, 0x10
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.0041bff0
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x418ec0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e6d4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.00418bf0
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 3
lea ecx, [ebp - 0x10]
call fcn.00403380
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 0
jl 0x418f75
mov edx, dword [ebp - 0x14]
push edx
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.00404830
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x418f24
jmp 0x418f75
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004048e0
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
call fcn.004033c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0041bff0
push 0
lea ecx, [ebp - 0x10]
call fcn.00411fb0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
jmp 0x418f05
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.00410930
lea ecx, [ebp - 0x18]
call fcn.00411fb0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0041bff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041bff0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x419190
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e722
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push edi
mov dword [ebp - 0x48], 0
mov ecx, 0xe
xor eax, eax
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x48], 0x3c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x44], 0x440
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push 0
call fcn.00425ba0
add esp, 4
movzx eax, al
test eax, eax
jne 0x419200
jmp 0x419288
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00405520
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x58], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x50]
call fcn.00405520
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], ecx
mov byte [ebp - 4], 1
xor edx, edx
cmp dword [ebp - 0x10], 0
setne dl
push edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x60]
mov eax, dword [edx]
push eax
push str.ExecApp__s__s___d__n
push 0x85
push 0x453244
push 0
call fcn.00425bc0
add esp, 0xc
push eax
call fcn.00425b00
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.0041bff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0041bff0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41a7c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
mov eax, 1
test eax, eax
je 0x41a80a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 8]
jae 0x41a7fe
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0
je 0x41a800
jmp 0x41a80a
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41a7d2
mov esp, ebp
pop ebp
ret 4

Function at 0x41a990
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x4664b0]
mov dword [ebp - 4], eax
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
jne 0x41a9bf
jmp 0x41aa7f
mov dword [ebp - 0x130], 0x128
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x12c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x138]
call fcn.00405520
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x134]
push edx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x41aa67
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x138]
call fcn.00405300
test eax, eax
jne 0x41aa50
mov ecx, dword [ebp - 0x128]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
je 0x41aa50
push 0xffffffffffffffff
mov edx, dword [ebp - 0x13c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x134]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x41a9fe
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x138]
call fcn.0041bff0
mov ecx, dword [ebp - 4]
call fcn.004303c0
pop edi
mov esp, ebp
pop ebp
ret