joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413480
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x595cb8]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
mov esi, ecx
xor edx, edx
push edi
mov eax, dword [esi]
cmp eax, 0x3f
jne 0x413519
cmp dword [esi + 4], edx
jbe 0x4134be
nop dword [eax]
mov al, byte [esi + edx + 8]
mov byte [esi + edx + 0x24], al
inc edx
cmp edx, dword [esi + 4]
jb 0x4134b0
xor ecx, ecx
cmp dword [esi + 0x1c], ecx
jbe 0x4134df
cmp edx, 0x20
jae 0x413626
mov eax, dword [esi + 0x20]
mov al, byte [ecx + eax]
inc ecx
mov byte [esi + edx + 0x24], al
inc edx
cmp ecx, dword [esi + 0x1c]
jb 0x4134c5
cmp edx, 0x20
jae 0x413626
mov ecx, 0x20
lea edi, [esi + 0x24]
sub ecx, edx
add edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.004f4566
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov dword [esp + 0x20], 0x6a09e667
bts ecx, eax
mov dword [esp + 0x24], 0xbb67ae85
cmp eax, 0x20
mov dword [esp + 0x28], 0x3c6ef372
xorps xmm0, xmm0
mov dword [esp + 0x2c], 0xa54ff53a
cmovae edx, ecx
mov dword [esp + 0x30], 0x510e527f
xor ecx, edx
mov dword [esp + 0x34], 0x9b05688c
cmp eax, 0x40
mov dword [esp + 0x38], 0x1f83d9ab
mov dword [esp + 0x3c], 0x5be0cd19
cmovae edx, ecx
movlpd qword [esp + 0x40], xmm0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
movlpd qword [esp + 0x18], xmm0
test edx, edx
jb 0x41361a
ja 0x4135a3
test ecx, ecx
je 0x41361a
mov ebx, dword [esp + 0x1c]
lea eax, [esi + 8]
mov edi, dword [esp + 0x18]
nop
push dword [esi + 4]
mov edx, eax
lea ecx, [esp + 0x24]
call fcn.0041ee40
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x24]
add esp, 4
push dword [esi + 0x1c]
call fcn.0041ee40
add esp, 4
lea edx, [esp + 0x8c]
lea ecx, [esp + 0x20]
push 8
call fcn.0041ee40
add esp, 4
xor eax, eax
nop word [eax + eax]
add byte [esp + eax + 0x8c], 1
jne 0x413600
inc eax
cmp eax, 8
jl 0x4135f0
add edi, 1
lea eax, [esi + 8]
adc ebx, 0
cmp ebx, dword [esp + 0x10]
jb 0x4135b0
ja 0x41361a
lea eax, [esi + 8]
cmp edi, dword [esp + 0x14]
jb 0x4135b0
lea edx, [esi + 0x24]
lea ecx, [esp + 0x20]
call fcn.0041eee0
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f4566
mov esp, ebp
pop ebp
ret
Function at 0x413df0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51d27c
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x595cb8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 0x38]
mov dword [esi + 0x30], vtable.CBuffer_unsigned_char_.0
call fcn.004f4577
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [esi + 4]
push dword [esi + 0xc]
mov dword [esi + 4], vtable.CObjectVector_class_NCrypto::NSevenZ::CKeyInfo_.0
push 0
call fcn.00413aa0
mov byte [ebp - 4], 1
lea ecx, [esi + 4]
push dword [esi + 0xc]
mov dword [esi + 4], vtable.CBaseRecordVector.0
push 0
call fcn.0041b1b0
push dword [esi + 0x10]
call fcn.004f4577
add esp, 4
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4147a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
lea edi, [ecx + 0x24]
cmp edi, esi
je 0x4147e8
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 4], 0
mov word [eax], cx
mov ecx, esi
push dword [edi + 4]
call fcn.00403e70
mov ecx, dword [edi]
mov edx, dword [esi]
nop dword [eax]
movzx eax, word [ecx]
lea edx, [edx + 2]
mov word [edx - 2], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4147d0
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ebx, dword [ebp + 8]
xor edx, edx
mov dword [ebp + 0xc], edx
cmp dword [ebx + 8], edx
jle 0x414895
lea ecx, [edx + 0x10]
nop dword [eax]
test edx, edx
jle 0x414869
mov ebx, dword [esi + 8]
mov edi, ebx
sub edi, dword [esi + 4]
dec edi
cmp edi, 1
jge 0x41484a
cmp ebx, 0x40
jle 0x414822
mov eax, ebx
cdq
sub eax, edx
mov edx, eax
sar edx, 1
jmp 0x41482d
cmp ebx, 8
mov edx, 4
cmovg edx, ecx
lea eax, [edx + edi]
mov ecx, 1
sub ecx, edi
cmp eax, 1
cmovge ecx, edx
add ecx, ebx
push ecx
mov ecx, esi
call fcn.00403e70
mov edx, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
mov ebx, 0x5c
mov eax, dword [esi]
mov word [eax + ecx*2], bx
inc dword [esi + 4]
xor edi, edi
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov ebx, dword [ebp + 8]
mov word [eax + ecx*2], di
mov eax, dword [ebx + 0xc]
mov ecx, esi
push dword [eax + edx*4]
call fcn.00409db0
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp + 0xc]
mov ecx, 0x10
inc edx
mov dword [ebp + 0xc], edx
cmp edx, dword [ebx + 8]
jl 0x414800
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4153e0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51e7d0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x595cb8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
cmp dword [ebp + 0xc], 3
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
ja 0x4155ab
cmp dword [esi + 0xa0], 0
je 0x41546a
mov ecx, dword [esi + 0x9c]
mov eax, dword [ecx + 0x18]
not eax
add dword [esi + 0xf0], eax
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], ecx
mov byte [esi + 0x90], 1
mov ecx, dword [esi + 0xa0]
test ecx, ecx
je 0x41546a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0xa0], 0
cmp dword [esi + 0x98], 0
je 0x415516
cmp byte [esi + 0x5c], 0
je 0x415488
cmp byte [esi + 0x7e], 0
je 0x415488
lea ecx, [esi + 0x70]
jmp 0x415498
mov eax, dword [esi + 0x10]
cmp byte [eax + 0x2c], 0
je 0x415496
lea ecx, [eax + 0x24]
jmp 0x415498
xor ecx, ecx
cmp byte [esi + 0x5b], 0
je 0x4154a9
cmp byte [esi + 0x7d], 0
je 0x4154a9
lea edi, [esi + 0x68]
jmp 0x4154ab
xor edi, edi
cmp byte [esi + 0x5a], 0
je 0x4154bc
cmp byte [esi + 0x7c], 0
je 0x4154bc
lea edx, [esi + 0x60]
jmp 0x4154be
xor edx, edx
mov eax, dword [esi + 0x94]
push ecx
push edi
push edx
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov ecx, dword [esi + 0x94]
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x88], eax
mov eax, dword [ecx + 0x14]
mov dword [esi + 0x8c], eax
mov byte [esi + 0x90], 1
call fcn.00411100
test eax, eax
jne 0x4155ca
mov ecx, dword [esi + 0x98]
test ecx, ecx
je 0x415516
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x98], 0
cmp byte [esi + 0x90], 0
jne 0x41552f
mov ecx, esi
call fcn.00414950
cmp byte [esi + 0x90], 0
je 0x415547
mov eax, dword [esi + 0x88]
add dword [esi + 0xe8], eax
mov eax, dword [esi + 0x8c]
adc dword [esi + 0xec], eax
cmp byte [esi + 0x80], 0
je 0x415560
add dword [esi + 0xd8], 1
adc dword [esi + 0xdc], 0
jmp 0x41556e
add dword [esi + 0xe0], 1
adc dword [esi + 0xe4], 0
cmp byte [esi + 0x59], 0
je 0x415586
cmp byte [esi + 0x7f], 0
je 0x415586
push dword [esi + 0x78]
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esi + 0x18]
movzx eax, byte [esi + 0x5d]
push eax
push dword [ebp + 0xc]
mov edx, dword [ecx]
push ecx
call dword [edx + 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
mov ecx, dword [esi + 0x98]
test ecx, ecx
je 0x4155c5
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x98], 0
mov eax, 0x80004005
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 0x4164f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51eb0a
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x595cb8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], vtable.ICryptoGetTextPassword.0
mov dword [esi + 8], vtable.ICompressProgressInfo.0
mov dword [esi + 0xc], 0
mov dword [esi], vtable.CArchiveExtractCallback.2.0
mov dword [esi + 4], vtable.CArchiveExtractCallback.1.0
mov dword [esi + 8], vtable.CArchiveExtractCallback.0
mov dword [esi + 0x18], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
push 3
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
call fcn.00403e70
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 3
push 3
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
call fcn.00403e70
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 4
push 3
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
call fcn.00403e70
mov word [esi + 0x5a], 0x101
mov byte [esi + 0x5c], 1
mov dword [esi + 0x98], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0
mov dword [esi + 0xb4], 4
mov dword [esi + 0xa4], vtable.CObjectVector_class_CStringBase_wchar_t__.0
mov byte [esi + 0xbb], 0
mov dword [esi + 0xbc], 0
push 0x38
mov byte [ebp - 4], 9
call fcn.004f457c
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
mov dword [edi + 4], 0
mov dword [edi], vtable.CLocalProgress.0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov word [edi + 0x30], 0x101
mov dword [esi + 0xd0], edi
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0xbc]
test ecx, ecx
je 0x4166a2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, esi
mov dword [esi + 0xbc], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41c130
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x41c144
xor al, al
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
pop esi
setne al
ret

Function at 0x41c8e0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor ecx, ecx
lea esi, [edi + 0x1c]
shr edi, 2
mov eax, edi
mov dword [ebp - 0xc], esi
shr eax, 1
add eax, 3
mov dword [ebx], eax
add ebx, 0x10
mov dword [ebp - 8], ebx
test edi, edi
je 0x41c91d
nop dword [eax]
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x41c910
cmp ecx, esi
jae 0x41c9fa
mov eax, ecx
sub eax, edi
lea esi, [ebx + eax*4]
mov dword [ebp + 8], esi
nop
xor edx, edx
mov ebx, dword [ebx + ecx*4 - 4]
mov eax, ecx
div edi
mov dword [ebp - 4], eax
test edx, edx
jne 0x41c993
movzx edx, bl
movzx esi, byte [edx + str.cw]
mov edx, ebx
shr edx, 0x18
shl esi, 8
movzx eax, byte [edx + str.cw]
or esi, eax
mov eax, ebx
shr eax, 0x10
movzx eax, al
shl esi, 8
shr ebx, 8
movzx eax, byte [eax + str.cw]
or esi, eax
movzx eax, bl
shl esi, 8
movzx ebx, byte [eax + str.cw]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x56a9e4]
xor ebx, eax
or ebx, esi
mov esi, dword [ebp + 8]
jmp 0x41c9e0
cmp edi, 6
jbe 0x41c9e0
cmp edx, 4
jne 0x41c9e0
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + str.cw]
or ebx, edx
mov eax, dword [esi]
add esi, 4
xor eax, ebx
mov dword [ebp + 8], esi
mov ebx, dword [ebp - 8]
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, dword [ebp - 0xc]
jb 0x41c930
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41d100
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov eax, dword [eax]
and eax, 7
cmp edx, 5
jae 0x41d120
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
add dword [ebp + 8], 5
add edx, 0xfffffffc
push ebx
or ebx, 0xffffffff
add edx, ecx
push esi
mov dword [ebp - 0xc], edx
lea esi, [edi + ecx]
mov dword [ebp - 8], esi
cmp esi, edx
jae 0x41d155
nop dword [eax + eax]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x41d14f
inc esi
cmp esi, edx
jb 0x41d140
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], esi
mov edi, esi
sub edi, ecx
mov ecx, edi
sub ecx, ebx
cmp esi, edx
jae 0x41d26c
cmp ecx, 3
jbe 0x41d194
xor eax, eax
mov cl, byte [esi + 4]
mov ebx, edi
mov dword [ebp - 0x14], ebx
test cl, cl
je 0x41d1d2
cmp cl, 0xff
je 0x41d1d2
mov edx, dword [ebp - 0xc]
and eax, 3
add eax, eax
mov ecx, 1
or eax, 1
add edi, ecx
mov ecx, dword [ebp - 4]
jmp 0x41d131
dec ecx
shl eax, cl
and eax, 7
je 0x41d16c
movzx ecx, byte [eax + 0x56aaf8]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x56aaf0], 0
mov cl, byte [edx + 4]
je 0x41d1bc
test cl, cl
je 0x41d1bc
cmp cl, 0xff
jne 0x41d16c
mov edx, dword [ebp - 0xc]
and eax, 3
mov ecx, dword [ebp - 4]
add eax, eax
mov ebx, edi
or eax, 1
inc edi
jmp 0x41d131
movzx edx, cl
movzx ecx, byte [esi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 8]
shl edx, 8
or edx, ecx
sub edx, edi
sub edx, esi
mov ebx, edx
test eax, eax
je 0x41d232
movzx edx, byte [eax + 0x56aaf8]
mov ecx, 0x18
shl edx, 3
sub ecx, edx
mov dword [ebp - 0x10], edx
mov edx, ebx
shr edx, cl
test dl, dl
je 0x41d21e
cmp dl, 0xff
jne 0x41d232
mov ecx, 0x20
mov edx, 1
sub ecx, dword [ebp - 0x10]
shl edx, cl
dec edx
xor edx, ebx
jmp 0x41d1f3
mov esi, dword [ebp - 8]
mov ecx, ebx
mov edx, dword [ebp - 0xc]
shr ecx, 0x18
and cl, 1
dec cl
mov byte [esi + 1], bl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
mov ebx, dword [ebp - 0x14]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
add edi, ecx
mov ecx, dword [ebp - 4]
jmp 0x41d131
pop esi
pop ebx
cmp ecx, 3
jbe 0x41d281
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 7
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41f360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41f379
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41f3b6
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x41f3b2
nop word [eax + eax]
cmp esi, edx
jae 0x41f3b6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x41f3a0
cmp esi, edx
jb 0x41f3bd
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x41f450
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, edx
mov ebx, ecx
mov eax, esi
shr eax, 0x1f
push edi
movd xmm0, esi
sub esp, 8
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x578550]
divsd xmm0, qword [0x578510]
movsd qword [ebp - 0xc], xmm0
fld qword [ebp - 0xc]
fstp qword [esp]
call fcn.0051c060
fstp qword [ebp - 0xc]
movsd xmm0, qword [ebp - 0xc]
add esp, 8
mulsd xmm0, qword [0x578518]
call fcn.0051ce01
mov dword [ebp - 8], eax
test ebx, ebx
je 0x41f58c
mov edi, dword [ebp + 8]
test edi, edi
je 0x41f58c
cmp eax, dword [ebp + 0xc]
ja 0x41f58c
xor ecx, ecx
test esi, esi
je 0x41f552
cmp ecx, esi
jae 0x41f4da
movzx edx, byte [ecx + ebx]
inc ecx
jmp 0x41f4dc
xor edx, edx
cmp ecx, esi
jae 0x41f4ea
movzx eax, byte [ecx + ebx]
inc ecx
mov dword [ebp - 4], eax
jmp 0x41f4f1
mov dword [ebp - 4], 0
cmp ecx, esi
jae 0x41f4fc
movzx eax, byte [ecx + ebx]
inc ecx
jmp 0x41f4fe
xor eax, eax
shl edx, 8
add edx, dword [ebp - 4]
shl edx, 8
add edx, eax
mov eax, edx
shr eax, 0x12
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_r]
mov byte [edi], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_r]
mov byte [edi + 1], al
mov eax, edx
shr eax, 6
and edx, 0x3f
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_r]
mov byte [edi + 2], al
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_r]
mov byte [edi + 3], al
add edi, 4
cmp ecx, esi
jb 0x41f4d3
mov edi, dword [ebp + 8]
mov eax, 0xaaaaaaab
mul esi
shr edx, 1
lea eax, [edx + edx*2]
mov edx, dword [ebp - 8]
sub esi, eax
mov ecx, dword [esi*4 + 0x56d1b4]
test ecx, ecx
jle 0x41f57e
lea eax, [edx - 1]
add eax, edi
mov byte [eax], 0x3d
lea eax, [eax - 1]
sub ecx, 1
jne 0x41f573
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov dword [eax], edx
mov al, 1
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4255e0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5201a8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x595cb8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov byte [ebp - 0xd], cl
mov dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edi, 0xffffffff
cmp eax, edi
je 0x425652
test al, 0x10
je 0x425652
push ecx
mov esi, esp
mov dword [ebp - 0x28], esi
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0041fb10
mov cl, byte [ebp - 0xd]
add eax, 0x10
mov edx, ebx
mov dword [esi], eax
call fcn.00424d70
add esp, 4
mov bl, al
jmp 0x425796
push str.Directory_does_not_exist:
lea ecx, [ebp - 0x1c]
call fcn.0041f870
push str.DeleteDirectory
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0041f910
mov byte [ebp - 4], 2
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x425689
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x28]
call fcn.00420f70
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
push ecx
mov edx, eax
lea ecx, [ebp - 0x24]
call fcn.00420f70
add esp, 8
mov esi, eax
push 0x56d330
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.0041f910
push 0
push esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004210a0
mov byte [ebp - 4], 5
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x425701
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, edi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42571f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, edi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42573d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
lea edx, [ebx - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x425758
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x425776
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x425794
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov bl, 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x4257b5
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 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
Function at 0x428300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520578
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x595cb8]
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 ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x42842e
cmp byte [ebx + 0x3d], 0
je 0x42842e
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x428359
xor al, al
jmp 0x428430
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00427e50
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4283bf
sub eax, 1
je 0x4283c3
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x428416
xor bl, bl
jmp 0x428418
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x4283f8
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.005010aa
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x4283bb
cmp byte [ebx + 0x3d], 0
je 0x428416
test esi, esi
jne 0x428381
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00427f20
jmp 0x42837e
mov bl, 1
cmp ecx, 0x10
jb 0x42842a
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004208e0
mov al, bl
jmp 0x428430
mov al, 1
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.004f4566
mov esp, ebp
pop ebp
ret

Function at 0x4287c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520016
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x595cb8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004f457c
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004f6354
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret