joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10088eb0
Capabilities:
Reference sql statements

Disassembly:
push ebx
push edi
push dword [esp + 0xc]
mov edi, edx
mov ebx, ecx
push edi
push str.sqlite_master
push edi
push str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
push ebx
call fcn.1008db40
add esp, 0x18
cmp dword [esp + 0xc], 0
jne 0x10088eea
push edi
push str.sqlite_master
push str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
push ebx
call fcn.1008db40
add esp, 0x10
pop edi
pop ebx
ret

Function at 0x1008dc50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebx, ecx
mov ebp, edx
mov ecx, dword [esp + 0x14]
push esi
push edi
mov dword [esp + 0x10], ebx
xor esi, esi
cmp dword [ebx + 0x14], esi
jle 0x1008dceb
nop
mov edi, esi
xor edi, 1
cmp esi, 2
cmovge edi, esi
test ecx, ecx
je 0x1008dca3
mov edx, edi
mov eax, ecx
mov ecx, dword [ebx + 0x10]
add edx, edx
mov ebx, dword [ecx + edx*8]
sub ebx, dword [esp + 0x1c]
nop
movzx edx, byte [eax]
movzx ecx, byte [ebx + eax]
cmp edx, ecx
jne 0x1008dcc8
test edx, edx
jne 0x1008dcda
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x10]
add edi, edi
push 0
mov edx, ebp
mov ecx, dword [eax + edi*8 + 0xc]
add ecx, 8
call fcn.10051eb0
add esp, 4
mov eax, dword [eax + 8]
test eax, eax
jne 0x1008dd4a
jmp 0x1008dce1
movzx ecx, byte [ecx + 0x100fff40]
movzx edx, byte [edx + 0x100fff40]
sub edx, ecx
jne 0x1008dcdd
inc eax
jmp 0x1008dc90
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
inc esi
cmp esi, dword [ebx + 0x14]
jl 0x1008dc70
mov edx, str.sqlite_master
sub edx, ebp
movzx ecx, byte [ebp]
movzx eax, byte [edx + ebp]
cmp ecx, eax
jne 0x1008dd16
test ecx, ecx
jne 0x1008dd28
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
test ecx, ecx
jne 0x1008dd2b
neg eax
sbb eax, eax
jmp 0x1008dd3a
movzx eax, byte [eax + 0x100fff40]
movzx ecx, byte [ecx + 0x100fff40]
sub ecx, eax
jne 0x1008dd48
inc ebp
jmp 0x1008dcf2
test eax, eax
je 0x1008dd48
mov edx, eax
call fcn.10050a10
mov ecx, dword [esp + 0x1c]
test eax, eax
jne 0x1008dd48
mov ebp, str.sqlite_temp_master
jmp 0x1008dc63
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x1008e090
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
mov eax, ecx
mov dword [esp + 4], edx
push ebx
push edi
xor ebx, ebx
mov dword [esp + 0x10], eax
xor edi, edi
cmp dword [eax + 0x14], ebx
jle 0x1008e12a
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov eax, dword [eax + 0x10]
mov esi, edi
xor esi, 1
cmp edi, 2
cmovge esi, edi
shl esi, 4
add esi, eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x1008e0e9
mov esi, dword [esi]
mov eax, ebp
sub esi, ebp
movzx edx, byte [eax]
movzx ecx, byte [esi + eax]
cmp edx, ecx
jne 0x1008e115
test edx, edx
jne 0x1008e127
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea ecx, [eax + 0x18]
push 0
call fcn.10051eb0
add esp, 4
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x1008e10b
mov eax, dword [esp + 0x18]
inc edi
cmp edi, dword [eax + 0x14]
jl 0x1008e0b2
pop esi
pop ebp
pop edi
mov eax, ebx
pop ebx
add esp, 0x10
ret
movzx ecx, byte [ecx + 0x100fff40]
movzx edx, byte [edx + 0x100fff40]
sub edx, ecx
jne 0x1008e101
inc eax
jmp 0x1008e0d6
pop edi
mov eax, ebx
pop ebx
add esp, 0x10
ret
Function at 0x100e44c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
push edi
push 0x38
xorps xmm0, xmm0
lea eax, [esp + 0x4c]
mov ebp, edx
movlpd qword [esp + 0x2c], xmm0
mov ebx, ecx
mov dword [esp + 0x20], ebp
push 0
movups xmmword [esp + 0x40], xmm0
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x50], 0x13
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x48]
mov edx, ebp
mov ecx, ebx
push eax
push 1
push 0
push 0
push 0
push 0xfffffffffffffffe
push dword [esp + 0xa0]
call fcn.100d4a60
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x100e469e
push dword [esp + 0x3c]
lea eax, [esp + 0x3c]
mov ecx, ebx
push dword [esp + 0x3c]
lea edx, [esp + 0x50]
mov dword [esp + 0x5c], eax
call fcn.100dffb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x100e469e
lea edx, [esp + 0x48]
mov ecx, ebx
call fcn.100e00d0
mov esi, eax
cmp esi, 0x64
jne 0x100e469e
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebp
mov edi, dword [esp + 0x78]
lea edx, [esp + 0x20]
mov ebp, dword [esp + 0x7c]
xorps xmm0, xmm0
mov ecx, edi
movlpd qword [esp + 0x20], xmm0
add ebp, edi
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x28], xmm0
call fcn.100d0cb0
lea esi, [edi + eax]
cmp esi, ebp
jae 0x100e467e
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
xorps xmm0, xmm0
lea edx, [esp + 0x20]
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.100d0cb0
add esi, eax
cmp esi, ebp
jae 0x100e467a
mov ecx, dword [esp + 0x20]
mov eax, ecx
mov edx, dword [esp + 0x24]
or eax, edx
je 0x100e4626
cmp ecx, 1
jne 0x100e45e6
test edx, edx
je 0x100e4626
mov eax, dword [esp + 0x28]
add ecx, 0xfffffffe
adc edx, 0xffffffff
add eax, ecx
mov ecx, dword [esp + 0x70]
adc dword [esp + 0x2c], edx
mov edx, dword [esp + 0x74]
push eax
push dword [esp + 0x34]
mov dword [esp + 0x30], eax
push edi
push ebx
push dword [esp + 0x98]
push dword [esp + 0x30]
call fcn.100e4410
xor dword [esp + 0x2c], eax
add esp, 0x18
xor dword [esp + 0x10], edx
jmp 0x100e4672
xorps xmm0, xmm0
or ecx, edx
movlpd qword [esp + 0x30], xmm0
mov ecx, esi
movlpd qword [esp + 0x28], xmm0
je 0x100e4648
lea edx, [esp + 0x30]
call fcn.100d0cb0
add esi, eax
jmp 0x100e4672
lea edx, [esp + 0x20]
call fcn.100d0cb0
add esi, eax
mov eax, dword [esp + 0x18]
cmp byte [eax + 0xef], 0
je 0x100e466a
sub ebx, dword [esp + 0x20]
sbb edi, dword [esp + 0x24]
jmp 0x100e4672
add ebx, dword [esp + 0x20]
adc edi, dword [esp + 0x24]
cmp esi, ebp
jb 0x100e45b1
mov ebx, dword [esp + 0x18]
lea edx, [esp + 0x48]
mov ecx, ebx
call fcn.100e00d0
mov esi, eax
cmp esi, 0x64
je 0x100e4574
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
jmp 0x100e46a6
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
lea ecx, [esp + 0x48]
call fcn.100e0830
mov ecx, dword [esp + 0x8c]
mov edx, edi
pop edi
mov eax, ebp
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
Function at 0x100eead0
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov ebx, edx
mov dword [esp + 0x10], str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
mov esi, ecx
mov dword [esp + 0x14], str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
push edi
mov edi, dword [esi + ebx*4 + 0x18]
test edi, edi
jne 0x100eeb0c
push dword [esi + 8]
push dword [esi + 4]
push dword [esp + ebx*4 + 0x1c]
push esi
call fcn.100ee9f0
mov edi, eax
add esp, 0x10
mov dword [esi + ebx*4 + 0x18], edi
cmp dword [esi + 0x28], 0
jne 0x100eebcc
mov ebp, dword [esp + 0x24]
push ebp
push dword [esp + 0x24]
push 1
push edi
call fcn.10073530
push edi
call fcn.10072280
add esp, 0x14
cmp eax, 0x65
jne 0x100eeb63
mov ecx, str.__parent
test ebx, ebx
mov eax, str.__rowid
cmove eax, ecx
mov ecx, dword [esp + 0x20]
push eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebp
push ecx
push str.Mapping___lld_____lld__missing_from__s_table
push esi
call fcn.100eea70
add esp, 0x1c
jmp 0x100eebba
cmp eax, 0x64
jne 0x100eebba
push 0
push edi
call fcn.10072ba0
mov ecx, dword [esp + 0x34]
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x28]
jne 0x100eeb85
cmp edx, ecx
je 0x100eebba
push ecx
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
test ebx, ebx
push ebp
push ecx
mov eax, str.__rowid
mov dword [esp + 0x20], str.__parent
cmove eax, dword [esp + 0x20]
push eax
push edx
push dword [esp + 0x2c]
push ebp
push ecx
push str.Found___lld_____lld__in__s_table__expected___lld_____lld_
push esi
call fcn.100eea70
add esp, 0x2c
push edi
call fcn.100712d0
add esp, 4
cmp dword [esi + 0x28], 0
jne 0x100eebcc
mov dword [esi + 0x28], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4014f0
Capabilities:
Check for sandbox username or hostname
Execute command
Get session user name

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push ecx
sub esp, 0x430
call fcn.004016b0
lea edx, [ebp - 0x418]
mov eax, 0
mov ecx, 0x100
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x41c], 0x400
lea eax, [ebp - 0x41c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x418]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_GetUserNameA]
call eax
sub esp, 8
mov eax, dword [str.KITTY036]
add eax, 5
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
lea edx, [eax + 7]
test eax, eax
cmovs eax, edx
sar eax, 3
movzx eax, byte [ebp + eax - 0x418]
movsx edx, al
mov eax, dword [ebp - 0x14]
and eax, 7
mov ecx, eax
sar edx, cl
mov eax, edx
and eax, 1
test eax, eax
je 0x401594
mov dword [ebp - 0xc], 0x403020
mov dword [ebp - 0x10], 0x44
jmp 0x4015a2
mov dword [ebp - 0xc], 0x403080
mov dword [ebp - 0x10], 0xbe
mov dword [esp + 4], 0x40404d
mov dword [esp], str.malware.exe
call sub.msvcrt.dll_fopen
mov dword [ebp - 0x18], eax
jmp 0x4015dd
mov eax, dword [ebp - 0xc]
lea edx, [eax + 1]
mov dword [ebp - 0xc], edx
movzx eax, byte [eax]
movsx eax, al
xor al, 0xff
mov edx, eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.msvcrt.dll_fputc
mov eax, dword [ebp - 0x10]
lea edx, [eax - 1]
mov dword [ebp - 0x10], edx
test eax, eax
jne 0x4015bb
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [esp], str.malware.exe
call sub.msvcrt.dll_system
mov eax, 0
lea esp, [ebp - 8]
pop ecx
pop edi
pop ebp
lea esp, [ecx - 4]
ret

Function at 0x401870
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004025f0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004025f0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x438c91
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x438a14
mov esi, 0x60112c14
sub esi, esi
sub esi, eax
call fcn.00438cd4
sub esi, 0xdacd9159
sub esi, eax
xor dword [ecx], edx
mov esi, esi
sub eax, 0xc7d133a5
sub eax, 1
inc ecx
mov eax, esi
add esi, esi
mov eax, esi
cmp ecx, ebx
jne fcn.00438c91
or esi, esi
add esi, eax
mov esi, esi
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x33547b6c
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x35d67922
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x402730
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x18], 8
lea eax, [ecx + 4]
jb 0x40273b
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402751
test al, 0x10
jne 0x402751
mov eax, 1
ret
xor eax, eax
ret

Function at 0x4027a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x4ed310]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [ecx]
push esi
push edi
cmp eax, 0xffffffff
jne 0x402836
cmp dword [ecx + 0x18], 8
lea edx, [ecx + 4]
jb 0x4027c8
mov edx, dword [edx]
xor edi, edi
xor eax, eax
mov word [esp + 0x10], ax
mov eax, edx
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], edi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4027e2
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00401bf0
lea ecx, [esp + 0x10]
push ecx
call fcn.00402310
add esp, 4
cmp dword [esp + 0x24], 8
mov esi, eax
mov edi, edx
jb 0x402821
mov edx, dword [esp + 0x10]
push edx
call fcn.0049855c
add esp, 4
mov eax, esi
mov edx, edi
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00499155
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0xc]
push ecx
xor edi, edi
push eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x40286b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x402867
push edi
mov ecx, eax
call fcn.004036a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.00499155
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40288e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4028a5
test al, 0x10
jne 0x4028a5
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402a20
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb400
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4ed310]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 8
jb 0x402a5b
mov eax, dword [eax]
push ebx
push 0x20
push 3
push ebx
push 3
push SHChangeNotifyRegister
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402a7c
push ebx
call fcn.00403710
lea eax, [ebp - 0x20]
push eax
push esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
jne 0x402acc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebx
je 0x402ac9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
mov ecx, edi
call fcn.004036a0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x402abb
mov eax, dword [eax]
mov esi, dword [ebp - 0x18]
push eax
push str.Error_querying_size_of_file___s_:
call fcn.004033b0
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov edx, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402af0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bad6b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4ed310]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x238], edi
cmp eax, edi
jne 0x402b37
mov eax, 0x4cca58
cmp dword [ecx + 0x14], 8
jb 0x402b3f
mov ecx, dword [ecx]
lea edx, [ebp - 0x218]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
xor eax, eax
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x402b71
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x234]
call fcn.00401bf0
mov dword [ebp - 4], edi
push 0xffffffffffffffff
lea ecx, [esi + 4]
mov dword [esi], 0xffffffff
push edi
lea eax, [ebp - 0x234]
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], edi
push eax
mov word [ecx], dx
call fcn.00401780
cmp dword [ebp - 0x220], 8
jb 0x402bd5
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0049855c
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499155
mov esp, ebp
pop ebp
ret
Function at 0x403fe0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, ecx
cmp dword [eax + 0x14], 8
jb 0x403fea
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404000
test al, 0x10
je 0x404000
mov eax, 1
ret
xor eax, eax
ret
Function at 0x404310
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40431e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404335
test al, 0x10
je 0x404335
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404410
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb326
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x4ed310]
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 [ebp + 8]
lea eax, [ebp - 0x440]
push eax
xor ebx, ebx
push 0xf6
mov dword [ebp - 0x470], esi
mov dword [ebp - 0x460], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40446e
xor ecx, ecx
mov word [ebp - 0x440], cx
lea edx, [ebp - 0x254]
push edx
push ebx
push 0x4cca58
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4044e2
lea ecx, [ebp - 0x440]
push ecx
lea edx, [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4ccb5c
lea eax, [ebp - 0x254]
push eax
call edi
call fcn.0049a61a
push ebx
push eax
lea ebx, [ebp - 0x4c]
call fcn.00403a40
add esp, 8
mov ecx, ebx
push ecx
lea edx, [ebp - 0x254]
push edx
call edi
push str..tmp
lea eax, [ebp - 0x254]
push eax
call edi
xor ebx, ebx
xor ecx, ecx
lea eax, [ebp - 0x254]
mov dword [ebp - 0x448], 7
mov dword [ebp - 0x44c], ebx
mov word [ebp - 0x45c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404504
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x254]
push edx
lea ecx, [ebp - 0x45c]
call fcn.00401bf0
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x45c]
mov edi, 8
cmp dword [ebp - 0x448], edi
jae 0x404542
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40456d
test al, 0x10
jne 0x40456d
mov eax, dword [ebp - 0x45c]
cmp dword [ebp - 0x448], edi
jae 0x404566
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x45c]
xor eax, eax
push ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov ecx, esi
mov word [esi], ax
call fcn.00401780
mov bl, 1
mov byte [ebp - 4], bl
xor edi, edi
push 0x18
mov dword [esi + 0x24], edi
call fcn.0049964e
add esp, 4
cmp eax, edi
je 0x4045f8
mov dword [esi + 0x20], eax
mov dword [eax], eax
mov eax, dword [esi + 0x20]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x20]
mov dword [eax + 8], eax
mov edx, dword [esi + 0x20]
mov byte [edx + 0x14], bl
mov eax, dword [esi + 0x20]
mov byte [eax + 0x15], bl
cmp dword [ebp - 0x448], 8
jb 0x4045da
mov ecx, dword [ebp - 0x45c]
push ecx
call fcn.0049855c
add esp, 4
mov eax, esi
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.00499155
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x460]
push edx
lea ecx, [ebp - 0x46c]
mov dword [ebp - 0x460], edi
call fcn.0049947d
push 0x4e2d5c
lea eax, [ebp - 0x46c]
push eax
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.00499164
int3
Function at 0x405600
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x40561e
or eax, 0xffffffff
or edx, eax
pop esi
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
push 0
lea ecx, [esp + 8]
push ecx
mov ecx, dword [ebp + 8]
push edx
push ecx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405612
mov eax, dword [esp + 4]
xor edx, edx
mov ecx, eax
and ecx, edx
cmp ecx, 0xffffffff
je 0x405655
add dword [esi + 0x30], eax
adc dword [esi + 0x34], edx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x405870
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp + 8]
push edi
xor edx, edx
sub ecx, edx
mov edi, 0x4c11db7
mov dword [eax], vtable.ckcore::CrcStream.0
mov word [eax + 4], 0x2001
mov dword [ebp - 4], edi
je 0x4058c4
sub ecx, 2
jne 0x4058e0
mov dword [ebp - 4], 0x1021
mov word [eax + 4], 0x1000
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
jmp 0x4058dd
mov ecx, 0xffff
mov dword [ebp - 4], 0x8005
mov byte [eax + 5], 0x10
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov edi, dword [ebp - 4]
movzx ecx, byte [eax + 5]
dec ecx
mov ebx, 1
shl ebx, cl
mov dword [ebp + 8], edx
lea ecx, [ebx + ebx - 2]
or ecx, 1
mov dword [eax + 8], ecx
lea ecx, [eax + 0x18]
mov dword [ebp - 8], ecx
jmp 0x405906
mov edi, dword [ebp - 4]
xor edx, edx
cmp byte [eax + 4], 0
je 0x405926
mov esi, 0x80
lea ecx, [esi - 0x7f]
test dword [ebp + 8], esi
je 0x40591b
or edx, ecx
add ecx, ecx
shr esi, 1
jne 0x405914
mov edi, dword [ebp - 4]
jmp 0x405929
mov edx, dword [ebp + 8]
movzx esi, byte [eax + 5]
lea ecx, [esi - 8]
shl edx, cl
test edx, ebx
je 0x40593c
add edx, edx
xor edx, edi
jmp 0x40593e
add edx, edx
test edx, ebx
je 0x405948
add edx, edx
xor edx, edi
jmp 0x40594a
add edx, edx
test edx, ebx
je 0x405954
add edx, edx
xor edx, edi
jmp 0x405956
add edx, edx
test edx, ebx
je 0x405960
add edx, edx
xor edx, edi
jmp 0x405962
add edx, edx
test edx, ebx
je 0x40596c
add edx, edx
xor edx, edi
jmp 0x40596e
add edx, edx
test edx, ebx
je 0x405978
add edx, edx
xor edx, edi
jmp 0x40597a
add edx, edx
test edx, ebx
je 0x405984
add edx, edx
xor edx, edi
jmp 0x405986
add edx, edx
test edx, ebx
je 0x405990
add edx, edx
xor edx, edi
jmp 0x405992
add edx, edx
cmp byte [eax + 4], 0
je 0x4059be
lea ecx, [esi - 1]
mov esi, 1
shl esi, cl
xor edi, edi
lea ecx, [edi + 1]
test esi, esi
je 0x4059bc
jmp 0x4059b0
test edx, esi
je 0x4059b6
or edi, ecx
add ecx, ecx
shr esi, 1
jne 0x4059b0
mov edx, edi
mov ecx, dword [eax + 8]
and ecx, edx
mov edx, dword [ebp - 8]
mov dword [edx], ecx
mov ecx, dword [ebp + 8]
inc ecx
add edx, 4
mov dword [ebp + 8], ecx
mov dword [ebp - 8], edx
cmp ecx, 0x100
jl 0x405901
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4