joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44fd80
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x4693a4]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x44fe00
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00402610
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.00417930
push esi
call dword [0x469004]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x44ff60
push 0
push 0x80
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x44fe5a
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00402610
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.00417930
push 0
mov esi, 0x4d
call dword [0x469004]
add esp, 0x20
jmp 0x44ff51
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x44fe9a
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00402610
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.00417930
add esp, 0x1c
mov esi, 0x4d
jmp 0x44ff3d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x44fec8
jg 0x44feae
cmp edi, 0x100000
jbe 0x44fec8
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.00417930
add esp, 0xc
mov esi, 0x4d
jmp 0x44ff3d
lea eax, [edi + 1]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x44fee0
lea esi, [eax + 0x1b]
jmp 0x44ff3d
test edi, edi
je 0x44ff24
nop dword [eax]
nop dword [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44ff7d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x44ff79
add esi, eax
cmp esi, edi
jb 0x44fef0
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.0044fb80
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x469004]
add esp, 4
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00457be0
add esp, 0x120
ret
mov edi, esi
jmp 0x44ff24
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00402610
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.00417930
add esp, 0x1c
mov esi, 0x4d
jmp 0x44ff3d
Function at 0x456a60
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
jne 0x456a87
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x456ad2
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [esp + 0x20], ebx
jmp 0x456ad6
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x456b36
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x456af5
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x456b67
nop dword [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0x466ec5
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x466ec6
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x456b40
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x456b70
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push dword [esp + 0x20]
call fcn.00419d50
mov esi, dword [esp + 0x1c]
mov ebx, eax
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [section..data]
mov edi, eax
add esp, 8
test edi, edi
je 0x456cd8
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x456bec
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push ebp
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov eax, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x18]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x456c51
mov dword [esp + 0x18], eax
mov ebx, eax
nop dword [eax + eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x1c], al
lea eax, [esp + 0x1c]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x28], al
lea eax, [esp + 0x28]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x456c10
mov ebx, dword [esp + 0x18]
cmp ebx, dword [esi + 0x10]
jae 0x456c7d
mov eax, dword [esi + 4]
push 1
push 0x466ec5
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x466ec6
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x456c56
push dword [esp + 0x28]
call fcn.00419d50
mov ecx, dword [edi]
push eax
push dword [esp + 0x2c]
push dword [edi + 4]
mov eax, dword [ecx + 4]
call eax
mov esi, dword [esp + 0x3c]
add esp, 0x10
mov ebx, dword [edi]
test esi, esi
jne 0x456ca8
mov esi, dword [ebx + 0xc]
add esi, dword [edi + 8]
push dword [edi + 4]
mov eax, dword [ebx + 8]
push esi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push esi
push dword [edi + 8]
call eax
push dword [edi + 8]
mov eax, dword [ebx + 8]
push esi
call eax
push edi
call dword [0x469004]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
pop ecx
ret
Function at 0x456db0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x456dd6
mov eax, 0x1b
add esp, 0xc
ret
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x800c
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x456e06
push eax
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
add esp, 0xc
ret
push dword [esp + 0x18]
call fcn.00419d50
add esp, 4
push 0
push eax
push dword [esp + 0x1c]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [esp], 0x20
jne 0x456e5d
push 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x18]
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [esp + 8]
test eax, eax
je 0x456e6c
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x456e7d
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
add esp, 0xc
ret
Function at 0x4588fa
Capabilities:
Parse pe header

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

Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
mov eax, 1
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
xor ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
mov ecx, edi
jns 0x41989b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x100016eb
Capabilities:
Connect socket

Disassembly:
push ecx
mov eax, dword [edi + 0x18]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
je 0x10001707
call fcn.1001a5e3
mov esi, dword [edi + 0x18]
call fcn.1001a583
mov dword [edi + 0x18], ebx
mov eax, dword [edi + 0x1c]
cmp eax, 0xffffffff
je 0x1000171a
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [edi + 0x1c], 0xffffffff
mov ecx, dword [edi + 0x2c]
push ebx
push ebx
push ebx
push ebx
call fcn.100038d2
mov ecx, dword [edi + 0x30]
push ebx
push ebx
push ebx
push ebx
call fcn.100038d2
add esp, 0x20
xor eax, eax
inc eax
push 6
push eax
push 2
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], ebx
mov dword [edi + 0x13f0], ebx
mov dword [edi + 0x13ec], ebx
mov dword [edi + 0x3dc], ebx
mov dword [edi + 0x3e0], ebx
mov dword [edi + 0x3e4], ebx
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [edi + 0x1c], eax
je 0x100017d2
push 0x10
push edi
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x100017d2
mov eax, dword [edi + 0x40]
push str.http:
push dword [eax]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10001796
mov eax, dword [edi + 0x24]
jmp 0x100017d7
push dword [edi + 0x14]
call fcn.1001a53c
cmp eax, ebx
pop ecx
mov dword [edi + 0x18], eax
je 0x100017d2
mov ecx, dword [edi + 0x1c]
lea edx, [eax + 0xf8]
lea esi, [eax + 0xfc]
mov dword [edx], ecx
mov dword [esi], ecx
mov dword [eax + 0x110], edx
mov dword [eax + 0x114], esi
mov eax, dword [edi + 0x18]
call fcn.1001a85c
cmp eax, 1
je 0x10001791
mov dword [edi + 0x24], ebx
xor eax, eax
pop esi
pop ebx
pop ecx
ret

Function at 0x100017db
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [edi + 0x24], 0
push esi
jne 0x100017ec
xor eax, eax
jmp 0x10001863
mov eax, dword [ebx + 4]
and dword [ebp - 4], 0
test eax, eax
mov dword [ebp - 8], eax
jle 0x10001860
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 4]
mov eax, 0x1000
cmp ecx, eax
jl 0x1000180b
mov ecx, eax
mov eax, dword [ebx]
mov esi, dword [edi + 0x18]
add eax, dword [ebp - 4]
test esi, esi
je 0x10001829
push ecx
push eax
call fcn.1001d735
test eax, eax
pop ecx
pop ecx
jge 0x10001836
or esi, 0xffffffff
jmp 0x10001838
push 0
push ecx
push eax
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test esi, esi
jle 0x10001866
mov eax, dword [edi + 0x3e8]
test eax, eax
je 0x10001855
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10001866
add dword [ebp - 4], esi
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x100017fa
xor eax, eax
inc eax
pop esi
leave
ret
and dword [edi + 0x24], 0
jmp 0x100017e8
Function at 0x1000186f
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push ecx
cmp dword [esi + 0x24], 0
push ebx
push ebp
push edi
jne 0x10001881
xor eax, eax
jmp 0x10001958
mov edi, dword [esi + 0x13f0]
mov eax, edi
cdq
mov ebx, closesocket
add eax, ebx
adc edx, 0
mov dword [esp + 0x10], edx
mov ebp, 0x1000
js 0x100018e5
jg 0x100018a5
cmp eax, ebp
jbe 0x100018e5
mov ecx, dword [esi + 0x13ec]
test ecx, ecx
je 0x100018e5
cmp edi, ebp
je 0x100018bc
mov eax, edi
sub eax, ecx
cmp eax, 0x10
jg 0x100018e5
mov eax, edi
sub eax, ecx
push eax
mov dword [esi + 0x13f0], eax
lea eax, [ecx + esi + 0x3ec]
push eax
lea eax, [esi + 0x3ec]
push eax
call sub.MSVCRT.dll_memmove
add esp, 0xc
and dword [esi + 0x13ec], 0
mov eax, dword [esi + 0x13f0]
mov ecx, ebp
sub ecx, eax
cmp ecx, ebx
jle 0x100018f5
mov ecx, ebx
mov edx, dword [esi + 0x18]
xor ebx, ebx
cmp edx, ebx
lea eax, [eax + esi + 0x3ec]
je 0x10001912
push ecx
push eax
push edx
call fcn.1001a5bc
add esp, 0xc
jmp 0x1000191e
push ebx
push ecx
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, ebx
jge 0x1000192c
mov dword [esi + 0x24], ebx
jmp 0x1000187a
mov eax, dword [esi + 0x3e8]
cmp eax, ebx
je 0x10001944
push ebx
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10001924
add dword [esi + 0x13f0], edi
cmp edi, ebx
jne 0x10001955
mov dword [esi + 0x28], 1
mov eax, dword [esi + 0x24]
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x100027e8
Capabilities:
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
push edi
push str..cached_header
push dword [ebp + 8]
call fcn.1000383a
push str..cached_part
push dword [eax]
mov dword [ebp - 0xc], eax
call fcn.1000383a
add esp, 0x10
xor edi, edi
push edi
push edi
push 2
push edi
push 1
push 0x40000000
push dword [eax]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x10002846
mov esi, dword [ebp - 0xc]
call fcn.100037ea
mov esi, dword [ebp - 0x10]
call fcn.100037ea
mov eax, edi
pop edi
pop esi
leave
ret
push edi
push edi
push edi
push edi
push edi
push edi
push 0x1002c1b1
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x48], 0xe
mov dword [ebp - 0x44], 0x18
mov dword [ebp - 0x40], 0x16
mov dword [ebp - 0x3c], 0x14
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x34], 0xd
mov dword [ebp - 0x30], 9
mov dword [ebp - 0x2c], 0x15
mov dword [ebp - 0x28], 0x1c
mov dword [ebp - 0x24], 0x1d
mov dword [ebp - 0x20], 0x1e
mov dword [ebp - 0x1c], 0x1f
mov dword [ebp - 0x18], 0x20
call fcn.10003856
add esp, 0x1c
mov esi, eax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x4c]
mov ecx, dword [ebx + eax*8 + 0x2d8]
cmp dword [ecx + 4], edi
je 0x100028ed
mov eax, dword [ebx + eax*8 + 0x2d4]
mov eax, dword [eax]
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ecx]
push esi
call fcn.10003a61
add esp, 0x20
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xe
jb 0x100028c0
mov eax, dword [ebx + 0x180]
mov eax, dword [eax]
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push esi
call fcn.10003a61
add esp, 0x20
push edi
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
push dword [esi]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
call fcn.10003812
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
push 9
push dword [eax]
mov eax, dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor edi, edi
inc edi
jmp 0x10002830
Function at 0x10002949
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push edi
push str..cached_header
push dword [ebp + 0xc]
call fcn.1000383a
pop ecx
pop ecx
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10002974
test al, 0x10
je 0x1000297c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esi]
call fcn.100034bd
mov edi, eax
pop ecx
mov dword [ebp - 0x10], edi
call fcn.100037ea
test edi, edi
jne 0x10002999
xor eax, eax
jmp 0x10002ae5
mov esi, dword [ebp + 8]
push ebx
push 0x21
add esi, 0x2d8
pop ebx
mov ecx, dword [esi]
xor eax, eax
push eax
push eax
push eax
push eax
call fcn.100038d2
add esp, 0x10
add esi, 8
dec ebx
jne 0x100029a6
mov esi, dword [edi]
mov eax, dword [edi + 4]
add eax, esi
cmp esi, eax
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x40], 0xe
mov dword [ebp - 0x3c], 0x18
mov dword [ebp - 0x38], 0x16
mov dword [ebp - 0x34], 0x14
mov dword [ebp - 0x30], 0xc
mov dword [ebp - 0x2c], 9
mov dword [ebp - 0x28], 0x15
mov dword [ebp - 0x24], 0x1c
mov dword [ebp - 0x20], 0x1d
mov dword [ebp - 0x1c], 0x1e
mov dword [ebp - 0x18], 0x1f
mov dword [ebp - 0x14], 0x20
mov dword [ebp - 4], eax
je 0x10002adc
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + eax*4 - 0x44]
mov eax, dword [ebp + 8]
lea edi, [eax + ebx*8 + 0x2d4]
mov eax, dword [edi]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10002aa4
mov edx, dword [ebp - 4]
sub edx, esi
cmp ecx, edx
jg 0x10002aa4
mov eax, dword [eax]
push esi
call fcn.10003eb8
test eax, eax
pop ecx
je 0x10002aa4
mov eax, dword [edi]
add esi, dword [eax + 4]
cmp esi, dword [ebp - 4]
mov edi, esi
jmp 0x10002a82
push 0x1002c470
push edi
call fcn.10003e97
test eax, eax
pop ecx
pop ecx
jne 0x10002a87
inc edi
cmp edi, dword [ebp - 4]
mov dword [ebp - 0xc], edi
jne 0x10002a6d
mov eax, dword [ebp + 8]
sub edi, esi
push esi
mov esi, dword [eax + ebx*8 + 0x2d8]
call fcn.1000388d
mov esi, dword [ebp - 0xc]
pop ecx
mov dword [ebp - 0xc], 1
inc dword [ebp - 8]
cmp dword [ebp - 8], 0xd
jb 0x10002a31
cmp dword [ebp - 0xc], 0
jne 0x10002ab4
inc esi
cmp esi, dword [ebp - 4]
je 0x10002ad9
push 0x1002c470
push esi
call fcn.10003e97
test eax, eax
pop ecx
pop ecx
jne 0x10002ad0
inc esi
cmp esi, dword [ebp - 4]
jne 0x10002ab9
cmp esi, dword [ebp - 4]
jne 0x10002a29
mov edi, dword [ebp - 0x10]
call fcn.1000359f
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret
Function at 0x1000343c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x1003e328], 0
push esi
push edi
mov edx, 0xff
jne 0x1000347b
xor esi, esi
push 8
mov ecx, esi
pop edi
test cl, 1
je 0x10003462
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x10003464
shr ecx, 1
dec edi
jne 0x10003453
mov edi, esi
xor edi, edx
inc esi
cmp esi, 0x100
mov dword [edi*4 + 0x1003e328], ecx
jb 0x1000344e
xor ecx, ecx
cmp dword [esp + 0x10], ecx
jle 0x100034a7
mov esi, dword [esp + 0xc]
movzx esi, byte [ecx + esi]
mov edi, eax
and edi, edx
shr eax, 8
xor esi, edi
xor eax, dword [esi*4 + 0x1003e328]
xor eax, 0xff000000
inc ecx
cmp ecx, dword [esp + 0x10]
jl 0x10003483
pop edi
pop esi
ret

Function at 0x100034bd
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push dword [ebp + 8]
call fcn.10003423
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
mov dword [ebp - 0xc], ebx
jne 0x100034db
xor eax, eax
jmp 0x1000354e
push esi
push edi
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10003543
xor esi, esi
cmp dword [ebp - 4], esi
jne 0x10003543
push esi
push esi
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
cmp edi, esi
mov dword [ebp - 0x10], edi
je 0x10003543
mov eax, dword [ebp - 8]
push esi
push esi
push esi
push 4
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x10003530
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push ebx
call esi
jmp 0x1000354a
push 0x10
call sub.MSVCRT.dll_malloc
lea esi, [ebp - 0x18]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
movsd dword es:[edi], dword [esi]
jmp 0x1000354c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10004107
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push edi
xor edi, edi
push 0x206
lea eax, [ebp - 0x206]
push edi
push eax
mov word [ebp - 0x208], di
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x10004188
push esi
push 0x104
lea eax, [ebp - 0x208]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea eax, [ebp - 0x208]
push edi
push eax
call fcn.1000383a
mov esi, eax
mov eax, dword [esi + 4]
cmp eax, edi
pop ecx
pop ecx
je 0x10004183
mov ecx, dword [esi]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x10004183
push 0x5c
call fcn.100039fb
pop ecx
mov eax, esi
pop esi
jmp 0x10004195
push edi
push 0x1002c57c
call fcn.1000383a
pop ecx
pop ecx
pop edi
leave
ret