joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f910
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4f4284]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
sub esp, 8
cmp dword [eax + 0x14], 0x10
mov edx, esp
jb 0x44f934
mov ecx, dword [eax]
jmp 0x44f936
mov ecx, eax
mov dword [edx], ecx
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
lea eax, [ebp - 0x34]
push eax
call fcn.004448e0
mov esi, eax
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x44f954
mov esi, dword [esi]
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push dword [ebp + 8]
push eax
call fcn.004448e0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x44f96e
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
mov eax, dword [ebp - 8]
setne bl
cmp eax, 8
jb 0x44f990
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.004329f0
mov ecx, dword [ebp - 0x20]
xor eax, eax
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], ax
cmp ecx, 8
jb 0x44f9b9
inc ecx
push ecx
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.004329f0
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d8a1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4581e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, edi
sar ecx, 2
test ecx, ecx
je 0x458250
push ebx
push esi
mov ebx, ecx
mov eax, dword [edi]
lea edi, [edi + 4]
movzx esi, cl
movzx edx, al
xor esi, edx
shr ecx, 8
mov dword [ebp - 4], eax
movzx eax, ah
xor ecx, dword [esi*4 + 0x4d8860]
movzx edx, cl
xor edx, eax
shr ecx, 8
movzx eax, byte [ebp - 2]
xor ecx, dword [edx*4 + 0x4d8860]
movzx edx, cl
xor edx, eax
shr ecx, 8
movzx eax, byte [ebp - 1]
xor ecx, dword [edx*4 + 0x4d8860]
movzx edx, cl
xor edx, eax
shr ecx, 8
xor ecx, dword [edx*4 + 0x4d8860]
sub ebx, 1
jne 0x4581f7
pop esi
pop ebx
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x45c510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 0x7fffffff
jbe 0x45c521
xor eax, eax
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.0045ea60

Function at 0x45d7b0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
test esi, esi
je 0x45d822
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
push edi
nop
cmp esi, 0xffffffff
mov edi, esi
cmova edi, ecx
push edi
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x45d7fd
push str.success
push 0x27
push str.c:_bc_bwin_archive_src_base_rand_util_win.cc
lea ecx, [ebp - 0xb4]
or ebx, 1
call fcn.00431680
test bl, 1
je 0x45d810
lea ecx, [ebp - 0xb4]
and ebx, 0xfffffffe
call fcn.00431880
mov eax, dword [ebp + 8]
mov ecx, 0xffffffff
add eax, edi
mov dword [ebp + 8], eax
sub esi, edi
jne 0x45d7d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45dc60
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x4f4284]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x64]
push esi
mov esi, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x67452301
push eax
mov dword [ebp - 0x58], 0xefcdab89
mov dword [ebp - 0x54], 0x98badcfe
mov dword [ebp - 0x50], 0x10325476
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
call fcn.0045e360
lea eax, [ebp - 0x5c]
push eax
push esi
call fcn.0045dbc0
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop esi
call fcn.0049d8a1
mov esp, ebp
pop ebp
ret

Function at 0x45e950
Capabilities:
Enumerate processes

Disassembly:
push esi
push edi
mov esi, ecx
push 0x22c
push 0
lea edi, [esi + 0xc]
push edi
call fcn.004a0ee0
add esp, 0xc
mov dword [edi], 0x22c
cmp byte [esi + 8], 0
push edi
push dword [esi + 4]
jne 0x45e989
mov byte [esi + 8], 1
call sub.KERNEL32.dll_Process32FirstW
neg eax
pop edi
sbb eax, eax
neg eax
pop esi
ret
call sub.KERNEL32.dll_Process32NextW
neg eax
pop edi
sbb eax, eax
neg eax
pop esi
ret

Function at 0x461cc9
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
call fcn.00461c68
mov eax, dword [ebp + 8]
xor esi, esi
cmp dword [eax + 0x14], 8
jb 0x461ce2
mov eax, dword [eax]
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x461d16
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
mov esi, eax
cmp esi, 2
setne cl
inc ecx
mov dword [edi + 0xc], ecx
pop edi
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x4685d2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov ecx, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 8], ebx
call fcn.004692ed
push 1
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x20]
call fcn.00445230
mov esi, dword [ebp - 0x20]
test esi, esi
jne 0x46860c
mov esi, 0x80070002
jmp 0x4686b6
push 1
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.004693ea
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 8]
push eax
push ebx
push str.PendingFileRenameOperations
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x468646
mov esi, 0x80070002
jmp 0x4686ae
cmp eax, 0xea
jne 0x468687
cmp dword [ebp - 8], 7
jne 0x468659
test byte [ebp - 4], 1
je 0x468660
mov esi, 0x8000ffff
jmp 0x4686ae
push dword [ebp - 4]
lea ecx, [ebp - 0x14]
call fcn.004693ea
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 8]
push eax
push ebx
push str.PendingFileRenameOperations
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x468697
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x4686ae
push dword [ebp + 8]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x14]
call fcn.00468906
add esp, 0xc
mov esi, eax
lea ecx, [ebp - 0x14]
call fcn.00444450
lea ecx, [ebp - 0x20]
call fcn.004454c0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x468ec4
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x4f4284]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push 9
xor eax, eax
mov dword [ebp - 0x2c], ebx
cmp dword [esi + 0x14], 8
lea edi, [ebp - 0x28]
pop ecx
rep stosd dword es:[edi], eax
jb 0x468ef6
mov eax, dword [esi]
jmp 0x468ef8
mov eax, esi
lea ecx, [ebp - 0x28]
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x468f61
push 1
call fcn.00432780
pop ecx
test al, al
je 0x468f4a
call sub.KERNEL32.dll_GetLastError
push eax
push 1
push 0x3e
push str.c:_bc_bwin_archive_srcchromeinstallerutildelete_after_reboot_helper.cc
lea ecx, [ebp - 0xe4]
call fcn.00431820
push str._does_not_exist.
add eax, 0x10
push esi
push eax
call fcn.0041659c
pop ecx
pop ecx
push eax
call fcn.00415b8c
pop ecx
xor ebx, ebx
pop ecx
inc ebx
test bl, 1
je 0x468f5a
lea ecx, [ebp - 0xe4]
call fcn.00431af0
xor al, al
jmp 0x469035
push esi
call fcn.0043a330
pop ecx
push 4
pop ecx
push 5
test al, al
pop edx
cmove ecx, edx
cmp dword [esi + 0x14], 8
jb 0x468f7d
mov eax, dword [esi]
jmp 0x468f7f
mov eax, esi
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x468fe3
push 2
call fcn.00432780
pop ecx
test al, al
je 0x468fdb
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x49
push str.c:_bc_bwin_archive_srcchromeinstallerutildelete_after_reboot_helper.cc
lea ecx, [ebp - 0xe4]
call fcn.00431820
push str._for_deletion.
push esi
add eax, 0x10
push str.Could_not_schedule
push eax
call fcn.00415b8c
pop ecx
pop ecx
push eax
call fcn.0041659c
pop ecx
pop ecx
push eax
call fcn.00415b8c
pop ecx
pop ecx
push 2
pop ebx
test bl, 2
jmp 0x468f4d
push 0x4d
mov edi, str.c:_bc_bwin_archive_srcchromeinstallerutildelete_after_reboot_helper.cc
push edi
call fcn.00432260
pop ecx
pop ecx
cmp eax, 1
jl 0x469023
push 0xffffffffffffffff
push 0x5d
push edi
lea ecx, [ebp - 0xdc]
call fcn.00431700
push esi
add eax, 8
push str.Scheduled_for_deletion:
push eax
call fcn.00415b8c
pop ecx
pop ecx
push eax
call fcn.0041659c
pop ecx
pop ecx
push 4
pop ebx
test bl, 4
je 0x469033
lea ecx, [ebp - 0xdc]
call fcn.00431880
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d8a1
mov esp, ebp
pop ebp
ret

Function at 0x46b6a5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 0x10]
add edx, edx
cmp dword [eax + 0x14], 8
jb 0x46b6b8
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 8
jb 0x46b6c3
mov ecx, dword [ecx]
push edx
push eax
push 1
push 0
push ecx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
pop ebp
ret
Function at 0x46bb44
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4f6870]
sub esp, 0x28
push edi
mov edi, ecx
test eax, eax
jne 0x46bb5d
xor al, al
jmp 0x46bc8f
push ebx
push str.ShowHTMLDialog
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x46bb77
xor al, al
jmp 0x46bc8e
push esi
push 8
xor esi, esi
lea eax, [edi + 4]
pop ecx
mov dword [ebp - 4], esi
cmp dword [eax + 0x14], ecx
jb 0x46bb8a
mov eax, dword [eax]
push 1
lea ecx, [ebp - 4]
push ecx
push eax
push esi
call sub.urlmon.dll_CreateURLMonikerEx
cmp dword [ebp - 4], esi
jne 0x46bba3
xor al, al
jmp 0x46bc8d
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x46bbe3
mov eax, dword [esi]
lea ecx, [ebp - 8]
push ecx
mov ecx, esi
call dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x46bc96
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov ecx, dword [0x4f6874]
test eax, eax
mov dword [0x4f686c], eax
cmovne ecx, esi
mov dword [0x4f6874], ecx
lea eax, [edi + 0x1c]
cmp dword [eax + 0x14], 8
jb 0x46bbee
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x28]
call fcn.004c48b0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
push 0
call ebx
mov ecx, dword [ebp - 4]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
push 3
pop eax
cmp word [ebp - 0x18], ax
jne 0x46bc31
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
jmp 0x46bc58
push 8
pop eax
cmp word [ebp - 0x18], ax
jne 0x46bc58
mov eax, dword [ebp + 0xc]
push dword [ebp - 0x10]
mov dword [eax], 6
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
push dword [ebp - 0x10]
lea ecx, [edi + 0x34]
call fcn.0041b79d
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [0x4f686c]
test eax, eax
je 0x46bc80
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
and dword [0x4f6874], 0
and dword [0x4f686c], 0
lea ecx, [ebp - 0x28]
call fcn.004c48e0
test esi, esi
setns al
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x46ca7a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x4f4284]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x34]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push eax
mov ecx, esi
mov dword [ebp - 0x50], ebx
call fcn.00435a40
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041cf76
lea ecx, [ebp - 0x34]
call fcn.00434920
push ebx
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00435900
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 7
lea ecx, [ebp - 0x34]
cmovae eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], ebx
push 0xffffffffffffffff
cmp word [eax], 0x22
jne 0x46caf2
xor eax, eax
mov word [ebp - 0x34], ax
mov eax, dword [ebp - 0x3c]
add eax, 2
push eax
jmp 0x46cafb
push dword [ebp - 0x3c]
xor eax, eax
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x1c]
push eax
call fcn.0041b708
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041631a
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.0041b1ee
lea eax, [ebp - 0x1c]
push eax
push 3
push eax
call fcn.00443310
call fcn.0046c411
push 0x38
mov esi, eax
lea eax, [ebp - 0x88]
push ebx
push eax
call fcn.004a0ee0
add esp, 0x18
mov dword [ebp - 0x8c], 0x3c
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x88], 0x40
cmovae eax, dword [ebp - 0x4c]
cmp dword [ebp - 8], 8
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x80], str.runas
mov dword [ebp - 0x70], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, 1
jne 0x46cbc0
push 0xffffffffffffffff
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and dword [ebp - 0x50], ebx
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x46cbc0
mov bl, 1
test edi, edi
je 0x46cbc0
mov eax, dword [ebp - 0x50]
mov dword [edi], eax
test esi, esi
je 0x46cbcb
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.0041b1ee
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.0041b1ee
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d8a1
mov esp, ebp
pop ebp
ret
Function at 0x476308
Capabilities:
Access firewall rule properties via inetfwrule

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4f4284]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x24], eax
xor ecx, ecx
movzx eax, word [ebp + 0x14]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x20]
push eax
push 0x4dd5cc
push 0x17
push ecx
mov dword [ebp - 0x2c], ecx
push 0x4e219c
mov dword [ebp - 0x20], ecx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x47636c
and dword [edi], 0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4764b2
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
jmp 0x4764b2
cmp dword [ebx + 0x14], 8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
jb 0x47637a
mov ebx, dword [ebx]
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004c5090
mov edx, dword [ebp - 0x30]
push dword [eax]
mov ecx, dword [edx]
push edx
call dword [ecx + 0x20]
lea ecx, [ebp - 0x2c]
call fcn.004c50b0
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
cmp dword [eax + 0x14], 8
jb 0x4763a4
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x24]
call fcn.004c5090
mov ecx, dword [ebx]
push dword [eax]
push ebx
call dword [ecx + 0x28]
lea ecx, [ebp - 0x24]
call fcn.004c50b0
mov ebx, dword [ebp - 0x20]
lea eax, [esi + 0x18]
cmp dword [eax + 0x14], 8
jb 0x4763cb
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x24]
call fcn.004c5090
mov ecx, dword [ebx]
push dword [eax]
push ebx
call dword [ecx + 0x30]
lea ecx, [ebp - 0x24]
call fcn.004c50b0
mov eax, dword [ebp - 0x20]
push 0x11
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x20]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x70]
mov eax, dword [ebp - 0x20]
push 0xffffffffffffffff
push eax
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x20]
movzx eax, ax
push eax
lea eax, [ebp - 0x1c]
push 0x4dd5ec
push eax
call fcn.00444420
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x47642b
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x28]
call fcn.004c5090
mov ecx, dword [ebx]
push dword [eax]
push ebx
call dword [ecx + 0x48]
lea ecx, [ebp - 0x28]
call fcn.004c50b0
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.0041b1ee
cmp dword [esi + 0x14], 8
mov ebx, dword [ebp - 0x20]
jb 0x47645b
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x28]
call fcn.004c5090
mov ecx, dword [ebx]
push dword [eax]
push ebx
call dword [ecx + 0x90]
lea ecx, [ebp - 0x28]
call fcn.004c50b0
mov eax, dword [ebp - 0x20]
push SysReAllocString
push eax
mov ecx, dword [eax]
call dword [ecx + 0x98]
mov eax, dword [ebp - 0x20]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov eax, dword [ebp - 0x20]
mov dword [edi], eax
test eax, eax
je 0x4764b2
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4764b2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d8a1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x478b9a
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x70
push 0
push esi
call fcn.004a0ee0
add esp, 0xc
mov dword [esi], 0x6a09e667
xor eax, eax
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
inc eax
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x20
pop esi
pop ebp
ret

Function at 0x4818cd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
push esi
push 8
mov ecx, edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor ecx, eax
sub esi, 1
jne 0x4818d5
mov dword [edx*4 + 0x4f7e40], ecx
inc edx
cmp edx, 0x100
jb 0x4818d0
mov esi, 0x800
jmp 0x48191e
mov ecx, dword [edx*4 + 0x4f7a40]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x4f7e40]
mov dword [edx*4 + 0x4f7e40], ecx
inc edx
cmp edx, esi
jb 0x481902
mov eax, 0x48433b
mov esi, 0x4843d4
mov dword [0x4f9e48], eax
mov dword [0x4f9e40], eax
mov dword [0x4f9e44], esi
call fcn.0048418d
mov ecx, dword [0x4f9e40]
test eax, eax
cmove ecx, esi
mov dword [0x4f9e40], ecx
pop esi
ret

Function at 0x487f42
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [0x4f4284]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x20], ebx
cmp dword [edi + 0x14], 8
jb 0x487f6a
mov eax, dword [edi]
jmp 0x487f6c
mov eax, edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x487f80
mov al, 1
jmp 0x48801d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x488016
push 2
call fcn.00432780
pop ecx
test al, al
je 0x487fee
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x233
push str.c:_bc_bwin_archive_src_third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea ecx, [ebp - 0xd8]
call fcn.00431820
push ecx
push ecx
mov ecx, esp
mov esi, eax
push edi
call fcn.00415fd3
lea eax, [ebp - 0x1c]
push eax
call fcn.004447c0
add esp, 0xc
push eax
lea eax, [esi + 0x10]
push str.CreateDirectory
push eax
call fcn.00415b8c
pop ecx
pop ecx
push eax
call fcn.00415a50
pop ecx
pop ecx
push 3
pop ebx
test bl, 2
je 0x488001
lea ecx, [ebp - 0xd8]
and ebx, 0xfffffffd
call fcn.00431af0
test bl, 1
je 0x488012
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.0041b199
xor al, al
jmp 0x48801d
push edi
call fcn.004881b4
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d8a1
mov esp, ebp
pop ebp
ret
Function at 0x4881b4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [0x4f4284]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x20], ebx
cmp dword [edi + 0x14], 8
jb 0x4881dc
mov eax, dword [edi]
jmp 0x4881de
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x488276
push 2
call fcn.00432780
pop ecx
test al, al
je 0x48824b
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x21d
push str.c:_bc_bwin_archive_src_third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea ecx, [ebp - 0xd8]
call fcn.00431820
push ecx
push ecx
mov ecx, esp
mov esi, eax
push edi
call fcn.00415fd3
lea eax, [ebp - 0x1c]
push eax
call fcn.004447c0
add esp, 0xc
push eax
lea eax, [esi + 0x10]
push str.GetFileAttributes
push eax
call fcn.00415b8c
pop ecx
pop ecx
push eax
call fcn.00415a50
pop ecx
pop ecx
push 3
pop ebx
test bl, 2
je 0x48825e
lea ecx, [ebp - 0xd8]
and ebx, 0xfffffffd
call fcn.00431af0
test bl, 1
je 0x48826f
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.0041b199
xor al, al
jmp 0x4882fb
test al, 0x10
jne 0x4882f9
push 2
call fcn.00432780
pop ecx
test al, al
je 0x4882de
push 2
push 0x221
push str.c:_bc_bwin_archive_src_third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea ecx, [ebp - 0xd0]
call fcn.00431700
push str.:_not_a_directory
push ecx
push ecx
mov ecx, esp
mov esi, eax
push edi
call fcn.00415fd3
lea eax, [ebp - 0x1c]
push eax
call fcn.004447c0
add esp, 0xc
push eax
lea eax, [esi + 8]
push str.GetFileAttributes
push eax
call fcn.00415b8c
pop ecx
pop ecx
push eax
call fcn.00415a50
pop ecx
pop ecx
push eax
call fcn.00415b8c
pop ecx
pop ecx
push 0xc
pop ebx
test bl, 8
je 0x4882f1
lea ecx, [ebp - 0xd0]
and ebx, 0xfffffff7
call fcn.00431880
test bl, 4
jmp 0x488261
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d8a1
mov esp, ebp
pop ebp
ret

Function at 0x489012
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 0x10
cmp dword [eax + 0x14], 8
jb 0x489023
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x489034
xor eax, eax
inc eax
pop ebp
ret
shr eax, 3
and eax, 2
pop ebp
ret