joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b090
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
mov eax, dword [0x4a0b3c]
push esi
push edi
mov edi, ecx
test eax, eax
mov dword [esp + 0x10], edi
je 0x45b159
lea esi, [edi + 4]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.0045ccb0
mov esi, dword [esi + 4]
mov ecx, dword [esp + 0x18]
cmp eax, esi
mov dword [esp + 8], eax
je 0x45b0d1
cmp ecx, dword [eax + 0xc]
jl 0x45b0d1
lea eax, [esp + 8]
jmp 0x45b0d9
mov dword [esp + 0xc], esi
lea eax, [esp + 0xc]
mov eax, dword [eax]
mov edx, dword [edi + 8]
cmp eax, edx
jne 0x45b159
mov edx, dword [0x496428]
push ebx
push ebp
and ecx, 0xffff
mov esi, dword [edx + 4]
push 0x48a468
push ecx
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.kernel32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.kernel32.dll_LoadResource]
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
mov ebx, dword [esp + 0x24]
mov cl, bl
mov dl, bl
neg cl
sbb ecx, ecx
and ecx, 4
or ecx, 0x10000
neg dl
sbb edx, edx
push ecx
and edx, 0xfffffff7
add edx, 0xa
push edx
push ebp
push 0
push eax
push 1
call sub.bass.dll_BASS_SampleLoad
mov ecx, dword [esp + 0x20]
push ebx
push ecx
mov ecx, dword [esp + 0x20]
push eax
call fcn.0045b170
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x45eb80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x484dd1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x10], esi
mov byte [esi + 4], al
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov cl, byte [esp + 0xf]
mov dword [esp + 0x1c], ebx
mov byte [esi + 0x14], cl
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dl, byte [esp + 0xf]
mov dword [esi + 0x28], ebx
mov byte [esi + 0x24], dl
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov al, byte [esp + 0xf]
mov cl, byte [esp + 0xf]
push 0x14
mov byte [esp + 0x20], 2
mov byte [esi + 0x34], al
mov byte [esi + 0x35], cl
mov byte [esi + 0x3c], bl
call fcn.004246fe
mov dword [eax + 4], ebx
mov dword [eax + 0x10], 1
mov edx, dword [0x4a0b54]
add esp, 4
cmp edx, ebx
mov ecx, eax
jne 0x45ec1f
mov dword [0x4a0b54], eax
mov dword [eax], ebx
mov edx, dword [0x4a0b54]
xor ecx, ecx
mov dword [edx + 8], ebx
mov edx, dword [0x4a0b50]
inc edx
cmp ecx, ebx
mov dword [0x4a0b50], edx
je 0x45ec39
push ecx
call fcn.004242d0
add esp, 4
mov edi, dword [0x4a0b54]
push 0x14
call fcn.004246fe
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], edi
mov dword [eax + 0x10], ebx
mov dword [esi + 0x38], eax
mov dword [esi + 0x40], ebx
mov dword [eax], eax
mov eax, dword [esi + 0x38]
add esp, 4
mov dword [eax + 8], eax
mov byte [esi + 0x44], bl
mov byte [esi + 0x45], 1
mov dword [esi + 0x48], ebx
mov byte [esi + 0x4c], bl
mov dword [esi + 0x50], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi], 0x48a4ac
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x45ecb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x484e01
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x48a4ac
mov eax, dword [esi + 0x38]
lea edi, [esi + 0x34]
push eax
mov dword [esp + 0x20], 2
mov ecx, dword [eax]
lea eax, [esp + 0x14]
push ecx
push eax
mov ecx, edi
call fcn.0045fc40
mov ecx, dword [edi + 4]
push ecx
call fcn.004242d0
xor ebx, ebx
add esp, 4
mov dword [edi + 4], ebx
mov dword [edi + 0xc], ebx
mov eax, dword [0x4a0b50]
dec eax
mov dword [0x4a0b50], eax
jne 0x45ed2e
mov eax, dword [0x4a0b54]
mov dword [0x4a0b54], ebx
cmp eax, ebx
je 0x45ed2e
push eax
call fcn.004242d0
add esp, 4
mov eax, dword [esi + 0x28]
push eax
mov dword [esp + 0x14], eax
call fcn.004242d0
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov eax, dword [esi + 0x18]
push eax
mov dword [esp + 0x18], eax
call fcn.004242d0
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov eax, dword [esi + 8]
push eax
mov dword [esp + 0x1c], eax
call fcn.004242d0
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x461fc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push ebx
push esi
push edi
lea edi, [ebp - 0x400]
xor ebx, ebx
mov edx, 0xedb88320
mov eax, ebx
mov ecx, 8
xor esi, esi
shr eax, 1
jae 0x461fe8
mov esi, edx
xor eax, esi
dec ecx
jne 0x461fe0
mov dword [edi], eax
add edi, 4
inc bl
jne 0x461fd9
mov ecx, dword [ebp + 0xc]
or eax, 0xffffffff
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x400]
sub ecx, 4
jl 0x462038
xor eax, dword [esi]
add esi, 4
movzx edx, al
shr eax, 8
xor eax, dword [edi + edx*4]
movzx edx, al
shr eax, 8
xor eax, dword [edi + edx*4]
movzx edx, al
shr eax, 8
xor eax, dword [edi + edx*4]
movzx edx, al
shr eax, 8
xor eax, dword [edi + edx*4]
sub ecx, 4
jge 0x46200a
mov edx, dword [ecx*4 + 0x497d80]
and edx, dword [esi]
xor eax, edx
lea esi, [ecx + esi + 4]
jmp dword [ecx*4 + str.Application_transferred_too_many_scanlines]
Function at 0x462500
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x462530
push esi
call fcn.00465980
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x462529
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4625b3
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x46259f
mov eax, dword [esi + 8]
test eax, eax
je 0x462554
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x46259b
cmp eax, 2
je 0x46259f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x462547
cmp eax, 3
je 0x46257a
cmp eax, 1
jne 0x462547
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x462547
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x462547
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.004625e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4625d3
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.004625e0
add esp, 4
pop esi
ret
Function at 0x470e88
Capabilities:
Enumerate pe sections

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x1c
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
lea edx, [eax + eax]
lea edi, [edx + edx]
mov ebx, dword [esp + 0x44]
test esi, esi
je 0x47102e
test ebp, ebp
je 0x47102e
test eax, eax
jle 0x47101f
test ebx, ebx
jle 0x47101f
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x471010
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x471010
xor ecx, ecx
test ebx, ebx
jle 0x471004
lea eax, [edx + edx]
lea edx, [edx + edx - 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp], edi
xor eax, eax
xor edx, edx
mov edi, dword [esp]
test edi, edi
jle 0x470ff3
mov edi, dword [esp + 8]
cmp edi, 0x10
jl 0x470fb9
mov dword [esp + 0x14], edx
mov dword [esp + 4], ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], esi
mov edi, dword [esp + 0x18]
movzx edx, byte [eax + edi]
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov ecx, edi
mov byte [ebp + esi], dl
movzx ebx, byte [eax + ecx + 1]
mov edx, ecx
mov byte [ebp + esi + 1], bl
movzx edx, byte [eax + edx + 2]
mov ebx, ebp
mov byte [ebp + esi + 2], dl
mov edx, ecx
movzx edx, byte [eax + edx + 3]
mov byte [ebp + esi + 4], dl
mov edx, ecx
movzx edx, byte [eax + edx + 4]
mov byte [ebp + esi + 5], dl
mov edx, ecx
movzx edx, byte [eax + edx + 5]
mov byte [ebp + esi + 6], dl
mov edx, ecx
movzx edx, byte [eax + edx + 6]
mov byte [ebp + esi + 8], dl
mov edx, ecx
movzx edx, byte [eax + edx + 7]
mov byte [ebp + esi + 9], dl
mov edx, ecx
movzx edx, byte [eax + edx + 8]
mov ecx, esi
add eax, 9
mov byte [ebx + ecx + 0xa], dl
add ebx, 0xc
mov edx, dword [esp + 0xc]
mov dword [esp + 0x14], ebx
cmp ebx, edx
jle 0x470f25
mov edx, ebx
mov ecx, dword [esp + 4]
mov ebx, dword [esp + 0x44]
mov ebp, esi
mov esi, edi
mov dword [esp + 4], ecx
mov dword [esp + 0x10], ebp
movzx ecx, byte [eax + esi]
mov ebp, dword [esp + 0x10]
mov edi, dword [esp]
mov byte [edx + ebp], cl
movzx ebx, byte [eax + esi + 1]
mov byte [edx + ebp + 1], bl
movzx ecx, byte [eax + esi + 2]
add eax, 3
mov byte [edx + ebp + 2], cl
add edx, 4
cmp edx, edi
jl 0x470fc1
mov ecx, dword [esp + 4]
mov ebx, dword [esp + 0x44]
add esi, dword [esp + 0x34]
inc ecx
add ebp, dword [esp + 0x3c]
cmp ecx, ebx
jl 0x470ef9
xor eax, eax
add esp, 0x1c
pop ebx
pop ebp
pop esi
pop edi
ret 0x18
mov eax, 0xfffffff2
add esp, 0x1c
pop ebx
pop ebp
pop esi
pop edi
ret 0x18
mov eax, 0xfffffffa
add esp, 0x1c
pop ebx
pop ebp
pop esi
pop edi
ret 0x18
mov eax, 0xfffffff8
add esp, 0x1c
pop ebx
pop ebp
pop esi
pop edi
ret 0x18
Function at 0x401e80
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call fcn.00401fd9
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
push dword [eax + 0x44]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, dword [sym.imp.ntdll.dll__wcsicmp]
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [ebp + 8], esi
cmp eax, 3
jl 0x401f01
push str.wxwork
push dword [esi + 4]
call ebx
add esp, 8
test eax, eax
jne 0x401efe
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x4032c4
push dword [esi + 8]
call sub.ntdll.dll_swscanf_s
add esp, 0xc
cmp eax, 1
jne 0x401ef7
push dword [ebp + 8]
call fcn.00401880
test eax, eax
je 0x401eef
xor eax, eax
jmp 0x401f65
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401f65
mov eax, 0xb
jmp 0x401f65
mov eax, dword [ebp - 4]
cmp eax, 4
jl 0x401f62
push str.ie8019
push dword [esi + 4]
call ebx
add esp, 8
test eax, eax
jne 0x401f62
mov edi, dword [sym.imp.USER32.dll_FindWindowExW]
xor ebx, ebx
nop
push 0
push str.IEFrame
push ebx
push 0
call edi
mov ebx, eax
test ebx, ebx
je 0x401f62
xor esi, esi
push 0
push str.Frame_Tab
push esi
push ebx
call edi
mov esi, eax
test esi, esi
je 0x401f20
push 0
push str.TabWindowClass
push 0
push esi
call edi
mov ecx, dword [ebp + 8]
push dword [ecx + 0xc]
push dword [ecx + 8]
push eax
call fcn.00401770
jmp 0x401f34
or eax, 0xffffffff
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x404550
Capabilities:
Delete file
Move file

Disassembly:
push edi
push esi
push ebx
sub esp, 0x40
mov ebx, dword [esp + 0x54]
lea eax, [esp + 0x1c]
mov edi, dword [esp + 0x50]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll__stat
test eax, eax
je 0x4045c0
mov dword [esp + 4], ebx
mov dword [esp], edi
call sub.msvcrt.dll_rename
test eax, eax
mov esi, eax
je 0x4045af
call sub.msvcrt.dll__errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], str.unable_to_rename__s__reason:__s
call fcn.00404b60
mov dword [esp], edi
call sub.msvcrt.dll__unlink
add esp, 0x40
mov eax, esi
pop ebx
pop esi
pop edi
ret
mov dword [esp], ebx
call sub.msvcrt.dll_remove
jmp 0x404572
Function at 0x4108c0
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
test eax, eax
je 0x410940
mov edi, str.default
mov ecx, 8
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x410900
mov eax, dword [0x47e3c4]
test eax, eax
je 0x410930
test ebx, ebx
je 0x4108f6
or byte [ebx + 0x2b], 1
mov dword [ebx + 4], eax
add esp, 0x10
pop ebx
pop esi
pop edi
ret
test ebx, ebx
je 0x410920
and byte [ebx + 0x2b], 0xfe
call fcn.004107c0
test eax, eax
je 0x410929
mov dword [ebx + 4], eax
add esp, 0x10
pop ebx
pop esi
pop edi
ret
call fcn.004107c0
test eax, eax
jne 0x4108f6
xor eax, eax
jmp 0x4108f6
mov eax, dword [0x47e3cc]
mov eax, dword [eax]
jmp 0x4108eb
mov dword [esp], str.GNUTARGET
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4108e2
jmp 0x4108d2
Function at 0x473110
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 4]
movzx ecx, byte [eax]
test byte [ecx + ecx + 0x4a1840], 0x88
mov edx, ecx
je 0x4730d9
cmp byte [eax + 1], 0x3a
je 0x473104
test dl, dl
je 0x473102
lea ecx, [eax + 1]
jmp 0x4730f1
cmp dl, 0x2f
je 0x4730f6
movzx edx, byte [ecx]
add ecx, 1
test dl, dl
je 0x473102
cmp dl, 0x5c
jne 0x4730e2
movzx edx, byte [ecx]
jmp 0x4c6e90
repz ret
movzx edx, byte [eax + 2]
add eax, 2
jmp 0x4730d9
jmp 0x4730c0
Function at 0x474df0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x474e40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x4c
lea eax, [ebp - 0x34]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x474f0b
mov eax, dword [ebp - 0x20]
cmp eax, 4
jne 0x474e91
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0x40
je 0x474e79
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x38]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov dword [ebp - 0x3c], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x40], ecx
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0x40]
cmp ecx, 4
je 0x474e89
cmp ecx, 0x40
je 0x474e89
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00474df0
lea esi, [esi]
lea edi, [edi]
Function at 0x475950
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [sym.imp.msvcrt.dll__osver]
mov ebx, dword [ebp + 0x14]
mov eax, dword [eax]
test ah, 0x80
je 0x475971
mov eax, dword [0x4ba8e0]
test eax, eax
jne 0x475996
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [0x4ba8e0], 0
call sub.msvcrt.dll_fflush
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll__get_osfhandle
lea edx, [ebp - 0x24]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.KERNEL32.dll_GetFileSize
sub esp, 8
cmp eax, 0xffffffff
mov dword [ebp - 0x28], eax
je 0x475af0
mov eax, dword [ebx + 0x10]
mov esi, dword [ebp - 0x20]
mov dword [esp], eax
call sub.msvcrt.dll__get_osfhandle
lea edx, [ebp - 0x1c]
mov dword [esp + 0xc], 1
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.KERNEL32.dll_SetFilePointer
sub esp, 0x10
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
je 0x475b70
mov edi, dword [ebp - 0x24]
cmp dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x20]
jbe 0x475b25
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll__get_osfhandle
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_SetFilePointer
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
sub esp, 0x10
sub edx, dword [ebp - 0x28]
sbb ecx, dword [ebp - 0x24]
cmp ecx, 0
jl 0x475ad4
jle 0x475b07
cmp ecx, 0
mov esi, edx
jl 0x475a7d
jle 0x475b11
mov esi, 0x200
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ecx
mov dword [esp], eax
call sub.msvcrt.dll__get_osfhandle
lea ecx, [ebp - 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0x4ba6e0
mov dword [esp], eax
call sub.KERNEL32.dll_WriteFile
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
sub esp, 0x14
test eax, eax
je 0x475b40
mov eax, dword [ebp - 0x2c]
cmp esi, eax
ja 0x475b40
xor edi, edi
sub edx, eax
sbb ecx, edi
cmp ecx, 0
jge 0x475a65
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll__get_osfhandle
mov dword [esp], eax
call sub.KERNEL32.dll_FlushFileBuffers
sub esp, 4
jmp 0x475971
jmp 0x4bfe10
mov eax, 0xffffffff
jmp 0x47598e
cmp edx, 0
jbe 0x475ad4
jmp 0x475a6b
cmp edx, 0x200
jbe 0x475a7d
lea esi, [esi]
jmp 0x475a78
jb 0x475971
cmp eax, dword [ebp - 0x28]
nop
ja 0x475a26
jmp 0x475971
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll__get_osfhandle
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_SetFilePointer
sub esp, 0x10
jmp 0x475afd
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x475afd
jmp 0x475a17
Function at 0x476e70
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [ebp + 8]
mov dword [esp], edi
call sub.msvcrt.dll_strlen
lea esi, [edi + eax - 6]
cmp edi, esi
ja 0x476f07
lea esi, [esi]
movzx eax, byte [esi]
test al, al
je 0x476f07
cmp al, 0x58
je 0x476ec2
jmp 0x476f20
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.ADVAPI32.DLL_CryptGenRandom
sub esp, 0xc
test eax, eax
je 0x476f20
movzx eax, byte [esi]
cmp al, 0xfb
jbe 0x476f30
mov ebx, dword [0x4ba904]
test ebx, ebx
jne 0x476ea0
mov dword [esp + 0x10], 0xf0000000
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x4ba904
call sub.ADVAPI32.DLL_CryptAcquireContextA
sub esp, 0x14
test eax, eax
je 0x476f11
mov ebx, dword [0x4ba904]
jmp 0x476ea0
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [0x4ba904], 0
jmp 0x476ea0
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
movzx edx, al
lea ecx, [edx*8]
sub ecx, edx
lea edx, [edx + ecx*8]
shr dx, 0xb
lea edx, [edx + edx*8]
shl edx, 2
sub eax, edx
mov edx, eax
lea eax, [edx + 0x30]
cmp al, 0x39
jbe 0x476f61
add edx, 0x57
mov byte [esi], dl
add esi, 1
jmp 0x476e90
mov byte [esi], al
jmp 0x476f59
Function at 0x431003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6c1e59ee
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x431060
nop
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4310d2
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x11c90c95
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4310c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401007
Capabilities:
Delete file
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1038
call fcn.00409970
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
xor ebx, ebx
cmp dword [0x2edda94], 0x594
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], eax
jne 0x401042
push ebx
lea eax, [ebp - 0x838]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [0x807ee8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x807eec]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.00401000
mov eax, dword [0x807ef0]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [0x807ef4]
add esi, 0x23f
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, edi
shl eax, 4
cmp dword [0x2edda94], 0xc
mov dword [ebp - 4], eax
jne 0x4010da
push ebx
lea eax, [ebp - 0x438]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
push ebx
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
xor eax, eax
mov word [ebp - 0x20], ax
lea edi, [ebp - 0x1e]
stosw word es:[edi], ax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x1038]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov eax, dword [0x2edda94]
cmp eax, 0xfa9
jne 0x4010f6
mov dword [0x2edda90], 0xedeb2e40
cmp eax, 0x3eb
jne 0x401111
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [0x2edd444], ebx
mov ecx, dword [ebp - 0xc]
mov edx, edi
lea eax, [esi + edi]
shr edx, cl
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [0x2edda8c], 0xf4ea3dee
add edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor edx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
lea ecx, [esi + eax]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0xc]
shr eax, cl
add eax, dword [ebp - 0x24]
mov ecx, eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
xor dword [ebp - 4], ecx
sub edi, dword [ebp - 4]
add esi, 0x61c88647
dec dword [ebp - 0x1c]
mov dword [ebp - 0x14], edi
jne 0x40107d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax], edi
pop edi
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4