joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4178b4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff50
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x417adb
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x41c868], 0
je 0x417ac5
cmp dword [0x41c86c], 0
je 0x417ac5
cmp dword [0x41c870], 0
je 0x417ac5
cmp dword [0x41c874], 0
je 0x417ac5
cmp dword [0x41c878], 0
je 0x417ac5
cmp dword [0x41c87c], 0
je 0x417ac5
cmp dword [0x41c880], 0
je 0x417ac5
cmp dword [0x41c884], 0
je 0x417ac5
cmp dword [0x41c888], 0
je 0x417ac5
cmp dword [0x41c88c], 0
je 0x417ac5
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [0x41c86c]
test eax, eax
jne 0x417ac5
push 0
call sub.user32.dll_GetDC
mov ebx, eax
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov esi, eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.gdi32.dll_CreateCompatibleBitmap
mov edi, eax
push edi
push esi
call sub.gdi32.dll_SelectObject
push 0xcc0020
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0
push 0
push esi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x18]
call fcn.00404900
push eax
push 0xffffffffffffffff
push 0
call dword [0x41c888]
lea eax, [ebp - 0x14]
push eax
push 0
push edi
call dword [0x41c874]
lea edx, [ebp - 0x90]
mov eax, dword [ebp + 0xc]
call fcn.004177e0
mov dword [ebp - 0xb0], 1
push esi
push edi
mov esi, 0x41b0ec
lea edi, [ebp - 0xac]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov dword [ebp - 0x9c], 1
mov dword [ebp - 0x98], 4
lea eax, [ebp + 0x10]
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [0x41c884]
push 1
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x41c88c]
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GlobalLock
mov ecx, eax
mov eax, dword [ebp - 0x78]
mov edx, dword [ebp + 8]
xchg ecx, eax
xchg edx, eax
call fcn.004035d4
mov eax, dword [ebp - 0x14]
push eax
call dword [0x41c880]
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GlobalUnlock
push edi
call sub.gdi32.dll_DeleteObject
push esi
call sub.gdi32.dll_DeleteDC
push ebx
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebp - 0x10]
push eax
call dword [0x41c870]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417ae2
lea eax, [ebp - 0x18]
call fcn.00404900
ret
Function at 0x417f6c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403980
xor eax, eax
push ebp
push 0x4180e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004034e4
xor ebx, ebx
mov esi, 0x11
push esi
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x417f4c]
call fcn.004047a8
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [eax], 0x99935097
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], 0x2c89d95b
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], 0x6df8e950
mov eax, dword [ebp - 0xc]
mov dword [eax + 0xc], 0xdf4eff82
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x10], 0xe8ead4ad
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x14], 0xbb07f9ad
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x18], 0xb746652e
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x1c], 0x7f612d05
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x20], 0xd7520332
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x24], 0x20278d52
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x28], 0xfe2bf75e
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x2c], 0xba2aac6b
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], 0xd1823480
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x34], 0x5ef1f8a2
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x38], 0x2ac162ac
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x3c], 0x6ea634c0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x40], 0xf10ecec6
dec esi
test esi, esi
jl 0x418088
inc esi
xor edi, edi
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + edi*4]
mov eax, dword [ebp - 4]
call fcn.00417e80
mov ebx, eax
test ebx, ebx
jne 0x418088
inc edi
dec esi
jne 0x418070
test ebx, ebx
jne 0x4180b1
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, 0x418100
call fcn.004037dc
mov eax, dword [ebp - 0x10]
mov ecx, 0x418120
xor edx, edx
call fcn.00418688
jmp 0x4180bb
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00417dcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4180ee
lea eax, [ebp - 0x10]
call fcn.004034e4
lea eax, [ebp - 0xc]
mov edx, dword [0x417f4c]
call fcn.004047b4
lea eax, [ebp - 4]
call fcn.004034e4
ret
Function at 0x407281
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461124], 0
jne 0x4072bf
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x407295
mov dword [ecx*4 + 0x461120], eax
inc ecx
cmp ecx, 0x100
jl 0x407290
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4072ec
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461120]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072cd
not eax
pop ebp
ret 0xc

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 0x402e40
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
push ebx
test eax, eax
je 0x403360
test edx, edx
je 0x403360
call fcn.00402e57
mov eax, 0xffffffff
pop ebx
pop ebp
ret
Function at 0x417bc0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov eax, dword [0x542040]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x218]
mov dword [esi], 0x101
lea edi, [ebp - 0x212]
push 0x202
push 0xff
push edi
call fcn.004918a0
add esp, 0xc
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov esi, eax
test eax, eax
je 0x417c12
mov ecx, dword [ebp + 8]
push edi
call fcn.00420b40
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048e2e5
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x421110
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x542040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, 4
lea edx, [ebp - 0x14]
mov dword [edx], eax
lea esi, [ebp - 0x18]
mov dword [esi], eax
xor eax, eax
lea edi, [ebp - 0x1c]
mov dword [edi], eax
mov ebx, dword [ebp + 8]
push esi
push edi
push edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x421183
mov eax, dword [ebp - 0x14]
add eax, 0xfffffffd
mov esi, 0x3f4
cmp eax, 1
ja 0x42116d
cmp dword [ebp - 0x18], 4
jne 0x42116d
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048e2e5
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov esi, eax
jmp 0x42116d

Function at 0x421190
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x100c
call fcn.0048e6f0
mov esi, ecx
mov eax, dword [0x542040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, 0x800
lea edi, [ebp - 0x810]
push ebx
push 0xff
push edi
call fcn.004918a0
add esp, 0xc
lea eax, [ebp - 0x1014]
mov dword [eax], 1
lea ecx, [ebp - 0x1018]
mov dword [ecx], ebx
push ecx
push edi
push eax
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42121f
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1014]
cmp eax, 1
jne 0x421223
mov ecx, esi
push edi
call fcn.00420b40
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048e2e5
mov eax, esi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov esi, eax
jmp 0x421206
cmp eax, 2
jne 0x421265
lea ebx, [ebp - 0x1010]
push 0x800
push 0xff
push ebx
call fcn.004918a0
add esp, 0xc
push 0x400
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1018], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x42126c
mov ecx, esi
push ebx
jmp 0x4211ff
mov esi, 0x3f4
jmp 0x421206
mov esi, 0xea
jmp 0x421206
Function at 0x422090
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ecx], 0
test ebx, ebx
je 0x4220cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x4220e2
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4220c4
mov dword [esi], ebx
call fcn.0046e000
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, ebx
je 0x4220f9
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.0046e000
push dword [esi]
call fcn.00462e40
add esp, 4
mov dword [esi], 0
jmp 0x4220b5
int3

Function at 0x422130
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov dword [eax], 0
lea ebx, [edi + 1]
cmp ebx, 2
jb 0x422151
call fcn.0046e000
cmp dword [esi], edi
je 0x42217b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x42219c
cmp ebx, 2
jb 0x422172
mov dword [esi], edi
call fcn.0046e000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 8]
mov al, byte [ecx + 4]
mov byte [esi + 4], al
mov byte [ecx + 4], 0
mov eax, dword [ecx]
inc eax
cmp eax, 2
jae 0x4221b3
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.0046e000
push dword [esi]
call fcn.00462e40
add esp, 4
mov dword [esi], 0
jmp 0x422166
call fcn.0045e390
jmp 0x422190

Function at 0x4228b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, ecx
mov eax, dword [0x542040]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x10]
push 0x97
push str....._base_files_file_win.cc
push str.WriteAtCurrentPos
push ebx
call fcn.0046dfd0
add esp, 0x10
mov ecx, edi
push 0
push ebx
mov ebx, dword [ebp + 0xc]
call fcn.00465760
test ebx, ebx
js 0x422970
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.00478300
test al, al
jne 0x422975
lea edi, [esp + 0xc]
mov dword [edi], 0xffffffff
push 0
push edi
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [edi]
lea ecx, [esp + 0x10]
call fcn.004783a0
lea ecx, [esp + 0x20]
call fcn.004657d0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0048e2e5
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor esi, esi
dec esi
jmp 0x422950
lea ecx, [esp + 0x10]
push 0
push ebx
push esi
push str.File::WriteAtCurrentPos
call fcn.004daf70
jmp 0x422925
Function at 0x422990
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov dword [esp + 4], ecx
mov eax, dword [0x542040]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea ebx, [esp + 0x20]
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
lea edi, [esp + 0x10]
push 0xac
push str....._base_files_file_win.cc
push str.GetLength
push edi
call fcn.0046dfd0
add esp, 0x10
xor esi, esi
mov ecx, ebx
push esi
push edi
call fcn.00465760
mov dword [edi + 4], 0xffffffff
mov dword [edi], esi
call fcn.00478300
test al, al
jne 0x422a48
xor eax, eax
dec eax
lea ebx, [esp + 8]
mov dword [ebx + 4], eax
mov dword [ebx], eax
push ebx
mov eax, dword [esp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
sbb esi, esi
mov edi, dword [ebx + 4]
or edi, esi
or esi, dword [ebx]
lea ecx, [esp + 0x10]
call fcn.004783a0
lea ecx, [esp + 0x20]
call fcn.004657d0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0048e2e5
mov eax, esi
mov edx, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x10]
push esi
push esi
push dword [esp + 0xc]
push str.File::GetLength
call fcn.004daf70
jmp 0x4229fa
Function at 0x422a60
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov dword [esp + 0xc], ecx
mov eax, dword [0x542040]
xor eax, ebp
mov dword [esp + 0x78], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x40]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x30]
push 0xb9
push str....._base_files_file_win.cc
push str.SetLength
push esi
call fcn.0046dfd0
add esp, 0x10
xor ebx, ebx
mov ecx, edi
push ebx
push esi
call fcn.00465760
mov dword [esi + 4], 0xffffffff
mov dword [esi], ebx
call fcn.00478300
test al, al
jne 0x422bb7
xor eax, eax
dec eax
lea ecx, [esp + 0x28]
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x34]
movsd qword [esp + 4], xmm0
mov dword [esp + 0xc], ecx
mov dword [esp], eax
mov dword [esp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x422b8e
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x2c]
movsd qword [esp + 4], xmm0
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x422b8e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor ebx, ebx
test eax, eax
je 0x422b8e
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x24]
movsd qword [esp + 4], xmm0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne bl
lea ecx, [esp + 0x30]
call fcn.004783a0
lea ecx, [esp + 0x40]
call fcn.004657d0
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.0048e2e5
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
lea ecx, [esp + 0x30]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esp + 0x14]
push str.File::SetLength
call fcn.004daf70
jmp 0x422ad1
Function at 0x422f40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov dword [esp + 4], ecx
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x542040]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x10]
push 0x171
push str....._base_files_file_win.cc
push str.DoInitialize
push esi
call fcn.0046dfd0
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.00465760
mov eax, ebx
and eax, 1
neg eax
and eax, 3
xor edx, edx
inc edx
test bl, 2
cmove edx, eax
test bl, 4
mov ecx, 4
cmovne edx, ecx
test bl, 8
mov esi, 2
cmove esi, edx
test bl, 0x10
mov eax, 5
cmove eax, esi
test eax, eax
je 0x423161
mov edx, ebx
and edx, 0x40
shl edx, 0x18
test bl, bl
cmovns ecx, edx
mov edx, ebx
rol edx, 0x1a
and edx, 0x80000100
or edx, ecx
bt ebx, 0x12
mov dword [esp + 0xc], eax
jb 0x423150
mov eax, ebx
mov ecx, ebx
shr ecx, 4
and ecx, 0x10000
or ecx, edx
mov esi, ebx
shr esi, 8
and esi, 3
mov edx, ebx
shr edx, 0xd
and edx, 4
or edx, esi
and ebx, 0x400
mov dword [esp + 8], ebx
shl ebx, 0x14
mov esi, eax
shr esi, 3
and esi, 0x100
or esi, ebx
mov edi, eax
shr edi, 0xb
and edi, 2
or edi, esi
mov ebx, eax
shl ebx, 0xd
and ebx, 0x4000000
or ebx, edi
mov esi, eax
shl esi, 8
and esi, 0xa000000
or esi, ebx
mov eax, dword [ebp + 8]
xor edx, 3
cmp byte [eax + 0xb], 0
mov edi, eax
jns 0x42306d
mov edi, dword [eax]
xor ebx, ebx
push ebx
push esi
push dword [esp + 0x14]
push ebx
push edx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov ebx, dword [esp + 4]
cmp dword [ebx], eax
je 0x4230b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebx]
inc eax
cmp eax, 2
jae 0x423129
mov eax, edi
inc eax
cmp eax, 2
jb 0x4230ac
mov dword [ebx], edi
call fcn.0046e000
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebx]
inc edi
cmp edi, 2
mov ecx, dword [ebp + 0xc]
jb 0x423101
mov eax, dword [esp + 8]
shr eax, 0xa
mov dword [ebx + 0x14], 0
mov byte [ebx + 0x19], al
test cl, 4
jne 0x423115
test cl, 0xa
je 0x4230dd
mov byte [ebx + 0x18], 1
bt ecx, 0x15
jb 0x423143
lea ecx, [esp + 0x20]
call fcn.004657d0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0048e2e5
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00422e20
add esp, 4
mov dword [ebx + 0x14], eax
jmp 0x4230e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
cmp eax, 0xb7
setne byte [ebx + 0x18]
jmp 0x4230dd
call fcn.0046e000
push dword [ebx]
call fcn.00462e40
add esp, 4
mov dword [ebx], 0
jmp 0x42309d
push dword [ebp + 8]
call fcn.00424950
add esp, 4
jmp 0x4230e3
bt ebx, 0x15
jb 0x42317e
or edx, 0x20000000
jmp 0x422ffe
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 4]
mov dword [eax + 0x14], 0xffffffff
call fcn.004d6710
jmp 0x4230e3
int3
Function at 0x423190
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0x4231c5
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x4231cc
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4231be
mov dword [esi], ebx
call fcn.0046e000
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.0046e000
push dword [esi]
call fcn.00462e40
add esp, 4
mov dword [esi], 0
jmp 0x4231af

Function at 0x4232c0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
pop ebp
jmp fcn.004232d0

Function at 0x423550
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x460
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [0x542040]
xor eax, ebp
mov dword [esp + 0x458], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x10]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea eax, [esp + 0x250]
push 0x1de
push str....._base_files_file_util_win.cc
push 0x530737
push eax
call fcn.0046dfd0
add esp, 0x10
mov ecx, esi
lea esi, [esp + 0x250]
push 0
push esi
call fcn.00465760
mov eax, 0x208
mov ecx, 0xff
push eax
push ecx
push esi
call fcn.004918a0
add esp, 0xc
cmp byte [ebx + 0xb], 0
mov eax, ebx
jns 0x4235d8
mov eax, dword [ebx]
mov ecx, 0x104
push ecx
push eax
push esi
call fcn.004688c0
add esp, 0xc
push esi
call fcn.00454ad0
add esp, 4
lea esi, [esp + 0x48]
mov eax, 0x208
push eax
mov eax, 0xff
push eax
push esi
call fcn.004918a0
add esp, 0xc
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x423614
mov eax, dword [edi]
mov ecx, 0x104
push ecx
push eax
push esi
call fcn.004688c0
add esp, 0xc
push esi
call fcn.00454ad0
add esp, 4
cmp byte [ebx + 0xb], 0
mov eax, ebx
jns 0x423637
mov eax, dword [ebx]
cmp byte [edi + 0xb], 0
mov ecx, edi
jns 0x423641
mov ecx, dword [edi]
sub esp, 0x18
movsd xmm0, qword [0x5306e0]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x42369f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00422e20
add esp, 4
mov dword [esp + 0xc], eax
cmp byte [edi + 0xb], 0
jns 0x42367d
mov edi, dword [edi]
mov esi, dword [ebp + 0x10]
cmp byte [ebx + 0xb], 0
jns 0x423688
mov ebx, dword [ebx]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
test esi, esi
je 0x4236a1
test eax, eax
jne 0x4236a1
jmp 0x4236c2
mov bl, 1
lea ecx, [esp + 0x10]
call fcn.004657d0
mov ecx, dword [esp + 0x458]
xor ecx, ebp
call fcn.0048e2e5
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [esp + 0xc], 0xfffffffc
jne 0x4236d2
call fcn.004d2920
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esi], eax
xor ebx, ebx
jmp 0x4236a1