joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10072507
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1007b38c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.100600dc
mov dword [ebp - 0x14], eax
cmp dword [0x10668740], esi
jne 0x100725fa
push 0x800
push esi
push 0x10009558
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10072587
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x100726da
push esi
push esi
push 0x10009558
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x100726da
push 0x10009570
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100726da
push eax
call ebx
push 0x1000957c
push edi
mov dword [0x10668740], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x1000958c
push edi
mov dword [0x10668744], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100095a0
push edi
mov dword [0x10668748], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10668750], eax
test eax, eax
je 0x100725f7
push 0x100095bc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1066874c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1007261f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10072612
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10072634
push 4
pop eax
jmp 0x100726dc
cmp dword [ebp - 0x14], esi
je 0x10072634
push dword [0x10668740]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10072619
mov eax, dword [0x1066874c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10072692
cmp dword [0x10668750], edi
je 0x10072692
push eax
call ebx
push dword [0x10668750]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10072692
test eax, eax
je 0x10072692
call ecx
test eax, eax
je 0x10072687
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10072687
test byte [ebp - 8], 1
jne 0x10072692
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x100726c2
mov eax, dword [0x10668744]
cmp eax, edi
je 0x100726bf
push eax
call ebx
test eax, eax
je 0x100726bf
call eax
mov esi, eax
test esi, esi
je 0x100726bf
mov eax, dword [0x10668748]
cmp eax, edi
je 0x100726bf
push eax
call ebx
test eax, eax
je 0x100726bf
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10668740]
call ebx
test eax, eax
je 0x100726da
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x100726dc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x404284
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405954
test esi, esi
jne 0x4042ba
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405a90
jmp 0x4042d8
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404168
mov edi, eax
test esi, esi
je 0x4042d8
cmp dword [ebx], 0
je 0x4042d8
dec esi
jmp 0x4042c1
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x404b64
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00404e00
mov byte [esp], al
cmp byte [esp], 0
jne 0x404cee
test edi, edi
je 0x404cee
mov byte [esp + 1], 0
test ebp, ebp
jle 0x404c2e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x404c09
cmp edi, 0xffffffff
je 0x404bc9
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x404bc9
mov byte [esp], 0
jmp 0x404cee
mov ebx, dword [esi]
cmp ebx, 1
jg 0x404c09
test ebx, ebx
jne 0x404bfb
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x404bfb
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x404cee
lea eax, [esp + 0xc]
call fcn.00404914
dec ebp
test ebp, ebp
jg 0x404bae
cmp edi, 0xffffffff
je 0x404c2e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x404c2c
mov byte [esp], 0
jmp 0x404cee
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x404b72
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x404c2e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00404d5c
mov edx, eax
mov ebx, dword [0x41c8f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x404c92
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x404c90
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x404c92
xor edi, edi
cmp byte [esp], 0
je 0x404cb8
mov ebx, dword [esi]
test bl, 1
jne 0x404cce
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x404c98
mov byte [esp + 1], 1
jmp 0x404cce
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x404cb8
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x404c45
cmp byte [esp], 0
je 0x404cee
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4056d0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41c054], 0
je 0x405737
cmp word [0x41c340], 0xd7b2
jne 0x4056f9
cmp dword [0x41c348], 0
jbe 0x4056f9
mov eax, 0x41c33c
call dword [0x41c358]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x405764
call fcn.00405d9c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41a022], 0
jne 0x405753
push 0
push 0x41a99a
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406dc0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x406f25
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405954
cmp si, word [0x41a9d8]
jb 0x406e58
cmp si, word [0x41abd8]
ja 0x406e58
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x406e58
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x41a9d8]
jae 0x406e32
mov edi, ebx
dec edi
jmp 0x406e53
cmp si, word [ebx*8 + 0x41a9d8]
jbe 0x406e42
inc ebx
mov dword [ebp - 8], ebx
jmp 0x406e53
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x41a9dc]
call fcn.00406ce0
jmp 0x406e58
cmp edi, dword [ebp - 8]
jae 0x406e1c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x406f07
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x406f07
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00405ed8
push dword [ebp - 0x160]
push 0x406f40
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00405ed8
push dword [ebp - 0x164]
push 0x406f50
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00405ed8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00406090
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406f2c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004059b4
ret
Function at 0x4070d8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4071dc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x41eb84
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x41eb9c]
jne 0x407124
mov eax, esi
mov edx, 0x41eb9e
mov ecx, 0x55
call fcn.00405ed8
push 0x41eb84
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4071c6
push 0x41eb84
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00405954
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x407193
cmp byte [0x41eb80], 0
je 0x407158
mov edx, esi
mov eax, ebx
call fcn.00406fbc
jmp 0x407193
mov edx, esi
mov eax, ebx
call fcn.00406dc0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x407193
cmp dword [esi], 0
je 0x40717c
mov eax, esi
mov edx, 0x4071f4
call fcn.00405fb0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00406dc0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00405fb0
push 0x41eb84
call sub.kernel32.dll_EnterCriticalSection
mov word [0x41eb9c], bx
mov eax, dword [esi]
call fcn.00405e44
mov ecx, eax
mov eax, 0x41eb9e
mov edx, 0xaa
call fcn.00406c40
push 0x41eb84
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4071e3
lea eax, [ebp - 4]
call fcn.00405954
ret
Function at 0x40740c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405a38
xor eax, eax
push ebp
push 0x407631
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40744c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x407466
mov eax, dword [ebp - 4]
call fcn.00405e44
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00406c40
cmp word [ebp - 0x21a], 0
je 0x40761b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407640
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407535
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407640
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407535
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40767c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407535
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40767c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407535
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4076b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407535
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4076e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40761b
xor eax, eax
push ebp
push 0x407614
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040721c
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4075a4
mov eax, dword [ebp - 0x10]
call fcn.00403ec4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00405e9c
jmp 0x4075ef
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x407724
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4075ef
mov eax, dword [ebp - 0x10]
call fcn.00403ec4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x407724
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00405e9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40761b
cmp dword [ebp - 8], 0
je 0x40760a
mov eax, dword [ebp - 8]
call fcn.00403ee0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407638
lea eax, [ebp - 4]
call fcn.00405954
ret
Function at 0x407920
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405a38
xor eax, eax
push ebp
push 0x4079e0
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00405ed8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406008
mov eax, dword [ebx]
call fcn.004077e8
test al, al
jne 0x4079bd
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00405ed8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406008
mov eax, dword [ebx]
call fcn.004077e8
test al, al
jne 0x4079bd
mov eax, ebx
call fcn.00405954
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4079e7
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004059b4
lea eax, [ebp - 4]
call fcn.00405954
ret

Function at 0x407f60
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x413f40
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x413f79
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405a90
jmp 0x413f82
mov eax, ebx
mov edx, esi
call fcn.00405c0c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x413f8c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x413fae
movzx eax, word [esp]
jmp 0x413fb0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x414efc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x415021
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00414d04
mov esi, eax
mov eax, dword [0x41b74c]
cmp byte [eax], 0
je 0x414fc9
mov eax, dword [0x41b668]
call fcn.00404364
call fcn.00404018
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x414ecc]
call fcn.00406828
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x41503c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x415005
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x41b644]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41ec4c]
call fcn.004068e0
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415028
lea eax, [ebp - 4]
mov edx, dword [0x414ecc]
call fcn.00406834
ret

Function at 0x415d44
Capabilities:
Check os version

Disassembly:
add esp, 0xfffffee0
mov dword [esp + 0xc], 0x114
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x415df5
cmp dword [esp + 0x10], 6
ja 0x415d79
cmp dword [esp + 0x10], 6
jne 0x415da5
cmp dword [esp + 0x14], 1
jbe 0x415da5
mov dword [esp + 8], 0xffffffff
lea ecx, [esp + 8]
lea edx, [esp + 4]
mov eax, esp
call fcn.00415bf4
mov eax, dword [esp]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
mov dword [0x41ae9c], eax
mov eax, dword [esp + 0x10]
mov dword [0x41aea0], eax
mov eax, dword [esp + 0x14]
mov dword [0x41aea4], eax
cmp dword [0x41ae9c], 1
jne 0x415dd9
mov eax, dword [esp + 0x18]
and eax, 0xffff
mov dword [0x41aea8], eax
jmp 0x415de2
mov eax, dword [esp + 0x18]
mov dword [0x41aea8], eax
mov eax, 0x41aeac
lea edx, [esp + 0x20]
mov ecx, 0x80
call fcn.00405ed8
add esp, 0x120
ret
Function at 0x41620c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00405cfc
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00407f40
mov edi, eax
cmp edi, 0x104
jbe 0x4161b7
mov eax, edi
add eax, eax
call fcn.00403ec4
mov esi, eax
jmp 0x4161b9
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00407f40
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4161f2
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4161dc
mov eax, esp
cmp esi, eax
je 0x4161ff
mov eax, esi
call fcn.00403ee0
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x416238
cmp bl, 0
je 0x416234
cmp bl, 0x41
jl 0x41622f
cmp bl, 0x5a
jg 0x41622f
or bl, 0x20
xor al, bl
inc esi
jmp 0x416213
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x416178
Function at 0x886058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8861a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x88607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x88606a
add dl, dl
jne 0x886089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8860dc
xor eax, eax
add dl, dl
jne 0x886096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x88617d
add dl, dl
jne 0x8860a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8860b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8860bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8860c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8860d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x886075
mov eax, 1
add dl, dl
jne 0x8860ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8860f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8860e1
sub eax, ebx
mov ebx, 1
jne 0x886128
mov ecx, 1
add dl, dl
jne 0x88610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x886119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x886105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x886075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x88613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x88614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x886136
cmp eax, 0x7d00
jae 0x88616d
cmp eax, 0x500
jb 0x886168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x886075
cmp eax, 0x7f
ja 0x886170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x886075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x88619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x886075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40274a
Capabilities:
Access the windows event log
Clear windows event logs
Get common file path
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
xor ebx, ebx
call edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp ebx, 0x58ce993
jg 0x40277a
inc ebx
cmp ebx, 0x1f6502e2
jl 0x402760
cmp dword [0x431374], 0x400
jne 0x4027fc
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
lea eax, [ebp - 0x800]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push esi
push esi
call dword [sym.imp.USER32.dll_DdeCmpStringHandles]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_BackupEventLogA]
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push str.gapozakivovi
push esi
call fcn.00402ac8
push esi
push esi
call fcn.00402e2a
fldz
add esp, 8
fstp qword [esp]
call fcn.00402d10
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.004028a0
fstp st(0)
push esi
call fcn.00402ed7
push esi
call fcn.00402ee6
add esp, 0x10
xor ebx, ebx
cmp ebx, 0xd0fe
jge 0x40280d
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp ebx, 0x58bc6e
jg 0x402827
inc ebx
cmp ebx, 0xe52f
jl 0x4027fe
mov eax, dword [0x42a304]
mov dword [0x431374], eax
call fcn.004024cc
mov edi, 0x3078f
cmp dword [0x431374], 0x51f
jne 0x402855
push esi
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec edi
jne 0x40283b
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10

Function at 0x407135
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x429d58]
jne 0x40713f
repz ret
jmp fcn.00409a13