joyce8/EMBER2024-capa huggingface dataset:
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 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x16b4a74
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x21430080
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433e8d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x433e9c
pop dword [ebp - 0x20]
mov eax, 0x433e9c
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x22be3f45
add dword [ebp - 0x30], 0x2b940606
mov dword [ebp - 0x2c], 0xb401c889
add dword [ebp - 0x2c], 0x7e3183bc
mov dword [ebp - 0x28], 0x19e85721
sub dword [ebp - 0x28], 0xcd9c12f3
mov dword [ebp - 0x24], 0x5854a15e
add dword [ebp - 0x24], 0xa7ab5ea2
lea eax, [ebp - 0x30]
push eax
mov eax, 0xb9ef9603
add eax, 0x46561a61
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xf9375f73
sub dword [ebp - 0x30], 0x84c4f61d
mov dword [ebp - 0x2c], 0xe672b1f1
add dword [ebp - 0x2c], 0x5af9af84
mov dword [ebp - 0x28], 0x830fe8fb
add dword [ebp - 0x28], 0xe05f8371
mov dword [ebp - 0x24], 0xd7c127a7
sub dword [ebp - 0x24], 0xd7c127a7
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x4d4f5
push 0
call eax
mov ecx, 0x6c213c96
add ecx, 0x93df0b83
xor ebx, ebx
add ebx, eax
mov edi, 0xfa3554a0
sub edi, 0xf9edf4a0
add edi, dword [ebp - 0x20]
mov edx, 0x9ef015b0
add edx, 0x99d67ed
sub dword [ebp - 0xc], 0x78842a11
mov esi, dword [edi]
sub dword [ebp - 0x1c], 0xed432a56
xor esi, edx
mov dword [ebp - 8], 0xb8bc19
mov dword [ebx], esi
add ebx, 0xf5dbb75a
add ebx, 0xa2448aa
add edi, 0xabfc0489
add edi, 0x5403fb7b
loop 0x433fb6
add eax, 0x11337
xor ebx, ebx
add ebx, eax
add eax, 0xf5e4761e
add eax, 0xa1b89e7
mov ecx, 0x772ac357
sub ecx, 0x76eac357
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x781c602d
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x7da4fde
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401451
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40147b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x40147f
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

Function at 0x40149a
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4014ee
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014ee
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014f2
xor eax, eax
jmp 0x401504
cmp dword [ebp - 4], edi
je 0x401501
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x401944
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
xor esi, esi
call edi
test eax, eax
jbe 0x40197b
push ebx
mov ebx, ebp
sub ebx, 0x404418
mov al, byte [ebx + esi + 0x404418]
push ebp
xor al, 1
mov byte [esi + 0x404418], al
inc esi
call edi
cmp esi, eax
jb 0x401963
pop ebx
and byte [esi + 0x404418], 0
pop edi
pop esi
mov eax, 0x404418
pop ebp
ret

Function at 0x401d39
Capabilities:
Encode data using xor

Disassembly:
push ecx
dec ebp
xchg esi, eax
mov bl, 0x43
mov ebx, 0x1a44df7a
test eax, 0xd6def3eb
pop esi
imul ebp, dword [ecx + 0x7bcaea25], 0x47
pop ebx
push eax
idiv dword [ecx]
fimul dword [ebx]
mov dh, 0x54
lahf
xchg ebx, eax
in eax, 0x3e
sal ebx, 0x3e
sahf
xchg esp, eax
salc
imul ebp, dword [edx + 0x11], 0xffffffee
xchg ecx, eax
xor dword [eax - 0x43fc639], eax
jp 0x401d56
sub dword [eax - 0x69279ea7], edx
push ss
hlt
Function at 0x401537
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Extract resource via kernel32 functions
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov esi, dword [esp + 0x90]
and esi, 0xffff0000
mov eax, esi
cmp word [eax], 0x5a4d
jne 0x401556
add eax, dword [eax + 0x3c]
sub esi, 0x10000
cmp word [eax], 0x4550
jne 0x40154a
add esi, 0x10000
push esi
mov eax, 0x40400c
pop dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004014a5
mov dword [0x40410b], eax
push 0x404023
push 0x3e9
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x40159a
leave
ret 8
push eax
push eax
push 0
call sub.kernel32.dll_SizeofResource
or eax, eax
jne 0x4015ab
leave
ret 8
mov dword [ebp - 8], eax
pop eax
push eax
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x4015bf
leave
ret 8
push eax
call sub.kernel32.dll_LockResource
or eax, eax
jne 0x4015cd
leave
ret 8
mov dword [ebp - 0xc], eax
push 4
push 0x3000
push dword [ebp - 8]
push 0
call sub.kernel32.dll_VirtualAlloc
or eax, eax
jne 0x4015e9
leave
ret 8
push eax
mov esi, dword [ebp - 0xc]
mov edi, eax
mov ecx, dword [ebp - 8]
rep movsb byte es:[edi], byte [esi]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
push dword [esp + 0xc]
call fcn.004013ec
mov ebx, dword [esp]
add ebx, dword [ebx + 0x3c]
lea eax, [ebx + 0x18]
mov ebx, dword [eax + 0x38]
pop eax
push ebx
push 0x8000
push 0
push eax
call sub.kernel32.dll_VirtualFree
mov ebx, dword [ebp + 0xc]
add ebx, dword [ebx + 0x3c]
lea eax, [ebx + 0x18]
mov ebx, dword [eax + 0x38]
mov dword [ebp - 4], ebx
mov ebx, dword [esp]
add ebx, dword [ebp + 0xc]
and ebx, 0xffff0000
add ebx, 0x10000
push 0x40
push 0x3000
push dword [ebp - 4]
push ebx
call sub.kernel32.dll_VirtualAlloc
or eax, eax
je 0x40163c
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
push eax
sub eax, dword [ebp + 0xc]
add dword [ebp + 8], eax
mov ebx, 0x4016b6
add ebx, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
mov ebx, 0x401b5a
add ebx, dword [ebp + 8]
sub ebx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
lea ebx, [ebp - 0x14]
push ebx
push 0x401303
push dword [ebp + 0xc]
call fcn.0040105b
pop eax
pop ebx
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
mov eax, dword [ebp + 8]
add dword [ebp - 0xc], eax
push dword [ebp - 0xc]
mov eax, 0x40189c
nop
nop
add eax, dword [ebp + 8]
nop
call eax
nop
leave
ret 8

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x4053ac
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
push 1
pop ebx
push ebx
call fcn.00404687
mov esi, 0x104
xor edi, edi
push esi
push edi
push 0x491d84
call fcn.00407310
push esi
push edi
push 0x491c80
call fcn.00407310
push esi
push edi
push 0x491b7c
call fcn.00407310
push esi
push edi
push 0x491a78
call fcn.00407310
push esi
push edi
push 0x491974
call fcn.00407310
add esp, 0x40
push str._ac_:_
push 0x1eac
push 0x40e0d4
call fcn.00403529
push 0x491e90
call fcn.00402642
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
mov dword [0x491e98], edi
mov dword [0x491e88], eax
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jne 0x40546c
cmp dword [ebp - 0x8c], ebx
jne 0x40546c
mov dword [0x491e98], ebx
call fcn.004048cb
mov esi, 0x7d000
push esi
call fcn.00407baf
cmp eax, edi
pop ecx
mov dword [0x491970], eax
jne 0x40548a
xor eax, eax
jmp 0x4054ae
push esi
push edi
push eax
call fcn.00407310
call fcn.0040556c
push ebx
push 0x40fde0
call fcn.00403434
push eax
push edi
call fcn.004052d3
add esp, 0x1c
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40556c
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
push 0x40fb6f
call fcn.00403434
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop ecx
pop ecx
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test ebp, ebp
mov edi, 0x40fc6f
je 0x4055d1
push 1
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
push 4
push edi
mov dword [0x491ea0], eax
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
push 5
push edi
mov dword [0x491e9c], eax
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x491ea4], eax
push 3
push 0x40fb6f
call fcn.00403434
pop ecx
pop ecx
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x4055fb
push 3
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x491ea8], eax
mov edi, 0x40fda4
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x40561c
push 1
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebx
call esi
mov dword [0x491eac], eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x408313
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x408322
pop dword [ebp - 0x34]
mov eax, 0x7e5fcafd
add eax, 0x81e0b825
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x48f5adad
sub dword [ebp - 0x44], 0xfaa36862
mov dword [ebp - 0x40], 0xf9f0e56f
sub dword [ebp - 0x40], 0xc7bd992a
mov dword [ebp - 0x3c], 0x19b2eb86
sub dword [ebp - 0x3c], 0xcd66a758
mov dword [ebp - 0x38], 0x5e81b90a
sub dword [ebp - 0x38], 0x5e81b90a
lea eax, [ebp - 0x44]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xd35763cd
sub dword [ebp - 0x44], 0x5ee4fa77
mov dword [ebp - 0x40], 0xa417b71c
sub dword [ebp - 0x40], 0x62ab55a7
mov dword [ebp - 0x3c], 0x5203ef0d
add dword [ebp - 0x3c], 0x116b7d5f
mov dword [ebp - 0x38], 0x37d278f2
sub dword [ebp - 0x38], 0x37d278f2
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0x132c4c85
add eax, 0xed1483c3
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x387f7
push 0
call eax
mov ecx, 0xbff8c542
add ecx, 0x40077ef3
mov ebx, eax
mov edx, 0x64bf8fbd
sub edx, 0x647ddfbd
add edx, dword [ebp - 0x34]
mov edi, 0x606a7736
sub edi, 0xa61b9daa
add dword [ebp - 0x20], eax
mov esi, dword [edx]
xor dword [ebp - 0x14], 0xfa8668c8
add esi, edi
xor dword [ebp - 0x14], esi
mov dword [ebx], esi
add dword [ebp - 0x18], edi
add ebx, 4
add edx, 0x1036c5d7
add edx, 0xefc93a2d
loop 0x40843f
add eax, 0xe12279bf
add eax, 0x1ede89e8
mov ebx, eax
add eax, 0x8f94e233
sub eax, 0x8f94e22e
mov ecx, 0x56bf8be1
sub ecx, 0x567f8be1
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x409305
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004064e5
and dword [ebp - 4], 0
cmp dword [0x4293e4], 0
mov ebx, eax
jne 0x4093b6
push 0x401b38
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409467
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b2c
push edi
call esi
test eax, eax
je 0x409467
push eax
call fcn.00406473
mov dword [esp], 0x401b1c
push edi
mov dword [0x4293e4], eax
call esi
push eax
call fcn.00406473
mov dword [esp], 0x401b08
push edi
mov dword [0x4293e8], eax
call esi
push eax
call fcn.00406473
mov dword [esp], 0x401aec
push edi
mov dword [0x4293ec], eax
call esi
push eax
call fcn.00406473
pop ecx
mov dword [0x4293f4], eax
test eax, eax
je 0x4093b6
push 0x401ad4
push edi
call esi
push eax
call fcn.00406473
pop ecx
mov dword [0x4293f0], eax
mov eax, dword [0x4293f0]
cmp eax, ebx
je 0x40940e
cmp dword [0x4293f4], ebx
je 0x40940e
push eax
call fcn.004064ee
push dword [0x4293f4]
mov esi, eax
call fcn.004064ee
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40940e
test edi, edi
je 0x40940e
call esi
test eax, eax
je 0x409405
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409405
test byte [ebp - 0xc], 1
jne 0x40940e
or dword [ebp + 0x10], 0x200000
jmp 0x409447
mov eax, dword [0x4293e8]
cmp eax, ebx
je 0x409447
push eax
call fcn.004064ee
pop ecx
test eax, eax
je 0x409447
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409447
mov eax, dword [0x4293ec]
cmp eax, ebx
je 0x409447
push eax
call fcn.004064ee
pop ecx
test eax, eax
je 0x409447
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4293e4]
call fcn.004064ee
pop ecx
test eax, eax
je 0x409467
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409469
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4017ef
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
mov ebx, eax
test eax, eax
je 0x40180a
mov edx, dword [0x404050]
add edx, edx
jmp 0x401810
mov edx, dword [0x404050]
mov eax, 0x404054
call fcn.00401720
lea edx, [ebp - 4]
push edx
mov edx, esi
or dl, 0x40
mov edi, 0x4031fd
push edx
sub edi, fcn.004029a7
push edi
xor eax, eax
push fcn.004029a7
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp - 4], 0
je 0x401865
mov eax, fcn.004029a7
mov ebx, esi
mov edx, edi
call fcn.00401720
mov edx, 0x1c000
mov eax, 0x404054
mov ebx, esi
call fcn.004020e5
leave
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x40146f
Capabilities:
Encode data using xor

Disassembly:
jmp 0x419030
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x41917c
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
push edi
mov edi, dword [esp + 0x10]
call ebx
add byte [esi + edi], 0x6c
call ebx
add byte [esi + edi], 0x51
call ebx
xor byte [esi + edi], 0xfc
call ebx
add byte [esi + edi], 0x6e
call ebx
add byte [esi + edi], 0xc6
call ebx
add byte [esi + edi], 0xdb
call ebx
add byte [esi + edi], 0xc9
call ebx
xor byte [esi + edi], 0x21
call ebx
add byte [esi + edi], 0xce
call ebx
add byte [esi + edi], 9
call ebx
xor byte [esi + edi], 0x2f
call ebx
add byte [esi + edi], 0x82
call ebx
add byte [esi + edi], 0x89
call ebx
add byte [esi + edi], 0xeb
call ebx
add byte [esi + edi], 0x81
call ebx
add byte [esi + edi], 0x13
call ebx
xor byte [esi + edi], 0x89
call ebx
add byte [esi + edi], 0x26
call ebx
add byte [esi + edi], 0x8e
call ebx
add byte [esi + edi], 0xf6
call ebx
add byte [esi + edi], 0x14
call ebx
add byte [esi + edi], 0xca
call ebx
add byte [esi + edi], 0x42
call ebx
add byte [esi + edi], 0xd9
call ebx
add byte [esi + edi], 0x32
call ebx
xor byte [esi + edi], 3
call ebx
add byte [esi + edi], 0x6a
call ebx
add byte [esi + edi], 0xfb
call ebx
add byte [esi + edi], 0x59
call ebx
add byte [esi + edi], 0xd3
call ebx
add byte [esi + edi], 0x95
call ebx
xor byte [esi + edi], 0x6b
call ebx
xor byte [esi + edi], 0x93
call ebx
xor byte [esi + edi], 0x4b
call ebx
add byte [esi + edi], 0x33
call ebx
add byte [esi + edi], 0x30
call ebx
xor byte [esi + edi], 0x66
call ebx
add byte [esi + edi], 0x98
call ebx
add byte [esi + edi], 0x7a
call ebx
xor byte [esi + edi], 0x2e
call ebx
add byte [esi + edi], 0x41
call ebx
xor byte [esi + edi], 0x82
call ebx
add byte [esi + edi], 0x37
call ebx
xor byte [esi + edi], 0x2c
call ebx
add byte [esi + edi], 0x62
call ebx
xor byte [esi + edi], 0x51
call ebx
add byte [esi + edi], 0x40
call ebx
add byte [esi + edi], 0xb7
call ebx
add byte [esi + edi], 0x96
inc esi
cmp esi, dword [esp + 0x14]
jb 0x419049
pop edi
pop ebx
pop esi
ret
Function at 0x40320b
Capabilities:
Encode data using xor

Disassembly:
jmp 0x419bc8
push ecx
push ebx
push esi
push edi
push str.Dont_afraid
push 0x597158
call fcn.004032bf
push eax
call fcn.0040701d
mov edi, dword [esp + 0x20]
add esp, 0xc
lea eax, [edi + 0x10]
mov esi, dword [eax]
mov ebx, esi
xor ebx, dword [esp + 0x18]
cmp dword [edi + 0x14], 0x10
mov dword [esp + 0xc], eax
jb 0x419c03
mov edi, dword [edi]
mov dword [esp + 0x14], edi
push edi
shr esi, 2
push esi
push str._x_and__p
call fcn.00402577
add esp, 0xc
test esi, esi
je 0x419c5c
push ebp
mov ebp, edi
mov edi, esi
push 4
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.00406415
imul ecx, dword [esp + 0x28], 0x5bd1e991
add esp, 0xc
imul ebx, ebx, 0x5bd1e991
add ebp, 4
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov dword [esp + 0x1c], eax
sub edi, 1
jne 0x419c1e
mov edi, dword [esp + 0x18]
pop ebp
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov eax, dword [eax]
and eax, 3
sub eax, 1
je 0x419c88
sub eax, 1
je 0x419c7e
sub eax, 1
jne 0x419c96
movsx ecx, byte [edi + esi*4 + 2]
shl ecx, 0x10
movsx eax, byte [edi + esi*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [edi + esi*4]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov eax, ebx
shr eax, 0xd
xor eax, ebx
imul ecx, eax, 0x5bd1e991
pop edi
pop esi
pop ebx
mov eax, ecx
shr eax, 0xf
xor eax, ecx
pop ecx
ret

Function at 0x403c97
Capabilities:
Terminate process

Disassembly:
jmp 0x45ac49
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45ac5a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00406681
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403e22
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a47e2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a47f3
pop esi
ret
push ebx
push edi
push esi
call fcn.004a46c9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004048b3
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a481b
push ebx
push esi
push edi
call fcn.00406415
add esp, 0xc
push 0
call fcn.004071ad
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4064f1
Capabilities:
Parse pe header

Disassembly:
jmp 0x449a6f
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x449aae
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x449aae
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x449aae
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x449aae
cmp dword [ecx + 0x74], 0xe
jbe 0x449aae
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4075bd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x41981a
sub esp, 0x20
mov eax, dword [0x593258]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x419883
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.004020ae
lea eax, [esp + 0x14]
push 0x14d
push eax
call fcn.0040320b
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x41989b
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402e05
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x41984b
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004035f8
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402e05
jmp 0x419885