joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c3700
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100efffb
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1011f07c]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [esp + 0x68]
xor ebp, ebp
or eax, 0xffffffff
lea edi, [esi + 0x24]
mov ecx, edi
mov dword [esi], vtable.CAntiVirusInstance.0
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebp
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebp
call fcn.100a6160
mov dword [esp + 0x60], ebp
mov eax, dword [ebx + 0x40]
mov dword [esi + 0x10], eax
mov eax, str..RAR
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], str..TAR
mov dword [esp + 0x1c], str..GZIP
mov dword [esp + 0x20], str..CAB
mov dword [esp + 0x24], str..UUE
mov dword [esp + 0x28], str..ARJ
mov dword [esp + 0x2c], str..BZ2
mov dword [esp + 0x30], str..LZH
mov dword [esp + 0x34], str..JAR
mov dword [esp + 0x38], str..ACE
mov dword [esp + 0x3c], str..ISO
mov dword [esp + 0x40], 0x100f7924
mov dword [esp + 0x44], 0x100f792c
mov dword [esp + 0x48], str..MDF
mov dword [esp + 0x4c], 0x100f7940
mov dword [esp + 0x50], str..ZIP
mov dword [esp + 0x54], ebp
lea ebx, [esp + 0x14]
mov edx, dword [edi]
push ebp
push eax
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov eax, dword [ebx + 4]
add ebx, 4
cmp eax, ebp
jne 0x100c37e4
mov eax, esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 4
Function at 0x100c5d30
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x100ea3b8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1011f07c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x10c]
mov edx, dword [eax + 0x14]
lea ebx, [esi + 0x10c]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp dword [esi + 0xa8], 0
je 0x100c5d9f
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
mov ecx, ebx
call edx
mov eax, 0xfffffffe
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0xa8], eax
test eax, eax
jne 0x100c5ddd
mov dword [esp + 0x1c], 0xffffffff
mov edx, dword [ebx]
mov eax, dword [edx + 0x1c]
mov ecx, ebx
call eax
or eax, 0xffffffff
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SAVAPI3_initialize
push eax
call edi
mov ecx, dword [esi + 0xa8]
push str.SAVAPI3_uninitialize
push ecx
mov dword [esi + 0xac], eax
call edi
mov edx, dword [esi + 0xa8]
push str.SAVAPI3_create_instance
push edx
mov dword [esi + 0xb0], eax
call edi
mov dword [esi + 0xb4], eax
mov eax, dword [esi + 0xa8]
push str.SAVAPI3_release_instance
push eax
call edi
mov ecx, dword [esi + 0xa8]
push str.SAVAPI3_set_user_data
push ecx
mov dword [esi + 0xb8], eax
call edi
mov edx, dword [esi + 0xa8]
push str.SAVAPI3_register_callback
push edx
mov dword [esi + 0xbc], eax
call edi
mov dword [esi + 0xc0], eax
mov eax, dword [esi + 0xa8]
push str.SAVAPI3_unregister_callback
push eax
call edi
mov ecx, dword [esi + 0xa8]
push str.SAVAPI3_engine_modules_get
push ecx
mov dword [esi + 0xc4], eax
call edi
mov edx, dword [esi + 0xa8]
push str.SAVAPI3_reload_engine_ex
push edx
mov dword [esi + 0xc8], eax
call edi
mov dword [esi + 0xcc], eax
mov eax, dword [esi + 0xa8]
push str.SAVAPI3_get
push eax
call edi
mov ecx, dword [esi + 0xa8]
push str.SAVAPI3_scan
push ecx
mov dword [esi + 0xd0], eax
call edi
mov edx, dword [esi + 0xa8]
push str.SAVAPI3_set
push edx
mov dword [esi + 0xd4], eax
call edi
mov dword [esi + 0xd8], eax
mov eax, dword [esi + 0xa8]
push str.SAVAPI3_get_version
push eax
call edi
mov ecx, dword [esi + 0xa8]
push str.SAVAPI3_set_fops
push ecx
mov dword [esi + 0xdc], eax
call edi
mov edx, dword [esi + 0xa8]
push str.SAVAPI3_free
push edx
mov dword [esi + 0xe0], eax
call edi
mov dword [esi + 0xe4], eax
mov eax, dword [esi + 0xa8]
push str.SAVAPI3_set_log_callback
push eax
call edi
mov dword [esi + 0xe8], eax
push str.SAVAPI3_is_running_ex
mov ecx, dword [esi + 0xa8]
push ecx
call edi
mov edx, dword [esi + 0xa8]
push str.SAVAPI3_send_signal
push edx
mov dword [esi + 0xec], eax
call edi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esi + 0xf0], eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
mov ecx, ebx
call edx
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x100c6e50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100ea359
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1011f07c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x100c6eff
cmp dword [eax + 0xd4], 0
je 0x100c6eff
mov edi, dword [esp + 0x24]
push edi
lea ecx, [esi + 0x90]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea ecx, [esp + 0x24]
call dword [0x100f3984]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edi
push eax
push ecx
lea edx, [esp + 0x30]
push str.mem:__0x_08X__d__s
push edx
mov dword [esp + 0x28], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x38]
mov edx, dword [eax + 0xd4]
push ecx
add esi, 0x68
push esi
call edx
add esp, 0x1c
lea ecx, [esp + 0x24]
mov esi, eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0xc
or eax, 0xffffffff
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0xc
Function at 0x100c7bf0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100ec5e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1011f07c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x40]
mov edx, dword [eax + 0x14]
lea ecx, [esi + 0x40]
push 0xffffffffffffffff
mov dword [esp + 0x1c], ecx
call edx
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov dword [esi + 0x60], ebx
mov edi, dword [esi + 0x10]
cmp edi, dword [esi + 0x14]
jbe 0x100c7c46
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 4]
mov dword [esp + 0x1c], ecx
lea ecx, [ecx]
mov eax, dword [esi + 0x14]
mov dword [esp + 0x14], eax
cmp dword [esi + 0x10], eax
jbe 0x100c7c66
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 4]
test ecx, ecx
je 0x100c7c71
cmp ecx, eax
je 0x100c7c7b
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x1c]
cmp edi, dword [esp + 0x14]
je 0x100c7ced
test ecx, ecx
jne 0x100c7ce5
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x100c7c98
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [ebp + 0x10]
mov ecx, dword [edi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push edx
call eax
mov ebx, eax
cmp ebx, 0x2714
je 0x100c7ced
mov ecx, dword [esi + 0x60]
test ecx, ecx
jne 0x100c7ced
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x100c7ce9
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x100c7cd9
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x1c]
add edi, 4
jmp 0x100c7c50
mov eax, dword [ecx]
jmp 0x100c7c8d
mov eax, dword [eax]
jmp 0x100c7cce
mov dword [esp + 0x30], 0xffffffff
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100d89d0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x100f236a
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x1011f07c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0x14]
lea edi, [ebx + 4]
push 0xffffffffffffffff
mov ecx, edi
mov dword [esp + 0x18], edi
call edx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100d8a27
push esi
call fcn.100d8ac0
test eax, eax
jne 0x100d8a2d
push esi
call fcn.100d8bb0
mov eax, dword [ebx]
test eax, eax
je 0x100d8a43
push 0
call fcn.100a1960
add esp, 4
mov dword [ebx], 0
push esi
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
push 0xfde9
lea ecx, [esp + 0x10]
lea esi, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.10021fb0
push 0
push 6
mov byte [esp + 0x2c], 2
mov eax, dword [eax]
push ebx
push eax
call fcn.100a33c0
add esp, 0x14
lea ecx, [esp + 0x10]
mov esi, eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_char_class_StrTraitMFC_DLL_char_class_ATL::ChTraitsCRT_char_____::CStringT_char_class_StrTraitMF]
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
test esi, esi
sete al
mov dword [esp + 0x20], 0xffffffff
mov edx, dword [edi]
mov ecx, edi
mov esi, eax
mov eax, dword [edx + 0x1c]
call eax
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x100e78b2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1011f07c]
jne 0x100e78bc
repz ret
jmp fcn.100e81a6
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4038fa
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4040fa], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404658], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4045ec], eax
mov dword [0x4040f2], eax
mov dword [0x4045d8], 0x30
mov dword [0x4045dc], 2
jmp 0x40393f
mov dword [0x4045e0], 0x403153
mov dword [0x4045e4], 0
mov dword [0x4045e8], 0
mov dword [0x404600], 0x40454e
mov dword [0x4045f8], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4045f0], eax
mov dword [0x404604], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4045f4], eax
push 0x4045d8
fadd dword [ebp + 0x40]
add bh, bh
adc eax, sym.imp.user32.dll_RegisterClassExA
push 0
push dword [0x4040f2]
push 0
push 0
push 0x1e5
push 0x203
push 0xfffff98e
push 0xfffff9c0
push 0xcf0000
push str.asdlkjalsdj_ai8
push 0x40454e
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404650], eax
push 5
push dword [0x404650]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404650]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404608]
jmp 0x403a13
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x403a05
mov eax, dword [0x404610]
jmp 0x403a2e
call 0x402bd5
ret
Function at 0x417fd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push 0x206
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call fcn.004054f0
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx edx, word [esp + 8]
sub edx, 0x41
lea ebx, [esp + 4]
call fcn.00414aa0
mov ebx, dword [esp + 4]
call fcn.00414ba0
cmp eax, 0xffffffff
jne 0x41804f
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00401148
add esp, 0x218
ret
push esi
call fcn.00417da0
mov ecx, dword [esp + 0x218]
add esp, 4
pop ebx
xor ecx, esp
call fcn.00401148
add esp, 0x218
ret

Function at 0x105211b8
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.10521308
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x105211de
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105211ca
add dl, dl
jne 0x105211e9
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1052123c
xor eax, eax
add dl, dl
jne 0x105211f6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105212dd
add dl, dl
jne 0x10521205
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10521210
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1052121b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10521226
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10521232
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x105211d5
mov eax, 1
add dl, dl
jne 0x1052124a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10521255
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10521241
sub eax, ebx
mov ebx, 1
jne 0x10521288
mov ecx, 1
add dl, dl
jne 0x1052126e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10521279
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10521265
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105211d5
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1052129f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105212aa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10521296
cmp eax, 0x7d00
jae 0x105212cd
cmp eax, 0x500
jb 0x105212c8
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105211d5
cmp eax, 0x7f
ja 0x105212d0
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105211d5
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x105212fe
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x105211d5
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x405eab
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x42c55c], esi
push edi
jne 0x405ee5
mov ecx, 0x42c558
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x405ec1
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x42c958
jl 0x405ebc
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x405f1a
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c558]
xor eax, esi
inc ecx
dec edx
jne 0x405efd
pop edi
pop esi
not eax
ret 0xc

Function at 0x431000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7dc6601f
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x431060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x242e268e
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401582
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x42e7fe
call fcn.00414ad0
sub esp, 0x78
mov eax, dword [0x43dde0]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
mov eax, dword [0x43d0e4]
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x80]
rep stosd dword es:[edi], eax
xor esi, esi
mov dword [ebp - 0x40], esi
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ax, word [ebp + 8]
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], 0x643
mov dword [ebp - 0x84], 0x44
mov word [ebp - 0x54], ax
call fcn.00401506
push 0x4305bc
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], esi
call fcn.0040152c
push 0xffffffffffffffff
push esi
add ebx, 0x1c
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0040134c
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x401608
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x84]
push ecx
push esi
push esi
push esi
push 1
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401658
push 0xffffffffffffffff
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x401648
push dword [ebp + 0xc]
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x401648
mov dword [ebp - 0x30], esi
push dword [ebp - 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x40]
call edi
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040111c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x30]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004145de
leave
ret 8
Function at 0x405054
Capabilities:
Check if file exists
Get common file path
Move file

Disassembly:
mov eax, 0x42eb2f
call fcn.00414ad0
sub esp, 0x23c
mov eax, dword [0x43dde0]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x238], esi
call fcn.00401727
and dword [ebp - 4], 0
lea ecx, [esi + 0x1c]
call fcn.00401727
mov esi, dword [ebp + 8]
lea ebx, [esi + 0x90]
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00401506
push 0xffffffffffffffff
push 0
lea edi, [esi + 0x2a4]
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0040134c
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4050c1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405249
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 8
jb 0x4050e3
add eax, 4
mov dword [ebp + 8], eax
mov eax, dword [eax]
jmp 0x4050e9
add eax, 4
mov dword [ebp + 8], eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x40515d
cmp dword [edi + 0x18], 8
jb 0x4050ff
mov edi, dword [edi + 4]
jmp 0x405102
add edi, 4
push edi
push eax
call fcn.0041516e
test eax, eax
pop ecx
pop ecx
jne 0x40515d
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 8
mov eax, dword [ebp + 8]
jb 0x40511d
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00415152
pop ecx
pop ecx
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [esi + 0x1c], 8
jb 0x405144
mov esi, dword [esi + 8]
jmp 0x405147
add esi, 8
lea eax, [ebp - 0x234]
push eax
push 0
push 0
push esi
call sub.msi.dll_MsiIsProductElevatedW
jmp 0x405249
push 0x208
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.00414b30
add esp, 0xc
lea eax, [ebp - 0x234]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x405249
cmp dword [ebx + 0x18], 8
jb 0x405198
mov ebx, dword [ebx + 4]
jmp 0x40519b
add ebx, 4
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsSameRootW]
push ebx
lea eax, [ebp - 0x234]
push eax
call esi
test eax, eax
je 0x405249
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x18], 8
mov ebx, dword [ebp + 8]
jb 0x4051c3
mov eax, dword [ebx]
jmp 0x4051c6
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x234]
push eax
call esi
test eax, eax
je 0x405249
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x4051e0
lea ecx, [ebp - 0x28]
cmp dword [edi + 0x18], 8
jb 0x4051ea
mov eax, dword [ebx]
jmp 0x4051ec
mov eax, ebx
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x405227
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x23c], str.Unable_to_restore_package_to_cached_path
call fcn.00414eb6
push 0x438224
lea eax, [ebp - 0x248]
push eax
call fcn.00414aef
mov esi, dword [ebp - 0x238]
push 0xffffffffffffffff
push 0
push edi
mov ecx, esi
call fcn.00401476
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 0x1c]
call fcn.00401476
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040111c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x238]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004145de
leave
ret 8