joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ed7c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x486f30]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41edbc
cmp byte [ebx], 0xa
jne 0x41edbc
or byte [eax + edi + 0x28], 4
jmp 0x41edc1
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41eebf
mov al, byte [edx]
cmp al, 0x1a
je 0x41eea1
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41edf0
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ee15
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ee1f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41edd2
jmp 0x41eebf
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ee9c
cmp dword [ebp - 0xc], 0
je 0x41ee9c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x486f30]
test byte [eax + edi + 0x28], 0x48
je 0x41ee76
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ee61
mov byte [esi], dl
jmp 0x41ee72
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x486f30]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41eebf
cmp byte [ebp - 1], 0xa
jne 0x41ee85
cmp esi, ebx
jne 0x41ee85
mov byte [esi], 0xa
jmp 0x41eebe
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418a30
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41eebf
mov byte [esi], 0xd
jmp 0x41eebe
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x486f30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41eebb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41eebf
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41eec8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x486f30]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ef0b
cmp word [esi], dx
jne 0x41ef0b
or byte [edi + eax + 0x28], 4
jmp 0x41ef10
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41f063
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41f043
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41ef52
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ef88
cmp eax, edx
jae 0x41ef94
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41ef2a
jmp 0x41f063
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f03f
cmp dword [ebp - 0x14], 0
je 0x41f03f
mov eax, dword [ebx*4 + 0x486f30]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41f017
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41efe0
mov word [esi], cx
jmp 0x41f013
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x486f30]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x486f30]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x486f30]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41f063
pop ebx
cmp word [ebp - 4], bx
jne 0x41f028
cmp esi, dword [ebp + 0xc]
jne 0x41f028
mov word [esi], bx
jmp 0x41f060
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418a30
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41f063
push 0xd
jmp 0x41f05c
mov ecx, dword [ebx*4 + 0x486f30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f05a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f063
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40349c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.0040e49a
test eax, eax
je 0x403563
push esi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x40355f
cmp dword [ebp - 4], 4
jl 0x40355f
mov eax, dword [esi + 4]
push ebx
mov ebx, dword [esi + 0xc]
push edi
push 1
push str.TEMPLATEHELP
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 8]
push ebx
mov dword [ebp - 8], eax
call dword [sym.imp.Mso30Win32Client.dll_Ordinal_1298]
cmp dword [ebp - 4], 5
mov edi, eax
jl 0x403502
cmp dword [esi + 0x10], 0
jne 0x40350f
test edi, edi
je 0x40350f
push 0
call fcn.004025c4
jmp 0x40355d
cmp dword [ebp - 4], 5
jl 0x40355d
push dword [ebp - 8]
mov esi, dword [esi + 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.Mso98Win32Client.dll_Ordinal_1401]
test edi, edi
je 0x40353f
call fcn.00403951
cmp eax, 2
je 0x403536
push 3
jmp 0x403508
push esi
call dword [sym.imp.Mso98Win32Client.dll_Ordinal_1048]
jmp 0x403558
push 1
push 0x42c964
push ebx
call dword [sym.imp.Mso30Win32Client.dll_Ordinal_1298]
test eax, eax
je 0x40355d
push esi
call dword [sym.imp.Mso98Win32Client.dll_Ordinal_342]
mov dword [0x445344], eax
pop edi
pop ebx
xor eax, eax
inc eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403705
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4037c6
cmp byte [0x445338], 0
jne 0x4037c6
cmp dword [esi + 4], 0x100
jne 0x40378a
cmp dword [esi + 8], 0x54
jne 0x403767
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x403767
cmp dword [0x44544c], 0
je 0x403767
mov edi, 0x44544c
mov ecx, edi
call fcn.00401e5a
test al, al
push ecx
sete al
mov ecx, edi
movzx eax, al
push eax
call fcn.00401ec5
push ecx
mov ecx, 0x445320
call fcn.00403a38
test eax, eax
je 0x4037c6
test byte [eax + 0x7e], 8
je 0x4037c6
mov ecx, dword [0x445458]
push esi
mov eax, dword [ecx]
call dword [eax + 0x20]
jmp 0x4037c8
cmp dword [esi + 4], 0x104
jne 0x403767
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x403767
mov eax, dword [esi + 8]
sub eax, 0x24
je 0x4037bb
sub eax, 1
je 0x4037b7
dec eax
sub eax, 1
jne 0x403767
push 2
jmp 0x4037bd
push 1
jmp 0x4037bd
push 6
call fcn.004036af
mov al, 1
jmp 0x4037c8
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x404fd3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test edx, edx
jne 0x404fe6
push 0xd
pop eax
jmp 0x40502a
push esi
xor eax, eax
push edi
mov dword [ebp + 0xc], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp + 0xc]
jne 0x404ff9
sub ecx, dword [ebp - 4]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x404ff1
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x405697
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x43c4e8]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
mov ebx, ecx
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
push esi
or eax, 0x2001f
mov dword [esp + 0x1c], ecx
push eax
push ecx
push dword [ebx]
lea ecx, [esp + 0x18]
call fcn.00405639
jmp 0x4056ef
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.00405697
mov esi, eax
test esi, esi
jne 0x405743
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4056e1
cmp dword [esp + 0xc], esi
je 0x405732
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
push dword [esp + 0x1c]
mov ecx, ebx
mov dword [esp + 0x14], esi
call fcn.0040580f
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x405754
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004282ce
mov esp, ebp
pop ebp
ret 4
Function at 0x4061f5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x42a0b8
call fcn.00429a51
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x406272
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x406272
call fcn.00404a21
mov esi, eax
jmp 0x406378
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x406295
call fcn.00404a21
jmp 0x40636b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x40628b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x4062c8
mov esi, 0x8007000e
jmp 0x40636d
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x4062fc
cmp eax, 0xffffffff
ja 0x4062fc
cmp eax, 0x400
jbe 0x4062ee
push eax
lea ecx, [ebp - 0x418]
call fcn.004049fb
jmp 0x40631a
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x40631a
push 0x80070216
call fcn.004054ee
mov eax, 0x40630c
ret
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x4062be
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x40628b
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x430]
push dword [ebp - 0x418]
call fcn.0040609e
mov esi, eax
test edi, edi
je 0x406378
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x406391
lea ecx, [ebp - 0x418]
call fcn.004049e9
lea ecx, [ebp - 0x428]
call fcn.00405031
mov eax, esi
call fcn.004299a6
ret 0x10
Function at 0x406882
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea eax, [ebp - 4]
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [ebp - 4]
mov ebx, eax
cmp edx, 3
jge 0x4068b6
mov dword [0x445334], 5
xor eax, eax
jmp 0x40696c
push esi
xor esi, esi
mov ecx, esi
test edx, edx
jle 0x4068cc
mov eax, dword [ebx + ecx*4]
cmp word [eax], si
je 0x406923
inc ecx
cmp ecx, edx
jl 0x4068bf
mov ecx, dword [ebx + 4]
lea esi, [edi + 0x410]
push 0x104
mov edx, esi
call fcn.00401c61
push esi
call dword [sym.imp.Mso30Win32Client.dll_Ordinal_22]
mov ecx, dword [ebx + 8]
mov esi, 0x104
push esi
mov edx, edi
call fcn.00401c61
lea eax, [edi + 0x208]
test edi, edi
je 0x406953
test eax, eax
je 0x406953
mov esi, dword [sym.imp.Mso30Win32Client.dll_Ordinal_141]
push 1
push str.Microsoft_Office
push edi
call esi
test eax, eax
je 0x406927
cmp edi, eax
jne 0x406927
add eax, 0x22
jmp 0x406940
xor eax, eax
jmp 0x40696b
push 1
push 0x42dfbc
push edi
call esi
test eax, eax
je 0x40693e
cmp edi, eax
jne 0x40693e
add eax, 0x14
jmp 0x406940
mov eax, edi
mov esi, 0x104
lea edx, [edi + 0x208]
push esi
mov ecx, eax
call fcn.00401c61
cmp dword [ebp - 4], 4
jl 0x406968
mov ecx, dword [ebx + 0xc]
lea edx, [edi + 0x1660]
push esi
call fcn.00401c61
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406d37
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x43c4e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea edi, [ecx + 0x618]
xor eax, eax
cmp ax, word [edi]
jne 0x406def
lea eax, [ebp - 0x82c]
mov dword [ebp - 0x82c], 0x824
push eax
lea eax, [ebp - 0x828]
xor esi, esi
push eax
push esi
call dword [sym.imp.urlmon.dll_ObtainUserAgentString]
test eax, eax
js 0x406dde
lea ecx, [ebp - 0x828]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406d8c
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x830], eax
cmp eax, 0x3fffffff
jg 0x406dd8
add eax, eax
call fcn.00429cab
mov ebx, esp
test ebx, ebx
je 0x406dd8
push dword [ebp - 0x830]
xor eax, eax
push ebx
push 0xffffffffffffffff
mov word [ebx], ax
lea eax, [ebp - 0x828]
push eax
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
neg esi
sbb esi, esi
and esi, ebx
mov ecx, esi
test esi, esi
jne 0x406de3
mov ecx, str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1_
push 0x824
mov edx, edi
call fcn.00401c61
mov eax, edi
lea esp, [ebp - 0x83c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004282ce
mov esp, ebp
pop ebp
ret
Function at 0x408375
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104c
call fcn.00429cbe
mov eax, dword [0x43c4e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x1048
xor ebx, ebx
lea eax, [ebp - 0x104c]
push ebx
push eax
mov esi, ecx
call sub.VCRUNTIME140.dll_memset
add esi, 0x622
add esp, 0xc
cmp word [esi], bx
je 0x4083b9
mov eax, esi
jmp 0x408448
push ecx
push esi
call fcn.00408458
test al, al
je 0x408443
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4083dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408443
push 0x824
lea eax, [ebp - 0x104c]
push eax
push ebx
push 0x42ee18
push esi
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_1126]
test eax, eax
setne al
test al, al
je 0x408443
lea eax, [ebp - 0x104c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
lea eax, [ebp - 0x104c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
test al, al
je 0x408443
push 0x824
push esi
lea eax, [ebp - 0x104c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
setne al
test al, al
jne 0x4083b2
xor eax, eax
mov word [esi], ax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004282ce
mov esp, ebp
pop ebp
ret

Function at 0x408458
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov ebx, 0x43fc68
mov word [edi], ax
cmp ax, word [0x43fc68]
jne 0x4084d6
push 1
push 0x20
push ebx
mov ecx, 0x445320
call fcn.00402ac1
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x408491
xor al, al
jmp 0x4084e6
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408496
sub ecx, edx
sar ecx, 1
je 0x40848d
push 0x5c
pop eax
cmp ax, word [ecx*2 + 0x43fc66]
je 0x4084c5
push 0x104
push ebx
push 0x42ead8
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_502]
push 0x104
push ebx
push str.MsOfficeHelp16_
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_502]
push 0x824
mov edx, edi
mov ecx, ebx
call fcn.00401c61
mov al, 1
pop edi
pop ebx
pop ebp
ret 8

Function at 0x4084ec
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 1
xor edi, edi
mov word [ebp - 4], 0xfeff
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_913]
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x408523
xor al, al
jmp 0x408553
push edi
lea ecx, [ebp - 8]
push ecx
push 2
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40854d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
or dword [esi], 0xffffffff
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi], 0xffffffff
setne al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40900e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
call fcn.004013ad
add eax, eax
jne 0x409025
mov al, 1
jmp 0x40903b
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x409094
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], ecx
mov edx, esi
xor ecx, ecx
push edi
cmp cx, word [esi]
je 0x4091aa
mov dword [ebp - 0xc], 0x22
movzx ecx, word [esi]
xor edi, edi
mov dword [ebp - 8], 0x26
xor ebx, ebx
cmp word [ebp - 8], cx
je 0x4090fe
mov dword [ebp - 8], 0x3c
cmp word [ebp - 8], cx
je 0x4090fe
mov dword [ebp - 8], 0x3e
cmp word [ebp - 8], cx
je 0x4090fe
mov dword [ebp - 8], 0x27
cmp word [ebp - 8], cx
je 0x4090fe
cmp word [ebp - 0xc], cx
jne 0x409180
test eax, eax
je 0x40911b
push 0
lea ecx, [ebp + 8]
push ecx
push eax
push edx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4091b5
movzx eax, word [esi]
push 0x22
pop ecx
sub eax, ecx
je 0x40915a
sub eax, 4
je 0x409151
sub eax, 1
je 0x40914a
sub eax, 0x15
je 0x409143
dec eax
sub eax, 1
jne 0x409162
mov edi, str.gt_
push 8
jmp 0x409161
mov edi, str.lt_
jmp 0x40913f
mov edi, str.apos_
jmp 0x40915f
mov edi, str.amp_
push 0xa
jmp 0x409161
mov edi, str.quot_
push 0xc
pop ebx
push 0
lea eax, [ebp + 8]
push eax
push ebx
mov ebx, dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4091b5
push 0xfffffffffffffffe
pop eax
lea edx, [esi + 2]
jmp 0x409183
mov ebx, dword [ebp - 4]
add esi, 2
xor ecx, ecx
add eax, 2
cmp cx, word [esi]
jne 0x4090b9
test eax, eax
je 0x4091aa
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4091b5
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor al, al
jmp 0x4091ac
Function at 0x40a262
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a14
call fcn.00429cbe
mov eax, dword [0x43c4e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x1a14], 0x104
mov word [ebx], cx
lea ecx, [ebp - 0x1a14]
push edi
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
mov esi, eax
test esi, esi
js 0x40a2dc
push 1
push edi
push 0x80
push 3
push edi
push 1
push Ordinal_1
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_913]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40a2f2
mov esi, 0x80004005
test esi, esi
mov ecx, dword [ebp - 4]
setns al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004282ce
mov esp, ebp
pop ebp
ret 0xc
push 0
lea eax, [ebp - 0x1a10]
mov esi, 0x1800
push eax
push esi
lea eax, [ebp - 0x1a0c]
mov dword [ebp - 0x1a10], esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
test eax, eax
jne 0x40a327
mov esi, 0x80004005
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a2da
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1a10]
shr eax, 1
lea eax, [eax*2 - 2]
cmp eax, esi
jae 0x40a39c
xor ecx, ecx
push 1
mov word [ebp + eax - 0x1a0c], cx
lea eax, [ebp - 0x1a0c]
push str._query_
push eax
call dword [sym.imp.Mso30Win32Client.dll_Ordinal_141]
mov edi, eax
test edi, edi
je 0x40a2d5
add edi, 0xe
push 0x3c
push edi
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x40a2d5
push dword [ebp + 0x10]
xor ecx, ecx
xor esi, esi
push ebx
push edi
mov word [eax], cx
call fcn.0040a542
test al, al
jne 0x40a2da
jmp 0x40a2d5
call fcn.00428a82
int3

Function at 0x40a976
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x106c
call fcn.00429cbe
mov eax, dword [0x43c4e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x1048
xor edi, edi
lea eax, [ebp - 0x104c]
push edi
push eax
mov esi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, esi
call fcn.00408098
push edi
push str.CLViewServer12
push edi
push edi
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
jne 0x40aa54
push ecx
lea eax, [ebp - 0x104c]
push eax
call fcn.00408458
test al, al
je 0x40aa54
lea eax, [ebp - 0x104c]
test eax, eax
je 0x40aa0d
xor eax, eax
cmp ax, word [ebp - 0x104c]
je 0x40aa54
lea ecx, [ebp - 0x104c]
call fcn.004013ad
push 0x5c
pop ecx
cmp cx, word [ebp + eax*2 - 0x104e]
jne 0x40aa0d
xor ecx, ecx
mov word [ebp + eax*2 - 0x104e], cx
xor eax, eax
cmp ax, word [ebp - 0x104c]
je 0x40aa54
push 7
pop ecx
lea edi, [ebp - 0x106c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, 0x414
mov word [ebp - 0x105c], ax
lea eax, [ebp - 0x104c]
mov dword [ebp - 0x1064], eax
lea eax, [ebp - 0x106c]
push eax
mov dword [ebp - 0x1068], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004282ce
mov esp, ebp
pop ebp
ret