joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55abea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x615000]
jne 0x55abf4
repz ret
jmp fcn.0056526b

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x55dbc2
call fcn.0056265b
mov dword [eax], esi
call fcn.00562648
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0055b6fd
add esp, 0x14
push 0x16
pop eax
jmp 0x55dc17
test dword [ebp + 0xc], 0xfffffff9
jne 0x55db9e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x55dbef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0056266e
pop ecx
call fcn.00562648
mov eax, dword [eax]
jmp 0x55dc17
test al, 0x10
jne 0x55dc15
test al, 1
je 0x55dc15
test byte [ebp + 0xc], 2
je 0x55dc15
call fcn.0056265b
mov dword [eax], 5
call fcn.00562648
mov dword [eax], 0xd
jmp 0x55dbe6
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x5659bc
call fcn.0056265b
mov dword [eax], esi
call fcn.00562648
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0055b6fd
add esp, 0x14
push 0x16
pop eax
jmp 0x565a11
test dword [ebp + 0xc], 0xfffffff9
jne 0x565998
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5659e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0056266e
pop ecx
call fcn.00562648
mov eax, dword [eax]
jmp 0x565a11
test al, 0x10
jne 0x565a0f
test al, 1
je 0x565a0f
test byte [ebp + 0xc], 2
je 0x565a0f
call fcn.0056265b
mov dword [eax], 5
call fcn.00562648
mov dword [eax], 0xd
jmp 0x5659e0
xor eax, eax
pop esi
pop ebp
ret
Function at 0x576dde
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0056822d
and dword [ebp - 4], 0
cmp dword [0x638c1c], 0
mov ebx, eax
jne 0x576e8f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x576f40
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x58e794
push edi
call esi
test eax, eax
je 0x576f40
push eax
call fcn.005681bb
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x638c1c], eax
call esi
push eax
call fcn.005681bb
mov dword [esp], 0x58e770
push edi
mov dword [0x638c20], eax
call esi
push eax
call fcn.005681bb
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x638c24], eax
call esi
push eax
call fcn.005681bb
pop ecx
mov dword [0x638c2c], eax
test eax, eax
je 0x576e8f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.005681bb
pop ecx
mov dword [0x638c28], eax
mov eax, dword [0x638c28]
cmp eax, ebx
je 0x576ee7
cmp dword [0x638c2c], ebx
je 0x576ee7
push eax
call fcn.00568236
push dword [0x638c2c]
mov esi, eax
call fcn.00568236
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x576ee7
test edi, edi
je 0x576ee7
call esi
test eax, eax
je 0x576ede
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x576ede
test byte [ebp - 0xc], 1
jne 0x576ee7
or dword [ebp + 0x10], 0x200000
jmp 0x576f20
mov eax, dword [0x638c20]
cmp eax, ebx
je 0x576f20
push eax
call fcn.00568236
pop ecx
test eax, eax
je 0x576f20
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x576f20
mov eax, dword [0x638c24]
cmp eax, ebx
je 0x576f20
push eax
call fcn.00568236
pop ecx
test eax, eax
je 0x576f20
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x638c1c]
call fcn.00568236
pop ecx
test eax, eax
je 0x576f40
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x576f42
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41e540
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x41e562
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41e569
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41e558
mov eax, 1
add ebx, ebx
jne 0x41e57b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41e570
jne 0x41e58c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41e570
xor ecx, ecx
sub eax, 3
jb 0x41e5a0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41e612
mov ebp, eax
add ebx, ebx
jne 0x41e5ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41e5b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41e5dc
inc ecx
add ebx, ebx
jne 0x41e5c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41e5bd
jne 0x41e5d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41e5bd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41e5fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41e5ed
jmp 0x41e55e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41e5fc
add edi, ecx
jmp 0x41e55e
pop esi
mov edi, esi
mov ecx, 3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41e61a
cmp byte [edi], 1
jne 0x41e61a
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 0x41e61f
lea edi, [esi + 0x1c000]
mov eax, dword [edi]
or eax, eax
je 0x41e697
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x25028]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x25064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41e64c
mov ecx, edi
jns 0x41e67b
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 + 0x25068]
or eax, eax
je 0x41e691
mov dword [ebx], eax
add ebx, 4
jmp 0x41e669
call dword [esi + 0x25078]
mov ebp, dword [esi + 0x2506c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1cf]
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 0x41e6cb
sub esp, 0xffffff80
jmp 0x401158
Function at 0x6eb5c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1e5000]
push edi
jmp 0x6eb5da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6eb5e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6eb5d0
mov eax, 1
add ebx, ebx
jne 0x6eb5f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6eb604
jne 0x6eb623
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6eb623
dec eax
add ebx, ebx
jne 0x6eb610
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6eb5e8
add ebx, ebx
jne 0x6eb61f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6eb675
xor ecx, ecx
sub eax, 3
jb 0x6eb63b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6eb6aa
sar eax, 1
mov ebp, eax
jmp 0x6eb646
add ebx, ebx
jne 0x6eb646
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6eb614
inc ecx
add ebx, ebx
jne 0x6eb654
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6eb614
add ebx, ebx
jne 0x6eb661
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6eb656
jne 0x6eb672
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6eb656
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6eb694
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6eb686
jmp 0x6eb5d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6eb694
add edi, ecx
jmp 0x6eb5d6
pop esi
mov edi, esi
mov ecx, 0x10b7e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6eb6b2
cmp byte [edi], 0x25
jne 0x6eb6b2
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 0x6eb6b7
lea edi, [esi + 0x2df000]
mov eax, dword [edi]
or eax, eax
je 0x6eb72f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x313f00]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3140b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6eb6e4
mov ecx, edi
jns 0x6eb713
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 + 0x3140c0]
or eax, eax
je 0x6eb729
mov dword [ebx], eax
add ebx, 4
jmp 0x6eb701
call dword [esi + 0x3140bc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x6eb760
cmp al, 0xef
ja 0x6eb753
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6eb735
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6eb742
mov ebp, dword [esi + 0x3140c4]
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 0x6eb794
sub esp, 0xffffff80
jmp 0x5bc69c
Function at 0x403270
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x4032e0
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401fc0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219

Function at 0x102aa058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x102aa1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x102aa07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x102aa06a
add dl, dl
jne 0x102aa089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x102aa0dc
xor eax, eax
add dl, dl
jne 0x102aa096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x102aa17d
add dl, dl
jne 0x102aa0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102aa0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102aa0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102aa0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x102aa0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x102aa075
mov eax, 1
add dl, dl
jne 0x102aa0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102aa0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x102aa0e1
sub eax, ebx
mov ebx, 1
jne 0x102aa128
mov ecx, 1
add dl, dl
jne 0x102aa10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x102aa119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x102aa105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x102aa075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x102aa13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x102aa14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x102aa136
cmp eax, 0x7d00
jae 0x102aa16d
cmp eax, 0x500
jb 0x102aa168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x102aa075
cmp eax, 0x7f
ja 0x102aa170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x102aa075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x102aa19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x102aa075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40145b
Capabilities:
Copy file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
pushal
push 0x4060e2
lea eax, [ebp - 0x200]
push eax
call sub.kernel32.dll_lstrcpyA
push 0
push 0x82
push 3
push 0
push 2
push 0x80000000
lea eax, [ebp - 0x200]
push eax
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x4014d8
push 4
push 0x406c2c
push str.Cant_open_File._Search_for_it_
push dword [0x406d44]
call sub.user32.dll_MessageBoxA
cmp eax, 6
jne 0x4014d3
push dword [0x406d44]
push str.Exe_Files
lea eax, [ebp - 0x200]
push eax
call fcn.00401690
cmp eax, 1
jne 0x4014d3
jmp 0x401476
jmp 0x40168d
mov dword [0x406d34], eax
push 0
push dword [0x406d34]
call sub.kernel32.dll_GetFileSize
mov dword [0x406d38], eax
push eax
push 0x42
call sub.kernel32.dll_GlobalAlloc
mov dword [0x406d40], eax
push dword [0x406d40]
call sub.kernel32.dll_GlobalLock
mov dword [0x406d3c], eax
mov ebx, dword [0x406d38]
push 0
push 0x406a9e
push ebx
push dword [0x406d3c]
push dword [0x406d34]
call sub.kernel32.dll_ReadFile
push dword [0x406d34]
call sub.kernel32.dll_CloseHandle
mov byte [ebp - 0x401], 0
mov esi, 0x40620b
add esi, 4
mov ecx, dword [esi]
mov ebx, dword [esi + 4]
push ebx
push dword [0x406d38]
push ecx
lea eax, [esi + ecx*2 + 8]
add eax, ecx
push eax
lea eax, [esi + ecx*2 + 8]
push eax
lea eax, [ecx + esi + 8]
push eax
lea eax, [esi + 8]
push eax
push dword [0x406d3c]
call section..text
pushal
or eax, eax
jne 0x4015a6
cmp dword [esi + ecx*4 + 8], 0
je 0x4015a6
push 4
push 0x406c7c
push str.Cant_find_current_Pattern_r_nTry_next_one_
push dword [0x406d44]
call sub.user32.dll_MessageBoxA
cmp eax, 6
jne 0x40159e
jmp 0x4015b2
popal
jmp 0x401677
cmp eax, 1
jne 0x4015b2
mov byte [ebp - 0x401], 1
popal
lea esi, [esi + ecx*4 + 8]
cmp dword [esi], 0
jne 0x401545
cmp byte [ebp - 0x401], 0
jne 0x4015dc
push str.Nothing_was_patched
push 0x6a
push dword [0x406d44]
call sub.user32.dll_SetDlgItemTextA
jmp 0x401677
push 0
push 0
push 0xf0
push dword [0x406d48]
call sub.user32.dll_SendMessageA
cmp eax, 1
jne 0x401635
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcpyA
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrlenA
mov dword ss:[eax + ebp - 0x404], 0x4b41422e
push 1
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x200]
push eax
call sub.kernel32.dll_CopyFileA
push dword [0x406d38]
push dword [0x406d3c]
lea eax, [ebp - 0x200]
push eax
call fcn.0040109d
or eax, eax
jne 0x401665
push str.Cant_Save_File__Maybe_its_write_protected_
push 0x6a
push dword [0x406d44]
call sub.user32.dll_SetDlgItemTextA
jmp 0x401677
push str.File_saved__Now_test_it_
push 0x6a
push dword [0x406d44]
call sub.user32.dll_SetDlgItemTextA
push dword [0x406d3c]
call sub.kernel32.dll_GlobalUnlock
push dword [0x406d40]
call sub.kernel32.dll_GlobalFree
popal
leave
ret
Function at 0x4017ec
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov eax, dword [0x40dd5c]
not eax
mov dword [0x40dd5c], eax
push eax
push dword [0x406d6c]
test eax, eax
jne 0x401815
push dword [0x40dd54]
call sub.winmm.dll_waveOutRestart
call sub.kernel32.dll_ResumeThread
jmp 0x401825
call sub.kernel32.dll_SuspendThread
push dword [0x40dd54]
call sub.winmm.dll_waveOutPause
pop eax
neg eax
ret

Function at 0x401e46
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x40dd48]
push ebx
cdq
idiv dword [0x40dd44]
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
cmp esi, ebx
mov edi, eax
jne 0x401e68
xor al, al
jmp 0x401fde
movzx eax, byte [esi + 0x128]
or dword [esi + 0x150], 0xffffffff
or dword [esi + 0x14c], 0xffffffff
mov dword [esi + 0x12c], eax
movsx eax, word [esi + 0x24]
mov dword [esi + 0x138], eax
mov eax, dword [esi + 0x158]
cmp eax, ebx
mov dword [esi + 0x140], ebx
mov dword [esi + 0x144], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x134], ebx
mov dword [esi + 0x148], ebx
mov dword [esi + 0x154], ebx
je 0x401ebc
push esi
call eax
pop ecx
movsx eax, word [esi + 0x26]
push eax
push esi
call fcn.00401cc1
add esp, 8
movsx eax, word [esi + 0x14]
imul eax, eax, 0x2b
push edi
mov ecx, eax
mov edi, 0x406de0
mov eax, ebx
rep stosd dword es:[edi], eax
pop edi
xor edx, edx
cmp word [esi + 0x14], bx
jle 0x401f06
push ebp
mov ecx, 0x406de4
mov eax, 0x408500
mov dword [ecx], eax
inc edx
movsx ebp, word [esi + 0x14]
add eax, 0x58
add ecx, 0xac
cmp edx, ebp
jl 0x401ef1
pop ebp
lea eax, [edi + edi*2]
mov dword [0x406d78], esi
mov esi, sub.kernel32.dll_GlobalAlloc
shl eax, 1
push eax
push 0x40
call esi
mov dword [0x4084b4], eax
mov eax, dword [0x40dd48]
mov edi, eax
shl edi, 2
push edi
push 0x40
call esi
or dword [0x40dd34], 0xffffffff
mov dword [0x40dd24], edi
mov edi, 0x40dd20
push 0x20
push edi
push dword [0x40dd54]
mov dword [0x40dd40], eax
mov dword [0x40dd30], 0xc
mov dword [0x40dd20], eax
mov dword [0x40dd28], ebx
mov dword [0x40dd2c], ebx
call sub.winmm.dll_waveOutPrepareHeader
mov eax, dword [0x40dd48]
lea eax, [eax*8 + 0x100]
push eax
push 0x40
call esi
mov dword [0x40dd50], eax
add eax, 0xf
and al, 0xf0
mov dword [0x40dd00], eax
mov dword [0x406d70], ebx
call fcn.00401a97
cmp dword [0x406d70], ebx
jne 0x401f95
push 0x20
push edi
push dword [0x40dd54]
call sub.winmm.dll_waveOutWrite
mov byte [0x406d68], bl
lea eax, [esp + 0x10]
push eax
push 2
push ebx
push 0x401c11
push ebx
push ebx
call sub.kernel32.dll_CreateThread
mov dword [0x406d6c], eax
push 0xf
push dword [0x406d6c]
call sub.kernel32.dll_SetThreadPriority
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x6e353ca7
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 4
xor eax, eax
mov ecx, 0x6e394220
push edi
cmp dword [ecx], edx
je 0x6e353cc6
add ecx, 8
inc eax
cmp ecx, 0x6e394298
jb 0x6e353cb6
shl eax, 3
cmp dword [eax + 0x6e394220], edx
jne 0x6e353cfa
mov edx, dword [eax + str.0_9n_b]
push 0
lea eax, [esp + 8]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [0x6e393ef8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
add esp, 4
ret

Function at 0x6e39a30b
Capabilities:
Encode data using xor

Disassembly:
call 0x6e39a284
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x6e39a2b4
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x6e39a2d0
xor edx, 0
jmp 0x6e39a2db
xor edx, edx
jmp 0x6e39a2f2
jmp 0x6e39a2fe
xor eax, eax
push 0x8427d7c0
call 0x6e39a30b
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x6e39a347
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x6e39a320
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x6e39a35e
add eax, 0
jno 0x6e39a363
add esi, 0
ret 0x10
Function at 0x6e39b0cc
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x6e39b0ee
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x6e39b290
cmp edi, dword [ebp + 0x10]
jb 0x6e39b290
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.6e39abb8
inc edi
jmp 0x6e39b177
jmp 0x6e39b184
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.6e39abb8
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.6e39abb8
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x6e39b1d8
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x6e39b1bc
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.6e39b206
add dword [eax], 0x39
jle 0x6e39b1e2
sub al, 0xf5
mov ch, al
call fcn.6e39b21b
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10

Function at 0x6e39cef3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x6e39cf09
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x6e39cf1a
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.6e39cf5b
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx