joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7bf48f
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x9c
mov eax, dword [0x830e54]
xor eax, ebp
mov dword [ebp + 0x68], eax
push ebx
mov ebx, dword [ebp + 0x78]
push esi
mov esi, dword [ebp + 0x74]
push edi
mov edi, dword [ebp + 0x7c]
push 0x100
call fcn.007c9be6
pop ecx
mov dword [esi], eax
test eax, eax
jne 0x7bf4c8
xor eax, eax
jmp 0x7bf634
push eax
lea eax, [ebp - 0x1c]
push eax
push 4
push ebx
push dword [esi + 0xc]
push edi
call fcn.0079ff34
add esp, 0x18
test eax, eax
jne 0x7bf4e6
or dword [esi + 0x20], reloc.ws2_32.dll_WSASetLastError
jmp 0x7bf4f2
push dword [ebp - 0x1c]
call fcn.00744cfa
pop ecx
mov dword [esi + 0x20], eax
push dword [esi + 4]
lea eax, [ebp - 0x18]
push eax
call fcn.007b4f50
pop ecx
pop ecx
test eax, eax
jne 0x7bf50a
or dword [esi + 0x1c], reloc.ws2_32.dll_WSASetLastError
jmp 0x7bf52a
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push 0x7f2624
push eax
call fcn.007e5efa
push dword [ebp - 0x1c]
call fcn.00744cfa
add esp, 0x10
mov dword [esi + 0x1c], eax
cmp dword [esi + 0x20], reloc.ws2_32.dll_WSASetLastError
jne 0x7bf544
cmp dword [esi + 0x1c], reloc.ws2_32.dll_WSASetLastError
jne 0x7bf544
push 0x7f6f18
push dword [esi]
call fcn.007c9c00
pop ecx
pop ecx
push dword [esi + 0x18]
call fcn.00744ca0
pop ecx
mov dword [ebp - 0x1c], eax
call fcn.00743f09
cmp eax, 1
jne 0x7bf5d0
lea eax, [ebp - 0x30]
push eax
call fcn.00743f1d
pop ecx
test eax, eax
je 0x7bf570
or eax, reloc.ws2_32.dll_WSASetLastError
jmp 0x7bf634
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
push 0xf003f
xor eax, eax
push eax
push eax
push eax
push dword [esi + 0xc]
push edi
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
test eax, eax
je 0x7bf5ad
cmp dword [ebp - 0x24], 2
je 0x7bf5ad
push 0x7f6f50
push dword [esi]
call fcn.007c9c00
pop ecx
pop ecx
jmp 0x7bf4c1
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.advapi32.dll_RegSetValueExA]
test eax, eax
je 0x7bf5eb
push dword [ebp - 0x20]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x7bf59a
push dword [esi]
lea eax, [ebp - 0x1c]
push eax
push 4
push 4
push ebx
push dword [esi + 0xc]
push edi
call fcn.007a0035
add esp, 0x1c
test eax, eax
je 0x7bf59a
push dword [esi + 0x18]
call fcn.00744ca0
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push 0x7f2624
push eax
call fcn.007e5e9e
add esp, 0x10
cmp dword [esi + 0x10], 0
push dword [esi + 4]
lea eax, [ebp - 0x18]
push eax
jne 0x7bf62a
call fcn.0075ecfc
pop ecx
pop ecx
test eax, eax
jne 0x7bf631
push 0x7f6eec
jmp 0x7bf59f
call fcn.007b5000
jmp 0x7bf61a
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x68]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.007c1e9d
add ebp, 0x6c
leave
ret

Function at 0x7c035d
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x7c2aa1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
je 0x7c2ae0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x7c2ae0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], reloc.ws2_32.dll_WSASetLastError
jne 0x7c2ae0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x7c2ae0
cmp dword [ecx + 0x74], 0xe
jbe 0x7c2ae0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x7daad7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.007da94d

Function at 0x7dd447
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.007dcf9a

Function at 0x7e6030
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x7e605d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], reloc.ws2_32.dll_WSASetLastError
jne 0x7e605d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0xb77a49
Capabilities:
Check for software breakpoints
Encode data using xor

Disassembly:
pop eax
add eax, 0xb
mov dword [ebx], eax
jmp 0xb77a32
add al, ch
adc al, byte [eax]
add byte [eax], al
call 0xb77a49
xor al, 0xed
add byte [ecx], dh
mov dword [ebp - 0x3c], edx
outsd dx, dword [esi]
xor ch, byte [esi + 0x54d60084]
inc ecx
jnp 0xb77a31
rcr dword [edx - 0x7f], 0xdb
sub dword [eax + 2], edx
xor al, 0x81
ret 0xdc46

Function at 0x10007760
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10009a72
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10011018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x1000785a
jmp 0x100077b0
mov ecx, dword [esi + 4]
push ebx
push ecx
call dword [sym.imp.USER32.dll_GetMenuItemID]
push 0x400
lea edx, [ebp - 0x10]
push edx
push ebx
mov ecx, esi
mov edi, eax
call dword [sym.imp.mfc100u.dll_CMenu::GetMenuStringW]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
push eax
push edi
push ebx
lea ecx, [ebp - 0x14]
push str._nLoad_i_d__ID_d____s__
push ecx
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
mov edx, dword [ebp - 0x14]
add esp, 0x14
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp edi, 0xffffffff
je 0x1000783a
push 0
test edi, edi
je 0x10007826
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call dword [0x1000a380]
mov esi, dword [ebp + 8]
call fcn.10007880
mov esi, dword [ebp + 0xc]
jmp 0x1000783a
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push 0
push 0x900
push edx
call dword [sym.imp.USER32.dll_AppendMenuW]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov eax, dword [esi + 4]
push eax
inc ebx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp ebx, eax
jl 0x100077b0
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x100087c2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10011018]
jne 0x100087cc
repz ret
jmp fcn.10008d8c
Function at 0x406fc0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x406ffe
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x406ff6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407000
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x406fe6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4070d0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407101
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407101
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407101
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401cd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0x40
push 0x1000
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
pop ebp
ret

Function at 0x401cf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop ebp
ret

Function at 0x401000
Capabilities:
Accept command line arguments
Check os version
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
push esi
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x104], 2
jne 0x401045
cmp dword [ebp - 0x110], 6
ja 0x40103e
jne 0x401045
cmp dword [ebp - 0x10c], 2
jb 0x401045
mov esi, 0x1100
jmp 0x401048
push 8
pop esi
push 0x104
lea eax, [ebp - 0x33c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x33c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp + eax*2 - 0x33c]
jmp 0x40107d
lea ecx, [eax - 2]
cmp word [ecx], 0x5c
je 0x401087
mov eax, ecx
lea ecx, [ebp - 0x33c]
cmp eax, ecx
ja 0x401072
push str.Tsu.dll
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
push 0
lea eax, [ebp - 0x33c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
jne 0x4010b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str._TsuMainW_8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4010a7
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call esi
jmp 0x4010ad
Function at 0x40388f
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x218
mov ebx, dword [esp + 0x234]
mov edi, dword [esp + 0x230]
mov esi, ebx
and esi, 0x300
lea eax, [esi + 9]
mov ecx, esp
push ecx
push eax
push edi
push dword [esp + 0x238]
call fcn.00407d0e
test eax, eax
jne 0x40397e
mov dword [esp + 4], esi
test bl, 2
je 0x40390a
xor eax, eax
lea ecx, [esp + 8]
mov dword [ecx], eax
mov edx, dword [esp]
sub esp, 0x20
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x2e]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x403960
lea ebp, [esp + 0xe]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push 0x105
push ebp
push 0
push dword [esp + 0xc]
call esi
test eax, eax
jne 0x40393a
test bl, 1
jne 0x403960
push ebx
push ebp
push dword [esp + 8]
call fcn.0040388f
test eax, eax
je 0x403914
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406dc9
test eax, eax
je 0x403970
push 0
push dword [esp + 8]
push edi
push dword [esp + 0x238]
call eax
jmp 0x40397e
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x40397e
push edi
push dword [esp + 0x230]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add esp, 0x218
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x403d6f
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x94
mov edi, dword [esp + 0xb4]
mov esi, dword [esp + 0xb0]
mov eax, dword [esp + 0xa8]
test esi, esi
mov ebp, 0x8000
cmovne ebp, edi
mov ecx, 0x4381f0
cmovne ecx, esi
mov dword [esp + 4], ecx
test eax, eax
js 0x403dbf
add eax, dword [0x4341e8]
xor ecx, ecx
push ecx
push ecx
push eax
push dword [0x418010]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, esp
push 4
push eax
push dword [0x418010]
call fcn.004076d3
test eax, eax
je 0x403f9e
mov ebx, dword [esp]
test ebx, ebx
js 0x403e07
test esi, esi
je 0x403f55
cmp ebx, edi
cmovl edi, ebx
push edi
push esi
push dword [0x418010]
call fcn.004076d3
test eax, eax
mov esi, 0xfffffffd
cmovne esi, edi
jmp 0x403fa3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 8], eax
mov ecx, 0x4401f0
call fcn.0040830c
mov edi, 0x7fffffff
and edi, dword [esp]
mov dword [esp], edi
je 0x403fb2
xor esi, esi
mov eax, 0x4000
mov dword [esp + 0x10], edi
cmp edi, eax
cmovge edi, eax
push edi
push 0x4341f0
push dword [0x418010]
call fcn.004076d3
test eax, eax
je 0x403f9e
mov dword [0x440208], 0x4341f0
mov dword [0x44020c], edi
sub dword [esp], edi
mov eax, dword [esp + 4]
mov dword [esp + 4], eax
mov dword [0x440210], eax
mov dword [0x440214], ebp
mov ecx, 0x4401f0
call fcn.00408341
test eax, eax
js 0x403fb6
mov ebx, eax
mov dword [esp + 0xc], ebp
mov edi, dword [0x440210]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
mov eax, dword [0x40b054]
test byte [eax + 0x34], 1
je 0x403ef7
mov ecx, ebp
sub ecx, dword [esp + 8]
mov eax, dword [esp]
cmp ecx, 0xc8
ja 0x403ec1
test eax, eax
jne 0x403ef7
mov edx, dword [esp + 0x10]
mov ecx, edx
sub ecx, eax
push edx
push 0x64
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
push str....__d__
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 0
call fcn.00406931
mov dword [esp + 8], ebp
mov eax, dword [esp + 4]
cmp edi, eax
je 0x403f3f
sub edi, eax
cmp dword [esp + 0xb0], 0
mov ebp, dword [esp + 0xc]
je 0x403f18
sub ebp, edi
mov eax, dword [0x440210]
jmp 0x403f32
push edi
push eax
push dword [esp + 0xb4]
call fcn.00407705
test eax, eax
mov eax, dword [esp + 4]
je 0x403fbd
add esi, edi
cmp ebx, 1
jne 0x403e6c
jmp 0x403fa3
mov edi, dword [esp]
test edi, edi
mov ebp, dword [esp + 0xc]
mov eax, 0x4000
jg 0x403e37
jmp 0x403fa3
xor esi, esi
test ebx, ebx
je 0x403fa3
mov edi, dword [esp + 0xac]
cmp ebx, ebp
cmovge ebx, ebp
push ebx
push 0x4341f0
push dword [0x418010]
call fcn.004076d3
test eax, eax
je 0x403f9e
push ebx
push 0x4341f0
push edi
call fcn.00407705
test eax, eax
je 0x403fbd
add esi, ebx
mov eax, dword [esp]
sub eax, ebx
mov dword [esp], eax
mov ebx, eax
test eax, eax
jg 0x403f62
jmp 0x403fa3
mov esi, 0xfffffffd
mov eax, esi
add esp, 0x94
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
xor esi, esi
jmp 0x403fa3
mov esi, 0xfffffffc
jmp 0x403fa3
mov esi, 0xfffffffe
jmp 0x403fa3
Function at 0x406d14
Capabilities:
Create directory

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [esp + 0x30]
lea ebx, [esp + 0xc]
mov dword [ebx], 0x40001
mov eax, 0x40b480
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
xor esi, esi
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], 0x40b470
mov eax, esp
mov dword [eax], 0xc
mov dword [eax + 4], ebx
mov dword [eax + 8], esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x406d86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0xb7
jne 0x406d86
push ebx
push 0x80000007
push edi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
mov esi, 0
test eax, eax
jne 0x406d86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
ret 4

Function at 0x406e02
Capabilities:
Create process on windows

Disassembly:
push esi
sub esp, 0x38
mov eax, dword [esp + 0x40]
mov dword [0x46c310], 0x44
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], ecx
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
movaps xmm0, xmmword [0x40b410]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 0x20], 0x46c310
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x406e62
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov esi, dword [esp + 0x28]
mov eax, esi
add esp, 0x38
pop esi
ret 4

Function at 0x406e6b
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0x3c
mov dword [eax + 0x24], 0
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExW]

Function at 0x406f17
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebx, dword [esp + 0x14]
push ebx
call fcn.00406f68
xor esi, esi
cmp eax, 0xffffffff
je 0x406f5f
mov edi, eax
mov eax, dword [esp + 0x18]
mov ebp, eax
test al, 1
jne 0x406f41
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x406f48
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x406f51
xor esi, esi
inc esi
jmp 0x406f5f
mov eax, ebp
test al, 4
jne 0x406f5f
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x406f68
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push edi
push esi
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp eax, 0xffffffff
je 0x406f89
mov eax, esi
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
pop edi
ret 4
Function at 0x407223
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, 0x470354
push 0x2000
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
call fcn.0040743a
xor ebx, ebx
test eax, eax
je 0x4072b5
mov esi, eax
push eax
call fcn.004074af
mov eax, dword [0x40b3f8]
test byte [eax], 0x80
je 0x407266
movzx eax, word [esi]
test eax, eax
je 0x4072b5
cmp eax, 0x5c
je 0x4072b5
mov edi, 0x470354
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
sub esi, edi
sar esi, 1
cmp eax, esi
jle 0x4072a0
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x470354
call fcn.0040737f
test eax, eax
je 0x407293
test byte [eax], 0x10
je 0x4072b5
push edi
call fcn.004072da
push edi
call ebp
cmp eax, esi
jg 0x407280
push edi
call fcn.004073a7
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x407350
Capabilities:
Move file

Disassembly:
push edi
push esi
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
push 5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x407372
push edi
push esi
call fcn.004077da
add esp, 8
mov eax, dword [0x40b054]
inc dword [eax + 0x10]
pop esi
pop edi
ret 8

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

Disassembly:
push ebx
push edi
push esi
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove eax, ecx
push ecx
push eax
push ebx
push ecx
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
pop esi
pop edi
pop ebx
ret 0xc

Function at 0x407665
Capabilities:
Get common file path

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov esi, dword [esp + 0x1c]
mov ebx, 0xffffff9b
mov ebp, esp
mov edi, dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
inc ebx
je 0x4076c0
mov dword [esp + 4], 0x61
mov dword [esp], 0x73006e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov edx, 0x4ec4ec4f
mul edx
shr edx, 3
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
add eax, edx
sub ecx, eax
add word [esp + 4], cx
push esi
push 0
push ebp
push dword [esp + 0x2c]
call edi
test eax, eax
je 0x40767d
jmp 0x4076c7
mov word [esi], 0
xor esi, esi
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x4076d3
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
push eax
mov esi, dword [esp + 0x18]
mov edi, esp
push 0
push edi
push esi
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
cmp dword [edi], esi
sete cl
and cl, al
movzx eax, cl
add esp, 4
pop esi
pop edi
ret 0xc
Function at 0x407705
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push eax
mov esi, dword [esp + 0x18]
mov edi, esp
push 0
push edi
push esi
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
cmp dword [edi], esi
sete cl
and cl, al
movzx eax, cl
add esp, 4
pop esi
pop edi
ret 0xc

Function at 0x407737
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x1c]
xor ebx, ebx
push 1
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor esi, esi
inc esi
test eax, eax
jne 0x4077a9
lea eax, [esp + 4]
lea ecx, [esp + 2]
push 0
push eax
push 2
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407785
cmp dword [esp + 4], 2
jne 0x407785
movzx eax, word [esp + 2]
cmp eax, 0xfeff
jne 0x407785
mov esi, ebx
jmp 0x4077a9
cmp dword [esp + 0x20], 0
je 0x40779d
xor ebx, ebx
push 1
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x4077b4
xor eax, eax
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
ret 8
lea esi, [esp + 8]
push ebx
push esi
push 2
push 0x40b690
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esi], 2
mov ecx, 0x80004005
cmovne ebx, ecx
test eax, eax
cmove ebx, ecx
jmp 0x407781