joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49c4d0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f55f0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x66d060]
xor eax, esp
mov dword [esp + 0x58], eax
push esi
mov eax, dword [0x66d060]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x48]
mov esi, dword [ebp + 0x10]
call fcn.0049c0b0
sub esp, 0x18
mov dword [esp + 0x88], 0
mov ecx, esp
lea eax, [esp + 0x60]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.0045f9d0
lea ecx, [esp + 0x48]
call fcn.0049bc00
add esp, 0x18
lea eax, [esp + 0x20]
mov byte [esp + 0x70], 1
push eax
mov ecx, esi
call fcn.0049b690
mov byte [esp + 0x70], 2
lea ecx, [esp + 0x30]
cmp dword [esp + 0x44], 0x10
mov edx, eax
cmovae ecx, dword [esp + 0x30]
call fcn.0049be40
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], 1
call fcn.0057cf38
mov ecx, esi
call fcn.00593ead
push eax
lea ecx, [esp + 0x10]
call fcn.005a76c4
lea eax, [esp + 0x14]
mov byte [esp + 0x70], 3
push eax
lea ecx, [esp + 0x10]
call fcn.005a85a3
lea ecx, [esp + 0x14]
call fcn.0057c834
lea ecx, [esp + 0xc]
mov byte [esp + 0x70], 1
call fcn.00593445
cmp dword [esp + 0x44], 0x10
jb 0x49c5d6
push dword [esp + 0x30]
call fcn.00496180
add esp, 4
cmp dword [esp + 0x5c], 0x10
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
jb 0x49c5fe
push dword [esp + 0x48]
call fcn.00496180
add esp, 4
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0055337c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49c620
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f55f0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x66d060]
xor eax, esp
mov dword [esp + 0x58], eax
push esi
mov eax, dword [0x66d060]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x48]
mov esi, dword [ebp + 0x10]
call fcn.0049bf30
sub esp, 0x18
mov dword [esp + 0x88], 0
mov ecx, esp
lea eax, [esp + 0x60]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.0045f9d0
lea ecx, [esp + 0x48]
call fcn.0049bc00
add esp, 0x18
lea eax, [esp + 0x20]
mov byte [esp + 0x70], 1
push eax
mov ecx, esi
call fcn.0049b690
mov byte [esp + 0x70], 2
lea ecx, [esp + 0x30]
cmp dword [esp + 0x44], 0x10
mov edx, eax
cmovae ecx, dword [esp + 0x30]
call fcn.0049be40
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], 1
call fcn.0057cf38
mov ecx, esi
call fcn.00593ead
push eax
lea ecx, [esp + 0x10]
call fcn.005a76c4
lea eax, [esp + 0x14]
mov byte [esp + 0x70], 3
push eax
lea ecx, [esp + 0x10]
call fcn.005a85a3
lea ecx, [esp + 0x14]
call fcn.0057c834
lea ecx, [esp + 0xc]
mov byte [esp + 0x70], 1
call fcn.00593445
cmp dword [esp + 0x44], 0x10
jb 0x49c726
push dword [esp + 0x30]
call fcn.00496180
add esp, 4
cmp dword [esp + 0x5c], 0x10
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
jb 0x49c74e
push dword [esp + 0x48]
call fcn.00496180
add esp, 4
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0055337c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49c770
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f55f0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x66d060]
xor eax, esp
mov dword [esp + 0x58], eax
push esi
mov eax, dword [0x66d060]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00593ead
mov edx, eax
lea ecx, [esp + 0x48]
call fcn.0049c0b0
sub esp, 0x18
mov dword [esp + 0x88], 0
mov ecx, esp
lea eax, [esp + 0x60]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.0045f9d0
lea ecx, [esp + 0x48]
call fcn.0049bc00
add esp, 0x18
lea eax, [esp + 0x20]
mov byte [esp + 0x70], 1
push eax
mov ecx, esi
call fcn.0049b690
mov byte [esp + 0x70], 2
lea ecx, [esp + 0x30]
cmp dword [esp + 0x44], 0x10
mov edx, eax
cmovae ecx, dword [esp + 0x30]
call fcn.0049be40
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], 1
call fcn.0057cf38
mov ecx, esi
call fcn.00593ead
push eax
lea ecx, [esp + 0x10]
call fcn.005a76c4
lea eax, [esp + 0x14]
mov byte [esp + 0x70], 3
push eax
lea ecx, [esp + 0x10]
call fcn.005a85a3
lea ecx, [esp + 0x14]
call fcn.0057c834
lea ecx, [esp + 0xc]
mov byte [esp + 0x70], 1
call fcn.00593445
cmp dword [esp + 0x44], 0x10
jb 0x49c87c
push dword [esp + 0x30]
call fcn.00496180
add esp, 4
cmp dword [esp + 0x5c], 0x10
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
jb 0x49c8a4
push dword [esp + 0x48]
call fcn.00496180
add esp, 4
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0055337c
mov esp, ebp
pop ebp
ret 8
Function at 0x49cae0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f566b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x66d060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
cmp ebx, dword [edi + 0xc]
mov ecx, dword [edi + 0x1c]
cmova ebx, dword [edi + 0xc]
mov dword [ebp - 0x10], 0
test ecx, ecx
je 0x49cb32
call fcn.0057d02b
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x49cb32
mov eax, dword [ecx]
push 1
call dword [eax]
push 0x10
call fcn.00555227
mov esi, eax
push 0x57
test esi, esi
push str.......external_aspkiCommonASUtilPublicDefaultImportImplAC_MemImpl.cpp
setne cl
movzx ecx, cl
push 0x10000002
push ecx
call fcn.0057be0a
add esp, 0x14
mov dword [ebp + 0xc], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x49cb73
push 0x40
push 0
mov ecx, esi
call fcn.0057ccfd
jmp 0x49cb75
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, eax
mov esi, dword [edi + 0xc]
cmp esi, ebx
mov dword [edi + 0x1c], eax
cmova esi, ebx
push esi
call fcn.0057d1fe
push 0
push dword [edi + 0x18]
push dword [edi + 0x14]
call fcn.00555f32
mov ecx, dword [edi + 0x1c]
add esp, 0xc
push dword [edi + 0x14]
push esi
push 1
call fcn.0057d2e0
push eax
call fcn.005559fb
mov ecx, dword [edi + 0x1c]
add esp, 0x10
mov esi, eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, ecx
mov dword [ecx], vtable.ASUtil::CConstMem.0
mov dword [ecx + 8], esi
sub dword [edi + 0xc], esi
add dword [edi + 0x18], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x49d0d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f5778
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x66d060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 0x24]
cmp ebx, 0xffffffff
je 0x49d166
test ebx, ebx
je 0x49d166
push 0x20
call fcn.00553c74
mov edi, eax
add esp, 4
test edi, edi
je 0x49d166
mov esi, 0x623600
mov ecx, edi
sub esi, edi
mov edx, 0x20
lea ecx, [ecx]
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
dec edx
jne 0x49d130
xor esi, esi
test ebx, ebx
je 0x49d15d
cmp dword [ebp + 0x28], 0x10
lea edx, [ebp + 0x14]
mov ecx, esi
cmovae edx, dword [ebp + 0x14]
and ecx, 0x1f
mov al, byte [edx + esi]
inc esi
xor byte [ecx + edi], al
cmp esi, ebx
jb 0x49d142
mov eax, dword [ebp - 0x10]
mov bl, 1
mov dword [eax], edi
jmp 0x49d16e
xor bl, bl
mov dword [esi], 0
cmp dword [ebp + 0x28], 0x10
jb 0x49d17f
push dword [ebp + 0x14]
call fcn.00496180
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
Function at 0x49e2b0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x49e2bb
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.0049e2d0
Function at 0x49e810
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x2c]
mov edi, edi
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, esi
sub edx, dword [edi + 0x6c]
mov dword [ebp - 4], edx
cmp dword [edi + 0x6c], eax
jb 0x49e89c
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.0055b940
mov edx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
mov edi, edi
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x49e86f
sub eax, esi
jmp 0x49e871
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x49e860
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x49e88f
sub eax, esi
jmp 0x49e891
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x49e880
mov edx, dword [ebp - 4]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x49e958
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x49e8c9
xor eax, eax
jmp 0x49e91c
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x49e8e6
mov edx, dword [ebx]
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.0049e040
jmp 0x49e8fe
cmp eax, 2
jne 0x49e904
mov edx, dword [ebx]
test edx, edx
jne 0x49e8f5
xor eax, eax
jmp 0x49e901
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.0049e2d0
add esp, 4
mov dword [ebx + 0x30], eax
push dword [ebp - 4]
push dword [ebx]
push dword [ebp - 8]
call fcn.0055b940
mov eax, dword [ebp - 4]
add esp, 0xc
add dword [ebx], eax
add dword [ebx + 8], eax
add dword [edi + 0x74], eax
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x49e944
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x49e958
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x49e820
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a2e30
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebx]
mov eax, esi
xor eax, dword [ebp + 8]
mov ecx, dword [ebx + 8]
and eax, 0xff
shr esi, 8
mov eax, dword [edx + eax*4]
xor eax, esi
mov dword [ebx], eax
movzx eax, al
add eax, dword [ebx + 4]
imul eax, eax, 0x8088405
pop esi
inc eax
mov dword [ebx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [edx + eax*4]
mov eax, dword [ebp + 8]
mov dword [ebx + 8], ecx
pop ebx
pop ebp
ret

Function at 0x4a2e80
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov ebx, ecx
mov dword [ebp - 4], esi
mov dword [esi], 0x12345678
mov dword [esi + 4], 0x23456789
mov dword [esi + 8], 0x34567890
mov cl, byte [ebx]
test cl, cl
je 0x4a2eff
push edi
mov edi, dword [esi + 4]
mov eax, 0x34567890
mov edx, dword [esi]
lea ebx, [ebx + 1]
mov esi, dword [ebp + 8]
movsx ecx, cl
xor ecx, edx
shr edx, 8
and ecx, 0xff
mov ecx, dword [esi + ecx*4]
mov esi, dword [ebp - 4]
xor ecx, edx
mov edx, dword [ebp + 8]
mov dword [esi], ecx
movzx ecx, cl
add ecx, edi
imul edi, ecx, 0x8088405
inc edi
mov ecx, edi
mov dword [esi + 4], edi
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [edx + ecx*4]
mov dword [esi + 8], eax
mov cl, byte [ebx]
test cl, cl
jne 0x4a2eb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a4c10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f5bf0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x66d060]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x66d060]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x64], edi
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
lea ecx, [esp + 0x10]
mov dword [esp + 0x68], eax
call fcn.004adf00
test al, al
je 0x4a4e43
xor eax, eax
mov dword [esp + 0x54], 7
push 0xffffffffffffffff
push eax
mov word [esp + 0x48], ax
lea ecx, [esp + 0x48]
lea eax, [esi + 0x34]
mov dword [esp + 0x58], 0
push eax
call fcn.00477ee0
push 0x630850
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6c], 1
call fcn.004773a0
lea edx, [esp + 0x28]
mov byte [esp + 0x68], 2
lea ecx, [esp + 0x40]
call fcn.004ae180
mov byte [esp + 0x68], 1
mov bl, al
cmp dword [esp + 0x3c], 8
jb 0x4a4ce1
push dword [esp + 0x28]
call fcn.00496180
add esp, 4
test bl, bl
je 0x4a4e19
lea edx, [esp + 0x40]
lea ecx, [esp + 0x10]
call fcn.004adf90
test al, al
je 0x4a4e19
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4a4d24
mov dword [esi + 0x64], 0xa
jmp 0x4a4e19
push str..debug
lea ecx, [esp + 0x2c]
call fcn.004773a0
lea edx, [esp + 0x28]
mov byte [esp + 0x68], 3
lea ecx, [esp + 0x10]
call fcn.004ae180
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 1
mov bl, al
call fcn.004774b0
test bl, bl
je 0x4a4d69
lea ecx, [esp + 0x10]
call fcn.004adee0
test al, al
jne 0x4a4e0d
lea ecx, [esp + 0x10]
call fcn.004ae230
test al, al
je 0x4a4e19
push str.asu.trace
lea ecx, [esp + 0x2c]
call fcn.004773a0
lea edx, [esp + 0x28]
mov byte [esp + 0x68], 4
lea ecx, [esp + 0x10]
call fcn.004adf90
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 1
mov bl, al
call fcn.004774b0
test bl, bl
je 0x4a4e19
lea ecx, [esp + 0x10]
call fcn.004adee0
test al, al
je 0x4a4dc4
mov dword [esi + 0x64], 0xa
jmp 0x4a4e19
lea ecx, [esp + 0x10]
call fcn.004ae230
test al, al
je 0x4a4e19
push str.asu.debug
lea ecx, [esp + 0x2c]
call fcn.004773a0
lea edx, [esp + 0x28]
mov byte [esp + 0x68], 5
lea ecx, [esp + 0x10]
call fcn.004adf90
lea ecx, [esp + 0x28]
mov bl, al
call fcn.004774b0
test bl, bl
je 0x4a4e19
lea ecx, [esp + 0x10]
call fcn.004adee0
test al, al
je 0x4a4e19
cmp edi, 0x14
jle 0x4a4e19
mov dword [esi + 0x64], 0x14
cmp dword [esp + 0x54], 8
jb 0x4a4e2c
push dword [esp + 0x40]
call fcn.00496180
add esp, 4
xor eax, eax
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
cmp dword [esp + 0x24], 8
jb 0x4a4e56
push dword [esp + 0x10]
call fcn.00496180
add esp, 4
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0055337c
mov esp, ebp
pop ebp
ret 4
Function at 0x4a5930
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
add ecx, 0x4c
mov word [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ecx + 0x14], 8
jb 0x4a594e
mov ecx, dword [ecx]
push 0x6308d0
push ecx
lea eax, [ebp - 8]
push eax
call fcn.00555fb5
mov eax, dword [ebp - 8]
add esp, 0xc
test eax, eax
je 0x4a59a7
push eax
push 2
lea eax, [ebp - 4]
push 1
push eax
call fcn.005559fb
push dword [ebp - 8]
call fcn.005557bf
mov cl, byte [ebp - 4]
add esp, 0x14
mov al, byte [ebp - 3]
cmp cl, 0xff
jne 0x4a598f
cmp al, 0xfe
je 0x4a5998
cmp al, 0xff
jne 0x4a59a1
cmp cl, 0xfe
jne 0x4a59a1
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x4a59b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x8c], 1
jne 0x4a59e8
call fcn.004a5930
test al, al
jne 0x4a59e8
mov eax, dword [ebx]
test eax, eax
je 0x4a59e1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
mov ecx, edi
call fcn.004a68d0
cmp dword [edi + 0x60], 8
lea esi, [edi + 0x4c]
jb 0x4a59f5
mov eax, dword [esi]
jmp 0x4a59f7
mov eax, esi
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x4a5a8f
cmp dword [esi + 0x14], 8
jb 0x4a5a1f
mov esi, dword [esi]
push 0
push 0x80
push 1
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x4a5a4a
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x8c], 1
lea ecx, [ebp - 4]
push 0
push ecx
jne 0x4a5a78
push 2
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0xfeff
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
push 3
lea ecx, [ebp + 8]
mov word [ebp + 8], 0xbbef
push ecx
push eax
mov byte [ebp + 0xa], 0xbf
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a5aa0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f5d06
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x66d060]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a5b5d
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.004773a0
xor bl, bl
lea eax, [ebp - 0x234]
cmp dword [ebp - 0x220], 8
push 0
cmovae eax, dword [ebp - 0x234]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x4a5b39
cmp eax, 0xb7
je 0x4a5b39
cmp eax, 0x50
jne 0x4a5b3b
mov bl, 1
cmp dword [ebp - 0x220], 8
jb 0x4a5b52
push dword [ebp - 0x234]
call fcn.00496180
add esp, 4
test bl, bl
jne 0x4a5b5d
xor al, al
jmp 0x4a5c68
xor eax, eax
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], 0
mov word [ebp - 0x24c], ax
cmp word [ebp - 0x21c], ax
jne 0x4a5b87
xor ecx, ecx
jmp 0x4a5b9f
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a5b90
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00478000
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
cmp word [esi], ax
jne 0x4a5bdf
xor ecx, ecx
jmp 0x4a5bf3
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a5be4
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x234]
call fcn.00478000
lea edx, [ebp - 0x234]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24c]
call fcn.004adf90
mov byte [ebp - 4], 0
mov bl, al
cmp dword [ebp - 0x220], 8
jb 0x4a5c32
push dword [ebp - 0x234]
call fcn.00496180
add esp, 4
test bl, bl
je 0x4a5c4f
lea ecx, [edi + 0x4c]
lea eax, [ebp - 0x24c]
cmp ecx, eax
je 0x4a5c4d
push 0xffffffffffffffff
push 0
push eax
call fcn.00477ee0
mov bl, 1
cmp dword [ebp - 0x238], 8
jb 0x4a5c66
push dword [ebp - 0x24c]
call fcn.00496180
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0055337c
mov esp, ebp
pop ebp
ret 4

Function at 0x4a5e90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esi + 2]
mov edi, edi
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a5ea0
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
sar esi, 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
add esi, esi
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x68]
call esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 4
push 0x63090c
push dword [ebx + 0x68]
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a5f00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x4a5f10
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x68]
call esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 2
push 0x630908
push dword [ebx + 0x68]
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a68d0
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f5f00
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x66d060]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x66d060]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [esp + 0x24], 7
push 0xffffffffffffffff
push eax
lea esi, [edi + 0x4c]
mov dword [esp + 0x28], 0
push esi
lea ecx, [esp + 0x1c]
mov word [esp + 0x1c], ax
call fcn.00477ee0
lea ecx, [esp + 0x10]
mov dword [esp + 0x80], 0
call fcn.004ae040
xor eax, eax
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
lea ecx, [esp + 0x40]
mov byte [esp + 0x80], 1
call fcn.004addf0
lea eax, [esp + 0x40]
mov edx, 0x62fec4
push eax
lea ecx, [esp + 0x5c]
call fcn.00491140
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8c], 2
call fcn.00477e10
cmp dword [esp + 0x6c], 8
jb 0x4a69ab
push dword [esp + 0x58]
call fcn.00496180
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
lea edx, [esp + 0x28]
mov byte [esp + 0x80], 3
mov ecx, esi
call fcn.004ae2d0
lea edx, [esp + 0x28]
lea ecx, [esp + 0x10]
call fcn.004ae0d0
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x4a6a49
cmp dword [esi + 0x10], 0
je 0x4a6a49
cmp dword [esp + 0x20], 0
je 0x4a6a49
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
cmp dword [esi + 0x14], 8
jb 0x4a6a1f
mov esi, dword [esi]
push eax
push esi
call fcn.005e620d
add esp, 8
test eax, eax
jne 0x4a6a49
lea ecx, [edi + 0x98]
lea eax, [esp + 0x10]
cmp ecx, eax
je 0x4a6a45
push 0xffffffffffffffff
push 0
push eax
call fcn.00477ee0
mov bl, 1
jmp 0x4a6a4b
xor bl, bl
cmp dword [esp + 0x3c], 8
jb 0x4a6a5e
push dword [esp + 0x28]
call fcn.00496180
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
cmp dword [esp + 0x54], 8
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
jb 0x4a6a88
push dword [esp + 0x40]
call fcn.00496180
add esp, 4
xor eax, eax
mov dword [esp + 0x54], 7
cmp dword [esp + 0x24], 8
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
jb 0x4a6ab2
push dword [esp + 0x10]
call fcn.00496180
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0055337c
mov esp, ebp
pop ebp
ret