joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f2d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
push 0x98
push 0
mov dword [ebp - 0x10], edi
lea eax, [edi + 0x110]
push eax
call fcn.0058ad30
mov eax, dword [edi + 0x30]
add esp, 0xc
add eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x40], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x14], 0
lea esi, [eax + ecx]
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov ecx, 0xc
shr edx, 3
imul eax, edx, 0x54
mov edx, esi
sub edx, eax
mov eax, dword [edi + 0x18]
cmp eax, ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x44], edx
cmovb ecx, eax
mov dword [edi + 8], edx
not ecx
lea eax, [edx + 0x600]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x20], ecx
lea ecx, [esi - 0xc]
mov dword [edi + 0x38], eax
xor eax, eax
mov dword [edi + 0x3c], ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [ecx + 4], edx
add edx, 2
mov dword [ecx], 0x1010100
mov dword [ecx + 8], 0
nop dword [eax]
mov byte [edx - 2], al
lea edx, [edx + 6]
xor ecx, ecx
mov byte [edx - 7], 1
inc eax
mov dword [edx - 6], ecx
cmp eax, 0x100
jb 0x45f370
xor ebx, ebx
lea eax, [edi + 0x9fc]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
mov esi, eax
xor edi, edi
lea eax, [ebx + 2]
mov dword [ebp - 0xc], eax
mov ebx, eax
movzx eax, word [edi + 0x5c1610]
xor edx, edx
div ebx
mov ecx, 0x4000
sub ecx, eax
xor eax, eax
movzx ecx, cx
nop dword [eax + eax]
mov word [esi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x45f3c0
add edi, 2
add esi, 2
cmp edi, 0x10
jb 0x45f3a1
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 8]
inc ebx
sub eax, 0xffffff80
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
cmp ebx, 0x80
jb 0x45f395
mov ebx, dword [ebp - 0x10]
mov esi, 0x50
lea edi, [ebx + 0x3bc]
nop dword [eax]
mov eax, edi
movzx edx, si
mov ecx, 0x10
nop word [eax + eax]
mov word [eax], dx
lea eax, [eax + 4]
mov word [eax - 2], 0x403
sub ecx, 1
jne 0x45f410
add esi, 0x28
add edi, 0x40
cmp esi, 0x438
jb 0x45f400
pop edi
pop esi
mov dword [ebx + 0x3b8], 0x40070000
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x461750
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
push 0x98
push 0
mov dword [ebp - 4], edi
lea eax, [edi + 0x100]
push eax
call fcn.0058ad30
push 0x98
lea eax, [edi + 0x198]
push 0
push eax
call fcn.0058ad30
mov eax, dword [edi + 0x30]
add esp, 0x18
add eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x40], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x14], 0
lea esi, [eax + ecx]
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov ecx, 0xc
shr edx, 3
imul eax, edx, 0x54
mov edx, esi
sub edx, eax
mov eax, dword [edi + 0x18]
cmp eax, ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x44], edx
cmovb ecx, eax
mov dword [edi + 8], edx
not ecx
lea eax, [edx + 0x600]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x20], ecx
lea ecx, [esi - 0xc]
mov dword [edi + 0x38], eax
xor eax, eax
mov dword [edi + 0x3c], ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [ecx + 4], edx
add edx, 2
mov dword [ecx], 0x10100ff
mov dword [ecx + 8], 0
nop
mov byte [edx - 2], al
lea edx, [edx + 6]
xor ecx, ecx
mov byte [edx - 7], 1
inc eax
mov dword [edx - 6], ecx
cmp eax, 0x100
jb 0x461800
xor edx, edx
lea esi, [edi + 0x1048]
xor ebx, ebx
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], esi
nop word [eax + eax]
lea ecx, [edi + 0x330]
add ecx, ebx
movzx eax, byte [ecx]
cmp eax, edx
jne 0x46184f
nop
movzx eax, byte [ecx + 1]
lea ecx, [ecx + 1]
inc ebx
cmp eax, edx
je 0x461840
mov dword [ebp - 0x10], ebx
lea eax, [ebx + 1]
xor edi, edi
mov dword [ebp - 0x14], eax
mov ebx, eax
nop dword [eax]
movzx eax, word [edi + 0x5c1620]
xor edx, edx
div ebx
mov ecx, 0x4000
sub ecx, eax
xor eax, eax
movzx ecx, cx
nop word [eax + eax]
mov word [esi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x461880
add edi, 2
add esi, 2
cmp edi, 0x10
jb 0x461860
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
inc edx
mov ebx, dword [ebp - 0x10]
sub esi, 0xffffff80
mov edi, dword [ebp - 4]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], esi
cmp edx, 0x19
jb 0x461830
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [ebp - 0x10], 0x18
lea edi, [edx + 3]
lea ebx, [eax + 0x448]
nop dword [eax + eax]
lea ecx, [eax + 0x333]
movzx eax, byte [ecx + edx]
add ecx, edx
cmp eax, edi
jne 0x4618ec
movzx eax, byte [ecx + 1]
lea ecx, [ecx + 1]
inc edx
cmp eax, edi
je 0x4618e0
mov eax, edx
mov ecx, ebx
shl eax, 4
mov esi, 0x20
add eax, 0x28
movzx eax, ax
nop
mov word [ecx], ax
lea ecx, [ecx + 4]
mov word [ecx - 2], 0x703
sub esi, 1
jne 0x461900
mov eax, dword [ebp - 4]
inc edi
sub ebx, 0xffffff80
sub dword [ebp - 0x10], 1
jne 0x4618d0
pop edi
pop esi
pop ebx
mov dword [eax + 0x444], 0x40070000
mov esp, ebp
pop ebp
ret

Function at 0x463800
Capabilities:
Hash data using sha1

Disassembly:
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x67452301
mov dword [ecx + 0x24], 0xefcdab89
mov dword [ecx + 0x28], 0x98badcfe
mov dword [ecx + 0x2c], 0x10325476
mov dword [ecx + 0x30], 0xc3d2e1f0
ret
Function at 0x464230
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
push edi
mov edi, dword [esi + 8]
and edi, 0x3f
mov byte [edi + esi + 0x40], 0x80
inc edi
cmp edi, 0x38
jbe 0x46427c
cmp edi, 0x40
je 0x46426a
mov eax, 0x40
lea ecx, [esi + 0x40]
sub eax, edi
add ecx, edi
push eax
push 0
push ecx
call fcn.0058ad30
add esp, 0xc
mov eax, dword [esi]
lea ebx, [esi + 0x20]
lea edx, [esi + 0x40]
mov ecx, ebx
push 1
call eax
xor edi, edi
jmp 0x46427f
lea ebx, [esi + 0x20]
mov eax, 0x38
sub eax, edi
push eax
lea eax, [esi + 0x40]
add eax, edi
push 0
push eax
call fcn.0058ad30
mov ecx, dword [esi + 8]
lea edx, [esi + 0x40]
mov eax, dword [esi + 0xc]
add esp, 0xc
shld eax, ecx, 3
shl ecx, 3
bswap eax
bswap ecx
mov dword [esi + 0x78], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], ecx
mov ecx, ebx
push 1
call eax
mov eax, dword [ebx]
mov ecx, dword [ebp - 4]
bswap eax
pop edi
mov dword [ecx], eax
mov eax, dword [esi + 0x24]
bswap eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x28]
bswap eax
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x2c]
bswap eax
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x30]
bswap eax
mov dword [ecx + 0x10], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x24], 0xefcdab89
mov dword [esi + 0x28], 0x98badcfe
mov dword [esi + 0x2c], 0x10325476
mov dword [esi + 0x30], 0xc3d2e1f0
pop esi
mov dword [ebx], 0x67452301
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x464c60
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
mov edx, dword [esi + 8]
and edx, 0x3f
mov byte [edx + esi + 0x40], 0x80
inc edx
cmp edx, 0x38
jbe 0x464ca7
cmp edx, 0x40
je 0x464c95
mov eax, 0x40
lea ecx, [esi + 0x40]
sub eax, edx
add ecx, edx
push eax
push 0
push ecx
call fcn.0058ad30
add esp, 0xc
mov eax, dword [esi]
lea ebx, [esi + 0x20]
lea edx, [esi + 0x40]
mov ecx, ebx
push 1
call eax
xor edx, edx
jmp 0x464caa
lea ebx, [esi + 0x20]
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call fcn.0058ad30
mov ecx, dword [esi + 8]
lea edx, [esi + 0x40]
mov eax, dword [esi + 0xc]
add esp, 0xc
shld eax, ecx, 3
shl ecx, 3
bswap eax
bswap ecx
mov dword [esi + 0x78], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], ecx
mov ecx, ebx
push 1
call eax
mov edx, ebx
mov ebx, 4
nop dword [eax + eax]
mov ecx, dword [edx + 4]
lea edi, [edi + 8]
mov eax, dword [edx]
lea edx, [edx + 8]
bswap eax
mov dword [edi - 8], eax
bswap ecx
mov dword [edi - 4], ecx
sub ebx, 1
jne 0x464cf0
pop edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebx
ret
Function at 0x465ba0
Capabilities:
Hash data using sha256

Disassembly:
mov dword [ecx], edx
sub edx, 1
je 0x465c07
sub edx, 3
je 0x465bf8
sub edx, 6
jne 0x465c0e
mov eax, dword [0x5faba4]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], edx
mov dword [ecx + 0x30], 0x6a09e667
mov dword [ecx + 0x34], 0xbb67ae85
mov dword [ecx + 0x38], 0x3c6ef372
mov dword [ecx + 0x3c], 0xa54ff53a
mov dword [ecx + 0x40], 0x510e527f
mov dword [ecx + 0x44], 0x9b05688c
mov dword [ecx + 0x48], 0x1f83d9ab
mov dword [ecx + 0x4c], 0x5be0cd19
ret
mov dword [ecx + 8], 0xffffffff
mov dword [ecx + 0xc], 0xffffffff
ret
mov dword [ecx + 4], 0xffffffff
ret

Function at 0x465ca0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, edx
mov dword [esp + 0xc], ecx
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x465cec
nop dword [eax]
test cl, 3
je 0x465ce8
movzx eax, byte [ecx]
inc ecx
xor eax, edi
shrd edi, edx, 8
movzx eax, al
shr edx, 8
xor edi, dword [eax*8 + 0x605340]
xor edx, dword [eax*8 + 0x605344]
sub esi, 1
jne 0x465cc0
mov dword [esp + 0x10], ecx
lea eax, [ecx + esi]
mov ebx, eax
mov dword [esp + 0x1c], ebx
cmp esi, 0xc
jb 0x465e24
sub eax, 0xc
mov dword [esp + 0x18], eax
xor edx, dword [ecx + 4]
mov eax, dword [ecx]
mov ebx, edx
xor eax, edi
mov ecx, dword [ecx + 8]
mov dword [esp + 0x14], eax
mov eax, ecx
shr eax, 0x10
movzx edx, al
mov eax, ecx
shr eax, 8
movzx eax, al
mov esi, dword [esp + 0x14]
mov edi, dword [edx*8 + 0x605b40]
mov edx, dword [edx*8 + 0x605b44]
xor edi, dword [eax*8 + 0x606340]
xor edx, dword [eax*8 + 0x606344]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor edi, dword [eax*8 + 0x607b40]
xor edx, dword [eax*8 + 0x607b44]
mov eax, ebx
shr eax, 8
movzx eax, al
xor edi, dword [eax*8 + 0x608340]
xor edx, dword [eax*8 + 0x608344]
mov eax, esi
shr eax, 0x10
movzx eax, al
xor edi, dword [eax*8 + 0x609b40]
xor edx, dword [eax*8 + 0x609b44]
mov eax, esi
shr eax, 8
movzx eax, al
xor edi, dword [eax*8 + 0x60a340]
xor edx, dword [eax*8 + 0x60a344]
mov eax, ecx
shr eax, 0x18
xor edi, dword [eax*8 + 0x605340]
xor edx, dword [eax*8 + 0x605344]
mov eax, ebx
shr eax, 0x18
xor edi, dword [eax*8 + 0x607340]
xor edx, dword [eax*8 + 0x607344]
mov eax, esi
shr eax, 0x18
xor edi, dword [eax*8 + 0x609340]
xor edx, dword [eax*8 + 0x609344]
movzx eax, cl
mov ecx, dword [esp + 0x10]
add ecx, 0xc
mov dword [esp + 0x10], ecx
xor edi, dword [eax*8 + 0x606b40]
xor edx, dword [eax*8 + 0x606b44]
movzx eax, bl
xor edi, dword [eax*8 + 0x608b40]
xor edx, dword [eax*8 + 0x608b44]
mov eax, esi
movzx eax, al
xor edi, dword [eax*8 + 0x60ab40]
xor edx, dword [eax*8 + 0x60ab44]
cmp ecx, dword [esp + 0x18]
jbe 0x465d05
mov ebx, dword [esp + 0x1c]
cmp ecx, ebx
jae 0x465e5a
nop dword [eax + eax]
movzx eax, byte [ecx]
xor eax, edi
shrd edi, edx, 8
movzx ecx, al
shr edx, 8
xor edi, dword [ecx*8 + 0x605340]
xor edx, dword [ecx*8 + 0x605344]
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, ebx
jb 0x465e30
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x46e1c0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x20], 0x67452301
mov dword [eax + 0x24], 0xefcdab89
mov dword [eax + 0x28], 0x98badcfe
mov dword [eax + 0x2c], 0x10325476
mov dword [eax + 0x30], 0xc3d2e1f0
pop ebp
ret 4

Function at 0x46e3f0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x20], 0x6a09e667
mov dword [eax + 0x24], 0xbb67ae85
mov dword [eax + 0x28], 0x3c6ef372
mov dword [eax + 0x2c], 0xa54ff53a
mov dword [eax + 0x30], 0x510e527f
mov dword [eax + 0x34], 0x9b05688c
mov dword [eax + 0x38], 0x1f83d9ab
mov dword [eax + 0x3c], 0x5be0cd19
pop ebp
ret 4

Function at 0x46f2b0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab47d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5fa040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
call fcn.00470f70
mov edi, eax
cmp edi, 1
je 0x46f310
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x46f308
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x46f3aa
push 8
call fcn.0058813f
xor ecx, ecx
mov dword [ebp - 0x18], eax
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 3
mov word [eax], cx
mov dword [ebp - 4], ecx
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.00471040
test al, al
je 0x46f39f
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x46f359
cmp edi, 1
jne 0x46f39f
push esi
lea ecx, [ebp - 0x18]
call fcn.0046d0a0
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
xor eax, eax
test ecx, ecx
je 0x46f375
lea edx, [eax + 0x5c]
cmp word [edi + eax*2], 0x2f
jne 0x46f370
mov word [edi + eax*2], dx
inc eax
cmp eax, ecx
jb 0x46f365
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
mov esi, eax
call fcn.00588148
add esp, 4
test esi, esi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x18]
call fcn.00588148
add esp, 4
xor al, al
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 0x46f3c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac76d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5fa040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00470f70
mov edi, eax
cmp edi, 1
je 0x46f42e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x46f415
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x46f4c8
test edi, edi
je 0x46f4c8
push 8
call fcn.0058813f
xor ecx, ecx
mov dword [ebp - 0x18], eax
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 3
mov word [eax], cx
mov dword [ebp - 4], ecx
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.00471040
test al, al
je 0x46f4bd
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x46f477
cmp edi, 1
jne 0x46f4bd
push esi
lea ecx, [ebp - 0x18]
call fcn.0046d0a0
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
xor eax, eax
test ecx, ecx
je 0x46f493
lea edx, [eax + 0x5c]
cmp word [edi + eax*2], 0x2f
jne 0x46f48e
mov word [edi + eax*2], dx
inc eax
cmp eax, ecx
jb 0x46f483
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
mov esi, eax
call fcn.00588148
add esp, 4
test esi, esi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x18]
call fcn.00588148
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46f570
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac76d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5fa040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00470080
cmp eax, 0xffffffff
je 0x46f5c1
mov edx, eax
and dl, 0x11
cmp dl, 1
jne 0x46f5c1
and eax, 0xfffffffe
mov ecx, esi
mov edx, eax
call fcn.0046f2b0
test al, al
je 0x46f693
mov ecx, esi
call fcn.00470f70
mov edi, eax
cmp edi, 1
je 0x46f5f5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x46f5ed
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x46f693
push 8
call fcn.0058813f
xor ecx, ecx
mov dword [ebp - 0x18], eax
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 3
mov word [eax], cx
mov dword [ebp - 4], ecx
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.00471040
test al, al
je 0x46f688
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x46f63e
cmp edi, 1
jne 0x46f688
push esi
lea ecx, [ebp - 0x18]
call fcn.0046d0a0
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
xor eax, eax
test ecx, ecx
je 0x46f660
lea edx, [eax + 0x5c]
nop word [eax + eax]
cmp word [edi + eax*2], 0x2f
jne 0x46f65b
mov word [edi + eax*2], dx
inc eax
cmp eax, ecx
jb 0x46f650
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
mov esi, eax
call fcn.00588148
add esp, 4
test esi, esi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x18]
call fcn.00588148
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46f6d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac7a0
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x5fa040]
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
mov eax, dword [ebx]
xor ecx, ecx
mov dword [ebx + 4], 0
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x23c], ax
lea eax, [ebp - 0x23c]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test edi, edi
je 0x46f840
cmp edi, 0x114
jae 0x46f7ac
xor eax, eax
xor edi, edi
mov word [ebp - 0x14], ax
cmp word [ebp - 0x23c], ax
je 0x46f75b
nop dword [eax]
inc edi
cmp word [ebp + edi*2 - 0x23c], ax
jne 0x46f750
cmp edi, dword [ebx + 8]
jbe 0x46f789
mov ecx, 2
lea eax, [edi + 1]
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0058813f
push dword [ebx]
mov esi, eax
call fcn.00588148
add esp, 8
mov dword [ebx], esi
mov dword [ebx + 8], edi
lea eax, [edi*2 + 2]
mov dword [ebx + 4], edi
push eax
lea eax, [ebp - 0x23c]
push eax
push dword [ebx]
call fcn.0058aed0
add esp, 0xc
mov al, 1
jmp 0x46f842
push 8
call fcn.0058813f
xor ecx, ecx
mov dword [ebp - 0x248], eax
add esp, 4
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 3
mov word [eax], cx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x248]
push edi
call fcn.0046cd40
mov esi, dword [ebp - 0x248]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x46f837
xor eax, eax
mov word [esi + edi*2], ax
cmp word [esi], ax
je 0x46f80b
inc eax
cmp word [esi + eax*2], 0
jne 0x46f803
mov dword [ebp - 0x244], eax
cmp eax, ecx
jne 0x46f837
lea eax, [edi - 1]
cmp eax, ecx
jne 0x46f837
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.0046d120
push esi
call fcn.00588148
add esp, 4
mov al, 1
jmp 0x46f842
push esi
call fcn.00588148
add esp, 4
xor al, al
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.00587d99
mov esp, ebp
pop ebp
ret
Function at 0x46f860
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5fa040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov ebx, ecx
push edi
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x230]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor edi, edi
mov esi, eax
mov dword [ebp - 0x234], esi
cmp word [ebp - 0x230], di
je 0x46f8bc
nop word [eax + eax]
inc edi
cmp word [ebp + edi*2 - 0x230], 0
jne 0x46f8b0
cmp edi, dword [ebx + 8]
jbe 0x46f8f0
mov ecx, 2
lea eax, [edi + 1]
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0058813f
push dword [ebx]
mov esi, eax
call fcn.00588148
mov dword [ebx], esi
add esp, 8
mov esi, dword [ebp - 0x234]
mov dword [ebx + 8], edi
lea eax, [edi*2 + 2]
mov dword [ebx + 4], edi
push eax
lea eax, [ebp - 0x230]
push eax
push dword [ebx]
call fcn.0058aed0
mov ecx, dword [ebx + 4]
add esp, 0xc
test ecx, ecx
je 0x46f948
mov eax, dword [ebx]
movzx eax, word [eax + ecx*2 - 2]
cmp eax, 0x5c
je 0x46f948
cmp eax, 0x2f
je 0x46f948
cmp dword [ebx + 8], ecx
jne 0x46f930
mov ecx, ebx
call fcn.0046cdb0
mov ecx, dword [ebx + 4]
mov edx, 0x5c
mov eax, dword [ebx]
mov word [eax + ecx*2], dx
inc ecx
xor edx, edx
mov word [eax + ecx*2], dx
mov dword [ebx + 4], ecx
test esi, esi
je 0x46f967
cmp esi, 0x114
jae 0x46f967
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00587d99
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00587d99
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac76d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5fa040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00470f70
mov edi, eax
cmp edi, 1
je 0x4700cd
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x470165
test edi, edi
je 0x470162
push 8
call fcn.0058813f
xor ecx, ecx
mov dword [ebp - 0x18], eax
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 3
mov word [eax], cx
mov dword [ebp - 4], ecx
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.00471040
test al, al
je 0x470157
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x470116
cmp edi, 1
jne 0x470157
push esi
lea ecx, [ebp - 0x18]
call fcn.0046d0a0
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
xor eax, eax
test ecx, ecx
je 0x470132
lea edx, [eax + 0x5c]
cmp word [edi + eax*2], 0x2f
jne 0x47012d
mov word [edi + eax*2], dx
inc eax
cmp eax, ecx
jb 0x470122
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
mov esi, eax
call fcn.00588148
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x18]
call fcn.00588148
add esp, 4
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret