joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439cf0
Capabilities:
Encrypt data using des

Disassembly:
push 0xffffffffffffffff
push 0x446153
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x14], ebp
mov dword [ebp], 0x448770
push 0x80
mov dword [esp + 0x2c], 0
mov dword [ebp + 4], 0x20
call sub.MFC42u.DLL_operatornew
mov dword [ebp + 8], eax
push 0x78
mov byte [esp + 0x30], 1
mov dword [ebp], 0x448d3c
call sub.MFC42u.DLL_operatornew
mov ebx, eax
mov esi, str.91__
add esp, 8
sub esi, ebx
mov dword [esp + 0x1c], ebx
lea edi, [ebx + 0x70]
mov ecx, ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0x38
jmp 0x439d6f
mov esi, dword [esp + 0x14]
xor eax, eax
mov al, byte [esi + ecx]
mov esi, dword [esp + 0x30]
dec eax
mov edx, eax
and eax, 7
sar edx, 3
mov dl, byte [edx + esi]
test byte [eax*4 + 0x448d1c], dl
setne al
mov byte [ecx], al
mov eax, dword [esp + 0x10]
inc ecx
dec eax
mov dword [esp + 0x10], eax
jne 0x439d6b
mov dword [esp + 0x30], 0
mov edx, edi
xor ecx, ecx
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov edx, dword [esp + 0x30]
xor eax, eax
mov al, byte [edx + 0x448cdc]
xor edx, edx
add eax, ecx
cmp ecx, 0x1c
setge dl
dec edx
mov esi, eax
and edx, 0xffffffe4
add edx, 0x38
cmp eax, edx
jl 0x439dd3
lea esi, [eax - 0x1c]
mov al, byte [ebx + esi]
mov byte [ecx + ebx + 0x38], al
inc ecx
cmp ecx, 0x38
jl 0x439dad
xor ecx, ecx
xor edx, edx
mov dl, byte [ecx + 0x448cec]
mov al, byte [edx + ebx + 0x37]
test al, al
je 0x439e21
mov eax, 0x2aaaaaab
mov ebx, 6
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
lea esi, [edx + edi]
cdq
idiv ebx
mov al, byte [esi]
mov ebx, dword [esp + 0x1c]
mov edx, dword [edx*4 + 0x448d1c]
sar edx, 2
or al, dl
mov byte [esi], al
inc ecx
cmp ecx, 0x30
jl 0x439de2
xor eax, eax
mov esi, dword [esp + 0x30]
mov al, byte [edi + 2]
xor ecx, ecx
mov ah, byte [edi]
mov cl, byte [edi + 4]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [edi + 6]
shl eax, 8
or eax, edx
xor edx, edx
mov dword [ecx + esi*8], eax
mov dh, byte [edi + 1]
mov dl, byte [edi + 3]
xor eax, eax
mov al, byte [edi + 5]
xor ecx, ecx
mov cl, byte [edi + 7]
shl edx, 8
or edx, eax
mov eax, dword [ebp + 8]
shl edx, 8
or edx, ecx
mov dword [eax + esi*8 + 4], edx
inc esi
cmp esi, 0x10
mov dword [esp + 0x30], esi
jl 0x439da4
cmp dword [esp + 0x34], 1
jne 0x439eba
xor ecx, ecx
mov eax, 0x7c
mov edx, dword [ebp + 8]
sub eax, 8
mov edi, dword [eax + edx + 4]
mov esi, dword [ecx + edx]
mov dword [ecx + edx], edi
mov dword [eax + edx + 4], esi
mov edx, dword [ebp + 8]
add ecx, 8
cmp eax, 0x3c
mov edi, dword [eax + edx + 8]
mov esi, dword [ecx + edx - 4]
mov dword [ecx + edx - 4], edi
mov dword [eax + edx + 8], esi
jg 0x439e8b
mov ecx, 0x1e
xor eax, eax
mov edi, ebx
push ebx
rep stosd dword es:[edi], eax
call sub.MFC42u.DLL_operatordelete
mov ecx, dword [esp + 0x24]
add esp, 4
mov eax, ebp
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
Function at 0x439f10
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [ecx + 8]
push ebx
push ebp
mov edx, dword [eax]
mov eax, dword [esp + 0x10]
push esi
push edi
mov esi, dword [eax]
add ecx, 8
mov edi, 8
mov ebx, dword [ecx - 8]
mov eax, esi
ror eax, 4
xor eax, ebx
add ecx, 0x10
mov ebx, eax
mov ebp, eax
shr ebx, 0x18
and ebx, 0x3f
shr ebp, 0x10
mov ebx, dword [ebx*4 + 0x44a360]
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x44a560]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
and eax, 0x3f
xor ebx, dword [ebp*4 + 0x44a760]
mov ebp, dword [eax*4 + 0x44a960]
mov eax, dword [ecx - 0x14]
xor ebx, ebp
xor eax, esi
xor edx, ebx
mov ebx, eax
shr ebx, 0x18
mov ebp, eax
and ebx, 0x3f
shr ebp, 0x10
mov ebx, dword [ebx*4 + 0x44a460]
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x44a660]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
and eax, 0x3f
xor ebx, dword [ebp*4 + 0x44a860]
mov ebp, dword [eax*4 + 0x44aa60]
xor ebx, ebp
xor edx, ebx
mov ebx, dword [ecx - 0x10]
mov eax, edx
ror eax, 4
xor eax, ebx
mov ebx, eax
mov ebp, eax
shr ebx, 0x18
and ebx, 0x3f
shr ebp, 0x10
mov ebx, dword [ebx*4 + 0x44a360]
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x44a560]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
and eax, 0x3f
xor ebx, dword [ebp*4 + 0x44a760]
mov ebp, dword [eax*4 + 0x44a960]
mov eax, dword [ecx - 0xc]
xor ebx, ebp
xor eax, edx
xor esi, ebx
mov ebx, eax
shr ebx, 0x18
mov ebp, eax
and ebx, 0x3f
shr ebp, 0x10
mov ebx, dword [ebx*4 + 0x44a460]
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x44a660]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
and eax, 0x3f
xor ebx, dword [ebp*4 + 0x44a860]
mov ebp, dword [eax*4 + 0x44aa60]
xor ebx, ebp
xor esi, ebx
dec edi
jne 0x439f2b
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ecx], edx
mov edx, dword [esp + 0x14]
mov dword [edx], esi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x43acc0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [ecx + 0x1c]
mov dword [eax], 0x67452301
mov edx, dword [ecx + 0x1c]
mov dword [edx + 4], 0xefcdab89
mov eax, dword [ecx + 0x1c]
mov dword [eax + 8], 0x98badcfe
mov edx, dword [ecx + 0x1c]
mov dword [edx + 0xc], 0x10325476
mov eax, dword [ecx + 0x1c]
mov dword [eax + 0x10], 0xc3d2e1f0
ret
Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
sub ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
pop edi
cmp edi, ebx
jne 0x40b525
xor eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
or eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
test eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
test eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x406020
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
push esi
mov esi, dword [esp + 8]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
mov dword [esi + 8], 0x67452301
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0x14], 0x10325476
mov dword [esi + 4], eax
call fcn.0040de00
cmp eax, 0x17
je 0x40605e
mov dword [esi], 0x40d454
pop esi
ret
mov dword [esi], 0x405ff0
pop esi
ret

Function at 0x406070
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x4c
mov eax, dword [0x43ffa8]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
mov ebx, dword [esp + 0x58]
push ebp
push esi
mov esi, dword [esp + 0x5c]
mov eax, dword [esi + 0x18]
shr eax, 3
and eax, 0x3f
cmp eax, 0x38
push edi
mov edi, 0x38
jb 0x4060a2
mov edi, 0x78
sub edi, eax
push edi
lea eax, [esp + 0x14]
push 0
push eax
call main
add esp, 0xc
mov byte [esp + 0x10], 0x80
lea ecx, [esp + edi + 0x11]
lea eax, [esi + 0x1a]
mov ebp, 2
movzx edx, byte [eax - 2]
mov byte [ecx - 1], dl
movzx edx, byte [eax - 1]
mov byte [ecx], dl
movzx edx, byte [eax]
mov byte [ecx + 1], dl
movzx edx, byte [eax + 1]
mov byte [ecx + 2], dl
add eax, 4
add ecx, 4
sub ebp, 1
jne 0x4060c5
add edi, 8
push edi
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00405ef0
add esp, 0xc
lea ecx, [ebx + 1]
lea eax, [esi + 0xa]
lea edi, [ebp + 4]
movzx edx, byte [eax - 2]
mov byte [ecx - 1], dl
movzx edx, byte [eax - 1]
mov byte [ecx], dl
movzx edx, byte [eax]
mov byte [ecx + 1], dl
movzx edx, byte [eax + 1]
mov byte [ecx + 2], dl
add eax, 4
add ecx, 4
sub edi, 1
jne 0x406105
xor eax, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
mov dword [esi + 8], 0x67452301
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0x14], 0x10325476
mov dword [esi + 4], eax
call fcn.0040de00
cmp eax, 0x17
je 0x406174
pop edi
mov dword [esi], 0x40d454
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00433bb2
add esp, 0x4c
ret
mov ecx, dword [esp + 0x58]
pop edi
mov dword [esi], 0x405ff0
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00433bb2
add esp, 0x4c
ret
Function at 0x416dc0
Capabilities:
Hash data using sha1

Disassembly:
call fcn.0040de00
add eax, 0xfffffffd
cmp eax, 0x25
ja case.0x416dd4.8
movzx eax, byte [eax + 0x416e5c]
jmp dword [eax*4 + 0x416e48]
mov eax, dword [esp + 4]
mov dword [eax + 0x5c], 0x41bff8
jmp 0x416e1a
mov eax, dword [esp + 4]
mov dword [eax + 0x5c], 0x41aec0
jmp 0x416e1a
mov eax, dword [esp + 4]
mov dword [eax + 0x5c], 0x419e10
jmp 0x416e1a
mov eax, dword [esp + 4]
mov dword [eax + 0x5c], 0x416d90
jmp 0x416e1a
mov eax, dword [esp + 4]
mov dword [eax + 0x5c], 0x40a940
xor ecx, ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret
Function at 0x416e90
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x60
mov eax, dword [0x43ffa8]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x6c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x70]
push edi
mov edi, dword [esp + 0x78]
lea ecx, [esp + 0x1c]
and ecx, 7
push 0x48
lea ebx, [esp + 0x28]
sub ebx, ecx
push 0
push ebx
mov dword [esp + 0x1c], eax
call main
mov edx, dword [esi + 0x18]
and edx, 0x3f
mov eax, 0x40
sub eax, edx
add esp, 0xc
cmp eax, 8
ja 0x416ee1
add eax, 0x40
mov ecx, dword [esi + 0x14]
mov ebp, dword [esi + 0x18]
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov edx, ebp
shr edx, 0x1d
or ecx, edx
mov byte [ebx], 0x80
lea edx, [ebp*8]
mov dword [esp + 0x18], edx
mov edx, ecx
shr edx, 0x18
mov byte [eax + ebx - 8], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + ebx - 7], dl
mov edx, ecx
shr edx, 8
mov byte [eax + ebx - 6], dl
mov byte [eax + ebx - 5], cl
mov ecx, dword [esp + 0x18]
mov edx, ecx
shr edx, 0x18
mov byte [eax + ebx - 4], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + ebx - 3], dl
mov edx, ecx
mov byte [eax + ebx - 1], cl
mov ecx, dword [esp + 0x10]
push ecx
push eax
shr edx, 8
push ebx
push esi
mov byte [eax + ebx - 2], dl
call fcn.00416c90
movzx edx, byte [esi + 3]
mov byte [edi], dl
movzx eax, byte [esi + 2]
mov byte [edi + 1], al
mov ecx, dword [esi]
shr ecx, 8
mov byte [edi + 2], cl
movzx edx, byte [esi]
mov byte [edi + 3], dl
movzx eax, byte [esi + 7]
mov byte [edi + 4], al
movzx ecx, byte [esi + 6]
mov byte [edi + 5], cl
mov edx, dword [esi + 4]
shr edx, 8
mov byte [edi + 6], dl
movzx eax, byte [esi + 4]
mov byte [edi + 7], al
movzx ecx, byte [esi + 0xb]
mov byte [edi + 8], cl
movzx edx, byte [esi + 0xa]
mov byte [edi + 9], dl
mov eax, dword [esi + 8]
shr eax, 8
mov byte [edi + 0xa], al
movzx ecx, byte [esi + 8]
mov byte [edi + 0xb], cl
movzx edx, byte [esi + 0xf]
mov byte [edi + 0xc], dl
movzx eax, byte [esi + 0xe]
mov byte [edi + 0xd], al
mov ecx, dword [esi + 0xc]
shr ecx, 8
mov byte [edi + 0xe], cl
movzx edx, byte [esi + 0xc]
mov byte [edi + 0xf], dl
movzx eax, byte [esi + 0x13]
mov byte [edi + 0x10], al
movzx ecx, byte [esi + 0x12]
mov byte [edi + 0x11], cl
mov edx, dword [esi + 0x10]
shr edx, 8
mov byte [edi + 0x12], dl
movzx eax, byte [esi + 0x10]
push esi
mov byte [edi + 0x13], al
call fcn.00416dc0
push 0x140
push 0
add esi, 0x60
push esi
call main
mov ecx, dword [esp + 0x8c]
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00433bb2
add esp, 0x60
ret
Function at 0x4265e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call main
add esp, 8
test eax, eax
jne 0x426603
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x10
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
test esi, esi
je 0x4266ad
lea ecx, [ebp - 0x10]
call main
push 1
push edi
push esi
lea ecx, [ebp - 0x10]
call main
test al, al
jne 0x42663d
lea ecx, [ebp - 0x10]
call main
lea eax, [edi + 1]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x426642
sub ecx, edx
sar ecx, 1
je 0x426696
movzx eax, word [esi + ecx*2 - 2]
cmp eax, 0x2e
je 0x426696
cmp ecx, 1
jbe 0x42666f
cmp word [esi + ecx*2 - 4], 0x2e
jne 0x42666f
cmp eax, 0x5c
je 0x426696
push 0
push esi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
jne 0x42669b
call dword [sym.imp.kernel32.dll_GetLastError]
lea ecx, [ebp - 0x10]
mov edi, eax
call main
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov edi, 1
lea ecx, [ebp - 0x10]
call main
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov edi, 1
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x426710
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
push dword [ebp + 0xc]
call main
add esp, 8
test eax, eax
jne 0x426738
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x1c
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [eax + 8]
call main
add esp, 0xc
test al, al
jne 0x42675c
mov eax, 0x57
mov esp, ebp
pop ebp
ret 0x1c
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edx, eax
cmp edx, 0xffffffff
jne 0x42677c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esp, ebp
pop ebp
ret 0x1c
cmp dword [ebp + 0x20], 0
jne 0x426797
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
xor eax, eax
mov esp, ebp
pop ebp
ret 0x1c
cmp dword [ebp - 4], 0
je 0x4267a8
mov eax, 1
mov esp, ebp
pop ebp
ret 0x1c
cmp edx, 0x7fffffff
ja 0x42679d
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
xor eax, eax
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x426a10
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call main
add esp, 8
test eax, eax
jne 0x426a33
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0x20]
push ebx
push esi
xor esi, esi
push edi
mov dword [eax], esi
call main
mov ebx, dword [ebp + 0x18]
mov edx, ebx
mov edi, dword [ebp + 0x14]
and edx, 4
mov dword [ebp + 0x18], edx
jne 0x426a5a
test bl, 2
je 0x426a72
push 0
push 1
push edi
lea ecx, [ebp - 0x20]
call main
test al, al
je 0x426bfa
mov edx, dword [ebp + 0x18]
test edi, edi
je 0x426bfa
cmp word [edi], si
je 0x426bfa
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp + 0x18], eax
jmp 0x426a90
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x426a90
sub ecx, dword [ebp + 0x18]
sar ecx, 1
cmp word [edi + ecx*2 - 2], 0x2e
je 0x426bfa
test edx, edx
je 0x426ac1
mov edx, 0xc0000000
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x14], 2
jmp 0x426afb
test bl, 2
je 0x426adf
push edi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
test al, 1
jne 0x426bfa
mov edx, 0xc0000000
mov dword [ebp + 0x10], esi
jmp 0x426af4
test bl, 1
je 0x426bfa
mov edx, SysReAllocString
mov dword [ebp + 0x10], 1
mov dword [ebp + 0x14], 3
mov eax, ebx
mov dword [ebp - 4], edx
and eax, 0x28
cmp al, 0x28
je 0x426bfa
mov ecx, ebx
mov eax, ebx
and ecx, 8
and eax, 0x20
add ecx, ecx
or ecx, eax
mov eax, 0x80
shl ecx, 0x17
test bl, 0x40
push 0
mov ebx, 0x4000100
cmovne eax, ebx
or ecx, eax
push ecx
push dword [ebp + 0x14]
mov dword [ebp - 8], ecx
push 0
push dword [ebp + 0x10]
push edx
push edi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [ebp + 0x18], eax
cmp eax, 0xffffffff
je 0x426bb8
mov ebx, dword [ebp - 8]
test ebx, 0x10000000
je 0x426bd6
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x426b74
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x426bd3
mov eax, dword [ebp - 8]
xor ecx, ecx
or ecx, dword [ebp - 0xc]
or eax, 0
mov dword [ebp - 0xc], eax
ja 0x426b8c
cmp ecx, 0xee6b280
jbe 0x426bd3
push dword [ebp + 0x18]
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0
and ebx, 0xefffffff
push ebx
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
push edi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [ebp + 0x18], eax
cmp eax, 0xffffffff
jne 0x426bd6
call dword [sym.imp.kernel32.dll_GetLastError]
lea ecx, [ebp - 0x20]
mov esi, eax
call main
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x426bff
push dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 8]
add eax, 8
push eax
call main
add esp, 0xc
test al, al
jne 0x426bff
push dword [ebp + 0x18]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov esi, 1
lea ecx, [ebp - 0x20]
call main
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x426c20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call main
add esp, 8
test eax, eax
jne 0x426c41
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x1c
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [eax + 8]
call main
add esp, 0xc
test al, al
jne 0x426c65
mov eax, 0x57
mov esp, ebp
pop ebp
ret 0x1c
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
test ebx, ebx
je 0x426ceb
mov esi, dword [ebp + 0x20]
test esi, esi
je 0x426ceb
push dword [ebp + 0x18]
push 0
push 0x11
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov dword [esi], eax
test eax, eax
jne 0x426c95
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push edi
lea ecx, [ebp + 0x10]
xor edi, edi
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x426ce0
push eax
push ebx
push dword [ebp + 0x18]
mov dword [ebx], edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x426cc6
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
push dword [esi]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
test edi, edi
je 0x426ce0
push dword [esi]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov dword [esi], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
pop esi
mov eax, 0x57
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x426d00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call main
add esp, 8
test eax, eax
jne 0x426d23
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x10
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
test edi, edi
je 0x426d7e
lea ecx, [ebp - 0x10]
call main
push esi
push 1
push edi
lea ecx, [ebp - 0x10]
call main
test al, al
jne 0x426d59
lea ecx, [ebp - 0x10]
call main
pop edi
lea eax, [esi + 1]
pop esi
mov esp, ebp
pop ebp
ret 0x10
push edi
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
jne 0x426d6c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x10]
call main
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov esi, 1
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x426d90
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call main
add esp, 8
test eax, eax
jne 0x426db3
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x10
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
test edi, edi
je 0x426e0d
lea ecx, [ebp - 0x10]
call main
push esi
push esi
push edi
lea ecx, [ebp - 0x10]
call main
test al, al
jne 0x426de8
lea ecx, [ebp - 0x10]
call main
pop edi
lea eax, [esi + 1]
pop esi
mov esp, ebp
pop ebp
ret 0x10
push edi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
jne 0x426dfb
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x10]
call main
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov esi, 1
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x426e20
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push edi
push ebx
call main
add esp, 8
test eax, eax
jne 0x426e49
pop edi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push esi
lea ecx, [ebp - 0x10]
call main
push 0
push 1
push dword [ebp + 0x18]
lea ecx, [ebp - 0x10]
call main
test al, al
je 0x426eeb
push 0
push 1
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x10]
call main
test al, al
je 0x426eeb
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
push dword [edx]
mov eax, dword [ecx]
push edi
push ebx
push ecx
call dword [eax + 0x30]
mov esi, eax
test esi, esi
jne 0x426ef0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call dword [sym.imp.MSVCR120.dll__wrename]
mov ecx, dword [ebp + 8]
add esp, 8
mov esi, eax
mov eax, dword [ecx]
push dword [ebp + 0x14]
push 1
test esi, esi
jne 0x426ecf
push dword [ebp + 0x1c]
push edi
push ebx
push ecx
call dword [eax + 0x2c]
lea ecx, [ebp - 0x10]
mov esi, eax
call main
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push dword [ebp + 0x18]
push edi
push ebx
push ecx
call dword [eax + 0x2c]
lea ecx, [ebp - 0x10]
call main
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov esi, 1
lea ecx, [ebp - 0x10]
call main
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x426f10
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call main
add esp, 8
test eax, eax
jne 0x426f31
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x18
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push dword [esi + 8]
call main
add esp, 0xc
test al, al
jne 0x426f57
mov eax, 0x57
pop esi
mov esp, ebp
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [esi]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [eax + 0x60]
test eax, eax
jne 0x426f7e
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_SetEndOfFile]
neg eax
sbb eax, eax
inc eax
pop esi
mov esp, ebp
pop ebp
ret 0x18