joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f630
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43abb6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x443040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 2
mov eax, 0x3f
mov dword [esi + 4], 0x3f800000
mov word [esi + 0x3c], ax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.0041f780
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4388a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43aced
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x443040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 4
call fcn.00439626
mov ecx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov dword [ecx], eax
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push ecx
push 0x439000
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x438922
mov eax, esi
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.00439054
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [edi], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x439c76
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x439cb5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x439cb5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x439cb5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x439cb5
cmp dword [ecx + 0x74], 0xe
jbe 0x439cb5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401970
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push dword [ebp + 0x10]
push ebx
call sym.Argon2RefBench.exe_argon2_ctx
add esp, 8
test eax, eax
jne 0x401a37
mov esi, dword [ebx + 4]
xor dl, dl
test esi, esi
je 0x401a24
mov edi, dword [ebp + 0xc]
cmp esi, 0x20
jb 0x401a15
mov edx, dword [ebx]
mov ecx, esi
and ecx, 0xffffffe0
xorps xmm3, xmm3
xorps xmm2, xmm2
nop
movups xmm0, xmmword [eax + edi]
movups xmm1, xmmword [edx + eax]
pxor xmm1, xmm0
movups xmm0, xmmword [edx + eax + 0x10]
por xmm3, xmm1
movups xmm1, xmmword [eax + edi + 0x10]
add eax, 0x20
pxor xmm1, xmm0
por xmm2, xmm1
cmp eax, ecx
jb 0x4019b0
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd edx, xmm2
cmp eax, esi
jae 0x401a24
mov ebx, dword [ebx]
mov cl, byte [ebx + eax]
xor cl, byte [eax + edi]
inc eax
or dl, cl
cmp eax, esi
jb 0x401a17
movzx eax, dl
dec eax
and eax, 0x100
neg eax
sbb eax, eax
and eax, 0x23
add eax, 0xffffffdd
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401df0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [0x409004]
xor eax, esp
mov dword [esp + 0x94], eax
xorps xmm0, xmm0
mov dword [esp + 0x40], 1
movaps xmmword [esp + 0x68], xmm0
mov eax, 0x400
movaps xmm0, xmmword [0x407940]
push esi
push edi
mov dword [esp + 0x4c], 2
mov dword [esp + 0x50], 4
mov dword [esp + 0x54], 8
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 2
movaps xmmword [esp + 0x60], xmm0
mov dword [esp + 0x18], eax
xor esi, esi
shr eax, 0xa
mov dword [esp + 0x14], esi
mov dword [esp + 0x2c], eax
nop
xorps xmm0, xmm0
xor edi, edi
movsd qword [esp + 0x30], xmm0
mov dword [esp + 0x24], edi
nop
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
push 0x13
push dword [esp + edi*4 + 0x40]
mov dword [esp + 0x30], eax
push 0
push 0
push 0x10
rdtsc
mov dword [esp + 0x30], eax
lea eax, [esp + 0xa0]
push eax
push 0x10
lea eax, [esp + 0x7c]
mov dword [esp + 0x3c], edx
push eax
push 0x10
lea eax, [esp + 0x94]
push eax
push dword [esp + esi*4 + 0x70]
push dword [esp + 0x44]
push 3
call sym.Argon2RefBench.exe_argon2_hash
add esp, 0x34
rdtsc
mov edi, eax
mov esi, edx
sub edi, dword [esp + 0x1c]
push 0
push dword [esp + 0x1c]
sbb esi, dword [esp + 0x28]
push esi
push edi
call fcn.00406640
mov dword [esp + 0x20], edx
mov ecx, edi
mov edx, esi
mov dword [esp + 0x1c], eax
call fcn.00406a40
mulsd xmm0, qword [0x407928]
movsd qword [esp + 0x58], xmm0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
movd xmm1, dword [esp + 0x28]
cvtdq2pd xmm1, xmm1
mov edi, dword [esp + 0x24]
movd xmm2, eax
cvtdq2pd xmm2, xmm2
mov eax, dword [esp + edi*4 + 0x3c]
subsd xmm2, xmm1
divsd xmm2, qword [0x407930]
addsd xmm2, qword [esp + 0x30]
movsd qword [esp + 0x30], xmm2
sub eax, 0
je 0x401f5e
sub eax, 1
je 0x401f57
sub eax, 1
je 0x401f50
xor esi, esi
jmp 0x401f63
mov esi, str.Argon2id
jmp 0x401f63
mov esi, str.Argon2i
jmp 0x401f63
mov esi, str.Argon2d
movsd xmm0, qword [esp + 0x58]
sub esp, 8
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
movsd qword [esp], xmm0
call fcn.00406a40
mov eax, dword [esp + 0x1c]
sub esp, 8
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [0x407924]
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
push dword [esp + eax*4 + 0x58]
push dword [esp + 0x40]
push 3
push esi
push str._s__d_iterations___d_MiB__d_threads:___2.2f_cpb__2.2f_Mcycles__n
call fcn.00401db0
mov esi, dword [esp + 0x38]
inc edi
add esp, 0x24
mov dword [esp + 0x24], edi
cmp edi, 3
jb 0x401e80
movsd xmm0, qword [esp + 0x30]
sub esp, 8
movsd qword [esp], xmm0
push str._2.4f_seconds_n_n
call fcn.00401db0
inc esi
add esp, 0xc
mov dword [esp + 0x14], esi
cmp esi, 4
jb 0x401e70
mov eax, dword [esp + 0x18]
add eax, eax
mov dword [esp + 0x18], eax
cmp eax, 0x400000
jbe 0x401e61
mov ecx, dword [esp + 0x9c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00405945
mov esp, ebp
pop ebp
ret
Function at 0x403120
Capabilities:
Encode data using xor

Disassembly:
lea eax, [edx + 0x3f8]
push esi
lea esi, [ecx + 0x3f8]
cmp ecx, eax
ja 0x403157
cmp esi, edx
jb 0x403157
sub edx, ecx
mov esi, 0x80
nop dword [eax]
mov eax, dword [ecx + edx]
lea ecx, [ecx + 8]
xor dword [ecx - 8], eax
mov eax, dword [ecx + edx - 4]
xor dword [ecx - 4], eax
sub esi, 1
jne 0x403140
pop esi
ret
lea esi, [edx + 0x30]
sub edx, ecx
lea eax, [ecx + 0x10]
mov ecx, 0x10
lea eax, [eax + 0x40]
lea esi, [esi + 0x40]
movups xmm0, xmmword [eax - 0x50]
movups xmm1, xmmword [esi - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [edx + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [esi - 0x50]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [esi - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
sub ecx, 1
jne 0x403164
pop esi
ret
Function at 0x403730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, edx
mov eax, 0xaaaaaaab
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mul ecx
shr edx, 1
lea esi, [edx*4]
lea eax, [edx + edx*2]
mov dword [ebp - 0x10], esi
mov edx, ecx
sub edx, eax
sub edx, 1
je 0x403765
sub edx, 1
jne 0x40376b
inc esi
add esi, 2
mov dword [ebp - 0x10], esi
cmp ebx, esi
ja 0x403779
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
xor edx, edx
xor esi, esi
test ecx, ecx
je 0x4038ad
mov ebx, dword [ebp + 8]
movzx eax, byte [ebx]
dec ecx
shl edx, 8
inc ebx
add esi, 8
mov dword [ebp + 0xc], ecx
add edx, eax
mov dword [ebp + 8], ebx
cmp esi, 6
jb 0x403830
sub esi, 6
mov ebx, edx
mov ecx, esi
shr ebx, cl
and ebx, 0x3f
mov dword [ebp - 4], ebx
lea eax, [ebx - 0x1a]
add ebx, 0xffffffcc
shr eax, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov ecx, eax
xor ecx, 0x3e
shr ebx, 8
neg ecx
xor eax, 0x3f
shr ecx, 8
neg eax
not cl
shr eax, 8
and cl, 0xfb
not al
or cl, al
mov eax, dword [ebp - 4]
and ecx, 0xffffff2f
mov dword [ebp - 8], ecx
lea ecx, [eax - 0x3e]
sub al, 4
shr ecx, 8
and cl, al
mov al, bl
not al
and cl, al
mov al, byte [ebp - 0xc]
or byte [ebp - 8], cl
not al
mov ecx, dword [ebp - 4]
add ecx, 0x47
and cl, al
mov eax, dword [ebp - 8]
and cl, bl
or al, cl
mov ecx, dword [ebp - 4]
add cl, 0x41
and cl, byte [ebp - 0xc]
or al, cl
mov byte [edi], al
inc edi
cmp esi, 6
jae 0x4037a4
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test ecx, ecx
jne 0x403788
test esi, esi
je 0x4038ad
mov ecx, 6
sub ecx, esi
shl edx, cl
and edx, 0x3f
mov ecx, edx
xor ecx, 0x3e
neg ecx
lea eax, [edx - 0x1a]
shr ecx, 8
shr eax, 8
lea ebx, [edx - 0x34]
mov dword [ebp - 0xc], eax
not cl
mov eax, edx
shr ebx, 8
xor eax, 0x3f
and cl, 0xfb
neg eax
shr eax, 8
not al
or cl, al
lea eax, [edx - 4]
and ecx, 0xffffff2f
mov dword [ebp + 0xc], ecx
lea ecx, [edx - 0x3e]
shr ecx, 8
and cl, al
mov al, bl
not al
and cl, al
mov al, byte [ebp - 0xc]
or byte [ebp + 0xc], cl
not al
lea ecx, [edx + 0x47]
add dl, 0x41
and dl, byte [ebp - 0xc]
and cl, al
mov eax, dword [ebp + 0xc]
and cl, bl
or al, cl
or al, dl
mov byte [edi], al
inc edi
mov eax, dword [ebp - 0x10]
mov byte [edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x709c2b30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x709c2b8b
cmp byte [esi + ebx - 1], 0xa
je 0x709c2b5f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x709c3118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x423b47
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x423b75
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x423b93
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00423ab1
jmp 0x423b93
mov eax, dword [esi + 0x14]
test eax, eax
je 0x423b93
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00423ab1
test edi, edi
mov eax, edi
jne 0x423b7d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x438c24]
test ecx, ecx
je 0x423c46
jmp 0x423b46
ret 8

Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x53dd9c
push eax
push dword fs:[0]
push ebx
add byte [eax + 0x64], dl
push dword [0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x401080
arpl word [edx + esi], si
adc ebx, dword [edi - 0x54]
xchg ebx, eax
neg dl
push cs
dec ecx
mov eax, 0x7fb97088
add ah, ah
aam 0xe7
mov dword [0x98c0ec09], eax
mov eax, dword [0xf6a8b15c]
jecxz 0x401003
xor dword [ecx], ecx
iretd
ljmp 0x2bdb:0xc41a7522
jne 0x40109c
invalid
mov ch, byte [edx + 0x477bf67f]
jle 0x4010d4
salc
rcr cl, 1
cwde
add al, 0x60
sub byte [ecx + 0x485b75a6], bh
adc byte [eax], cl
xor eax, 0x4156615a
clc
or edi, dword [esi + 0x54]
xchg byte [ebx + 0x456a3141], bl
adc dword [edx + 0x30], ecx
jno 0x401110
sbb ebx, edi
cmp al, 0x6e
jae 0x40107e
out dx, al
aad 0x69
sub dword [edi + 0x33], ebx
retf
push ebp
mov cs, edx
mov bl, byte [edx + 0x3812e7a7]
adc eax, 0x31bdc80d
movsd dword es:[edi], dword [esi]
fild qword [eax]
add ch, al
cmpsd dword [esi], dword es:[edi]
dec eax
ret
Function at 0x29a0e233
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x29a0e242
pop dword [ebp - 4]
mov eax, 0x97ab26cd
add eax, 0x91f5bb75
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x49a55f7d
sub dword [ebp - 0x14], 0xfb531a32
mov dword [ebp - 0x10], 0x94c2b01a
sub dword [ebp - 0x10], 0x628f63d5
mov dword [ebp - 0xc], 0xe6855f8d
sub dword [ebp - 0xc], 0x9a391b5f
mov dword [ebp - 8], 0x515b571c
add dword [ebp - 8], 0xaea4a8e4
lea eax, [ebp - 0x14]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0x2ef3c439
sub dword [ebp - 0x14], 0xba815ae3
mov dword [ebp - 0x10], 0xce4dc69f
sub dword [ebp - 0x10], 0x8ce1652a
mov dword [ebp - 0xc], 0x2dfcbd6a
sub dword [ebp - 0xc], 0xca8d50fe
mov dword [ebp - 8], 0x483461fa
add dword [ebp - 8], 0xb7cb9e06
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, 0x11d91a61
add eax, 0x17c825e3
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x3a9d4
push 0
call eax
mov ecx, 0x26955e9a
sub ecx, 0x2695155f
mov esi, eax
mov edx, 0xf4a36f55
sub edx, 0xcb014f55
add edx, dword [ebp - 4]
mov ebx, 0x1d15039f
add ebx, 0x2610c4d7
mov edi, dword [edx]
xor edi, ebx
mov dword [esi], edi
add esi, 0xabb1f767
sub esi, 0xabb1f763
add edx, 4
loop 0x29a0e35f
add eax, 0xbd024757
sub eax, 0xbd012f98
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xa4bb8388
add ecx, 0x84e47c78
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x404b14
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
and dword [esp + 4], 0
push ebx
push esi
push edi
pushal
xor eax, eax
dec eax
xor ebx, eax
mov dword [esp + 0x30], ebx
popal
push str.V3.5_n
call dword [sym.imp.MSVCR90.dll_printf]
cmp dword [0x4093a8], 0
pop ecx
jne 0x404b4d
call fcn.0040435c
cmp dword [0x4093a4], 0
jne 0x404b5b
call fcn.0040429c
call fcn.0040459d
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esi]
call fcn.00404144
lea eax, [esp + 0x14]
push eax
call fcn.00403faf
mov dword [0x4093ac], eax
lea eax, [esp + 0x38]
push eax
call fcn.00403f65
push dword [esp + 0xc]
push dword [esi]
call fcn.00404033
push eax
mov dword [0x4093b0], eax
call dword [sym.imp.MSVCR90.dll__msize]
pop ecx
mov esi, eax
push esi
call fcn.00403fe4
mov eax, esi
imul eax, eax, 3
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.MSVCR90.dll_malloc]
pop ecx
mov edi, eax
push esi
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0040327f
test edi, edi
je 0x404bf3
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x10]
push edi
call fcn.004043b2
lea eax, [esp + 0x38]
push eax
call dword [0x409398]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00404267
int3

Function at 0x1001408
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x100144b
push esi
lea ecx, [eax + 8]
call dword [sym.imp.ulib.dll_public:_class_WSTRING____thiscall_PATH::QueryFullPathString_void_const]
mov esi, eax
cmp esi, ebx
je 0x100144a
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1001442
cmp word [eax], bx
je 0x1001442
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001442
test ah, 0x10
je 0x1001442
mov bl, 1
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
pop esi
mov al, bl
pop ebx
ret 4
Function at 0x404ee0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9c0
call fcn.004073f0
mov eax, dword [0x412008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov dword [ebp - 0x3a9a0], 0
push eax
push eax
push eax
mov word [ebp - 0x3a98c], ax
lea eax, [ebp - 0x3a99c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3a9a0]
mov dword [ebp - 0x3a99c], 0x10001
push eax
mov dword [ebp - 0x3a998], 0x1f40
mov dword [ebp - 0x3a994], 0x1f40
mov dword [ebp - 0x3a990], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x3a980
lea eax, [ebp - 0x3a988]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor edi, edi
mov eax, 0xaaaaaaab
mov esi, edi
mul edi
mov eax, edi
shr esi, 0xe
shr edx, 1
mov ecx, edi
shr eax, 6
shr edx, 1
not eax
xor edx, edi
shr ecx, 0xa
and eax, 8
shr edx, 0xb
imul eax, edx
and esi, ecx
and esi, 3
xor edx, edx
add esi, 7
mov ecx, edi
shr ecx, 4
imul eax, edi
imul eax, edi
div esi
or al, cl
mov byte [ebp + edi - 0x3a988], al
inc edi
cmp edi, 0x3a980
jb 0x404f65
lea eax, [ebp - 0x3a988]
mov dword [ebp - 0x3a9bc], 0x3a980
mov dword [ebp - 0x3a9c0], eax
lea eax, [ebp - 0x3a9c0]
push 0x20
push eax
push dword [ebp - 0x3a9a0]
mov dword [ebp - 0x3a9b8], 0
mov dword [ebp - 0x3a9b4], 0
mov dword [ebp - 0x3a9b0], 0
mov dword [ebp - 0x3a9ac], 0
mov dword [ebp - 0x3a9a8], 0
mov dword [ebp - 0x3a9a4], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040664c
mov esp, ebp
pop ebp
ret
Function at 0x405070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9c0
call fcn.004073f0
mov eax, dword [0x412008]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x3a9a0], 0
push eax
push eax
push eax
mov word [ebp - 0x3a98c], ax
lea eax, [ebp - 0x3a99c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3a9a0]
mov dword [ebp - 0x3a99c], 0x10001
push eax
mov dword [ebp - 0x3a998], 0x1f40
mov dword [ebp - 0x3a994], 0x1f40
mov dword [ebp - 0x3a990], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x3a980
lea eax, [ebp - 0x3a988]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov edx, eax
shr edx, 7
xor dl, al
add dl, al
xor dl, 5
mov cl, dl
shl dl, 2
add cl, dl
mov byte [ebp + eax - 0x3a988], cl
inc eax
cmp eax, 0x3a980
jb 0x4050f3
lea eax, [ebp - 0x3a988]
mov dword [ebp - 0x3a9bc], 0x3a980
mov dword [ebp - 0x3a9c0], eax
lea eax, [ebp - 0x3a9c0]
push 0x20
push eax
push dword [ebp - 0x3a9a0]
mov dword [ebp - 0x3a9b8], 0
mov dword [ebp - 0x3a9b4], 0
mov dword [ebp - 0x3a9b0], 0
mov dword [ebp - 0x3a9ac], 0
mov dword [ebp - 0x3a9a8], 0
mov dword [ebp - 0x3a9a4], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040664c
mov esp, ebp
pop ebp
ret
Function at 0x406f37
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406f76
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406f76
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406f76
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406f76
cmp dword [ecx + 0x74], 0xe
jbe 0x406f76
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40bc90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40bcbc
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 edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x40bce4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x40bcea
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x40bd52
jg 0x40bd01
test esi, esi
je 0x40bd52
test ecx, ecx
jl 0x40bd4d
jg 0x40bd0b
test eax, eax
je 0x40bd4d
cmp edi, ecx
jg 0x40bd1f
jl 0x40bd15
cmp esi, eax
jae 0x40bd1f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x40bd55
mov ecx, dword [ebp + 8]
jmp 0x40bd5f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x40bd79
jg 0x40bd5f
test esi, esi
je 0x40bd79
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x40bd79
push eax
push esi
push 1
push ecx
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 [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40bd90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x40bdbc
jl 0x40bdb0
test ecx, ecx
jne 0x40bdbc
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x40bdd5
push eax
push ecx
push esi
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 esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x40be1d
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x40be23
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x40be23
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x40be96
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40be4c
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 [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x40be84
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x40be96
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x40be60
test edi, edi
je 0x40be96
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
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