joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a2770
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push esi
mov esi, dword [esp + 0x118]
mov eax, 0x10624dd3
mov dword [esp + 0xc], 1
mul esi
shr edx, 6
mov dword [esp + 4], edx
mov eax, esi
xor edx, edx
mov esi, 0x3e8
div esi
mov eax, dword [ecx + 4]
lea ecx, [esp + 4]
push ecx
push 0
push 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
lea edx, [esp + 0x18]
push edx
push 0
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
pop esi
jne 0x4a27d0
xor eax, eax
add esp, 0x10c
ret 8
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 8

Function at 0x4b91dc
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0x10
lea eax, [ebp - 0x14]
push 0
mov esi, ecx
push eax
call fcn.004a5c50
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
call sub.WS2_32.dll_getsockname
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov esi, ecx
test esi, esi
je 0x4b923b
push dword [ebp - 0x12]
call sub.WS2_32.dll_ntohs
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0x10]
movzx eax, ax
mov dword [ecx], eax
call sub.WS2_32.dll_inet_ntoa
mov ecx, dword [ebp + 8]
push eax
call fcn.004b1342
mov eax, esi
pop esi
leave
ret 8

Function at 0x4b943d
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WS2_32.dll_send
ret 0xc

Function at 0x4bfe20
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x10
push esi
push edi
xor edi, edi
push edi
push str.Shell_TrayWnd
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
cmp esi, edi
je 0x4bfe68
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 8]
push ecx
push 0x4bfdc0
push esi
call dword [sym.imp.USER32.dll_EnumChildWindows]
jmp 0x4bfe8c
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
call edi
push 1
mov esi, eax
call edi
push eax
push esi
add eax, 0xffffffec
add esi, 0xffffffd8
push eax
lea edx, [esp + 0x14]
push esi
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 8]
mov ecx, eax
pop edi
pop esi
mov dword [ecx], edx
mov edx, dword [esp + 4]
mov dword [ecx + 4], edx
mov edx, dword [esp + 8]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0xc]
mov dword [ecx + 0xc], edx
add esp, 0x10
ret 4
Function at 0x4c0250
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4c02b6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4c02b6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4c0297
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4c0640
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4c0678
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4c1300
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4c1349
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4c17c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e69c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004c1370
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004c13f0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004c13f0
lea ecx, [esi + 0xc]
call fcn.004d6242
lea ecx, [esi + 0x10]
call fcn.004d6242
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004c2980
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004c2980
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004c2980
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004d62b7
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004d62b7
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4d8685
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d86bd
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004d6712
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004d66ea
jmp 0x4d86c9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4d9d77
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4d9db9
call fcn.004dfd85
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d9db9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d9db0
xor eax, eax
jmp 0x4d9dc1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d9dc7
pop edi
pop esi
pop ebx
ret 4

Function at 0x4e02b5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4e02e3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4e0301
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004e021b
jmp 0x4e0301
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4e0301
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004e021b
test edi, edi
mov eax, edi
jne 0x4e02eb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40135c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x798]
sub esp, 0x818
mov eax, dword [0x509354]
xor eax, ebp
mov dword [ebp + 0x794], eax
mov ecx, dword [ebp + 0x7ac]
mov eax, dword [ebp + 0x7a8]
push ebx
push esi
mov esi, dword [ebp + 0x7b0]
push edi
mov edi, dword [ebp + 0x7a0]
push ecx
push eax
push dword [ebp + 0x7a4]
lea eax, [ebp - 0x6c]
push 0x400
xor ebx, ebx
push eax
mov byte [ebp - 0x6d], bl
call fcn.00401305
add esp, 0x14
test eax, eax
jl 0x401412
lea eax, [ebp - 0x74]
push eax
push 1
push ebx
lea eax, [ebp - 0x6c]
push eax
push edi
mov dword [ebp - 0x74], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401412
push 4
pop edi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push 0x4cda38
push dword [ebp - 0x74]
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401409
cmp dword [ebp - 0x78], edi
jne 0x401409
cmp dword [ebp - 0x7c], ebx
mov byte [ebp - 0x6d], 1
setne al
mov dword [esi], eax
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x794]
mov al, byte [ebp - 0x6d]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048e25d
add ebp, 0x798
leave
ret

Function at 0x4025b9
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x509354]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0048e760
add esp, 0xc
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x402611
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call esi
test eax, eax
jne 0x402611
xor al, al
jmp 0x402618
cmp dword [ebp - 0x7c], 6
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
pop esi
call fcn.0048e25d
add ebp, 0xa0
leave
ret
Function at 0x402c80
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push 0x48
mov eax, 0x4c51c6
call fcn.0048e6bb
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x4c], eax
lea eax, [esi + 0x18]
push eax
mov dword [ebp - 0x54], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x48]
xor ebx, ebx
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00402c02
cmp dword [ebp - 0x34], ebx
jne 0x402ce1
push 9
pop esi
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.00401626
push dword [ebp - 0x54]
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
call fcn.0048e73e
ret 0xc
cmp dword [edi + 0xc], 0x400
jbe 0x402cee
push 8
jmp 0x402cbb
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 7
call fcn.00401495
cmp dword [esi + 0x14], 2
push 0xffffffffffffffff
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
push ebx
lea eax, [esi + 0x64]
je 0x402d14
lea eax, [esi + 0x48]
push eax
call fcn.00401c43
cmp dword [esi + 8], ebx
jne 0x402d50
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x402d2b
lea eax, [ebp - 0x28]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 8], eax
cmp eax, ebx
jne 0x402d50
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00401626
jmp 0x402cb9
mov eax, dword [ebp - 0x44]
push 8
pop esi
mov dword [ebp - 0x50], ebx
cmp dword [ebp - 0x30], esi
jae 0x402d61
lea eax, [ebp - 0x44]
push dword [ebp + 0x10]
lea ecx, [ebp - 0x50]
push ecx
push 0x40c
push dword [ebp - 0x4c]
push 0x410
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
cmp eax, ebx
jne 0x402dae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
push 1
cmp eax, 0x5b4
jne 0x402da4
call fcn.00401626
push 0xa
jmp 0x402cbb
call fcn.00401626
jmp 0x402cbc
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00401626
xor esi, esi
jmp 0x402cbc
Function at 0x402f35
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebp
lea ebp, [esp - 0x7a4]
sub esp, 0x824
mov eax, dword [0x509354]
xor eax, ebp
mov dword [ebp + 0x7a0], eax
push esi
mov esi, ecx
cmp dword [esi + 0x14], 1
jne 0x402f60
xor eax, eax
jmp 0x40305c
push edi
xor edi, edi
lea ecx, [ebp + 0x390]
mov dword [ebp - 0x80], edi
call fcn.00402573
lea ecx, [ebp - 0x7c]
call fcn.00402593
cmp dword [esi + 0x14], 3
jne 0x402fe2
cmp dword [esi + 0x7c], 8
mov eax, dword [esi + 0x78]
jb 0x402f8d
mov ecx, dword [esi + 0x68]
jmp 0x402f90
lea ecx, [esi + 0x68]
add eax, eax
push eax
push ecx
push 1
push 1
lea eax, [ebp + 0x390]
push 2
push eax
call fcn.00402677
add esp, 0x18
push edi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x390]
push eax
mov ecx, esi
call fcn.00402c80
lea ecx, [ebp + 0x390]
call fcn.00402573
lea ecx, [ebp - 0x7c]
call fcn.00402593
cmp dword [esi + 0x14], 3
jne 0x402fe2
cmp dword [esi + 0x94], edi
jne 0x402fe2
push 9
pop eax
jmp 0x40305b
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 4
push esi
push 1
push 1
lea eax, [ebp + 0x390]
push edi
push eax
mov dword [ebp - 0x80], edi
call fcn.00402677
lea eax, [esi + 0x80]
add esp, 0x18
cmp dword [eax + 0x18], 8
jb 0x403016
mov eax, dword [eax + 4]
jmp 0x403019
add eax, 4
push edi
lea ecx, [ebp - 0x80]
push ecx
push 0x40c
lea ecx, [ebp - 0x7c]
push ecx
push 0x410
lea ecx, [ebp + 0x390]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
mov eax, dword [esi + 0x38]
cmp eax, edi
je 0x403059
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x38], edi
xor eax, eax
pop edi
mov ecx, dword [ebp + 0x7a0]
xor ecx, ebp
pop esi
call fcn.0048e25d
add ebp, 0x7a4
leave
ret
Function at 0x403b05
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 0x403b50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x403b38
push 0xd
pop esi
cmp esi, 0xe8
jne 0x403b5d
push 0xa
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0xa
jl 0x403b0d
jmp 0x403b5d
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 0x403b63
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 3
pop esi
push esi
push ebx
push ebx
push 0xc0000000
push dword [ebp + 8]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x403ba6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebx
jne 0x403c3a
push 0xd
pop edi
jmp 0x403c3a
push ebx
push ebx
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x403bcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebx
jne 0x403c31
push 0xd
pop edi
jmp 0x403c31
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], ebx
call esi
test eax, eax
je 0x403bba
cmp dword [ebp + 0x10], ebx
je 0x403c31
xor eax, eax
mov byte [ebp - 8], bl
lea edi, [ebp - 7]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.00403b05
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x403c31
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
inc ecx
sub eax, ecx
neg eax
sbb eax, eax
and eax, 0xd
push ebx
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403cad
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x3ac]
sub esp, 0x42c
mov eax, dword [0x509354]
xor eax, ebp
mov dword [ebp + 0x3a8], eax
mov eax, dword [ebp + 0x3b8]
push ebx
mov ebx, dword [ebp + 0x3b4]
push esi
push edi
mov dword [ebp - 0x74], eax
xor eax, eax
mov esi, 0x208
push esi
mov word [ebp - 0x70], ax
xor edi, edi
lea eax, [ebp - 0x6e]
push edi
push eax
call fcn.0048e760
xor eax, eax
push esi
mov word [ebp + 0x19c], ax
lea eax, [ebp + 0x19e]
push edi
push eax
call fcn.0048e760
add esp, 0x18
mov eax, 0x105
push eax
lea ecx, [ebp + 0x19c]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push eax
lea eax, [ebp - 0x70]
push eax
push 0x4cdca0
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov esi, 0x104
test eax, eax
je 0x403d54
push esi
push ebx
push dword [ebp - 0x78]
call fcn.00403ac3
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x403d6c
push str.thsnYaVieBoda
push esi
push ebx
call fcn.00403c73
cmp dword [ebp - 0x74], edi
je 0x403d7b
push dword [ebp - 0x74]
push esi
push ebx
call fcn.00403c73
mov ecx, dword [ebp + 0x3a8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048e25d
add ebp, 0x3ac
leave
ret

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

Disassembly:
push str.GlobalARM_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x403e8b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
push 0x50d228
mov esi, 0x208
push esi
call fcn.0048eb50
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x403e9d
push esi
push 0
push edi
call fcn.0048e760
push edi
call fcn.00403d93
add esp, 0x10
test eax, eax
jne 0x403e9d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x3e8
cmp eax, ecx
jae 0x403e53
add eax, ecx
push 1
push eax
push edi
call fcn.00403b63
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x403e80
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0xcc
push edi
call fcn.00403b63
add esp, 0xc
push edi
call fcn.0048eb45
pop ecx
mov eax, esi
jmp 0x403e9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x403e12
xor eax, eax
ret
xor eax, eax
pop edi
pop esi
ret
Function at 0x403eba
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x50ac88], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x403efe
call ebx
test eax, eax
jns 0x403ef4
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x50ac84], eax
mov dword [0x50ac88], 1
mov eax, dword [0x50ac84]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403f1a
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
test eax, eax
jne 0x403f4a
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x403f40
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x403f35
push dword [eax + 0xc]
call dword [eax + 8]
jmp 0x403f3a
push dword [eax + 4]
call dword [eax]
test eax, eax
je 0x403f49
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x40675e
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x4067af
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x4067c0
push 0xd
pop eax
jmp 0x4067ed
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4067c3
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x406d40
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x509354]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.0040671d
mov ebx, eax
cmp ebx, esi
je 0x406db0
lea ecx, [ebp - 0x70]
call fcn.004066a8
mov eax, ebx
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048e25d
add ebp, 0x19c
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x406dc8
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x70]
call fcn.00406d40
cmp eax, esi
jne 0x406dfa
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call ebx
test eax, eax
je 0x406db8
lea ecx, [ebp - 0x70]
call fcn.004066a8
push dword [ebp - 0x78]
mov ecx, edi
call fcn.0040664d
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.004066a8
mov eax, esi
jmp 0x406d96
Function at 0x40c9ba
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0041c7d0
mov dword [ebp - 4], eax
test eax, eax
jne 0x40c9d6
call fcn.0041c750
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.0040c70c
add esp, 0x14
leave
ret

Function at 0x40d30a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x240
lea ebp, [esp - 4]
mov eax, dword [0x509354]
xor eax, ebp
mov dword [ebp + 0x240], eax
push 0x30
mov eax, 0x4c5e46
call fcn.0048e652
mov eax, dword [ebp + 0x24c]
xor ebx, ebx
cmp eax, ebx
jne 0x40d35f
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 + 0x240]
xor ecx, ebp
call fcn.0048e25d
add ebp, 0x244
leave
ret
push eax
lea ecx, [ebp + 0x1c]
call fcn.00401f35
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 0x1c]
mov dword [ebp - 4], ebx
call fcn.004088e2
mov esi, eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00408900
mov edi, eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp + 0x1c]
call fcn.004088e2
push fcn.00490c89
push dword [esi + 4]
push dword [esi]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x34]
push eax
call fcn.00408aa0
add esp, 0x20
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push str.SoftwareAdobeAcrobatExe
push SysReAllocString
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x40d3e8
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp + 0x1c]
call fcn.00401626
jmp 0x40d33a
push 0x208
lea eax, [ebp + 0x38]
push ebx
push eax
call fcn.0048e760
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x206
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x40d441
mov byte [ebp - 0xd], bl
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp + 0x1c]
call fcn.00401626
mov al, byte [ebp - 0xd]
jmp 0x40d33c
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp]
call fcn.00401f35
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.004088e2
mov esi, eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp]
call fcn.00408900
mov edi, eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp]
call fcn.004088e2
push fcn.00490c89
push dword [esi + 4]
push dword [esi]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x28]
push eax
call fcn.00408aa0
add esp, 0x20
push ebx
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.0040d0ee
push ebx
cmp eax, 0xffffffff
push 1
lea ecx, [ebp]
setne byte [ebp - 0xd]
mov byte [ebp - 4], bl
call fcn.00401626
mov al, byte [ebp - 0xd]
mov byte [ebp - 0xd], al
jmp 0x40d42a