joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d070
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440f30
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x45b660]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x1c]
call fcn.0043c310
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0043c750
movzx ecx, al
test ecx, ecx
je 0x43d0f1
push 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0043c7e0
movzx eax, al
test eax, eax
jne 0x43d0f1
mov ecx, dword [ebp + 8]
call fcn.00405d80
mov byte [ebp - 0x1d], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0043bd40
mov al, byte [ebp - 0x1d]
jmp 0x43d1c7
push 0x80
mov ecx, dword [ebp + 0xc]
call fcn.0043bd00
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
movzx ecx, byte [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0043bd00
push eax
mov ecx, dword [ebp - 0x24]
call fcn.00439a60
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x43d186
mov ecx, dword [ebp - 0x24]
call fcn.00439a90
push eax
push 0x450334
mov ecx, dword [ebp + 8]
call fcn.0043dcf0
mov ecx, eax
call fcn.0043dba0
mov ecx, eax
call fcn.0043dba0
mov ecx, dword [ebp + 0xc]
call fcn.0043bd00
push eax
push 0x450344
mov ecx, dword [ebp + 8]
call fcn.00401e70
mov ecx, eax
call fcn.0043dba0
mov ecx, dword [ebp + 8]
call fcn.00405d80
mov byte [ebp - 0x1e], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0043bd40
mov al, byte [ebp - 0x1e]
jmp 0x43d1c7
push 0x80
mov ecx, dword [ebp + 0xc]
call fcn.0043bd00
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp + 0xc]
call fcn.0043bae0
mov ecx, dword [ebp + 0xc]
call fcn.0043bd80
mov ecx, dword [ebp + 8]
call fcn.00401380
mov byte [ebp - 0x1f], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0043bd40
mov al, byte [ebp - 0x1f]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43dd60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov byte [eax + 4], 0
push 0x20804
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x43dd8b
jmp 0x43de3b
mov ecx, dword [ebp - 4]
push ecx
push 0x20804
call fcn.004043e0
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43ddbc
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00404420
mov dword [ebp - 0x20], eax
jmp 0x43ddc3
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 8], edx
push 0x450cfc
push 0x450d08
mov al, byte [ebp + 0x10]
push eax
push 0x10000
mov ecx, dword [ebp - 8]
add ecx, 0x804
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.0043d820
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0x804]
test eax, eax
jne 0x43de04
jmp 0x43de31
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
push 0x43d700
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x43de2f
jmp 0x43de31
jmp 0x43de3b
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43f7f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x43f8c9
cmp dword [ebp + 0x14], 0
je 0x43f842
mov ecx, dword [ebp + 0x14]
movzx edx, word [ecx]
test edx, edx
jne 0x43f87b
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00439a90
push eax
push 0x44fa68
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
call fcn.0043dd30
mov ecx, eax
call fcn.0043dba0
mov ecx, eax
call fcn.0043dba0
mov ecx, eax
call fcn.00404180
jmp 0x43f963
mov ecx, dword [ebp + 0x14]
push ecx
push 0x44fa88
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00439a90
push eax
push 0x44fa78
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
call fcn.0043dd30
mov ecx, eax
call fcn.0043dba0
mov ecx, eax
call fcn.0043dba0
mov ecx, eax
call fcn.0043dba0
mov ecx, eax
call fcn.0043dba0
mov ecx, eax
call fcn.00404180
jmp 0x43f963
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x18]
je 0x43f95b
cmp dword [ebp + 0x14], 0
je 0x43f8e5
mov ecx, dword [ebp + 0x14]
movzx edx, word [ecx]
test edx, edx
jne 0x43f910
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00439a90
push eax
push 0x44fa8c
mov ecx, dword [ebp + 8]
call fcn.00401e70
mov ecx, eax
call fcn.0043dba0
mov ecx, eax
call fcn.00404180
jmp 0x43f963
mov eax, dword [ebp + 0x14]
push eax
push 0x44fabc
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00439a90
push eax
push 0x44faa4
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0043dd30
mov ecx, eax
call fcn.0043dba0
mov ecx, eax
call fcn.0043dba0
mov ecx, eax
call fcn.0043dba0
mov ecx, eax
call fcn.0043dba0
mov ecx, eax
call fcn.00404180
jmp 0x43f963
mov ecx, dword [ebp + 8]
call fcn.00401380
mov esp, ebp
pop ebp
ret 0x14
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x56b70efd
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x11764a19
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4061e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406205
mov eax, dword [0x40a8f0]
cmp eax, 0xffffffff
je 0x4061fc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8f0], 0xffffffff
jmp 0x406278
cmp dword [0x42ff60], ebx
je 0x406278
cmp byte [0x42fb60], bl
je 0x406244
cmp dword [0x40a8f0], 0xffffffff
jne 0x40624d
push 4
push 0x40000000
push 0x42fb60
call fcn.00405bdc
cmp eax, 0xffffffff
mov dword [0x40a8f0], eax
je 0x406278
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8f0], 0xffffffff
je 0x406278
push esi
mov esi, 0x430780
push 0x40aac0
push esi
call sub.KERNEL32.dll_lstrcatA
lea eax, [ebp + 8]
push ebx
push eax
push esi
call sub.KERNEL32.dll_lstrlenA
push eax
push esi
push dword [0x40a8f0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
cmp dword [0x42e5cc], 0
push esi
jne 0x40645f
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 0x406439
mov dword [ecx*4 + 0x42e5c8], eax
inc ecx
cmp ecx, 0x100
jl 0x406434
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406490
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 + 0x42e5c8]
xor eax, esi
inc ecx
dec edx
jne 0x406472
pop edi
not eax
pop esi
ret 0xc

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x28067ac8
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x1e07432d
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x40136a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x798]
sub esp, 0x818
mov eax, dword [0x50b384]
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.00401313
add esp, 0x14
test eax, eax
jl 0x401420
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 0x401420
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 0x4cea28
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 0x401417
cmp dword [ebp - 0x78], edi
jne 0x401417
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.0048ebcd
add ebp, 0x798
leave
ret
Function at 0x402c73
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push 0x48
mov eax, 0x4c5e96
call fcn.0048f02b
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.00402bf5
cmp dword [ebp - 0x34], ebx
jne 0x402cd4
push 9
pop esi
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.00401634
push dword [ebp - 0x54]
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
call fcn.0048f0ae
ret 0xc
cmp dword [edi + 0xc], 0x400
jbe 0x402ce1
push 8
jmp 0x402cae
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 7
call fcn.004014a3
cmp dword [esi + 0x14], 2
push 0xffffffffffffffff
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
push ebx
lea eax, [esi + 0x64]
je 0x402d07
lea eax, [esi + 0x48]
push eax
call fcn.00401c51
cmp dword [esi + 8], ebx
jne 0x402d43
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x402d1e
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 0x402d43
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00401634
jmp 0x402cac
mov eax, dword [ebp - 0x44]
push 8
pop esi
mov dword [ebp - 0x50], ebx
cmp dword [ebp - 0x30], esi
jae 0x402d54
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 0x402da1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
push 1
cmp eax, 0x5b4
jne 0x402d97
call fcn.00401634
push 0xa
jmp 0x402cae
call fcn.00401634
jmp 0x402caf
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00401634
xor esi, esi
jmp 0x402caf
Function at 0x402db7
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebp
lea ebp, [esp - 0x7a4]
sub esp, 0x824
mov eax, dword [0x50b384]
xor eax, ebp
mov dword [ebp + 0x7a0], eax
push esi
mov esi, ecx
cmp dword [esi + 0x14], 1
jne 0x402de2
xor eax, eax
jmp 0x402ede
push edi
xor edi, edi
lea ecx, [ebp + 0x390]
mov dword [ebp - 0x80], edi
call fcn.00402581
lea ecx, [ebp - 0x7c]
call fcn.004025a1
cmp dword [esi + 0x14], 3
jne 0x402e64
cmp dword [esi + 0x7c], 8
mov eax, dword [esi + 0x78]
jb 0x402e0f
mov ecx, dword [esi + 0x68]
jmp 0x402e12
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.00402610
add esp, 0x18
push edi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x390]
push eax
mov ecx, esi
call fcn.00402c73
lea ecx, [ebp + 0x390]
call fcn.00402581
lea ecx, [ebp - 0x7c]
call fcn.004025a1
cmp dword [esi + 0x14], 3
jne 0x402e64
cmp dword [esi + 0x94], edi
jne 0x402e64
push 9
pop eax
jmp 0x402edd
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.00402610
lea eax, [esi + 0x80]
add esp, 0x18
cmp dword [eax + 0x18], 8
jb 0x402e98
mov eax, dword [eax + 4]
jmp 0x402e9b
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 0x402edb
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.0048ebcd
add ebp, 0x7a4
leave
ret
Function at 0x40394c
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 0x403997
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x40397f
push 0xd
pop esi
cmp esi, 0xe8
jne 0x4039a4
push 0xa
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0xa
jl 0x403954
jmp 0x4039a4
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 0x4039aa
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 0x4039ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebx
jne 0x403a81
push 0xd
pop edi
jmp 0x403a81
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 0x403a12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebx
jne 0x403a78
push 0xd
pop edi
jmp 0x403a78
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 0x403a01
cmp dword [ebp + 0x10], ebx
je 0x403a78
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.0040394c
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x403a78
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 0x403af4
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x3ac]
sub esp, 0x42c
mov eax, dword [0x50b384]
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.0048f0d0
xor eax, eax
push esi
mov word [ebp + 0x19c], ax
lea eax, [ebp + 0x19e]
push edi
push eax
call fcn.0048f0d0
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 0x4cec90
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 0x403b9b
push esi
push ebx
push dword [ebp - 0x78]
call fcn.0040390a
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x403bb3
push str.thsnYaVieBoda
push esi
push ebx
call fcn.00403aba
cmp dword [ebp - 0x74], edi
je 0x403bc2
push dword [ebp - 0x74]
push esi
push ebx
call fcn.00403aba
mov ecx, dword [ebp + 0x3a8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048ebcd
add ebp, 0x3ac
leave
ret

Function at 0x403c38
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 0x403cd2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
push 0x50f238
mov esi, 0x208
push esi
call fcn.0048f4c0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x403ce4
push esi
push 0
push edi
call fcn.0048f0d0
push edi
call fcn.00403bda
add esp, 0x10
test eax, eax
jne 0x403ce4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x3e8
cmp eax, ecx
jae 0x403c9a
add eax, ecx
push 1
push eax
push edi
call fcn.004039aa
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x403cc7
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0xcc
push edi
call fcn.004039aa
add esp, 0xc
push edi
call fcn.0048f4b5
pop ecx
mov eax, esi
jmp 0x403ce6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x403c59
xor eax, eax
ret
xor eax, eax
pop edi
pop esi
ret
Function at 0x403d01
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x50cca8], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x403d45
call ebx
test eax, eax
jns 0x403d3b
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x50cca4], eax
mov dword [0x50cca8], 1
mov eax, dword [0x50cca4]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403d61
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
test eax, eax
jne 0x403d91
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x403d87
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x403d7c
push dword [eax + 0xc]
call dword [eax + 8]
jmp 0x403d81
push dword [eax + 4]
call dword [eax]
test eax, eax
je 0x403d90
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 0x4064b3
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 0x406504
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x406515
push 0xd
pop eax
jmp 0x406542
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 0x406518
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 0x406a95
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x50b384]
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.00406472
mov ebx, eax
cmp ebx, esi
je 0x406b05
lea ecx, [ebp - 0x70]
call fcn.004063fd
mov eax, ebx
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048ebcd
add ebp, 0x19c
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x406b1d
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x70]
call fcn.00406a95
cmp eax, esi
jne 0x406b4f
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 0x406b0d
lea ecx, [ebp - 0x70]
call fcn.004063fd
push dword [ebp - 0x78]
mov ecx, edi
call fcn.004063a2
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.004063fd
mov eax, esi
jmp 0x406aeb
Function at 0x40c995
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0041cb90
mov dword [ebp - 4], eax
test eax, eax
jne 0x40c9b1
call fcn.0041cb10
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.0040c6e7
add esp, 0x14
leave
ret

Function at 0x40cbf3
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x50b384]
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.0048f0d0
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 0x40cc4b
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call esi
test eax, eax
jne 0x40cc4b
xor al, al
jmp 0x40cc52
cmp dword [ebp - 0x7c], 6
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
pop esi
call fcn.0048ebcd
add ebp, 0xa0
leave
ret