joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44eaf3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
nop
mov eax, dword [0x46e0d8]
cmp eax, 0xffffffff
jne 0x44eb18
lea eax, [ebp - 0x24]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov eax, dword [ebp - 0x20]
mov dword [0x46e0d8], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4538f5
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
nop
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
jns 0x45391f
mov eax, dword [esi + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0xc], eax
jmp 0x45392b
mov eax, dword [esi + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
je 0x4539e7
mov ebx, dword [ebp - 0xc]
jmp 0x453951
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
lea eax, [eax + ebx*4]
movsx eax, byte [eax + 2]
cmp eax, 0xa
jne 0x453950
inc dword [ebp - 4]
inc ebx
cmp ebx, dword [ebp - 8]
jl 0x45393c
push dword [ebp + 8]
call sub.USER32.DLL_OpenClipboard
test eax, eax
je 0x4539e7
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0xc]
inc eax
add eax, dword [ebp - 4]
push eax
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4539e2
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_GlobalLock
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0xc]
jmp 0x4539c0
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
lea eax, [eax + ebx*4]
movsx eax, byte [eax + 2]
cmp eax, 0xa
jne 0x4539af
mov eax, edi
inc edi
mov byte [eax], 0xd
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
lea eax, [eax + ebx*4]
mov al, byte [eax + 2]
mov ecx, edi
inc edi
mov byte [ecx], al
inc ebx
cmp ebx, dword [ebp - 8]
jl 0x453998
mov eax, edi
inc edi
mov byte [eax], 0
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_GlobalUnlock
call sub.USER32.DLL_EmptyClipboard
push dword [ebp - 0x14]
push 1
call sub.USER32.DLL_SetClipboardData
call sub.USER32.DLL_CloseClipboard
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4539ee
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
nop
push 1
call sub.USER32.DLL_IsClipboardFormatAvailable
test eax, eax
je 0x453b3c
push edi
call sub.USER32.DLL_OpenClipboard
test eax, eax
je 0x453b3c
push 1
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_GlobalLock
mov dword [ebp - 8], eax
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_GlobalSize
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x453b2f
push dword [ebp - 4]
push 1
call fcn.0045bd81
add esp, 8
mov ebx, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x453b2f
push dword [ebp - 4]
push dword [ebp - 8]
push ebx
call fcn.0045e150
add esp, 0xc
mov eax, dword [ebp - 4]
dec eax
mov byte [eax + ebx], 0
jmp 0x453a9c
mov eax, dword [ebp - 0x14]
movsx eax, byte [eax]
cmp eax, 0xd
jne 0x453a8c
inc dword [ebp - 0x14]
jmp 0x453a9c
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x14]
mov al, byte [eax]
mov ecx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov byte [ecx], al
mov eax, dword [ebp - 0x14]
mov al, byte [eax]
test al, al
jne 0x453a7c
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
mov al, byte [ebx]
test al, al
je 0x453b28
mov eax, dword [ebp - 0x10]
sub eax, ebx
push eax
push ebx
push esi
push edi
call fcn.0045116f
add esp, 0x10
push 0
push esi
push edi
call fcn.00450daf
add esp, 0xc
mov eax, dword [esi]
push dword [eax + 0x24]
mov eax, dword [esi]
movsx eax, byte [eax + 0x95c1]
push eax
mov eax, dword [esi + 0x14]
inc eax
push eax
mov eax, dword [esi + 0x10]
dec eax
push eax
mov eax, dword [esi]
push dword [eax + 0x28]
call fcn.0044fb98
add esp, 0x14
push edi
call fcn.00455ced
pop ecx
mov eax, dword [esi]
mov byte [eax + 0x95cb], 1
push ebx
call fcn.0046038e
pop ecx
add eax, dword [esi + 0x10]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
push esi
push edi
call fcn.00450b67
add esp, 8
push 0
push 0
push edi
call sub.USER32.DLL_InvalidateRect
push ebx
call fcn.0045d549
pop ecx
push dword [ebp - 8]
call sub.KERNEL32.DLL_GlobalUnlock
call sub.USER32.DLL_CloseClipboard
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x455daa
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
nop
push 0xc
push 1
call fcn.0045bd81
add esp, 8
mov esi, eax
test esi, esi
je 0x455dfc
mov dword [esi], edi
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
push 0
call sub.KERNEL32.DLL_SetLastError
inc dword [edi + 0x2c]
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x455d1f
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
push eax
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463fae
Capabilities:
Get common file path
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea esi, [ebp - 8]
mov edi, dword [ebp + 8]
lea ebx, [ebp - 0x108]
push ebx
push pe_nt_image_headers32
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test edi, edi
je 0x463fe8
movsx eax, byte [ebx]
sub eax, 0x40
mov dword [edi], eax
movsx eax, byte [ebx]
cmp eax, 0x61
jl 0x463fe8
sub dword [edi], 0x20
mov byte [esi], 0x3d
mov al, byte [ebx]
mov byte [esi + 1], al
mov byte [esi + 2], 0x3a
mov byte [esi + 3], 0x5c
mov byte [esi + 4], 0
push ebx
push esi
call sub.KERNEL32.DLL_SetEnvironmentVariableA
mov eax, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [ebp + 8]
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4643ed
mov eax, 1
jmp 0x4643f8
mov eax, ebx
and eax, 1
sete al
movzx eax, al
pop ebx
pop ebp
ret

Function at 0x464e2c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
jne 0x464e4f
call fcn.0046506d
mov dword [eax], 2
mov eax, 0xffffffff
jmp 0x464e54
mov eax, 0
pop ebp
ret

Function at 0x4650a1
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x2c4
push 0x40
call sub.KERNEL32.DLL_LocalAlloc
mov ebx, eax
test ebx, ebx
jne 0x4650d4
push str.out_of_memory
push dword [0x49a35c]
call fcn.0045e35c
add esp, 8
call fcn.004651da
push ebx
call sub.KERNEL32.DLL_LocalLock
mov esi, eax
mov dword [esi + 4], ebx
push esi
push dword [0x49d480]
call sub.KERNEL32.DLL_TlsSetValue
test edi, edi
je 0x4650f4
call fcn.00464203
mov eax, dword [0x49d484]
mov dword [esi], eax
mov dword [0x49d484], esi
test edi, edi
je 0x46510a
call fcn.00464212
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x468e78
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, ebx
and eax, 0x80
je 0x468e8f
mov eax, 0x80
jmp 0x468e94
mov eax, 1
mov ebx, eax
push ebx
push dword [ebp + 8]
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
je 0x468eaa
mov eax, 0
jmp 0x468ebf
call sub.KERNEL32.DLL_GetLastError
push eax
call fcn.0046506d
mov ecx, eax
pop eax
mov dword [ecx], eax
mov eax, 0xffffffff
pop ebx
pop ebp
ret
Function at 0x468ec2
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
push esi
call fcn.0046435b
pop ecx
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x104]
cmp eax, 0xffffffff
jne 0x468ef4
mov eax, dword [ebp - 0x104]
jmp 0x469006
push 2
push 0
push esi
call fcn.0046451f
add esp, 0xc
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x468f0f
mov eax, ebx
jmp 0x469006
push esi
call fcn.0046435b
pop ecx
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x468f24
mov eax, ebx
jmp 0x469006
cmp ebx, dword [ebp + 0xc]
je 0x468ff5
cmp ebx, dword [ebp + 0xc]
jge 0x468fba
push pe_nt_image_headers32
push 0
lea eax, [ebp - 0x100]
push eax
call fcn.0045e1bd
add esp, 0xc
mov eax, dword [ebp + 0xc]
sub eax, ebx
mov ebx, eax
jmp 0x468f89
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
push esi
call fcn.00464b0b
add esp, 0xc
mov edi, eax
cmp edi, 0xffffffff
je 0x468f79
cmp edi, 0x100
je 0x468f83
mov eax, 0xffffffff
jmp 0x469006
sub ebx, 0x100
cmp ebx, 0x100
jge 0x468f55
test ebx, ebx
je 0x468fb8
push ebx
lea eax, [ebp - 0x100]
push eax
push esi
call fcn.00464b0b
add esp, 0xc
mov edi, eax
cmp edi, 0xffffffff
je 0x468fb1
cmp edi, ebx
je 0x468fb8
mov eax, 0xffffffff
jmp 0x469006
jmp 0x468ff5
push 0
push dword [ebp + 0xc]
push esi
call fcn.0046451f
add esp, 0xc
cmp eax, 0xffffffff
jne 0x468fd4
mov eax, 0xffffffff
jmp 0x469006
push esi
call sub.KERNEL32.DLL_SetEndOfFile
test eax, eax
jne 0x468ff5
call sub.KERNEL32.DLL_GetLastError
push eax
call fcn.0046506d
mov ecx, eax
pop eax
mov dword [ecx], eax
mov eax, 0xffffffff
jmp 0x469006
push 0
push dword [ebp - 0x104]
push esi
call fcn.0046451f
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46900d
Capabilities:
Get common file path
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
lea ebx, [ebp - 0x100]
lea esi, [ebp - 0x104]
mov edi, dword [ebp + 8]
mov eax, esi
push edi
mov edi, eax
cld
sub eax, eax
mov ecx, 1
rep stosd dword es:[edi], eax
pop edi
mov eax, dword [0x477676]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x469053
push ebx
push pe_nt_image_headers32
call sub.KERNEL32.DLL_GetCurrentDirectoryA
jmp 0x46908e
mov eax, dword [ebp + 0xc]
add eax, 0x40
mov byte [esi + 1], al
push pe_nt_image_headers32
push ebx
push esi
call sub.KERNEL32.DLL_GetEnvironmentVariableA
test eax, eax
jne 0x46908e
mov eax, esi
inc eax
push eax
push ebx
call fcn.0045f361
add esp, 8
push 0x477674
push ebx
call fcn.0045f2e4
add esp, 8
push ebx
push esi
call sub.KERNEL32.DLL_SetEnvironmentVariableA
mov eax, ebx
add eax, 3
push eax
push edi
call fcn.0045f361
add esp, 8
push edi
call fcn.0046038e
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x1b160f59
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x5f7d6504
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4705d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x470608]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4705e9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4705f8
or bl, 4
test esi, 0x20000000
je 0x470603
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x477c2c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4b5bc8]
cmp byte [eax + 0xa5], 0
jne 0x477c9d
cmp dword [0x4b5be0], 0
jne 0x477c5e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x477be8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4b5be0], eax
cmp dword [0x4b5bdc], 0
jne 0x477c79
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4b5bdc], eax
cmp dword [0x4b5be4], 0
jne 0x477c9d
push esp
push 0
push 0
push 0x477b8c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4b5be4], eax
pop edx
ret

Function at 0x477d94
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x477dab
add esp, 0xfffffff0
call fcn.004036c0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00423658
mov eax, dword [0x4b4808]
cmp word [eax + 2], 0
jne 0x477dd3
mov eax, dword [0x4b4808]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00479514
mov eax, dword [0x4b4924]
cmp word [eax + 2], 0
jne 0x477ded
mov eax, dword [0x4b4924]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0047970c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x417e64]
call fcn.0040332c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x417e64]
call fcn.0040332c
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x425bdc]
call fcn.0042d3dc
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x477f74
mov eax, dword [0x4b46d0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042d7ac
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x479cbc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4b46d0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040e4b4
test eax, eax
je 0x477ee2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409c08
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e4dc
test eax, eax
je 0x477ef6
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040442c
mov eax, dword [0x4b4538]
cmp byte [eax], 0
jne 0x477f2a
mov eax, ebx
call fcn.0047809c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00479e98
mov eax, ebx
call fcn.0047a880
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x477f6a
call fcn.00403718
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x7c3b1059
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..rdata
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x50ff1586
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40bc60
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598300
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x62cf50]
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 edi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov ebx, dword [ebp + 0xc]
push ecx
push 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x38], eax
push ecx
push 0
push eax
push dword [edi]
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x40be35
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x40bcda
cmp eax, 2
je 0x40bcda
mov eax, 0x3f4
jmp 0x40be37
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40be20
lea ecx, [eax + 3]
cmp ecx, eax
jbe 0x40be1c
xor eax, eax
shr ecx, 1
mov word [ebp - 0x34], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x31]
movq qword [ebp - 0x24], xmm0
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x1c], 0
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.0040be60
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x38]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x40be12
mov eax, dword [ebp - 0x14]
cmp eax, 1
jne 0x40bd60
push dword [ebp - 0x24]
mov ecx, ebx
call fcn.0040bef0
lea ecx, [ebp - 0x24]
call fcn.0040bf20
jmp 0x40be35
cmp eax, 2
jne 0x40be0d
push 0
push 0
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x40bdf4
lea eax, [edi + 1]
cmp eax, edi
jbe 0x40bdf4
xor ecx, ecx
xorps xmm0, xmm0
lfence
mov word [ebp - 0x34], cx
lea ecx, [ebp - 0x31]
push ecx
lea ecx, [ebp - 0x34]
movq qword [ebp - 0x30], xmm0
push ecx
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x28], 0
call fcn.0040be60
push edi
push dword [ebp - 0x30]
mov byte [ebp - 4], 1
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp edi, eax
jb 0x40bddd
push dword [ebp - 0x30]
mov ecx, ebx
call fcn.0040bef0
lea ecx, [ebp - 0x30]
call fcn.0040bf20
lea ecx, [ebp - 0x24]
call fcn.0040bf20
jmp 0x40be35
lea ecx, [ebp - 0x30]
mov esi, 0xa
call fcn.0040bf20
lea ecx, [ebp - 0x24]
call fcn.0040bf20
jmp 0x40be35
test edi, edi
lea ecx, [ebp - 0x24]
mov eax, 0xea
mov esi, 8
cmove esi, eax
call fcn.0040bf20
jmp 0x40be35
mov esi, 0x3f4
lea ecx, [ebp - 0x24]
call fcn.0040bf20
jmp 0x40be35
test eax, eax
jne 0x40be30
push 0
push 0x5b6ea8
mov ecx, ebx
call fcn.00409db0
jmp 0x40be35
mov esi, 8
mov eax, esi
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 int.004016cd
mov esp, ebp
pop ebp
ret 8
Function at 0x40e3b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x62cf50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
push 0x208
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x20c]
push 0
push eax
mov dword [ebp - 0x21c], 0
call fcn.0056aed0
mov bx, word [ebp + 0x10]
xor eax, eax
cmp dword [ebp + 0xc], eax
mov ecx, str.SoftwareAdobeAcrobat_ReaderDCFeatureState
mov dword [ebp - 0x210], 0
sete al
mov dword [ebp - 0x214], 0
movzx esi, ax
test bx, bx
mov eax, str.SoftwareAdobeAdobe_AcrobatDCFeatureState
mov dword [ebp - 0x218], 4
cmovne eax, ecx
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004067bb
add esp, 0x18
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e4ff
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push dword [ebp - 0x220]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e4ca
cmp dword [ebp - 0x210], 4
jne 0x40e4ca
push dword [ebp - 0x21c]
xor ebx, ebx
cmp dword [ebp - 0x214], ebx
setne bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ax, bx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call int.004016cd
mov esp, ebp
pop ebp
ret
cmp word [ebp + 0x10], 0
mov ebx, esi
je 0x40e4df
test edi, edi
je 0x40e4df
mov eax, 1
mov word [edi], ax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ax, bx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call int.004016cd
mov esp, ebp
pop ebp
ret
mov eax, esi
test bx, bx
je 0x40e514
test edi, edi
je 0x40e514
mov eax, 1
mov word [edi], ax
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call int.004016cd
mov esp, ebp
pop ebp
ret
Function at 0x410760
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x62cf50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 0x1c]
xor bl, bl
push edi
mov edi, dword [ebp + 8]
push eax
push ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x804]
mov dword [ebp - 0x818], edx
push 0x400
push eax
call fcn.00410850
add esp, 0x14
test eax, eax
js 0x41083a
lea eax, [ebp - 0x814]
mov dword [ebp - 0x814], 0
push eax
push 1
push 0
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41083a
mov dword [ebp - 0x808], eax
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x810], 4
push eax
lea eax, [ebp - 0x808]
push eax
push 0
push dword [ebp - 0x818]
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41082e
cmp dword [ebp - 0x808], 4
jne 0x41082e
cmp dword [ebp - 0x80c], eax
mov bl, 1
setne al
mov dword [esi], eax
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call int.004016cd
mov esp, ebp
pop ebp
ret

Function at 0x412620
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push str.GlobalARM_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x412643
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x412678
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x412678
push str.GlobalAcro_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x41266d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x412678
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4126b5
push 0x635558
push 0x208
call fcn.0041e564
mov esi, eax
add esp, 8
test esi, esi
je 0x4126b5
push 0x208
push 0
push esi
call fcn.0056aed0
push 0
push esi
call fcn.00480b90
add esp, 0x14
test eax, eax
je 0x4126ba
push esi
call fcn.0041e935
add esp, 4
xor eax, eax
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 0x3e8
jae 0x4126cc
add eax, 0x3e8
push ebx
push 1
push eax
push esi
call fcn.00480d80
xor ebx, ebx
add esp, 0xc
test eax, eax
sete bl
test eax, eax
jne 0x412717
push edi
mov edi, dword [ebp + 8]
cmp edi, 2
je 0x412716
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 1
jne 0x412703
push 0
push 0xce
jmp 0x41270d
test edi, edi
jne 0x412716
push edi
push 0xcc
push esi
call fcn.00480d80
add esp, 0xc
pop edi
push esi
call fcn.0041e935
add esp, 4
mov eax, ebx
pop ebx
pop esi
pop ebp
ret