joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480290
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
movdqa xmm0, xmmword [eax]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
movdqa xmm1, xmmword [edi]
lea edx, [esi - 1]
pxor xmm0, xmm1
movdqa xmmword [eax], xmm0
cmp edx, 1
jbe 0x4802e7
add edx, 0xfffffffe
shr edx, 1
lea ecx, [edi + 0x10]
inc edx
movdqa xmm1, xmmword [ecx]
movdqa xmm0, xmmword [eax]
aesenc xmm0, xmm1
movdqa xmmword [eax], xmm0
movdqa xmm1, xmmword [ecx + 0x10]
add ecx, 0x20
dec edx
aesenc xmm0, xmm1
movdqa xmmword [eax], xmm0
jne 0x4802c2
movdqa xmm0, xmmword [eax]
add esi, esi
movdqa xmm1, xmmword [edi + esi*8 - 0x10]
lea ecx, [edi + esi*8]
aesenc xmm0, xmm1
movdqa xmmword [eax], xmm0
movdqa xmm1, xmmword [ecx]
pop edi
aesenclast xmm0, xmm1
movdqa xmmword [eax], xmm0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x480320
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [ebp + 8]
movdqa xmm1, xmmword [eax]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x18]
movdqa xmm0, xmmword [edi]
pxor xmm1, xmm0
movdqa xmmword [eax], xmm1
movdqa xmm1, xmmword [ecx]
pxor xmm1, xmm0
movdqa xmmword [ecx], xmm1
movdqa xmm1, xmmword [edx]
pxor xmm1, xmm0
movdqa xmmword [edx], xmm1
movdqa xmm1, xmmword [esi]
pxor xmm1, xmm0
movdqa xmmword [esi], xmm1
cmp ebx, 1
jbe 0x4803c4
add edi, 0x10
dec ebx
lea esp, [esp]
movdqa xmm0, xmmword [edi]
movdqa xmm1, xmmword [eax]
aesenc xmm1, xmm0
movdqa xmmword [eax], xmm1
movdqa xmm1, xmmword [ecx]
aesenc xmm1, xmm0
movdqa xmmword [ecx], xmm1
movdqa xmm1, xmmword [edx]
aesenc xmm1, xmm0
movdqa xmmword [edx], xmm1
movdqa xmm1, xmmword [esi]
add edi, 0x10
dec ebx
aesenc xmm1, xmm0
movdqa xmmword [esi], xmm1
jne 0x480380
mov ebx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
movdqa xmm1, xmmword [eax]
add ebx, ebx
movdqa xmm0, xmmword [edi + ebx*8]
aesenclast xmm1, xmm0
movdqa xmmword [eax], xmm1
movdqa xmm1, xmmword [ecx]
aesenclast xmm1, xmm0
movdqa xmmword [ecx], xmm1
movdqa xmm1, xmmword [edx]
aesenclast xmm1, xmm0
movdqa xmmword [edx], xmm1
movdqa xmm1, xmmword [esi]
pop edi
aesenclast xmm1, xmm0
movdqa xmmword [esi], xmm1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4809d0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4d0510
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x5254e0]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5254e0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [esp + 0x80]
mov ebx, dword [esp + 0x84]
mov edi, ecx
mov edx, dword [edi + 4]
lea ecx, [edi + 4]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x18]
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x3c]
mov ecx, edi
call eax
mov edx, dword [eax]
mov dword [esp + 0x14], eax
mov ecx, eax
mov eax, dword [edx + 0x20]
call eax
mov ebp, eax
xor esi, esi
cmp ebp, esi
jne 0x480abd
push 0x37
mov edi, 0xf
push str.HMAC:_can_only_be_used_with_a_block_based_hash_function
lea ecx, [esp + 0x58]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], esi
mov byte [esp + 0x58], 0
call fcn.004082f0
lea ecx, [esp + 0x24]
mov dword [esp + 0x78], esi
call fcn.004a92d6
push 0xffffffffffffffff
mov byte [esp + 0x7c], 1
push esi
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x30], vtable.CryptoPP::Exception.0
mov dword [esp + 0x3c], 1
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], esi
mov byte [esp + 0x40], 0
call fcn.00408200
push 0x515034
lea edx, [esp + 0x28]
mov byte [esp + 0x7c], 0
push edx
mov dword [esp + 0x2c], vtable.CryptoPP::InvalidArgument.0
call fcn.004aba66
mov eax, dword [edi]
mov edx, dword [eax + 0x3c]
mov ecx, edi
call edx
mov esi, eax
mov eax, dword [edi]
mov edx, dword [eax + 0x3c]
mov ecx, edi
call edx
mov dword [esp + 0x20], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x20]
add eax, eax
mov dword [esp + 0x1c], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
call edx
mov esi, eax
add esi, dword [esp + 0x1c]
lea eax, [edi + 8]
push eax
call fcn.0045cdb0
cmp ebx, ebp
ja 0x480b16
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0x10]
push ebx
push ecx
push edx
call fcn.004abff0
add esp, 0xc
jmp 0x480b3f
mov eax, dword [edi]
mov edx, dword [eax + 0x3c]
mov ecx, edi
call edx
mov ecx, dword [esp + 0x18]
mov edx, dword [eax]
mov edx, dword [edx + 0x2c]
push ebx
push ecx
mov ecx, dword [edi + 0x10]
push ecx
mov ecx, eax
call edx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
call edx
mov ebx, eax
mov ecx, dword [edi + 0x10]
mov eax, ebp
sub eax, ebx
push eax
add ecx, ebx
push 0
push ecx
call fcn.004ac360
add esp, 0xc
xor esi, esi
test ebp, ebp
je 0x480b95
lea ebx, [ebx]
mov edx, dword [edi]
mov eax, dword [edx + 0x3c]
mov ebx, dword [edi + 0x10]
mov ecx, edi
call eax
mov ecx, dword [edi + 0x10]
mov edx, dword [eax]
mov dword [esp + 0x14], ecx
mov ecx, eax
mov eax, dword [edx + 0x20]
call eax
mov cl, byte [ebx + esi]
add eax, dword [esp + 0x14]
xor cl, 0x5c
mov byte [eax + esi], cl
mov eax, dword [edi + 0x10]
xor byte [eax + esi], 0x36
inc esi
cmp esi, ebp
jb 0x480b60
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004a91d2
add esp, 0x68
ret 0xc
Function at 0x481340
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4d04d6
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5254e0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
mov eax, dword [0x5254e0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
lea esi, [edi + 0x10]
mov ecx, pe_nt_image_headers32
mov dword [esp + 0x20], edi
mov dword [edi + 0xc], 0xffffffff
mov dword [edi], vtable.CryptoPP::MessageQueue.0
mov dword [edi + 4], vtable.CryptoPP::MessageQueue.1.0
call fcn.004724b0
mov dword [esp + 0x48], 2
xor ebx, ebx
lea esi, [edi + 0x38]
push 8
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], esi
mov dword [esi], ebx
call fcn.004a9f06
add esp, 4
cmp eax, ebx
je 0x481480
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea ecx, [esp + 0x14]
push ecx
push esi
mov byte [esp + 0x50], 3
call fcn.00481770
mov byte [esp + 0x48], 4
lea esi, [edi + 0x50]
push 8
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], esi
mov dword [esi], ebx
call fcn.004a9f06
add esp, 4
cmp eax, ebx
je 0x481457
mov dword [esi], eax
xor edx, edx
mov dword [eax + 4], edx
xor ecx, ecx
mov dword [eax], ecx
mov edx, dword [esi]
mov dword [edx], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea eax, [esp + 0x1c]
push eax
push esi
mov byte [esp + 0x50], 5
call fcn.00481a50
mov eax, edi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004a91d2
add esp, 0x40
ret
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x10], ebx
call fcn.004a936f
push 0x514f9c
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], vtable.std::bad_alloc.0
call fcn.004aba66
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], ebx
call fcn.004a936f
push 0x514f9c
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], vtable.std::bad_alloc.0
call fcn.004aba66
int3
Function at 0x484910
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4d1028
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x5254e0]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5254e0]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
cmp byte [esp + 0xac], 0
mov ebp, dword [esp + 0xa0]
mov ebx, dword [esp + 0xa4]
mov edi, ecx
jne 0x4849a4
push 8
xor esi, esi
push str.Inflator
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], esi
mov byte [esp + 0x20], 0
call fcn.004082f0
lea eax, [esp + 0x18]
mov dword [esp + 0x98], esi
push eax
lea esi, [esp + 0x38]
call fcn.004723a0
push 0x51563c
mov ecx, esi
push ecx
call fcn.004aba66
mov eax, dword [edi + 0x3c]
lea esi, [edi + 0x1c]
mov dword [esp + 0x14], esi
test eax, eax
je 0x4849cb
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi]
push 1
push 0
push eax
mov eax, dword [edx + 0x14]
push ecx
mov ecx, esi
mov dword [esi + 0x20], 0
call eax
mov eax, dword [esi + 0x18]
mov edx, dword [eax + 0x14]
add edx, dword [eax + 0xc]
cmp ebp, edx
jne 0x4849e9
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push 1
push 0
push ebx
push ebp
mov ecx, esi
call edx
jmp 0x4849f3
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x20], ebx
mov byte [esi + 0x24], 0
mov esi, dword [esp + 0xa8]
test esi, esi
setne al
movzx ecx, al
push ecx
mov ecx, edi
mov dword [esp + 0x9c], 1
call fcn.00484c20
test esi, esi
je 0x484a40
mov eax, dword [edi + 0x44]
test eax, eax
je 0x484a3b
cmp eax, 4
je 0x484a3b
lea esi, [esp + 0x60]
call fcn.00483a10
push 0x515964
mov edx, esi
push edx
call fcn.004aba66
test esi, esi
je 0x484a40
dec esi
mov eax, dword [edi]
mov edx, dword [eax + 0xa4]
mov ecx, edi
call edx
mov ecx, dword [esp + 0xac]
mov edx, dword [eax]
mov edx, dword [edx + 0x88]
push ecx
push esi
push 0
push 0
push 0x52828c
mov ecx, eax
call edx
lea eax, [esp + 0x14]
push eax
mov dword [edi + 0x14], 0
mov dword [esp + 0x9c], 0xffffffff
call fcn.00473320
xor eax, eax
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004a91d2
add esp, 0x88
ret 0x10
Function at 0x49487e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor eax, eax
mov esi, ecx
cmp dword [esi + 0x10], 2
push edi
setne al
mov edi, eax
call fcn.0049440d
mov ecx, esi
mov byte [ebp - 4], al
call fcn.0049440d
mov byte [ebp - 3], al
mov eax, dword [esi]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
cmp dword [ecx + eax + 0xc], 0
jne 0x4949ac
push ebx
lea ebx, [ebp + edi - 4]
xor edi, 1
lea eax, [ebp + edi - 4]
movzx edi, byte [ebx]
mov dword [ebp - 0xc], eax
movzx eax, byte [eax]
shl edi, 8
or edi, eax
lea ecx, [edi - 0xdc00]
mov eax, 0x3ff
mov dword [ebp - 8], ebx
cmp ecx, eax
ja 0x4948ed
push 0xfffd
jmp 0x4949a0
lea ecx, [edi - 0xd800]
cmp ecx, eax
ja 0x49499f
mov ecx, esi
call fcn.0049440d
mov ecx, esi
mov byte [ebp - 4], al
call fcn.0049440d
mov byte [ebp - 3], al
mov eax, dword [esi]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
cmp dword [ecx + eax + 0xc], 0
jne 0x4948e3
jmp 0x494922
mov ebx, dword [ebp - 8]
movzx ebx, byte [ebx]
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
shl ebx, 8
or ebx, eax
cmp ebx, 0xdc00
jb 0x494956
cmp edi, 0xe000
jae 0x494956
mov eax, 0x3ff
and edi, eax
shl edi, 0xa
and ebx, eax
or edi, ebx
add edi, 0x10000
jmp 0x494978
lea eax, [esi + 0x14]
push 0xfffd
push eax
call fcn.00494730
pop ecx
pop ecx
cmp ebx, 0xd800
jb 0x49499f
cmp edi, 0xe000
jae 0x49499f
mov edi, ebx
mov ecx, esi
call fcn.0049440d
mov ecx, esi
mov byte [ebp - 4], al
call fcn.0049440d
mov byte [ebp - 3], al
mov eax, dword [esi]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
cmp dword [ecx + eax + 0xc], 0
je 0x49491f
jmp 0x4948e3
push edi
add esi, 0x14
push esi
call fcn.00494730
pop ecx
pop ecx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x4a91d2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5254e0]
jne 0x4a91dc
repz ret
jmp fcn.004b17c3
Function at 0x4bd95c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5254e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004b45b8
and dword [ebp - 0x14], 0
cmp dword [0x52c0c4], 0
mov dword [ebp - 0x18], eax
jne 0x4bda0f
push 0x4e0398
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4bdab7
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x4e038c
push ebx
call edi
test eax, eax
je 0x4bdab7
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push 0x4e037c
push ebx
mov dword [0x52c0c4], eax
call edi
push eax
call esi
push 0x4e0368
push ebx
mov dword [0x52c0c8], eax
call edi
push eax
call esi
push 0x4e034c
push ebx
mov dword [0x52c0cc], eax
call edi
push eax
call esi
mov dword [0x52c0d4], eax
test eax, eax
je 0x4bda0f
push 0x4e0334
push ebx
call edi
push eax
call esi
mov dword [0x52c0d0], eax
mov eax, dword [0x52c0d0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x4bda68
cmp dword [0x52c0d4], ecx
je 0x4bda68
push eax
call esi
push dword [0x52c0d4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4bda68
test ebx, ebx
je 0x4bda68
call edi
test eax, eax
je 0x4bda5f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4bda5f
test byte [ebp - 8], 1
jne 0x4bda68
or dword [ebp + 0x10], 0x200000
jmp 0x4bda9b
mov eax, dword [0x52c0c8]
cmp eax, dword [ebp - 0x18]
je 0x4bda9b
push eax
call esi
test eax, eax
je 0x4bda9b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4bda9b
mov eax, dword [0x52c0cc]
cmp eax, dword [ebp - 0x18]
je 0x4bda9b
push eax
call esi
test eax, eax
je 0x4bda9b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x52c0c4]
call esi
test eax, eax
je 0x4bdab7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4bdab9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a91d2
leave
ret
Function at 0x4ec47e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5894dc]
jne 0x4ec488
repz ret
jmp fcn.004f03b1

Function at 0x4fad5d
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.004f0f31
and dword [ebp - 4], 0
cmp dword [0x58e070], 0
mov ebx, eax
jne 0x4fae0e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4faebf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4faebf
push eax
call fcn.004f0ebf
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x58e070], eax
call esi
push eax
call fcn.004f0ebf
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x58e074], eax
call esi
push eax
call fcn.004f0ebf
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x58e078], eax
call esi
push eax
call fcn.004f0ebf
pop ecx
mov dword [0x58e080], eax
test eax, eax
je 0x4fae0e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004f0ebf
pop ecx
mov dword [0x58e07c], eax
mov eax, dword [0x58e07c]
cmp eax, ebx
je 0x4fae66
cmp dword [0x58e080], ebx
je 0x4fae66
push eax
call fcn.004f0f3a
push dword [0x58e080]
mov esi, eax
call fcn.004f0f3a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4fae66
test edi, edi
je 0x4fae66
call esi
test eax, eax
je 0x4fae5d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4fae5d
test byte [ebp - 0xc], 1
jne 0x4fae66
or dword [ebp + 0x10], 0x200000
jmp 0x4fae9f
mov eax, dword [0x58e074]
cmp eax, ebx
je 0x4fae9f
push eax
call fcn.004f0f3a
pop ecx
test eax, eax
je 0x4fae9f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4fae9f
mov eax, dword [0x58e078]
cmp eax, ebx
je 0x4fae9f
push eax
call fcn.004f0f3a
pop ecx
test eax, eax
je 0x4fae9f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x58e070]
call fcn.004f0f3a
pop ecx
test eax, eax
je 0x4faebf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4faec1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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 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.MSVCRT.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 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x403203
pop dword [ebp - 0x30]
mov eax, 0x6a2caef4
sub eax, 0x69ec7cf1
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0xa2f013ab
add dword [ebp - 0x40], 0xab6231a0
mov dword [ebp - 0x3c], 0x47b5cda8
add dword [ebp - 0x3c], 0xea7d7e9d
mov dword [ebp - 0x38], 0xf0b5f2a3
add dword [ebp - 0x38], 0x5b96518b
mov dword [ebp - 0x34], 0xf914b89e
add dword [ebp - 0x34], 0x6eb4762
lea eax, [ebp - 0x40]
push eax
mov eax, 0x69436104
sub eax, 0x6902f0a0
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x819c3a59
sub dword [ebp - 0x40], 0xd29d103
mov dword [ebp - 0x3c], 0x1abc6341
add dword [ebp - 0x3c], 0x26affe34
mov dword [ebp - 0x38], 0x70fdae71
sub dword [ebp - 0x38], 0xd8e4205
mov dword [ebp - 0x34], 0x9258756a
add dword [ebp - 0x34], 0x6da78a96
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x4aa78cbd
sub eax, 0x4a671c15
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3777d
push 0
call eax
mov ecx, 0x4b7f
mov edx, eax
mov ebx, 0x7171d065
add ebx, 0x8ecf2f9b
add ebx, dword [ebp - 0x30]
mov edi, 0xfe31c17
sub edi, 0x128ede5d
add dword [ebp - 0x18], 0x3de0cea5
mov esi, dword [ebx]
sub dword [ebp - 0x14], 0x27e2cab3
xor esi, edi
xor dword [ebp - 0x10], 0x3f22839a
mov dword [edx], esi
mov dword [ebp - 0x28], 0x1017f88e
add edx, 4
add ebx, 4
loop 0x40331f
add eax, 0x120cf
xor ebx, ebx
add ebx, eax
add eax, 0x4340fd8a
sub eax, 0x4340fd85
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x402349
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x4048c8
call fcn.00402ab4
push 1
call fcn.00402611
pop ecx
test al, al
jne 0x4021f2
push 7
call fcn.0040287f
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.004025dc
mov byte [ebp - 0x24], al
mov eax, dword [0x40641c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4021eb
test eax, eax
jne 0x40225c
mov dword [0x40641c], ecx
push 0x40416c
push 0x40415c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40223f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402343
push 0x404158
push 0x404150
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x40641c], 2
jmp 0x402261
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0040276e
pop ecx
call fcn.00402873
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x402291
push esi
call fcn.004026e1
pop ecx
test al, al
je 0x402291
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00402aae
call esi
call fcn.00402879
mov esi, eax
cmp dword [esi], edi
je 0x4022af
push esi
call fcn.004026e1
pop ecx
test al, al
je 0x4022af
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.00402994
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.004029c7
test al, al
jne 0x4022e8
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x4022f1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.0040278b
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x402343
call fcn.00402afa
ret
call fcn.00402063
jmp 0x4021d3

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 0x401598
Capabilities:
Encode data using xor

Disassembly:
push 0x4034cc
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
cmp byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
xchg edi, eax
jbe 0x4015a2
jle 0x4015bb
push esi
out 0x44, al
inc esp
add cl, 0x50
mov bh, 0x23
and dh, dl
jnp 0x4015c5
add byte [eax], al
add byte [eax], al
add byte [ecx], al
add byte [eax], al
add byte [0x41083804], ch
add byte [edi + 0x61], al
insd dword es:[edi], dx
inc esi
xor dword [ecx], esi
add byte [eax], al
add byte [eax], al
add bh, bh
int3