joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5dbc32
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push edi
mov byte [eax + 0x37], ah
sbb al, 0x76
push edi
outsd dx, dword [esi]
xchg eax, ecx
add eax, 0x140808e1
mov ch, 0x11
lock xor ebp, dword [ecx - 0x7c]
jg 0x5dbb8f
pop ss
test dword [edi - 0x528267c], ecx
xchg esp, eax
mov esi, ebp
xchg esp, eax
and al, 0xff
push cs
in al, 0x68
mov bh, 0x44
xchg edi, eax
out 0xac, eax
mov ebp, 0x7b044212
push esp
outsd dx, dword [esi]
enter 0xffffffffffffd20a, 0xffffffffffffffee
xlatb
salc
or dword [ebx], 0xffffff9a
mov esi, 0x8647ba37
nop
dec ebx
push ebp
xchg ecx, eax
push edx
sbb ah, byte [ebx]
adc dword [edi + 0x45], edx
and bl, ch
xchg esp, eax
cmc
and ah, dh
nop
movsd dword es:[edi], dword [esi]
cmpsd dword [esi], dword es:[edi]
cli
push es
cmp bh, ah
not byte [ecx + 0x35c945a1]
add dword [esi], esp
inc ebp
mov ah, 0xc1
arpl word [ecx + ebp*4 - 0x3f], sp
inc esi
add al, 0xd9
cli
sahf
ja 0x5dbbfb
jmp 0x5858e8d1
mov edi, 0x145dd7e0
ja 0x5dbbcb
jnp 0x5dbb9e
xchg esi, eax
cmp al, 0x45
sal dh, cl
cpuid
aad 0x66
jge 0x5dbc64
lock sub bl, byte [edi]
retf
lcall 0xab56, 0x7edef10d
add eax, 0xc24ab445
in eax, 0x8b
pushfd
ja 0x5dbcb8
jns 0x5dbc0f
and eax, 0x636a94c5
movsb byte es:[edi], byte [esi]
adc byte [edx], ch
stosb byte es:[edi], al
ljmp 0x89fa
or al, 0xc1
jo 0x5dbcd7
push cs
stosd dword es:[edi], eax
cmp byte [edi - 0x103b8fda], al
in al, 0x77
ja 0x5dbce2
pop ss
mov ecx, 0x2d96c511
cmp al, 0x6a
xchg dword [edx + 0x31], edi
push edx
retf
mov cl, ch
mov ebp, 0xdf8009b0
inc esp
invalid
xchg edi, eax
ret
mov eax, dword [0xe788e998]
dec ecx
mov dl, 0xc8
invalid
Function at 0x609802
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4a2008]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov edx, eax
push ebx
push esi
push edi
mov edi, ecx
shr edx, 0x10
mov ecx, eax
and ecx, 0xf0
cmp ecx, 0x90
je 0x60983d
cmp ecx, 0x80
jne 0x609965
jmp 0x609845
test dl, dl
jne 0x60990d
shr eax, 8
movzx eax, al
push eax
push dword [edi + 0x39c]
push dword [edi + 0x398]
call 0x66e582
mov edx, dword [edi + 0x39c]
cmp eax, edx
je 0x609965
lea ecx, [eax + 4]
sub edx, ecx
push edx
push ecx
push eax
call fcn.0064ef62
add dword [edi + 0x39c], 0xfffffffc
add esp, 0xc
mov eax, dword [edi + 0x398]
cmp eax, dword [edi + 0x39c]
jne 0x609965
movups xmm0, xmmword [edi + 0x3b0]
lea edx, [edi + 0x3c0]
lea ecx, [ebp - 0x2c]
movups xmmword [ebp - 0x30], xmm0
call fcn.00608e62
mov eax, dword [edi + 0x3c0]
add dword [ebp - 0x2c], eax
movups xmm0, xmmword [ebp - 0x30]
movups xmmword [edi + 0x388], xmm0
nop
mov esi, dword [edi + 0x23c]
mov edx, 4
mov eax, dword [edi + 0x238]
mov ebx, dword [edi + 0x388]
cmp eax, esi
je 0x6098f0
nop dword [eax + eax]
cmp dword [eax], ebx
ja 0x6098e9
mov edx, dword [eax + 4]
add eax, 8
cmp eax, esi
jne 0x6098e2
mov eax, dword [edi + 0x38c]
cmp edx, eax
jg 0x609965
sub eax, edx
mov dword [edi + 0x38c], eax
lea eax, [ebx + 1]
mov dword [edi + 0x388], eax
jmp 0x6098c2
shr eax, 8
lea ecx, [edi + 0x398]
movzx esi, al
mov eax, dword [edi + 0x39c]
mov dword [ebp - 0x24], esi
cmp eax, dword [edi + 0x3a0]
je 0x609935
mov dword [eax], esi
add dword [edi + 0x39c], 4
jmp 0x60993f
lea edx, [ebp - 0x24]
push edx
push eax
call fcn.006311d2
movups xmm0, xmmword [edi + 0x388]
lea eax, [edi + 0x3a4]
mov dword [ebp - 0x1c], esi
mov dword [0x7a52a1f2], esp
int 9
ret 0x9254
push edx
in eax, 0x52
mov cl, 0x32
mov ebp, 0xa452dd92
xchg edx, eax
add eax, eax
fnsave dword [ebp + 0x3d]
invalid

Function at 0x639fb2
Capabilities:
Encode data using xor

Disassembly:
test byte [eax], bl
sbb byte [0xda8e9b0a], cl
or bl, byte [ebx - 0x5c4c2572]
or bl, byte [ebx - 0x5c4c2572]
dec eax
mov ebp, 0x8214b728
add ebp, eax
in eax, 0x7c
out dx, eax
pushal
sal dword [eax + 0x3b], 0xbb
in eax, 0x4b
cmp al, 0x28
mov ah, 0x85
xor al, 0x14
in al, dx
bound edi, qword [ecx + 0x242fa2f9]
rcr dword [edx], 1
leave
xor dword [edi], ecx
add ah, byte [esi - 0x55]
jle 0x639fae
sbb eax, 0x72c5b227
xor eax, 0x443de4d1
mov dword [edi + 0x75f385ec], ebx
fld qword [esi]
loopne 0x63a05b
in al, 0xa2
int 0xfe
xor byte [ecx + edi*2 - 0xc], 0x82
mov ecx, 0xf1433153
sar byte [ebx], cl
jae 0x639ffe
add dword [eax + 0x752454e3], esp
push ecx
xor ah, byte [edx - 5]
out 0x58, eax
mov dl, 0xae
mov esi, 0x6de82252
or dl, byte [ebp + edi*4 - 0x51]
test eax, 0x7c1526dc
adc al, cl
inc ebx
popfd
movsd dword es:[edi], dword [esi]
xor dl, byte [edi - 0x602260cb]
test edx, 0x7acc78f8
ret
ret
Function at 0x4069c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4069e9
xor eax, eax
test eax, eax
je 0x4069fc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4069fc
xor ecx, ecx
jmp 0x4069ff
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b22
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dec], 0
push esi
jne 0x406b59
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b33
mov dword [ecx*4 + 0x427de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406b8a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427de8]
xor eax, esi
inc ecx
dec edx
jne 0x406b6c
pop edi
not eax
pop esi
ret 0xc

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x407ef8
nop
mov ecx, 0x5fc9691b
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
mov eax, section..rsrc
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x7962716e
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x407410
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415449
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x41e04c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x41e574]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x41e4e0]
cmp eax, dword [ecx + 4]
jg 0x407474
mov eax, dword [0x41e4dc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413730
mov esp, ebp
pop ebp
ret
push 0x41e4e0
call main
add esp, 4
cmp dword [0x41e4e0], 0xffffffff
jne 0x407455
push 1
push str.bFillnSignInChromeEx
mov dword [ebp - 4], 0
call main
add esp, 8
test eax, eax
je 0x4075b0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
call main
test eax, eax
je 0x4074d5
mov eax, str.SOFTWAREPoliciesAdobeAcrobat_ReaderDCFeatureLockDowncServices
mov ecx, 0x43
jmp 0x4074e1
mov eax, str.SOFTWAREPoliciesAdobeAdobe_AcrobatDCFeatureLockDowncServices
mov ecx, 0x42
jmp 0x4074e1
push ecx
push eax
lea ecx, [ebp - 0x28]
call main
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x30]
push ecx
mov esi, 1
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push esi
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40755f
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40755f
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 4
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x38], 4
push ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x2c], 0
push ecx
push 0
push str.bToggleFillSign
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407554
cmp dword [ebp - 0x2c], esi
cmove esi, eax
jmp 0x407554
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40755f
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x4075a5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 2
cmp edx, 0x1000
jb 0x407599
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x407599
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call main
add esp, 8
jmp 0x4075a5
test esi, esi
je 0x4075b0
mov eax, 1
jmp 0x4075b4
xor eax, eax
jmp 0x4075b4
push 0x41e4e0
mov dword [0x41e4dc], eax
call main
add esp, 4
jmp 0x407455
Function at 0x4075d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415495
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x41e04c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x41e574]
mov edi, dword [eax + ecx*4]
mov eax, dword [0x41e4e8]
cmp eax, dword [edi + 4]
jg 0x407654
cmp dword [0x41e4e4], 1
jne 0x407623
xor eax, eax
jmp 0x407639
mov eax, dword [0x41e4f0]
cmp eax, dword [edi + 4]
jg 0x4077b1
mov eax, dword [0x41e4ec]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413730
mov esp, ebp
pop ebp
ret
push 0x41e4e8
call main
add esp, 4
cmp dword [0x41e4e8], 0xffffffff
jne 0x407616
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
call main
test eax, eax
je 0x40769e
mov eax, str.SOFTWAREPoliciesAdobeAcrobat_ReaderDCFeatureLockDowncServices
mov ecx, 0x43
jmp 0x4076aa
mov eax, str.SOFTWAREPoliciesAdobeAdobe_AcrobatDCFeatureLockDowncServices
mov ecx, 0x42
jmp 0x4076aa
push ecx
push eax
lea ecx, [ebp - 0x28]
call main
lea ecx, [ebp - 0x30]
xor esi, esi
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push 1
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407750
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x407750
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 4
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x38], 4
push ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x2c], esi
push ecx
push esi
push str.bToggleAdobeDocumentServices
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407718
cmp dword [ebp - 0x2c], 1
jne 0x407718
lea esi, [eax + 1]
jmp 0x407745
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
push 0
push str.bUpdater
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407745
cmp dword [ebp - 0x2c], esi
mov eax, 1
cmove esi, eax
jmp 0x407745
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x407750
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x407792
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 2
cmp edx, 0x1000
jb 0x407786
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x407786
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call main
add esp, 8
jmp 0x407792
push 0x41e4e8
mov dword [0x41e4e4], esi
mov dword [ebp - 4], 0xffffffff
call main
add esp, 4
jmp 0x407616
push 0x41e4f0
call main
add esp, 4
cmp dword [0x41e4f0], 0xffffffff
jne 0x407634
push 1
push str.bEnableFrictionlessInChromeExtn
mov dword [ebp - 4], 3
call main
push 0x41e4f0
mov dword [0x41e4ec], eax
call main
add esp, 0xc
jmp 0x407634
Function at 0x407890
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415509
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x41e04c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x41e574]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x41e4f8]
cmp eax, dword [ecx + 4]
jg 0x4078f4
mov eax, dword [0x41e4f4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413730
mov esp, ebp
pop ebp
ret
push 0x41e4f8
call main
add esp, 4
cmp dword [0x41e4f8], 0xffffffff
jne 0x4078d5
xor ebx, ebx
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x34], 4
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
call main
test eax, eax
je 0x40794f
mov eax, str.SOFTWAREPoliciesAdobeAcrobat_Reader_
lea ecx, [ebx + 0x27]
jmp 0x40795b
mov eax, str.SOFTWAREPoliciesAdobeAdobe_Acrobat_
mov ecx, 0x26
jmp 0x40795b
push ecx
push eax
lea ecx, [ebp - 0x28]
call main
push 2
push 0x4180c4
lea ecx, [ebp - 0x28]
call main
push 0x1c
push str.FeatureLockDowncSharePoint
lea ecx, [ebp - 0x28]
call main
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x30]
push ecx
push 1
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4079db
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
push 0
push str.bDisableSharePointFeatures
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4079d0
xor ebx, ebx
cmp dword [ebp - 0x2c], ebx
setne bl
jmp 0x4079d0
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4079db
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x407a25
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 2
cmp edx, 0x1000
jb 0x407a15
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x407a15
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call main
add esp, 8
mov byte [ebp - 4], 0
jmp 0x407a25
test ebx, ebx
jne 0x407a40
push ebx
push str.bEnableSharePointInChromeExtn
call main
add esp, 8
test eax, eax
je 0x407a40
lea eax, [ebx + 1]
jmp 0x407a44
xor eax, eax
jmp 0x407a44
push 0x41e4f8
mov dword [0x41e4f4], eax
call main
add esp, 4
jmp 0x4078d5
Function at 0x40eb00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x40eb0f
pop dword [ebp - 0x24]
mov eax, 0x6de8e28a
sub eax, 0x6da7f77b
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x8393cc26
add dword [ebp - 0x34], 0xcabe7925
mov dword [ebp - 0x30], 0xb8ff8922
sub dword [ebp - 0x30], 0x86cc3cdd
mov dword [ebp - 0x2c], 0xba8f6c22
sub dword [ebp - 0x2c], 0x6e4327f4
mov dword [ebp - 0x28], 0xc2c35427
sub dword [ebp - 0x28], 0xc2c35427
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x4da4bee7
add dword [ebp - 0x34], 0x26cdaa6f
mov dword [ebp - 0x30], 0x1aec013f
sub dword [ebp - 0x30], 0xd97f9fca
mov dword [ebp - 0x2c], 0xd3e24a75
sub dword [ebp - 0x2c], 0x7072de09
mov dword [ebp - 0x28], 0x960353e2
add dword [ebp - 0x28], 0x69fcac1e
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x670142e7
add eax, 0x99402d8d
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3852c
push 0
call eax
mov ecx, 0x3bee
xor edx, edx
add edx, eax
mov esi, 0x1dfee59c
sub esi, 0x1dbc2d9c
add esi, dword [ebp - 0x24]
mov ebx, 0x352eb048
add ebx, 0xb6155278
sub dword [ebp - 0x1c], ebx
mov edi, dword [esi]
sub dword [ebp - 0x14], 0xc9caba53
xor edi, ebx
mov dword [ebp - 0xc], 0x6c7d71fc
mov dword [edx], edi
mov dword [ebp - 8], 0xdf9d51a4
add edx, 0x13be43bc
add edx, 0xec41bc48
add esi, 0x366b1295
sub esi, 0x366b1291
loop 0x40ec28
add eax, 0x5db7a05c
add eax, 0xa249422f
mov ebx, eax
add eax, 0x543ac36f
add eax, 0xabc53c96
mov ecx, 0x614f65d3
add ecx, 0x9ef09a2d
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x40eee0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x41e04c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x40ef10
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413730
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x40ef40
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x40ef40
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413730
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x40f03b
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x40ef69
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40ef9d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413730
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x40effc
sub eax, 1
je 0x40effc
sub eax, 2
jne 0x40f03b
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call main
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413730
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40f01a
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x40f03b
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x40f03b
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413730
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413730
mov esp, ebp
pop ebp
ret 4
Function at 0x40f7c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
test eax, eax
jg 0x40f7e2
jl 0x40f7d7
test ecx, ecx
jne 0x40f7e2
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x40f7fc
push eax
push ecx
push dword [ebp + 8]
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push esi
push edi
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x40f840
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x40f840
mov edi, dword [ebp + 8]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x40f843
mov esi, dword [ebp + 8]
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x40f8b3
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40f86c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov ecx, edi
cmp edi, 0xfff
jbe 0x40f89b
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x40f8c7
cmp edi, eax
ja 0x40f876
test ecx, ecx
je 0x40f8b3
push dword [ebx + 0x4c]
push edi
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40f8e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40f905
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40f926
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x40f928
xor eax, eax
cdq
mov dword [ebp - 4], eax
mov ecx, edx
mov dword [ebp - 8], ecx
test edi, edi
jl 0x40f9a6
jg 0x40f93b
test esi, esi
je 0x40f9a6
test ecx, ecx
jl 0x40f989
jg 0x40f945
test eax, eax
je 0x40f989
cmp edi, ecx
jg 0x40f957
jl 0x40f94f
cmp esi, eax
jae 0x40f957
mov eax, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [ebp - 8]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x40f9a6
jg 0x40f98c
test esi, esi
je 0x40f9a6
jmp 0x40f98c
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x40f9a6
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

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