joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428220
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
cmp dword [ebx + 0x20], 0
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
jne 0x42823e
mov eax, 1
pop edi
pop esi
pop ebp
add esp, 8
ret 8
cmp dword [esp + 0x18], 0
je 0x4282d2
test ebp, ebp
jbe 0x4282d2
lea edi, [ebp + 8]
mov eax, edi
push eax
mov dword [esp + 0x20], eax
call fcn.00433592
mov esi, eax
add esp, 4
test esi, esi
je 0x42827e
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push esi
push ecx
lea ecx, [ebx + 0x28]
mov eax, ebp
call fcn.0042a7d0
mov eax, dword [ebx + 0x20]
push 0
lea edx, [esp + 0x14]
push edx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4282b0
test esi, esi
je 0x4282a2
push esi
call fcn.004329c3
add esp, 4
mov eax, 3
pop edi
pop esi
pop ebp
add esp, 8
ret 8
mov ecx, dword [ebx + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test esi, esi
je 0x4282c7
push esi
call fcn.004329c3
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 8
ret 8
pop edi
pop esi
mov eax, 2
pop ebp
add esp, 8
ret 8

Function at 0x428400
Capabilities:
Parse url

Disassembly:
push ebx
mov eax, ecx
push edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x428407
sub eax, edi
push eax
lea edi, [esi + 4]
push ecx
mov ecx, edi
call fcn.00402320
xor eax, eax
mov word [esi + 0x38], ax
mov dword [esi + 0x2c], eax
mov eax, 0x800
mov dword [esi + 0x50], eax
mov dword [esi + 0x58], eax
mov eax, 0x80
lea ebx, [esi + 0x20]
push 0x21
mov dword [ebx], 0x3c
mov dword [esi + 0x28], 0x20
mov dword [esi + 0x34], 0x100
mov dword [esi + 0x40], eax
mov dword [esi + 0x48], eax
call fcn.00433592
push 0x101
mov dword [esi + 0x5c], eax
call fcn.00433592
push 0x801
mov dword [esi + 0x60], eax
call fcn.00433592
push 0x801
mov dword [esi + 0x64], eax
call fcn.00433592
push 0x81
mov dword [esi + 0x68], eax
call fcn.00433592
push 0x81
mov dword [esi + 0x6c], eax
call fcn.00433592
mov ecx, dword [esi + 0x5c]
add esp, 0x18
mov dword [esi + 0x70], eax
test ecx, ecx
je 0x428512
cmp dword [esi + 0x60], 0
je 0x428512
cmp dword [esi + 0x64], 0
je 0x428512
push ebp
mov ebp, dword [esi + 0x68]
test ebp, ebp
je 0x428511
mov edx, dword [esi + 0x6c]
test edx, edx
je 0x428511
test eax, eax
je 0x428511
mov dword [esi + 0x24], ecx
mov ecx, dword [esi + 0x60]
mov dword [esi + 0x30], ecx
mov ecx, dword [esi + 0x64]
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x54], ebp
mov dword [esi + 0x3c], edx
cmp dword [edi + 0x18], 0x10
jb 0x4284ec
mov edi, dword [edi + 4]
jmp 0x4284ef
add edi, 4
push ebx
push 0x10000000
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov dword [esi], eax
test eax, eax
je 0x428511
mov cx, word [esi + 0x38]
mov edx, dword [esi + 0x2c]
mov word [esi + 0x74], cx
mov dword [esi + 0x78], edx
pop ebp
pop edi
pop ebx
ret
Function at 0x428660
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44ff71
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x4642d8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0xc], ebx
push ebx
mov esi, ecx
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
push 0x456139
mov ecx, edi
mov dword [esp + 0x18], edi
mov byte [edi + 4], bl
call fcn.00402320
mov dword [esp + 0x38], ebx
mov dword [esp + 0xc], 1
cmp dword [esi], ebx
je 0x428728
mov eax, dword [esi + 0x78]
cmp eax, 3
je 0x4286cc
cmp eax, 4
jne 0x428728
mov esi, dword [esi + 0x68]
cmp esi, ebx
je 0x428728
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4286d8
sub eax, edx
push eax
push esi
mov ecx, edi
call fcn.00402320
cmp dword [edi + 0x14], ebx
jbe 0x428728
push 0xffffffffffffffff
mov ecx, 1
lea esi, [esp + 0x18]
mov edx, edi
call fcn.00401f20
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
mov dword [esp + 0x44], 1
call fcn.00402140
cmp dword [esp + 0x2c], 0x10
jb 0x428728
mov eax, dword [esp + 0x18]
push eax
call fcn.0043206e
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x428fd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4514e0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4642d8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov ebx, 1
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x2c]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push ecx
mov ecx, 0x45cb64
call fcn.004056e0
mov byte [esp + 0x20], 2
mov eax, dword [esp + 0x30]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
call fcn.00404120
add eax, 0x10
mov dword [esi], eax
mov edx, dword [esp + 0x30]
mov byte [esp + 0x24], 3
mov eax, dword [esp + 0x2c]
push edx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov esi, esp
call fcn.00404120
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x2c], bl
call fcn.004291d0
mov bl, al
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x429085
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4290ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x4290d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4514e0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4642d8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov ebx, 1
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x2c]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push ecx
mov ecx, 0x45cb70
call fcn.004056e0
mov byte [esp + 0x20], 2
mov eax, dword [esp + 0x30]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
call fcn.00404120
add eax, 0x10
mov dword [esi], eax
mov edx, dword [esp + 0x30]
mov byte [esp + 0x24], 3
mov eax, dword [esp + 0x2c]
push edx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov esi, esp
call fcn.00404120
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x2c], bl
call fcn.004291d0
mov bl, al
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x429185
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4291ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x429ac0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x44fe88
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4642d8]
xor eax, esp
push eax
lea eax, [esp + 0x320]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x328], 0
mov eax, dword [esp + 0x334]
mov ebp, 0x10
cmp dword [esp + 0x348], ebp
jae 0x429b1f
lea eax, [esp + 0x334]
push 0
push eax
call fcn.0044dd49
add esp, 8
cmp eax, 0xffffffff
jne 0x429b4f
cmp dword [esp + 0x348], ebp
jb 0x429b48
mov ecx, dword [esp + 0x334]
push ecx
call fcn.0043206e
add esp, 4
xor al, al
jmp 0x429c98
mov eax, dword [esp + 0x334]
cmp dword [esp + 0x348], ebp
jae 0x429b66
lea eax, [esp + 0x334]
push 0x45cbfc
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.0044de25
add esp, 0xc
test eax, eax
je 0x429b9d
cmp dword [esp + 0x348], ebp
jb 0x429b48
mov eax, dword [esp + 0x334]
push eax
call fcn.0043206e
add esp, 4
xor al, al
jmp 0x429c98
mov ecx, dword [esp + 0x14]
push 2
push 0
push ecx
call fcn.004356a1
mov edx, dword [esp + 0x20]
push edx
call fcn.004355a9
push 0
mov ebx, eax
mov eax, dword [esp + 0x28]
push 0
push eax
call fcn.004356a1
lea ecx, [ebx + 0x64]
push ecx
call fcn.00431e44
mov edx, dword [esp + 0x34]
push edx
push ebx
mov esi, eax
push 1
push esi
call fcn.004353ef
mov eax, dword [esp + 0x44]
push eax
call fcn.00433441
push 0x465618
push 0x465610
mov ecx, 0x465608
lea eax, [esp + 0x58]
call fcn.00412bb0
add esp, 0x3c
mov edi, esi
test ebx, ebx
jle 0x429c2b
lea ebp, [ebx - 1]
shr ebp, 3
inc ebp
mov ecx, edi
lea eax, [esp + 0x19c]
call fcn.00412c30
add edi, 8
sub ebp, 1
jne 0x429c10
mov ebp, 0x10
lea eax, [ebx - 1]
xor edx, edx
test eax, eax
jl 0x429c51
mov cl, byte [eax + esi]
cmp cl, 4
je 0x429c46
cmp cl, 2
je 0x429c46
cmp cl, 7
jne 0x429c51
inc edx
sub eax, 1
mov byte [eax + esi + 1], 0x30
jns 0x429c34
sub ebx, edx
mov eax, esi
mov byte [ebx + esi], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x429c60
mov ecx, dword [esp + 0x18]
sub eax, edx
push eax
push esi
call fcn.00402320
push esi
call fcn.004329b8
add esp, 4
cmp dword [esp + 0x348], ebp
jb 0x429c96
mov ecx, dword [esp + 0x334]
push ecx
call fcn.0043206e
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x320]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x318
ret 0x20

Function at 0x432079
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4642d8]
jne 0x432083
repz ret
jmp fcn.00439665
Function at 0x433964
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x433995
call fcn.0043885c
mov dword [eax], esi
call fcn.00438849
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004325b5
add esp, 0x14
push 0x16
pop eax
jmp 0x4339ea
test dword [ebp + 0xc], 0xfffffff9
jne 0x433971
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4339c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043886f
pop ecx
call fcn.00438849
mov eax, dword [eax]
jmp 0x4339ea
test al, 0x10
jne 0x4339e8
test al, 1
je 0x4339e8
test byte [ebp + 0xc], 2
je 0x4339e8
call fcn.0043885c
mov dword [eax], 5
call fcn.00438849
mov dword [eax], 0xd
jmp 0x4339b9
xor eax, eax
pop esi
pop ebp
ret

Function at 0x448983
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.00439919
and dword [ebp - 4], 0
cmp dword [0x467be8], 0
mov ebx, eax
jne 0x448a34
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x448ae5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x455ec8
push edi
call esi
test eax, eax
je 0x448ae5
push eax
call fcn.004398a7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x467be8], eax
call esi
push eax
call fcn.004398a7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x467bec], eax
call esi
push eax
call fcn.004398a7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x467bf0], eax
call esi
push eax
call fcn.004398a7
pop ecx
mov dword [0x467bf8], eax
test eax, eax
je 0x448a34
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004398a7
pop ecx
mov dword [0x467bf4], eax
mov eax, dword [0x467bf4]
cmp eax, ebx
je 0x448a8c
cmp dword [0x467bf8], ebx
je 0x448a8c
push eax
call fcn.00439922
push dword [0x467bf8]
mov esi, eax
call fcn.00439922
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x448a8c
test edi, edi
je 0x448a8c
call esi
test eax, eax
je 0x448a83
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x448a83
test byte [ebp - 0xc], 1
jne 0x448a8c
or dword [ebp + 0x10], 0x200000
jmp 0x448ac5
mov eax, dword [0x467bec]
cmp eax, ebx
je 0x448ac5
push eax
call fcn.00439922
pop ecx
test eax, eax
je 0x448ac5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x448ac5
mov eax, dword [0x467bf0]
cmp eax, ebx
je 0x448ac5
push eax
call fcn.00439922
pop ecx
test eax, eax
je 0x448ac5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x467be8]
call fcn.00439922
pop ecx
test eax, eax
je 0x448ae5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x448ae7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44dcc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x44dcf1
call fcn.0043885c
mov dword [eax], esi
call fcn.00438849
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004325b5
add esp, 0x14
push 0x16
pop eax
jmp 0x44dd46
test dword [ebp + 0xc], 0xfffffff9
jne 0x44dccd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x44dd1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043886f
pop ecx
call fcn.00438849
mov eax, dword [eax]
jmp 0x44dd46
test al, 0x10
jne 0x44dd44
test al, 1
je 0x44dd44
test byte [ebp + 0xc], 2
je 0x44dd44
call fcn.0043885c
mov dword [eax], 5
call fcn.00438849
mov dword [eax], 0xd
jmp 0x44dd15
xor eax, eax
pop esi
pop ebp
ret
Function at 0x16a59f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.FKP1
lea edi, [esi - 0x1272000]
push edi
or ebp, 0xffffffff
jmp 0x16a5a12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a5a19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a08
mov eax, 1
add ebx, ebx
jne 0x16a5a2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a5a3c
jne 0x16a5a5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a5b
dec eax
add ebx, ebx
jne 0x16a5a48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a5a20
add ebx, ebx
jne 0x16a5a57
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x16a5aad
xor ecx, ecx
sub eax, 3
jb 0x16a5a73
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a5ae2
sar eax, 1
mov ebp, eax
jmp 0x16a5a7e
add ebx, ebx
jne 0x16a5a7e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a4c
inc ecx
add ebx, ebx
jne 0x16a5a8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a4c
add ebx, ebx
jne 0x16a5a99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a5a8e
jne 0x16a5aaa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a5a8e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x16a5acc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a5abe
jmp 0x16a5a0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a5acc
add edi, ecx
jmp 0x16a5a0e
pop esi
mov edi, esi
mov ecx, 0x34f3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a5aea
cmp byte [edi], 0x16
jne 0x16a5aea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x16a5aef
lea edi, [esi + 0x12a2000]
mov eax, dword [edi]
or eax, eax
je 0x16a5b5e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a67a0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a6890]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a5b1c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a6894]
or eax, eax
je 0x16a5b58
mov dword [ebx], eax
add ebx, 4
jmp 0x16a5b39
call dword [esi + 0x12a68a4]
mov ebp, dword [esi + 0x12a6898]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x16a5b92
sub esp, 0xffffff80
jmp 0x46c1ac

Function at 0x40894c
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
pop edx
add esi, 1
sub ecx, ecx
call fcn.00408974
xor dword [edi], edx
inc edi
push 0x1c88193c
pop ecx
cmp edi, ebx
jne fcn.0040894c
or esi, ecx
ret
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 0x415b75
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], 0x41
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x77
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
xor byte [esi + ebx], 0x7d
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x36
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x89
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
add esp, 0x44
push eax
call fcn.0040616d
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xd7
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x3b
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xc6
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x65
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xe1
add esp, 0x40
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xe7
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
xor byte [esi + ebx], 0x50
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xb9
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
dec byte [esi + ebx]
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 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40288e
pop dword [ebp - 0x44]
mov eax, 0xe04f2662
sub eax, 0xe00efdd4
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xa784c326
sub dword [ebp - 0x54], 0x59327ddb
mov dword [ebp - 0x50], 0x6d1fd033
add dword [ebp - 0x50], 0xc5137c12
mov dword [ebp - 0x4c], 0xf625d0e6
sub dword [ebp - 0x4c], 0xa9d98cb8
mov dword [ebp - 0x48], 0x6348be11
add dword [ebp - 0x48], 0x9cb741ef
lea eax, [ebp - 0x54]
push eax
mov eax, 0xce90e868
sub eax, 0xce5067dc
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x1d1592d0
sub dword [ebp - 0x54], 0xa8a3297a
mov dword [ebp - 0x50], 0x7d4d59ab
add dword [ebp - 0x50], 0xc41f07ca
mov dword [ebp - 0x4c], 0xf588d93c
sub dword [ebp - 0x4c], 0x92196cd0
mov dword [ebp - 0x48], 0x2d5f1c85
add dword [ebp - 0x48], 0xd2a0e37b
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xbd67cb6
sub eax, 0xb95fbe2
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x35d6a
push 0
call eax
mov ecx, 0x44f8
xor esi, esi
add esi, eax
mov edi, 0x16305b53
add edi, 0xea10b4ad
add edi, dword [ebp - 0x44]
mov ebx, 0xd3435d57
sub ebx, 0xc6814bd2
mov edx, dword [edi]
sub dword [ebp - 0x28], 0xbd1b8008
xor edx, ebx
add dword [ebp - 0x18], 0x28742f03
mov dword [esi], edx
add esi, 0x2473f792
sub esi, 0x2473f78e
add edi, 0xabfcdcf1
sub edi, 0xabfcdced
loop 0x4029ac
add eax, 0x7758a6a0
sub eax, 0x77579fed
xor ebx, ebx
add ebx, eax
add eax, 0x66a4c0fd
sub eax, 0x66a4c0f8
mov ecx, 0xb96b21f9
add ecx, 0x46d4de07
add ecx, dword [ebp - 0x44]
call ebx
leave
ret