joyce8/EMBER2024-capa huggingface dataset:
Function at 0x526839
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0052643e

Function at 0x526844
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005265bf

Function at 0x52d7c7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0052cfa1

Function at 0x52d7d2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0052d1dc

Function at 0x52dc65
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0052d9ec

Function at 0x401000
Capabilities:
Execute command

Disassembly:
push str.start_Enginevcs.exe_vcsgamedata.iso
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
xor eax, eax
ret

Function at 0x401817
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401856
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401856
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401856
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401856
cmp dword [ecx + 0x74], 0xe
jbe 0x401856
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x8385a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x67000]
push edi
jmp 0x8385ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8385c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8385b0
mov eax, 1
add ebx, ebx
jne 0x8385d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8385e4
jne 0x838603
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x838603
dec eax
add ebx, ebx
jne 0x8385f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8385c8
add ebx, ebx
jne 0x8385ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x838655
xor ecx, ecx
sub eax, 3
jb 0x83861b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x83868a
sar eax, 1
mov ebp, eax
jmp 0x838626
add ebx, ebx
jne 0x838626
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8385f4
inc ecx
add ebx, ebx
jne 0x838634
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8385f4
add ebx, ebx
jne 0x838641
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x838636
jne 0x838652
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x838636
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x838674
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x838666
jmp 0x8385b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x838674
add edi, ecx
jmp 0x8385b6
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x838692
cmp byte [edi], 0x11
jne 0x838692
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 0x838697
lea edi, [esi + 0x3e1000]
mov eax, dword [edi]
or eax, eax
je 0x83870f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x43b1c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x43b340]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8386c4
mov ecx, edi
jns 0x8386f3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x43b344]
or eax, eax
je 0x838709
mov dword [ebx], eax
add ebx, 4
jmp 0x8386e1
call dword [esi + 0x43b354]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x838740
cmp al, 0xef
ja 0x838733
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x838715
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x838722
mov ebp, dword [esi + 0x43b348]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x838774
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x401c41
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
and dword [esp + 4], 0
push ebx
push edi
push 0x10
lea eax, [esp + 0x24]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x30]
push eax
push 0x10
push eax
push esi
call fcn.00407663
add esp, 0x20
test eax, eax
jne 0x401e3f
mov ah, byte [esp + 0x20]
movzx ecx, byte [esp + 0x21]
movzx edx, byte [esp + 0x25]
or eax, ecx
movzx ecx, byte [esp + 0x22]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0x23]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0x24]
movzx ebx, byte [esp + 0x28]
shl ecx, 8
or ecx, edx
movzx edx, byte [esp + 0x26]
shl ecx, 8
or ecx, edx
movzx edx, byte [esp + 0x27]
shl ecx, 8
or ecx, edx
xor edx, edx
or eax, edx
movzx edx, byte [esp + 0x2d]
mov dword [esp + 0x14], eax
movzx eax, byte [esp + 0x29]
shl ebx, 8
or ebx, eax
movzx eax, byte [esp + 0x2a]
shl ebx, 8
or ebx, eax
movzx eax, byte [esp + 0x2b]
shl ebx, 8
or ebx, eax
movzx eax, byte [esp + 0x2c]
shl eax, 8
or eax, edx
movzx edx, byte [esp + 0x2e]
shl eax, 8
or eax, edx
movzx edx, byte [esp + 0x2f]
xor edi, edi
or edi, ecx
shl eax, 8
or eax, edx
xor ecx, ecx
or ecx, eax
mov eax, dword [esp + 0x14]
xor edx, edx
or ebx, edx
mov dword [esi + 0x104], eax
xor eax, eax
mov dword [esp + 0x10], edi
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x100], edi
mov dword [esi + 0xc0], eax
mov dword [esi + 0xc4], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esp + 8], 4
mov eax, ecx
shrd ecx, ebx, 1
shr ebx, 1
xor edx, edx
shl edi, 0x1f
or ebx, edi
and eax, 1
or ecx, edx
imul eax, eax, 0xe1000000
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x14]
shrd edx, ebx, 1
shr ebx, 1
xor edi, edi
xor edi, edx
mov edx, dword [esp + 8]
xor eax, ebx
mov ebx, dword [esp + 0x1c]
mov dword [esi + edx*8 + 0x40], ecx
mov dword [esi + edx*8 + 0x44], ebx
mov dword [esi + edx*8 + 0xc0], edi
mov dword [esi + edx*8 + 0xc4], eax
sar edx, 1
test edx, edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 8], edx
jg 0x401d55
push 2
pop ebx
mov dword [esp + 8], ebx
cmp ebx, 1
lea edi, [esi + ebx*8 + 0xc0]
mov eax, dword [edi]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 4]
lea edx, [esi + ebx*8 + 0x40]
mov dword [esp + 0x14], eax
mov eax, dword [edx]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x1c], eax
jle 0x401e32
sub edi, edx
dec ebx
lea ecx, [edx + 8]
lea eax, [esi + 0x48]
mov dword [esp + 0xc], ebx
mov edx, dword [eax + 0x80]
mov ebx, dword [eax + 0x84]
xor edx, dword [esp + 0x10]
xor ebx, dword [esp + 0x14]
mov dword [edi + ecx], edx
mov dword [edi + ecx + 4], ebx
mov edx, dword [eax]
mov ebx, dword [eax + 4]
xor edx, dword [esp + 0x18]
xor ebx, dword [esp + 0x1c]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
add eax, 8
add ecx, 8
dec dword [esp + 0xc]
jne 0x401df5
mov ebx, dword [esp + 8]
add ebx, ebx
cmp ebx, 8
mov dword [esp + 8], ebx
jle 0x401dbe
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40229f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push 0
push 8
push dword [esi + 0x144]
push dword [esi + 0x140]
call fcn.0047ad90
push 0
push 8
push dword [esi + 0x14c]
mov edi, edx
push dword [esi + 0x148]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
call fcn.0047ad90
mov dword [ebp - 0xc], eax
push 0x10
lea eax, [esi + 0x150]
push eax
push dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 8], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x14]
add esp, 0xc
or eax, edi
jne 0x402307
mov eax, dword [ebp - 0xc]
or eax, ebx
je 0x4023df
push 0x10
lea eax, [ebp - 0x24]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 0x24], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0x23], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0x22], al
mov al, byte [ebp - 8]
mov byte [ebp - 0x21], al
mov eax, dword [ebp - 0xc]
mov ecx, eax
mov edx, ebx
shrd ecx, edx, 0x18
shr edx, 0x18
mov byte [ebp - 0x20], cl
mov ecx, eax
mov edx, ebx
shrd ecx, edx, 0x10
mov byte [ebp - 0x1f], cl
mov ecx, eax
mov byte [ebp - 0x1d], al
mov eax, edi
shr eax, 0x18
mov byte [ebp - 0x1c], al
mov eax, edi
shr eax, 0x10
mov byte [ebp - 0x1b], al
shrd ecx, ebx, 8
mov eax, edi
shr eax, 8
mov byte [ebp - 0x1a], al
mov al, byte [ebp - 0x10]
shr edx, 0x10
mov byte [ebp - 0x1e], cl
mov byte [ebp - 0x19], al
mov eax, dword [ebp - 0x14]
mov edx, edi
mov ecx, eax
shrd ecx, edx, 0x18
shr edx, 0x18
mov byte [ebp - 0x18], cl
mov edx, edi
mov ecx, eax
shrd ecx, edx, 0x10
mov byte [ebp - 0x17], cl
mov ecx, eax
shrd ecx, edi, 8
shr edi, 8
add esp, 0xc
shr ebx, 8
shr edx, 0x10
mov byte [ebp - 0x15], al
mov byte [ebp - 0x16], cl
xor eax, eax
lea edi, [esi + 0x170]
mov cl, byte [ebp + eax - 0x24]
xor byte [edi + eax], cl
inc eax
cmp eax, 0x10
jb 0x4023b7
push edi
mov eax, esi
call fcn.00401ee2
pop ecx
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dl, byte [edi + ecx]
add eax, ecx
xor byte [eax], dl
inc ecx
cmp ecx, 0x10
jb 0x4023cf
pop edi
xor eax, eax
pop ebx
leave
ret

Function at 0x402433
Capabilities:
Hash data using sha1

Disassembly:
and dword [eax], 0
and 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 0x40372e
Capabilities:
Encode data using xor
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
xor ebx, ebx
push esi
xor ecx, ecx
inc ebx
push edi
mov eax, ebx
mov esi, 0xff
mov edx, eax
and dl, 0x80
neg dl
lea edi, [eax + eax]
mov dword [ebp + ecx*4 - 0x80c], eax
mov dword [ebp + eax*4 - 0x40c], ecx
sbb edx, edx
and edx, 0x1b
xor edx, edi
xor edx, eax
and edx, esi
inc ecx
cmp ecx, 0x100
mov eax, edx
jl 0x403746
mov eax, ebx
mov ecx, 0x48acf0
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, esi
add ecx, 4
cmp ecx, 0x48ad18
mov eax, edx
jl 0x40377b
mov byte [0x48a3f0], 0x63
mov byte [0x48c57b], 0
mov eax, dword [ebp + ebx*4 - 0x40c]
shl eax, 2
lea ecx, [ebp - 0x410]
sub ecx, eax
mov eax, dword [ecx]
mov ecx, eax
sar ecx, 7
lea edx, [eax + eax]
or ecx, edx
and ecx, esi
xor eax, ecx
mov edx, ecx
sar edx, 7
add ecx, ecx
or edx, ecx
and edx, esi
xor eax, edx
mov ecx, edx
add edx, edx
sar ecx, 7
or ecx, edx
and ecx, esi
xor eax, ecx
mov edx, ecx
sar edx, 7
add ecx, ecx
or edx, ecx
xor edx, 0x63
and edx, esi
xor eax, edx
mov byte [ebx + 0x48a3f0], al
mov byte [eax + 0x48c518], bl
inc ebx
cmp ebx, 0x100
jl 0x4037aa
xor edi, edi
movzx ecx, byte [edi + 0x48a3f0]
mov eax, ecx
and al, 0x80
neg al
lea edx, [ecx + ecx]
sbb eax, eax
and eax, 0x1b
xor eax, edx
and eax, esi
mov edx, eax
xor eax, ecx
shl eax, 8
xor eax, ecx
shl eax, 8
xor eax, ecx
shl eax, 8
xor eax, edx
mov ecx, edi
shl ecx, 2
mov dword [ecx + 0x48c118], eax
rol eax, 8
mov dword [ecx + 0x48bd18], eax
rol eax, 8
mov dword [ecx + 0x48b918], eax
rol eax, 8
mov dword [ecx + 0x48b518], eax
movzx eax, byte [edi + 0x48c518]
test eax, eax
je 0x403888
mov eax, dword [ebp + eax*4 - 0x40c]
add eax, dword [ebp - 0x3d4]
mov ebx, esi
cdq
idiv ebx
mov eax, dword [ebp + edx*4 - 0x80c]
mov dword [ebp - 4], eax
jmp 0x40388c
and dword [ebp - 4], 0
movzx eax, byte [edi + 0x48c518]
test eax, eax
je 0x4038b5
mov eax, dword [ebp + eax*4 - 0x40c]
add eax, dword [ebp - 0x3e8]
mov ebx, esi
cdq
idiv ebx
mov eax, dword [ebp + edx*4 - 0x80c]
mov dword [ebp - 0xc], eax
jmp 0x4038b9
and dword [ebp - 0xc], 0
movzx eax, byte [edi + 0x48c518]
test eax, eax
je 0x4038e2
mov eax, dword [ebp + eax*4 - 0x40c]
add eax, dword [ebp - 0x3d8]
mov ebx, esi
cdq
idiv ebx
mov eax, dword [ebp + edx*4 - 0x80c]
mov dword [ebp - 8], eax
jmp 0x4038e6
and dword [ebp - 8], 0
movzx eax, byte [edi + 0x48c518]
test eax, eax
je 0x40390c
mov eax, dword [ebp + eax*4 - 0x40c]
add eax, dword [ebp - 0x3e0]
mov ebx, esi
cdq
idiv ebx
mov edx, dword [ebp + edx*4 - 0x80c]
jmp 0x40390e
xor edx, edx
shl edx, 8
xor edx, dword [ebp - 8]
shl edx, 8
xor edx, dword [ebp - 0xc]
shl edx, 8
xor edx, dword [ebp - 4]
inc edi
mov dword [ecx + 0x48b118], edx
rol edx, 8
mov eax, edx
mov dword [ecx + 0x48ad18], eax
rol eax, 8
mov dword [ecx + 0x48a8f0], eax
rol eax, 8
cmp edi, 0x100
mov dword [ecx + 0x48a4f0], eax
jl 0x40380d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403bfa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
push ebx
push esi
push edi
push 0x118
mov edi, eax
lea eax, [esp + 0x1c]
push 0
push eax
call sub.msvcrt.dll_memset
push dword [ebp + 0xc]
lea esi, [edi + 8]
push dword [ebp + 8]
lea eax, [esp + 0x2c]
mov dword [edi + 4], esi
call fcn.0040397c
add esp, 0x14
test eax, eax
mov dword [esp + 0x14], eax
jne 0x403cf4
mov ecx, dword [esp + 0x18]
mov dword [edi], ecx
shl ecx, 4
add ecx, dword [esp + 0x1c]
push 4
mov eax, dword [ecx]
mov dword [esi], eax
pop edx
add ecx, edx
mov eax, dword [ecx]
add esi, edx
mov dword [esi], eax
add ecx, edx
mov eax, dword [ecx]
add esi, edx
mov dword [esi], eax
add ecx, edx
mov eax, dword [ecx]
add esi, edx
mov dword [esi], eax
mov edi, dword [edi]
add esi, edx
dec edi
sub ecx, 0x1c
jmp 0x403cd6
mov dword [esp + 0x10], edx
movzx eax, byte [ecx + 3]
movzx eax, byte [eax + 0x48a3f0]
movzx ebx, byte [ecx + 2]
movzx ebx, byte [ebx + 0x48a3f0]
mov eax, dword [eax*4 + 0x48a4f0]
xor eax, dword [ebx*4 + 0x48a8f0]
movzx ebx, byte [ecx + 1]
movzx ebx, byte [ebx + 0x48a3f0]
xor eax, dword [ebx*4 + 0x48ad18]
mov ebx, dword [ecx]
and ebx, 0xff
movzx ebx, byte [ebx + 0x48a3f0]
xor eax, dword [ebx*4 + 0x48b118]
add ecx, edx
mov dword [esi], eax
add esi, edx
dec dword [esp + 0x10]
jne 0x403c7a
dec edi
sub ecx, 0x20
test edi, edi
jg 0x403c76
mov eax, dword [ecx]
mov dword [esi], eax
add ecx, edx
mov eax, dword [ecx]
add esi, edx
mov dword [esi], eax
add esi, edx
add ecx, edx
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov ecx, 0x118
lea eax, [esp + 0x18]
dec ecx
mov byte [eax], 0
inc eax
test ecx, ecx
jne 0x403cfd
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404757
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
test al, 0xf
push ebx
mov ebx, ecx
je 0x40476c
push 0xffffffffffffffde
pop eax
jmp 0x40482f
cmp dword [ebp + 0xc], 0
push esi
push edi
jne 0x4047d6
test eax, eax
jbe 0x40482b
mov ecx, dword [ebp + 0x10]
lea edi, [eax - 1]
sub ecx, ebx
shr edi, 4
push 0x10
mov dword [ebp - 4], ecx
inc edi
pop esi
push esi
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x14]
push 0
push dword [ebp + 8]
mov ecx, ebx
call fcn.00404738
add esp, 0x14
mov eax, esi
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + ebx]
xor byte [ebx], cl
inc ebx
dec eax
jne 0x4047af
push esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
call sub.msvcrt.dll_memcpy
add dword [ebp + 0x14], esi
sub dword [ebp - 4], esi
add esp, 0xc
dec edi
jne 0x40478e
jmp 0x40482b
test eax, eax
jbe 0x40482b
mov edi, dword [ebp + 0x10]
sub edi, dword [ebp + 0x14]
dec eax
shr eax, 4
inc eax
push 0x10
mov dword [ebp - 8], eax
pop esi
mov eax, dword [ebp + 0x14]
mov ecx, ebx
sub ecx, eax
mov dword [ebp - 4], esi
mov dl, byte [edi + eax]
xor dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
dec dword [ebp - 4]
jne 0x4047f5
push dword [ebp + 0xc]
mov ecx, ebx
push dword [ebp + 8]
mov eax, ebx
call fcn.00404738
push esi
push ebx
push dword [ebp + 0x10]
call sub.msvcrt.dll_memcpy
add dword [ebp + 0x14], esi
add esp, 0x14
sub edi, esi
add ebx, esi
dec dword [ebp - 8]
jne 0x4047eb
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x404832
Capabilities:
Hash data using sha224
Hash data using sha256

Disassembly:
and dword [eax], 0
and dword [eax + 4], 0
test ecx, ecx
jne 0x404877
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
jmp 0x4048af
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
mov dword [eax + 0xe8], ecx
ret
Function at 0x4073df
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov ebx, eax
cmp ebx, 0x40
push edi
mov esi, ecx
jbe 0x407407
push ebx
push dword [ebp + 8]
lea edi, [ebp - 0x20]
call fcn.00407394
pop ecx
pop ecx
push 0x20
mov eax, edi
pop ebx
mov dword [ebp + 8], eax
push 0x40
lea eax, [esi + 0x68]
push 0x36
push eax
call sub.msvcrt.dll_memset
push 0x40
lea edi, [esi + 0xa8]
push 0x5c
push edi
call sub.msvcrt.dll_memset
add esp, 0x18
test ebx, ebx
jbe 0x407440
mov ecx, dword [ebp + 8]
mov eax, edi
mov edi, ebx
mov dl, byte [ecx]
xor byte [eax - 0x40], dl
mov dl, byte [ecx]
xor byte [eax], dl
inc ecx
inc eax
dec edi
jne 0x407432
xor ecx, ecx
mov eax, esi
call fcn.00404832
lea eax, [esi + 0x68]
push 0x40
push eax
call fcn.004071a9
push 0x20
lea eax, [ebp - 0x20]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4074e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x60]
sub esp, 0x134
push ebx
push esi
push edi
xor ecx, ecx
lea eax, [ebp - 0xd4]
call fcn.00404832
xor ebx, ebx
inc ebx
xor edi, edi
push dword [ebp + 0x68]
mov eax, ebx
shr eax, 0x18
mov byte [ebp + 0x5c], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp + 0x5d], al
mov eax, ebx
shr eax, 8
mov byte [ebp + 0x5e], al
mov eax, dword [ebp + 0x6c]
lea ecx, [ebp - 0xd4]
mov byte [ebp + 0x5f], bl
call fcn.004073df
cmp dword [ebp + 0x74], 0
pop ecx
jbe 0x407546
push dword [ebp + 0x74]
lea esi, [ebp - 0xd4]
push dword [ebp + 0x70]
call fcn.004071a9
pop ecx
pop ecx
lea eax, [ebp + 0x5c]
push 4
push eax
lea esi, [ebp - 0xd4]
call fcn.004071a9
lea eax, [ebp + 0x38]
push eax
mov eax, esi
call fcn.00407469
push 0x20
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0x18]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x78]
add esp, 0x18
cmp eax, 1
jbe 0x4075c5
dec eax
mov dword [ebp + 0x58], eax
push dword [ebp + 0x68]
mov eax, dword [ebp + 0x6c]
lea ecx, [ebp - 0xd4]
call fcn.004073df
lea eax, [ebp + 0x38]
push 0x20
push eax
lea esi, [ebp - 0xd4]
call fcn.004071a9
lea eax, [ebp + 0x38]
push eax
mov eax, esi
call fcn.00407469
add esp, 0x10
xor eax, eax
mov cl, byte [ebp + eax + 0x38]
xor byte [ebp + eax + 0x18], cl
inc eax
cmp eax, 0x20
jb 0x4075b2
dec dword [ebp + 0x58]
jne 0x407580
push 0x20
pop esi
sub esi, edi
cmp esi, 0x20
jb 0x4075d2
push 0x20
pop esi
push esi
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x7c]
add eax, edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
add edi, esi
inc ebx
cmp edi, 0x20
jb 0x407500
pop edi
pop esi
pop ebx
add ebp, 0x60
leave
ret
Function at 0x407a0e
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x47c4c8
call fcn.00407c20
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x407a49
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407a49
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x407a61
cmp eax, 0x20b
je 0x407a4e
mov dword [ebp - 0x1c], edi
jmp 0x407a75
cmp dword [ecx + 0x84], 0xe
jbe 0x407a49
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x407a6f
cmp dword [ecx + 0x74], 0xe
jbe 0x407a49
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 [0x48e57c], 0xffffffff
or dword [0x48e580], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x489a6c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x489a68]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x48e578], eax
call fcn.00407c1c
cmp dword [section..data], edi
jne 0x407ad2
push fcn.00407c1c
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00407c0a
push 0x47c4c0
push 0x47c4bc
call sub.msvcrt.dll__initterm
mov eax, dword [0x489a64]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x489a60]
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 0x47c4b8
push 0x47c490
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x407b38
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x407bf2
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
jne 0x407b86
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x407b54
cmp ax, 0x22
jne 0x407b41
cmp word [esi], 0x22
jne 0x407b5f
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x407b6d
cmp ax, 0x20
jbe 0x407b5a
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
test byte [ebp - 0x4c], 1
je 0x407b93
movzx eax, word [ebp - 0x48]
jmp 0x407b96
cmp word [esi], 0x20
jbe 0x407b5f
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x407b86
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 0x407bb7
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x407bec
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00407c59
ret