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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi], 0
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
jne 0x404962
push 0x470840
lea ecx, [ebp + 8]
push ecx
mov dword [ebp + 8], str.d:products_adx.net.8common_source_adxbootstrapperclicktwice.downloaderRegistryKey.h_501__:_ensure:__k___failed
call fcn.00449840
mov eax, dword [edi + 0x20]
lea esi, [edi + 0x10]
cmp ecx, eax
ja 0x404976
or eax, 0xffffffff
call fcn.004292f0
jmp 0x404984
mov ebx, ecx
sub ebx, eax
mov edi, esi
call fcn.00421af0
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
lea ebx, [edi + 0x2c]
mov ecx, ebx
mov dword [ebp - 0xc], ebx
call fcn.004041a0
mov eax, dword [edi + 4]
inc eax
mov dword [edi + 4], eax
cmp dword [esi + 0x14], 8
jb 0x4049a5
mov ecx, dword [esi]
jmp 0x4049a7
mov ecx, esi
lea edx, [ebp - 4]
push edx
mov edx, dword [edi + 0x30]
push edx
push ebx
push 0
lea edx, [ebp - 8]
push edx
push ecx
push eax
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x404a05
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], eax
jb 0x4049d7
mov esi, dword [esi]
xor ecx, ecx
mov word [esi], cx
mov eax, dword [edi + 0x34]
mov ebx, dword [edi + 0x30]
cmp ebx, eax
je 0x404a35
mov esi, eax
sub esi, eax
push esi
push eax
push ebx
call fcn.00445810
add esp, 0xc
add esi, ebx
mov dword [edi + 0x34], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
mov eax, dword [esi + 0x10]
inc ecx
cmp ecx, eax
ja 0x404a1a
or eax, 0xffffffff
call fcn.004292f0
jmp 0x404a2b
mov ebx, ecx
sub ebx, eax
mov edi, esi
call fcn.00421af0
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, ebx
call fcn.004041a0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408c70
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, eax
xor eax, eax
xor esi, esi
mov ecx, 0x20000004
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], esi
cmp dword [ebp + 8], eax
je 0x408cfb
lea eax, [ebp - 8]
push eax
mov eax, ebx
call fcn.00418930
test al, al
je 0x408ce9
push 2
push 8
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x408cf3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
lea edi, [ebx + 0x100]
mov edx, str.Failed_to_create_well_known_SID.
mov dword [ebx + 0x104], eax
call fcn.004011b0
mov edx, dword [ebp - 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x408ce9
call esi
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 8]
mov ecx, 0x20000005
lea eax, [ebp - 0x10]
push eax
push esi
push ecx
mov ecx, edi
call section..text
test eax, eax
jns 0x408d30
push edi
push str.Failed_to_reset_the_ACL_on_cached_file:__ls.
lea edi, [ebx + 0x100]
mov dword [ebx + 0x104], eax
call fcn.00422e30
add esp, 8
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x408d56
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40de00
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ff60
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4786a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 4], ebx
mov eax, SysReAllocStringLen
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
lea ecx, [ebp - 0x40]
push ecx
mov ecx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov byte [ebp - 4], 1
call fcn.00401110
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x40]
cmp dword [ebp - 0x3c], eax
je 0x40de86
cmp eax, ebx
je 0x40de86
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
push edx
push 0xf003f
push ebx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov eax, esi
mov dword [ebp - 0x34], 0xf003f
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40deb0
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x30]
call fcn.00429690
cmp edi, ebx
jne 0x40df2a
mov edx, dword [0x478034]
mov eax, dword [edx + 0xc]
mov ecx, 0x478034
call eax
add eax, 0x10
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp + 8]
push ecx
push 0x469600
lea edi, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00422e30
mov esi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x38]
add esp, 8
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40df2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40df4d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x40df60
cmp dword [ebp - 0x3c], eax
je 0x40df60
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 8
jb 0x40df72
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0044543c
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00445447
mov esp, ebp
pop ebp
ret 4
Function at 0x40f3d0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x40f450
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x148], eax
test eax, eax
jne 0x40f439
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x104], eax
test eax, eax
je 0x40f421
push edi
push eax
lea edi, [esi + 0x100]
push str.Failed_to_start_the_pipe_thread._Error:__d.
call fcn.00422e30
xor eax, eax
add esp, 8
cmp dword [esi + 0x148], eax
pop edi
setne al
ret
push ebx
lea eax, [esi + 0x100]
push str.Failed_to_start_the_pipe_thread.
push eax
mov ebx, 0x20
call fcn.00401330
pop ebx
xor eax, eax
cmp dword [esi + 0x148], eax
setne al
ret

Function at 0x40fa60
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d98b
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x4786a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x47bc44
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [0x47b6e4]
push 0x47bc44
call ebx
test edi, edi
je 0x40fb67
mov eax, dword [0x478034]
mov edx, dword [eax + 0xc]
mov ecx, 0x478034
call edx
add eax, 0x10
mov dword [ebp - 0x414], eax
mov dword [ebp - 4], 0
mov eax, dword [0x47b748]
mov ecx, dword [0x47bc3c]
push eax
push ecx
push 0x46982c
lea edi, [ebp - 0x414]
call fcn.00422e30
add esp, 0xc
push 0x47bc44
call esi
push 0x47bc44
mov byte [0x47b6da], 1
call ebx
push 0x2710
lea edx, [ebp - 0x418]
push edx
push 0x400
lea eax, [ebp - 0x410]
push eax
push str.Exit
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [ebp - 0x414]
lea ecx, [eax + eax + 2]
push ecx
push str.Exit
push esi
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fb67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00445447
mov esp, ebp
pop ebp
ret
Function at 0x415a20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x864
mov eax, dword [0x4786a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x806]
push ecx
mov word [ebp - 0x808], ax
call fcn.00449910
mov edx, dword [ebp + 8]
xor eax, eax
push edx
mov dword [ebp - 0x818], eax
mov dword [ebp - 0x814], eax
mov dword [ebp - 0x810], eax
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push 0x400
push eax
call fcn.004461f0
push 0x44
lea ecx, [ebp - 0x860]
push 0
push ecx
call fcn.00449910
add esp, 0x24
lea eax, [ebp - 0x818]
push eax
lea ecx, [ebp - 0x860]
push ecx
push 0
push 0
push 0x4000020
push 0
push 0
mov edx, 1
mov word [ebp - 0x830], dx
push 0
lea edx, [ebp - 0x808]
push edx
push 0
mov dword [ebp - 0x860], 0x44
mov dword [ebp - 0x834], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x415af9
cmp byte [ebp + 0xc], 0
je 0x415af9
mov eax, dword [ebp - 0x818]
push 0x2710
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [ebp - 0x818]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x415b0c
push eax
call esi
mov eax, dword [ebp - 0x814]
test eax, eax
je 0x415b19
push eax
call esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415b38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00445447
mov esp, ebp
pop ebp
ret 8
Function at 0x416870
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x4786a0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x228
lea eax, [ebp - 0x434]
push 0
push eax
mov dword [ebp - 0x438], 0
call fcn.00449910
add esp, 0xc
cmp byte [ebp + 0xc], 0
je 0x4168c4
lea ecx, [ebp - 0x440]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x4168c4
mov byte [ebp + 0xc], al
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea edx, [ebp - 0x438]
mov edi, eax
push edx
push edi
mov dword [ebp - 0x438], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x416999
lea esi, [ebp - 0x414]
lea eax, [ebp - 0x20c]
sub esi, eax
mov edx, 0x104
lea eax, [ebp - 0x20c]
jmp 0x416910
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x41692e
movzx ecx, word [esi + eax]
test cx, cx
je 0x41692e
mov word [eax], cx
add eax, 2
dec edx
jne 0x416910
jmp 0x416932
test edx, edx
jne 0x416935
sub eax, 2
xor edx, edx
mov word [eax], dx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x416983
mov eax, dword [ebp - 0x430]
test ebx, ebx
je 0x41695d
cmp eax, ebx
jne 0x416983
cmp byte [ebp + 0xc], 0
je 0x4169cc
lea edx, [ebp - 0x43c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x4169cc
mov eax, dword [ebp - 0x440]
cmp eax, dword [ebp - 0x43c]
je 0x4169cc
lea ecx, [ebp - 0x438]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x416900
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4169b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00445447
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4169eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.00445447
mov esp, ebp
pop ebp
ret 8
Function at 0x418ce0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x66c
mov eax, dword [0x4786a0]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
lea eax, [esp + 0x46c]
push 0x104
push eax
mov dword [esp + 0x18], ecx
call fcn.00446d38
push 0x46b594
lea ecx, [esp + 0x478]
push 0x104
push ecx
call fcn.004461f0
push edi
lea edx, [esp + 0x27c]
push 0x104
push edx
call fcn.00446d38
push 0x46ce9c
lea eax, [esp + 0x288]
push 0x104
push eax
call fcn.004461f0
add esp, 0x30
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x46c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x418ee7
lea eax, [esp + 0x260]
push eax
lea ecx, [esp + 0x46c]
push 0x104
push ecx
call fcn.00446d38
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esp, 0xc
lea esp, [esp]
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x418ed5
mov ecx, 0x46784c
lea eax, [esp + 0x3c]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x418de6
test dx, dx
je 0x418de2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x418de6
add eax, 4
add ecx, 4
test dx, dx
jne 0x418dc0
xor eax, eax
jmp 0x418deb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x418da0
mov ecx, 0x46b58c
lea eax, [esp + 0x3c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x418e1e
test dx, dx
je 0x418e1a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x418e1e
add eax, 4
add ecx, 4
test dx, dx
jne 0x418df8
xor eax, eax
jmp 0x418e23
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x418da0
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x264]
push 0x104
push ecx
call fcn.004461f0
mov al, byte [esp + 0x1c]
add esp, 0xc
test al, 0x10
je 0x418e8b
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x260]
push edx
call fcn.00418ce0
test eax, eax
je 0x418ee0
lea eax, [esp + 0x260]
push eax
call ebx
lea ecx, [esp + 0x468]
push ecx
lea edx, [esp + 0x264]
push 0x104
push edx
call fcn.00446d38
jmp 0x418d99
test al, 1
je 0x418ea4
lea eax, [esp + 0x260]
push 0x80
push eax
call fcn.004460b5
add esp, 8
lea ecx, [esp + 0x260]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x418ee0
lea edx, [esp + 0x468]
push edx
lea eax, [esp + 0x264]
push 0x104
push eax
call fcn.00446d38
jmp 0x418d99
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x418f00
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.00445447
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call ebx
mov ecx, dword [esp + 0x674]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00445447
mov esp, ebp
pop ebp
ret 4
Function at 0x418f30
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x4786a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push esi
lea eax, [ebp - 0x418]
push 0x104
push eax
mov edi, edx
xor ebx, ebx
call fcn.00446d38
push 0x46ce9c
lea ecx, [ebp - 0x418]
push 0x104
push ecx
call fcn.004461f0
push edi
lea edx, [ebp - 0x418]
push 0x104
push edx
call fcn.004461f0
push esi
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00446d38
push 0x46ce9c
lea ecx, [ebp - 0x210]
push 0x104
push ecx
call fcn.004461f0
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
add esp, 0x3c
lea ecx, [ecx]
test ebx, ebx
jne 0x418fff
lea edx, [ebp - 0x668]
push edx
lea eax, [ebp - 0x418]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41910a
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x418]
push 0x104
push edx
call fcn.00446d38
add esp, 0xc
jmp 0x419093
lea eax, [ebp - 0x668]
push eax
push ebx
call edi
test eax, eax
je 0x4190fd
mov ecx, 0x46784c
lea eax, [ebp - 0x63c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x419046
test dx, dx
je 0x419042
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x419046
add eax, 4
add ecx, 4
test dx, dx
jne 0x419020
xor eax, eax
jmp 0x41904b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x418fc0
mov ecx, 0x46b58c
lea eax, [ebp - 0x63c]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x419086
test dx, dx
je 0x419082
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x419086
add eax, 4
add ecx, 4
test dx, dx
jne 0x419060
xor eax, eax
jmp 0x41908b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x418fc0
lea ecx, [ebp - 0x63c]
push ecx
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.004461f0
add esp, 0xc
test byte [ebp - 0x668], 0x10
je 0x418fc0
lea eax, [ebp - 0x210]
push eax
mov ecx, 0x47b7a0
call fcn.00418ce0
test eax, eax
je 0x419103
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea edx, [ebp - 0x418]
push edx
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00446d38
add esp, 0xc
jmp 0x418fc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00445447
mov esp, ebp
pop ebp
ret
Function at 0x419a10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45db58
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4786a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x478034]
mov edx, dword [eax + 0xc]
mov ecx, 0x478034
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
cmp dword [ebp + 8], 0
je 0x419ae5
or eax, ecx
jge 0x419a7c
mov eax, 0x104
lea ecx, [ebp - 0x10]
call fcn.00401440
mov esi, dword [ebp - 0x10]
push esi
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathW]
test eax, eax
jns 0x419ba0
mov dword [0x47b8a4], eax
push str.Failed_to_find_local_appdata_directory.
push 0x47b8a0
mov ebx, 0x27
call fcn.00401330
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419acf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp + 0xc], 0
je 0x419b4d
or eax, ecx
jge 0x419aff
mov eax, 0x104
lea ecx, [ebp - 0x10]
call fcn.00401440
mov esi, dword [ebp - 0x10]
push esi
push 0
push 0
push 0x20
push 0
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathW]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004469ac
add esp, 8
test eax, eax
js 0x419b43
cmp eax, dword [esi - 8]
jg 0x419b43
push 4
xor ecx, ecx
mov dword [esi - 0xc], eax
push str.Low
lea ebx, [ebp - 0x10]
mov word [esi + eax*2], cx
call fcn.00420540
mov esi, dword [ebp - 0x10]
jmp 0x419b91
push 0x80070057
call fcn.00401680
or eax, ecx
jge 0x419b61
mov eax, 0x104
lea ecx, [ebp - 0x10]
call fcn.00401440
mov esi, dword [ebp - 0x10]
push esi
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathW]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004469ac
add esp, 8
test eax, eax
js 0x419b43
cmp eax, dword [esi - 8]
jg 0x419b43
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
test edi, edi
jns 0x419ba0
mov dword [0x47b8a4], edi
jmp 0x419a98
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x10]
call fcn.0041db20
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419bce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x419f00
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
push edi
xor edi, edi
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], edi
jb 0x419f16
mov eax, dword [esi]
push edi
push 0x80
push 3
push edi
push 1
mov byte [eax], 0
mov eax, dword [ebp + 8]
push SysReAllocStringLen
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x419fb4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x419f9f
mov eax, dword [esi + 0x10]
cmp edi, eax
ja 0x419f5e
push 0xffffffffffffffff
push edi
mov ecx, esi
call fcn.00428dc0
jmp 0x419f6c
mov ecx, edi
sub ecx, eax
push 0
push ecx
mov ecx, esi
call fcn.00421950
cmp dword [esi + 0x14], 0x10
jb 0x419f74
mov esi, dword [esi]
push 0
lea edx, [ebp + 8]
push edx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
cmp dword [ebp + 8], edi
push ebx
sete al
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x419fc0
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
push 0x80
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41a021
mov ecx, dword [ebp + 8]
push ebx
lea eax, [ebp + 8]
push eax
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
cmp dword [ebp + 8], edi
push esi
sete dl
mov edi, edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4