joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423270
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x44f1b2
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x46b114]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
mov eax, dword [0x46b114]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov dword [esp + 0x68], 0
test esi, esi
je 0x4232d8
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4232c0
lea ecx, [esp + 0x40]
push ecx
sub eax, edx
push eax
push esi
call fcn.0043ef6f
add esp, 0xc
cmp dword [esp + 0x58], 8
mov eax, dword [esp + 0x44]
jae 0x4232e7
lea eax, [esp + 0x44]
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 1
push 0
push 0
push eax
push str.open
push 0
call esi
cmp eax, 0x20
ja 0x423391
cmp eax, 2
je 0x423391
cmp eax, 3
je 0x423391
cmp eax, 0x1f
jne 0x42337b
push str.Shell32.dll_OpenAs_RunDLL
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea edx, [esp + 0x40]
push edx
push eax
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0x74], 1
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x42334c
mov eax, dword [eax + 4]
jmp 0x42334f
add eax, 4
push 1
push 0
push eax
push str.rundll32.exe
push str.open
push 0
call esi
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x24]
mov byte [esp + 0x68], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x40]
mov dword [esp + 0x68], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
jmp 0x4233a8
lea ecx, [esp + 0x40]
mov dword [esp + 0x68], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004390e8
add esp, 0x64
ret
Function at 0x423780
Capabilities:
Enumerate processes
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x454
mov eax, dword [0x46b114]
xor eax, esp
mov dword [esp + 0x450], eax
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x104
lea ecx, [esp + 0x254]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, 0x45c8fc
lea eax, [esp + 0x250]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4237e9
test dx, dx
je 0x4237e5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4237e9
add eax, 4
add ecx, 4
test dx, dx
jne 0x4237c3
xor eax, eax
jmp 0x4237ee
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x423924
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov edi, eax
call esi
mov esi, dword [sym.imp.USER32.dll_WindowFromPoint]
mov ecx, 2
mov edx, ecx
push edx
add edi, 0xfffffffd
push ecx
lea ebx, [eax - 3]
mov dword [esp + 0x14], edi
call esi
mov edi, dword [sym.imp.USER32.dll_GetAncestor]
push 2
push eax
call edi
mov dword [esp + 0x1c], eax
push ebx
mov eax, 2
push eax
call esi
push 2
push eax
call edi
mov edx, dword [esp + 0xc]
mov dword [esp + 0x14], eax
mov eax, 2
push eax
push edx
call esi
push 2
push eax
call edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
push ebx
push eax
call esi
push 2
push eax
call edi
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
cmp edx, ecx
jne 0x423924
mov esi, dword [esp + 0x18]
cmp ecx, esi
jne 0x423924
cmp esi, eax
jne 0x423924
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [esp + 0x10], 0
je 0x423903
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x423924
lea edx, [esp + 0x20]
push edx
push esi
mov dword [esp + 0x28], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4238fc
mov edi, dword [sym.imp.MSVCR90.dll__wcsicmp]
lea esp, [esp]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x28]
jne 0x4238ed
lea ecx, [esp + 0x44]
push str.explorer.exe
push ecx
call edi
add esp, 8
test eax, eax
je 0x42391d
lea edx, [esp + 0x20]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4238d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x450]
xor ecx, esp
call fcn.004390e8
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x45c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004390e8
mov esp, ebp
pop ebp
ret
Function at 0x423940
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4004
call fcn.00439740
mov eax, dword [0x46b114]
xor eax, esp
mov dword [esp + 0x4000], eax
mov eax, dword [esp + 0x4008]
push esi
push 0x45cb84
push eax
call dword [sym.imp.MSVCR90.dll__wfopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x42398f
xor al, al
pop esi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.004390e8
add esp, 0x4004
ret 4
push edi
push 0x3fff
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call sub.MSVCR90.dll_memset
mov edi, dword [sym.imp.MSVCR90.dll_feof]
push esi
call edi
add esp, 0x10
test eax, eax
jne 0x4239ea
push ebp
mov ebp, dword [sym.imp.MSVCR90.dll_fread]
lea ecx, [ecx]
push esi
push 0x4000
lea ecx, [esp + 0x14]
push 1
push ecx
call ebp
add esp, 0x10
lea edx, [esp + 0xc]
push edx
mov ecx, ebx
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__::append_char_const__]
push esi
call edi
add esp, 4
test eax, eax
je 0x4239c0
pop ebp
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
mov ecx, dword [esp + 0x400c]
add esp, 4
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.004390e8
add esp, 0x4004
ret 4

Function at 0x423c90
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push edi
mov edi, eax
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0xc]
push 0
push eax
push ecx
push 2
push 0
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
jne 0x423cca
call fcn.0040acf0
pop edi
add esp, 0x10
ret
mov ecx, dword [esp + 8]
push 0
push ecx
mov dword [esi + 0x10], 0
mov edx, dword [esi + 0x10]
push edx
mov dword [esi + 4], ecx
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x14]
push ecx
push 4
push eax
mov dword [esi + 0x18], 4
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [esi], eax
test eax, eax
jne 0x423d1f
call fcn.0040acf0
mov edx, dword [esi + 8]
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov eax, edi
pop edi
add esp, 0x10
ret
xor eax, eax
pop edi
add esp, 0x10
ret
Function at 0x424310
Capabilities:
Hide graphical window

Disassembly:
push esi
push ecx
mov esi, eax
mov eax, esp
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [eax], 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00428790
test eax, eax
jne 0x424337
pop esi
ret
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop esi
ret
Function at 0x424450
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x45363c
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x46b114]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46b114]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x78], ebp
mov eax, dword [esp + 0x84]
mov esi, 8
cmp dword [esp + 0x98], esi
jae 0x4244a4
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4244cb
lea ecx, [esp + 0x80]
mov dword [esp + 0x78], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
jmp 0x424620
xor edi, edi
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x84]
cmp dword [esp + 0x98], esi
jae 0x4244e8
lea eax, [esp + 0x84]
push ebp
push 0x80
push 3
push ebp
push 1
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x42455d
call fcn.0040acf0
cmp eax, ebp
jne 0x4244af
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
mov ebx, 2
mov eax, edi
lea esi, [esp + 0x24]
mov byte [esp + 0x78], bl
call fcn.00423c90
test eax, eax
jne 0x4245f5
mov esi, dword [esp + 0x24]
test esi, esi
je 0x4245f5
push 0x44
mov dword [esp + 0x24], eax
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x78], 3
test eax, eax
je 0x424565
push eax
call fcn.00418000
jmp 0x424567
mov dword [esp + 0x18], eax
mov edi, eax
jmp 0x42450a
xor eax, eax
mov byte [esp + 0x78], bl
push esi
lea ecx, [esp + 0x20]
lea edx, [esp + 0x24]
mov dword [esp + 0x20], eax
call fcn.004264e0
mov esi, eax
lea eax, [esp + 0x48]
push eax
call fcn.0040fd40
lea ecx, [esp + 0x80]
push ecx
mov byte [esp + 0x7c], 4
lea ecx, [esp + 0x54]
mov dword [esp + 0x4c], ebx
call dword [0x454368]
mov edi, dword [esp + 0x1c]
mov edx, dword [edi]
mov ecx, dword [edx + 0x14]
lea eax, [esp + 0x48]
push eax
push edi
call ecx
test esi, esi
jbe 0x4245e3
cmp dword [esp + 0x20], 0
jne 0x4245d1
mov edx, dword [esp + 0x9c]
push edx
call fcn.00424350
mov ebp, eax
jmp 0x4245e3
mov eax, dword [esp + 0x9c]
push eax
call fcn.00424350
mov ebp, 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x78], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov edi, dword [esp + 0x18]
lea esi, [esp + 0x24]
call fcn.00424650
test edi, edi
je 0x424609
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x80]
mov dword [esp + 0x78], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, ebp
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004390e8
add esp, 0x68
ret 0x20
Function at 0x4246a0
Capabilities:
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x45337b
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x46b114]
xor eax, esp
mov dword [esp + 0xf0], eax
push ebx
push ebp
push esi
mov eax, dword [0x46b114]
xor eax, esp
push eax
lea eax, [esp + 0x104]
mov dword fs:[0], eax
mov eax, dword [esp + 0x118]
xor ecx, ecx
push 0xc6
push ecx
lea edx, [esp + 0x42]
push edx
mov dword [esp + 0x1c], eax
xor ebp, ebp
mov word [esp + 0x44], cx
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x120]
push eax
push str.ThunderAgent.Unicode
lea ecx, [esp + 0x4c]
push str._s_TaskData__08x
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea edx, [esp + 0x38]
push edx
push ebp
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
test ebx, ebx
je 0x4247ac
push ebp
push ebp
push ebp
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x4247a5
mov edx, dword [esp + 0x10]
push esi
mov ecx, edi
call fcn.004247e0
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea eax, [esp + 0x14]
push eax
call fcn.0040fd40
mov ecx, dword [esp + 0x114]
mov dword [esp + 0x10c], 0
mov eax, dword [edi]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 1
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10c], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov ecx, dword [esp + 0x104]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.004390e8
add esp, 0x100
ret 8
Function at 0x42fcbc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x42fd60
xor eax, eax
cmp ax, word [edi]
je 0x42fd60
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x42fd5c
inc eax
push esi
push eax
call fcn.004390d1
mov esi, eax
pop ecx
cmp esi, ebx
je 0x42fd5b
push esi
push dword [ebp + 8]
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42fd54
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x45a764
push esi
mov dword [ebp - 4], ebx
mov dword [ebp + 8], 0x34
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42fd54
mov eax, dword [ebp - 4]
mov cx, word [eax + 0xa]
mov edx, dword [ebp + 0xc]
mov word [edx], cx
mov cx, word [eax + 8]
mov edx, dword [ebp + 0x10]
mov word [edx], cx
mov cx, word [eax + 0xe]
mov edx, dword [ebp + 0x14]
mov word [edx], cx
mov ax, word [eax + 0xc]
mov ecx, dword [ebp + 0x18]
mov word [ecx], ax
mov bl, 1
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
pop ecx
pop esi
mov al, bl
jmp 0x42fd6d
push 0x132b3a1
call fcn.0042ffea
pop ecx
xor al, al
pop edi
pop ebx
leave
ret

Function at 0x430225
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x46b114]
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 0x454a9c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x43027a
xor al, al
jmp 0x4302be
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.004390e8
leave
ret 4
Function at 0x43142d
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x46b114]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0x98]
push ebx
push esi
push edi
xor esi, esi
push 0x103
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x77]
push esi
push eax
mov dword [ebp - 0x80], esi
mov byte [ebp - 0x78], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push 1
push 0x23
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x431491
push str.c:windows_temp
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [ebp + 0x9c], esi
je 0x4314b7
lea eax, [ebp - 0x78]
push eax
call edi
cmp eax, 0xffffffff
jne 0x4314b7
push esi
lea eax, [ebp - 0x78]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.Thunder_Network
lea eax, [ebp - 0x78]
push eax
call esi
cmp dword [ebp + 0x9c], 0
je 0x4314e4
lea eax, [ebp - 0x78]
push eax
call edi
cmp eax, 0xffffffff
jne 0x4314e4
push 0
lea eax, [ebp - 0x78]
push eax
call ebx
push 0x454b78
lea eax, [ebp - 0x78]
push eax
call esi
cmp dword [ebp + 0x9c], 0
je 0x43150b
lea eax, [ebp - 0x78]
push eax
call edi
cmp eax, 0xffffffff
jne 0x43150b
push 0
lea eax, [ebp - 0x78]
push eax
call ebx
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [ebp + 0x8c]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004390e8
add ebp, 0x90
leave
ret
Function at 0x43500a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x46b114]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x46cb78], 0
push esi
mov esi, ecx
je 0x4350a3
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
cmp dword [esi + 0x64], 0
jbe 0x435053
cmp dword [esi + 0x68], 8
jb 0x435040
mov eax, dword [esi + 0x54]
jmp 0x435043
lea eax, [esi + 0x54]
push eax
push 0x46cb80
call dword [sym.imp.MSVCR90.dll_wcscpy]
pop ecx
pop ecx
jmp 0x435075
cmp dword [esi + 0x84], 8
jb 0x435061
mov eax, dword [esi + 0x70]
jmp 0x435064
lea eax, [esi + 0x70]
push str.XLBugReport.exe
push eax
push 0x46cb80
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp dword [esi + 0x4c], 8
jb 0x435080
mov esi, dword [esi + 0x38]
jmp 0x435083
add esi, 0x38
push 1
push 0
push esi
push 0x46cb80
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004390e8
leave
ret

Function at 0x4350b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x4c], 8
jb 0x4350c6
mov eax, dword [edi + 0x38]
jmp 0x4350c9
lea eax, [edi + 0x38]
push str.minidump.dmp
push eax
mov esi, 0x46cb80
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp dword [edi + 0x4c], 8
jb 0x4350e6
mov eax, dword [edi + 0x38]
jmp 0x4350e9
lea eax, [edi + 0x38]
xor ebx, ebx
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, ebx
je 0x435182
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0xc], eax
cmp dword [0x46cb78], ebx
je 0x435153
push ebx
lea eax, [ebp - 0xc]
push ebx
push eax
cmp byte [0x46cb71], bl
jne 0x43513c
push ebx
jmp 0x43513e
push 2
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x46cb78]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax], 0xe0008001
jne 0x435182
lea ecx, [eax + 0x14]
cmp ecx, ebx
je 0x435182
cmp dword [eax + 0x10], 1
jne 0x435182
push dword [ecx]
lea ecx, [edi + 0x14c]
call dword [0x45434c]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4352db
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
cmp byte [esi + 0x1f4], 0
je 0x43543b
cmp dword [esi + 0x4c], 8
jb 0x4352fc
mov eax, dword [esi + 0x38]
jmp 0x4352ff
lea eax, [esi + 0x38]
push ebx
push edi
push 0x45505c
push eax
mov edi, 0x46cb80
push edi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x455058
push edi
call dword [sym.imp.MSVCR90.dll__wfopen]
xor ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x435439
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], ebx
call dword [esi + 0x204]
mov edi, dword [sym.imp.MSVCR90.dll_fwrite]
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], ebx
je 0x4353ab
push dword [ebp - 0xc]
mov ebx, str.Lua_Call_Log:__r_n
push ebx
call sub.MSVCR90.dll_strlen
pop ecx
push eax
push 1
push ebx
call edi
add esp, 0x10
push dword [esi + 0x228]
push dword [ebp - 8]
call dword [esi + 0x220]
jmp 0x435389
push dword [ebp - 0xc]
push dword [ebp - 4]
call sub.MSVCR90.dll_strlen
pop ecx
push eax
push 1
push dword [ebp - 4]
call edi
add esp, 0x10
push dword [esi + 0x228]
lea eax, [ebp - 4]
push eax
call dword [esi + 0x21c]
cmp dword [ebp - 4], 0
jne 0x435372
lea eax, [ebp - 8]
push eax
call dword [esi + 0x208]
jmp 0x4353d3
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], ebx
call dword [esi + 0x1fc]
cmp dword [ebp - 0x10], ebx
je 0x4353d3
lea ebx, [esi + 0x224]
push dword [ebx]
push dword [ebp - 0x10]
call dword [esi + 0x200]
mov eax, dword [ebx]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x43542f
push dword [ebp - 0xc]
mov ebx, str.Lua_Stack:_r_n
push ebx
call sub.MSVCR90.dll_strlen
pop ecx
push eax
push 1
push ebx
call edi
add esp, 0x10
push dword [esi + 0x228]
push dword [ebp - 8]
call dword [esi + 0x220]
jmp 0x435419
push dword [ebp - 0xc]
push dword [ebp - 4]
call sub.MSVCR90.dll_strlen
pop ecx
push eax
push 1
push dword [ebp - 4]
call edi
add esp, 0x10
push dword [esi + 0x228]
lea eax, [ebp - 4]
push eax
call dword [esi + 0x21c]
cmp dword [ebp - 4], 0
jne 0x435402
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR90.dll_fclose]
pop ecx
pop edi
pop ebx
pop esi
leave
ret