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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5075cc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5075e8
push ebx
push 0x5075f8
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004069f8
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403540
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x5075aa
mov eax, dword [0x537e7c]
mov eax, dword [eax + 0x1a8]
call fcn.0050747c
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
mov ebx, dword [ebp - 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5075d3
lea eax, [ebp - 4]
call fcn.00406438
ret
Function at 0x507f6c
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50815a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.0048a710
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0048eea4
test al, al
jne 0x507fd9
xor eax, eax
push ebp
push 0x507fcf
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
xor eax, eax
call fcn.0048f394
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x507fd9
push 0
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
mov eax, dword [0x53f168]
call fcn.004064d4
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
jne 0x508008
mov eax, dword [0x537e7c]
mov eax, dword [eax + 0x1a4]
call fcn.0050747c
push 0x80
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_SetFileAttributesW
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x53bb50]
push eax
push 0
mov ecx, 0x508168
mov edx, 0x50816c
xor eax, eax
call fcn.0040a154
mov dword [ebp - 8], eax
push 0x50763c
push 0xfffffffffffffffc
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SetWindowLongW
mov dword [0x53f194], eax
xor eax, eax
push ebp
push 0x508123
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x537e6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_SetWindowPos
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.0048a0e4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x24]
mov ecx, 1
mov eax, 0x508188
call fcn.00418fa4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
call fcn.00489fc4
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.00406854
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00507524
mov dword [ebp - 0xc], eax
call fcn.00507600
test al, al
jne 0x508103
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x5080e1
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50812a
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_DestroyWindow
ret
Function at 0x5094a8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x509762
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x537e6c]
mov eax, dword [eax]
mov edx, 0x50977c
call fcn.00486d70
push 5
mov eax, dword [0x537e6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
push ebp
push 0x509729
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.004eb71c
lea eax, [ebp - 0x10]
call fcn.0048a588
mov eax, dword [ebp - 0x10]
call fcn.00418a50
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.0048a0e4
mov edx, dword [ebp - 0x14]
mov eax, 0x53f168
call fcn.00406448
call fcn.00507834
lea ecx, [ebp - 0x18]
mov edx, 0x50979c
mov eax, dword [0x53f168]
call fcn.004891c8
mov edx, dword [ebp - 0x18]
mov eax, 0x53f16c
call fcn.00406448
lea ecx, [ebp - 0x1c]
mov edx, 0x5097b4
mov eax, dword [0x53f168]
call fcn.004891c8
mov edx, dword [ebp - 0x1c]
mov eax, 0x53f170
call fcn.00406448
push 2
push 0
push 1
mov ecx, dword [0x53f168]
mov dl, 1
mov eax, dword [0x48bfe8]
call fcn.0048c328
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x509600
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 4]
mov edx, dword [ebp - 0x24]
sub edx, 8
mov eax, dword [ebp - 4]
call fcn.0048c2e8
lea edx, [ebp - 0xc]
mov ecx, 8
mov eax, dword [ebp - 4]
call fcn.0048c2c0
cmp dword [ebp - 0xc], 0x67734d49
je 0x5095db
mov cl, 1
xor edx, edx
mov eax, dword [0x53f170]
call fcn.0048d5ac
jmp 0x5095ea
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x53f168]
call fcn.0048d5ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x509607
mov eax, dword [ebp - 4]
call fcn.00404098
ret
Function at 0x4015aa
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x420438
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4015c2
test al, 0x10
je 0x4015c2
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x4015c5
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x225c
call fcn.00413830
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
lea eax, [ebp - 0x2008]
push 0x2000
push ebx
push eax
call fcn.00403920
add esp, 0xc
lea eax, [ebp - 0x2008]
push 0x419c6c
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
lea ecx, [ebp - 0x2008]
push eax
push eax
push eax
lea eax, [ebp - 0x2258]
push eax
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401641
mov edx, str.Cant_find_file
mov ecx, str.FindFirstFileEx
call fcn.00401461
xor eax, eax
inc eax
jmp 0x40172c
cmp word [ebp - 0x222c], 0x2e
je 0x4016b2
mov esi, dword [ebp - 0x2258]
lea eax, [ebp - 0x2008]
push 0x2000
push ebx
push eax
call fcn.00403920
add esp, 0xc
lea eax, [ebp - 0x222c]
push eax
lea eax, [ebp - 0x2008]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test esi, 0x410
je 0x4016a1
lea ecx, [ebp - 0x2008]
call fcn.004015c5
mov esi, eax
test esi, esi
je 0x4016b2
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
jmp 0x40172c
lea eax, [ebp - 0x2008]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4016ed
lea eax, [ebp - 0x2258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401641
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
cmp eax, 0x12
je 0x401709
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, str.Error_enumerating_directory
mov ecx, str.FindNextFile
call fcn.00401461
push 3
jmp 0x401706
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, str.Cant_delete_file
lea ecx, [ebp - 0x2008]
call fcn.00401461
push 2
pop eax
jmp 0x40172c
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40172a
mov edx, str.Cant_delete_directory
mov ecx, ebx
call fcn.00401461
push 4
jmp 0x401706
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402171
leave
ret
Function at 0x4017ea
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.00413830
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + edx]
mov dword [ebp - 0x2014], eax
cmp esi, eax
je 0x40193d
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x2004]
sub ebx, eax
mov dword [ebp + 8], ebx
mov edx, 0x1000
lea ecx, [ebp - 0x2004]
lea eax, [edx + 0x7fffeffe]
test eax, eax
je 0x40184e
movzx eax, word [ebx + ecx]
test ax, ax
je 0x40184e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x401830
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x2004]
mov bl, byte [esi]
inc esi
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
push 0x80
push 2
movzx eax, bl
push 0
push 0
push 0x40000000
lea esi, [esi + eax*2]
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401928
mov edi, dword [esi + 2]
add esi, 6
and dword [ebp - 0x2008], 0
test edi, edi
je 0x4018f6
mov eax, dword [esi]
lea ecx, [ebp - 0x2008]
ror eax, 1
push 4
mov dword [ebp - 0x200c], eax
pop eax
push 0
cmp edi, eax
push ecx
cmovb eax, edi
push eax
mov dword [ebp - 0x2010], eax
lea eax, [ebp - 0x200c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40190d
mov eax, dword [ebp - 0x2008]
cmp eax, dword [ebp - 0x2010]
jne 0x40190d
add esi, 4
sub edi, eax
jne 0x4018ad
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, dword [ebp - 0x2014]
je 0x40193d
mov ebx, dword [ebp + 8]
jmp 0x401825
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, str.Cant_write_to_file
mov ecx, 0x419dd8
call fcn.00401461
push 2
pop eax
jmp 0x40193f
mov edx, str.Cant_create_file
lea ecx, [ebp - 0x2004]
call fcn.00401461
xor eax, eax
inc eax
jmp 0x40193f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402171
leave
ret
Function at 0x4029e4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402a23
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402a23
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402a23
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402a23
cmp dword [ecx + 0x74], 0xe
jbe 0x402a23
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x413580
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4135ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4135ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401050
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
test esi, esi
jne 0x40105f
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
cmp dword [esi + 8], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov edi, dword [sym.imp.sqlite3.dll_sqlite3_exec]
mov dword [ebp - 4], 0
je 0x4010ba
call ebx
sub eax, dword [esi + 4]
cmp eax, 0x7d0
jbe 0x4010b4
mov ecx, dword [esi]
lea eax, [ebp - 4]
push eax
push 0
push 0
push str.commit_transaction
push ecx
call edi
add esp, 0x14
test eax, eax
je 0x4010ad
push eax
push str.BeginTransaction_commit_errcode__d__n
call fcn.00487d90
add esp, 8
mov dword [esi + 8], 0
cmp dword [esi + 8], 0
jne 0x4010ef
mov dword [esi + 8], 1
call ebx
lea edx, [ebp - 4]
push edx
push 0
push 0
mov dword [esi + 4], eax
mov eax, dword [esi]
push str.begin_transaction_
push eax
call edi
add esp, 0x14
test eax, eax
je 0x4010fe
push eax
push str.BeginTransaction__begin_errcode__d__n
call fcn.00487d90
add esp, 8
jmp 0x4010fe
mov ecx, dword [0x4f960c]
push ecx
push 0
call dword [sym.imp.USER32.dll_KillTimer]
push 0x401030
push 0x7d0
push 0x2710
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x4f960c], eax
mov eax, dword [ebp - 4]
pop edi
pop ebx
test eax, eax
je 0x401142
push eax
push 0x53
push str.BeginTransaction
push str._s__d__database_error_s_n
call fcn.00487d90
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.sqlite3.dll_sqlite3_free]
add esp, 0x14
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x405e10
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4f4214]
xor eax, ebp
mov dword [ebp - 4], eax
push str.InitItunesDllEnv_enter__r_n
call fcn.00487d90
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0049f910
add esp, 0x10
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x405f65
push str.kernel32.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x405f65
push esi
push str.SetDllDirectoryW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x405f64
lea edx, [ebp - 0x418]
push edx
push 0x20019
push 0
push str.SOFTWAREApple_Inc.Apple_Application_Support
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x418], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405f64
push 0x206
push eax
lea ecx, [ebp - 0x412]
push ecx
mov dword [ebp - 0x41c], 1
mov dword [ebp - 0x420], 0x104
mov word [ebp - 0x414], ax
call fcn.0049f910
add esp, 0xc
lea edx, [ebp - 0x420]
push edx
mov edx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x41c]
push ecx
push 0
push str.InstallDir
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405f64
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405f64
lea ecx, [ebp - 0x414]
push ecx
call esi
mov edx, dword [ebp - 0x418]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.InitItunesDllEnv_leave__r_n
call fcn.00487d90
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0049c72a
mov esp, ebp
pop ebp
ret
Function at 0x405f80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c248b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4f4214]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4f9638]
test eax, eax
jne 0x40605f
call fcn.00405e10
push 0x1b4
call fcn.0049caff
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x405fdc
mov esi, eax
call fcn.00403860
jmp 0x405fde
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push eax
mov dword [0x4f9638], eax
mov dword [eax + 0x168], 0x429180
mov dword [eax + 0x16c], ecx
mov dword [eax + 0x160], 0x4293c0
mov dword [eax + 0x164], edx
call dword [sym.imp.deviceManager.dll_class_DeviceManager____cdecl_OBJECTID_GUID_class_DeviceManager::Notify__]
mov ecx, dword [0x4f9638]
push 0x519
push str.CAppleDeviceManager::Instance
push str._s__d__m_initIsOK__false_n
mov dword [ecx + 0x12c], eax
call fcn.00487d90
mov eax, dword [0x4f9638]
add esp, 0x10
lea edx, [ebp - 0x14]
push edx
push 0
push eax
push 0x4042a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4f963c], eax
mov eax, dword [0x4f9638]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4066e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1151
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4f4214]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4f9640]
cmp dword [eax + 4], 3
je 0x406725
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
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x406711
push 8
call fcn.0049caff
mov edi, eax
push 0x44
mov dword [edi], 1
call fcn.0049caff
add esp, 8
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x40677a
mov ecx, 0xf
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ebx
mov byte [eax + 4], bl
mov byte [ebp - 4], 1
mov dword [eax + 0x34], ecx
mov dword [eax + 0x30], ebx
mov byte [eax + 0x20], bl
mov byte [ebp - 4], bl
mov esi, eax
jmp 0x40677c
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
neg edx
sbb dl, dl
and dl, 6
add dl, 0x30
mov byte [esi], dl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406798
sub eax, edx
push eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esi + 0x20]
call fcn.00407660
mov eax, dword [ebp + 0x10]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4067b4
sub eax, ecx
mov ecx, dword [ebp + 0x10]
push eax
push ecx
lea ecx, [esi + 4]
call fcn.00407660
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
push ebx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], eax
push edi
mov dword [edi + 4], esi
call fcn.00403e30
neg eax
sbb eax, eax
not eax
and eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406a50
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, eax
mov eax, dword [0x4f9640]
cmp dword [eax + 0x12c], 0
mov dword [ebp - 0xc], 0
je 0x406bbb
test edi, edi
je 0x406bbb
cmp dword [ebp + 0xc], 0
je 0x406bbb
mov eax, dword [esi + 0x10]
lea ecx, [eax - 1]
cmp eax, ecx
ja 0x406a98
push str.invalid_string_position
call fcn.0049c0cb
cmp dword [esi + 0x14], 0x10
jb 0x406aa2
mov eax, dword [esi]
jmp 0x406aa4
mov eax, esi
cmp byte [eax + ecx], 0x5c
je 0x406ab8
push 1
push 0x4d46b8
mov ecx, esi
call fcn.00407450
mov eax, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406ac0
sub eax, edx
push eax
push edi
mov ecx, esi
call fcn.00407450
push 4
push 0x4d4184
mov ecx, esi
call fcn.00407450
cmp dword [esi + 0x14], 0x10
jb 0x406aea
mov eax, dword [esi]
jmp 0x406aec
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x406bbb
mov ecx, dword [0x4f9640]
mov ecx, dword [ecx + 0x12c]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x40]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push edi
push eax
call edx
test eax, eax
jne 0x406b2d
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], 0x400
jle 0x406b76
cmp dword [esi + 0x14], 0x10
jb 0x406b3e
mov esi, dword [esi]
push 0x4d46bc
push esi
call fcn.0049d1a1
mov esi, eax
add esp, 8
test esi, esi
je 0x406b6d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push esi
push eax
push 1
push ecx
call fcn.0049d5a0
push esi
call fcn.0049d986
add esp, 0x14
jmp 0x406b7d
mov dword [ebp - 0xc], 1
jmp 0x406b7d
mov dword [ebp - 0xc], 2
mov eax, dword [ebp - 4]
cmp eax, 0x400
jg 0x406ba0
push eax
push edi
push 0x6bd
push str.GetAppIconPath
push str._s__d__bid__s__getAppIcon_iLength___d_failure__n
call fcn.00487d90
add esp, 0x14
mov eax, dword [ebp - 8]
test eax, eax
je 0x406bbb
mov edx, dword [0x4f9640]
mov ecx, dword [edx + 0x12c]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x44]
call eax
mov eax, dword [ebp - 0xc]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x409110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409128
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40915a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x409156
cmp esi, eax
jae 0x40915a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x409148
cmp esi, eax
jb 0x409160
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x4111d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c2c6c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x4f4214]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x2bc], 0
jne 0x411392
cmp dword [edi + 0x2b8], 1
jne 0x411392
mov ecx, dword [0x4f9f64]
mov eax, dword [ecx - 0xc]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
call fcn.004152e0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x411356
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411356
mov ecx, 0x4d4094
call fcn.00406990
test eax, eax
je 0x411293
mov esi, 0x4d61f4
mov ecx, eax
call fcn.00436d00
cmp eax, 2
jne 0x411293
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x10]
push edx
call fcn.00402550
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
lea ebx, [ebp - 0x10]
call fcn.00435550
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [eax]
push edi
push 0x4104b0
push 0x4d4458
push eax
push 0x36
call fcn.004066e0
add esp, 0x14
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402550
test esi, esi
je 0x411319
mov edx, dword [edi + 0x280]
push 0
push 0
mov dword [edi + 0x2bc], 1
mov eax, dword [edx + 4]
push 0x2344
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
push eax
call fcn.00402550
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x667
push str.CDeviceMgrWnd::InstallMClient
push str._s__d__Install_DuoDuoMobileClient_fail__n
call fcn.00487d90
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
push ecx
call fcn.00402550
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41137c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret