joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46235b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46236e
test al, 0xa7
je 0x46236e
mov al, 1
ret
xor al, al
ret

Function at 0x462371
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, edx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x4623f8
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4623ef
cmp dword [ebp - 4], ebx
jne 0x4623ef
mov ecx, dword [ebp - 8]
mov dword [esi + 4], ecx
test ecx, ecx
jne 0x4623be
mov dword [esi + 0xc], ebx
mov dword [esi], ebx
mov al, 1
jmp 0x4623fa
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0xc], eax
test eax, eax
je 0x4623ef
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi], eax
test eax, eax
jne 0x4623ba
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x46252d
Capabilities:
Encrypt data using dpapi

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, edx
mov dword [esp + 8], ecx
xor ebx, ebx
mov dword [esp + 0x18], ecx
mov eax, dword [ebp]
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push eax
push 1
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x462590
cmp dword [esp + 0x10], ebx
je 0x462590
push edi
mov edi, dword [esp + 0x10]
cmp edi, dword [ebp]
jae 0x462585
push edi
push dword [esp + 0x18]
mov bl, 1
push dword [esp + 0x14]
call fcn.0047e230
add esp, 0xc
mov dword [ebp], edi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x14
ret
Function at 0x4639b9
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, edx
push ebp
push esi
push edi
lea eax, [ebx - 1]
mov esi, ecx
cmp eax, 7
jbe 0x4639d3
mov dword [esi + 0x6afa4], str.bad_pack_level
xor ebp, ebp
xor edi, edi
inc ebp
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x4639f6
mov dword [esi + 0x6af78], ebp
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
mov dword [esi + 0x6af6c], edi
push edi
push eax
call fcn.0047ed30
movzx eax, word [ebx*8 + 0x4b5aba]
add esp, 0xc
mov dword [esi + 0x6af98], eax
movzx eax, word [ebx*8 + 0x4b5ab8]
mov dword [esi + 0x6af9c], eax
movzx eax, word [ebx*8 + 0x4b5abc]
push 2
mov dword [esi + 0x6afa0], eax
movzx eax, word [ebx*8 + 0x4b5abe]
pop ecx
mov dword [esi + 0x6af94], eax
cmp ebx, ecx
jg 0x463a5a
mov eax, dword [esp + 0x14]
or word [eax], 4
jmp 0x463a66
cmp ebx, 8
jl 0x463a66
mov eax, dword [esp + 0x14]
or word [eax], cx
push 0x10000
lea ebx, [esi + 0x1af70]
mov dword [esi + 0x6af84], edi
push ebx
push esi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
test eax, eax
je 0x463acd
cmp eax, 0xffffffff
je 0x463acd
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x463aa8
mov ecx, esi
call fcn.00463c85
mov dword [esi + 0x6af7c], edi
mov ecx, edi
movzx eax, byte [ebx + edi]
shl ecx, 5
xor ecx, eax
and ecx, 0x7fff
inc edi
mov dword [esi + 0x6af7c], ecx
cmp edi, 2
jb 0x463ab0
jmp 0x463ad9
mov dword [esi + 0x6af8c], ebp
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x464c2c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test edx, edx
jne 0x464c33
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
not ecx
cmp esi, 8
jb 0x464cf0
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b5578]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b5578]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b5578]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b5578]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b5578]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b5578]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b5578]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b5578]
sub edi, 1
jne 0x464c49
pop edi
test esi, esi
je 0x464d0c
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b5578]
inc edx
sub esi, 1
jne 0x464cf4
not ecx
mov eax, ecx
pop esi
ret

Function at 0x464d12
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x4b5578]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b5578]
mov dword [edi + 8], ecx
pop edi
pop esi
ret
Function at 0x465188
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x14]
cmp byte [esi + 0x2d], 0
je 0x4651f9
mov ecx, dword [esi + 0x3c]
mov eax, ecx
test ecx, ecx
je 0x4651b6
cmp dword [esi + 0x40], edi
jae 0x4651b6
push ecx
call fcn.0047c72e
and dword [esi + 0x3c], 0
xor eax, eax
pop ecx
test eax, eax
jne 0x4651ca
lea eax, [edi + edi]
push eax
call fcn.0047c771
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push ebx
push eax
call fcn.0047e230
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x4651f6
push ebp
mov eax, dword [esi + 0x3c]
lea ecx, [esi + 0x30]
mov dl, byte [ebx + eax]
call fcn.00464d59
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jb 0x4651dc
pop ebp
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x465228
mov edx, dword [esi + 0x24]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x28]
jb 0x465214
mov dword [esi + 0x14], 0x30000
jmp 0x46524c
push edi
add ecx, edx
push ebx
push ecx
call fcn.0047e230
add esp, 0xc
mov eax, edi
add dword [esi + 0x24], edi
jmp 0x46524e
mov eax, dword [esi + 4]
test eax, eax
je 0x465245
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
jmp 0x46524e
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
ret 8

Function at 0x46567e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x84]
test ecx, ecx
je 0x4656d4
mov eax, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
cmp eax, esi
jae 0x46570f
sub esi, eax
cmp esi, dword [ebp + 0xc]
cmova esi, dword [ebp + 0xc]
add eax, ecx
push esi
push eax
push dword [ebp + 8]
call fcn.0047e230
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 0x78]
add dword [edi + 0x8c], esi
add dword [edi + 0x74], esi
push esi
call fcn.00464c2c
add esp, 0x10
mov dword [edi + 0x78], eax
mov eax, esi
jmp 0x465711
cmp dword [edi + 0x7c], 0
je 0x465708
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46570f
mov esi, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 0x78]
add dword [edi + 0x74], esi
push esi
call fcn.00464c2c
pop ecx
jmp 0x4656cd
mov dword [edi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
leave
ret 8
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 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
enter 0x84, 0
sub ebp, 0x82
mov dword [ebp - 2], 0
call fcn.00401533
mov ebx, eax
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, ebx
or al, 0x40
push eax
mov eax, 0x401dc7
sub eax, fcn.00401592
push eax
push fcn.00401592
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x40107a
mov eax, ebx
lea edx, [ebp - 2]
call fcn.00401461
mov eax, ebx
lea ecx, [ebx + 0x1b600]
call fcn.004014b3
mov esi, ecx
mov eax, ebx
or si, 1
cdq
idiv esi
lea edx, [eax + ecx]
mov eax, ebx
lea ebx, [ebp - 2]
or eax, 0x402054
call fcn.00401592
xor eax, eax
lea esp, [ebp + 0x82]
pop ebp
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x401533
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ecx
push edx
enter 0x11c, 0
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.DLL_GetCursorPos]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push 1
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 4], 0xa
mov byte [ebp - 0x11c], 0
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringA]
movzx eax, byte [ebp - 0x18]
sub eax, 0x41
leave
pop edx
pop ecx
ret
Function at 0x8f24d4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x9090ec
sub esp, 0x24
mov eax, dword [0x9b6154]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
xor ebx, ebx
mov dword [esp + 0xc], eax
push edi
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x909157
mov eax, dword [edi]
lea ecx, [esp + 0x18]
add eax, esi
push eax
call fcn.008f2c18
push dword [esp + 0x10]
lea ecx, [esp + 0x1c]
call fcn.008f7cd6
test al, al
jne 0x90916e
lea ecx, [esp + 0x18]
add edi, 4
call fcn.008f38cf
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x909125
xor esi, esi
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.008f405e
add esp, 0x24
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov esi, dword [eax + esi]
lea ecx, [esp + 0x18]
call fcn.008f38cf
jmp 0x909159

Function at 0x8f4ddd
Capabilities:
Encode data using xor

Disassembly:
jmp 0x909a49
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x909b4a
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebp, 0x9b9508
mov bl, byte [esi + edi]
push 0x99b5c8
push ebp
call fcn.008f3d2f
xor edx, edx
mov eax, esi
div dword [esp + 0x24]
push 0x99b5d4
push 0x9b95f0
mov bh, byte [edx + 0x9be004]
xor bh, bl
call fcn.008f3d2f
push eax
call fcn.008f7835
mov bl, byte [esi + edi]
push 0x99b5e4
push ebp
call fcn.008f3d2f
push eax
call fcn.008f7835
push 0x99b5fc
push ebp
call fcn.008f3d2f
push eax
call fcn.008f7835
push 0x99b60c
push ebp
call fcn.008f3d2f
push eax
call fcn.008f7835
add byte [esi + edi], bh
push 0x99b620
push ebp
call fcn.008f3d2f
add esp, 0x40
push eax
call fcn.008f7835
dec byte [esi + edi]
mov dword [esp], 0x99b640
push ebp
call fcn.008f3d2f
add byte [esi + edi], 0xfe
push 0x99b64c
push ebp
call fcn.008f3d2f
sub byte [esi + edi], bl
push 0x99b660
push ebp
call fcn.008f3d2f
inc byte [esi + edi]
push 0x99b670
push ebp
call fcn.008f3d2f
inc byte [esi + edi]
push 0x99b67c
push ebp
call fcn.008f3d2f
inc byte [esi + edi]
push 0x99b688
push ebp
call fcn.008f3d2f
add esp, 0x30
inc esi
cmp esi, dword [esp + 0x18]
jb 0x909a62
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0x8f6d31
Capabilities:
Parse pe header

Disassembly:
jmp 0x931c20
push 0
call dword [0x9bc114]
test eax, eax
je 0x931c5f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x931c5f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x931c5f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x931c5f
cmp dword [ecx + 0x74], 0xe
jbe 0x931c5f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401996
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
sete dl
cmp dword [ebp + 8], 0
sete al
mov ecx, 0
or dl, al
jne 0x401ada
lea ecx, [edi*4 + 0xb]
mov edx, 0x2aaaaaab
mov eax, ecx
imul edx
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
lea edx, [edx*4 + 1]
cmp edx, dword [ebp + 0x14]
jle 0x401a3d
mov dword [esp], 0x6f
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
mov ecx, 0
jmp 0x401ada
movzx eax, byte [ecx]
and eax, 3
shl eax, 4
movzx eax, byte [eax + section.f183pyln]
mov byte [ebx + 1], al
mov byte [ebx + 2], 0x3d
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
movzx eax, byte [ecx + 1]
and eax, 0xf
movzx eax, byte [eax*4 + section.f183pyln]
mov byte [ebx + 2], al
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
mov esi, 0
mov ecx, dword [ebp + 8]
cmp esi, edi
jge 0x401ad2
movzx eax, byte [ecx]
shr al, 2
movzx eax, al
movzx eax, byte [eax + section.f183pyln]
mov byte [ebx], al
mov eax, edi
sub eax, esi
cmp eax, 1
je 0x4019fc
movzx edx, byte [ecx]
and edx, 3
shl edx, 4
movzx eax, byte [ecx + 1]
shr al, 4
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.f183pyln]
mov byte [ebx + 1], al
mov eax, edi
sub eax, esi
cmp eax, 2
je 0x401a1f
movzx edx, byte [ecx + 1]
and edx, 0xf
shl edx, 2
movzx eax, byte [ecx + 2]
shr al, 6
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.f183pyln]
mov byte [ebx + 2], al
movzx eax, byte [ecx + 2]
and eax, 0x3f
movzx eax, byte [eax + section.f183pyln]
mov byte [ebx + 3], al
add esi, 3
add ecx, 3
add ebx, 4
cmp esi, edi
jl 0x401a4d
mov byte [ebx], 0
mov ecx, 1
mov eax, ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401b7e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, 0
mov dword [esp], 0
call sub.msvcrt.dll_malloc
mov esi, eax
mov dword [esp + 4], 0x40e000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov edi, eax
mov eax, 0
test edi, edi
je 0x401c23
jmp 0x401bc1
mov eax, 0
jmp 0x401c23
test byte [edi + 0xc], 0x10
jne 0x401c00
inc ebx
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll_realloc
mov esi, eax
test eax, eax
je 0x401bba
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 1
lea eax, [eax + ebx - 1]
mov dword [esp], eax
call sub.msvcrt.dll_fread
test byte [edi + 0xc], 0x10
je 0x401bc7
lea eax, [ebx - 1]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00401b44
mov ebx, eax
mov dword [esp], esi
call sub.msvcrt.dll_free
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x409c06
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x86c
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [0x40e284]
push esi
push edi
xor esi, esi
push esi
push dword [eax + 0x21c]
call ebx
push esi
push eax
call ebx
push eax
mov dword [esp + 0x18], eax
call dword [0x40e25c]
cmp eax, esi
jle 0x409c51
mov edi, eax
push 0x400
push esi
push dword [esp + 0x1c]
call dword [0x40e19c]
dec edi
jne 0x409c3e
push 0x2c
lea eax, [esp + 0x20]
push esi
push eax
call fcn.0040d748
add esp, 0xc
push 0x30
pop edi
push 0xc
pop ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 0x42
mov dword [esp + 0x28], 0xbdd7
call fcn.00405bc7
mov ebx, dword [0x40e244]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x18]
push eax
push 1
push esi
push dword [esp + 0x20]
call ebx
lea eax, [esp + 0x18]
push eax
push 1
push esi
push dword [esp + 0x20]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0x100
mov dword [esp + 0x38], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x30], 0x800
call ebx
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x6f0]
cmp edi, esi
mov dword [esp + 0x10], esi
jle 0x409db0
push 0x2c
lea eax, [esp + 0x50]
push esi
push eax
call fcn.0040d748
mov eax, dword [esp + 0x1c]
add eax, 0xbd74
push 0x7fe
mov dword [esp + 0x68], eax
lea eax, [esp + 0x8a]
push esi
push eax
mov dword [esp + 0x60], 0x30
mov dword [esp + 0x64], 0x42
mov word [esp + 0x90], si
call fcn.0040d748
mov ecx, dword [esp + 0x28]
sub edi, ecx
add esp, 0x18
dec edi
cmp edi, 0xa
jge 0x409d5e
cmp ecx, esi
jl 0x409d3e
mov eax, dword [ebp + 8]
add eax, 0x6d4
call fcn.00405708
jmp 0x409d40
xor eax, eax
push eax
push edi
push 0x40f474
lea eax, [esp + 0x84]
push 0x3ff
push eax
call fcn.0040d704
add esp, 0x14
jmp 0x409d83
cmp ecx, esi
jl 0x409d71
mov eax, dword [ebp + 8]
add eax, 0x6d4
call fcn.00405708
jmp 0x409d73
xor eax, eax
push eax
mov eax, 0x3ff
lea edi, [esp + 0x7c]
call fcn.00404756
pop ecx
lea eax, [esp + 0x78]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x48]
push eax
push 1
push esi
push dword [esp + 0x20]
call ebx
mov eax, dword [ebp + 8]
inc dword [esp + 0x10]
mov edi, dword [eax + 0x6f0]
cmp dword [esp + 0x10], edi
jl 0x409cd7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401e40
Capabilities:
Terminate process

Disassembly:
mov byte [0xec83ec8b], al
rcl byte [esi - 0x75]
jne 0x401e56
push esi
std
inc ebp
mov byte [edx - 0x5f], dl
shr byte [edx + 0x68a4e8], 0
mov ecx, dword [ebp + 8]
mov edx, dword [sym.imp.MSVCRT.dll__iob]
add byte [ebx + 0x158b084d], cl
enter 0x40c0, 0
cmp eax, 0x40c28362
push 0x122dd4ac
push edx
call [edi + sym.imp.MSVCRT.dll_fprintf]
mov eax, dword [0xce41ea07]
mov ch, 0xc4
rol dword [ebp + 0x506074c0], 1
push 0x405454
call dword [sym.imp.MSVCRT.dll_printf]
cmp dword [ebp - 0x22], 7
call dword [sym.imp.MSVCRT.dll_exit]
lodsb al, byte [esi]
nop
nop
nop
nop
nop
nop
nop
sbb dword [eax - 0x70], ecx
nop
nop
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 5]
push edi
mov esi, dword [ecx + 0x14]
mov dword [ebp + 8], eax
call 0xcc406a00
mov dword [0x410ba0], eax
sub byte [0x410ba4], dl
mov ebx, eax
out dx, eax
inc esi
adc al, 0xa
imul ecx, dword [ebx - 0x74bf8a12], 0x4e
add al, 0xea
add byte [edx], ch
push ecx
call 0x7240e870
mov dword [esi + 0x8e1], ebx
mov dword [esi - 0x3a25f7c4], edi
invalid
Function at 0x4013c5
Capabilities:
Encode data using xor

Disassembly:
jmp 0x4159d0
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x415b7a
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
sub byte [esi + ebx], 0x65
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 9
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
xor byte [esi + ebx], 0xc5
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xcf
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x3f
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
add esp, 0x44
push eax
call fcn.0040616d
add byte [esi + ebx], 0x6c
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x46
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xf8
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x69
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x84
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xb8
add esp, 0x40
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x79
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
xor byte [esi + ebx], 0x47
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xa1
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x62
add esp, 0x30
inc esi
cmp esi, edi
jb 0x4159f0
pop ebx
pop edi
pop esi
ret

Function at 0x4035f3
Capabilities:
Terminate process

Disassembly:
jmp 0x453df9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x453e0a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405948
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 0x40371f
Capabilities:
Query environment variable

Disassembly:
jmp 0x49c842
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49c853
pop esi
ret
push ebx
push edi
push esi
call fcn.0049c729
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fe4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49c87b
push ebx
push esi
push edi
call fcn.0040572c
add esp, 0xc
push 0
call fcn.004062b2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x10029ab
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc40
push esi
push edi
push 0x40001018
call fcn.010042d3
pop ecx
push 0xda
call fcn.01006d4e
mov esi, dword [sym.imp.msvcrt.dll_wcscpy]
push eax
lea eax, [ebp - 0x238]
push eax
call esi
pop ecx
pop ecx
push 0xdb
call fcn.01006d4e
push eax
lea eax, [ebp - 0x440]
push eax
call esi
push 0x410
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1002a76
lea eax, [ebp - 0xc]
push eax
push 0
push edi
push 0x1002972
push 0x3e80
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [ebp - 4], eax
je 0x1002a6e
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7530
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1002a63
lea eax, [edi + 0x208]
push eax
lea eax, [ebp - 0x238]
push eax
call esi
lea eax, [ebp - 0x440]
push edi
push eax
call esi
push edi
call dword [sym.imp.msvcrt.dll_free]
add esp, 0x14
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1002a76
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
lea eax, [ebp - 0x238]
push eax
push 0x40001019
call fcn.010042d3
lea eax, [ebp - 0x440]
push eax
push 0x4000101a
call fcn.010042d3
add esp, 0x10
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x64c]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
push dword [ebp - 8]
mov esi, dword [sym.imp.msvcrt.dll_swprintf]
mov edi, 0x1001368
lea eax, [ebp - 0xc40]
push edi
push eax
call esi
lea eax, [ebp - 0xc40]
push eax
push 0x40001046
call fcn.010042d3
add esp, 0x14
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc40]
push edi
push eax
call esi
lea eax, [ebp - 0xc40]
push eax
push 0x4000101b
call fcn.010042d3
add esp, 0x14
call fcn.01005727
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, ah
movzx eax, al
push ecx
push eax
lea eax, [ebp - 0xc40]
push 0x100135c
push eax
call esi
lea eax, [ebp - 0xc40]
push eax
push 0x40001025
call fcn.010042d3
add esp, 0x18
call fcn.01005593
push 0x10012ec
call fcn.0100435f
pop ecx
pop edi
pop esi
leave
ret 4