joyce8/EMBER2024-capa huggingface dataset:
Function at 0x469730
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1210
call fcn.004ebbf0
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x120c], eax
mov eax, dword [esp + 0x1214]
lea ecx, [esp + 0x20c]
push 0x800
push ecx
push eax
call fcn.00478310
push 0x105
lea eax, [esp + 4]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x469834
mov ecx, 0x50fab0
lea eax, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4697ba
test dx, dx
je 0x4697b6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4697ba
add eax, 4
add ecx, 4
test dx, dx
jne 0x469794
xor eax, eax
jmp 0x4697bf
sbb eax, eax
or eax, 1
test eax, eax
je 0x469818
mov ecx, 0x50fab8
lea eax, [esp]
jmp 0x4697d0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4697f6
test dx, dx
je 0x4697f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4697f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4697d0
xor eax, eax
jmp 0x4697fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x469818
xor eax, eax
mov ecx, dword [esp + 0x120c]
xor ecx, esp
call fcn.004ebbd8
add esp, 0x1210
ret 4
mov eax, 1
mov ecx, dword [esp + 0x120c]
xor ecx, esp
call fcn.004ebbd8
add esp, 0x1210
ret 4
mov ecx, dword [esp + 0x120c]
xor al, al
xor ecx, esp
call fcn.004ebbd8
add esp, 0x1210
ret 4

Function at 0x469860
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1004
call fcn.004ebbf0
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
lea ecx, [esp]
push 0x800
push ecx
push eax
call fcn.00478310
movzx eax, word [esp]
lea ecx, [esp]
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x4698c5
cmp eax, 5
je 0x4698c5
xor al, al
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.004ebbd8
add esp, 0x1004
ret 4
mov ecx, dword [esp + 0x1000]
mov al, 1
xor ecx, esp
call fcn.004ebbd8
add esp, 0x1004
ret 4
Function at 0x4698f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x1004
call fcn.004ebbf0
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
mov esi, dword [esp + 0x100c]
push esi
call fcn.00478e80
movzx eax, word [eax]
cmp eax, 0x2e
je 0x469930
cmp eax, 0x20
je 0x469930
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x469985
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4699b6
push 0x800
lea eax, [esp + 8]
push eax
push esi
call fcn.004785a0
test al, al
je 0x469960
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4699b6
push 0x800
lea eax, [esp + 8]
push eax
push esi
call fcn.004785a0
test al, al
je 0x4699b6
push 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4699b6
cmp byte [esp + 0x1010], 0
je 0x46999c
push dword [esp + 0x1014]
push esi
call fcn.00469f40
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.004ebbd8
add esp, 0x1004
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4699cb
cmp eax, 3
mov eax, 1
jne 0x4699d0
mov eax, 2
mov ecx, dword [esp + 0x1004]
pop esi
xor ecx, esp
call fcn.004ebbd8
add esp, 0x1004
ret 0xc

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

Disassembly:
mov eax, 0x1070
call fcn.004ebbf0
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x106c], eax
push ebx
mov ebx, dword [esp + 0x1078]
push ebp
push esi
mov esi, ebx
push edi
lea ecx, [esi + 2]
jmp 0x469a20
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x469a20
sub esi, ecx
mov dword [esp + 0x10], 0
lea ecx, [esp + 0x10]
sar esi, 1
mov dword [esp + 0x14], 0
call fcn.0048fd80
lea ecx, [esp + 0x10]
call fcn.0048fbd0
lea ecx, [esp + 0x10]
mov ebp, eax
call fcn.0048f9d0
mov ecx, eax
mov eax, ebp
shr eax, 0xa
xor ecx, eax
xor ebp, ecx
xor edi, edi
lea esp, [esp]
mov ecx, ebp
cmp edi, 0x64
ja 0x469a89
mov eax, 0x10624dd3
mul ebp
shr edx, 6
imul eax, edx, 0x3e8
sub ecx, eax
push ecx
push edi
push str._u._03u
lea eax, [esp + 0x24]
push 0x32
push eax
call fcn.004028e0
lea ecx, [esp + 0x2c]
add esp, 0x14
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x469aa6
sub ecx, edx
sar ecx, 1
lea eax, [ecx + esi]
cmp eax, dword [esp + 0x1088]
jae 0x469b2d
cmp edi, 0x3e8
je 0x469b2d
lea eax, [esp + 0x18]
mov edx, eax
lea ecx, [esi + esi]
sub ecx, edx
lea edx, [ecx + ebx]
jmp 0x469ae0
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x469ae0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x469b23
push 0x800
lea eax, [esp + 0x80]
push eax
push ebx
call fcn.004785a0
test al, al
je 0x469b29
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x469b29
inc edi
jmp 0x469a70
mov eax, ebx
jmp 0x469b2f
xor eax, eax
mov ecx, dword [esp + 0x107c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ebbd8
add esp, 0x1070
ret 8
Function at 0x469b50
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x1004
call fcn.004ebbf0
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x1000], eax
push edi
mov edi, dword [esp + 0x100c]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x469b9e
push 0x800
lea eax, [esp + 8]
push eax
push edi
call fcn.004785a0
test al, al
je 0x469b9e
push 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 0x1004]
pop edi
xor ecx, esp
call fcn.004ebbd8
add esp, 0x1004
ret 4

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

Disassembly:
mov eax, 0x106c
call fcn.004ebbf0
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x1068], eax
mov eax, dword [esp + 0x1070]
push ebx
push ebp
mov ebp, dword [esp + 0x1080]
push esi
push edi
mov edi, dword [esp + 0x1084]
push ebp
push eax
push edi
mov dword [esp + 0x1c], eax
call fcn.0048e710
mov eax, dword [str.temp]
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x14], eax
mov eax, dword [0x50fae4]
mov dword [esp + 0x18], eax
mov ax, word [0x50fae8]
mov word [esp + 0x1c], ax
push 0x2e
lea eax, [esp + 0x20]
push eax
lea eax, [esi + 0x3e8]
push 0
push eax
call fcn.0048e4f0
push ebp
lea eax, [esp + 0x18]
push eax
push edi
call fcn.00478fb0
push edi
call ebx
cmp eax, 0xffffffff
jne 0x469c6b
push 0x800
lea eax, [esp + 0x7c]
push eax
push edi
call fcn.004785a0
test al, al
je 0x469c74
lea eax, [esp + 0x78]
push eax
call ebx
cmp eax, 0xffffffff
je 0x469c74
inc esi
cmp esi, 0x3e8
jb 0x469c22
push edi
push dword [esp + 0x14]
call fcn.00469ca0
mov ecx, dword [esp + 0x1078]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ebbd8
add esp, 0x106c
ret 0xc

Function at 0x469ca0
Capabilities:
Move file

Disassembly:
mov eax, 0x2004
call fcn.004ebbf0
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x2000], eax
push ebx
push esi
mov esi, dword [esp + 0x2014]
push edi
mov edi, dword [esp + 0x2014]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
test bl, bl
jne 0x469d1f
push 0x800
lea eax, [esp + 0x1010]
push eax
push edi
call fcn.004785a0
test al, al
je 0x469d1f
push 0x800
lea eax, [esp + 0x10]
push eax
push esi
call fcn.004785a0
test al, al
je 0x469d1f
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
jmp 0x469d21
mov al, bl
mov ecx, dword [esp + 0x200c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ebbd8
add esp, 0x2004
ret 8
Function at 0x469d40
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x1028
call fcn.004ebbf0
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x1024], eax
mov ecx, dword [esp + 0x1038]
push ebx
push ebp
mov ebp, dword [esp + 0x103c]
push esi
mov esi, dword [esp + 0x1038]
push edi
mov edi, dword [esp + 0x1040]
mov dword [esp + 0x18], ecx
test edi, edi
je 0x469d8c
mov eax, dword [edi]
or eax, dword [edi + 4]
mov byte [esp + 0x10], 1
jne 0x469d91
mov byte [esp + 0x10], 0
test ebp, ebp
je 0x469da2
mov eax, dword [ebp]
or eax, dword [ebp + 4]
mov byte [esp + 0x12], 1
jne 0x469da7
mov byte [esp + 0x12], 0
test ecx, ecx
je 0x469db7
mov eax, dword [ecx]
or eax, dword [ecx + 4]
mov byte [esp + 0x11], 1
jne 0x469dbc
mov byte [esp + 0x11], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x469df0
push 0x800
lea eax, [esp + 0x38]
push eax
push esi
call fcn.004785a0
test al, al
je 0x469e2a
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x469e2a
test bl, 1
je 0x469e2a
push 0
push esi
mov byte [esp + 0x1b], 1
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x469e2f
push 0x800
lea eax, [esp + 0x38]
push eax
push esi
call fcn.004785a0
test al, al
je 0x469e2f
push 0
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x469e2f
mov byte [esp + 0x13], 0
push 0
push 0x2000000
push 3
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x469e93
push 0x800
lea eax, [esp + 0x38]
push eax
push esi
call fcn.004785a0
test al, al
je 0x469f1e
push 0
push 0x2000000
push 3
push 0
push 3
push 0x40000000
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x469f1e
cmp byte [esp + 0x10], 0
je 0x469ea6
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.0048fc00
cmp byte [esp + 0x12], 0
je 0x469eb9
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
call fcn.0048fc00
cmp byte [esp + 0x11], 0
je 0x469ece
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
call fcn.0048fc00
movzx eax, byte [esp + 0x10]
lea ecx, [esp + 0x1c]
neg eax
mov edi, dword [esp + 0x14]
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x24]
push eax
movzx eax, byte [esp + 0x15]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x30]
push eax
movzx eax, byte [esp + 0x1a]
neg eax
sbb eax, eax
and eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x13], 0
je 0x469f1e
push ebx
push esi
call fcn.00469f40
mov ecx, dword [esp + 0x1034]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ebbd8
add esp, 0x1028
ret 0x10
Function at 0x469f40
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x1004
call fcn.004ebbf0
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push esi
push dword [esp + 0x1014]
mov esi, dword [esp + 0x1014]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test bl, bl
jne 0x469fa5
push 0x800
lea eax, [esp + 0xc]
push eax
push esi
call fcn.004785a0
test al, al
je 0x469fa5
push dword [esp + 0x1014]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
jmp 0x469fa7
mov al, bl
mov ecx, dword [esp + 0x1008]
pop esi
pop ebx
xor ecx, esp
call fcn.004ebbd8
add esp, 0x1004
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50735b
mov eax, dword fs:[0]
push eax
mov eax, 0x2054
call fcn.004ebbf0
mov eax, dword [0x528af4]
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 esi, dword [ebp + 8]
push esi
call fcn.004789c0
test al, al
je 0x46a179
lea ecx, [ebp - 0x1018]
call fcn.0046abf0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1018]
push esi
call fcn.0046adf0
push 0
lea eax, [ebp - 0x2060]
mov dword [ebp - 0x1050], 0
push eax
lea ecx, [ebp - 0x1018]
mov dword [ebp - 0x104c], 0
mov dword [ebp - 0x1048], 0
mov dword [ebp - 0x1044], 0
mov dword [ebp - 0x1040], 0
mov dword [ebp - 0x103c], 0
call fcn.0046acd0
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1018]
call fcn.0046ac10
mov al, bl
jmp 0x46a1b2
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x46a1aa
push 0x800
lea eax, [ebp - 0x1010]
push eax
push esi
call fcn.004785a0
test al, al
je 0x46a1aa
lea eax, [ebp - 0x1010]
push eax
call ebx
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
setne 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.004ebbd8
mov esp, ebp
pop ebp
ret 4

Function at 0x46a1d0
Capabilities:
Delete directory

Disassembly:
mov eax, 0x2068
call fcn.004ebbf0
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x2064], eax
push esi
push edi
mov edi, dword [esp + 0x2074]
lea eax, [esp + 0x1008]
push 0x832
push eax
push edi
call fcn.00469bc0
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test al, al
je 0x46a24c
lea eax, [esp + 0x1008]
push eax
call esi
test eax, eax
setne al
test al, al
jne 0x46a280
push 0x800
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1010]
push eax
call fcn.004785a0
test al, al
je 0x46a24c
lea eax, [esp + 8]
push eax
call esi
test eax, eax
setne al
test al, al
jne 0x46a280
push edi
call esi
test eax, eax
setne al
test al, al
jne 0x46a280
push 0x800
lea eax, [esp + 0xc]
push eax
push edi
call fcn.004785a0
test al, al
je 0x46a27c
lea eax, [esp + 8]
push eax
call esi
test eax, eax
setne al
test al, al
jne 0x46a280
xor al, al
jmp 0x46a282
mov al, 1
mov ecx, dword [esp + 0x206c]
pop edi
pop esi
xor ecx, esp
call fcn.004ebbd8
add esp, 0x2068
ret 4
Function at 0x46a2a0
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x308c]
mov eax, 0x308c
call fcn.004ebbf0
push 0xffffffffffffffff
push 0x5073a0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x528af4]
xor eax, ebp
mov dword [ebp + 0x3088], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x3094]
lea ecx, [ebp]
mov dword [ebp - 0x18], ebx
call fcn.00467980
mov dword [ebp - 4], 0
lea ecx, [ebp]
push 1
push ebx
call fcn.00468010
test al, al
je 0x46a3c3
lea ecx, [ebp]
call fcn.00467ef0
push 0x10000
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.00404010
mov byte [ebp - 4], 1
mov ebx, dword [ebp - 0x28]
push 0x10000
push 0
push ebx
call fcn.004ee100
xor esi, esi
add esp, 0xc
xor edi, edi
cmp dword [ebp - 0x10], esi
jl 0x46a389
jg 0x46a366
cmp dword [ebp - 0x14], esi
jbe 0x46a389
push 0x10000
push ebx
lea ecx, [ebp]
call fcn.00468660
add esi, 0x10000
adc edi, 0
cmp edi, dword [ebp - 0x10]
jl 0x46a366
jg 0x46a389
cmp esi, dword [ebp - 0x14]
jb 0x46a366
lea ecx, [ebp]
call fcn.00467f80
push 0
push 0
push 0
lea ecx, [ebp]
call fcn.004683d0
lea ecx, [ebp]
call fcn.004685f0
lea ecx, [ebp]
call fcn.00467b10
mov byte [ebp - 4], 0
test ebx, ebx
je 0x46a3c0
push ebx
call fcn.004f252e
add esp, 4
mov ebx, dword [ebp - 0x18]
push 0x832
lea eax, [ebp + 0x1024]
push eax
push ebx
call fcn.00469bc0
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test al, al
je 0x46a41f
lea eax, [ebp + 0x1024]
push eax
call esi
test eax, eax
setne al
test al, al
jne 0x46a457
push 0x800
lea eax, [ebp + 0x2088]
push eax
lea eax, [ebp + 0x1024]
push eax
call fcn.004785a0
test al, al
je 0x46a41f
lea eax, [ebp + 0x2088]
push eax
call esi
test eax, eax
setne al
test al, al
jne 0x46a457
push ebx
call esi
test eax, eax
setne al
test al, al
jne 0x46a457
push 0x800
lea eax, [ebp + 0x2088]
push eax
push ebx
call fcn.004785a0
test al, al
je 0x46a453
lea eax, [ebp + 0x2088]
push eax
call esi
test eax, eax
setne al
test al, al
jne 0x46a457
xor bl, bl
jmp 0x46a459
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.004679c0
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 + 0x3088]
xor ecx, ebp
call fcn.004ebbd8
lea esp, [ebp + 0x308c]
pop ebp
ret 4
Function at 0x46ae20
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, 0x1254
call fcn.004ebbf0
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x1250], eax
push ebx
mov ebx, dword [esp + 0x1260]
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x1268]
push edi
mov edi, dword [esp + 0x1264]
push eax
cmp edi, 0xffffffff
jne 0x46aecf
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46aef4
push 0x800
lea eax, [esp + 0x260]
push eax
push ebx
call fcn.004785a0
test al, al
je 0x46ae9d
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46aef4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x46aec2
cmp eax, 3
je 0x46aec2
cmp eax, 0x12
je 0x46aec2
mov eax, 1
mov byte [esi + 0x1044], al
jmp 0x46afc2
xor eax, eax
mov byte [esi + 0x1044], al
jmp 0x46afc2
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x46aef4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne cl
or eax, 0xffffffff
mov byte [esi + 0x1044], cl
jmp 0x46afc4
push 0x800
push ebx
push esi
call fcn.0048e710
push 0x800
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.00478fb0
mov ecx, dword [esp + 0x28]
xor eax, eax
add eax, dword [esp + 0x2c]
mov dword [esi + 0x1000], eax
mov eax, dword [esp + 0xc]
adc ecx, 0
mov dword [esi + 0x1008], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x1028], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x102c], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x1030], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x1034], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x1038], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x103c], eax
lea eax, [esp + 0x20]
mov dword [esi + 0x1004], ecx
lea ecx, [esi + 0x1010]
push eax
call fcn.0048f980
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0x1018]
call fcn.0048f980
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0x1020]
call fcn.0048f980
test dword [esp + 0xc], 0x400
je 0x46afba
cmp dword [esp + 0x30], 0xa0000003
jne 0x46afba
mov eax, 1
jmp 0x46afbc
xor eax, eax
mov byte [esi + 0x100e], al
mov eax, edi
mov ecx, dword [esp + 0x125c]
pop edi
mov dword [esi + 0x1040], 0
pop esi
pop ebx
xor ecx, esp
call fcn.004ebbd8
add esp, 0x1254
ret 0xc
Function at 0x46d710
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 4], ebx
mov eax, dword [ebx + 0x6148]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
add ecx, eax
mov dword [esp + 0x10], ecx
cmp eax, ecx
je 0x46d830
push ebp
push esi
push edi
lea ecx, [ecx]
mov edx, dword [ebx + 0xd0]
add edx, eax
movzx ecx, byte [edx]
movzx ebp, byte [edx + 2]
movzx esi, byte [edx + 3]
imul edi, ecx, 0x2773
movzx ecx, byte [edx + 1]
movzx edx, byte [edx + 4]
xor edi, ecx
imul ecx, edi, 0x2773
and edi, 0x3fff
add edi, dword [ebx + 0xd4]
xor ebp, ecx
imul ecx, ebp, 0x2773
and ebp, 0x3ffff
xor esi, ecx
imul ecx, esi, 0x2773
and esi, 0x3ffff
mov dword [esp + 0x18], esi
xor edx, ecx
mov cl, byte [edi]
and edx, dword [ebx + 0xec]
mov byte [esp + 0x24], cl
mov ecx, dword [ebx + 0xd8]
mov dword [esp + 0x28], edx
movzx ebx, word [ecx + ebp*2]
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0xdc]
mov edx, dword [ecx + esi*4]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov ecx, dword [ecx + 0xe0]
mov esi, dword [ecx + esi*4]
mov ecx, dword [esp + 0x10]
mov byte [edi], al
mov edi, dword [esp + 0x18]
mov ecx, dword [ecx + 0xd8]
mov word [ecx + ebp*2], ax
mov ebp, dword [esp + 0x10]
mov ecx, dword [ebp + 0xdc]
mov dword [ecx + edi*4], eax
mov ecx, dword [ebp + 0xe0]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x28]
mov dword [ecx + ebp*4], eax
mov cl, byte [esp + 0x24]
mov word [edi + 1], bx
mov ebx, dword [esp + 0x10]
mov dword [edi + 3], edx
mov byte [edi], cl
add edi, 7
mov dword [esp + 0x14], edi
mov ecx, dword [ebx + 0xe4]
mov dword [ecx + eax*4], esi
inc eax
cmp eax, dword [esp + 0x1c]
jne 0x46d740
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8

Function at 0x46d9d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0xc]
add ebx, eax
push edi
mov edi, ecx
cmp eax, ebx
je 0x46da32
push esi
jmp 0x46d9f0
mov esi, dword [edi + 0xd0]
movzx ecx, byte [esi + eax]
imul edx, ecx, 0x2773
movzx ecx, byte [esi + eax + 1]
xor edx, ecx
movzx ecx, byte [esi + eax + 2]
imul edx, edx, 0x2773
xor edx, ecx
mov ecx, dword [edi + 0xe0]
movzx edx, dx
mov esi, dword [ecx + edx*4]
mov dword [ecx + edx*4], eax
mov ecx, dword [edi + 0xe4]
mov dword [ecx + eax*4], esi
inc eax
cmp eax, ebx
jne 0x46d9f0
pop esi
pop edi
pop ebx
ret 8
Function at 0x46f250
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
push 0x4000
push 0
push dword [esi + 0xd4]
call fcn.004ee100
add esp, 0xc
cmp byte [esp + 8], 0
je 0x46f349
cmp byte [esi + 0x6135], 0
jne 0x46f349
mov eax, dword [esi + 0xe8]
mov ecx, dword [esi + 0x6130]
shr eax, 2
cmp ecx, eax
ja 0x46f349
push ebx
xor ebx, ebx
test ecx, ecx
je 0x46f344
push edi
jmp 0x46f2b0
mov edx, dword [esi + 0xd0]
movzx eax, byte [edx + ebx]
imul ecx, eax, 0x2773
movzx eax, byte [edx + ebx + 1]
xor ecx, eax
movzx eax, byte [edx + ebx + 2]
imul edi, ecx, 0x2773
xor edx, edx
xor edi, eax
mov eax, dword [esi + 0xd8]
mov ecx, edi
and ecx, 0x3ffff
mov word [eax + ecx*2], dx
mov eax, dword [esi + 0xd0]
movzx edx, byte [eax + ebx + 3]
imul eax, edi, 0x2773
xor edx, eax
mov eax, dword [esi + 0xdc]
mov ecx, edx
and ecx, 0x3ffff
mov dword [eax + ecx*4], 0
mov eax, dword [esi + 0xd0]
movzx ecx, byte [eax + ebx + 4]
inc ebx
imul eax, edx, 0x2773
xor ecx, eax
mov eax, dword [esi + 0xe0]
and ecx, dword [esi + 0xec]
mov dword [eax + ecx*4], 0
cmp ebx, dword [esi + 0x6130]
jb 0x46f2b0
pop edi
pop ebx
pop esi
ret 4
push 0x80000
push 0
push dword [esi + 0xd8]
call fcn.004ee100
push 0x100000
push 0
push dword [esi + 0xdc]
call fcn.004ee100
mov eax, dword [esi + 0xe8]
shl eax, 2
push eax
push 0
push dword [esi + 0xe0]
call fcn.004ee100
add esp, 0x24
pop esi
ret 4