joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014870
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ac66
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x10026018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dx, word [0x100215cc]
mov dword [ebp - 0x65c], eax
lea eax, [ebp - 0x620]
mov esi, ecx
mov ecx, dword [0x100215c8]
push eax
push 0x3ff
mov dword [ebp - 0x660], esi
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x14], dx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x10014a98
lea ebx, [ebp - 0x620]
xor edi, edi
jmp 0x100148f0
mov cx, word [ebx]
push 0x104
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x18]
push eax
mov word [ebp - 0x18], cx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x100149a6
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0x628], 7
mov dword [ebp - 0x62c], edi
mov word [ebp - 0x63c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10014933
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x63c]
call fcn.10017660
lea eax, [ebp - 0x220]
mov dword [ebp - 4], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10014960
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x63c]
push eax
call fcn.10016a30
mov esi, eax
cmp esi, 0xffffffff
jne 0x100149c5
mov dword [ebp - 4], eax
cmp dword [ebp - 0x628], 8
jb 0x100149a6
mov ecx, dword [ebp - 0x63c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dx, word [ebx]
add ebx, 2
test dx, dx
jne 0x100149a6
cmp word [ebx], di
je 0x10014a98
mov esi, dword [ebp - 0x660]
jmp 0x100148f0
xor eax, eax
mov word [ebp - 0x658], ax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x644], 7
mov dword [ebp - 0x648], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x100149e7
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x658]
call fcn.10017660
mov eax, ebx
mov byte [ebp - 4], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10014a11
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp - 0x648]
push ebx
inc eax
push esi
lea ecx, [ebp - 0x63c]
call fcn.100168a0
mov esi, 8
cmp dword [ebp - 0x644], esi
jb 0x10014a52
mov ecx, dword [ebp - 0x658]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x63c]
cmp dword [ebp - 0x628], esi
jae 0x10014a66
lea eax, [ebp - 0x63c]
mov edx, dword [ebp - 0x65c]
push eax
push 0x104
push edx
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
cmp dword [ebp - 0x628], esi
jb 0x10014a94
mov eax, dword [ebp - 0x63c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, 1
jmp 0x10014a9a
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100199c6
mov esp, ebp
pop ebp
ret
Function at 0x10014bb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x100
push 0
push 0x111840f8
mov ebx, eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
nop
mov cl, byte [eax + 0x10020078]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x111840f8], cl
inc eax
cmp eax, 0x100
jb 0x10014bd0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push 1
push eax
push 0x111840f8
push 0
mov ecx, 0x10126530
call fcn.1000b860
mov eax, dword [0x101303e4]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0x14
test eax, eax
je 0x10014c42
push 0
push 0
push 0x10
push eax
call esi
mov ecx, dword [0x11183a78]
mov edx, dword [0x101303fc]
mov edi, dword [sym.imp.USER32.dll_UnregisterClassA]
push ecx
push edx
mov dword [0x101303e4], 0
call edi
jmp 0x10014c48
mov edi, dword [sym.imp.USER32.dll_UnregisterClassA]
mov eax, dword [0x1013050c]
test eax, eax
je 0x10014c73
push 0
push 0
push 0x10
push eax
call esi
mov eax, dword [0x11183a78]
mov ecx, dword [0x10130524]
push eax
push ecx
mov dword [0x1013050c], 0
call edi
mov eax, dword [0x10130634]
test eax, eax
je 0x10014c9e
push 0
push 0
push 0x10
push eax
call esi
mov edx, dword [0x11183a78]
mov eax, dword [0x1013064c]
push edx
push eax
mov dword [0x10130634], 0
call edi
mov eax, dword [ebp + 8]
sub eax, 0
je 0x10014cc2
dec eax
je 0x10014cb6
dec eax
jne 0x10014cce
lea ecx, [eax + 0x6a]
mov eax, 0x2b2bb9
jmp 0x10014cd4
mov ecx, 0x69
mov eax, 0x116896
jmp 0x10014cd4
mov ecx, 0x67
mov eax, 0x9ca476
jmp 0x10014cd4
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push eax
push edx
call fcn.100137a0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
mov ecx, ebx
mov edi, 0x10014b10
mov dword [ebx + 8], eax
call fcn.10016710
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 4]
test eax, eax
je 0x10014d46
push 0
push 0
push 0x10
push eax
call esi
mov edx, dword [0x11183a78]
mov eax, dword [ebx + 0x1c]
push edx
push eax
mov dword [ebx + 4], 0
call dword [sym.imp.USER32.dll_UnregisterClassA]
call fcn.100147f0
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x100164b0
Capabilities:
Encode data using xor

Disassembly:
push esi
push 0x100
push 0
push 0x111840f8
mov esi, eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
shl esi, 8
lea ecx, [esi + 0x1001d678]
pop esi
mov dl, byte [ecx + eax]
sub dl, 0x1b
xor dl, 0xc
mov byte [eax + 0x111840f8], dl
inc eax
cmp eax, 0x100
jb 0x100164d3
mov eax, 0x111840f8
ret

Function at 0x10016710
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [0x10026018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x2f4], eax
push esi
mov ecx, 0xd6
xor eax, eax
mov dl, byte [eax + 0x100217e0]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x18], dl
inc eax
and ecx, 0xff
cmp eax, 0x12
jb 0x10016737
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x3f669c87
lea eax, [ebp - 0x24]
mov byte [ebp - 6], 0
call fcn.10017040
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x2f8]
push ecx
push 0x40
mov esi, eax
xor eax, eax
push 0x100
push esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov word [ebp - 8], ax
mov byte [ebp - 6], al
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x2f4]
push edx
push 0
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2f0]
push eax
mov ebx, 0x10002
push esi
mov dword [ebp - 0x2f0], ebx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
lea ecx, [ebp - 0x2f0]
push ecx
push esi
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x2f0], ebx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.100199c6
mov esp, ebp
pop ebp
ret 4
Function at 0x100177a0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [0x10126504]
push edi
cmp esi, dword [0x10126508]
je 0x1001786e
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
nop
cmp byte [esi], 2
jne 0x100177de
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 1]
push ecx
xor ebx, ebx
push connect
mov dword [ebp - 4], ebx
call edi
cmp dword [ebp - 4], ebx
jne 0x100177f3
add esi, 0x105
cmp esi, dword [0x10126508]
jne 0x100177c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x10126508]
mov esi, dword [0x10126504]
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10017856
xor edi, edi
cmp byte [edi + esi], 2
jne 0x10017832
lea ecx, [edi + esi + 1]
push ecx
push connect
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov esi, dword [0x10126504]
mov ecx, dword [0x10126508]
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
add edi, 0x105
cmp ebx, eax
jb 0x10017816
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 6
xor ecx, ecx
call fcn.10002cc0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10017aa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10017c40
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10017b64
cmp dword [ebp - 4], 0x50000000
jb 0x10017ae1
cmp dword [ebp - 4], 0x80000000
ja 0x10017ae1
mov dword [ebp - 4], 0x4fff0000
jmp 0x10017aba
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10017b07
jmp 0x10017b64
cmp dword [ebp - 0x14], 0x10000
jne 0x10017b4a
cmp dword [ebp - 0x18], 0x10000
jb 0x10017b4a
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10017b3d
mov eax, dword [ebp - 8]
jmp 0x10017b66
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10017b5f
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10017c40
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10017aba
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10017b70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10017c70
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10017c2c
cmp dword [ebp - 4], 0x50000000
jb 0x10017bac
cmp dword [ebp - 4], 0x80000000
ja 0x10017bac
mov dword [ebp - 4], 0x80010000
jmp 0x10017b85
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10017bd2
jmp 0x10017c2c
cmp dword [ebp - 0x14], 0x10000
jne 0x10017c15
cmp dword [ebp - 0x18], 0x10000
jb 0x10017c15
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10017c08
mov eax, dword [ebp - 8]
jmp 0x10017c2e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10017c27
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10017c70
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10017b85
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100183a0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x100183b5
xor eax, eax
jmp 0x1001842a
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 0x10000
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x100183e2
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x38d
jae 0x10018425
mov edx, dword [ebp - 4]
imul edx, edx, 0x48
mov eax, dword [ebp - 8]
cmp dword [eax + edx + 0x40], 0
je 0x10018423
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0xc]
jb 0x1001841f
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0x10]
jb 0x10018423
xor eax, eax
jmp 0x1001842a
jmp 0x100183d9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x100185f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10130a78]
mov dword [ebp - 4], eax
jmp 0x10018609
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10018626
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10018600
mov esp, ebp
pop ebp
ret
Function at 0x10018a70
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10130a88], eax
je 0x10018a8e
mov eax, 0x10dd
jmp 0x10018b6f
mov eax, dword [0x10130a98]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10018b0c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x10018aea
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x10018aea
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10018110
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10018a96
mov dword [0x10130a98], 0
call fcn.10018430
mov ecx, dword [0x10130a94]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10018b59
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10018b24
mov dword [0x10130a94], 0
mov dword [0x10130a88], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10019060
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10130a8c], 0
je 0x10019079
mov eax, dword [0x10130a8c]
jmp 0x10019119
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1001908b
xor eax, eax
jmp 0x10019119
push 8
call fcn.10019ada
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100190e1
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x100190ca
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10130a8c], eax
mov dword [0x10130a90], 0
mov eax, dword [ebp - 8]
jmp 0x10019119
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x100190fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x100190ab
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10130a94]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10130a94], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x100199c6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10026018]
jne 0x100199d0
repz ret
jmp fcn.10019f09
Function at 0x401000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret
Function at 0x407f9c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xc
mov eax, 0x46a23b
call fcn.00452eb4
mov esi, ecx
lea eax, [esi + 0x2c4]
push eax
lea ecx, [ebp - 0x14]
call fcn.004012e2
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ebx
je 0x4080b0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4080b0
cmp dword [esi + 0x198], ebx
jne 0x408024
push str.Report_is_not_enabled_in_Session
lea ecx, [ebp - 0x18]
call fcn.004012e2
push ebx
lea eax, [ebp - 0x18]
push eax
push 2
mov byte [ebp - 4], 2
call fcn.00411806
mov ecx, dword [ebp - 0x18]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
mov esi, 0x30d0e
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004017df
mov eax, esi
jmp 0x4080e9
lea edi, [esi + 0x2c0]
push 0x4771e4
push str.Reported
lea esi, [ebp - 0xd]
mov ecx, edi
mov byte [ebp - 0xd], bl
call fcn.00412b19
cmp byte [ebp - 0xd], bl
je 0x408076
push str.already_reported
lea ecx, [ebp - 0x18]
call fcn.004012e2
mov byte [ebp - 4], 3
push ebx
lea eax, [ebp - 0x18]
push eax
push 2
call fcn.00411806
mov ecx, dword [ebp - 0x18]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
push 0x15
pop esi
jmp 0x408012
push ebx
push str.SessionApplication
lea esi, [ebp - 0xd]
mov ecx, edi
mov byte [ebp - 0xd], bl
call fcn.00412b19
cmp byte [ebp - 0xd], bl
jne 0x4080a1
push str.Product_info_missing__cannot_report_data
lea ecx, [ebp - 0x18]
call fcn.004012e2
mov byte [ebp - 4], 4
jmp 0x408057
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004017df
xor eax, eax
jmp 0x4080e9
push str.No_Report_file
lea ecx, [ebp - 0x18]
call fcn.004012e2
push ebx
lea eax, [ebp - 0x18]
push eax
push 2
mov byte [ebp - 4], 1
call fcn.00411806
mov ecx, dword [ebp - 0x18]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004017df
push 2
pop eax
call fcn.00452f8c
ret
Function at 0x40ec56
Capabilities:
Create bits job

Disassembly:
push 4
mov eax, 0x46cc47
call fcn.00452eb4
mov edi, dword [ebp + 8]
lea ecx, [edi + 8]
call fcn.0040138d
xor ebx, ebx
lea esi, [edi + 0x28]
mov dword [ebp - 4], ebx
call fcn.0042e853
push 0x10
mov byte [ebp - 4], 1
lea eax, [edi + 0x18]
push ebx
push eax
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
call fcn.00450cb0
add esp, 0xc
push dword [ebp + 0xc]
lea ecx, [edi + 8]
mov dword [edi + 0xc], ebx
mov dword [edi + 0x38], 4
mov dword [edi + 0x3c], ebx
call fcn.00401356
push 2
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, 0x272f4
mov dword [edi + 0xc], eax
cmp dword [0x4b7be0], esi
je 0x40ed77
cmp eax, ebx
jl 0x40ed77
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, ebx
mov dword [edi + 0xc], eax
jge 0x40ed0c
cmp eax, 0x80010119
je 0x40ed0c
push str.Failed_to_connect_to_BITS__CoInitializeSecurity_
lea ecx, [ebp + 0xc]
call fcn.004012e2
mov byte [ebp - 4], 4
push 0x27358
jmp 0x40ed54
push edi
push 0x47c614
push 4
push ebx
push 0x47c604
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, 0x222e0
mov dword [edi + 0xc], eax
cmp dword [0x4b7be0], esi
je 0x40ed34
cmp eax, ebx
jge 0x40eda4
mov eax, dword [edi]
cmp eax, ebx
je 0x40ed42
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi], ebx
push str.Failed_to_connect_to_BITS
lea ecx, [ebp + 0xc]
call fcn.004012e2
mov byte [ebp - 4], 3
push esi
mov ecx, dword [edi + 0xc]
lea edx, [ebp + 0xc]
mov ebx, 0x4b7bd8
call fcn.0040fd89
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004017df
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x40eda4
push str.Failed_to_connect_to_BITS___COM_threading_returned_an_error__CoInitializeEx_
lea ecx, [ebp + 0xc]
call fcn.004012e2
mov byte [ebp - 4], 2
mov ecx, dword [edi + 0xc]
push esi
lea edx, [ebp + 0xc]
mov ebx, 0x4b7bd8
call fcn.0040fd89
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004017df
mov eax, edi
call fcn.00452f8c
ret 8

Function at 0x4104f7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410542
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x41052a
push 0xd
pop esi
cmp esi, 0xe8
jne 0x41054f
push 0xa
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0xa
jl 0x4104ff
jmp 0x41054f
mov esi, dword [ebp - 4]
sub esi, 4
neg esi
sbb esi, esi
and esi, 0xd
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x4112b2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [0x4b76a8]
mov byte [0x4b74e5], 1
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [0x4b74d8], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411334
push edi
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [0x4b76b4]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x411334
cmp dword [ebp - 8], 1
jne 0x411334
mov dword [0x4b74d8], 2
leave
ret
Function at 0x412634
Capabilities:
Get common file path

Disassembly:
push ebx
push edi
mov ebx, 0x104
push ebx
lea edi, [esi + 4]
push 0
push edi
mov dword [esi], vtable.CArmReport.0
call fcn.00450cb0
add esp, 0xc
push edi
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x41267c
push str.AdobeARM_
push ebx
call fcn.00412c14
push str.ArmReport.ini
push ebx
call fcn.00412c14
pop edi
mov eax, esi
pop ebx
ret

Function at 0x4126a5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 1
push esi
push esi
push 0x40000000
add eax, 4
push eax
mov dword [ebp - 4], 0xfeff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4126dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x412726
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push ebx
call edi
test eax, eax
je 0x412714
push esi
lea eax, [ebp - 8]
push eax
mov esi, str._SESSION_
push esi
call fcn.0045007b
pop ecx
lea eax, [eax + eax + 2]
push eax
push esi
push ebx
call edi
test eax, eax
jne 0x41271c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x412725
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41272a
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, eax
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4127a3
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4127a3
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41279f
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push eax
call ebx
push eax
mov edi, str.Delete_Report
call fcn.004128ea
push 4
push 0
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x41279f
call ebx
mov ebx, eax
lea eax, [ebp - 1]
push eax
push ebx
mov edi, str.MoveEx_Report
mov byte [ebp - 1], 0
call fcn.004128ea
mov eax, ebx
jmp 0x4127a6
xor eax, eax
jmp 0x4127a6
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret