joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40584c
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.00405ae8
mov byte [esp], al
cmp byte [esp], 0
jne 0x4059d6
test edi, edi
je 0x4059d6
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405916
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4058f1
cmp edi, 0xffffffff
je 0x4058b1
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4058b1
mov byte [esp], 0
jmp 0x4059d6
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4058f1
test ebx, ebx
jne 0x4058e3
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4058e3
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4059d6
lea eax, [esp + 0xc]
call fcn.004055fc
dec ebp
test ebp, ebp
jg 0x405896
cmp edi, 0xffffffff
je 0x405916
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405914
mov byte [esp], 0
jmp 0x4059d6
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40585a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405916
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405a44
mov edx, eax
mov ebx, dword [0x41f8f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40597a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405978
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40597a
xor edi, edi
cmp byte [esp], 0
je 0x4059a0
mov ebx, dword [esi]
test bl, 1
jne 0x4059b6
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405980
mov byte [esp + 1], 1
jmp 0x4059b6
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4059a0
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40592d
cmp byte [esp], 0
je 0x4059d6
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 0x406554
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41f054], 0
je 0x4065bb
cmp word [0x41f340], 0xd7b2
jne 0x40657d
cmp dword [0x41f348], 0
jbe 0x40657d
mov eax, 0x41f33c
call dword [0x41f358]
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, 0x4065e8
call fcn.00406d9c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41d022], 0
jne 0x4065d7
push 0
push 0x41d9b2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4080c8
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 0x40822d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004067e0
cmp si, word [0x41d9f0]
jb 0x408160
cmp si, word [0x41dbf0]
ja 0x408160
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408160
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x41d9f0]
jae 0x40813a
mov edi, ebx
dec edi
jmp 0x40815b
cmp si, word [ebx*8 + 0x41d9f0]
jbe 0x40814a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40815b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x41d9f4]
call fcn.00407fe8
jmp 0x408160
cmp edi, dword [ebp - 8]
jae 0x408124
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40820f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40820f
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.00406f34
push dword [ebp - 0x160]
push 0x408248
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00406f34
push dword [ebp - 0x164]
push 0x408258
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00406f34
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004070ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408234
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406840
ret
Function at 0x4083e0
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 0x4084e4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x421b84
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x421b9c]
jne 0x40842c
mov eax, esi
mov edx, 0x421b9e
mov ecx, 0x55
call fcn.00406f34
push 0x421b84
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4084ce
push 0x421b84
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004067e0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40849b
cmp byte [0x421b80], 0
je 0x408460
mov edx, esi
mov eax, ebx
call fcn.004082c4
jmp 0x40849b
mov edx, esi
mov eax, ebx
call fcn.004080c8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40849b
cmp dword [esi], 0
je 0x408484
mov eax, esi
mov edx, 0x4084fc
call fcn.0040700c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004080c8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040700c
push 0x421b84
call sub.kernel32.dll_EnterCriticalSection
mov word [0x421b9c], bx
mov eax, dword [esi]
call fcn.00406ea0
mov ecx, eax
mov eax, 0x421b9e
mov edx, 0xaa
call fcn.00407f48
push 0x421b84
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4084eb
lea eax, [ebp - 4]
call fcn.004067e0
ret
Function at 0x408714
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.004068c4
xor eax, eax
push ebp
push 0x408939
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408754
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40876e
mov eax, dword [ebp - 4]
call fcn.00406ea0
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00407f48
cmp word [ebp - 0x21a], 0
je 0x408923
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408948
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40883d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408948
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40883d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408984
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40883d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408984
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40883d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4089b8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40883d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4089ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408923
xor eax, eax
push ebp
push 0x40891c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408524
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 0x4088ac
mov eax, dword [ebp - 0x10]
call fcn.00403f14
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.00406ef8
jmp 0x4088f7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408a2c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4088f7
mov eax, dword [ebp - 0x10]
call fcn.00403f14
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408a2c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406ef8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408923
cmp dword [ebp - 8], 0
je 0x408912
mov eax, dword [ebp - 8]
call fcn.00403f30
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 0x408940
lea eax, [ebp - 4]
call fcn.004067e0
ret
Function at 0x408c28
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.004068c4
xor eax, eax
push ebp
push 0x408ce8
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.00406f34
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407064
mov eax, dword [ebx]
call fcn.00408af0
test al, al
jne 0x408cc5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00406f34
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407064
mov eax, dword [ebx]
call fcn.00408af0
test al, al
jne 0x408cc5
mov eax, ebx
call fcn.004067e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408cef
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406840
lea eax, [ebp - 4]
call fcn.004067e0
ret

Function at 0x40936c
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 0x415ca8
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 0x415ce1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406938
jmp 0x415cea
mov eax, ebx
mov edx, esi
call fcn.00406ab4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x415cf4
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 0x415d16
movzx eax, word [esp]
jmp 0x415d18
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x416e68
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 0x416f8d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00416c70
mov esi, eax
mov eax, dword [0x41e774]
cmp byte [eax], 0
je 0x416f35
mov eax, dword [0x41e68c]
call fcn.004045ec
call fcn.00404068
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 [0x416e38]
call fcn.004079fc
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 0x416fa8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x416f71
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x41e664]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x421c4c]
call fcn.00407be8
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 0x416f94
lea eax, [ebp - 4]
mov edx, dword [0x416e38]
call fcn.00407b20
ret

Function at 0x4188a0
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.00406bb0
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040934c
mov edi, eax
cmp edi, 0x104
jbe 0x41884b
mov eax, edi
add eax, eax
call fcn.00403f14
mov esi, eax
jmp 0x41884d
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040934c
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x418886
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 0x418870
mov eax, esp
cmp esi, eax
je 0x418893
mov eax, esi
call fcn.00403f30
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 0x4188cc
cmp bl, 0
je 0x4188c8
cmp bl, 0x41
jl 0x4188c3
cmp bl, 0x5a
jg 0x4188c3
or bl, 0x20
xor al, bl
inc esi
jmp 0x4188a7
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41880c

Function at 0x418ae0
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00406f34
add esp, 0x800
pop ebx
ret
Function at 0x406234
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x406243
pop dword [ebp - 0x28]
mov eax, 0x406243
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xff5bf6f5
sub dword [ebp - 0x38], 0xb109b1aa
mov dword [ebp - 0x34], 0x96d77186
add dword [ebp - 0x34], 0x9b5bdabf
mov dword [ebp - 0x30], 0x7a11c823
add dword [ebp - 0x30], 0xd23a7c0b
mov dword [ebp - 0x2c], 0x319ffe05
sub dword [ebp - 0x2c], 0x319ffe05
lea eax, [ebp - 0x38]
push eax
mov eax, 0x2fe9ee37
sub eax, 0x2fa96d33
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xe19fe4db
sub dword [ebp - 0x38], 0x6d2d7b85
mov dword [ebp - 0x34], 0xf974719c
add dword [ebp - 0x34], 0x47f7efd9
mov dword [ebp - 0x30], 0x368ea609
sub dword [ebp - 0x30], 0xd31f399d
mov dword [ebp - 0x2c], 0x859cc79f
add dword [ebp - 0x2c], 0x7a633861
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x38212282
add eax, 0xc81f5e7e
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3784f
push 0
call eax
mov ecx, 0x1b6570ed
sub ecx, 0x1b6526f1
xor ebx, ebx
add ebx, eax
mov edx, 0x46a3aebc
sub edx, 0x465ccabc
add edx, dword [ebp - 0x28]
mov edi, 0xb6ce6f7a
add edi, 0x55b52ad7
add dword [ebp - 0x20], 0xae0f797a
mov esi, dword [edx]
mov dword [ebp - 0xc], 0x500b214b
xor esi, edi
xor dword [ebp - 8], esi
mov dword [ebx], esi
add dword [ebp - 0x14], eax
add ebx, 0x584086bb
sub ebx, 0x584086b7
add edx, 0xa76b0889
sub edx, 0xa76b0885
loop 0x406362
add eax, 0x7a6ba1ff
sub eax, 0x7a6a873c
mov ebx, eax
add eax, 0xd734b05c
add eax, 0x28cb4fa9
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
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 0x5007e3
Capabilities:
Encode data using xor

Disassembly:
shl ax, 0xf
push edx
and ax, sp
xchg dword [esp], ebp
bsr bp, bx
aaa
sar bp, cl
mov ebp, esp
adc al, 0x4b
movzx eax, cl
mov dh, 0xc1
sub esp, 0x18
movzx ax, cl
push esi
pushfd
mov dword [esp], edi
daa
push ebx
sal ah, cl
or ah, al
cmc
call fcn.0052991e
push eax
mov edi, 0x937084d7
daa
in eax, 0x26
fimul dword [eax]
xchg ecx, eax
inc ebp
xor al, 0x94
jbe 0x5007fa
adc bh, bh
dec esp
xchg ebx, eax
mov byte [0xb92b7714], al
mov dl, 0x5d
jp 0x5008b3
dec esi
out 0x7f, al
sub dword [esi], 0xfffffffc
mov al, 0x15
test al, 0xff
js 0x500835
push cs
mov ebx, 0x3d36dbaa
out dx, al
jnp 0x5007fb
dec ecx
mov bh, 0x27
pop edx
invalid
mov dword fs:[edx], ecx
mov ch, 0xe5
cmp byte [edi - 0x126575e9], cl
inc eax
push ds
retf

Function at 0x51ed74
Capabilities:
Encode data using xor

Disassembly:
cmp al, 0x9e
add eax, edi
clc
cmp eax, edx
pushal
push 0xe1b82569
lea esp, [esp + 0x28]
jb 0x506c72
pushfd
bt dx, ax
cmp eax, dword [ebp - 0x10]
push dword [esp]
lea esp, [esp + 8]
jae 0x506c72
shl bl, cl
movsx bx, al
cmc
xchg bl, cl
mov ebx, eax
sbb edi, ebp
mov edi, eax
and ch, bl
test ah, 0x5c
ror ch, 6
mov ecx, 0x104
pushal
bt ebx, 6
sub al, al
test ax, 0xc34e
mov byte [esp + 8], al
repne scasb al, byte es:[edi]
call fcn.00508ddb
psllq mm4, qword [esi]
inc edx
popfd
sbb al, byte [esi]
jmp 0x51ee2c
jne 0x51eea5
invalid
leave
aas
sub al, byte [ebp + esi*4 + 0x4a]
salc
sahf
sbb eax, 0xa14f5450
push ebp
or eax, 0x43be7fcf
add dl, byte [ecx + 0x53]
aam 0x48
add bl, byte [ecx - 0x2db06c8a]
adc ah, bl
cmp bh, al
inc ecx
sub al, 0x61
sbb dword [eax - 0x466bea67], ebp
add ch, byte [eax + 0x5e]
in al, dx
add dh, byte [eax]
push 0x15
mov edx, edi
imul ecx, dword [ebp + 0x50ff2e48], 0x31fe6da7
invalid

Function at 0x1001128
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x864
push esi
push edi
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edx, 0x100
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x864]
rep stosd dword es:[edi], eax
mov ecx, edx
lea edi, [ebp - 0x464]
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10010b8
mov edi, 0x400
push 0x80000002
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0x10010b0
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x864]
push eax
push edi
push 0x10010a8
push 0x100109c
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_SearchPathA]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x100108c
lea eax, [ebp - 0x864]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
xor eax, eax
pop esi
leave
ret 0x10
Function at 0x401014
Capabilities:
Terminate process

Disassembly:
jmp 0x4018a4
push 0x14
push 0x405688
call fcn.00401078
push 1
call fcn.00401177
pop ecx
test al, al
je 0x4017bc
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0040119a
mov byte [ebp - 0x24], al
mov eax, dword [0x40614c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4017bc
test eax, eax
jne 0x4016da
mov dword [0x40614c], ecx
push 0x404618
push 0x40430c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x4016bd
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4017ac
push 0x404208
push section..rdata
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x40614c], 2
jmp 0x4016df
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004010c3
pop ecx
call fcn.00401032
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x401710
push esi
call fcn.0040109b
pop ecx
test al, al
je 0x401710
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [section..00cfg]
call esi
call fcn.00401023
mov esi, eax
cmp dword [esi], edi
je 0x40172e
push esi
call fcn.0040109b
pop ecx
test al, al
je 0x40172e
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_narrow_environment
mov edi, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argv
mov esi, dword [eax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
push edi
push esi
push dword [eax]
call fcn.00401190
add esp, 0xc
mov esi, eax
call fcn.004011a4
test al, al
je 0x4017c3
test bl, bl
jne 0x401761
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push 0
push 1
call fcn.004010c8
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4017ac
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.004010eb
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push dword [ebp - 0x20]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
int3
call fcn.004011ea
jmp 0x401650

Function at 0x4011a4
Capabilities:
Parse pe header

Disassembly:
jmp 0x402006
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402046
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402046
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402046
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402046
cmp dword [ecx + 0x74], 0xe
jbe 0x402046
cmp dword [ecx + 0xe8], 0
je 0x402046
mov al, 1
ret
xor al, al
ret
Function at 0x1000f188
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x1000f197
pop dword [ebp - 0x24]
mov eax, 0x77ec85dd
sub eax, 0x67eb9446
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x37a11
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0x36edbf0
sub ecx, 0x36e99be
mov ebx, eax
mov edi, 0x10018600
add edi, dword [ebp - 0x24]
mov edx, 0xc475b2d7
add edx, 0xde208a47
sub dword [ebp - 0x20], eax
mov esi, dword [edi]
sub dword [ebp - 0x20], edi
xor esi, edx
mov dword [ebp - 4], 0xc02c8893
mov dword [ebx], esi
add dword [ebp - 0x10], esi
add ebx, 0x9f497723
add ebx, 0x60b688e1
add edi, 4
loop 0x1000f1eb
add eax, 0xa5dc2fcc
add eax, 0x5a24cbcf
xor ebx, ebx
add ebx, eax
add eax, 0x96397ef3
sub eax, 0x96397eee
mov ecx, 0x5d934c11
add ecx, 0xb26cb3ef
add ecx, dword [ebp - 0x24]
call ebx
leave
ret