joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10144bb0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
lea edi, [ebp - 0x40]
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x1017d880]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x10187536
call fcn.10071e0a
push 0
push 4
call fcn.10070ba9
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x10144d3b
mov dword [ebp - 0x30], 0x1c
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10070a55
test eax, eax
je 0x10144d28
cmp dword [ebp - 0x30], 0x10
jb 0x10144d0c
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, esp
call fcn.10071496
cmp dword [ebp - 0x24], eax
jne 0x10144d0c
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, esp
call fcn.10071496
cmp dword [ebp - 0x28], eax
je 0x10144d0c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10144c93
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0x80
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 2
mov esi, esp
push ecx
push 0
mov edx, dword [0x1018474c]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp esi, esp
call fcn.10071496
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10144c91
jmp 0x10144d28
jmp 0x10144cec
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
cmp edx, dword [ecx + 4]
jb 0x10144cec
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 1
shl ecx, 2
mov esi, esp
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x1018474c]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
cmp esi, esp
call fcn.10071496
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x10144cd6
jmp 0x10144d28
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov edx, dword [ebp - 0x28]
mov dword [eax + ecx*4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 8], ecx
mov dword [ebp - 0x30], 0x1c
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.100700e1
test eax, eax
jne 0x10144c11
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.10071496
push edx
mov ecx, ebp
push eax
lea edx, [0x10144d6c]
call fcn.10071117
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10070c76
add esp, 0x100
cmp ebp, esp
call fcn.10071496
mov esp, ebp
pop ebp
ret
Function at 0x10145010
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
push edi
lea edi, [ebp - 0x18]
mov ecx, 6
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x10187536
call fcn.10071e0a
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov eax, dword [ebp + 8]
push eax
call fcn.10144bb0
add esp, 4
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x101450eb
mov dword [ebp - 8], 0
jmp 0x1014507c
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 8]
jae 0x101450eb
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov esi, esp
mov edx, dword [ebp - 8]
mov eax, dword [ecx + edx*4]
push eax
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
cmp esi, esp
call fcn.10071496
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x101450e9
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp esi, esp
call fcn.10071496
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.10145df0
add esp, 0xc
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.10071496
jmp 0x10145073
pop edi
pop esi
pop ebx
add esp, 0xd8
cmp ebp, esp
call fcn.10071496
mov esp, ebp
pop ebp
ret

Function at 0x101461a0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
push edi
lea edi, [ebp - 0x18]
mov ecx, 6
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x10187536
call fcn.10071e0a
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x1014625c
mov dword [ebp - 8], 0
jmp 0x101461e3
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 8]
jae 0x1014623e
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov esi, esp
mov edx, dword [ebp - 8]
mov eax, dword [ecx + edx*4]
push eax
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
cmp esi, esp
call fcn.10071496
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1014623c
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, esp
call fcn.10071496
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.10071496
jmp 0x101461da
mov esi, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x1018474c]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, esp
call fcn.10071496
pop edi
pop esi
pop ebx
add esp, 0xd8
cmp ebp, esp
call fcn.10071496
mov esp, ebp
pop ebp
ret
Function at 0x10146990
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
lea edi, [ebp - 0xc]
mov ecx, 3
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x101875fa
call fcn.10071e0a
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x101469f8
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
cmp eax, 0x90
je 0x101469f8
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
cmp eax, 0xcc
je 0x101469f8
xor eax, eax
jmp 0x10146a39
mov dword [ebp - 8], 1
jmp 0x10146a0a
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jae 0x10146a34
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
mov edx, 1
imul eax, edx, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + eax]
cmp ecx, eax
je 0x10146a32
xor eax, eax
jmp 0x10146a39
jmp 0x10146a01
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0xcc
cmp ebp, esp
call fcn.10071496
mov esp, ebp
pop ebp
ret
Function at 0x4b8e60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x76000]
push edi
jmp 0x4b8e7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b8e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8e70
mov eax, 1
add ebx, ebx
jne 0x4b8e93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b8ea4
jne 0x4b8ec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8ec3
dec eax
add ebx, ebx
jne 0x4b8eb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b8e88
add ebx, ebx
jne 0x4b8ebf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b8f15
xor ecx, ecx
sub eax, 3
jb 0x4b8edb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b8f4a
sar eax, 1
mov ebp, eax
jmp 0x4b8ee6
add ebx, ebx
jne 0x4b8ee6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8eb4
inc ecx
add ebx, ebx
jne 0x4b8ef4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8eb4
add ebx, ebx
jne 0x4b8f01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b8ef6
jne 0x4b8f12
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b8ef6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b8f34
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b8f26
jmp 0x4b8e76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b8f34
add edi, ecx
jmp 0x4b8e76
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b8f52
cmp byte [edi], 0x13
jne 0x4b8f52
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 0x4b8f57
lea edi, [esi + 0xb4000]
mov eax, dword [edi]
or eax, eax
je 0x4b8fcf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc0034]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc0188]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b8f84
mov ecx, edi
jns 0x4b8fb3
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 + 0xc018c]
or eax, eax
je 0x4b8fc9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b8fa1
call dword [esi + 0xc019c]
mov ebp, dword [esi + 0xc0190]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x4b9003
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x789f90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x789ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x78a035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.00789e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x789fc5
mov edi, 0x7a48b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x78a035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00789e00
add edi, 4
add esp, 0xc
cmp edi, 0x7a48c0
jb 0x78a000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret
Function at 0x78af10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x79f9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x78b002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.0078edff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x78b002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.007866e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0078f20b
push 0x10
call fcn.0078f1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x78afc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.0077b1c0
jmp 0x78afc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.0078ab80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x78aff0
mov ecx, edi
call fcn.0077b2c0
push edi
call fcn.0078f1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x78b021
inc ebx
cmp ebx, 0x20
jb 0x78af3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x78e1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0078e140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0078e140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0078e140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0078e140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x78ebfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x78ec50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x7a087c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x78ec43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x78ec52
xor eax, eax
pop esi
leave
ret 4
Function at 0x406234
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x406243
pop dword [ebp - 0x14]
mov eax, 0xfe57423a
sub eax, 0xfe16dff7
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x964c10a8
sub dword [ebp - 0x24], 0x47f9cb5d
mov dword [ebp - 0x20], 0x5287b4d0
add dword [ebp - 0x20], 0xdfab9775
mov dword [ebp - 0x1c], 0x38a23753
sub dword [ebp - 0x1c], 0xec55f325
mov dword [ebp - 0x18], 0xe4599e18
sub dword [ebp - 0x18], 0xe4599e18
lea eax, [ebp - 0x24]
push eax
mov eax, 0x2eea8ba9
sub eax, 0x2eaa0aa5
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x329d2e9c
add dword [ebp - 0x24], 0x41d53aba
mov dword [ebp - 0x20], 0x8abd88e3
add dword [ebp - 0x20], 0xb6aed892
mov dword [ebp - 0x1c], 0x71933cce
add dword [ebp - 0x1c], 0xf1dc2f9e
mov dword [ebp - 0x18], 0x970de884
sub dword [ebp - 0x18], 0x970de884
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x238a7dcf
sub eax, 0x2349fccf
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x369af
push 0
call eax
mov ecx, 0xa86968f6
sub ecx, 0xa86922a2
mov edi, eax
mov ebx, 0x46e400
add ebx, dword [ebp - 0x14]
mov esi, 0x265fdec8
sub esi, 0x74dc1936
xor dword [ebp - 4], eax
mov edx, dword [ebx]
mov dword [ebp - 0xc], 0x1831d352
xor edx, esi
add dword [ebp - 0x10], eax
mov dword [edi], edx
add dword [ebp - 4], 0xfadec422
add edi, 0x47079e15
sub edi, 0x47079e11
add ebx, 0xc711787a
sub ebx, 0xc7117876
loop 0x40635f
add eax, 0x502300fc
add eax, 0xafde0b27
mov ebx, eax
add eax, 0x3071de21
add eax, 0xcf8e21e4
mov ecx, 0xb5a201cc
add ecx, 0x4a9dfe34
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

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

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4066d4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4066ae
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4066a9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406705
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x4066e7
pop edi
not eax
pop esi
ret 0xc
Function at 0x401270
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x408084]
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 0x401332
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call sub.MSVCR100.dll_memset
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 0x401341
cmp dword [ebp - 0x11c], 5
jne 0x401341
mov eax, dword [ebp - 0x118]
cmp eax, 1
je 0x4012e6
cmp eax, 2
jne 0x401341
push esi
push edi
mov dword [ebp - 0x124], 2
call dword [sym.imp.MSVCR100.dll__get_heap_handle]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, eax
test esi, esi
je 0x401318
push 4
lea edx, [ebp - 0x124]
push edx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
test edi, edi
je 0x40132e
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.00401352
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00401352
mov esp, ebp
pop ebp
ret

Function at 0x401352
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408084]
jne 0x40135c
repz ret
jmp fcn.0040484a

Function at 0x401750
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
push edi
cmp dword [0x408104], esi
jne 0x40178f
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x401785
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x408100], eax
mov dword [0x408104], 1
mov eax, dword [0x408100]
mov edi, dword [ebp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4017ab
push edi
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x4017e5
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x4017da
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
mov eax, dword [ebp + 8]
jns 0x4017c9
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
jmp 0x4017ce
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
call edx
test eax, eax
je 0x4017e5
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 0x401b70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
lea esp, [esp]
mov ecx, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push 4
push ebx
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401bd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x401bc9
cmp esi, 0xe8
jne 0x401bc0
push 0xa
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0xa
jl 0x401b80
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xd
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
sub eax, 4
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 0xd
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401bf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x10
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push esi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401c2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401cf8
pop edi
lea eax, [esi + 0xd]
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
lea ecx, [ebp - 0xc]
push ecx
push edi
mov dword [ebp - 0xc], 3
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x401c69
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x401cef
push edi
lea esi, [eax + 0xd]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 8]
push edx
push 4
lea eax, [ebp + 0xc]
push eax
push edi
mov dword [ebp - 8], esi
call ebx
test eax, eax
jne 0x401ca5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x401cee
pop ebx
push edi
lea esi, [eax + 0xd]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], esi
je 0x401cee
lea ecx, [ebp - 4]
xor eax, eax
push ecx
push edi
mov byte [ebp - 4], 0
mov word [ebp - 3], ax
mov byte [ebp - 1], al
call fcn.00401b70
mov esi, eax
add esp, 8
test esi, esi
jne 0x401cee
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
inc edx
sub eax, edx
neg eax
sbb eax, eax
and eax, 0xd
push 0
mov esi, eax
lea eax, [ebp - 8]
push eax
push 4
lea ecx, [ebp - 0x10]
push ecx
push edi
call ebx
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401d00
Capabilities:
Check if file exists
Check mutex on windows
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x408084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x41a]
push ecx
mov word [ebp - 0x41c], ax
call sub.MSVCR100.dll_memset
xor edx, edx
push 0x208
push edx
lea eax, [ebp - 0x20e]
push eax
mov word [ebp - 0x210], dx
call sub.MSVCR100.dll_memset
add esp, 0x18
push 0x105
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x428]
push edx
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x420]
push ecx
push 0x105
lea edx, [ebp - 0x41c]
push edx
push 0x4062ac
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x428], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x401dbf
mov eax, dword [ebp - 0x420]
push 0x104
push esi
push eax
call fcn.00401b10
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x401e11
push str.GlobalARM_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x401def
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.thsnYaVieBoda
jmp 0x401e06
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x401e01
push str.thsnYaVieBoda
jmp 0x401e06
push str.TsnIorcAeBoda
push 0x104
push esi
call fcn.00401fe0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x401e24
push eax
push 0x104
push esi
call fcn.00401fe0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00401352
mov esp, ebp
pop ebp
ret

Function at 0x401ee0
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 0x401f06
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401f35
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
jne 0x401f35
push str.GlobalAcro_Update_Mutex
push 0
push 0x100000
call esi
test eax, eax
je 0x401f2e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401f35
call edi
cmp eax, 2
je 0x401f70
push 0x408190
push 0x208
call fcn.00404496
mov edi, eax
add esp, 8
test edi, edi
je 0x401f70
push 0x208
push 0
push edi
call sub.MSVCR100.dll_memset
push edi
call fcn.00401e40
add esp, 0x10
test eax, eax
je 0x401f76
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
pop edi
xor eax, eax
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 0x3e8
jae 0x401f88
add eax, 0x3e8
push 1
push eax
push edi
call fcn.00401bf0
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x401fd0
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, 2
je 0x401fcf
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, 1
jne 0x401fbc
push 0
push 0xce
jmp 0x401fc6
test ebx, ebx
jne 0x401fcf
push ebx
push 0xcc
push edi
call fcn.00401bf0
add esp, 0xc
pop ebx
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
ret