joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428943
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor esi, esi
push eax
push esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
push esi
push dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], esi
push dword [ebx]
call edi
cmp eax, 2
jne 0x428975
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
cmp eax, esi
jne 0x4289d6
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
add ecx, dword [ebp - 4]
push ecx
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 4]
mov ecx, esi
push eax
mov eax, dword [esi]
call dword [eax + 0x18]
push eax
push 0
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x4289d6
cmp dword [ebp - 4], 0xf4240
jb 0x4289c4
push 0x78
push str.S:Ammyy_sourcesRLRLRegistry.cpp
lea ecx, [ebp - 0xc]
call fcn.00425678
mov ecx, eax
call fcn.00425784
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
add ecx, dword [ebp - 4]
push ecx
mov ecx, esi
call dword [eax + 0x20]
mov al, 1
jmp 0x42896e
push eax
lea eax, [ebp - 0xc]
push str.RegQueryValueExW___error_u
push eax
call fcn.0042778f
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException

Function at 0x4289f6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push dword [ecx + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x14]
push eax
push 3
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
pop esi
je 0x428a3e
push eax
lea eax, [ebp - 8]
push str.RegSetValueExW_REG_BINARY__error_u
push eax
call fcn.0042778f
add esp, 0xc
lea eax, [ebp - 8]
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret 8

Function at 0x428a42
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
call fcn.0042b07f
mov ecx, dword [ebp + 0xc]
push eax
call fcn.0042c635
push eax
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
je 0x428a90
push eax
lea eax, [ebp - 8]
push str.RegSetValueExA___error_u
push eax
call fcn.0042778f
add esp, 0xc
lea eax, [ebp - 8]
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret 8

Function at 0x428a94
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x428ace
cmp eax, 2
je 0x428ace
push eax
lea eax, [ebp - 8]
push str.RegDeleteKeyA___error_u
push eax
call fcn.0042778f
add esp, 0xc
lea eax, [ebp - 8]
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret
Function at 0x428b03
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
jne 0x428b4b
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.FindResourceEx___error_d_lpName0x_X
push eax
call fcn.0042778f
add esp, 0x10
lea eax, [ebp - 8]
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x428b81
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.SizeofResource___error_d
push eax
call fcn.0042778f
add esp, 0xc
lea eax, [ebp - 8]
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x428bb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.LoadResource___error_d
push eax
call fcn.0042778f
add esp, 0xc
lea eax, [ebp - 8]
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x428be6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.LockResource___error_d
push eax
call fcn.0042778f
add esp, 0xc
lea eax, [ebp - 8]
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x42a0c2
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x48029b
call fcn.0047bf20
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], esi
call fcn.0042a608
push esi
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0xe
push dword [edi + 4]
mov dword [ebp - 4], 1
call esi
mov ebx, eax
test ebx, ebx
jbe 0x42a118
inc ebx
lea ecx, [ebp - 0x10]
push ebx
call fcn.0042adf1
push eax
push ebx
push 0xd
push dword [edi + 4]
call esi
push eax
lea ecx, [ebp - 0x10]
call fcn.0042aec7
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0042a614
mov dword [ebp - 0x14], 1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0042a904
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x42a14b
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4802c7
call fcn.0047bf20
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], edi
call fcn.0042bbba
push edi
push edi
xor ebx, ebx
push 0xe
push dword [esi + 4]
inc ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
test edi, edi
jbe 0x42a1a2
inc edi
lea ecx, [ebp - 0x10]
push edi
call fcn.0042c3bb
push eax
push edi
push 0xd
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
lea ecx, [ebp - 0x10]
call fcn.0042c491
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0042bbc6
mov dword [ebp - 0x14], ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0042bebc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x42d027
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x4804ec
call fcn.0047bf20
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
mov dword [ebp - 0x10], esi
call fcn.0042a22f
lea ecx, [esi + 0x28]
mov dword [ebp - 4], ebx
call fcn.0042a608
push 0xf
mov dword [esi], 0x48a658
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], 0x64
mov dword [esi + 0x24], ebx
mov dword [esi + 0x30], 0xff000000
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x34], eax
mov dword [esi + 0x18], 0xff000000
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x3c], bl
mov dword [esi + 0x38], ebx
mov dword [esi + 0x10], 0x24
mov byte [esi + 0x14], 1
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x42ddb7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.0042e0ae
mov ecx, esi
call fcn.0042e752
mov ecx, dword [esi + 0x790]
mov edi, dword [esi + 0x78c]
mov eax, ecx
xor ebx, ebx
imul eax, eax, 0x190
cdq
idiv edi
push ebx
mov byte [esi + 0x88c], bl
mov dword [esi + 0x218], eax
mov eax, ecx
imul eax, eax, 0xc8
cdq
idiv edi
mov ecx, esi
mov dword [esi + 0x21c], eax
call fcn.0042f7f9
push ebx
push 1
mov ecx, esi
call fcn.0043485a
push 0x4a41e4
mov ecx, esi
call fcn.0042dd63
push ebx
push 0x4ade80
mov ecx, esi
call fcn.0043357e
push ebx
push ebx
push esi
push 0x43289e
push ebx
push ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0xa38], eax
cmp eax, ebx
pop edi
pop esi
pop ebx
jne 0x42de75
call dword [sym.imp.MSVCRT.dll__errno]
push dword [eax]
lea eax, [ebp - 8]
push str.Failed__beginthreadex____errno___d_
push eax
call fcn.0042778f
add esp, 0xc
lea eax, [ebp - 8]
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret
Function at 0x42df86
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, 0x48079c
call fcn.0047bf20
sub esp, 0x20
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0x4ae808
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], ebx
call fcn.004283c9
cmp byte [ebp + 8], bl
mov byte [ebp - 4], 1
je 0x42e04a
cmp dword [0x4ae854], ebx
jne 0x42e042
cmp dword [0x4ae850], ebx
je 0x42dfeb
lea eax, [ebp - 0x24]
push str.ERROR1_in_HookKeyboard__
push eax
call fcn.0042778f
pop ecx
lea eax, [ebp - 0x24]
pop ecx
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0x100
lea eax, [esi + 0xb06]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push ebx
push 0x400000
push 0x42de77
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
cmp eax, ebx
mov dword [0x4ae854], eax
jne 0x42e042
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x2c]
push str.Error_d_while_SetWindowsHookEx__
push eax
call fcn.0042778f
add esp, 0xc
lea eax, [ebp - 0x2c]
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
mov dword [0x4ae850], esi
jmp 0x42e06e
mov eax, dword [0x4ae854]
cmp eax, ebx
je 0x42e06e
cmp dword [0x4ae850], esi
jne 0x42e06e
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [0x4ae854], ebx
mov dword [0x4ae850], ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004283dd
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x43366e
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x480c98
call fcn.0047bf20
sub esp, 0x68
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
mov esi, ecx
call fcn.0041a78f
lea eax, [ebp - 0x10]
xor ebx, ebx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov dword [ebp - 4], ebx
call fcn.0042bbc6
call fcn.0040b02f
cmp al, bl
pop ecx
je 0x4336f4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push 0x4a2db4
push eax
call fcn.0042c20b
push 0x4a4c4c
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
call fcn.0042c1a0
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0042bffd
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0042bebc
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0042bebc
jmp 0x433701
push 0x4ade80
lea ecx, [ebp - 0x10]
call fcn.0042c0b0
lea ecx, [ebp - 0x14]
call fcn.0042bbba
movzx eax, word [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0042c635
push eax
lea eax, [ebp - 0x14]
push str.mstsc.exe__s_v:127.0.0.1:_u
push eax
call fcn.0042cf13
add esp, 0x10
xor eax, eax
lea edi, [ebp - 0x70]
push 0x10
pop ecx
rep stosd dword es:[edi], eax
lea ecx, [ebp + 8]
mov dword [ebp - 0x74], 0x44
mov dword [ebp - 0x48], 1
mov word [ebp - 0x44], 5
call fcn.004337e8
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push ebx
mov byte [ebp - 4], 4
call fcn.0042c3bb
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4337a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20]
push str.ERROR:_Failed_to_run_RDP_client__error_d
push eax
call fcn.0042778f
add esp, 0xc
lea eax, [ebp - 0x20]
push 0x48e404
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.00433819
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x14]
mov dword [esi], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 4], eax
mov byte [ebp - 4], bl
call fcn.0042bebc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042bebc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x433a6b
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, 0x480cd0
call fcn.0047bf20
sub esp, 0x1c
push esi
mov esi, ecx
cmp byte [esi + 0xb04], 0
je 0x433b71
cmp byte [esi + 0x850], 0
je 0x433b71
mov eax, dword [esi + 0x824]
shr eax, 3
test al, 1
je 0x433b71
call dword [sym.imp.USER32.dll_GetClipboardOwner]
cmp eax, dword [esi + 0x694]
je 0x433b71
cmp byte [esi + 0x786], 0
je 0x433b71
lea ecx, [esi + 0x738]
push edi
mov dword [ebp - 0x10], ecx
call fcn.004283ab
push dword [esi + 0x694]
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x433b64
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
jne 0x433afe
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x433b64
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ecx, [ebp - 0x28]
mov ebx, eax
call fcn.00428e0f
lea eax, [ebp - 0x28]
push 1
push eax
push ebx
mov byte [ebp - 4], 1
call fcn.0040bb98
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [ebp - 0x28]
call fcn.00429ebe
mov edi, eax
mov ecx, eax
pop ebx
mov dl, byte [edi]
inc edi
cmp dl, 0xd
je 0x433b3d
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x433b3d
sub ecx, eax
dec ecx
push ecx
push eax
mov ecx, esi
call fcn.004324c3
and byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00428ed1
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
call fcn.004283b3
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x437cd3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x28]
add dword [esi + 0x28], 1
test eax, eax
jne 0x437de2
lea eax, [ebp - 0x208]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x208]
push 1
push eax
mov ecx, esi
call fcn.00437e0a
lea ebx, [esi + 8]
push 8
mov dword [esi + 4], eax
pop ecx
or eax, 0xffffffff
mov edi, ebx
rep stosd dword es:[edi], eax
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x437dbf
push str.235
push edi
mov ecx, esi
call fcn.00437c9b
push 0x4a5234
push edi
mov ecx, esi
mov dword [ebx], eax
call fcn.00437c9b
push 0x4a5230
push edi
mov ecx, esi
mov dword [esi + 0xc], eax
call fcn.00437c9b
push 0x4a522c
push edi
mov ecx, esi
mov dword [esi + 0x10], eax
call fcn.00437c9b
push 0x4a5228
push edi
mov ecx, esi
mov dword [esi + 0x14], eax
call fcn.00437c9b
push 0x4a5224
push edi
mov ecx, esi
mov dword [esi + 0x18], eax
call fcn.00437c9b
push 0x4a5220
push edi
mov ecx, esi
mov dword [esi + 0x1c], eax
call fcn.00437c9b
push 0x4a521c
push edi
mov ecx, esi
mov dword [esi + 0x20], eax
call fcn.00437c9b
push edi
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x437de2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4a51f8
push 0x4ae550
call fcn.00428736
add esp, 0xc
or eax, 0xffffffff
mov edi, ebx
push 8
pop ecx
rep stosd dword es:[edi], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x437e0a
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov ecx, 0xac
xor eax, eax
lea edi, [ebp - 0x2b8]
mov dword [ebp - 0x2bc], ebx
rep stosd dword es:[edi], eax
mov al, byte [ebp + 0xc]
neg al
sbb eax, eax
and eax, 0x3ff0
add eax, 0x10
or ax, 0x101
push eax
lea eax, [ebp - 0x2bc]
push 0x2b4
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
cmp byte [ebp + 0xc], bl
je 0x437ed2
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_GetIconSize]
cmp dword [esi], ebx
mov edi, str.S:Ammyy_sources_viewerVrFm1.cpp
je 0x437e8b
push 0xe8
push edi
lea ecx, [ebp - 8]
call fcn.00425678
mov ecx, eax
call fcn.00425784
cmp dword [ebp + 8], ebx
jg 0x437ea5
push 0xe9
push edi
lea ecx, [ebp - 8]
call fcn.00425678
mov ecx, eax
call fcn.00425784
cmp dword [ebp + 0xc], ebx
jg 0x437ebf
push 0xea
push edi
lea ecx, [ebp - 8]
call fcn.00425678
mov ecx, eax
call fcn.00425784
push 0xa
push ebx
push 0x21
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov dword [esi], eax
push dword [ebp - 0x2bc]
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push dword [ebp - 0x2bc]
mov esi, eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4390a4
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x481278
call fcn.0047bf20
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
shl esi, 5
mov eax, dword [edi + 0xf8]
cmp dword [esi + eax + 4], 4
jne 0x439130
mov eax, dword [edi]
call dword [eax + 0x10]
test al, al
je 0x439231
lea eax, [edi + 4]
lea ecx, [ebp - 0x14]
push eax
call fcn.0042bbc6
mov edi, dword [edi + 0xf8]
xor ebx, ebx
add esi, edi
lea ecx, [ebp + 8]
push esi
mov dword [ebp - 4], ebx
call fcn.0042bbc6
push 5
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0042c635
push eax
push ebx
lea ecx, [ebp + 8]
call fcn.0042c635
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
and byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.0042bebc
lea ecx, [ebp - 0x14]
jmp 0x439228
lea ecx, [ebp - 0x10]
call fcn.0042bbba
lea ecx, [edi + 4]
mov dword [ebp - 4], 2
call fcn.0042c635
mov ebx, eax
cmp word [ebx], 0
je 0x439198
cmp dword [ebp + 8], 0
jne 0x439198
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
sub eax, 2
pop ecx
js 0x439216
cmp word [ebx + eax*2], 0x5c
je 0x439175
dec eax
jns 0x439166
jmp 0x439216
lea esi, [eax + 1]
lea ecx, [ebp - 0x10]
push esi
push ebx
push esi
call fcn.0042c3bb
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
lea ecx, [ebp - 0x10]
push esi
call fcn.0042c491
jmp 0x439216
mov eax, dword [edi + 0xf8]
add eax, esi
mov ecx, dword [eax + 4]
cmp ecx, 4
je 0x439225
cmp ecx, 0x10
jne 0x4391be
lea eax, [edi + 0x108]
push eax
lea ecx, [ebp - 0x10]
call fcn.0042bffd
jmp 0x439216
cmp ecx, 0x11
jne 0x4391cb
lea eax, [edi + 0x10c]
jmp 0x4391b3
cmp ecx, 1
push eax
je 0x4391b4
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0042c134
push 0x5c
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
call fcn.0042c5d1
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0042bffd
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0042bebc
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0042bebc
mov esi, dword [edi]
lea ecx, [ebp - 0x10]
call fcn.0042c635
push eax
mov ecx, edi
call dword [esi]
lea ecx, [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
call fcn.0042bebc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x43d057
Capabilities:
Get file size

Disassembly:
mov eax, 0x481998
call fcn.0047bf20
sub esp, 0x18
mov al, byte [0x4ae4f2]
push ebx
push esi
push edi
mov esi, ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.0041c6a4
xor ebx, ebx
mov dword [ebp - 4], ebx
jmp 0x43d19e
mov eax, dword [esi + 0x188]
add eax, 0xc0
push eax
mov eax, dword [esi + 0xf0]
add eax, 0x1a4
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0042c134
add esp, 0xc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0042c635
push eax
call fcn.0044b828
mov edi, eax
pop ecx
cmp edi, ebx
je 0x43d0d2
lea ecx, [ebp - 0x10]
call fcn.0042c635
push eax
push edi
push str.Error__d_while_create_local_folder__d
jmp 0x43d164
mov eax, dword [esi + 0x188]
add eax, 0xc0
push eax
call fcn.0044ba92
test al, al
pop ecx
jne 0x43d193
cmp dword [esi + 0x160], 0xffffffff
je 0x43d10e
push 0x102
push str.S:Ammyy_sources_viewerVrFmBlockR.cpp
lea ecx, [ebp - 0x24]
call fcn.00425678
mov ecx, eax
call fcn.00425784
push ebx
push 0x20
push 4
push ebx
push 1
push 0xc0000000
lea ecx, [ebp - 0x10]
call fcn.0042c635
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x160], eax
jne 0x43d146
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_while_opening_local_file__s
jmp 0x43d164
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x43d16f
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_GetFileSizeEx___for_local_file__s
push esi
call fcn.004397c5
add esp, 0x10
jmp 0x43d193
cmp dword [ebp - 0x18], ebx
jl 0x43d17f
jg 0x43d17b
cmp dword [ebp - 0x1c], ebx
jbe 0x43d17f
mov al, 1
jmp 0x43d181
xor al, al
push eax
mov ecx, esi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.0043d1e0
test al, al
jne 0x43d1ba
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0042bebc
mov ecx, esi
call fcn.0043c6fb
mov ecx, dword [esi + 0x188]
call fcn.00438a90
test al, al
je 0x43d081
jmp 0x43d1c5
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0042bebc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0041c6c1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x43d1e0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x4819b4
call fcn.0047bf20
sub esp, 0x34
and byte [ebp - 0x10], 0
cmp byte [ebp + 0x10], 0
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
je 0x43d29b
test edi, edi
jl 0x43d213
jg 0x43d20e
cmp dword [ebp + 8], 0
jbe 0x43d213
xor eax, eax
inc eax
jmp 0x43d215
xor eax, eax
mov byte [esi + 0x17c], al
mov eax, dword [esi + 0x188]
push dword [eax + 0xc0]
lea eax, [esi + 0x178]
push str._s_n_nThis_file_already_exists_on_local_computer.
push eax
call fcn.0042cf13
mov ecx, dword [esi + 0xf0]
add esp, 0xc
call fcn.00429ebe
push eax
lea ecx, [esi + 0x168]
call fcn.0043e9ce
cmp eax, 0x3f2
jne 0x43d3ce
lea eax, [ebp - 0x28]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 0x160]
call fcn.0044b48b
add esp, 0x10
test eax, eax
je 0x43d297
mov ecx, dword [esi + 0x188]
push dword [ecx + 0xc0]
push eax
push str.Error__d_while_getting_md5_for_local_file__s
push esi
call fcn.004397c5
add esp, 0x10
jmp 0x43d418
mov byte [ebp - 0x10], 1
cmp byte [0x4ae510], 0
je 0x43d2a8
or byte [ebp - 0x10], 4
push ebx
lea ecx, [ebp - 0x40]
call fcn.00428e0f
xor ebx, ebx
push 0x40
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], ebx
call fcn.00428fe3
push ebx
lea ecx, [ebp - 0x40]
call fcn.00428ff2
push dword [ebp - 0x10]
lea ecx, [ebp - 0x40]
call fcn.00428fe3
test byte [ebp - 0x10], 1
mov dword [ebp - 0x14], ebx
je 0x43d2ff
mov ebx, dword [ebp + 8]
push edi
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.0044b8bb
add esp, 0xc
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x40]
push 0x10
push eax
call fcn.00428fab
mov dword [ebp - 0x14], edi
mov eax, dword [esi + 0x188]
add eax, 0xc0
push eax
lea eax, [esi + 4]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.0042c134
add esp, 0xc
lea ecx, [ebp - 0x40]
push 1
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0042c635
push eax
call fcn.0040bb98
and byte [ebp - 4], 0
add esp, 0xc
lea ecx, [ebp + 0x10]
call fcn.0042bebc
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x40]
lea edi, [eax - 3]
mov eax, dword [ebp - 0x40]
call dword [eax + 0x14]
mov word [eax + 1], di
lea edi, [esi + 0x110]
cmp byte [edi], 0
je 0x43d378
push 0x14b
push str.S:Ammyy_sources_viewerVrFmBlockR.cpp
lea ecx, [ebp + 8]
call fcn.00425678
mov ecx, eax
call fcn.00425784
mov al, byte [ebp - 0x10]
mov dword [esi + 0x120], ebx
mov byte [esi + 0x11c], al
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x124], eax
add esi, 0x184
push 1
mov byte [edi], 0x40
mov eax, dword [esi]
push dword [ebp - 0x34]
lea ecx, [ebp - 0x40]
mov edi, dword [eax]
call fcn.00429ebe
mov ecx, dword [esi]
push eax
call dword [edi]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00428ed1
mov al, 1
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc
cmp eax, 0x3f1
jne 0x43d406
push dword [esi + 0x160]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43d29b
mov eax, dword [esi + 0x188]
push dword [eax + 0xc0]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_while_SetEndOfFile___for_local_file__s
jmp 0x43d289
cmp eax, 2
jne 0x43d418
mov eax, dword [esi + 0x188]
mov byte [eax + 0xc4], 1
xor al, al
jmp 0x43d3be