joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485060
Capabilities:
Hash data using sha1
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50864e
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x54c154]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x24], edi
xorps xmm0, xmm0
push 0
mov dword [ebp - 0x20], 0
push dword [eax]
movlpd qword [ebp - 0x18], xmm0
push 0x8004
push dword [edx]
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4850d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov esi, 0x54dd80
jmp 0x4850db
mov edx, dword [ebp - 0x18]
mov esi, 0x54dd00
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
mov dword [ebp - 4], 0
mov ecx, dword [esi + 4]
mov dword [ebp - 0x20], 1
cmp ecx, dword [0x54dd04]
jne 0x48511a
test edx, edx
jne 0x48511a
mov eax, edi
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.004a44cd
mov esp, ebp
pop ebp
ret
push esi
push edx
mov edx, str.CryptCreateHash_failed
lea ecx, [ebp - 0x38]
call fcn.00459e00
add esp, 8
lea eax, [ebp - 0x38]
push 0x549438
push eax
call fcn.004d7fa4
int3

Function at 0x4852b0
Capabilities:
Hash data via wincrypt

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push 0
push dword [edx + 4]
xorps xmm0, xmm0
push dword [edx]
movlpd qword [esp + 0x24], xmm0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4852e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x54dd80
jmp 0x4852ed
mov ecx, dword [esp + 0x18]
mov edx, 0x54dd00
mov eax, dword [edx + 4]
cmp eax, dword [0x54dd04]
jne 0x485300
test ecx, ecx
jne 0x485300
mov esp, ebp
pop ebp
ret
push edx
push ecx
mov edx, str.CryptHashData_failed
lea ecx, [esp + 0xc]
call fcn.00459e00
add esp, 8
lea eax, [esp + 4]
push 0x549438
push eax
call fcn.004d7fa4
int3
Function at 0x48c770
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5097e5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x54c154]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x10], ecx
push eax
mov ecx, esi
call fcn.0048c8f0
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], eax
test al, al
je 0x48c7dd
mov eax, dword [ebp - 0x20]
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
cmp dword [esi + 4], 0x4924924
je 0x48c879
mov ebx, dword [esi]
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
push 0x38
lfence
call fcn.004a4626
mov edi, eax
add esp, 4
mov dword [ebp - 0x24], edi
push dword [ebp - 0x10]
lea ecx, [edi + 0x10]
mov dword [ebp - 4], 1
call fcn.0040f4a0
mov edx, dword [ebp - 0x10]
push edi
push dword [ebp - 0x1c]
mov al, byte [edx + 0x18]
push dword [ebp - 0x20]
mov byte [edi + 0x28], al
mov ecx, dword [edx + 0x24]
mov eax, dword [edx + 0x20]
mov dword [edi + 0x34], ecx
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x30], eax
mov byte [edx + 0x18], 0
mov dword [edx + 0x20], 0
mov dword [edx + 0x24], 0
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov word [edi + 0xc], 0
call fcn.00423a80
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
call fcn.00421ad0
int3
Function at 0x4aa000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [0x5567e8]
mov eax, dword fs:[0x2c]
push ebx
push esi
mov esi, ecx
xor bl, bl
push edi
mov edi, dword [eax + edx*4]
mov dword [ebp - 8], esi
nop
mov eax, dword [0x556cb0]
cmp eax, dword [edi + 8]
jg 0x4aa10a
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x4aa04c
mov ecx, esi
call fcn.004bada0
test al, al
jne 0x4aa020
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4aa064
push eax
push ecx
push 1
push dword [ebp + 8]
call fcn.004e49e8
add esp, 0x10
jmp 0x4aa075
push dword [ebp + 8]
push 0x5138f0
push eax
call fcn.004c81c0
add esp, 0xc
cmp dword [0x556cac], 0
mov ecx, eax
jl 0x4aa0de
jg 0x4aa08b
cmp dword [0x556ca8], 0
jb 0x4aa0de
lea eax, [esi + 0x28]
mov dword [ebp + 0xc], eax
mov eax, ecx
mov esi, dword [ebp + 0xc]
cdq
mov ebx, eax
mov dword [ebp - 4], edx
mov dword [ebp + 8], ebx
nop
mov eax, dword [esi]
add ebx, eax
mov edi, dword [esi + 4]
mov edx, edi
mov ecx, dword [ebp - 4]
mov dword [ebp + 0xc], eax
adc ecx, edi
lock cmpxchg8b qword [esi]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp eax, ecx
jne 0x4aa0a0
cmp edx, edi
jne 0x4aa0a0
mov esi, dword [ebp - 8]
cmp edi, dword [0x556cac]
jl 0x4aa0dc
jg 0x4aa0d8
cmp ecx, dword [0x556ca8]
jb 0x4aa0dc
mov bl, 1
jmp 0x4aa0de
xor bl, bl
lea edx, [esi + 0x30]
mov eax, 1
lock xadd dword [edx], eax
inc eax
cmp eax, 1
jne 0x4aa0ff
xor ecx, ecx
xchg dword [edx], ecx
push dword [esi + 0x1c]
call fcn.004e423f
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x556cb0
call fcn.004a4a41
add esp, 4
cmp dword [0x556cb0], 0xffffffff
jne 0x4aa031
mov eax, dword [esi + 0x34]
push 0x556cb0
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [0x556ca8], ecx
mov dword [0x556cac], eax
call fcn.004a49f7
add esp, 4
jmp 0x4aa031
Function at 0x4aa150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [0x5567e8]
mov eax, dword fs:[0x2c]
push ebx
push esi
mov esi, ecx
xor bl, bl
push edi
mov edi, dword [eax + edx*4]
mov dword [ebp - 8], esi
nop
mov eax, dword [0x556cc0]
cmp eax, dword [edi + 8]
jg 0x4aa25a
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x4aa19c
mov ecx, esi
call fcn.004bada0
test al, al
jne 0x4aa170
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4aa1b4
push eax
push ecx
push 2
push dword [ebp + 8]
call fcn.004e49e8
add esp, 0x10
jmp 0x4aa1c5
push dword [ebp + 8]
push 0x520d4c
push eax
call fcn.004c81f0
add esp, 0xc
cmp dword [0x556cbc], 0
mov ecx, eax
jl 0x4aa22e
jg 0x4aa1db
cmp dword [0x556cb8], 0
jb 0x4aa22e
lea eax, [esi + 0x28]
mov dword [ebp + 0xc], eax
mov eax, ecx
mov esi, dword [ebp + 0xc]
cdq
mov ebx, eax
mov dword [ebp - 4], edx
mov dword [ebp + 8], ebx
nop
mov eax, dword [esi]
add ebx, eax
mov edi, dword [esi + 4]
mov edx, edi
mov ecx, dword [ebp - 4]
mov dword [ebp + 0xc], eax
adc ecx, edi
lock cmpxchg8b qword [esi]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp eax, ecx
jne 0x4aa1f0
cmp edx, edi
jne 0x4aa1f0
mov esi, dword [ebp - 8]
cmp edi, dword [0x556cbc]
jl 0x4aa22c
jg 0x4aa228
cmp ecx, dword [0x556cb8]
jb 0x4aa22c
mov bl, 1
jmp 0x4aa22e
xor bl, bl
lea edx, [esi + 0x30]
mov eax, 1
lock xadd dword [edx], eax
inc eax
cmp eax, 1
jne 0x4aa24f
xor ecx, ecx
xchg dword [edx], ecx
push dword [esi + 0x1c]
call fcn.004e423f
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x556cc0
call fcn.004a4a41
add esp, 4
cmp dword [0x556cc0], 0xffffffff
jne 0x4aa181
mov eax, dword [esi + 0x34]
push 0x556cc0
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [0x556cb8], ecx
mov dword [0x556cbc], eax
call fcn.004a49f7
add esp, 4
jmp 0x4aa181
Function at 0x4ac780
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b285
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x54c154]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x10], edx
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], ebx
cmp dword [ebx + 0x14], 8
mov ecx, dword [ebx + 0x10]
jb 0x4ac7c7
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
lea eax, [ecx + ecx]
mov esi, 0x811c9dc5
xor ecx, ecx
test eax, eax
je 0x4ac7f7
mov edx, dword [ebp - 0x14]
mov edi, eax
nop word [eax + eax]
movzx eax, byte [ecx + edx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x4ac7e0
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x10]
push esi
push ebx
lea eax, [ebp - 0x20]
mov ecx, edx
push eax
call fcn.004206d0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4ac814
mov byte [edi + 4], 0
jmp 0x4ac8ca
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0x7ffffff
je 0x4ac8e2
add eax, 4
mov dword [ebp - 0x18], eax
push 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.004a4626
add esp, 4
mov dword [ebp - 0x14], eax
add eax, 8
mov ecx, eax
mov dword [ebp - 0x24], eax
push ebx
call fcn.0040f220
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0x1c]
inc ecx
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x52f5d0]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x52f5d0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [ebx]
jbe 0x4ac8b7
mov ecx, ebx
call fcn.004be6a0
push esi
push dword [ebp - 0x24]
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.004206d0
mov ecx, dword [eax]
jmp 0x4ac8ba
mov ecx, dword [ebp - 0x20]
push dword [ebp - 0x14]
push ecx
push esi
mov ecx, ebx
call fcn.004be450
mov byte [edi + 4], 1
mov dword [edi], eax
mov eax, edi
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
push str.unordered_map_set_too_long
call fcn.0048fb76
int3

Function at 0x4ace50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, ecx
push ebx
push esi
push edi
cmp dword [edx + 0x14], 8
mov edi, edx
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], eax
jb 0x4ace6e
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add ebx, ebx
je 0x4ace94
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x4ace80
mov eax, dword [ebp - 4]
push esi
push edx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.004206d0
pop edi
pop esi
pop ebx
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x4aceb4
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4b2170
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x54c154]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x54], ebx
mov eax, dword [ecx]
mov dword [ebx], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
mov eax, dword [ecx]
mov dword [ebx + 8], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ebp + 0xc]
mov dword [ebx + 0xc], eax
cmp ecx, 1
jb 0x4b22ff
mov eax, 0x38
cmp ecx, eax
cmovbe eax, ecx
push eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x3c]
push edx
push eax
call fcn.004d7a30
movups xmm0, xmmword [0x54c188]
lea edi, [ebx + 0x10]
push 0x1000
movups xmmword [edi], xmm0
lea eax, [ebx + 0x58]
mov dword [ebp - 0x44], edi
movups xmm0, xmmword [0x54c198]
push 0x54c1d0
push eax
movups xmmword [edi + 0x10], xmm0
mov dword [ebp - 0x4c], eax
movups xmm0, xmmword [0x54c1a8]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [0x54c1b8]
movups xmmword [edi + 0x30], xmm0
movq xmm0, qword [0x54c1c8]
movq qword [edi + 0x40], xmm0
call fcn.004d7a30
add esp, 0x18
mov dword [ebp - 0x40], 0x12
lea ebx, [ebp - 0x3c]
xor esi, esi
nop word [eax + eax]
xor edx, edx
lea edi, [edx + 4]
movzx eax, byte [ebx]
lea ecx, [esi + 1]
shl edx, 8
inc ebx
or edx, eax
cmp ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x3c]
cmovne eax, ebx
xor esi, esi
cmp ecx, dword [ebp - 0x50]
mov ebx, eax
cmovne esi, ecx
sub edi, 1
jne 0x4b2235
mov edi, dword [ebp - 0x44]
xor dword [edi], edx
add edi, 4
sub dword [ebp - 0x40], 1
mov dword [ebp - 0x44], edi
jne 0x4b2230
mov ebx, dword [ebp - 0x54]
xor edi, edi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
lea esi, [ebx + 0x14]
lea eax, [ebp - 0x48]
mov ecx, ebx
push eax
call fcn.004b6f40
mov eax, dword [ebp - 0x48]
lea esi, [esi + 8]
mov dword [esi - 0xc], eax
add edi, 2
mov eax, dword [ebp - 0x44]
mov dword [esi - 8], eax
cmp edi, 0x12
jb 0x4b2280
mov dword [ebp - 0x40], 4
lea eax, [ebx + 0x58]
nop dword [eax]
xor edi, edi
mov esi, eax
lea eax, [ebp - 0x48]
mov ecx, ebx
push eax
call fcn.004b6f40
mov eax, dword [ebp - 0x48]
lea esi, [esi + 8]
mov dword [esi - 8], eax
add edi, 2
mov eax, dword [ebp - 0x44]
mov dword [esi - 4], eax
cmp edi, 0x100
jl 0x4b22b4
mov eax, dword [ebp - 0x4c]
add eax, 0x400
sub dword [ebp - 0x40], 1
mov dword [ebp - 0x4c], eax
jne 0x4b22b0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a44cd
mov esp, ebp
pop ebp
ret 0xc
push 0x548398
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], str.Incorrect_key_length
push eax
call fcn.004d7fa4
int3
Function at 0x4b7300
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x4b74d8
test bl, 7
jne 0x4b74d8
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
cmp eax, 1
jne 0x4b73cb
mov eax, dword [edi + 8]
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 0xc]
mov dword [ebp + 0x10], eax
cmp ebx, 8
jb 0x4b73c2
mov esi, dword [ebp + 8]
add esi, 0xfffffff9
shr ebx, 3
lea eax, [ebp - 8]
mov ecx, edi
push eax
lea eax, [esi + 7]
push eax
call fcn.004b44a0
mov eax, dword [ebp + 0xc]
mov ecx, edi
xor dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
xor dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
call fcn.004b6f40
mov edx, dword [ebp - 4]
lea esi, [esi + 8]
mov ecx, dword [ebp - 8]
mov eax, edx
shr eax, 8
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 4], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, ecx
shr eax, 8
mov byte [esi + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [esi], al
mov eax, ecx
shr eax, 0x18
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], edx
mov byte [esi + 6], dl
mov byte [esi + 2], cl
mov byte [esi - 1], al
sub ebx, 1
jne 0x4b7353
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 2
jne 0x4b7464
mov eax, dword [edi + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0xc], eax
cmp ebx, 8
jb 0x4b73c2
mov esi, dword [ebp + 8]
add esi, 0xfffffff9
shr ebx, 3
nop
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.004b6f40
lea eax, [ebp - 8]
mov ecx, edi
push eax
lea eax, [esi + 7]
push eax
call fcn.004b44a0
mov ecx, dword [ebp - 0xc]
lea esi, [esi + 8]
xor ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov eax, ecx
xor edx, dword [ebp - 8]
shr eax, 8
mov byte [esi + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 4], al
mov eax, edx
shr eax, 8
mov byte [esi + 1], al
mov eax, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
mov byte [esi + 6], cl
shr ecx, 0x18
mov byte [esi + 2], dl
shr eax, 0x10
shr edx, 0x18
mov byte [esi + 3], cl
mov byte [esi], al
mov byte [esi - 1], dl
sub ebx, 1
jne 0x4b73f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp ebx, 8
jb 0x4b73c2
mov esi, dword [ebp + 8]
add esi, 0xfffffff9
shr ebx, 3
lea eax, [ebp - 8]
mov ecx, edi
push eax
lea eax, [esi + 7]
push eax
call fcn.004b44a0
lea eax, [ebp - 8]
mov ecx, edi
push eax
call fcn.004b6f40
mov ecx, dword [ebp - 4]
lea esi, [esi + 8]
mov eax, ecx
mov byte [esi + 6], cl
shr eax, 8
mov byte [esi + 5], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [esi + 4], al
mov byte [esi + 3], cl
mov ecx, dword [ebp - 8]
mov eax, ecx
shr eax, 8
mov byte [esi + 1], al
mov eax, ecx
mov byte [esi + 2], cl
shr eax, 0x10
shr ecx, 0x18
mov byte [esi], al
mov byte [esi - 1], cl
sub ebx, 1
jne 0x4b7476
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x548398
lea eax, [ebp + 8]
mov dword [ebp + 8], str.Incorrect_buffer_length
push eax
call fcn.004d7fa4
int3
Function at 0x4bceb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x54c154]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
push edi
call ebx
test eax, eax
je 0x4bcfe4
cmp dword [ebp - 0xc], 4
jne 0x4bcfe4
cmp dword [esi + 0x14], 0x10
jb 0x4bcf01
mov esi, dword [esi]
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push esi
push edi
call ebx
test eax, eax
je 0x4bcf2d
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jne 0x4bcf2d
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a44cd
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xb8]
push eax
call fcn.004b9ca0
add esp, 4
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0x38], xmm0
movq xmm0, qword [eax + 0x20]
mov eax, dword [eax]
movq qword [ebp - 0x28], xmm0
cmp dword [eax], 0
je 0x4bd087
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp - 0x1c]
push 0x513e08
push eax
call fcn.004ae850
mov edi, eax
lea eax, [ebp - 0x90]
push str.WriteStringToFile
push eax
call fcn.004aeb60
mov esi, eax
lea eax, [ebp - 0x6c]
push 0x513e38
push eax
call fcn.004aea30
push esi
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.004a60c0
push edi
push eax
lea eax, [ebp - 0x14c]
push eax
call fcn.004a7e10
push dword [ebp - 0x20]
push dword [ebp - 0x10]
push ebx
push str.WriteFile_failed_0x_x__dw:_0x_x_size:_0x_x
push eax
push 0
call fcn.004bf3e0
add esp, 0x48
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a44cd
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xb8]
push eax
call fcn.004b9ca0
add esp, 4
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0x38], xmm0
movq xmm0, qword [eax + 0x20]
mov eax, dword [eax]
movq qword [ebp - 0x28], xmm0
cmp dword [eax], 0
je 0x4bd087
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x1c], 0x290028
lea eax, [ebp - 0x90]
mov dword [ebp - 0x18], 0x2d0020
push str.WriteStringToFile
push eax
mov dword [ebp - 0x14], 0x20
call fcn.004aeb60
mov esi, eax
lea eax, [ebp - 0x6c]
push 0x513e38
push eax
call fcn.004aea30
push esi
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.004a60c0
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea eax, [ebp - 0x14c]
push eax
call fcn.004a7e10
push ebx
push dword [ebp - 0x10]
push edi
push str.WriteFile_failed_0x_x__dw:_0x_x_size:_0x_x
push eax
push 0
call fcn.004bf3e0
add esp, 0x40
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a44cd
mov esp, ebp
pop ebp
ret
Function at 0x4bd0a0
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4bd14a
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x4bd0bd
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
mov dx, word [0x54c184]
cmp word [ecx + eax*2 - 2], dx
je 0x4bd0d9
movzx eax, dx
mov ecx, esi
push eax
call fcn.0040ee10
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bd0e0
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.0040eff0
mov ecx, dword [esi + 0x14]
mov edi, esi
cmp ecx, 8
jb 0x4bd104
mov edi, dword [esi]
mov eax, dword [esi + 0x10]
mov dx, word [0x54c184]
cmp word [edi + eax*2 - 2], dx
je 0x4bd123
movzx eax, dx
mov ecx, esi
push eax
call fcn.0040ee10
mov ecx, dword [esi + 0x14]
mov eax, esi
cmp ecx, 8
jb 0x4bd12c
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esi + 0x14], 8
jb 0x4bd13d
mov esi, dword [esi]
push 0x2000
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
pop edi
pop ebp
ret 8

Function at 0x4bd5a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50cc05
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x54c154]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword fs:[0x2c]
mov edx, dword [0x5567e8]
mov edx, dword [eax + edx*4]
mov eax, dword [0x556c30]
cmp eax, dword [edx + 8]
jg 0x4bd698
mov ecx, dword [0x556c2c]
test ecx, ecx
jl 0x4bd67d
mov esi, dword [0x556c28]
jg 0x4bd607
cmp esi, 2
jb 0x4bd67d
mov eax, dword [edi + 0x28]
cdq
sub eax, esi
sbb edx, ecx
sub eax, 1
sbb edx, 0
mov dword [ebp - 0x2c], edx
js 0x4bd67d
jg 0x4bd620
test eax, eax
jb 0x4bd67d
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [edi + 0x30]
call fcn.004b9290
mov esi, eax
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x30]
call fcn.004b94f0
push esi
push eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0046a470
lea ecx, [ebp - 0x48]
call fcn.00405a10
lea ecx, [ebp - 0x60]
call fcn.00405a10
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x28]
call fcn.00405a10
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.004a44cd
mov esp, ebp
pop ebp
ret
push 0x556c30
call fcn.004a4a41
add esp, 4
cmp dword [0x556c30], 0xffffffff
jne 0x4bd5ec
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x1c]
push 0x556c30
mov dword [0x556c28], eax
mov dword [0x556c2c], ecx
call fcn.004a49f7
add esp, 4
jmp 0x4bd5ec