joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5aff30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x108000]
mov dword [edi + 0x15309c], 0x5d0b542c
push edi
or ebp, 0xffffffff
jmp 0x5aff5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5aff61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5aff50
mov eax, 1
add ebx, ebx
jne 0x5aff73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5aff84
jne 0x5affa3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5affa3
dec eax
add ebx, ebx
jne 0x5aff90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5aff68
add ebx, ebx
jne 0x5aff9f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5afff5
xor ecx, ecx
sub eax, 3
jb 0x5affbb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5b002a
sar eax, 1
mov ebp, eax
jmp 0x5affc6
add ebx, ebx
jne 0x5affc6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5aff94
inc ecx
add ebx, ebx
jne 0x5affd4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5aff94
add ebx, ebx
jne 0x5affe1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5affd6
jne 0x5afff2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5affd6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5b0014
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5b0006
jmp 0x5aff56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5b0014
add edi, ecx
jmp 0x5aff56
pop esi
mov edi, esi
mov ecx, 0xaa10
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5b0032
cmp byte [edi], 0x21
jne 0x5b0032
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 0x5b0037
lea edi, [esi + 0x1ac000]
mov eax, dword [edi]
or eax, eax
je 0x5b00a6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1b5a74]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1b5b64]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5b0064
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1b5b68]
or eax, eax
je 0x5b00a0
mov dword [ebx], eax
add ebx, 4
jmp 0x5b0081
call dword [esi + 0x1b5b78]
mov ebp, dword [esi + 0x1b5b6c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x5b00da
sub esp, 0xffffff80
jmp fcn.00553b10
Function at 0x4059a9
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405c74
test bl, 8
mov dword [ebp - 8], eax
je 0x4059e8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x7a8ac8], eax
jmp 0x405b65
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405a02
test eax, eax
je 0x405b13
test bl, 2
je 0x405b13
mov esi, 0x7a3f28
push edi
push esi
call fcn.00406297
cmp dword [ebp + 8], 0
je 0x405a21
push 0x40a54c
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405a27
push edi
call fcn.00405bb8
cmp word [edi], 0
jne 0x405a37
cmp word [0x7a3f28], 0x5c
jne 0x405a42
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405b08
cmp word [ebp - 0x22c], 0x2e
jne 0x405a8c
cmp word [ebp - 0x22a], 0
je 0x405aeb
cmp word [ebp - 0x22a], 0x2e
jne 0x405a8c
cmp word [ebp - 0x228], 0
je 0x405aeb
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406297
test byte [ebp - 0x258], 0x10
je 0x405ab7
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405aeb
push dword [ebp + 0xc]
push edi
call fcn.004059a9
jmp 0x405aeb
push dword [ebp - 4]
push edi
call fcn.00405961
test eax, eax
jne 0x405ae3
cmp dword [ebp - 4], eax
je 0x405adb
push edi
push 0xfffffffffffffff1
call fcn.004052ff
push 0
push edi
call fcn.0040605d
jmp 0x405aeb
inc dword [0x7a8ac8]
jmp 0x405aeb
push edi
push 0xfffffffffffffff2
call fcn.004052ff
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405a64
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405b13
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405b65
cmp dword [ebp - 8], esi
jne 0x405b27
inc dword [0x7a8ac8]
jmp 0x405b65
push edi
call fcn.004065da
test eax, eax
je 0x405b65
push edi
call fcn.00405b6c
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405961
test eax, eax
jne 0x405b5d
cmp dword [ebp - 4], esi
je 0x405b1f
push edi
push 0xfffffffffffffff1
call fcn.004052ff
push esi
push edi
call fcn.0040605d
jmp 0x405b65
push edi
push 0xffffffffffffffe5
call fcn.004052ff
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x406601
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406625
xor eax, eax
test eax, eax
je 0x406638
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406638
xor ecx, ecx
jmp 0x40663b
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406764
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a65c4], 0
push esi
jne 0x40679b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406775
mov dword [ecx*4 + 0x7a65c0], eax
inc ecx
cmp ecx, 0x100
jl 0x406770
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067cc
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a65c0]
xor eax, esi
inc ecx
dec edx
jne 0x4067ae
pop edi
not eax
pop esi
ret 0xc

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
mov esi, 0x7ec04051
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e3d0
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x69c457c1
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x408e30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x408015
lea edi, [esi - 0x7015]
push edi
or ebp, 0xffffffff
jmp 0x408e52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x408e59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x408e48
mov eax, 1
add ebx, ebx
jne 0x408e6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x408e60
jne 0x408e7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408e60
xor ecx, ecx
sub eax, 3
jb 0x408e90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408f02
mov ebp, eax
add ebx, ebx
jne 0x408e9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x408ea8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x408ecc
inc ecx
add ebx, ebx
jne 0x408eb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x408ead
jne 0x408ec9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408ead
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x408eec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x408edd
jmp 0x408e4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x408eec
add edi, ecx
jmp 0x408e4e
pop esi
mov edi, esi
mov ecx, 0x8a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x408f0a
cmp byte [edi], 0
jne 0x408f0a
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 eax, ebx
loop 0x408f0f
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x408f7e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8734]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x87ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x408f3c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x87b0]
or eax, eax
je 0x408f78
mov dword [ebx], eax
add ebx, 4
jmp 0x408f59
call dword [esi + 0x87b4]
popal
jmp 0x4011cb
Function at 0x401110
Capabilities:
Write file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
mov eax, 0x203c
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
call fcn.004012a8
lea esi, [ebp - 0x2018]
sub esp, eax
mov eax, dword [ecx]
add ecx, 4
mov dword [ebp - 0x201c], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x2000
mov dword [esp + 8], esi
mov dword [esp], 6
mov dword [esp + 4], 0
call dword [sym.imp.ucrtbase.dll___stdio_common_vsprintf]
test eax, eax
jle 0x4011aa
mov ebx, eax
mov dword [esp], 0xfffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
xor ecx, ecx
push edx
lea edx, [ebp - 0x201c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov eax, dword [ebp - 0x201c]
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret

Function at 0x4011e0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sub.ucrtbase.dll__configure_narrow_argv
call sub.ucrtbase.dll__initialize_narrow_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___argv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_narrow_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.004012e0
mov dword [esp], eax
call 0x401250
jmp dword [sym.imp.ucrtbase.dll_exit]
Function at 0x406400
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42a50b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4046d4
call fcn.00407061
push 4
mov dword [esp + 0x18], 0
call fcn.00407f06
mov edi, eax
add esp, 4
test edi, edi
je 0x406474
push ebx
call fcn.00406f39
mov dword [edi], eax
call fcn.00406cf8
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00407022
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406468
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.0040704a
pop ebx
jmp 0x406476
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408971
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d520]
jne 0x40897b
repz ret
jmp fcn.0040d0cc
Function at 0x411d12
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42d520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b071
and dword [ebp - 0x14], 0
cmp dword [0x430374], 0
mov dword [ebp - 0x18], eax
jne 0x411dc5
push 0x403944
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x411e6d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403938
push ebx
call edi
test eax, eax
je 0x411e6d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403928
push ebx
mov dword [0x430374], eax
call edi
push eax
call esi
push 0x403914
push ebx
mov dword [0x430378], eax
call edi
push eax
call esi
push 0x4038f8
push ebx
mov dword [0x43037c], eax
call edi
push eax
call esi
mov dword [0x430384], eax
test eax, eax
je 0x411dc5
push 0x4038e0
push ebx
call edi
push eax
call esi
mov dword [0x430380], eax
mov eax, dword [0x430380]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x411e1e
cmp dword [0x430384], ecx
je 0x411e1e
push eax
call esi
push dword [0x430384]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x411e1e
test ebx, ebx
je 0x411e1e
call edi
test eax, eax
je 0x411e15
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411e15
test byte [ebp - 8], 1
jne 0x411e1e
or dword [ebp + 0x10], 0x200000
jmp 0x411e51
mov eax, dword [0x430378]
cmp eax, dword [ebp - 0x18]
je 0x411e51
push eax
call esi
test eax, eax
je 0x411e51
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411e51
mov eax, dword [0x43037c]
cmp eax, dword [ebp - 0x18]
je 0x411e51
push eax
call esi
test eax, eax
je 0x411e51
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x430374]
call esi
test eax, eax
je 0x411e6d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x411e6f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408971
leave
ret

Function at 0x429080
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0x80c
cmp dword [0x7b5100], 0x37
jne 0x429118
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push 0
lea eax, [esp + 0x410]
push eax
push 0
push 0x404218
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
inc eax
add byte [edx], ch
Function at 0x429340
Capabilities:
Enumerate files on windows
Manipulate console buffer
Move file
Read .ini file

Disassembly:
mov eax, dword [0x7b5100]
mov ecx, dword [0x435164]
sub esp, 0xc7c
push ebx
push ebp
shr eax, 3
xor ebx, ebx
push esi
push edi
cmp eax, ebx
jbe 0x429554
mov edi, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
jmp 0x429376
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [0x7b5100], 0x1c
jne 0x42938d
lea eax, [esp + 0x38]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov ecx, dword [edi + 4]
mov edx, dword [0x42e700]
mov eax, dword [0x42e704]
mov esi, dword [edi]
mov ebp, dword [0x42e708]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x42e70c]
mov edi, 0xc6ef3720
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], 0x20
jmp 0x4293ca
xor ebx, ebx
mov eax, esi
mov edx, esi
shl eax, 4
shr edx, 5
add edx, dword [esp + 0x30]
add eax, ebp
lea ecx, [edi + esi]
xor eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov dword [0x7b4084], ebx
mov eax, dword [esp + 0x18]
add dword [0x7b4084], eax
mov edx, dword [0x7b4084]
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x28]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
sub dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
shl ecx, 4
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x2c]
add dword [esp + 0x10], eax
cmp dword [0x7b5100], 0x1be
mov eax, dword [esp + 0x14]
lea ebx, [edi + eax]
jne 0x429464
lea edx, [esp + 0x3c]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov eax, dword [esp + 0x14]
shr eax, 5
add eax, dword [esp + 0x34]
cmp dword [0x7b5100], 0x979
mov dword [0x7b4088], 0xff6b3619
mov dword [0x7b408c], 0xffffffff
mov dword [esp + 0x18], eax
jne 0x4294cf
push 0x404110
push 0
lea eax, [esp + 0x490]
push eax
push 0x404188
push 0x4041a8
push 0x404204
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0
lea ecx, [esp + 0x8c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
xor dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
xor dword [esp + 0x10], eax
mov eax, dword [0x7b5100]
sub esi, dword [esp + 0x10]
cmp eax, 0x93
je 0x4294f1
add edi, 0x61c88647
dec dword [esp + 0x20]
jne 0x4293c8
cmp eax, 0x8d4
jne 0x42950d
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], eax
cmp dword [0x7b5100], 0x17
jne 0x429543
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea ecx, [esp + 0x88]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add edi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x1c], edi
jne 0x429370
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc7c
ret
Function at 0x4057ac
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4057fd
xor eax, eax
jmp 0x405824
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405824
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x4057f9
call esi
pop esi
leave
ret 4

Function at 0x40585e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x426730], 0x44
push eax
xor eax, eax
push 0x426730
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40589d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405927
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405d2e
mov edi, eax
cmp edi, 0xffffffff
je 0x405968
test byte [esp + 0x10], 1
push esi
je 0x40594a
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405950
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405959
xor eax, eax
inc eax
jmp 0x40596a
test byte [esp + 0x10], 4
jne 0x405968
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8

Function at 0x40596f
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
invalid

Function at 0x405982
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
ret

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.0040617e
push esi
call fcn.00405bdd
mov edi, eax
test edi, edi
jne 0x405c5b
xor eax, eax
jmp 0x405cb3
push edi
call fcn.00406412
test byte [0x42a258], 0x80
je 0x405c78
mov ax, word [edi]
test ax, ax
je 0x405c57
cmp ax, 0x5c
je 0x405c57
sub edi, esi
sar edi, 1
jmp 0x405c92
call fcn.004064c1
test eax, eax
je 0x405c8c
test byte [eax], 0x10
je 0x405c57
push esi
call fcn.00405b7e
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405c7e
call fcn.00405b32
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4
Function at 0x404cf0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
cmp edi, 1
jle 0x404d0b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x404d0b
mov eax, dword [esi + 0xc]
jmp 0x404d0d
xor eax, eax
mov edx, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push 0
push eax
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [esp + 0xc]
xor ecx, ecx
test eax, eax
setne cl
cmp edi, 3
mov dword [edx], ecx
jl 0x404d43
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x404d43
mov ecx, dword [esi + 0x18]
pop edi
pop esi
mov dword [ecx], eax
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret

Function at 0x404d80
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esp + 0xc]
push 0xffffffffffffffff
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esp + 4]
mov dword [edx], eax
ret