joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406508
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x4bab18
cmp dword [ebp + 0xc], 2
jl 0x40651c
mov ebx, 0x4bab48
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x406554
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x402800
mov dword [0x4b8018], eax
mov eax, 0x402808
mov dword [0x4b801c], eax
mov eax, ebx
call fcn.004063ec
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x406589
cmp al, 3
jge 0x406589
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x40659a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x4065a5
call dword [ecx + eax*4]
cmp dword [0x4b803c], 0
jne 0x4065bb
mov byte [0x4b8044], 1
fnstcw word [0x4b4028]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.0040681c
call fcn.0040649c
ret 4

Function at 0x406784
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b8058], 0
je 0x4067eb
cmp word [0x4b8344], 0xd7b2
jne 0x4067ad
cmp dword [0x4b834c], 0
jbe 0x4067ad
mov eax, 0x4b8340
call dword [0x4b835c]
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, 0x406818
call fcn.00407374
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b4032], 0
jne 0x406807
push 0
push 0x4b49c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4069e4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x4b4034], 0
je 0x406a0f
mov edx, edi
mov eax, esi
call dword [0x4b4034]
mov ebx, eax
jmp 0x406a20
mov eax, 8
call fcn.004044d8
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4b8059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4069ac
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x406a55
mov edx, 8
mov eax, ebx
call fcn.004044f4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x408ff0
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 0x409155
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406b28
cmp si, word [0x4b4a00]
jb 0x409088
cmp si, word [0x4b4c00]
ja 0x409088
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x409088
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4b4a00]
jae 0x409062
mov edi, ebx
dec edi
jmp 0x409083
cmp si, word [ebx*8 + 0x4b4a00]
jbe 0x409072
inc ebx
mov dword [ebp - 8], ebx
jmp 0x409083
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4b4a04]
call fcn.00408f00
jmp 0x409088
cmp edi, dword [ebp - 8]
jae 0x40904c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x409137
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409137
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.004077f8
push dword [ebp - 0x160]
push 0x409170
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004077f8
push dword [ebp - 0x164]
push 0x409180
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004077f8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407a30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40915c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406b88
ret
Function at 0x409308
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 0x40940b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4bab88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4baba0]
jne 0x409354
mov eax, esi
mov edx, 0x4baba2
mov ecx, 0x55
call fcn.004077f8
push 0x4bab88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4093f5
push 0x4bab88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406b28
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4093c3
cmp byte [0x4bab84], 0
je 0x409388
mov edx, esi
mov eax, ebx
call fcn.004091ec
jmp 0x4093c3
mov edx, esi
mov eax, ebx
call fcn.00408ff0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4093c3
cmp dword [esi], 0
je 0x4093ac
mov eax, esi
mov edx, 0x409424
call fcn.00407950
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408ff0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407950
push 0x4bab88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4baba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040774c
push eax
push 0x4baba2
call sub.kernel32.dll_lstrcpynW
push 0x4bab88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409412
lea eax, [ebp - 4]
call fcn.00406b28
ret
Function at 0x41ba54
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, edx
mov ebp, eax
mov byte [esp], 0
mov eax, ebp
test eax, eax
je 0x41ba6c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x41ba74
mov al, 1
jmp 0x41ba91
movzx esi, word [ebp]
mov eax, esi
call fcn.0040d404
test al, al
jne 0x41ba8d
cmp si, 0x5f
je 0x41ba8d
xor eax, eax
jmp 0x41ba8f
mov al, 1
xor al, 1
test al, al
jne 0x41bb21
test bl, bl
je 0x41bae1
mov eax, ebp
test eax, eax
je 0x41baa8
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41bb1d
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0040d490
test al, al
jne 0x41bad5
cmp di, 0x5f
je 0x41bad5
cmp di, 0x2e
je 0x41bad5
xor eax, eax
jmp 0x41bad7
mov al, 1
test al, al
je 0x41bb21
inc esi
dec ebx
jne 0x41bab5
jmp 0x41bb1d
mov eax, ebp
test eax, eax
je 0x41baec
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41bb1d
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0040d490
test al, al
jne 0x41bb13
cmp di, 0x5f
je 0x41bb13
xor eax, eax
jmp 0x41bb15
mov al, 1
test al, al
je 0x41bb21
inc esi
dec ebx
jne 0x41baf9
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41c494
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x41c5c8
push dword fs:[eax]
mov dword fs:[eax], esp
movzx ebx, byte [0x41c5d8]
mov dl, 1
mov eax, esi
call fcn.0041c92c
test al, al
jne 0x41c4e5
mov dl, 1
mov eax, esi
call fcn.0041c894
test al, al
je 0x41c57b
lea edx, [ebp - 0x424]
mov eax, esi
call fcn.0041d058
mov eax, dword [ebp - 0x424]
lea edx, [ebp - 4]
call fcn.00422f2c
push 0x104
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 4]
call fcn.0040774c
mov esi, eax
push esi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x41c576
test byte [ebp - 0xc], 1
je 0x41c541
or bl, 1
test byte [ebp - 0xc], 2
je 0x41c54a
or bl, 2
test byte [ebp - 0xc], 0x80
je 0x41c553
or bl, 0x20
push esi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x41c567
dec eax
je 0x41c56c
dec eax
je 0x41c571
dec eax
jne 0x41c5a2
or bl, 0x10
jmp 0x41c5a2
or bl, 4
jmp 0x41c5a2
or bl, 8
jmp 0x41c5a2
call fcn.004238d0
lea edx, [ebp - 0x428]
mov eax, dword [0x4b775c]
call fcn.0040a52c
mov ecx, dword [ebp - 0x428]
mov dl, 1
mov eax, dword [0x41785c]
call fcn.00421e0c
call fcn.004061a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c5cf
lea eax, [ebp - 0x428]
mov edx, 2
call fcn.00406b88
lea eax, [ebp - 4]
call fcn.00406b28
ret
Function at 0x421cbc
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 0x421de1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00421ac4
mov esi, eax
mov eax, dword [0x4b76d8]
cmp byte [eax], 0
je 0x421d89
mov eax, dword [0x4b7488]
call fcn.004049e8
call fcn.0040462c
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 [0x421c8c]
call fcn.00408a70
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 0x421dfc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x421dc5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4b7438]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4bac50]
call fcn.00408b34
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 0x421de8
lea eax, [ebp - 4]
mov edx, dword [0x421c8c]
call fcn.00408a7c
ret

Function at 0x423774
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.0040702c
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a5c0
mov edi, eax
cmp edi, 0x104
jbe 0x42371b
mov eax, edi
add eax, eax
call fcn.004044d8
mov esi, eax
jmp 0x42371d
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a5c0
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x423758
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 0x423742
mov eax, esp
cmp esi, eax
je 0x423765
mov eax, esi
call fcn.004044f4
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 0x4237a0
cmp bl, 0
je 0x42379c
cmp bl, 0x41
jl 0x423797
cmp bl, 0x5a
jg 0x423797
or bl, 0x20
xor al, bl
inc esi
jmp 0x42377b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4236dc

Function at 0x423fa0
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.004077f8
add esp, 0x800
pop ebx
ret
Function at 0x447550
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4475ee
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x4475b2
cmp byte [ebx + 0x10], 0
jne 0x4475b2
cmp byte [ebx + 0x3c], 0
jne 0x4475b2
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4475d3
lea edx, [ebp - 4]
mov eax, dword [0x4b7674]
call fcn.0040a52c
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x439674]
call fcn.00421e0c
call fcn.004061a0
jmp 0x4475d3
lea edx, [ebp - 8]
mov eax, dword [0x4b7674]
call fcn.0040a52c
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x439674]
call fcn.00421e0c
call fcn.004061a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4475f5
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406b88
ret

Function at 0x44790c
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x44795a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00447488
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x447973
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x44797c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00447488
dec esi
jne 0x44799e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x44d2a4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0x44d340
push 0
mov eax, ebx
call fcn.0040774c
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyExW
mov ebx, eax
test ebx, ebx
jne 0x44d31b
mov ebx, esi
test ebx, ebx
je 0x44d2ed
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
mov eax, ebx
add eax, eax
push eax
mov eax, esi
call fcn.0040774c
push eax
push 1
push 0
mov eax, edi
call fcn.0040774c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
je 0x44d336
mov ecx, dword [0x4b74a4]
mov dl, 1
mov eax, dword [0x44b70c]
call fcn.00421ec8
call fcn.004061a0
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x44d35c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.00406b28
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, esi
call fcn.0040774c
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x44d418
xor eax, eax
push ebp
push 0x44d411
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004078d0
mov eax, dword [ebp - 8]
add eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
call fcn.0040774c
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040774c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x44d3f3
mov edx, dword [ebp - 8]
shr edx, 1
dec edx
mov eax, ebx
call fcn.004078d0
jmp 0x44d3fa
mov eax, ebx
call fcn.00406b28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d418
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x450794
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4507e6
test eax, edx
je 0x4507e9
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4507a9
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4507cf
add ecx, 4
js 0x4507bf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4507cc
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4507f5
test edx, edx
jne 0x45079c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x455ed4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebx + 4]
call fcn.0040774c
push eax
push 0x800
lea eax, [ebp - 0x1000]
push eax
mov eax, dword [ebp + 0xc]
call fcn.0040774c
push eax
mov eax, edi
call fcn.0040774c
push eax
mov eax, esi
call fcn.0040774c
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
mov ecx, eax
lea edx, [ebp - 0x1000]
mov eax, dword [ebp + 8]
call fcn.00406cb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x456a98
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x456b6e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor esi, esi
push ebp
push 0x456b41
push dword fs:[esi]
mov dword fs:[esi], esp
test dl, dl
je 0x456af2
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00407848
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.0041b6d4
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
mov ecx, 0xfde9
call fcn.004072b8
jmp 0x456b01
lea eax, [ebp - 4]
mov edx, ebx
mov ecx, 0xfde9
call fcn.00407404
mov eax, 1
mov edx, dword [ebp - 4]
test edx, edx
je 0x456b12
sub edx, 4
mov edx, dword [edx]
test edx, edx
jle 0x456b34
mov ecx, 1
imul eax, eax, 0x5517e877
mov ebx, dword [ebp - 4]
movzx ebx, byte [ebx + ecx - 1]
xor eax, dword [ebx*4 + 0x4b5e3c]
inc ecx
dec edx
jne 0x456b1b
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x456b4b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456b75
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00406be8
lea eax, [ebp - 4]
call fcn.00406b4c
ret
Function at 0x456b80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x456ca0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
xor ecx, ecx
push ebp
push 0x456c73
push dword fs:[ecx]
mov dword fs:[ecx], esp
test dl, dl
je 0x456beb
lea eax, [ebp - 0x20]
mov edx, ebx
call fcn.00407848
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.0041b6d4
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov ecx, 0xfde9
call fcn.004072b8
jmp 0x456bfa
lea eax, [ebp - 4]
mov edx, ebx
mov ecx, 0xfde9
call fcn.00407404
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
test eax, eax
je 0x456c14
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
test ebx, ebx
jle 0x456c5d
mov esi, 1
push 0
push 0x5517e877
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.00408540
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi - 1]
mov edx, dword [eax*8 + 0x4b6244]
mov eax, dword [eax*8 + 0x4b6240]
xor eax, dword [ebp - 0x18]
xor edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
inc esi
dec ebx
jne 0x456c1f
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x456c7d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456ca7
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00406be8
lea eax, [ebp - 4]
call fcn.00406b4c
ret
Function at 0x459d14
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00406c0c
mov eax, dword [ebp - 8]
call fcn.00406c0c
xor eax, eax
push ebp
push 0x459e27
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor ebx, ebx
mov eax, dword [0x4b73a8]
cmp byte [eax], 0
je 0x459d7a
call fcn.0040a830
cmp byte [eax + 0x15], 0
je 0x459d67
mov ebx, pe_nt_image_headers32
jmp 0x459d7a
call fcn.0040a830
cmp byte [eax + 0x14], 0
je 0x459d7a
mov ebx, 0x200
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
or ebx, 0x20006
push ebx
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040774c
push eax
push esi
call sub.advapi32.dll_RegCreateKeyExW
mov ebx, eax
push ebx
call sub.kernel32.dll_SetLastError
test ebx, ebx
jne 0x459e0c
cmp dword [ebp - 8], 0
jne 0x459dd5
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
sete byte [ebp - 9]
jmp 0x459dfd
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040774c
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
sete byte [ebp - 9]
push ebx
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459e2e
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406b88
ret