joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001de0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xc
mov eax, dword [ebp + 8]
call sym._SERIALUI_strdup
mov ebx, eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
call sym.serialui.dll_drvCommConfigDialogW
sub esp, 0xc
mov esi, eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, esi
sub esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x10001e40
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xec
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0
test byte [0x10003178], 8
jne 0x10001eb0
cmp ebx, 0x33
jbe 0x10001e9e
test esi, esi
je 0x10001e9e
lea eax, [ebp - 0xdc]
mov dword [esp + 4], 0x80000002
mov dword [esp + 8], eax
mov dword [esp], 0
call dword [sym.imp.advapi32.dll_RegConnectRegistryW]
sub esp, 0xc
test eax, eax
je 0x10001ee8
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._p__p__lx_n
mov dword [esp + 8], str.drvSetDefaultCommConfigW
mov dword [esp + 4], 0x10003178
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10001e6f
mov eax, dword [ebp + 8]
lea ebx, [ebp - 0xd4]
mov dword [esp + 0xc], str.SystemCurrentControlSetServicesClassPorts
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 8], str._s_s
mov dword [esp + 4], 0x64
call sym._swprintf
lea eax, [ebp - 0xd8]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xdc]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCreateKeyW]
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x10001f60
mov eax, dword [ebp - 0xdc]
mov dword [esp], eax
call edi
xor eax, eax
sub esp, 4
test ebx, ebx
sete al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, dword [ebp - 0xd8]
add esi, 8
mov dword [esp + 0x14], 0x1c
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], 0x100050e6
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov ebx, eax
test byte [0x10003178], 8
jne 0x10001fc0
mov eax, dword [ebp - 0xd8]
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call edi
sub esp, 4
jmp 0x10001f41
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.write_key_r_ld_n
mov dword [esp + 8], str.drvSetDefaultCommConfigW
mov dword [esp + 4], 0x10003178
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10001fa4
Function at 0x10001ff0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xc
mov eax, dword [ebp + 8]
call sym._SERIALUI_strdup
mov ebx, eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
call sym.serialui.dll_drvSetDefaultCommConfigW
sub esp, 0xc
mov esi, eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, esi
sub esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x10002320
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xc
mov eax, dword [ebp + 8]
call sym._SERIALUI_strdup
mov ebx, eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
call sym.serialui.dll_drvGetDefaultCommConfigW
sub esp, 0xc
mov esi, eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, esi
sub esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x100023d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10002428
cmp byte [esi + ebx - 1], 0xa
je 0x100023fc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x100070a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10002a50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10002c28
mov edi, dword [0x100070a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10002b37
test byte [0x100031a8], 8
jne 0x10002bd0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x100031b8], 8
jne 0x10002b90
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10002ad9
cmp esi, 3
jbe 0x10002b48
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x10002aea
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x100053e8]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10002ad9
mov dword [esp], 0x100031b8
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10002ab0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x10002ab0
mov dword [esp], 0x100031a8
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10002a9b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10002aa3
mov eax, 0xffffffff
jmp 0x10002b37
Function at 0x4034c0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4159cd
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x41c140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2c], edi
cmp dword [esi + 0x14], 8
jb 0x4034fd
mov eax, dword [esi]
push eax
call fcn.004049e0
add esp, 4
test eax, eax
je 0x40363c
mov eax, dword [ebp - 0x2c]
mov edi, dword [edi]
mov eax, dword [eax + 4]
cmp edi, eax
mov dword [ebp - 0x2c], eax
je 0x40362d
mov ecx, dword [esi + 0x10]
mov eax, 0x7ffffffe
mov edx, dword [ebp - 0x2c]
sub eax, ecx
cmp eax, 1
jb 0x403659
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x403541
mov eax, dword [esi]
push 1
push 0x4175c0
push ecx
push eax
push esi
push edx
lea ecx, [ebp - 0x48]
call fcn.004032e0
push edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0
call fcn.00405770
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
mov dword [ebp - 4], 0xffffffff
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x34]
cmp ecx, 8
jb 0x4035da
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4035d0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403627
push ecx
push edx
call fcn.004149eb
add esp, 8
lea eax, [ebp - 0x28]
push eax
call fcn.004046d0
mov ecx, dword [ebp - 0x14]
add esp, 4
cmp ecx, 8
jb 0x40361c
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403612
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403627
push ecx
push edx
call fcn.004149eb
add esp, 8
add edi, 0x18
cmp edi, dword [ebp - 0x2c]
jmp 0x40351b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp dword [esi + 0x14], 8
jb 0x403635
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004149f9
mov esp, ebp
pop ebp
ret 8
call fcn.00401c90
int3
Function at 0x404620
Capabilities:
Create directory

Disassembly:
sub esp, 0x208
mov eax, dword [0x41c140]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
mov ebx, dword [esp + 0x214]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
mov esi, dword [esp + 0x218]
push edi
lea edi, [esp + 0x14]
movzx eax, word [esi]
test ax, ax
je 0x4046af
mov edx, 0x5c
mov dword [esp + 0x10], 0x2f
mov ecx, eax
lea eax, [edx - 0x22]
nop word [eax + eax]
cmp dx, cx
je 0x40467c
cmp word [esp + 0x10], cx
jne 0x40468f
cmp ax, word [esi - 2]
je 0x40468f
push ebx
lea eax, [esp + 0x18]
push eax
call ebp
mov edx, 0x5c
movzx eax, word [esi]
add esi, 2
mov word [edi], ax
add edi, 2
xor eax, eax
mov word [edi], ax
movzx eax, word [esi]
mov ecx, eax
test ax, ax
mov eax, 0x3a
jne 0x404670
push ebx
lea eax, [esp + 0x18]
push eax
call ebp
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004149f9
add esp, 0x208
ret

Function at 0x4046d0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x14], 8
jb 0x4046dc
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, eax
xor eax, eax
cmp ecx, 2
je 0x4046f2
cmp ecx, 5
setne al
ret
Function at 0x404700
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x668
mov eax, dword [0x41c140]
xor eax, esp
mov dword [esp + 0x664], eax
push ebx
mov ebx, dword [esp + 0x670]
lea eax, [esp + 0x460]
push ebp
push esi
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
push edi
push ebx
push 0x104
push eax
mov dword [esp + 0x1c], ebx
call esi
mov ebp, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea eax, [esp + 0x478]
push 0x4175b8
push 0x104
push eax
call ebp
push ebx
lea eax, [esp + 0x280]
push 0x104
push eax
call esi
push 0x4175c0
lea eax, [esp + 0x28c]
push 0x104
push eax
call ebp
add esp, 0x30
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x470]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x404892
lea eax, [esp + 0x264]
push eax
lea eax, [esp + 0x470]
push 0x104
push eax
call esi
mov ebx, dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wchmod]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40486d
lea eax, [esp + 0x40]
push eax
call fcn.00404e00
add esp, 4
test eax, eax
jne 0x4047b8
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x268]
push 0x104
push eax
call ebp
mov eax, dword [esp + 0x20]
add esp, 0xc
test al, 0x10
je 0x404829
lea eax, [esp + 0x264]
push eax
call fcn.00404700
add esp, 4
test eax, eax
je 0x40488b
lea eax, [esp + 0x46c]
push eax
lea eax, [esp + 0x268]
push 0x104
push eax
call esi
jmp 0x4047b5
test al, 1
je 0x40483f
lea eax, [esp + 0x264]
push 0x80
push eax
call ebx
add esp, 8
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40488b
lea eax, [esp + 0x46c]
push eax
lea eax, [esp + 0x268]
push 0x104
push eax
call esi
jmp 0x4047b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x40488b
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x404894
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov ecx, dword [esp + 0x674]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004149f9
add esp, 0x668
ret
Function at 0x4048d0
Capabilities:
Create process on windows
Create process suspended
Delete file
Move file
Self delete

Disassembly:
sub esp, 0x670
mov eax, dword [0x41c140]
xor eax, esp
mov dword [esp + 0x66c], eax
push esi
mov esi, dword [esp + 0x678]
lea eax, [esp + 0x14]
push 0x44
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x58]
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [esi + 0x14], 8
jb 0x40491f
mov esi, dword [esi]
push esi
lea eax, [esp + 0x5c]
push eax
push str.cmd.exe__C_ping_127.0.0.1__n_5__w_1000___Nul__Del__f__q___s___cd_..__rmdir__q___s_
lea eax, [esp + 0x26c]
push 0x208
push eax
call fcn.00405610
add esp, 0x14
lea eax, [esp + 0x58]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [esp + 0x280]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 4]
call esi
mov ecx, dword [esp + 0x670]
pop esi
xor ecx, esp
call fcn.004149f9
add esp, 0x670
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4049f2
xor eax, eax
ret
and eax, 0x10
ret

Function at 0x404a90
Capabilities:
Get common file path
Get program files directory
Query environment variable

Disassembly:
sub esp, 0x61c
mov eax, dword [0x41c140]
xor eax, esp
mov dword [esp + 0x618], eax
push edi
mov edi, dword [esp + 0x624]
lea eax, [esp + 0x414]
push eax
push 0
push 0
push 0x2a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [esp + 0x20c]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x104
lea eax, [esp + 8]
push eax
push str.ProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x404b16
lea ecx, [esp + 4]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404b00
sub ecx, edx
lea eax, [esp + 4]
sar ecx, 1
push ecx
jmp 0x404b37
lea edx, [esp + 0x20c]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x404b20
sub edx, ecx
lea eax, [esp + 0x20c]
sar edx, 1
push edx
push eax
mov ecx, edi
call fcn.00401cb0
push 0x417574
mov ecx, edi
call fcn.004057e0
mov ecx, dword [esp + 0x61c]
mov eax, 1
pop edi
xor ecx, esp
call fcn.004149f9
add esp, 0x61c
ret
Function at 0x404bb0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x41c140]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, dword [esp + 0x21c]
lea eax, [esp + 0xc]
push eax
push 0x104
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
test eax, eax
je 0x404c17
lea ecx, [esp + 0xc]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404c00
sub ecx, edx
lea eax, [esp + 0xc]
sar ecx, 1
push ecx
push eax
jmp 0x404c1e
push 0
push 0x4172dc
mov ecx, esi
call fcn.004011f0
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004149f9
add esp, 0x214
ret

Function at 0x404c40
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415b82
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x41c140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x124], 0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [ebp - 0x120], eax
mov word [esi], cx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x11c], ecx
lea ecx, [ebp - 0x11c]
push ecx
push eax
mov dword [ebp - 0x124], 1
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x118], eax
test eax, eax
je 0x404ddc
call fcn.00414a30
mov edi, esp
push edi
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
push dword [ebp - 0x120]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x404ddc
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x120]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x404ddc
mov ecx, dword [ebp - 0x120]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04xProductVersion
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00403170
add esp, 0x14
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x114]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x404ddc
cmp dword [ebp - 0x118], 0
jbe 0x404ddc
push dword [ebp - 0x120]
lea eax, [ebp - 0x140]
push eax
call fcn.00407150
add esp, 8
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.00405770
mov ecx, dword [ebp - 0x12c]
cmp ecx, 8
jb 0x404ddc
mov edx, dword [ebp - 0x140]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404dd2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404dd2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004149eb
add esp, 8
mov eax, esi
lea esp, [ebp - 0x14c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004149f9
mov esp, ebp
pop ebp
ret
Function at 0x404f30
Capabilities:
Enumerate processes

Disassembly:
mov dword [esp + 4], str.GTAVLauncher.exe
jmp 0x405440
sub esp, 0x254
mov eax, dword [0x41c140]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push 0
push 2
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [esp + 0xc], ebx
cmp ebx, 0xffffffff
je 0x405497
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x22c
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x4054af
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.004149f9
add esp, 0x254
ret
push ebp
push esi
push edi
nop dword [eax]
nop word [eax + eax]
xorps xmm0, xmm0
mov dword [esp + 0x2c], 0
lea eax, [esp + 0x58]
mov dword [esp + 0x30], 0
movups xmmword [esp + 0x1c], xmm0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4054e0
sub eax, edx
lea ecx, [esp + 0x1c]
sar eax, 1
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.004011f0
mov ecx, dword [esp + 0x268]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405510
mov ebp, dword [esp + 0x30]
lea edi, [esp + 0x1c]
mov ebx, dword [esp + 0x1c]
sub ecx, edx
mov esi, dword [esp + 0x2c]
sar ecx, 1
cmp ebp, 8
cmovae edi, ebx
cmp esi, ecx
jne 0x405582
mov eax, dword [esp + 0x268]
mov edx, eax
test esi, esi
je 0x405564
sub edi, eax
nop dword [eax + eax]
movzx ecx, word [edi + edx]
movzx eax, word [edx]
cmp cx, ax
jne 0x405582
add edx, 2
sub esi, 1
jne 0x405550
mov edi, 1
push edi
push dword [esp + 0x40]
mov dword [esp + 0x1c], edi
call fcn.00405680
mov esi, eax
add esp, 8
mov dword [esp + 0x10], esi
jmp 0x40558a
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
cmp ebp, 8
jb 0x4055ba
lea ecx, [ebp*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x4055b0
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4055fd
push ecx
push ebx
call fcn.004149eb
add esp, 8
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4054c0
mov eax, 1
test edi, edi
push ebx
cmove esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x260]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004149f9
add esp, 0x254
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x4050e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415c05
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push esi
push edi
mov eax, dword [0x41c140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
movzx eax, word [ebp + 0xc]
push 0x417648
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4052af
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4052af
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4052af
mov edi, dword [ebp - 0x18]
xor cl, cl
xor esi, esi
mov dword [ebp - 0x10], 0
test edi, edi
je 0x40529c
nop
mov al, byte [esi + eax]
cmp al, 0xd
je 0x405196
cmp al, 0xa
je 0x405196
lea eax, [edi - 1]
xor dl, dl
cmp esi, eax
je 0x405198
test cl, cl
jne 0x405289
mov dword [ebp - 0x10], esi
mov cl, 1
jmp 0x405289
mov dl, 1
test cl, cl
je 0x405289
lea eax, [edi - 1]
cmp esi, eax
jne 0x4051b2
test dl, dl
jne 0x4051b2
mov eax, 1
jmp 0x4051b4
xor eax, eax
sub eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x34]
add eax, esi
mov dword [ebp - 0x24], 0
push eax
mov eax, dword [ebp - 0x14]
xorps xmm0, xmm0
add eax, dword [ebp - 0x10]
push eax
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], 0
call fcn.00402930
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00407130
add esp, 8
mov ecx, dword [ebp - 0x1c]
push eax
mov byte [ebp - 4], 1
call fcn.004059d0
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 0
cmp ecx, 8
jb 0x40523c
mov edx, dword [ebp - 0x4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405232
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405296
push ecx
push edx
call fcn.004149eb
add esp, 8
mov ecx, dword [ebp - 0x20]
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0x10
jb 0x405287
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40527d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405296
push ecx
push edx
call fcn.004149eb
add esp, 8
xor cl, cl
inc esi
cmp esi, edi
jae 0x40529c
mov eax, dword [ebp - 0x14]
jmp 0x405170
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret