joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c60
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421ab9
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x4300b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push ebx
call fcn.004058d0
mov dword [ebp - 4], 1
lea edi, [ebx + 0x20]
push edi
call fcn.00405570
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x10], ebp
mov eax, dword [ebp - 0x10]
push 0
push eax
push 0x423928
call fcn.00417080
add esp, 0xc
mov dword [ebp - 0x14], eax
mov edx, str.__thiscall_CCmdlineParser::CCmdlineParser_const_wchar_t__
test eax, eax
jne 0x401cd3
mov dword [ebp - 0x14], edx
mov eax, edx
push ebx
push eax
mov ecx, 0x4238e8
lea esi, [ebp - 0x34]
call fcn.0040c280
mov byte [ebp - 4], 3
cmp dword [ebp - 0x14], 0
jne 0x401cee
push ebp
pop ebp
call fcn.00402c40
mov ecx, dword [ebx + 0x18]
mov edx, dword [ecx + 4]
push edx
mov ecx, ebx
call fcn.00405cc0
mov eax, dword [ebx + 0x18]
mov dword [eax + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x1c], 0
mov dword [eax], eax
mov eax, dword [ebx + 0x18]
mov dword [eax + 8], eax
mov esi, dword [edi + 0x10]
cmp dword [edi + 0xc], esi
jbe 0x401d27
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [edi + 0xc]
mov eax, dword [edi]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ecx
cmp ecx, dword [edi + 0x10]
jbe 0x401d40
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edi]
push esi
push edx
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00405e70
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x38], 0
test eax, eax
jne 0x401d66
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push ebx
mov ecx, eax
call fcn.00401f60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.0040bfc0
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401f60
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4217f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4300b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], ebp
mov eax, dword [ebp - 0x14]
push 0
push eax
push 0x423ba0
call fcn.00417080
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x401fb2
mov edi, str.int___thiscall_CCmdlineParser::Parser_const_wchar_t__
mov ecx, dword [ebp + 8]
push ecx
push edi
mov edx, str.int___thiscall_CCmdlineParser::Parser_const_wchar_t__
mov ecx, 0x423c48
lea esi, [ebp - 0x2c]
call fcn.0040c280
mov dword [ebp - 4], 0
test edi, edi
jne 0x401fd6
push ebp
pop ebp
mov ecx, dword [ebp + 8]
call fcn.00401e60
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test ebx, ebx
jne 0x401fec
call edi
mov ebx, eax
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401ff1
sub eax, edx
sar eax, 1
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00418bb0
mov esi, dword [ebp + 8]
add esp, 4
mov dword [esi + 0x38], eax
test eax, eax
je 0x402069
test ebx, ebx
je 0x402041
mov edx, eax
mov ecx, ebx
sub edx, ebx
mov edi, edi
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x402030
jmp 0x402057
call edi
mov edx, dword [esi + 0x38]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x402046
mov ecx, esi
call fcn.004020c0
test eax, eax
jne 0x40208e
mov ecx, esi
call fcn.00401e60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040bfc0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040bfc0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402d60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4218b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x4300b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x10], ebp
mov eax, dword [ebp - 0x10]
push 0
push eax
push 0x424160
call fcn.00417080
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x402daf
mov edi, str.__w64_long___thiscall_CCmdReceiverWnd::OnCreate_unsigned_int___w64_unsigned_int___w64_long_int__
push ebx
push edi
mov edx, str.__w64_long___thiscall_CCmdReceiverWnd::OnCreate_unsigned_int___w64_unsigned_int___w64_long_int__
mov ecx, 0x42428c
lea esi, [ebp - 0x28]
call fcn.0040c280
mov dword [ebp - 4], 0
test edi, edi
jne 0x402dd0
push ebp
pop ebp
push 0
push 0
push ebx
push 0x402fb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040bfc0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404960
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov eax, 0x20214
call fcn.0041eb90
mov eax, dword [0x4300b8]
xor eax, esp
mov dword [esp + 0x2020c], eax
push ebx
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea edx, [esp + 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea ecx, [esp + 8]
push ecx
push str.exedir
call ebx
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
xor eax, eax
push 0xfffe
push eax
lea ecx, [esp + 0x21a]
push ecx
mov word [esp + 0x21c], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x8000
lea edx, [esp + 0x214]
push edx
push str.Path
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x214]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x404aff
xor edx, edx
push 0xfffe
push edx
lea eax, [esp + 0x1021a]
push eax
mov word [esp + 0x1021c], dx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x210]
push ecx
lea edx, [esp + 0xc]
push edx
push str._s__s
lea eax, [esp + 0x1021c]
push 0x8000
push eax
call dword [sym.imp.MSVCR90.dll__snwprintf]
add esp, 0x14
mov ecx, str.AddKKVPathToEnv
call fcn.0040bd20
test eax, eax
jne 0x404af0
lea ecx, [esp + 0x10210]
push ecx
push ecx
lea edx, [esp + 0x10]
push edx
push ecx
xor edx, edx
mov ecx, str.AddKKVPathToEnv
call fcn.00411ce0
mov edx, str._AddEnvironmentVariable_:
mov ecx, eax
call fcn.0040ba10
add esp, 4
push eax
call fcn.0040b8d0
mov edx, str.___GetEnvironmentVariable_:
mov ecx, eax
call fcn.0040ba10
add esp, 4
push eax
call fcn.0040b8d0
mov esi, eax
mov dword [0x430e60], 0
mov eax, dword [esi + 0x240]
push 1
push eax
push 1
xor ecx, ecx
mov edx, esi
mov dword [esi + 0x248], 0
call fcn.00416620
add esi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x10210]
push ecx
push str.Path
call ebx
mov ecx, dword [esp + 0x20214]
pop esi
pop ebx
xor ecx, esp
call fcn.0041e4d2
add esp, 0x20214
ret
Function at 0x409980
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x409990
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4099a0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x409ec0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x42015b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4300b8]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4300b8]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esp + 0x24c]
xor ebp, ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x244], ebp
mov ebx, dword [esi + 4]
mov eax, dword [esi]
lea edx, [esp + 0x24]
push edx
or ebx, 0x2001f
push ebx
push ebp
push ecx
push eax
mov dword [esp + 0x38], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebp
jne 0x409f6e
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, ebp
je 0x409f52
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebp
mov ecx, dword [esp + 0x24]
and ebx, 0x300
mov dword [esp + 0x1c], ebp
mov edi, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
cmp eax, ebp
je 0x409f93
mov dword [esp + 0x244], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x409f8c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebp
mov eax, edi
jmp 0x40a040
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x2c]
push eax
push ebp
push ebp
push ebp
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x48]
push eax
push ebp
push ecx
mov dword [esp + 0x40], 0x100
call edi
test eax, eax
jne 0x409ffe
jmp 0x409fc0
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00409ec0
mov ebx, eax
cmp ebx, ebp
jne 0x40a06e
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x1c]
push ebp
push ebp
push ebp
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x48]
push ecx
push ebp
push edx
mov dword [esp + 0x40], 0x100
call edi
test eax, eax
je 0x409fc0
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x40a011
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebp
mov edi, dword [esp + 0x28]
mov dword [esp + 0x1c], ebp
call fcn.0040b390
mov esi, eax
mov dword [esp + 0x244], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x40a03e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebp
mov eax, esi
mov dword [esp + 0x1c], ebp
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0041e4d2
add esp, 0x234
ret 4
mov dword [esp + 0x244], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x40a08c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebp
mov eax, ebx
jmp 0x40a040
Function at 0x40abc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4210f0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4300b8]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov edi, ecx
mov ebx, dword [ebp + 0x414]
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp], ecx
mov byte [ebp - 4], 1
push 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x40ac3e
call fcn.004092f0
mov edi, eax
jmp 0x40ad60
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40ac57
call fcn.004092f0
jmp 0x40ad57
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
jne 0x40ac72
call fcn.004092f0
jmp 0x40ad57
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x14], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x40acb3
mov byte [ebp - 4], 0
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40ac9a
lea eax, [ebp]
call fcn.004092d0
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x18]
call fcn.0040b3f0
mov eax, 0x8007000e
jmp 0x40ad7d
mov byte [ebp - 4], 2
mov ecx, 2
mul ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
test edx, edx
ja 0x40accd
cmp eax, 0xffffffff
jbe 0x40acd7
push 0x80070057
call fcn.004177e0
cmp eax, 0x400
jbe 0x40acf0
lea edx, [ebp]
push edx
call fcn.00409950
mov dword [ebp - 4], 1
jmp 0x40ad15
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x40ad15
mov eax, dword [ebp]
test eax, eax
jne 0x40ad23
mov edi, 0x8007000e
jmp 0x40ad59
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40ad3c
call fcn.004092f0
jmp 0x40ad57
xor ecx, ecx
mov edx, dword [ebp]
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
push eax
mov ecx, dword [ebp]
lea edx, [ebp - 0x28]
call fcn.0040aa70
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x40ad74
lea eax, [ebp]
call fcn.004092d0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0041e4d2
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415470
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [0x432c20]
push edi
test eax, eax
jne 0x415517
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
jne 0x4154f1
push 0x11
push 0
push str.C:TSLOG_CONFIG_
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov dword [esi + 0x24], eax
cmp eax, 0xffffffff
je 0x41554e
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.C:TSLOG_CONFIGTSLOG.ini
call edi
cmp eax, 0xffffffff
jne 0x4154de
push str.C:TSLOG_CONFIGTSLOG.txt
call edi
cmp eax, 0xffffffff
jne 0x4154de
push str.C:TSLOG_CONFIGTSLOG.ini
call edi
cmp eax, 0xffffffff
jne 0x4154de
push str.C:TSLOG_CONFIGTSLOG.txt
call edi
cmp eax, 0xffffffff
je 0x415517
push 0
mov ecx, esi
call fcn.004149f0
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41551e
cmp eax, 0x102
je 0x415517
push 0x11
push 0
push str.C:TSLOG_CONFIG_
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov dword [esi + 0x24], eax
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
push 0
mov ecx, esi
mov dword [esi + 0x24], 0xffffffff
call fcn.004149f0
test eax, eax
je 0x41554e
push 0x11
push 0
push str.C:TSLOG_CONFIG_
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov dword [esi + 0x24], eax
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x415870
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4300b8]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
test ebx, ebx
jne 0x4158b9
xor eax, eax
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0041e4d2
add esp, 0x20c
ret
movzx eax, word [ebx + 2]
push ebp
lea ebp, [ebx + 2]
xor edx, edx
push esi
push edi
cmp dx, ax
je 0x41592c
mov edi, ebp
sub edi, ebx
mov edi, edi
mov ecx, 0x5c
cmp cx, ax
jne 0x41591b
mov esi, edi
sar esi, 1
add esi, esi
push esi
lea edx, [esp + 0x10]
push ebx
push edx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
lea ecx, [esp + 0xc]
xor eax, eax
push ecx
mov word [esp + esi + 0x10], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41590a
test al, 0x10
jne 0x41591b
push 0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x415949
movzx eax, word [ebp + 2]
add ebp, 2
xor ecx, ecx
add edi, 2
cmp cx, ax
jne 0x4158d0
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0041e4d2
add esp, 0x20c
ret
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0041e4d2
add esp, 0x20c
ret
Function at 0x415970
Capabilities:
Create directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x4300b8]
xor eax, esp
mov dword [esp + 0x104], eax
push ebp
mov ebp, dword [esp + 0x110]
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
test ebp, ebp
jne 0x4159c3
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0041e4d2
add esp, 0x108
ret 4
mov al, byte [ebp + 1]
push ebx
push esi
push edi
lea edi, [ebp + 1]
test al, al
je 0x415a22
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, edi
sub esi, ebp
lea ebx, [ebx]
cmp al, 0x5c
jne 0x415a19
push esi
lea ecx, [esp + 0x14]
push ebp
push ecx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
lea edx, [esp + 0x10]
push edx
mov byte [esp + esi + 0x14], 0
call ebx
cmp eax, 0xffffffff
je 0x415a08
test al, 0x10
jne 0x415a19
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x415a42
mov al, byte [edi + 1]
inc edi
inc esi
test al, al
jne 0x4159e0
mov eax, 1
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebx
pop ebp
xor ecx, esp
call fcn.0041e4d2
add esp, 0x108
ret 4
xor eax, eax
jmp 0x415a27
Function at 0x415e10
Capabilities:
Get file version info

Disassembly:
sub esp, 0x234
mov eax, dword [0x4300b8]
xor eax, esp
mov dword [esp + 0x230], eax
push ebp
push esi
mov esi, dword [0x430e44]
xor ebp, ebp
cmp esi, ebp
jne 0x415e6c
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push 0x1c
lea eax, [esp + 0x18]
push eax
push 0x430e44
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov esi, dword [esp + 0x18]
mov dword [0x430e44], esi
push 0x206
lea edx, [esp + 0x36]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x3c], cx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea eax, [esp + 0x34]
push eax
push esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x18], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebp
jne 0x415ed1
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0041e4d2
add esp, 0x234
ret
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
push edi
neg ecx
or ecx, eax
push ecx
call fcn.00418bb0
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x415f0d
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0041e4d2
add esp, 0x234
ret
push edi
push esi
push ebp
lea eax, [esp + 0x40]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x415f95
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x425920
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x415f95
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x30]
mov edx, dword [eax + 0x2c]
push ecx
mov ecx, dword [eax + 0x28]
push edx
mov edx, dword [eax + 0x24]
push ecx
mov ecx, dword [eax + 0x20]
push edx
mov edx, dword [eax + 0x18]
push ecx
mov ecx, dword [eax + 0x1c]
push edx
mov edx, dword [eax]
push ecx
mov ecx, dword [eax + 0x14]
push edx
mov edx, dword [eax + 0x10]
push ecx
mov ecx, dword [eax + 0xc]
push edx
mov edx, dword [eax + 8]
push ecx
push edx
movzx edx, word [eax + 0xe]
movzx ecx, cx
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
push ecx
push edx
push str.FileVersion_:__d._d._d._d___FileVersionMS_:_0x_08x__FileVersionLS_:_0x_08x__ProductVersionMS_:_0x_08x__ProductVersionLS_:_0x_08x__Signature_:_0x_08x__FileFlags_:_0x_08x__FileFlagsMask_:_0x_08x__FileOS_:_0x_08x__FileType_:_0x_08x__FileSubType_:_0x_08x__FileDateMS_:_0x_08x__FileDateLS_:_0x_08x__
push 0x168
push 0x430e68
call dword [sym.imp.MSVCR90.dll__snwprintf]
add esp, 0x4c
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
movzx eax, word [0x430e68]
mov ecx, dword [esp + 0x240]
add esp, 4
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
xor ecx, esp
and eax, 0x430e68
call fcn.0041e4d2
add esp, 0x234
ret
Function at 0x418a0a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4304f8], 0
push esi
jne 0x41897d
call fcn.004188a3
test eax, eax
je 0x4189c0
mov eax, dword [0x4304f8]
cmp eax, 1
jne 0x41899e
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4189c0
pop esi
ret
push eax
call dword [0x430500]
test eax, eax
jne 0x418a08
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4189c4
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4304f8]
call dword [0x430500]
mov edi, eax
test edi, edi
je 0x4189e9
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x418a05
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4304f8]
call dword [0x4304fc]
add edi, 0x10
cmp edi, esi
jb 0x4189f1
mov eax, edi
pop edi
pop esi
ret
jmp 0x41896a

Function at 0x418de9
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x4300b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void_]
xor ebx, ebx
push 0x63
lea eax, [ebp - 0x7b]
push ebx
push eax
mov byte [ebp - 0x7c], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x80]
push eax
push 0x64
lea eax, [ebp - 0x7c]
push eax
push 0x422730
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x418e3e
xor al, al
jmp 0x418e82
mov ecx, dword [ebp - 0x80]
push ebx
push ebx
mov eax, ecx
shr eax, 0x18
push eax
mov edx, ecx
shr edx, 0x10
mov eax, 0xff
and edx, eax
push edx
mov edx, ecx
shr edx, 8
and edx, eax
movzx eax, cl
push edx
push eax
lea eax, [ebp - 0x18]
push str._02X_02X_02X_02X_02X_02X
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x20
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const__]
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e4d2
leave
ret 4