joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421770
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x14000]
push edi
jmp 0x42178a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x421791
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x421780
mov eax, 1
add ebx, ebx
jne 0x4217a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x421798
jne 0x4217b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421798
xor ecx, ecx
sub eax, 3
jb 0x4217c8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42183a
mov ebp, eax
add ebx, ebx
jne 0x4217d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4217e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x421804
inc ecx
add ebx, ebx
jne 0x4217f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4217e5
jne 0x421801
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4217e5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x421824
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x421815
jmp 0x421786
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x421824
add edi, ecx
jmp 0x421786
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x421842
cmp byte [edi], 9
jne 0x421842
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x421847
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x4218bf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x22c54]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x22d34]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x421874
mov ecx, edi
jns 0x4218a3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x22d3c]
or eax, eax
je 0x4218b9
mov dword [ebx], eax
add ebx, 4
jmp 0x421891
call dword [esi + 0x22d38]
mov ebp, dword [esi + 0x22d40]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4218f3
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x401d86
Capabilities:
Hash data with md5

Disassembly:
jmp 0x4065c4
push esi
mov esi, ecx
push 0x40
push 0
lea eax, [esi + 0x44]
mov dword [esi], section..rdata
push eax
call fcn.0040a636
and dword [esi + 0x88], 0
and dword [esi + 0x84], 0
add esp, 0xc
mov dword [esi + 0x8c], 0x67452301
mov dword [esi + 0x90], 0xefcdab89
mov dword [esi + 0x94], 0x98badcfe
mov dword [esi + 0x98], 0x10325476
mov eax, esi
pop esi
ret

Function at 0x40260a
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x402709
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x402709
mov esi, dword [ebp + 0xc]
push 0xc
xor edx, edx
pop ebx
lea eax, [esi*4 + 0xb]
div ebx
shl eax, 2
cmp dword [ebp + 0x14], eax
jb 0x402709
mov edx, dword [ebp + 0x18]
test esi, esi
mov dword [edx], eax
mov eax, edi
jbe 0x402701
mov dword [ebp + 8], 0xfffffffe
sub dword [ebp + 8], edi
movzx edx, byte [eax]
shr edx, 2
mov dl, byte [edx + 0x40d538]
mov byte [ecx], dl
mov edx, dword [ebp + 8]
lea edi, [edx + 2]
sub esi, edi
sub esi, eax
cmp esi, 1
je 0x4026d3
mov dl, byte [eax]
movzx ebx, byte [eax + 1]
and edx, 3
shl edx, 4
shr ebx, 4
or edx, ebx
cmp esi, 2
mov dl, byte [edx + 0x40d538]
mov byte [ecx + 1], dl
je 0x4026ea
mov dl, byte [eax + 1]
add ecx, 4
movzx esi, byte [eax + 2]
and edx, 0xf
add eax, 3
shl edx, 2
shr esi, 6
or edx, esi
mov esi, dword [ebp + 0xc]
add edi, eax
mov dl, byte [edx + 0x40d538]
mov byte [ecx - 2], dl
mov dl, byte [eax - 1]
and edx, 0x3f
cmp edi, esi
mov dl, byte [edx + 0x40d538]
mov byte [ecx - 1], dl
jb 0x40265c
jmp 0x402701
mov al, byte [eax]
and eax, 3
shl eax, 4
mov al, byte [eax + 0x40d538]
mov byte [ecx + 2], 0x3d
mov byte [ecx + 1], al
jmp 0x4026fa
mov al, byte [eax + 1]
and eax, 0xf
mov al, byte [eax*4 + 0x40d538]
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x3d
add ecx, 4
and byte [ecx], 0
push 1
pop eax
jmp 0x40270b
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4065c4
Capabilities:
Hash data with md5

Disassembly:
jmp 0x4065c4
push esi
mov esi, ecx
push 0x40
push 0
lea eax, [esi + 0x44]
mov dword [esi], section..rdata
push eax
call fcn.0040a636
and dword [esi + 0x88], 0
and dword [esi + 0x84], 0
add esp, 0xc
mov dword [esi + 0x8c], 0x67452301
mov dword [esi + 0x90], 0xefcdab89
mov dword [esi + 0x94], 0x98badcfe
mov dword [esi + 0x98], 0x10325476
mov eax, esi
pop esi
ret
Function at 0x40528d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40a380
cmp edx, dword [eax]
je 0x4052af
add eax, 8
inc ecx
cmp eax, 0x40a410
jl 0x4052a0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40a380]
jne 0x4053dd
mov eax, dword [0x40a734]
cmp eax, 1
je 0x4053b7
test eax, eax
jne 0x4052e0
cmp dword [0x4082b0], 1
je 0x4053b7
cmp edx, 0xfc
je 0x4053dd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405317
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405f20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004060d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40535a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004060d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4073d0
push edi
call fcn.00406510
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405f20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405f30
lea eax, [ebp - 0xa0]
push 0x4073b0
push eax
call fcn.00405f30
push dword [esi + 0x40a384]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405f30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00406485
add esp, 0x2c
pop edi
jmp 0x4053dd
lea eax, [ebp + 8]
lea esi, [esi + 0x40a384]
push 0
push eax
push dword [esi]
call fcn.004060d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401306
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5246a8]
jne 0x401310
repz ret
jmp fcn.004bcf4b

Function at 0x401a70
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x401a80
xor al, al
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x401a7d
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x401a7d
mov edx, 0x10b
cmp word [eax + 0x18], dx
sete al
ret

Function at 0x402e30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
test ebx, ebx
jne 0x402e4b
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x3c]
mov eax, dword [eax + ecx + 0x78]
mov edx, dword [esi]
mov edx, dword [edx]
push edi
push eax
mov ecx, esi
call edx
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x402ef0
mov eax, dword [ebp + 8]
cmp eax, 0xffff
ja 0x402e84
pop edi
mov word [ebx], ax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [edi + 0x20]
mov eax, dword [esi]
mov edx, dword [eax]
push ecx
mov ecx, esi
call edx
mov ebx, eax
mov eax, dword [edi + 0x18]
lea eax, [ebx + eax*4]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], eax
cmp ebx, eax
je 0x402ef0
jmp 0x402ea7
mov eax, dword [ebp - 4]
sub eax, ebx
sar eax, 2
cdq
sub eax, edx
mov edx, dword [esi]
mov edx, dword [edx]
sar eax, 1
lea edi, [ebx + eax*4]
mov eax, dword [edi]
push eax
mov ecx, esi
call edx
mov ecx, dword [ebp + 8]
mov dl, byte [ecx]
test dl, dl
je 0x402ed5
cmp dl, byte [eax]
jne 0x402ed5
mov dl, byte [ecx + 1]
inc ecx
inc eax
test dl, dl
jne 0x402ec8
movzx edx, byte [eax]
movzx eax, byte [ecx]
sub eax, edx
je 0x402efb
test eax, eax
jle 0x402ee8
lea ebx, [edi + 4]
jmp 0x402eeb
mov dword [ebp - 4], edi
cmp ebx, dword [ebp - 4]
jne 0x402ea4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp - 8]
mov ecx, dword [ebx + 0x24]
mov eax, dword [esi]
mov edx, dword [eax]
push ecx
mov ecx, esi
call edx
sub edi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
sar edi, 2
mov ax, word [eax + edi*2]
add ax, word [ebx + 0x10]
pop edi
pop esi
mov word [ecx], ax
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x405970
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de063
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x527124], 0
je 0x4059a9
xor al, al
jmp 0x405a5e
push 0x40
call fcn.00404fcd
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4059cc
push 0
mov ecx, eax
call fcn.00405a80
jmp 0x4059ce
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x527124], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov word [ebp - 0x2c], cx
mov ecx, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x405a00
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406040
mov dword [ebp - 4], 1
mov ecx, dword [0x527124]
lea edx, [ebp - 0x2c]
push edx
call fcn.004062b0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x405a48
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406d09
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret

Function at 0x4062b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de028
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5246a8]
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]
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x34], edi
mov esi, 7
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], cx
mov dword [ebp - 4], edi
lea edx, [ebp - 0x2c]
push edx
push 3
push eax
call fcn.004063b0
add esp, 0xc
cmp dword [ebp - 0x1c], edi
jne 0x406331
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x406326
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406d09
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov word [ebp - 0x2c], cx
jmp 0x406389
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edi
jae 0x406340
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x30]
push edx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x30]
push esi
push eax
mov ecx, ebx
call fcn.00406ae0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x40637c
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00406d09
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], dx
mov dword [ebp - 0x1c], edi
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.00401306
mov esp, ebp
pop ebp
ret 4
Function at 0x407580
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14c], ebx
push edi
mov dword [esi], ebx
mov dword [esi + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push 0x4e698c
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x4075d0
xor eax, eax
jmp 0x4075f6
lea ecx, [ebp - 0x124]
push ecx
push edi
mov dword [ebp - 0x124], ebx
call eax
test eax, eax
jne 0x4075eb
mov eax, 2
jmp 0x4075f6
xor eax, eax
cmp dword [ebp - 0x124], ebx
setne al
push 0x118
lea edx, [ebp - 0x11c]
push ebx
push edx
mov dword [esi + 0x24], eax
mov dword [ebp - 0x120], 0x11c
call fcn.004b7180
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x118]
mov edx, dword [ebp - 0x114]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
cmp eax, 5
jne 0x407656
cmp ecx, ebx
jle 0x407682
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [esi], eax
jmp 0x407682
cmp eax, 6
jne 0x40767a
sub ecx, ebx
je 0x407672
dec ecx
je 0x40766a
mov dword [esi], 5
jmp 0x407682
mov dword [esi], 4
jmp 0x407682
mov dword [esi], 3
jmp 0x407682
jle 0x407682
mov dword [esi], 6
movzx ecx, word [ebp - 0xc]
movzx edx, word [ebp - 0xa]
xor eax, eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x148]
push eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
mov dword [ebp - 0x148], ebx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x148]
cmp eax, ebx
je 0x4076fc
cmp eax, 6
je 0x4076f3
cmp eax, 9
jne 0x4076ff
mov dword [esi + 0x18], 1
jmp 0x4076ff
mov dword [esi + 0x18], 2
jmp 0x4076ff
mov dword [esi + 0x18], ebx
mov ecx, dword [ebp - 0x134]
mov edx, dword [ebp - 0x12c]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0x20], edx
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x408950
Capabilities:
Query or enumerate registry value

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

Function at 0x40a360
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.SoftwareAdobeAdobe_Acrobat11.0Security
push 0x80000002
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a3ca
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4e862c
push ecx
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a3c0
cmp dword [ebp - 4], eax
jne 0x40a3c0
xor esi, esi
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a3e0
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push edi
push str.GlobalARM_Update_Mutex
push 0
push 0x100000
call esi
test eax, eax
je 0x40a406
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a435
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
jne 0x40a435
push str.GlobalAcro_Update_Mutex
push 0
push 0x100000
call esi
test eax, eax
je 0x40a42e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a435
call edi
cmp eax, 2
je 0x40a470
push 0x527ef9
push 0x208
call fcn.004218c1
mov edi, eax
add esp, 8
test edi, edi
je 0x40a470
push 0x208
push 0
push edi
call fcn.004b7180
push edi
call fcn.0043a760
add esp, 0x10
test eax, eax
je 0x40a476
push edi
call fcn.004168eb
add esp, 4
pop edi
xor eax, eax
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 0x3e8
jae 0x40a488
add eax, 0x3e8
push 1
push eax
push edi
call fcn.0043a490
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x40a4d0
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, 2
je 0x40a4cf
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, 1
jne 0x40a4bc
push 0
push 0xce
jmp 0x40a4c6
test ebx, ebx
jne 0x40a4cf
push ebx
push 0xcc
push edi
call fcn.0043a490
add esp, 0xc
pop ebx
push edi
call fcn.004168eb
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x40a780
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov ebx, eax
test ebx, ebx
je 0x40a841
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.004b7180
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40a850
cmp dword [ebp - 0x11c], 5
jne 0x40a850
mov eax, dword [ebp - 0x118]
cmp eax, 1
je 0x40a7f6
cmp eax, 2
jne 0x40a850
push esi
push edi
mov dword [ebp - 0x124], 2
call fcn.004b7a4e
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, eax
test esi, esi
je 0x40a827
push 4
lea edx, [ebp - 0x124]
push edx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
test edi, edi
je 0x40a83d
push 4
lea eax, [ebp - 0x124]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
pop edi
mov eax, ebx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x40aee0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.0040afe0
mov dword [ebp - 8], eax
test eax, eax
je 0x40af20
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x526038], eax
test eax, eax
jne 0x40af28
mov eax, 5
mov esp, ebp
pop ebp
ret
call fcn.00404050
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
call fcn.0040b380
add esp, 4
test al, al
je 0x40af17
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, dword [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push ecx
call fcn.0040bc60
add esp, 0x14
cmp dword [ebp - 8], 0
mov ebx, eax
je 0x40afa9
push 0
push 0x527180
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edx, dword [0x526038]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x40afa9
mov ecx, dword [ebp - 8]
push esi
mov esi, ecx
test ecx, ecx
je 0x40af96
call fcn.004524b0
push esi
call fcn.00406d09
add esp, 4
mov ecx, dword [0x527178]
pop esi
test ecx, ecx
je 0x40afa9
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40bbb0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
push edi
cmp dword [0x526094], esi
jne 0x40bbef
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x40bbe5
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x526090], eax
mov dword [0x526094], 1
mov eax, dword [0x526090]
mov edi, dword [ebp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40bc0b
push edi
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x40bc45
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x40bc3a
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
mov eax, dword [ebp + 8]
jns 0x40bc29
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
jmp 0x40bc2e
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
call edx
test eax, eax
je 0x40bc45
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push edi
push eax
call ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40e320
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de8d3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5246a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
push ebx
push ecx
mov dword [0x527138], eax
call fcn.0040e4e0
add esp, 8
cmp dword [0x52716c], 0
jne 0x40e377
mov edx, dword [0x527170]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40e382
mov ecx, dword [0x527168]
call fcn.0040e750
mov dword [ebp - 4], 0
mov eax, dword [0x527150]
test eax, eax
je 0x40e3a3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x527150], 0
mov eax, dword [ebp + 0xc]
mov dword [0x527148], eax
test eax, eax
je 0x40e488
cmp eax, 2
je 0x40e488
mov ecx, dword [0x52714c]
test ecx, ecx
jne 0x40e3fe
push 0x1c
call fcn.00404fcd
add esp, 4
mov dword [ebp + 0x18], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x40e3f0
xor ecx, ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
mov word [eax], cx
jmp 0x40e3f2
xor eax, eax
mov byte [ebp - 4], 0
mov ecx, eax
mov dword [0x52714c], ecx
mov eax, ebx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40e403
sub eax, esi
sar eax, 1
push eax
push ebx
call fcn.00406040
cmp dword [ebp + 0x14], 0
jne 0x40e433
mov eax, dword [0x52714c]
cmp dword [eax + 0x14], 8
jb 0x40e42c
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00450810
mov bl, al
mov dword [ebp - 4], 0xffffffff
cmp dword [0x52716c], 0
jne 0x40e46a
mov edx, dword [0x527170]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x527168]
call fcn.0040e760
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
cmp dword [0x52716c], 0
jne 0x40e4b7
mov eax, dword [0x527170]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x527168]
call fcn.0040e760
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret