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

Disassembly:
sub esp, 0x28
mov eax, dword [0x46aee0]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov ebx, dword [esp + 0x34]
push esi
push edi
mov edi, dword [esp + 0x38]
cmp dword [edi], 2
jne 0x41a012
mov eax, dword [edi + 4]
mov ecx, eax
mov edx, eax
mov byte [esp + 0xc], al
shr eax, 0x18
mov byte [esp + 0xf], al
shr ecx, 8
lea eax, [esp + 0x10]
push eax
push 4
mov byte [esp + 0x15], cl
lea ecx, [esp + 0x14]
push ecx
push 0x20
shr edx, 0x10
push ebx
mov byte [esp + 0x22], dl
call fcn.00418ef0
xor edx, edx
mov dword [edi + 4], edx
mov eax, edx
lea esi, [edx - 2]
push ebp
movzx ebp, byte [esp + edx + 0x14]
mov ecx, edx
and ecx, 3
add ecx, ecx
add ecx, ecx
add ecx, ecx
shl ebp, cl
lea ecx, [esi - 1]
and ecx, 3
add ecx, ecx
add ecx, ecx
xor eax, ebp
movzx ebp, byte [esp + edx + 0x15]
add ecx, ecx
shl ebp, cl
mov ecx, esi
and ecx, 3
add ecx, ecx
xor eax, ebp
movzx ebp, byte [esp + edx + 0x16]
add ecx, ecx
add ecx, ecx
shl ebp, cl
lea ecx, [esi + 1]
and ecx, 3
add ecx, ecx
xor eax, ebp
movzx ebp, byte [esp + edx + 0x17]
add ecx, ecx
add ecx, ecx
shl ebp, cl
add edx, 4
add esi, 4
xor eax, ebp
cmp edx, 0x20
jb 0x419fb1
mov dword [edi + 4], eax
pop ebp
cmp dword [edi], 3
jne 0x41a035
lea edx, [esp + 0x10]
push edx
push 0x20
add edi, 4
push edi
push 0x20
push ebx
call fcn.00418ef0
mov ecx, 8
lea esi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045334a
add esp, 0x28
ret 8
Function at 0x41a670
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov edx, dword [esi]
push edi
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
cmp eax, edx
jbe 0x41a6d8
mov ebx, dword [esp + 0x14]
mov ecx, 1
cmp edx, ecx
jb 0x41a6b4
mov edx, edi
sub edx, esi
lea eax, [esi + 4]
sub ebx, esi
lea ebx, [ebx]
mov ebp, dword [edx + eax]
xor ebp, dword [eax]
inc ecx
mov dword [ebx + eax], ebp
add eax, 4
cmp ecx, dword [esi]
jbe 0x41a6a0
mov ebx, dword [esp + 0x14]
mov eax, dword [edi]
sub eax, dword [esi]
lea edx, [edi + ecx*4]
add eax, eax
add eax, eax
push eax
push edx
lea eax, [ebx + ecx*4]
push eax
call fcn.004543f0
mov ecx, dword [edi]
add esp, 0xc
pop edi
pop esi
pop ebp
mov dword [ebx], ecx
pop ebx
ret 0xc
jae 0x41a728
mov ebx, dword [esp + 0x14]
mov ecx, 1
cmp eax, ecx
jb 0x41a704
mov edx, edi
sub edx, esi
lea eax, [esi + 4]
sub ebx, esi
mov ebp, dword [eax + edx]
xor ebp, dword [eax]
inc ecx
mov dword [eax + ebx], ebp
add eax, 4
cmp ecx, dword [edi]
jbe 0x41a6f0
mov ebx, dword [esp + 0x14]
mov edx, dword [esi]
sub edx, dword [edi]
lea eax, [esi + ecx*4]
add edx, edx
add edx, edx
push edx
push eax
lea ecx, [ebx + ecx*4]
push ecx
call fcn.004543f0
mov edx, dword [esi]
add esp, 0xc
pop edi
pop esi
pop ebp
mov dword [ebx], edx
pop ebx
ret 0xc
test eax, eax
jbe 0x41a742
mov edx, edi
lea ecx, [esi + eax*4]
sub edx, esi
mov ebx, dword [ecx + edx]
xor ebx, dword [ecx]
jne 0x41a742
dec eax
sub ecx, 4
test eax, eax
ja 0x41a733
mov edx, dword [esp + 0x14]
mov dword [edx], eax
test eax, eax
jbe 0x41a763
sub edi, esi
lea ecx, [esi + eax*4]
sub edx, esi
mov esi, dword [ecx + edi]
xor esi, dword [ecx]
dec eax
mov dword [ecx + edx], esi
sub ecx, 4
test eax, eax
ja 0x41a753
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x41a770
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x4c
push ebp
push esi
mov esi, dword [esp + 0x5c]
cmp dword [esi], 0
je 0x41a89a
mov ebp, dword [esp + 0x60]
mov eax, dword [ebp]
test eax, eax
je 0x41a89a
mov ecx, ebp
lea edx, [esp + 8]
sub ecx, edx
push edi
lea ebx, [ebx]
mov edi, dword [0x47b978]
lea edx, [ecx + eax*4]
sub eax, 1
mov edx, dword [esp + edx + 0xc]
mov edx, dword [edi + edx*4]
mov dword [esp + eax*4 + 0x10], edx
jne 0x41a7a0
mov edi, dword [esp + 0x5c]
push ebx
push 0x90
push eax
push edi
call fcn.004538e0
mov ebx, dword [esi]
add esp, 0xc
test ebx, ebx
je 0x41a847
mov ebp, dword [0x47b974]
lea esp, [esp]
mov eax, dword [esi + ebx*4]
mov ecx, dword [0x47b978]
mov esi, dword [ecx + eax*4]
cmp esi, 0x7fff
je 0x41a83a
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
test eax, eax
je 0x41a83a
lea ecx, [ebx + eax]
lea edx, [edi + ecx*4 - 4]
jmp 0x41a810
mov ecx, dword [esp + eax*4 + 0x10]
cmp ecx, 0x7fff
je 0x41a832
add ecx, esi
cmp ecx, 0x7fff
jb 0x41a82c
add ecx, 0xffff8001
mov ecx, dword [ebp + ecx*4]
xor dword [edx], ecx
dec eax
sub edx, 4
test eax, eax
jne 0x41a810
sub ebx, 1
mov esi, dword [esp + 0x64]
jne 0x41a7e0
mov ebp, dword [esp + 0x68]
mov edx, dword [esi]
mov eax, dword [ebp]
lea ecx, [edx + eax - 1]
cmp ecx, 0x11
mov dword [edi], ecx
pop ebx
jle 0x41a877
lea eax, [edi + ecx*4 - 0x38]
lea edx, [ecx - 0x11]
nop
mov ecx, dword [eax + 0x38]
xor dword [eax - 0xc], ecx
xor dword [eax], ecx
mov dword [eax + 0x38], 0
sub eax, 4
sub edx, 1
jne 0x41a860
cmp dword [edi], 0x11
jbe 0x41a891
mov dword [edi], 0x11
mov eax, dword [edi]
cmp dword [edi + eax*4], 0
jne 0x41a891
dec eax
mov dword [edi], eax
test eax, eax
jne 0x41a882
pop edi
pop esi
pop ebp
add esp, 0x4c
ret 0xc
mov ecx, dword [esp + 0x58]
pop esi
mov dword [ecx], 0
pop ebp
add esp, 0x4c
ret 0xc
Function at 0x41a8b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
xor ebp, ebp
cmp eax, ebp
je 0x41a995
mov ecx, dword [edi + eax*4]
push ebx
mov ebx, dword [0x47b978]
mov ecx, dword [ebx + ecx*4]
push esi
cmp ecx, 0x7fff
je 0x41a8fb
add ecx, ecx
cmp ecx, 0x7fff
jb 0x41a8e8
add ecx, 0xffff8001
mov edx, dword [0x47b974]
mov ecx, dword [edx + ecx*4]
mov esi, dword [esp + 0x14]
mov dword [esi + eax*8 - 4], ecx
jmp 0x41a903
mov esi, dword [esp + 0x14]
mov dword [esi + eax*8 - 4], ebp
mov ecx, dword [edi]
sub ecx, 1
je 0x41a948
lea edx, [esi + ecx*8 - 4]
mov edi, edi
mov dword [edx + 4], ebp
mov eax, dword [edi + ecx*4]
mov eax, dword [ebx + eax*4]
cmp eax, 0x7fff
je 0x41a93e
add eax, eax
cmp eax, 0x7fff
jb 0x41a92e
add eax, 0xffff8001
mov ebp, dword [0x47b974]
mov eax, dword [ebp + eax*4]
mov dword [edx], eax
xor ebp, ebp
jmp 0x41a940
mov dword [edx], ebp
dec ecx
sub edx, 8
cmp ecx, ebp
jne 0x41a910
mov eax, dword [edi]
lea ecx, [eax + eax - 1]
cmp ecx, 0x11
mov dword [esi], ecx
jle 0x41a973
lea eax, [esi + ecx*4 - 0x38]
lea edx, [ecx - 0x11]
lea esp, [esp]
mov ecx, dword [eax + 0x38]
xor dword [eax - 0xc], ecx
xor dword [eax], ecx
mov dword [eax + 0x38], ebp
sub eax, 4
sub edx, 1
jne 0x41a960
cmp dword [esi], 0x11
jbe 0x41a98e
mov dword [esi], 0x11
mov edi, edi
mov eax, dword [esi]
cmp dword [esi + eax*4], ebp
jne 0x41a98e
dec eax
mov dword [esi], eax
cmp eax, ebp
jne 0x41a980
pop esi
pop ebx
pop edi
pop ebp
ret 8
mov ecx, dword [esp + 0xc]
pop edi
mov dword [ecx], ebp
pop ebp
ret 8
Function at 0x41c9a0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.00453360
mov eax, dword [0x46aee0]
xor eax, esp
mov dword [esp + 0x1000], eax
push edi
mov edi, dword [esp + 0x100c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x41ca39
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c9d0
push esi
sub eax, edx
sar eax, 1
push edi
mov esi, eax
call fcn.00431a70
test al, al
jne 0x41ca16
lea eax, [esp + 8]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41ca03
sub eax, edx
sar eax, 1
lea esi, [esi + eax + 1]
cmp esi, 0x104
pop esi
jbe 0x41ca39
push 0x104
push 0xe88
call fcn.00440400
push eax
push 0
call fcn.00418100
add esp, 0xc
mov ecx, dword [esp + 0x1004]
pop edi
xor ecx, esp
call fcn.0045334a
add esp, 0x1004
ret 4
Function at 0x4210e0
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4617db
mov eax, dword fs:[0]
push eax
mov eax, 0x5028
call fcn.00453360
mov eax, dword [0x46aee0]
xor eax, esp
mov dword [esp + 0x5024], eax
push ebx
push esi
push edi
mov eax, dword [0x46aee0]
xor eax, esp
push eax
lea eax, [esp + 0x5038]
mov dword fs:[0], eax
mov edi, dword [esp + 0x5048]
push 0x800
lea eax, [esp + 0x2038]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x4212f2
cmp eax, 0x800
jae 0x4212f2
push 0x800
lea ecx, [esp + 0x3038]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x4212f2
cmp eax, 0x800
jae 0x4212f2
lea edx, [esp + 0x2034]
push edx
call fcn.004311b0
mov ebx, eax
lea eax, [esp + 0x3034]
push eax
call fcn.004311b0
mov esi, eax
cmp word [esi], 0
je 0x4212f2
push esi
push ebx
call fcn.004477a0
test eax, eax
je 0x4212f2
push esi
push edi
call fcn.004311b0
push eax
call fcn.004477a0
test eax, eax
jne 0x4212f2
mov word [esp + 0x1034], ax
xor esi, esi
lea esp, [esp]
test ax, ax
jne 0x421242
push 0x800
push edi
lea ecx, [esp + 0x103c]
push ecx
call fcn.00445b10
push esi
push str.rtmp_d
lea edx, [esp + 0x103c]
push edx
call fcn.004311b0
push eax
mov edx, 0x800
call fcn.00425540
add esp, 0xc
lea eax, [esp + 0x1034]
push eax
call fcn.00422cb0
test al, al
je 0x421226
xor eax, eax
mov word [esp + 0x1034], ax
jmp 0x42122e
mov ax, word [esp + 0x1034]
add esi, 0x7b
cmp esi, 0x2710
jl 0x4211d0
test ax, ax
je 0x4212f2
push 0x800
push edi
lea ecx, [esp + 0x403c]
push ecx
call fcn.00445b10
push 0x800
push ebx
lea edx, [esp + 0x403c]
push edx
call fcn.00431380
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [esp + 0x1034]
push eax
lea ecx, [esp + 0x4038]
push ecx
call esi
test eax, eax
je 0x4212f2
lea ecx, [esp + 0x10]
call fcn.00421560
push edi
mov dword [esp + 0x5044], 0
xor bl, bl
call fcn.00422cb0
test al, al
jne 0x4212b2
push 9
push edi
lea ecx, [esp + 0x18]
call fcn.00421720
mov bl, al
lea edx, [esp + 0x4034]
push edx
lea eax, [esp + 0x1038]
push eax
call esi
test bl, bl
je 0x4212da
lea ecx, [esp + 0x10]
call fcn.00421850
lea ecx, [esp + 0x10]
call fcn.004218b0
lea ecx, [esp + 0x10]
mov dword [esp + 0x5040], 0xffffffff
call fcn.00421c70
mov al, 1
jmp 0x4212f4
xor al, al
mov ecx, dword [esp + 0x5038]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5024]
xor ecx, esp
call fcn.0045334a
add esp, 0x5034
ret 4
Function at 0x421950
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x28]
push esi
mov esi, ecx
test ebx, ebx
je 0x421b15
mov eax, dword [esi + 0xc]
test eax, eax
je 0x42198e
sub eax, 1
je 0x421983
sub eax, 1
jne 0x42198e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push ebp
mov dword [esi + 4], eax
push edi
jmp 0x4219b0
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push ebp
push edi
jmp 0x4219b0
mov ebx, dword [esp + 0x34]
jmp 0x4219b0
cmp dword [esi + 0xc], 0
mov dword [esp + 0x10], 0
je 0x421a04
xor edi, edi
test ebx, ebx
jbe 0x421a29
mov eax, ebx
sub eax, edi
cmp eax, 0x4000
jb 0x4219d4
mov eax, 0x4000
mov edx, dword [esp + 0x30]
push 0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 4]
push eax
lea eax, [edi + edx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
je 0x421a29
add edi, 0x4000
cmp edi, ebx
jb 0x4219c4
jmp 0x421a21
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 4]
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
jne 0x421b0f
cmp byte [esi + 0x14], 0
je 0x421b0f
cmp dword [esi + 0xc], 0
jne 0x421b0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov edi, eax
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov ebx, eax
lea eax, [esi + 0x1e]
push eax
mov dword [esp + 0x24], edx
call fcn.00422380
push edi
mov dword [esp + 0x18], eax
mov ebp, edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp ebp, eax
mov ebp, dword [esp + 0x34]
jb 0x421ab4
ja 0x421a7c
cmp dword [esp + 0x14], ebp
jbe 0x421ab4
mov edi, dword [esp + 0x20]
mov edx, ebx
sub edx, ebp
mov ecx, edi
sbb ecx, eax
test ecx, ecx
jg 0x421ab4
jl 0x421a93
cmp edx, 0xffffffff
ja 0x421ab4
mov ecx, ebp
add ecx, ebx
adc eax, edi
mov dword [esp + 0x28], eax
js 0x421ab4
jg 0x421aa6
cmp ecx, 0xffffffff
jbe 0x421ab4
lea eax, [esi + 0x1e]
push eax
mov ecx, 0x47e198
call fcn.0041ce00
push 0
lea eax, [esi + 0x1e]
push eax
mov ecx, 0x47e198
call fcn.0041ce60
test al, al
je 0x421aff
mov eax, dword [esp + 0x10]
cmp eax, ebp
jae 0x4219a0
test eax, eax
jbe 0x4219a0
mov edi, dword [esi]
mov edx, dword [edi + 0xc]
push 0
mov ecx, esi
call edx
mov ecx, dword [esp + 0x14]
xor ebx, ebx
sub eax, ecx
sbb edx, ebx
push edx
mov edx, dword [edi + 8]
push eax
mov ecx, esi
call edx
jmp 0x4219a0
lea eax, [esi + 0x1e]
push eax
push 0
mov ecx, 0x47e198
call fcn.0041d040
pop edi
mov byte [esi + 8], 1
pop ebp
pop esi
pop ebx
add esp, 0x1c
ret 8
Function at 0x421d20
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, 1
push edi
mov edi, dword [esp + 0x18]
cmp dword [esi + 0xc], ebp
jne 0x421d4c
cmp edi, 0x4e20
jbe 0x421d41
mov edi, 0x4e20
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
mov ebx, dword [esp + 0x14]
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x421dee
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x421da0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x421d84
cmp eax, 3
jne 0x421da0
cmp edi, 0x4e20
jbe 0x421da0
push 0x4e20
push ebx
mov ecx, esi
call fcn.00421d20
pop edi
pop esi
pop ebp
pop ebx
ret 8
cmp dword [esi + 0xc], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x421dbb
call ebp
cmp eax, 0x6d
jne 0x421dbb
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
cmp dword [esi + 0xc], 0
jne 0x421de4
cmp edi, 0x8000
jbe 0x421de4
call ebp
cmp eax, 0x21
jne 0x421de4
push 0x8000
push ebx
mov ecx, esi
call fcn.00421d20
pop edi
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 8
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x4222f0
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1004
call fcn.00453360
mov eax, dword [0x46aee0]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
push 0x800
lea ecx, [esp + 4]
push ecx
push eax
call fcn.00431ac0
movzx edx, word [esp]
neg edx
sbb edx, edx
lea eax, [esp]
and edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x422356
cmp eax, 5
je 0x422356
xor eax, eax
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0045334a
add esp, 0x1004
ret 4
mov ecx, dword [esp + 0x1000]
xor ecx, esp
mov eax, 1
call fcn.0045334a
add esp, 0x1004
ret 4

Function at 0x422380
Capabilities:
Get disk size

Disassembly:
mov eax, 0x101c
call fcn.00453360
mov eax, dword [0x46aee0]
xor eax, esp
mov dword [esp + 0x1018], eax
mov eax, dword [esp + 0x1020]
push esi
push 0x800
lea ecx, [esp + 0x20]
push ecx
push eax
call fcn.00431450
lea edx, [esp + 0xc]
push edx
movzx edx, word [esp + 0x20]
xor esi, esi
lea eax, [esp + 0x18]
push eax
neg edx
lea ecx, [esp + 0xc]
sbb edx, edx
lea eax, [esp + 0x24]
push ecx
and edx, eax
push edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x422417
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0x10]
ja 0x422417
push 1
push esi
push esi
push eax
call fcn.00453600
mov ecx, dword [esp + 4]
add eax, ecx
adc edx, esi
pop esi
mov ecx, dword [esp + 0x1018]
xor ecx, esp
call fcn.0045334a
add esp, 0x101c
ret 4
mov ecx, dword [esp + 0x101c]
pop esi
xor ecx, esp
xor eax, eax
xor edx, edx
call fcn.0045334a
add esp, 0x101c
ret 4
Function at 0x422440
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1210
call fcn.00453360
mov eax, dword [0x46aee0]
xor eax, esp
mov dword [esp + 0x120c], eax
mov eax, dword [esp + 0x1214]
push 0x800
lea ecx, [esp + 0x210]
push ecx
push eax
call fcn.00431ac0
push 0x105
lea edx, [esp + 4]
push edx
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 0x422544
mov ecx, 0x463c54
lea eax, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4224ca
test dx, dx
je 0x4224c6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4224ca
add eax, 4
add ecx, 4
test dx, dx
jne 0x4224a4
xor eax, eax
jmp 0x4224cf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x422528
mov ecx, 0x463c48
lea eax, [esp]
jmp 0x4224e0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x422506
test dx, dx
je 0x422502
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x422506
add eax, 4
add ecx, 4
test dx, dx
jne 0x4224e0
xor eax, eax
jmp 0x42250b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x422528
xor eax, eax
mov ecx, dword [esp + 0x120c]
xor ecx, esp
call fcn.0045334a
add esp, 0x1210
ret 4
mov eax, 1
mov ecx, dword [esp + 0x120c]
xor ecx, esp
call fcn.0045334a
add esp, 0x1210
ret 4
mov ecx, dword [esp + 0x120c]
xor ecx, esp
xor al, al
call fcn.0045334a
add esp, 0x1210
ret 4

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

Disassembly:
mov eax, 0x1004
call fcn.00453360
mov eax, dword [0x46aee0]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
push edi
mov edi, dword [esp + 0x1014]
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x422611
push 0x800
lea eax, [esp + 0x10]
push eax
push edi
call fcn.004323f0
test al, al
je 0x42260f
lea ecx, [esp + 0xc]
push ecx
call ebx
jmp 0x422611
mov eax, esi
mov ecx, dword [esp + 0x100c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045334a
add esp, 0x1004
ret 4

Function at 0x422630
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x1004
call fcn.00453360
mov eax, dword [0x46aee0]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
mov esi, dword [esp + 0x1014]
push edi
mov edi, dword [esp + 0x101c]
push edi
push esi
call ebp
test eax, eax
setne bl
test bl, bl
jne 0x422690
push 0x800
lea eax, [esp + 0x14]
push eax
push esi
call fcn.004323f0
test al, al
je 0x422690
push edi
lea ecx, [esp + 0x14]
push ecx
call ebp
test eax, eax
setne al
jmp 0x422692
mov al, bl
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045334a
add esp, 0x1004
ret 8
Function at 0x4226b0
Capabilities:
Move file

Disassembly:
mov eax, 0x2004
call fcn.00453360
mov eax, dword [0x46aee0]
xor eax, esp
mov dword [esp + 0x2000], eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileW]
push esi
mov esi, dword [esp + 0x2014]
push edi
mov edi, dword [esp + 0x201c]
push edi
push esi
call ebp
test eax, eax
setne bl
test bl, bl
jne 0x42272e
push 0x800
lea eax, [esp + 0x1014]
push eax
push esi
call fcn.004323f0
test al, al
je 0x42272e
push 0x800
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.004323f0
test al, al
je 0x42272e
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1014]
push eax
call ebp
test eax, eax
setne al
jmp 0x422730
mov al, bl
mov ecx, dword [esp + 0x2010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045334a
add esp, 0x2004
ret 8

Function at 0x422750
Capabilities:
Delete file

Disassembly:
mov eax, 0x1004
call fcn.00453360
mov eax, dword [0x46aee0]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push esi
mov esi, dword [esp + 0x1010]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
setne bl
test bl, bl
jne 0x4227a6
push 0x800
lea eax, [esp + 0x10]
push eax
push esi
call fcn.004323f0
test al, al
je 0x4227a6
lea ecx, [esp + 0xc]
push ecx
call edi
test eax, eax
setne al
jmp 0x4227a8
mov al, bl
mov ecx, dword [esp + 0x100c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045334a
add esp, 0x1004
ret 4

Function at 0x4227d0
Capabilities:
Delete directory

Disassembly:
mov eax, 0x1004
call fcn.00453360
mov eax, dword [0x46aee0]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push esi
mov esi, dword [esp + 0x1010]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
call edi
test eax, eax
setne bl
test bl, bl
jne 0x422826
push 0x800
lea eax, [esp + 0x10]
push eax
push esi
call fcn.004323f0
test al, al
je 0x422826
lea ecx, [esp + 0xc]
push ecx
call edi
test eax, eax
setne al
jmp 0x422828
mov al, bl
mov ecx, dword [esp + 0x100c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045334a
add esp, 0x1004
ret 4

Function at 0x422f20
Capabilities:
Delete file

Disassembly:
xor eax, eax
sub esp, 0x20
cmp dword [ecx + 0x10], eax
jbe 0x422f78
mov dword [ecx + 0x10], eax
mov ecx, dword [ecx]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
mov dword [esp], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
lea edx, [esp]
mov eax, 0x54
push edx
mov dword [esp + 8], 3
mov word [esp + 0x14], ax
mov dword [esp + 0xc], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb eax, eax
inc eax
add esp, 0x20
ret
mov al, 1
add esp, 0x20
ret
Function at 0x4232e0
Capabilities:
Check if file exists
Create directory

Disassembly:
mov eax, 0x1004
call fcn.00453360
mov eax, dword [0x46aee0]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
mov esi, dword [esp + 0x100c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push esi
call edi
test eax, eax
jne 0x42333c
push esi
call fcn.004225c0
cmp eax, 0xffffffff
jne 0x423358
push 0x800
lea eax, [esp + 0xc]
push eax
push esi
call fcn.004323f0
test al, al
je 0x423358
push 0
lea ecx, [esp + 0xc]
push ecx
call edi
test eax, eax
je 0x423358
cmp byte [esp + 0x1014], 0
je 0x423354
mov edx, dword [esp + 0x1018]
push edx
push esi
call fcn.00422630
xor eax, eax
jmp 0x423372
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x42336d
cmp eax, 3
mov eax, 1
jne 0x423372
mov eax, 2
mov ecx, dword [esp + 0x1008]
pop edi
pop esi
xor ecx, esp
call fcn.0045334a
add esp, 0x1004
ret 0xc
Function at 0x424300
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, 0x1254
call fcn.00453360
mov eax, dword [0x46aee0]
xor eax, esp
mov dword [esp + 0x1250], eax
push ebx
mov ebx, dword [esp + 0x1260]
push ebp
push esi
mov esi, dword [esp + 0x126c]
push edi
mov edi, dword [esp + 0x1268]
cmp edi, 0xffffffff
jne 0x4243af
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [esp + 0x10]
push eax
push ebx
call ebp
mov edi, eax
cmp edi, 0xffffffff
jne 0x4243e3
push 0x800
lea ecx, [esp + 0x264]
push ecx
push ebx
call fcn.004323f0
test al, al
je 0x42437c
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x264]
push eax
call ebp
mov edi, eax
cmp edi, 0xffffffff
jne 0x4243e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x424398
cmp eax, 3
je 0x424398
cmp eax, 0x12
je 0x424398
mov eax, 1
jmp 0x42439a
xor eax, eax
mov byte [esi + 0x1044], al
mov dword [esi + 0x1040], 0
jmp 0x4244a1
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4243e3
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne dl
mov byte [esi + 0x1044], dl
mov dword [esi + 0x1040], 0
jmp 0x4244a1
push 0x800
push ebx
push esi
call fcn.00445b10
push 0x800
lea eax, [esp + 0x40]
push eax
push esi
call fcn.00431380
mov ecx, dword [esp + 0x2c]
push 1
push 0
push 0
push ecx
call fcn.00453600
mov ecx, dword [esp + 0x30]
xor ebx, ebx
add eax, ecx
mov ecx, dword [esp + 0x18]
adc edx, ebx
mov dword [esi + 0x1000], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x1004], edx
mov edx, dword [esp + 0x10]
mov dword [esi + 0x1028], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x1008], edx
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x102c], ecx
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x1034], eax
mov dword [esi + 0x1030], edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x24]
mov dword [esi + 0x1038], ecx
push eax
lea ecx, [esi + 0x1010]
mov dword [esi + 0x103c], edx
call fcn.00446cb0
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 0x1018]
call fcn.00446cb0
lea edx, [esp + 0x1c]
push edx
lea ecx, [esi + 0x1020]
call fcn.00446cb0
mov dword [esi + 0x1040], ebx
mov ecx, dword [esp + 0x1260]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045334a
add esp, 0x1254
ret 0xc