joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a935
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411488
cmp edx, dword [eax]
je 0x40a957
add eax, 8
inc ecx
cmp eax, 0x411518
jl 0x40a948
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411488]
jne 0x40aa85
mov eax, dword [0x491ec0]
cmp eax, 1
je 0x40aa5f
test eax, eax
jne 0x40a988
cmp dword [0x4110b4], 1
je 0x40aa5f
cmp edx, 0xfc
je 0x40aa85
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a9bf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407370
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407460
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40aa02
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407460
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d5b0
push edi
call fcn.0040abe0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407370
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407380
lea eax, [ebp - 0xa0]
push 0x40d590
push eax
call fcn.00407380
push dword [esi + 0x41148c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407380
push pe_overlay
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040bcb8
add esp, 0x2c
pop edi
jmp 0x40aa85
lea eax, [ebp + 8]
lea esi, [esi + 0x41148c]
push 0
push eax
push dword [esi]
call fcn.00407460
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x3578618f
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6ba15de2
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x41f573
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41f5b2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f5b2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f5b2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41f5b2
cmp dword [ecx + 0x74], 0xe
jbe 0x41f5b2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x431790
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4317bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4317bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x390641db
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x628b018e
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x411f60
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x401bd6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x4015b8
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
call fcn.00411e90
cmp ax, 0xffff
jne 0x411fbf
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
push 0x405f4c
push ecx
call edi
push eax
push 0x80000002
jmp 0x411fda
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x24]
push 0x405f4c
push eax
call edi
push eax
push 0x80000001
call fcn.0040388c
mov esi, eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp esi, ebx
jne 0x412051
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaLenBstr]
mov edx, dword [esi]
push eax
lea eax, [ebp - 0x28]
push edx
push eax
call edi
push eax
push 1
push ebx
mov ebx, dword [ebp + 8]
lea edx, [ebp - 0x24]
mov ecx, dword [ebx]
push ecx
push edx
call edi
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.004038d4
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov ecx, dword [ebp - 0x24]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
push ecx
push ebx
call edi
mov edx, dword [ebp - 0x28]
push edx
push esi
call edi
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x24]
push eax
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
mov edx, dword [ebp - 0x18]
push edx
call fcn.00403918
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x41207c
jmp 0x41207b
ret
Function at 0x40cb20
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x7dc
push ebx
push esi
push edi
mov edi, dword [0x4a9ba8]
xor esi, esi
mov ecx, edi
mov dword [esp + 0xc], edi
call fcn.00447220
mov ebx, eax
test ebx, ebx
je 0x40ccf1
mov ecx, dword [0x4a9cc8]
mov dword [ecx], esi
mov edi, edi
mov eax, dword [ecx]
test eax, eax
je 0x40cb64
mov eax, dword [eax]
test eax, eax
je 0x40cb60
mov dword [ecx], eax
jmp 0x40cb6d
xor eax, eax
jmp 0x40cb69
mov eax, dword [ecx + 4]
mov dword [ecx], eax
test eax, eax
je 0x40cb79
test dword [eax + 0x20], 0x80002600
jne 0x40cb50
inc esi
jmp 0x40cb50
push 0xa
push 0x487860
push esi
call fcn.0044e90f
mov edx, 0x487860
add esp, 0xc
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x40cb91
sub edx, ecx
xor ecx, ecx
lea esp, [esp]
mov al, byte [ecx + 0x487860]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x17], al
test al, al
jne 0x40cba0
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x14]
push 0
push eax
lea eax, [edx + 1]
mov byte [esp + edx + 0x24], 0xa
push eax
lea eax, [esp + 0x28]
push eax
push ebx
call ebp
mov eax, dword [0x4a9cc8]
mov dword [eax], 0
jmp 0x40cbe0
mov esi, dword [eax]
test esi, esi
je 0x40cbf4
mov esi, dword [esi]
test esi, esi
je 0x40cbf0
mov dword [eax], esi
jmp 0x40cc01
xor esi, esi
jmp 0x40cbf9
mov esi, dword [eax + 4]
mov dword [eax], esi
test esi, esi
je 0x40cccc
test dword [esi + 0x20], 0x80002600
jne 0x40cbe0
mov ecx, dword [esi + 8]
mov edx, 0x49b320
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x40cc12
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40cc76
cmp byte [eax], 0
je 0x40cc76
mov edi, 0x49b320
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x40cc32
mov ax, word [0x46e050]
mov word [edi], ax
mov edx, dword [esi + 0x10]
mov esi, edx
lea ebx, [ebx]
mov al, byte [edx]
inc edx
test al, al
jne 0x40cc50
mov edi, 0x49b320
sub edx, esi
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40cc60
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, 0x49b320
lea ecx, [edx + 1]
mov edi, edi
mov al, byte [edx]
inc edx
test al, al
jne 0x40cc80
sub edx, ecx
xor eax, eax
jmp 0x40cc90
mov cl, byte [eax + 0x49b320]
lea eax, [eax + 1]
mov byte [esp + eax + 0x403], cl
test cl, cl
jne 0x40cc90
push 0
lea eax, [esp + 0x1c]
mov byte [esp + edx + 0x408], 0xa
push eax
lea eax, [edx + 1]
push eax
lea eax, [esp + 0x410]
push eax
push ebx
call ebp
mov eax, dword [0x4a9cc8]
jmp 0x40cbe0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x10]
mov eax, str.File__s_successfully_created._n
pop ebp
push edi
push eax
call fcn.00412ad0
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x7dc
ret
mov eax, str.Cant_create_file__s._n
push edi
push eax
call fcn.00412ad0
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x7dc
ret
Function at 0x40ce60
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x324
push ebx
push esi
push edi
mov ebx, edx
mov edx, 0x49a800
push ecx
lea ecx, [esp + 0x22c]
call fcn.00446ec0
add esp, 4
lea edx, [esp + 0x228]
lea ecx, [esp + 0x120]
push 0x47dda8
call fcn.00446ec0
lea ecx, [esp + 0x124]
add esp, 4
lea edx, [ecx + 1]
jmp 0x40ceb0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ceb0
sub ecx, edx
mov dword [esp + 0x10], 0x208
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
lea eax, [esp + 0x124]
mov ecx, 0x488df0
push eax
lea edx, [esp + 0x18]
call fcn.004317d0
add esp, 8
test eax, eax
jne 0x40cefe
mov eax, dword [esp + 0x10]
shr eax, 1
xor ecx, ecx
mov word [eax*2 + 0x488df0], cx
mov eax, 0x488df0
jmp 0x40cf03
mov eax, 0x479868
push 0x491b60
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40d042
mov eax, 1
mov dword [0x491848], eax
test esi, esi
je 0x40d042
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40cf49
test byte [0x491b60], 0x10
mov dword [0x491848], 0
je 0x40cf6a
push 0x491b60
push esi
call edi
test eax, eax
je 0x40cf6a
test byte [0x491b60], 0x10
je 0x40cf76
push 0x491b60
push esi
call edi
test eax, eax
jne 0x40cf55
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40d04e
mov edx, 0x491850
mov ecx, 0x491b8c
call fcn.00431750
push 0x491850
lea edx, [esp + 0x22c]
lea ecx, [esp + 0x1c]
call fcn.00446ec0
mov eax, ebx
add esp, 4
sub eax, 0
je 0x40d01b
sub eax, 1
je 0x40cff4
sub eax, 1
jne 0x40d038
mov eax, dword [0x49ac10]
test eax, eax
je 0x40cfcd
push eax
push 0x491850
call fcn.0044e716
add esp, 8
test eax, eax
je 0x40d038
mov ecx, dword [0x49b034]
mov edx, 0x491850
call fcn.0040cdd0
test eax, eax
jne 0x40d038
lea ecx, [esp + 0x18]
call fcn.0042b700
mov eax, dword [0x491848]
jmp 0x40cf32
mov ecx, dword [0x49b038]
mov edx, 0x491850
call fcn.0040cdd0
test eax, eax
jne 0x40d038
lea ecx, [esp + 0x18]
call fcn.00415180
mov eax, dword [0x491848]
jmp 0x40cf32
mov ecx, dword [0x49ac14]
mov edx, 0x491850
call fcn.0040cdd0
test eax, eax
jne 0x40d038
lea ecx, [esp + 0x18]
call fcn.00427ab0
mov eax, dword [0x491848]
jmp 0x40cf32
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x40d04e
call fcn.00412bb0
cmp dword [0x492124], 0
jne 0x40d078
mov ecx, dword [0x492178]
mov edx, 0x46e028
call fcn.00428720
test eax, eax
je 0x40d078
test dword [eax + 0x20], 0x2600
jne 0x40d078
or dword [eax + 0x24], 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411cd0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
push edi
mov esi, edx
call fcn.00447220
mov edi, eax
test edi, edi
je 0x411de6
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 1
jne 0x411d03
push 0
lea eax, [esp + 0x10]
push eax
push 3
push 0x470024
push edi
call ebx
mov eax, dword [0x49b060]
lea edx, [esp + 0x10]
push 0
push edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
push eax
push ecx
push edi
call ebx
mov ecx, dword [0x4a980c]
lea eax, [esp + 0xc]
push 0
push eax
mov eax, dword [0x4a5324]
sub eax, ecx
push eax
push ecx
push edi
call ebx
cmp dword [0x4b03e4], 0
jne 0x411dde
mov ecx, dword [0x4b03f8]
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [0x4a5320]
sub eax, ecx
push eax
push ecx
push edi
call ebx
cmp dword [0x49b074], 0
je 0x411dde
mov ecx, dword [0x4b1560]
lea eax, [esp + 0xc]
push 0
push eax
mov eax, dword [0x4b3a44]
sub eax, ecx
push eax
push ecx
push edi
call ebx
mov esi, dword [0x49b054]
push str._1__n
push dword [esi + 4]
call fcn.00401560
add dword [esi + 4], eax
lea edx, [esp + 0x18]
mov eax, dword [0x49b054]
add esp, 8
mov ecx, dword [esi + 4]
mov eax, dword [eax]
sub ecx, eax
push 0
push edx
push ecx
push eax
push edi
call ebx
mov esi, dword [0x49b064]
push str._1__n
push dword [esi + 4]
call fcn.00401560
add dword [esi + 4], eax
lea edx, [esp + 0x18]
mov eax, dword [0x49b064]
add esp, 8
mov ecx, dword [esi + 4]
mov eax, dword [eax]
sub ecx, eax
push 0
push edx
push ecx
push eax
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
add esp, 8
ret

Function at 0x411df0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [0x49b230]
push ebx
push esi
mov esi, edx
mov ebx, ecx
lea eax, [eax*8 + 0x400]
push eax
push 0
push dword [0x49184c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 8], eax
cmp esi, dword [esp + 0x1c]
jae 0x411e8b
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov al, byte [esi]
mov edx, esi
mov ebp, esi
test al, al
je 0x411e43
mov cl, al
mov al, cl
cmp cl, 0xa
je 0x411e43
mov al, byte [esi + 1]
inc esi
mov cl, al
test al, al
jne 0x411e32
cmp al, 0xa
jne 0x411e48
inc esi
mov eax, esi
sub eax, ebp
cmp byte [esi - 1], 0xa
jne 0x411e73
test eax, eax
jle 0x411e63
push 0
lea ecx, [esp + 0x18]
dec eax
push ecx
push eax
push edx
push ebx
call edi
push 0
lea eax, [esp + 0x1c]
push eax
push 2
push 0x478784
jmp 0x411e7c
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push edx
push ebx
call edi
cmp esi, dword [esp + 0x24]
jb 0x411e26
mov eax, dword [esp + 0x10]
pop edi
pop ebp
push eax
push 0
push dword [0x49184c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x446100
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x408
cmp dword [0x4aa32c], 0
jne 0x44611f
mov ecx, 0x157
add esp, 0x408
jmp fcn.00412bb0
push edi
call fcn.004472b0
mov edi, eax
test edi, edi
je 0x4462fa
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0
push edi
call esi
push 0
push 0
push 0
push edi
mov ebx, eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
push 0
push dword [0x49184c]
call ebp
mov dword [esp + 0x10], eax
test eax, eax
je 0x4462f7
push 0
lea ecx, [esp + 0x18]
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4aa30c], 0
jne 0x44619d
mov ecx, str.unsigned_char_pb_data____
call fcn.00411b50
mov dword [0x4aa30c], 1
xor edi, edi
test ebx, ebx
jle 0x4462db
mov esi, dword [0x4a5320]
lea ecx, [ecx]
cmp dword [0x492148], 0
jle 0x446222
mov eax, dword [0x4aa64c]
add eax, 0xffff0600
cmp esi, eax
jbe 0x446205
mov ecx, dword [0x4b03f8]
sub esi, ecx
lea eax, [esi + 0x1f400]
push eax
jne 0x4461e4
push 0
push dword [0x491954]
call ebp
jmp 0x4461f3
push ecx
push 0
push dword [0x491954]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
add esi, eax
mov dword [0x4b03f8], eax
lea eax, [esi + 0x1f400]
mov dword [0x4aa64c], eax
mov ecx, 0x46eb78
mov al, 0x2c
sub ecx, esi
mov edi, edi
mov byte [esi], al
inc esi
mov al, byte [esi + ecx]
test al, al
jne 0x446210
mov dword [0x4a5320], esi
mov byte [esi], al
push 0xa
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
movzx eax, byte [edi + eax]
push eax
call fcn.0044e90f
inc dword [0x492148]
lea ecx, [esp + 0x24]
add esp, 0xc
call fcn.00411b50
mov esi, dword [0x4a5320]
mov eax, 0x51eb851f
mul edi
mov ecx, edi
shr edx, 6
imul eax, edx, 0xc8
sub ecx, eax
cmp ecx, 0xc7
jne 0x4462d2
mov eax, dword [0x4aa64c]
add eax, 0xffff0600
cmp esi, eax
jbe 0x4462b7
mov ecx, dword [0x4b03f8]
sub esi, ecx
lea eax, [esi + 0x1f400]
push eax
jne 0x446296
push 0
push dword [0x491954]
call ebp
jmp 0x4462a5
push ecx
push 0
push dword [0x491954]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
add esi, eax
mov dword [0x4b03f8], eax
lea eax, [esi + 0x1f400]
mov dword [0x4aa64c], eax
mov ecx, 0x46e078
mov al, 0xa
sub ecx, esi
mov byte [esi], al
inc esi
mov al, byte [ecx + esi]
test al, al
jne 0x4462c0
mov dword [0x4a5320], esi
mov byte [esi], al
inc edi
cmp edi, ebx
jl 0x4461b0
mov ecx, 0x46e078
call fcn.00411b50
push dword [esp + 0x10]
push 0
push dword [0x49184c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x408
ret
Function at 0x446a50
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x1a8
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x20], edx
push 0x47dd70
push esi
mov dword [esp + 0x24], esi
xor ebp, ebp
xor edi, edi
mov byte [esp + 0x30], 0
mov byte [esp + 0x94], 0
call fcn.0045592a
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x446c33
push ebx
lea eax, [esp + 0xf4]
push 0xc8
push eax
call fcn.0044f216
add esp, 0xc
test eax, eax
je 0x446b82
jmp 0x446ab0
lea edx, [esp + 0x14]
lea ecx, [esp + 0xf0]
test edi, edi
jne 0x446ae6
call fcn.00446780
test eax, eax
je 0x446b60
push str.LanguageInfo
push dword [esp + 0x18]
call fcn.0044e716
add esp, 8
test eax, eax
jne 0x446b60
lea edi, [eax + 1]
jmp 0x446b60
lea eax, [esp + 0x18]
push eax
call fcn.004467f0
add esp, 4
test eax, eax
je 0x446b4c
mov esi, dword [esp + 0x14]
push str.Language
push esi
call fcn.0044e716
add esp, 8
test eax, eax
jne 0x446b22
push 0x64
push dword [esp + 0x1c]
lea eax, [esp + 0x30]
push eax
call fcn.0044f4e0
add esp, 0xc
jmp 0x446b60
push str.Application
push esi
call fcn.0044e716
add esp, 8
test eax, eax
jne 0x446b60
push 0x64
push dword [esp + 0x1c]
lea eax, [esp + 0x94]
push eax
call fcn.0044f4e0
add esp, 0xc
jmp 0x446b60
lea edx, [esp + 0x14]
lea ecx, [esp + 0xf0]
call fcn.00446780
test eax, eax
jne 0x446b7e
push ebx
lea eax, [esp + 0xf4]
push 0xc8
push eax
call fcn.0044f216
add esp, 0xc
test eax, eax
jne 0x446ab0
mov esi, dword [esp + 0x1c]
push ebx
call fcn.00455a66
add esp, 4
test edi, edi
je 0x446c33
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x24]
call fcn.0044e716
add esp, 8
test eax, eax
jne 0x446c33
lea eax, [esp + 0x8c]
push eax
push str.PB_Compiler
call fcn.0044e716
add esp, 8
test eax, eax
jne 0x446c33
push eax
push eax
push 3
push eax
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x446c33
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x446c2c
test esi, esi
jle 0x446c2c
lea eax, [esi + 1]
push eax
call fcn.004556ab
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x446c2c
push 0
lea eax, [esp + 0x28]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x446c2c
cmp dword [esp + 0x24], esi
jne 0x446c2c
mov ecx, ebx
mov byte [ebx + esi], 0
call fcn.004468e0
mov ebp, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x446c40
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x248
push ebx
push ebp
push esi
lea esi, [esp + 0xc]
mov ebx, edx
push edi
sub esi, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x446c52
lea edi, [esp + 0x10]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x446c64
mov ax, word [0x47dd9c]
lea ecx, [esp + 0x10]
mov word [edi], ax
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x446c80
sub ecx, edx
lea esi, [esp + 0x10]
add esi, ecx
mov eax, 0x2a
mov word [esi], ax
lea eax, [esp + 0x118]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x446db8
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [esp + 0x144]
sub esi, eax
lea eax, [esp + 0x144]
jmp 0x446cd0
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [esi + eax - 1], cl
test cl, cl
jne 0x446cd0
test byte [esp + 0x118], 0x10
je 0x446d63
mov ecx, 0x47dda0
lea eax, [esp + 0x144]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x446d13
test dl, dl
je 0x446d0f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x446d13
add eax, 2
add ecx, 2
test dl, dl
jne 0x446cf3
xor eax, eax
jmp 0x446d18
sbb eax, eax
or eax, 1
test eax, eax
je 0x446d76
mov ecx, 0x46de44
lea eax, [esp + 0x144]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x446d48
test dl, dl
je 0x446d44
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x446d48
add eax, 2
add ecx, 2
test dl, dl
jne 0x446d28
xor eax, eax
jmp 0x446d4d
sbb eax, eax
or eax, 1
test eax, eax
je 0x446d76
push str.PB_Compiler
mov edx, ebx
lea ecx, [esp + 0x14]
call fcn.00446c40
jmp 0x446d6f
push ecx
mov edx, ebx
lea ecx, [esp + 0x14]
call fcn.00446a50
add esp, 4
test eax, eax
jne 0x446d9f
lea eax, [esp + 0x118]
push eax
push edi
call ebp
test eax, eax
jne 0x446cc4
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x248
ret
push edi
mov esi, 1
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x248
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x248
ret
Function at 0x447020
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x350
push ebx
push ebp
push esi
mov esi, ecx
push edi
test esi, esi
je 0x44720c
cmp byte [esi], 0
je 0x44720c
push 0x104
lea eax, [esp + 0x14]
push esi
push eax
call fcn.0044f4e0
mov ecx, esi
mov byte [esp + 0x120], 0
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x447063
sub ecx, edx
je 0x447095
cmp ecx, 0x104
jge 0x447095
cmp byte [ecx + esi - 1], 0x5c
je 0x447095
lea edi, [esp + 0x10]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x447082
mov ax, word [0x470354]
mov word [edi], ax
push 0x104
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x120]
push eax
call fcn.0044f4e0
add esp, 0xc
mov byte [esp + 0x21c], 0
lea eax, [esp + 0x118]
push 0x47dda8
push eax
push 0x47890c
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.004015a0
add esp, 0x14
lea eax, [esp + 0x220]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x44720c
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x447110
lea eax, [esp + 0x24c]
push eax
lea eax, [esp + 0x11c]
push eax
push 0x47890c
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.004015a0
add esp, 0x14
test byte [esp + 0x220], 0x10
je 0x4471ba
mov ecx, 0x47dda0
lea eax, [esp + 0x24c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x447171
test dl, dl
je 0x44716d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x447171
add eax, 2
add ecx, 2
test dl, dl
jne 0x447151
xor eax, eax
jmp 0x447176
sbb eax, eax
or eax, 1
test eax, eax
je 0x4471cd
mov ecx, 0x46de44
lea eax, [esp + 0x24c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4471a6
test dl, dl
je 0x4471a2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4471a6
add eax, 2
add ecx, 2
test dl, dl
jne 0x447186
xor eax, eax
jmp 0x4471ab
sbb eax, eax
or eax, 1
test eax, eax
je 0x4471cd
lea ecx, [esp + 0x10]
call fcn.00447020
jmp 0x4471cd
push 0x80
lea eax, [esp + 0x14]
push eax
call esi
lea eax, [esp + 0x10]
push eax
call ebp
lea eax, [esp + 0x220]
push eax
push edi
call ebx
test eax, eax
jne 0x447110
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
lea eax, [esp + 0x11c]
push eax
call esi
lea eax, [esp + 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret