joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d50
Capabilities:
Check if file exists
Create process on windows
Create process suspended
Get file attributes
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0xa8
mov edi, dword [ecx]
mov dword [esp], 0x208
call sub.msvcrt.dll_malloc
mov dword [esp + 4], edi
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ebx, eax
mov dword [esp + 8], str.d3d9.dll
mov dword [esp], eax
call esi
sub esp, 0xc
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
mov dword [ebp - 0x7c], eax
mov dword [esp], ebx
call fcn.00409bb8
cmp dword [ebp - 0x7c], 0xffffffff
mov eax, 0x1002
je 0x401f03
mov dword [esp], 0x208
call sub.msvcrt.dll_malloc
mov dword [esp + 4], edi
mov ebx, eax
mov dword [esp + 8], str.VanillaFixes.exe
mov dword [esp], eax
call esi
sub esp, 0xc
mov dword [esp], ebx
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
pxor xmm0, xmm0
mov dword [ebp - 0x1c], 0
sub esp, 4
movups xmmword [ebp - 0x5c], xmm0
movups xmmword [ebp - 0x4c], xmm0
movups xmmword [ebp - 0x3c], xmm0
movups xmmword [ebp - 0x2c], xmm0
movups xmmword [ebp - 0x6c], xmm0
mov dword [esp], str._selftest
call sub.msvcrt.dll_wcslen
lea edi, [eax + 0x106]
lea eax, [edi + edi]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [esp + 4], edi
mov dword [esp + 0xc], ebx
mov esi, eax
mov dword [esp + 8], str._ls__selftest
mov dword [esp], eax
call fcn.00401d20
lea eax, [ebp - 0x6c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x5c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x400
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
sub esp, 0x28
mov edi, eax
mov dword [esp], esi
call fcn.00409bb8
test edi, edi
je 0x401f30
mov dword [esp + 4], 0x2710
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], 0
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
sub esp, 8
cmp dword [ebp - 0x70], 0x103
je 0x401f10
mov eax, dword [ebp - 0x6c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x68]
sub esp, 4
mov dword [esp], eax
call esi
sub esp, 4
mov dword [esp], ebx
call fcn.00409bb8
mov eax, dword [ebp - 0x70]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 4], 0x1001
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 0x70], 0x1001
sub esp, 8
jmp 0x401edc
mov dword [esp], ebx
call fcn.00409bb8
lea esp, [ebp - 0x10]
mov eax, 0x1000
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
Function at 0x402020
Capabilities:
Print debug messages

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 0x208
call sub.msvcrt.dll_malloc
mov dword [esp + 8], 0x104
mov dword [esp + 4], eax
mov ebx, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4020a0
mov dword [esp], ebx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
sub esp, 4
mov dword [esp], ebx
call fcn.00401f50
mov ebx, eax
test eax, eax
je 0x402180
lea eax, [eax - 0x1000]
cmp eax, 6
ja 0x402190
lea eax, [ebx - 0x1001]
cmp eax, 5
ja case.default.0x402095
jmp dword [eax*4 + 0x40bb24]
mov dword [esp + 8], str.GetLastError____ERROR_INSUFFICIENT_BUFFER
mov dword [esp + 4], 0x200
mov dword [esp], 0x40f440
call fcn.00401d20
mov dword [esp + 0x2c], 0x10
mov dword [esp + 0x28], 0x40bac0
mov dword [esp + 0x24], 0x40f440
mov dword [esp + 0x20], 0
add esp, 0x18
pop ebx
jmp dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, str.Direct3DCreate9_was_not_found_in_d3d9.dll
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.VanillaFixes:_Self_test_result:__ls
mov dword [esp + 4], 0x200
mov dword [esp], 0x40f440
call fcn.00401d20
mov dword [esp], 0x40f440
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, ebx
sub esp, 4
add esp, 0x18
pop ebx
ret 0x10
mov eax, str.No_adapters
jmp 0x4020f5
mov eax, str.Direct3DCreate9_failed
jmp 0x4020f5
mov eax, str.Process_still_active
jmp 0x4020f5
mov eax, str.System_D3D9_is_in_use
jmp 0x4020f5
mov eax, str.d3d9.dll_could_not_be_loaded
jmp 0x4020f5
mov eax, str.Success
jmp 0x4020f5
mov eax, str.Exception_caught
jmp 0x4020f5
mov eax, str.Could_not_create_process
jmp 0x4020f5
Function at 0x402560
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov dword [esp + 4], 2
mov dword [esp], 0x104
call sub.msvcrt.dll_calloc
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x40bb54
mov ebx, eax
mov dword [esp + 4], 0x104
mov dword [esp], eax
call fcn.00402250
mov eax, dword [esi + 4]
test eax, eax
je 0x4025d0
mov dword [esp + 8], eax
mov eax, dword [esi]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00403110
mov dword [esp + 0x20], ebx
add esp, 0x10
pop ebx
pop esi
pop edi
jmp fcn.00409bb8
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x4025b9
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 4
mov dword [esp + 0x20], ebx
add esp, 0x10
pop ebx
pop esi
pop edi
jmp fcn.00409bb8
Function at 0x402720
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
mov dword [esp + 0x10], 4
lea ebp, [eax + eax + 2]
mov dword [esp + 0xc], 0x3000
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
sub esp, 0x14
mov ebx, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebp
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
sub esp, 0x14
test eax, eax
je 0x402860
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
sub esp, 0x1c
mov esi, eax
test eax, eax
je 0x4028d8
mov dword [esp + 4], 0x2710
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
sub esp, 8
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4028b0
cmp eax, 0x103
je 0x4028b0
mov dword [esp + 0xc], 0x8000
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov edx, eax
sub esp, 0x10
xor eax, eax
test edx, edx
je 0x4028e8
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], str.Failed_to_write_process_memory__pDllPath_
mov dword [esp + 4], 0x200
mov dword [esp], 0x40f840
call fcn.00402250
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.VanillaFixes
mov dword [esp + 4], 0x40f840
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MessageBoxW]
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.DLL_entry_point_returned_an_error___ld_._r_n_r_nMake_sure_you_have_a_compatible_game_client.
mov dword [esp + 4], 0x200
mov dword [esp], 0x40f840
call fcn.00402250
jmp 0x40287c
mov dword [esp + 8], str.Failed_to_create_remote_thread
jmp 0x402868
mov dword [esp + 8], str.Failed_to_clean_up_process_memory__pDllPath_
jmp 0x402868
Function at 0x402a20
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x40fc4c]
test eax, eax
je 0x402a30
ret
push ebx
sub esp, 0x18
mov dword [esp], str.user32
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
sub esp, 4
mov dword [esp], str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 4], str.SetProcessDpiAwarenessContext
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40fc4c], eax
sub esp, 8
test eax, eax
je 0x402ac0
mov dword [esp + 8], str.VanillaFixes:_Using_SetProcessDpiAwarenessContext_to_set_DPI_scaling_mode
mov dword [esp + 4], 0x200
mov dword [esp], 0x40fc60
call fcn.00402990
mov dword [esp], 0x40fc60
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call ebx
sub esp, 4
mov dword [esp], 0xfffffffc
call dword [0x40fc4c]
sub esp, 4
test eax, eax
je 0x402af8
add esp, 0x18
pop ebx
ret
call dword [sym.imp.USER32.dll_SetProcessDPIAware]
mov dword [esp + 8], str.VanillaFixes:_Using_SetProcessDPIAware_to_set_DPI_scaling_mode
mov dword [esp + 4], 0x200
mov dword [esp], 0x40fc60
call fcn.00402990
mov dword [esp], 0x40fc60
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
sub esp, 4
jmp 0x402ab3
mov dword [esp + 8], str.VanillaFixes:_DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2_not_supported
mov dword [esp + 4], 0x200
mov dword [esp], 0x40fc60
call fcn.00402990
mov dword [esp], 0x40fc60
call ebx
sub esp, 4
call dword [sym.imp.USER32.dll_SetProcessDPIAware]
mov dword [esp + 8], str.VanillaFixes:_Using_SetProcessDPIAware_to_set_DPI_scaling_mode
mov dword [esp + 4], 0x200
mov dword [esp], 0x40fc60
call fcn.00402990
mov dword [esp], 0x40fc60
call ebx
sub esp, 4
jmp 0x402ab3
Function at 0x403110
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov edi, dword [esp + 0x60]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov esi, dword [esp + 0x64]
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x4032c0
mov edx, eax
mov eax, dword [esp + 0x68]
test eax, eax
jle 0x4032d4
mov eax, dword [esp + 0x68]
xor ebx, ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x60], edi
mov ebp, ebx
sub eax, 1
mov dword [esp + 0x2c], eax
jmp 0x40319d
add ebp, 1
cmp dword [esp + 0x68], ebp
je 0x4032d0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [esi + ebp*4]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
lea ebx, [eax + 2]
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_calloc
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov edi, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [esi + ebp*4]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
cmp dword [esp + 0x2c], ebp
jle 0x403256
mov dword [esp], edi
call sub.msvcrt.dll_strlen
mov byte [edi + eax], 0xd
mov dword [esp], edi
call sub.msvcrt.dll_strlen
mov byte [edi + eax], 0xa
mov dword [esp], edi
mov dword [esp + 0x3c], 0
call sub.msvcrt.dll_strlen
lea ecx, [esp + 0x3c]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
mov ebx, eax
mov dword [esp], edi
call fcn.00409bb8
test ebx, ebx
jne 0x403190
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x60]
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 4
add esp, 0x4c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esp + 0x28]
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
sub esp, 4
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x403610
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004097a0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004097a0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x403670
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x41008c]
test esi, esi
jle 0x403790
mov eax, dword [0x410090]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4036a4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x403727
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x403690
mov dword [esp], ebx
call fcn.00404060
mov edi, eax
test eax, eax
je 0x4037b7
mov eax, dword [0x410090]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004041a0
mov edx, dword [0x410090]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x403797
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x403720
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x403730
add dword [0x41008c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x410090]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x403720
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00403610
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4036ae
mov eax, dword [0x410090]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00403610
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00403610
lea esi, [esi]
nop

Function at 0x403cd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4100a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4100a0]
sub esp, 4
test ebx, ebx
je 0x403d25
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x403d1e
test esi, esi
je 0x403d1e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x403d00
mov dword [esp], 0x4100a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x404060
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x404085
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x404090
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x404085
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x4040d8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4040ce
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4040da
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4040c0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4096c0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 0x40], eax
xor eax, eax
mov word [ebp - 0x248], ax
push 0x206
push 0
lea ecx, [ebp - 0x246]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
xor edx, edx
mov word [ebp - 0x450], dx
push 0x206
push 0
lea eax, [ebp - 0x44e]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCR90.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x40974f
mov edx, dword [ebp + 0xc]
push edx
push 0x104
lea eax, [ebp - 0x450]
push eax
call fcn.004062c0
push 0x40b3b4
push 0x104
lea ecx, [ebp - 0x450]
push ecx
call fcn.00406310
jmp 0x40979e
lea edx, [ebp - 0x450]
push edx
push 0
push 0
push 0x2b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x409780
push 0x40b3b8
push 0x104
lea eax, [ebp - 0x450]
push eax
call fcn.00406310
jmp 0x40979e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b3d8
push str.SHGetFolderPath_failed
call fcn.004080a0
add esp, 0xc
jmp 0x409874
lea ecx, [ebp - 0x450]
push ecx
push 0x104
lea edx, [ebp - 0x248]
push edx
call fcn.004062c0
push str.AdobeARMHelper.exe
push 0x104
lea eax, [ebp - 0x248]
push eax
call fcn.00406310
push 0xffffffffffffffff
lea ecx, [ebp - 0x248]
push ecx
call fcn.004095f0
add esp, 8
test eax, eax
jne 0x4097fc
push 0x357
lea edx, [ebp - 0x248]
push edx
push str.Service_workflow_failed__file_not_valid:
call fcn.004080a0
add esp, 0xc
jmp 0x409874
mov dword [ebp - 0x3c], 0
push 0x38
push 0
lea eax, [ebp - 0x38]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x540
mov dword [ebp - 0x20], 5
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x248]
mov dword [ebp - 0x2c], edx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40985b
push 0
push 0x40b48c
push str.ShellExecuteEx_succeeded
call fcn.004080a0
add esp, 0xc
jmp 0x409874
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b4c4
push str.ShellExecuteEx_failed
call fcn.004080a0
add esp, 0xc
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.00407458
mov esp, ebp
pop ebp
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 0x404090
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
out dx, eax
adc eax, 0x2856a918
push edi
pop edi
ficomp dword [esi - 0x75]
xor al, 0x8b
Function at 0x60002430
Capabilities:
Accept command line arguments

Disassembly:
push 0x54
mov eax, 0x6001dfdd
call fcn.6001adcc
mov eax, dword fs:[0x2c]
mov ecx, dword [0x60030374]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x60], edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x6002e1d8]
cmp eax, dword [ecx + 4]
jg 0x6000258f
xor ebx, ebx
inc ebx
cmp byte [0x6002e1dc], 0
jne 0x600024d3
and dword [ebp - 0x5c], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.kernel32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x600024cd
xor edi, edi
cmp dword [ebp - 0x5c], edi
jle 0x600024c3
xor eax, eax
push dword [esi + eax*4]
lea ecx, [ebp - 0x28]
call fcn.6001ca40
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
mov ecx, 0x6002e1d0
call fcn.6001ca40
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.60002111
inc edi
movzx eax, di
cmp eax, dword [ebp - 0x5c]
jl 0x60002492
push esi
call dword [sym.imp.kernel32.dll_LocalFree]
mov edi, dword [ebp - 0x60]
mov byte [0x6002e1dc], bl
push edi
lea eax, [ebp - 0x58]
push 0x600210d4
push eax
call fcn.6001ca40
push edi
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 2
push 0x600210d8
push eax
call fcn.6001ca40
add esp, 0x18
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 3
mov edi, 0x6002e1d0
push eax
mov ecx, edi
call fcn.6001ca40
jmp 0x6000255d
lea ecx, [ebp - 0x5c]
call fcn.60002207
lea ecx, [ebp - 0x58]
mov esi, eax
call fcn.60002dec
push eax
mov ecx, esi
call fcn.60002dec
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x60002577
lea ecx, [ebp - 0x40]
call fcn.60002dec
push eax
mov ecx, esi
call fcn.60002dec
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x60002577
lea ecx, [ebp - 0x5c]
call fcn.60002228
lea eax, [ebp - 0x60]
mov ecx, edi
push eax
call fcn.6001ca40
push eax
lea ecx, [ebp - 0x5c]
call fcn.6001ca40
test al, al
jne 0x60002511
xor bl, bl
lea ecx, [ebp - 0x40]
call fcn.60002111
lea ecx, [ebp - 0x58]
call fcn.60002111
mov al, bl
call fcn.6001ad76
ret
mov esi, 0x6002e1d8
push esi
call fcn.6001ca40
cmp dword [0x6002e1d8], 0xffffffff
pop ecx
jne 0x60002462
and dword [ebp - 4], 0
mov ecx, 0x6002e1d0
call fcn.6001ca40
push 0x6001fa60
call fcn.6001ca40
or dword [ebp - 4], 0xffffffff
push esi
call fcn.6001ca40
pop ecx
pop ecx
jmp 0x60002462

Function at 0x600039f8
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x6002c028]
call dword [sym.imp.kernel32.dll_TlsGetValue]
add eax, 4
ret
Function at 0x60003e19
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
push dword [0x6002c024]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
jne 0x60003e6f
mov edi, 0x23ac
push edi
call fcn.6001ca40
mov esi, eax
pop ecx
test esi, esi
jne 0x60003e44
mov eax, 0x40000002
jmp 0x60003e95
push edi
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push esi
push dword [0x6002c024]
call dword [sym.imp.kernel32.dll_TlsSetValue]
test eax, eax
jne 0x60003e68
mov eax, 0x40000001
jmp 0x60003e95
push esi
call fcn.60003a51
pop ecx
call fcn.6001ca40
cmp word [0x6002e284], 0
mov esi, eax
jne 0x60003e93
call fcn.6000c2b8
mov dword [0x6002e288], eax
xor eax, eax
inc eax
mov word [0x6002e284], ax
mov eax, esi
pop edi
pop esi
ret

Function at 0x6000418c
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push str.GlobalARM_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.kernel32.dll_OpenMutexW]
test eax, eax
je 0x600041ad
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
inc eax
ret
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x600041a9
xor eax, eax
ret

Function at 0x600041bb
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push str.GlobalAcro_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.kernel32.dll_OpenMutexW]
test eax, eax
je 0x600041dc
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
inc eax
ret
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x600041d8
xor eax, eax
ret