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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov esi, eax
mov edx, dword [esi + 0x5bc]
lea eax, [esi + 0x324]
call fcn.00402c78
mov edx, 1
lea eax, [esi + 0x324]
call fcn.004031b0
call fcn.00402874
mov eax, dword [esi + 0x5bc]
call fcn.004089f8
mov dword [esp + 4], eax
lea eax, [esi + 0x324]
call fcn.00403020
call fcn.00402874
mov ebx, eax
mov dword [esi + 0x5c0], ebx
test ebx, ebx
jne 0x45a8cd
mov eax, 0x45a9f0
call fcn.00429054
lea eax, [esi + 0x324]
call fcn.00402e10
call fcn.00402874
jmp 0x45a9dd
mov edx, dword [esi + 0x5c8]
lea eax, [esi + 0x470]
call fcn.00402c78
mov edx, 1
lea eax, [esi + 0x470]
call fcn.004031cc
call fcn.00402874
xor ebp, ebp
mov edx, dword [esi + 0x5c0]
mov eax, dword [esi + 0x2fc]
call fcn.0042b314
lea eax, [esi + 0x5c4]
mov edx, 0x3c
call fcn.00404b38
jmp 0x45a98b
inc ebp
imul edx, ebp, 0x3c
mov eax, dword [esi + 0x2fc]
call fcn.0042b324
push esp
lea edx, [esp + 0xc]
mov ecx, 0x3c
lea eax, [esi + 0x324]
call fcn.00402dd0
call fcn.00402874
mov edi, 0x3c
lea ebx, [esp + 8]
mov eax, esi
call fcn.0045a7f8
xor eax, eax
mov al, byte [ebx]
xor edx, edx
mov dl, byte [esi + 0x31d]
mov ecx, edx
shl edx, 8
sub edx, ecx
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov byte [ebx], al
inc ebx
dec edi
jne 0x45a94a
push 0
lea edx, [esp + 0xc]
mov ecx, dword [esp + 4]
lea eax, [esi + 0x470]
call fcn.00402df0
call fcn.00402874
lea eax, [esi + 0x324]
call fcn.00402fb4
call fcn.00402874
test al, al
je 0x45a918
lea eax, [esi + 0x324]
call fcn.00402e10
call fcn.00402874
lea eax, [esi + 0x470]
call fcn.00402e10
call fcn.00402874
mov edx, dword [esp + 4]
mov eax, dword [esi + 0x5c8]
call fcn.00408a60
mov eax, dword [esi + 0x5bc]
call fcn.00408be4
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401a96
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x45f4b8
call fcn.00401ca8
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x401ad1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401ad1
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401ae9
cmp eax, 0x20b
je 0x401ad6
mov dword [ebp - 0x1c], edi
jmp 0x401afd
cmp dword [ecx + 0x84], 0xe
jbe 0x401ad1
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x401af7
cmp dword [ecx + 0x74], 0xe
jbe 0x401ad1
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x48358c], 0xffffffff
or dword [0x483590], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x46b4ac]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x46b4a8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x483588], eax
call fcn.00401ca4
cmp dword [section..data], edi
jne 0x401b5a
push fcn.00401ca4
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00401c92
push 0x45f4b0
push 0x45f4ac
call sub.msvcrt.dll__initterm
mov eax, dword [0x46b4a4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x46b4a0]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x45f4a8
push 0x45f484
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x401bc0
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x401c7a
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
jne 0x401c0e
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x401bdc
cmp ax, 0x22
jne 0x401bc9
cmp word [esi], 0x22
jne 0x401be7
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x401bf5
cmp ax, 0x20
jbe 0x401be2
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x4c], 1
je 0x401c1b
movzx eax, word [ebp - 0x48]
jmp 0x401c1e
cmp word [esi], 0x20
jbe 0x401be7
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x401c0e
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], edi
jne 0x401c3f
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x401c74
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00401ce1
ret
Function at 0x404a50
Capabilities:
Hash data using sha224
Hash data using sha256

Disassembly:
test ecx, ecx
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 0xe8], ecx
jne 0x404aa0
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
ret
mov dword [eax + 8], 0xc1059ed8
mov dword [eax + 0xc], 0x367cd507
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0xf70e5939
mov dword [eax + 0x18], 0xffc00b31
mov dword [eax + 0x1c], 0x68581511
mov dword [eax + 0x20], 0x64f98fa7
mov dword [eax + 0x24], 0xbefa4fa4
ret

Function at 0x404dd0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push ebp
push edi
push 0x40
lea ebp, [esi + 0x68]
push 0x36
push ebp
call sub.msvcrt.dll_memset
push 0x40
lea edi, [esi + 0xa8]
push 0x5c
push edi
call sub.msvcrt.dll_memset
mov ecx, dword [esp + 0x28]
mov eax, edi
add esp, 0x18
mov edi, 0x14
mov edi, edi
movzx edx, byte [ecx]
xor byte [eax - 0x40], dl
movzx edx, byte [ecx]
xor byte [eax], dl
add ecx, 1
add eax, 1
sub edi, 1
jne 0x404e00
push ebx
xor ecx, ecx
mov eax, esi
call fcn.00404a50
lea edi, [ecx + 0x40]
mov ecx, dword [esi]
mov eax, ecx
and eax, 0x3f
mov ebx, edi
add ecx, edi
sub ebx, eax
cmp ecx, edi
mov dword [esp + 0xc], eax
mov dword [esi], ecx
jae 0x404e3e
add dword [esi + 4], 1
test eax, eax
je 0x404e6f
cmp ebx, edi
ja 0x404e6f
push ebx
lea eax, [eax + esi + 0x28]
push ebp
push eax
call sub.msvcrt.dll_memcpy
lea eax, [esi + 0x28]
push esi
call fcn.004020b0
sub edi, ebx
add esp, 0x10
add ebp, ebx
cmp edi, 0x40
mov dword [esp + 0xc], 0
jb 0x404e8a
mov ebx, edi
shr ebx, 6
push esi
mov eax, ebp
call fcn.004020b0
add esp, 4
add ebp, 0x40
sub edi, 0x40
sub ebx, 1
jne 0x404e74
test edi, edi
pop ebx
jbe 0x404ea2
mov ecx, dword [esp + 8]
push edi
lea edx, [ecx + esi + 0x28]
push ebp
push edx
call sub.msvcrt.dll_memcpy
add esp, 0xc
pop edi
pop ebp
pop ecx
ret
Function at 0x405d00
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
sub esp, 0x800
push ebx
push ebp
xor ecx, ecx
push esi
lea eax, [ecx + 1]
push edi
nop
mov edx, eax
and dl, 0x80
neg dl
lea esi, [eax + eax]
mov dword [esp + ecx*4 + 0x410], eax
mov dword [esp + eax*4 + 0x10], ecx
sbb edx, edx
and edx, 0x1b
xor edx, esi
xor edx, eax
and edx, 0xff
add ecx, 1
cmp ecx, 0x100
mov eax, edx
jl 0x405d10
mov eax, 1
mov ecx, 0x46c6f0
jmp 0x405d50
mov edx, eax
and dl, 0x80
neg dl
mov dword [ecx], eax
sbb edx, edx
and edx, 0x1b
add eax, eax
xor edx, eax
and edx, 0xff
add ecx, 4
cmp ecx, 0x46c718
mov eax, edx
jl 0x405d50
mov byte [0x46bdf0], 0x63
mov byte [0x46df7b], 0
mov ebx, 1
mov ecx, dword [esp + ebx*4 + 0x10]
add ecx, ecx
add ecx, ecx
lea edx, [esp + 0x80c]
sub edx, ecx
mov eax, dword [edx]
mov ecx, eax
sar ecx, 7
lea edx, [eax + eax]
or ecx, edx
and ecx, 0xff
xor eax, ecx
mov edx, ecx
sar edx, 7
add ecx, ecx
or edx, ecx
and edx, 0xff
xor eax, edx
mov ecx, edx
add edx, edx
sar ecx, 7
or ecx, edx
and ecx, 0xff
xor eax, ecx
mov edx, ecx
sar edx, 7
add ecx, ecx
or edx, ecx
xor edx, 0x63
and edx, 0xff
xor eax, edx
mov byte [ebx + 0x46bdf0], al
mov byte [eax + 0x46df18], bl
add ebx, 1
cmp ebx, 0x100
jl 0x405d88
xor ecx, ecx
lea esp, [esp]
movzx edx, byte [ecx + 0x46bdf0]
mov eax, edx
and al, 0x80
neg al
lea esi, [edx + edx]
sbb eax, eax
and eax, 0x1b
xor eax, esi
and eax, 0xff
mov esi, eax
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, esi
mov dword [ecx*4 + 0x46db18], eax
rol eax, 8
mov dword [ecx*4 + 0x46d718], eax
rol eax, 8
mov dword [ecx*4 + 0x46d318], eax
rol eax, 8
mov dword [ecx*4 + 0x46cf18], eax
movzx eax, byte [ecx + 0x46df18]
test eax, eax
je 0x405eb1
mov esi, dword [esp + eax*4 + 0x10]
mov edx, dword [esp + 0x48]
lea eax, [esi + edx]
cdq
mov edi, 0xff
idiv edi
mov eax, dword [esp + 0x34]
add eax, esi
mov ebp, dword [esp + edx*4 + 0x410]
cdq
idiv edi
mov ebx, dword [esp + edx*4 + 0x410]
mov edx, dword [esp + 0x44]
lea eax, [esi + edx]
cdq
idiv edi
mov eax, dword [esp + 0x3c]
add eax, esi
mov esi, 0xff
mov edi, dword [esp + edx*4 + 0x410]
cdq
idiv esi
mov edx, dword [esp + edx*4 + 0x410]
jmp 0x405eb9
xor ebp, ebp
xor ebx, ebx
xor edi, edi
xor edx, edx
shl edx, 8
xor edx, edi
shl edx, 8
xor edx, ebx
shl edx, 8
xor edx, ebp
mov dword [ecx*4 + 0x46cb18], edx
rol edx, 8
mov dword [ecx*4 + 0x46c718], edx
rol edx, 8
mov dword [ecx*4 + 0x46c2f0], edx
rol edx, 8
mov dword [ecx*4 + 0x46bef0], edx
add ecx, 1
cmp ecx, 0x100
jl 0x405e00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x800
ret
Function at 0x4064f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
test cl, 0xf
push ebp
mov ebp, dword [esp + 0x38]
push esi
push edi
mov esi, eax
mov edi, edx
je 0x40650f
pop edi
pop esi
mov eax, 0xffffffde
pop ebp
add esp, 0x28
ret
cmp dword [esp + 0x3c], 0
push ebx
jne 0x4065be
test ecx, ecx
jbe 0x4066a0
lea eax, [ecx - 1]
mov ebx, ebp
shr eax, 4
sub ebx, esi
add eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x3c]
mov ecx, edi
mov dword [esp + 0x30], edx
call fcn.00405170
mov eax, esi
lea ecx, [ebp + 2]
mov esi, 4
movzx edx, byte [ebx + eax]
xor byte [eax], dl
movzx edx, byte [ecx - 1]
xor byte [eax + 1], dl
movzx edx, byte [ecx]
xor byte [eax + 2], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 3], dl
add eax, 4
add ecx, 4
sub esi, 1
jne 0x406564
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [ebp], ecx
mov ecx, dword [esp + 0x30]
mov dword [ebp + 4], edx
mov edx, dword [esp + 0x34]
add edi, 0x10
sub ebx, 0x10
sub dword [esp + 0x14], 1
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], edx
mov esi, eax
jne 0x406534
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x28
ret
test ecx, ecx
jbe 0x4066a0
mov eax, ebp
sub eax, esi
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, edi
mov dword [esp + 0x10], eax
lea eax, [ecx - 1]
shr eax, 4
add eax, 1
mov dword [esp + 0x20], eax
lea eax, [ebp + 3]
mov edx, esi
sub edx, edi
mov dword [esp + 0x18], eax
lea ecx, [esi + 1]
mov eax, edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], 4
jmp 0x406605
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x10]
movzx ebx, byte [eax + ebx]
xor bl, byte [eax]
add eax, 4
mov byte [edx + eax - 4], bl
mov edx, dword [esp + 0x14]
mov dl, byte [ecx + edx]
xor dl, byte [eax - 3]
add ecx, 4
mov byte [ecx - 4], dl
movzx ebx, byte [eax - 2]
mov edx, dword [esp + 0x18]
xor bl, byte [edx - 1]
add edx, 4
mov byte [ecx - 3], bl
movzx ebx, byte [eax - 1]
xor bl, byte [edx - 4]
mov dword [esp + 0x18], edx
mov byte [ecx - 2], bl
mov ebx, 1
sub dword [esp + 0x1c], ebx
jne 0x406601
cmp dword [esp + 0x40], ebx
mov eax, dword [esp + 0x3c]
jne 0x406667
push eax
mov eax, esi
call fcn.00405730
add esp, 4
jmp 0x40666e
mov ecx, esi
call fcn.00405170
mov ecx, dword [esi]
mov dword [ebp], ecx
mov edx, dword [esi + 4]
mov dword [ebp + 4], edx
mov eax, dword [esi + 8]
mov dword [ebp + 8], eax
mov ecx, dword [esi + 0xc]
mov eax, 0x10
sub dword [esp + 0x10], eax
sub dword [esp + 0x14], eax
add edi, eax
add esi, eax
sub dword [esp + 0x20], ebx
mov dword [ebp + 0xc], ecx
jne 0x4065e3
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x28
ret
Function at 0x4066b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
push ebx
push esi
push edi
push 0x118
mov edi, eax
lea eax, [esp + 0x14]
push 0
push eax
call sub.msvcrt.dll_memset
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ecx
lea edx, [esp + 0x20]
lea esi, [edi + 8]
push edx
mov dword [edi + 4], esi
call fcn.00405f60
add esp, 0x14
test eax, eax
mov dword [esp + 0xc], eax
jne 0x4067d8
mov ecx, dword [esp + 0x10]
mov dword [edi], ecx
shl ecx, 4
add ecx, dword [esp + 0x14]
add esi, 4
mov edx, dword [ecx]
mov dword [esi - 4], edx
mov edx, dword [ecx + 4]
add ecx, 4
mov dword [esi], edx
mov edx, dword [ecx + 4]
add ecx, 4
add esi, 4
mov dword [esi], edx
mov edx, dword [ecx + 4]
add ecx, 4
add esi, 4
mov dword [esi], edx
mov edx, dword [edi]
sub edx, 1
add esi, 4
sub ecx, 0x1c
test edx, edx
jle 0x4067b8
mov edi, edi
mov edi, 4
jmp 0x406750
movzx eax, byte [ecx + 3]
movzx eax, byte [eax + 0x46bdf0]
movzx ebx, byte [ecx + 2]
movzx ebx, byte [ebx + 0x46bdf0]
mov eax, dword [eax*4 + 0x46bef0]
xor eax, dword [ebx*4 + 0x46c2f0]
movzx ebx, byte [ecx + 1]
movzx ebx, byte [ebx + 0x46bdf0]
xor eax, dword [ebx*4 + 0x46c718]
mov ebx, dword [ecx]
and ebx, 0xff
movzx ebx, byte [ebx + 0x46bdf0]
xor eax, dword [ebx*4 + 0x46cb18]
add esi, 4
mov dword [esi - 4], eax
add ecx, 4
sub edi, 1
jne 0x406750
sub edx, 1
sub ecx, 0x20
test edx, edx
jg 0x406740
mov eax, dword [esp + 0xc]
mov edx, dword [ecx]
mov dword [esi], edx
mov edx, dword [ecx + 4]
add ecx, 4
add esi, 4
mov dword [esi], edx
mov edx, dword [ecx + 4]
add esi, 4
add ecx, 4
mov dword [esi], edx
mov ecx, dword [ecx + 4]
mov dword [esi + 4], ecx
mov ecx, 0x118
lea edx, [esp + 0x10]
sub ecx, 1
mov byte [edx], 0
add edx, 1
test ecx, ecx
jne 0x4067e1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407cc0
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret
Function at 0x4084c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [edi + 0x144]
mov ecx, dword [edi + 0x140]
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
push 0
push 8
push eax
push ecx
call fcn.0045e040
push 0
mov esi, edx
mov edx, dword [edi + 0x14c]
push 8
mov ebx, eax
mov eax, dword [edi + 0x148]
push edx
push eax
mov dword [esp + 0x2c], esi
call fcn.0045e040
mov ecx, dword [edi + 0x150]
mov dword [ebp], ecx
mov ecx, dword [edi + 0x154]
mov dword [ebp + 4], ecx
mov ecx, dword [edi + 0x158]
mov dword [ebp + 8], ecx
mov ecx, dword [edi + 0x15c]
mov dword [ebp + 0xc], ecx
mov ecx, ebx
or ecx, esi
mov dword [esp + 0x14], edx
jne 0x408538
mov ecx, eax
or ecx, edx
je 0x408675
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov ecx, edx
shr ecx, 0x18
mov byte [esp + 0x20], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esp + 0x21], cl
mov ecx, edx
shr ecx, 8
mov byte [esp + 0x22], cl
mov cl, byte [esp + 0x14]
mov byte [esp + 0x23], cl
mov ecx, eax
mov ebp, edx
shrd ecx, ebp, 0x18
mov byte [esp + 0x24], cl
mov ecx, eax
shr ebp, 0x18
mov ebp, edx
shrd ecx, ebp, 0x10
mov byte [esp + 0x25], cl
mov ecx, eax
shrd ecx, edx, 8
mov byte [esp + 0x27], al
mov byte [esp + 0x26], cl
mov eax, esi
shr eax, 0x10
mov ecx, esi
shr ecx, 8
shr edx, 8
mov byte [esp + 0x29], al
mov byte [esp + 0x2a], cl
mov edx, esi
shr edx, 0x18
mov ecx, esi
mov eax, ebx
shrd eax, ecx, 0x18
mov byte [esp + 0x28], dl
mov dl, byte [esp + 0x1c]
mov byte [esp + 0x2c], al
mov byte [esp + 0x2b], dl
shr ecx, 0x18
mov eax, esi
mov edx, ebx
shrd edx, eax, 0x10
mov ecx, ebx
shrd ecx, esi, 8
shr esi, 8
shr ebp, 0x10
shr eax, 0x10
mov byte [esp + 0x2d], dl
mov byte [esp + 0x2e], cl
mov byte [esp + 0x2f], bl
xor eax, eax
lea esi, [edi + 0x171]
jmp 0x408600
movzx edx, byte [esp + eax + 0x20]
movzx ecx, byte [esp + eax + 0x21]
xor byte [esi + eax - 1], dl
xor byte [esi + eax], cl
movzx edx, byte [esp + eax + 0x22]
movzx ecx, byte [esp + eax + 0x23]
xor byte [esi + eax + 1], dl
xor byte [esi + eax + 2], cl
add eax, 4
cmp eax, 0x10
jb 0x408600
lea ecx, [edi + 0x170]
push ecx
mov eax, edi
call fcn.00407ee0
mov eax, dword [esp + 0x38]
add esp, 4
add eax, 1
mov ecx, 4
jmp 0x408650
movzx edx, byte [esi - 1]
xor byte [eax - 1], dl
movzx edx, byte [esi]
xor byte [eax], dl
movzx edx, byte [esi + 1]
xor byte [eax + 1], dl
movzx edx, byte [esi + 2]
xor byte [eax + 2], dl
add esi, 4
add eax, 4
sub ecx, 1
jne 0x408650
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
Function at 0x409170
Capabilities:
Get file size

Disassembly:
push ecx
push ebx
push esi
push edi
call fcn.0044fa40
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4091dd
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xf1b30
jae 0x4091d6
lea eax, [esi + 0xa]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea ecx, [esi + 5]
push ecx
mov edi, eax
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
mov ecx, esi
mov edx, edi
call fcn.0044ebc0
add esp, 4
test eax, eax
je 0x4091cd
mov edx, dword [esp + 0x14]
push esi
push edi
push edx
call fcn.00408ee0
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
pop ecx
ret 4

Function at 0x40bbb0
Capabilities:
Get file size

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, dword [edi + 8]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40bbe1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40bbe1
mov dword [edi + 0x10], eax
pop edi
mov eax, 0x70a
pop esi
ret
mov edx, dword [esp + 0xc]
push 1
push 0
push 0
push edx
call fcn.0045e040
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [esp + 0x10]
pop edi
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop esi
ret

Function at 0x40bf30
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor eax, eax
test ecx, ecx
jle 0x40bf61
push esi
push edi
jmp 0x40bf40
movzx esi, byte [edx]
movzx esi, byte [esi + 0x45faf8]
lea edi, [eax*8]
xor esi, edi
sub ecx, 1
xor eax, esi
add edx, 1
test ecx, ecx
jg 0x40bf40
pop edi
pop esi
ret

Function at 0x40edd0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x20]
test eax, eax
push esi
push edi
je 0x40ee0b
cdq
mov edi, eax
add eax, dword [ebp + 0xc]
mov esi, edx
mov ecx, edx
adc ecx, dword [ebp + 0x10]
push esi
sub eax, 1
push edi
sbb ecx, 0
push ecx
push eax
call fcn.0045e140
push esi
push edi
push edx
push eax
call fcn.0045e040
jmp 0x40ee11
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
mov esi, ebx
call fcn.0040bc90
add esp, 8
test eax, eax
jne 0x40ee38
mov edx, dword [ebx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40ee44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x10], eax
mov eax, 0x60a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412070
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push esi
xor esi, esi
push edi
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
call fcn.00410fa0
mov edi, eax
cmp edi, esi
jne 0x412097
pop edi
lea eax, [esi + 7]
pop esi
add esp, 8
ret
push ebx
push ebp
call fcn.0040be80
test eax, eax
je 0x4120e6
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, edi
push edi
call ebx
push edi
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x4120cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
mov dword [esp + 0x14], eax
jne 0x412128
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, 5
mov dword [esp + 0x10], eax
jge 0x412128
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4120b0
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
call ebx
push edi
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x41210e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
mov dword [esp + 0x14], eax
jne 0x412128
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, 5
mov dword [esp + 0x10], eax
jge 0x412128
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4120f2
push edi
call sub.msvcrt.dll_free
add esp, 4
cmp esi, 0xffffffff
pop ebp
pop ebx
jne 0x412147
cmp dword [esp + 0xc], 2
jne 0x412147
pop edi
xor eax, eax
pop esi
add esp, 8
ret
pop edi
mov eax, 0xa0a
pop esi
add esp, 8
ret
Function at 0x416ce0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
push esi
push edi
jne 0x416cfa
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov ecx, 0x50
call fcn.00413540
mov edi, eax
test edi, edi
je 0x416cf1
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx]
push eax
push ecx
push esi
call fcn.00415780
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov dword [edi], eax
mov eax, dword [ebx + 8]
push edx
push eax
push esi
call fcn.00415620
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov dword [edi + 8], eax
mov edx, dword [ebx + 0xc]
push ecx
push edx
push esi
call fcn.00418010
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x10]
add esp, 0xc
push eax
push ecx
push esi
call fcn.00415780
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 0x14]
push edx
push eax
push esi
call fcn.00418010
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov dword [edi + 0x14], eax
mov edx, dword [ebx + 0x18]
push ecx
push edx
push esi
call fcn.00415780
mov ecx, dword [ebp + 0x10]
mov dword [edi + 0x18], eax
mov al, byte [ebx + 4]
add esp, 0xc
mov byte [edi + 4], al
mov edx, dword [ebx + 0x1c]
push ecx
push edx
push esi
call fcn.00416ce0
mov dword [edi + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x28]
add esp, 0xc
push eax
push ecx
push esi
call fcn.00418010
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov dword [edi + 0x28], eax
mov eax, dword [ebx + 0x2c]
push edx
push eax
push esi
call fcn.00418010
mov dword [edi + 0x2c], eax
xor eax, eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov cx, word [ebx + 6]
add esp, 0xc
and cx, 0xfff7
mov word [edi + 6], cx
mov dword [edi + 0x24], eax
or eax, 0xffffffff
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret