joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10012d54
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x101987c4], 0xbaf
mov dword [0x101987c0], 0x77a
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
jmp 0x10012dc4
lea eax, [ebp - 0x20]
mov dword [0x101987c4], 0x8c2
mov dword [0x101987c0], 0x2310
mov dword [ebp - 0x30], eax
call fcn.10012b07
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call fcn.10012753
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
je 0x10012ea2
jmp 0x10012df0
mov eax, dword [ebp - 0x2c]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x1017aa74]
mov dh, byte [eax + 0x1017aa45]
sub dh, dl
mov byte [ebp + eax - 0x20], dh
cmp ecx, 0xe
mov dword [ebp - 0x2c], ecx
je 0x10012d81
jmp 0x10012dc4
mov eax, dword [ebp - 0x34]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov ecx, dword [0x101987c0]
add ecx, 0xffffee8b
mov dword [0x101987c0], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x24]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.10013346
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [0x101987c4], 0x322
mov dword [ecx + 0xd0], 0x4550
mov dword [0x101987c0], 0xfb1
add ecx, 0xffc00000
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x18], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x3c], ecx
cmp ecx, 0
mov dword [ebp - 0x38], eax
je 0x10012ea2
mov eax, dword [ebp - 0x3c]
add eax, 0x277c
mov ecx, dword [0x101987c4]
add ecx, 0xfffff237
mov dword [0x101987c0], ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
add esp, 0x4c
pop ebp
ret
Function at 0x100131b2
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x101987c4]
add eax, 0xfffffd5c
mov dword [0x101987c4], eax
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [0x101987c0], 0x2650
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x101987c4], 0x129
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1001328a
mov eax, 1
mov dword [0x101987c4], 0xfa2
mov dword [ebp - 0x14], eax
jmp 0x10013282
mov eax, 0x199d
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x1c], eax
jne 0x10013334
mov eax, 0xfffff9e7
mov dword [0x101987c0], 0xffffe3d2
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x1c], eax
jne 0x10013334
mov eax, 0x29da
mov dword [0x101987c0], 0x13c5
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x1c], eax
je 0x10013302
jmp 0x10013334
mov eax, dword [ebp - 0x14]
add esp, 0x24
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
je 0x100132b7
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x24], eax
jl 0x1001328a
mov eax, dword [ebp - 0x24]
mov ecx, 0x35f0
mov dword [0x101987c0], 0x1fdb
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
jne 0x10013334
mov eax, 0x199d
mov dword [0x101987c0], 0x388
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x1c], eax
je 0x10013218
jmp 0x10013334
mov eax, 0x29da
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x1c], eax
jne 0x10013334
mov eax, 0x29da
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x1c], eax
je 0x10013204
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [0x101987c0], eax
mov dword [ebp - 0x14], ecx
jmp 0x10013282
Function at 0x10013788
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.100139fd
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov esi, dword [eax + esi + 0x78]
mov dword [0x101987c0], 0xda3
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x101987c4], 0xffffecc6
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
je 0x100138d8
jmp 0x10013867
mov al, byte [ebp - 0x25]
test al, 1
jne 0x10013836
jmp 0x100138b0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], edx
jmp 0x1001387e
mov eax, dword [ebp - 0x44]
add eax, 1
mov cl, byte [ebp - 0x45]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x25]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x40], eax
jne 0x1001387e
jmp 0x100137e4
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x101987c0], 0x47ea
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [0x101987c4], 0x114b
mov dword [ebp - 0x24], edx
jmp 0x100138d8
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
jmp 0x100137f0
mov eax, dword [ebp - 0x40]
mov ecx, eax
mov edx, dword [ebp - 0x3c]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x45], bh
mov byte [ebp - 0x25], cl
je 0x100137e4
jmp 0x1001380c
xor eax, eax
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov edx, dword [ebp - 0x38]
add edx, 2
mov esi, dword [ebp - 0x18]
cmp ecx, esi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x24], eax
jb 0x100137f0
mov eax, dword [ebp - 0x24]
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10013b94
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x101987c8], 0
mov dword [0x101987cc], 0
mov dword [0x101987d8], 0
mov dword [0x101987c0], 0x2bc
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x10013cef
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov edi, eax
add edi, 1
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x101987c8], edx
mov dword [0x101987c0], 0x97e
mov ecx, dword [ebp - 0x20]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x30]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x101987cc], edx
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x101987d0], cl
mov ebx, dword [0x101987c4]
add ebx, 0xfffff27d
mov dword [0x101987c0], ebx
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x101987d0]
mov edx, dword [0x101987cc]
mov byte [ebx + edx], cl
mov edx, dword [0x101987c8]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x101987cc]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x101987d8], ecx
mov dword [0x101987c0], 0x2e2
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
xor cl, byte [edx + esi]
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], cl
mov dword [0x101987c0], 0x130b
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
mov dword [ebp - 0x38], edi
je 0x10013cef
mov eax, dword [0x101987cc]
mov ecx, dword [0x101987c8]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], edx
jmp 0x10013bf7
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10013cf7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
mov dword [0x101987c0], 0x1b4a
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.1001348e
lea ecx, [0x100128c3]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x74], edx
mov dword [esp + 0x50], 0x14ae00
mov dword [0x101987c4], 0x894
mov edx, dword [0x101987ac]
mov dword [esp + 0x2c], edx
mov edx, dword [0x101987b0]
mov dword [esp + 0x34], edx
mov edx, dword [0x101987b4]
mov dword [esp + 0x58], edx
mov edx, dword [0x101987b8]
mov dword [esp + 0x4c], edx
mov edx, dword [0x101987bc]
mov dword [esp + 0x60], edx
mov dword [0x101987c0], 0x1e0a
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x10013d9f
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x10013d8d
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
jne 0x10013d8d
mov eax, dword [esp + 0x10]
mov dword [esp + 0x6c], eax
mov dword [0x101987c4], 0xe2d
mov dword [0x101987c0], 0xf67
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x44], edx
call fcn.100131b2
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
jne 0x10013e33
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10012d54
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x101987c4], 0x5b1
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x4068c1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068e5
xor eax, eax
test eax, eax
je 0x4068f8
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068f8
xor ecx, ecx
jmp 0x4068fb
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a1e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dec], 0
push esi
jne 0x406a55
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a2f
mov dword [ecx*4 + 0x427de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406a2a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a86
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427de8]
xor eax, esi
inc ecx
dec edx
jne 0x406a68
pop edi
not eax
pop esi
ret 0xc

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x401359
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 0x104
push ebx
lea esi, [edi + 4]
mov dword [edi], vtable.CArmReport.0
push esi
call fcn.0041c040
add esp, 0xc
push esi
push ebx
push ebx
push 0x24
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4013a5
push 0x436f88
mov ebx, 0x104
push ebx
push esi
call fcn.00401bc1
push str.ArmReport.ini
push ebx
push esi
call fcn.00401bc1
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x4015df
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x401610
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
add eax, 4
push eax
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x401610
cmp dword [ebp - 4], 0
setne al
mov byte [esi], al
mov al, 1
jmp 0x401612
xor al, al
pop esi
leave
ret 8

Function at 0x4016fd
Capabilities:
Write file on windows

Disassembly:
push 0x9c
mov eax, 0x43426e
call fcn.0041ab20
mov esi, ecx
mov eax, 0xfeff
xor ebx, ebx
mov word [ebp - 0x78], ax
mov eax, vtable.ATL::CAccessToken.0
mov byte [ebp - 0x71], bl
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push eax
call fcn.00401572
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 2
mov dword [esp], 0x2000a
call fcn.0040187b
push 2
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x9c]
call fcn.004016b9
lea eax, [ebp - 0x71]
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x8c]
call fcn.004015df
push ebx
cmp byte [ebp - 0x71], bl
je 0x4017d9
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa8], 0xc
push eax
push 1
push str.D:_D_OICI_GA___BG__D_OICI_GA___AN__A_OICI_GA___AU_
mov dword [ebp - 0xa0], ebx
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x401833
push ebx
push 0x80
push 1
lea eax, [ebp - 0xa8]
push eax
jmp 0x4017e1
push 0x80
push 1
push ebx
push ebx
push 0x40000000
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401833
push ebx
lea eax, [ebp - 0x7c]
push eax
push 2
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401833
push ebx
lea eax, [ebp - 0x7c]
mov edi, str._SESSION_
push eax
push edi
call fcn.0041fcde
pop ecx
lea eax, [eax*2 + 2]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40183d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x401844
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x70]
call fcn.004014b7
mov esi, vtable.ATL::CAccessToken.0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x8c], esi
call fcn.00401620
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
call fcn.00401620
mov eax, ebx
call fcn.0041aaca
ret
Function at 0x401950
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea ebx, [ecx + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x40196b
push 3
pop eax
jmp 0x401a13
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40197b
push 2
jmp 0x401965
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x82
push 2
pop edx
add esi, esi
cmp esi, 0x821
jae 0x401a0e
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040b7c2
lea ecx, [esi + esi]
mov dword [edi], eax
push ecx
push 0
push eax
call fcn.0041c040
add esp, 0x10
push ebx
push esi
push dword [edi]
push 0
push dword [ebp + 8]
push str.SESSION
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 4], eax
test eax, eax
je 0x4019d8
lea ecx, [esi - 1]
cmp eax, ecx
jne 0x4019ea
push dword [edi]
call fcn.0040b7bd
and dword [edi], 0
mov eax, dword [ebp - 4]
pop ecx
test eax, eax
je 0x401a07
inc eax
push 2
pop edx
cmp esi, eax
jbe 0x401988
cmp dword [edi], 0
je 0x401a0e
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x401a0e
xor eax, eax
jmp 0x401a11
mov eax, 0xe8
jmp 0x401a11
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x401a3e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 8], edi
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x401a63
push 3
pop eax
jmp 0x401b89
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401a8a
and dword [ebp - 4], ebx
mov ecx, edi
call fcn.004016fd
mov ebx, eax
test ebx, ebx
jne 0x401b89
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0
je 0x401b67
cmp dword [ebp - 4], 0
je 0x401b67
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.00401950
test eax, eax
jne 0x401b67
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x401b67
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.0041c19a
pop ecx
pop ecx
test eax, eax
je 0x401af1
push 2
push dword [ebp - 4]
call fcn.0041aa96
pop ecx
pop ecx
xor eax, eax
jmp 0x401b89
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, edi
xor ecx, ecx
push 2
pop edx
lea esi, [eax*2 + 2]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040b7c2
pop ecx
push dword [ebp - 4]
mov edi, eax
push esi
push edi
call fcn.00401b90
push dword [ebp + 0x10]
push esi
push edi
call fcn.00401bc1
push dword [ebp + 0xc]
push esi
push edi
call fcn.00401bc1
mov eax, dword [ebp - 8]
add eax, 4
push eax
push edi
push dword [ebp + 8]
push str.SESSION
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 2
push dword [ebp - 4]
mov esi, eax
call fcn.0041aa96
push edi
call fcn.0040b7bd
add esp, 0xc
jmp 0x401b7b
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.SESSION
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, eax
test esi, esi
jne 0x401b87
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4028c2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
lea eax, [ebp - 8]
xor esi, esi
push eax
push 0x20019
push esi
push dword [0x44983c]
xor ebx, ebx
mov dword [ebp - 0xc], esi
inc ebx
mov dword [ebp - 0x14], esi
mov edi, 0x80000002
mov byte [0x4497c9], bl
push edi
mov dword [0x4497cc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4029ab
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push dword [0x449848]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402934
cmp dword [ebp - 0xc], ebx
je 0x40295f
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x437098
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402969
cmp dword [ebp - 0x14], ebx
jne 0x402969
mov dword [0x4497cc], 2
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], esi
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], esi
push eax
push str.iLogLevelDebug
push dword [0x44983c]
push edi
call fcn.00405cfa
add esp, 0x14
test eax, eax
jne 0x4029a2
movzx eax, byte [0x4497ca]
cmp dword [ebp - 0x18], 0x64
cmovae eax, ebx
mov byte [0x4497ca], al
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4031ea
Capabilities:
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x4497c9], 0
jne 0x4031fb
call fcn.004028c2
cmp byte [0x4497ca], 0
je 0x40320a
pop ebp
jmp fcn.00402a61
xor eax, eax
pop ebp
ret

Function at 0x40407d
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004055b9
pop ecx
test eax, eax
je 0x4040b8
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4040b8
push 0x186a0
push esi
push 2
call fcn.004031a3
add esp, 0xc
pop esi
pop ebp
ret

Function at 0x4041e9
Capabilities:
Copy file
Create directory
Get common file path

Disassembly:
push 0x218
mov eax, 0x4345a5
call fcn.0041ab20
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x220]
mov edi, dword [ebp + 0xc]
push str.BackupArmExe...
call fcn.0040200d
xor esi, esi
lea eax, [ebp - 0x220]
push esi
push eax
push 2
mov dword [ebp - 4], esi
call fcn.004031a3
mov ecx, dword [ebp - 0x220]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00401a18
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push 0x2b
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x40426a
push eax
push 0x437d78
push 0x436f68
push str.SHGetFolderPath_failed
call fcn.00407a47
add esp, 0x10
jmp 0x404323
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040200d
push str.AdobeARM1.0Backup
mov dword [ebp - 4], 1
call fcn.0041fcde
pop ecx
push eax
push str.AdobeARM1.0Backup
lea ecx, [ebp - 0x21c]
call fcn.00402296
push esi
push dword [ebp - 0x21c]
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, 0xa1
je 0x4042f8
cmp eax, 3
je 0x4042f8
push str.AdobeARM.exe
call fcn.0041fcde
pop ecx
push eax
push str.AdobeARM.exe
lea ecx, [ebp - 0x21c]
call fcn.00402296
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
call fcn.00402129
push esi
push dword [edi]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x404329
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x437d78
push dword [ebp - 0x21c]
push str.Failed_arm_backup_folder:
call fcn.00407a47
mov esi, eax
add esp, 0x10
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.00401a18
mov eax, esi
call fcn.0041aaca
ret
push str.success_backup
lea ecx, [ebp - 0x224]
call fcn.0040200d
push esi
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 2
push eax
push 2
call fcn.004031a3
mov ecx, dword [ebp - 0x224]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a18
jmp 0x404313