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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x10020d29
pop dword [ebp - 0x48]
mov eax, 0x9324c829
add eax, 0x7cdd4500
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x3751c
push 0
mov eax, 0x6bbccd23
sub eax, 0x5bba8bb7
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x9c44bae5
add ecx, 0x63bb82af
xor edi, edi
add edi, eax
mov ebx, 0x8f8ce5d1
add ebx, 0x8076a62f
add ebx, dword [ebp - 0x48]
mov esi, 0x99f7ee6d
add esi, 0x63efd509
xor dword [ebp - 0x18], edi
mov edx, dword [ebx]
sub dword [ebp - 0x38], edx
add edx, esi
mov dword [edi], edx
mov dword [ebp - 4], 0x51029672
add edi, 0x5afea726
add edi, 0xa50158de
add ebx, 4
loop 0x10020d8a
add eax, 0xb37bf002
sub eax, 0xb37b06df
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x1002109f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10034570], 0
push esi
push edi
jne 0x10021015
call fcn.10020f81
test eax, eax
je 0x1002105a
mov eax, dword [0x10034570]
cmp eax, 1
jne 0x10021036
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x1002105a
jmp 0x1002109c
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x1002109c
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1002105e
xor eax, eax
jmp 0x1002109c
mov eax, dword [esi]
push dword [0x10034570]
call edi
mov edi, eax
test edi, edi
je 0x10021080
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x1002109c
lea edi, [esi + 0xff0]
push esi
push dword [0x10034570]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x10021086
mov eax, esi
pop edi
pop esi
ret
jmp 0x10021001

Function at 0x1002140c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10033f20]
jne 0x10021416
repz ret
jmp fcn.10021c9a
Function at 0x4010f3
Capabilities:
Get geographical location

Disassembly:
add esp, 0xffffff9c
push 0x64
lea eax, [esp + 4]
push eax
push 0xf
push 0x400
call sub.KERNEL32.dll_GetLocaleInfoA
mov al, byte [esp]
add esp, 0x64
ret

Function at 0x401ce7
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
call sub.KERNEL32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x401d25
mov ebx, esi
jmp 0x401d17
and eax, 0xff
cmp eax, 0x5c
jne 0x401d16
mov byte [ebx], 0
push 0
push esi
call sub.KERNEL32.dll_CreateDirectoryA
mov byte [ebx], 0x5c
inc ebx
mov al, byte [ebx]
test al, al
jne 0x401cfe
push 0
push esi
call sub.KERNEL32.dll_CreateDirectoryA
pop esi
pop ebx
pop ebp
ret
Function at 0x4020c0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00405935
pop ecx
test eax, eax
jne 0x4020e1
mov eax, dword [ebp + 0xc]
push eax
push ebx
call sub.KERNEL32.dll_SetFileAttributesA
xor eax, eax
pop ebx
pop ebp
ret
or eax, 0xffffffff
pop ebx
pop ebp
ret

Function at 0x4020e8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov eax, dword [ebp + 8]
add eax, 0x41
lea edx, [ebp - 0xc]
push eax
push 0x4066f8
push edx
call fcn.00405c78
add esp, 0xc
lea ecx, [ebp - 0xc]
push ecx
call sub.KERNEL32.dll_GetDriveTypeA
cmp eax, 2
je 0x40211d
cmp eax, 5
je 0x40211d
xor eax, eax
jmp 0x402122
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4021f4
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x407230]
push eax
mov edx, dword [ebp + 8]
push edx
call sub.KERNEL32.dll_SetFileAttributesA
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne al
and eax, 1
pop ebp
ret
Function at 0x404e64
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx]
xor ecx, dword [0x40c054]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 4]
xor edx, dword [0x40c058]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
mov ecx, dword [eax + 0xc]
xor ecx, dword [0x40c060]
xor edx, dword [0x40c05c]
xor ebx, ebx
mov eax, ecx
mov esi, ecx
shr esi, 0x15
shl eax, 0xb
or eax, esi
mov esi, ebx
and esi, 3
add eax, edx
xor eax, dword [esi*4 + 0x40c054]
mov edi, eax
mov esi, eax
shr edi, 8
and esi, 0xff
and edi, 0xff
movzx esi, byte [esi + 0x40bf54]
movzx edi, byte [edi + 0x40bf54]
shl edi, 8
or esi, edi
mov edi, eax
shr edi, 0x10
shr eax, 0x18
and edi, 0xff
and eax, 0xff
movzx edi, byte [edi + 0x40bf54]
movzx eax, byte [eax + 0x40bf54]
shl edi, 0x10
shl eax, 0x18
or esi, edi
or esi, eax
mov eax, edx
xor esi, dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov esi, edx
shr esi, 0xf
shl eax, 0x11
or eax, esi
mov esi, ebx
and esi, 3
xor eax, ecx
inc ebx
add eax, dword [esi*4 + 0x40c054]
mov edi, eax
mov esi, eax
shr edi, 8
and esi, 0xff
and edi, 0xff
movzx esi, byte [esi + 0x40bf54]
movzx edi, byte [edi + 0x40bf54]
shl edi, 8
or esi, edi
mov edi, eax
shr edi, 0x10
shr eax, 0x18
and edi, 0xff
and eax, 0xff
movzx edi, byte [edi + 0x40bf54]
movzx eax, byte [eax + 0x40bf54]
shl edi, 0x10
shl eax, 0x18
or esi, edi
or esi, eax
xor esi, dword [ebp - 8]
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov eax, esi
mov ecx, eax
mov edx, dword [ebp - 0xc]
cmp ebx, 0x20
jl 0x404eaa
mov eax, dword [ebp - 0x10]
xor edx, dword [0x40c054]
mov dword [eax], edx
xor ecx, dword [0x40c058]
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, dword [0x40c05c]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, dword [0x40c060]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040517c
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404fe8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx]
xor ecx, dword [0x40c054]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 4]
xor ecx, dword [0x40c058]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x10]
mov ebx, dword [edx + 8]
mov edx, dword [ebp - 0x10]
xor ebx, dword [0x40c05c]
mov esi, dword [edx + 0xc]
push 0x10
push eax
lea eax, [ebp - 0x20]
xor esi, dword [0x40c060]
push eax
call fcn.00405a8e
add esp, 0xc
mov edx, 0x1f
mov eax, esi
mov ecx, esi
shr ecx, 0x15
shl eax, 0xb
or eax, ecx
mov ecx, edx
and ecx, 3
add eax, ebx
xor eax, dword [ecx*4 + 0x40c054]
mov edi, eax
mov ecx, eax
shr edi, 8
and ecx, 0xff
and edi, 0xff
movzx ecx, byte [ecx + 0x40bf54]
movzx edi, byte [edi + 0x40bf54]
shl edi, 8
or ecx, edi
mov edi, eax
shr edi, 0x10
shr eax, 0x18
and edi, 0xff
and eax, 0xff
movzx edi, byte [edi + 0x40bf54]
movzx eax, byte [eax + 0x40bf54]
shl edi, 0x10
shl eax, 0x18
or ecx, edi
or ecx, eax
mov eax, ebx
xor ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov ecx, ebx
shr ecx, 0xf
shl eax, 0x11
or eax, ecx
mov ecx, edx
and ecx, 3
xor eax, esi
dec edx
add eax, dword [ecx*4 + 0x40c054]
mov edi, eax
mov ecx, eax
shr edi, 8
and ecx, 0xff
and edi, 0xff
movzx ecx, byte [ecx + 0x40bf54]
movzx edi, byte [edi + 0x40bf54]
shl edi, 8
or ecx, edi
mov edi, eax
shr edi, 0x10
shr eax, 0x18
and edi, 0xff
and eax, 0xff
movzx edi, byte [edi + 0x40bf54]
movzx eax, byte [eax + 0x40bf54]
shl edi, 0x10
shl eax, 0x18
or ecx, edi
or ecx, eax
xor ecx, dword [ebp - 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esi
mov eax, ecx
mov esi, eax
mov ebx, dword [ebp - 0xc]
test edx, edx
jge 0x405040
mov eax, dword [ebp - 0x10]
xor ebx, dword [0x40c054]
mov dword [eax], ebx
xor esi, dword [0x40c058]
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, dword [0x40c05c]
mov dword [eax + 8], ecx
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, dword [0x40c060]
mov dword [ecx + 0xc], edx
push eax
call fcn.0040517c
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40517c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ecx, 0x40c054
mov ebx, 0x40bb54
xor edx, edx
mov eax, dword [ebp + 8]
movzx esi, byte [eax]
add edx, 4
mov esi, dword [ebx + esi*4]
xor dword [ecx], esi
movzx esi, byte [eax + 1]
mov esi, dword [ebx + esi*4]
xor dword [ecx + 4], esi
movzx esi, byte [eax + 2]
mov esi, dword [ebx + esi*4]
xor dword [ecx + 8], esi
movzx esi, byte [eax + 3]
add eax, 4
mov esi, dword [ebx + esi*4]
xor dword [ecx + 0xc], esi
cmp edx, 0x10
jl 0x405190
pop esi
pop ebx
pop ebp
ret
Function at 0x405334
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor ecx, ecx
mov ebx, 0x40bb54
mov eax, ecx
xor edx, edx
test al, 1
je 0x405351
mov esi, eax
shr esi, 1
xor esi, 0xedb88320
jmp 0x405355
mov esi, eax
shr esi, 1
mov eax, esi
inc edx
cmp edx, 8
jl 0x405341
mov dword [ebx], eax
inc ecx
add ebx, 4
cmp ecx, 0x100
jl 0x40533d
pop esi
pop ebx
ret

Function at 0x405c09
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryA
test eax, eax
je 0x405c4a
cmp byte [ebp - 0x104], 0x5c
je 0x405c4a
xor edx, edx
mov dl, byte [ebp - 0x104]
push edx
call fcn.004058cf
pop ecx
add eax, 0xffffffc0
mov dword [ebx], eax
jmp 0x405c4e
xor ecx, ecx
mov dword [ebx], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d29e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407cfb
mov dword [ebp - 0x14], eax
cmp dword [0x4ad7b8], esi
jne 0x40d391
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d31e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d471
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d471
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d471
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4ad7b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4ad7bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4ad7c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ad7c8], eax
test eax, eax
je 0x40d38e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ad7c4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d3b6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d3a9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push 4
pop eax
jmp 0x40d473
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push dword [0x4ad7b8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d3b0
mov eax, dword [0x4ad7c4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d429
cmp dword [0x4ad7c8], edi
je 0x40d429
push eax
call ebx
push dword [0x4ad7c8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d429
test eax, eax
je 0x40d429
call ecx
test eax, eax
je 0x40d41e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d41e
test byte [ebp - 8], 1
jne 0x40d429
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d459
mov eax, dword [0x4ad7bc]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
call eax
mov esi, eax
test esi, esi
je 0x40d456
mov eax, dword [0x4ad7c0]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4ad7b8]
call ebx
test eax, eax
je 0x40d471
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d473
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040440e
mov esp, ebp
pop ebp
ret
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x446004]
jne 0x401010
repz ret
jmp fcn.00401460

Function at 0x4082b5
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.004058a1
and dword [ebp - 4], 0
cmp dword [0x448798], 0
mov ebx, eax
jne 0x408366
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408417
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408417
push eax
call fcn.0040582f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x448798], eax
call esi
push eax
call fcn.0040582f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44879c], eax
call esi
push eax
call fcn.0040582f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4487a0], eax
call esi
push eax
call fcn.0040582f
pop ecx
mov dword [0x4487a8], eax
test eax, eax
je 0x408366
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040582f
pop ecx
mov dword [0x4487a4], eax
mov eax, dword [0x4487a4]
cmp eax, ebx
je 0x4083be
cmp dword [0x4487a8], ebx
je 0x4083be
push eax
call fcn.004058aa
push dword [0x4487a8]
mov esi, eax
call fcn.004058aa
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4083be
test edi, edi
je 0x4083be
call esi
test eax, eax
je 0x4083b5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4083b5
test byte [ebp - 0xc], 1
jne 0x4083be
or dword [ebp + 0x10], 0x200000
jmp 0x4083f7
mov eax, dword [0x44879c]
cmp eax, ebx
je 0x4083f7
push eax
call fcn.004058aa
pop ecx
test eax, eax
je 0x4083f7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4083f7
mov eax, dword [0x4487a0]
cmp eax, ebx
je 0x4083f7
push eax
call fcn.004058aa
pop ecx
test eax, eax
je 0x4083f7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x448798]
call fcn.004058aa
pop ecx
test eax, eax
je 0x408417
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408419
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x494810
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [0x53a7f0]
push esi
test eax, eax
je 0x49487a
call fcn.004948e0
mov esi, eax
test esi, esi
je 0x49487a
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x5156b8
push esi
call fcn.004af457
mov esi, eax
add esp, 8
test esi, esi
je 0x49487a
call fcn.00494880
mov dword [0x53a330], eax
call fcn.004948c0
push esi
push 1
push 0xbc
push 0x53a330
call fcn.004af2ed
call fcn.004948c0
push esi
call fcn.004af85f
push esi
call fcn.004af270
add esp, 0x18
pop esi
ret

Function at 0x4948c0
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
mov al, cl
mov dl, 0x7b
imul dl
mov dl, byte [ecx + 0x53a330]
xor dl, al
mov byte [ecx + 0x53a330], dl
inc ecx
cmp ecx, 0xbc
jb 0x4948c2
ret

Function at 0x494c50
Capabilities:
Set current directory

Disassembly:
sub esp, 0x400
lea eax, [esp]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x494ca1
push edi
lea edi, [esp + 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
pop edi
test ecx, ecx
jle 0x494c96
mov al, 0x5c
cmp byte [esp + ecx], al
je 0x494c91
dec ecx
test ecx, ecx
jg 0x494c84
jmp 0x494c96
mov byte [esp + ecx], 0
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
add esp, 0x400
ret
Function at 0x498430
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x719d8c]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x498447
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov eax, dword [0x719d8c]
mov ecx, dword [0x719d9c]
push edi
cmp ecx, ebx
je 0x4984a6
push esi
xor esi, esi
mov eax, dword [0x719da8]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp eax, ebx
je 0x49847c
cmp esi, 0x1388
jge 0x49847c
push 0x64
call edi
add esi, 0x64
mov eax, dword [0x719da8]
cmp eax, ebx
jne 0x498464
push 0x64
call edi
mov edx, dword [0x719d9c]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x719d9c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x719d8c]
mov dword [0x719d9c], ebx
pop esi
cmp eax, ebx
je 0x4984b6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [0x719d8c], ebx
mov ecx, 0x386
xor eax, eax
mov edi, 0x718f60
push ebx
rep stosd dword es:[edi], eax
call fcn.004980e0
mov eax, dword [0x719d7c]
add esp, 4
cmp eax, ebx
pop edi
je 0x4984e0
push eax
call fcn.004af270
add esp, 4
mov dword [0x719d7c], ebx
pop ebx
ret
Function at 0x498a70
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [0x719e58]
push ebx
push ebp
push esi
test ecx, ecx
push edi
je 0x498be2
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x498be2
mov esi, dword [esp + 0x18]
cmp esi, 1
jl 0x498be2
mov eax, dword [0x719e5c]
lea edx, [eax + esi]
mov eax, dword [0x719e54]
mov edi, eax
and edi, 0xfffffff
cmp edx, edi
jle 0x498afa
not eax
shr eax, 0x1c
and eax, 1
mov ecx, esi
shl eax, 7
mov bl, al
mov edx, ecx
mov bh, bl
mov edi, ebp
mov eax, ebx
shl eax, 0x10
mov ax, bx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [0x719e54]
mov edx, dword [0x719e5c]
mov ecx, eax
and ecx, 0xfffffff
sub ecx, edx
mov esi, ecx
mov ecx, dword [0x719e58]
mov edi, dword [0x719e5c]
add edi, esi
test eax, 0x10000000
mov dword [0x719e5c], edi
je 0x498baf
test eax, 0x80000000
je 0x498b77
mov eax, esi
push ecx
cdq
and edx, 3
push 1
add eax, edx
mov edx, ebp
mov edi, eax
sar edi, 2
sub edx, edi
push edi
lea ebx, [edx + esi - 1]
push ebx
call fcn.0049a690
add esp, 0x10
xor eax, eax
test edi, edi
jle 0x498b62
mov cl, byte [0x719e64]
mov dl, byte [eax + ebx]
xor dl, cl
mov byte [eax + ebx], dl
mov ecx, dword [0x719e64]
inc ecx
inc eax
cmp eax, edi
mov dword [0x719e64], ecx
jl 0x498b42
push 0x719e60
push esi
push ebp
push ebx
call fcn.00493be0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
push ecx
push 1
push esi
push ebp
call fcn.0049a690
add esp, 0x10
xor eax, eax
test esi, esi
jle 0x498be2
mov dl, byte [0x719e64]
mov bl, byte [eax + ebp]
xor bl, dl
mov byte [eax + ebp], bl
mov edi, dword [0x719e64]
inc edi
inc eax
cmp eax, esi
mov dword [0x719e64], edi
jl 0x498b8a
pop edi
pop esi
pop ebp
pop ebx
ret
push ecx
push 1
push esi
push ebp
call fcn.0049a690
add esp, 0x10
xor eax, eax
test esi, esi
jle 0x498be2
mov cl, byte [0x719e64]
mov bl, byte [eax + ebp]
xor bl, cl
mov byte [eax + ebp], bl
mov edi, dword [0x719e64]
inc edi
inc eax
cmp eax, esi
mov dword [0x719e64], edi
jl 0x498bc2
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x49a960
Capabilities:
Get disk information

Disassembly:
push ecx
mov al, byte [0x515ad4]
push esi
test al, al
push edi
je 0x49a9dc
mov ecx, 6
xor eax, eax
mov edi, 0x721eb0
push ebx
rep stosd dword es:[edi], eax
mov byte [0x515ad4], 0
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov esi, eax
xor ebx, ebx
mov eax, dword [0x515c4c]
mov edx, esi
mov cl, al
mov dword [esp + 0xc], eax
add cl, bl
mov byte [esp + 0xc], cl
mov ecx, ebx
shr edx, cl
test dl, 1
je 0x49a9d5
lea eax, [esp + 0xc]
mov dword [eax], 0x5c2e
nop
nop
mov al, byte [0x7222f1]
mov dl, byte [esp + 0xc]
movsx ecx, al
inc al
mov byte [ecx + 0x721eb0], dl
mov byte [0x7222f1], al
inc ebx
cmp ebx, 0x1a
nop
nop
pop ebx
mov edi, str..data_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x10]
not ecx
dec ecx
mov edx, ecx
or ecx, 0xffffffff
add edx, 0x515ad8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov byte [0x7222f0], 0x2e
mov al, 0x2e
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
push 0x515ad8
mov byte [0x515ad8], al
call fcn.004b0028
add esp, 8
test eax, eax
jne 0x49aa3c
pop edi
mov eax, 0x515ad8
pop esi
pop ecx
ret
mov al, byte [0x7222f1]
xor esi, esi
test al, al
jle 0x49aa76
mov al, byte [esi + 0x721eb0]
push 0
push 0x515ad8
mov byte [0x7222f0], al
mov byte [0x515ad8], al
call fcn.004b0028
add esp, 8
test eax, eax
je 0x49aa33
movsx ecx, byte [0x7222f1]
inc esi
cmp esi, ecx
jl 0x49aa47
pop edi
xor eax, eax
pop esi
pop ecx
ret
Function at 0x49ab00
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
sub esp, 0x44
push edi
mov ecx, 0x40
or eax, 0xffffffff
mov edi, 0x7222f4
xor edx, edx
mov byte [esp + 4], 0x21
rep stosd dword es:[edi], eax
mov byte [esp + 5], 0x25
mov byte [esp + 6], 0x27
mov byte [esp + 7], 0x28
mov byte [esp + 8], 0x29
mov byte [esp + 9], 0x2b
mov byte [esp + 0xa], 0x2c
mov byte [esp + 0xb], 0x2d
mov byte [esp + 0xc], 0x2e
mov byte [esp + 0xd], 0x30
mov byte [esp + 0xe], 0x31
mov byte [esp + 0xf], 0x32
mov byte [esp + 0x10], 0x33
mov byte [esp + 0x11], 0x34
mov byte [esp + 0x12], 0x35
mov byte [esp + 0x13], 0x36
mov byte [esp + 0x14], 0x37
mov byte [esp + 0x15], 0x38
mov byte [esp + 0x16], 0x39
mov byte [esp + 0x17], 0x3a
mov byte [esp + 0x18], 0x3f
mov byte [esp + 0x19], 0x41
mov byte [esp + 0x1a], 0x42
mov byte [esp + 0x1b], 0x43
mov byte [esp + 0x1c], 0x44
mov byte [esp + 0x1d], 0x45
mov byte [esp + 0x1e], 0x46
mov byte [esp + 0x1f], 0x47
mov byte [esp + 0x20], 0x48
mov byte [esp + 0x21], 0x49
mov byte [esp + 0x22], 0x4a
mov byte [esp + 0x23], 0x4b
mov byte [esp + 0x24], 0x4c
mov byte [esp + 0x25], 0x4d
mov byte [esp + 0x26], 0x4e
mov byte [esp + 0x27], 0x4f
mov byte [esp + 0x28], 0x50
mov byte [esp + 0x29], 0x51
mov byte [esp + 0x2a], 0x52
mov byte [esp + 0x2b], 0x53
mov byte [esp + 0x2c], 0x54
mov byte [esp + 0x2d], 0x55
mov byte [esp + 0x2e], 0x56
mov byte [esp + 0x2f], 0x57
mov byte [esp + 0x30], 0x58
mov byte [esp + 0x31], 0x59
mov byte [esp + 0x32], 0x5a
mov byte [esp + 0x33], 0xc0
mov byte [esp + 0x34], 0xc1
mov byte [esp + 0x35], 0xc4
mov byte [esp + 0x36], 0xc5
mov byte [esp + 0x37], 0xc6
mov byte [esp + 0x38], 0xc8
mov byte [esp + 0x39], 0xc9
mov byte [esp + 0x3a], 0xca
mov byte [esp + 0x3b], 0xcd
mov byte [esp + 0x3c], 0xce
mov byte [esp + 0x3d], 0xcf
mov byte [esp + 0x3e], 0xd3
mov byte [esp + 0x3f], 0xd4
mov byte [esp + 0x40], 0xd6
mov byte [esp + 0x41], 0xd9
mov byte [esp + 0x42], 0xda
mov byte [esp + 0x43], 0xdc
mov byte [esp + 0x44], dl
xor eax, eax
mov cl, 0x21
pop edi
and ecx, 0xff
mov byte [ecx + 0x7222f4], al
mov cl, byte [esp + eax + 1]
inc eax
cmp cl, dl
jne 0x49ac5e
mov byte [0x7223f4], dl
add esp, 0x44
ret