joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43228a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push 0
mov ebx, eax
push 0x23
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x4322b4
xor al, al
jmp 0x432335
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4322bd
sub eax, edx
cmp eax, 0xf8
jae 0x4322ad
lea eax, [ebp - 0x104]
mov edx, ebx
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4322d9
push esi
push edi
mov edi, ebx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4322e8
mov eax, 0x45f79c
mov esi, eax
movsw word es:[edi], word [esi]
mov edi, ebx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4322fc
mov esi, 0x45ed08
movsd dword es:[edi], dword [esi]
cmp byte [ebp + 8], cl
je 0x432331
mov edi, ebx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x432312
mov esi, eax
dec ebx
movsw word es:[edi], word [esi]
mov edi, ebx
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x432321
mov esi, str.cache
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop edi
mov al, 1
pop esi
pop ebx
leave
ret
Function at 0x43bef7
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0x10]
call fcn.00448cec
pop ecx
pop ecx
test eax, eax
jne 0x43c066
push 0x200
call fcn.00445c23
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x43bf2c
push ebx
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 8]
sub eax, ecx
inc eax
call fcn.0043c2ec
mov ebx, eax
mov edi, ebx
mov dword [ebp - 0xc], ebx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x43bf4b
mov ecx, dword [ebp + 0x14]
push esi
mov esi, 0x45f79c
movsw word es:[edi], word [esi]
mov edx, ecx
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43bf60
sub ecx, edx
mov edi, ebx
mov esi, edx
mov edx, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x43bf70
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x17c]
mov ecx, edx
push eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x43c04e
mov dword [ebp - 4], 0x200
mov dword [ebp + 0x14], 0x80
lea eax, [ebp - 0x150]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43bfb7
push dword [ebp + 0x10]
mov edi, dword [ebp + 8]
sub eax, edx
inc eax
call fcn.0043c2ec
mov ebx, eax
mov edi, ebx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x43bfd1
mov esi, 0x45f79c
lea eax, [ebp - 0x150]
movsw word es:[edi], word [esi]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x43bfe8
mov edi, ebx
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x43bff6
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp dword [ebp + 0x14], 2
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0xc]
jae 0x43c032
add dword [ebp - 4], 0x200
push dword [ebp - 4]
sub dword [ebp + 0x14], 0xffffff80
push dword [esi]
call fcn.00446626
pop ecx
pop ecx
test eax, eax
je 0x43c06c
mov dword [esi], eax
mov eax, dword [esi]
mov dword [eax], ebx
lea eax, [ebp - 0x17c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x43bfae
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
call fcn.0043c425
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop edi
pop ebx
xor eax, eax
leave
ret 0x10
mov eax, dword [esi]
test eax, eax
je 0x43c079
push eax
call fcn.00446598
pop ecx
and dword [esi], 0
jmp 0x43c063
Function at 0x43c755
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
and dword [ebp - 8], 0
push esi
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 8]
mov byte [ebp - 1], 1
call fcn.00448cec
pop ecx
pop ecx
test eax, eax
jne 0x43c7a5
push 0x4609fc
push dword [ebp + 8]
call fcn.004471be
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x43c7ac
push dword [ebp + 8]
push str.ERROR:_Unable_to_open__s_for_reading_n
call fcn.004491df
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
test eax, eax
je 0x43c7a5
and dword [eax], 0
xor al, al
pop esi
leave
ret 8
mov eax, dword [ebp - 0x2c]
inc eax
push eax
call fcn.00445c23
pop ecx
mov dword [edi], eax
test eax, eax
je 0x43c7a5
mov ecx, dword [ebp - 0x2c]
mov byte [eax + ecx], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
test ecx, ecx
je 0x43c7d3
mov dword [ecx], eax
test eax, eax
jbe 0x43c83a
sub eax, dword [ebp - 8]
mov esi, eax
cmp esi, 0x8000
jbe 0x43c7e9
mov esi, 0x8000
push dword [ebp - 0x10]
push esi
push 1
push dword [ebp - 0xc]
call fcn.00447475
add esp, 0x10
cmp eax, esi
jne 0x43c80e
add dword [ebp - 8], eax
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 8], eax
jb 0x43c7d7
jmp 0x43c83a
push dword [ebp + 8]
push dword [ebp - 8]
push esi
push str.Unable_to_read__li_bytes_at_offset__li_from_file__s_n
call fcn.004491df
push dword [edi]
call fcn.00446598
mov eax, dword [ebp + 0xc]
and dword [edi], 0
add esp, 0x14
test eax, eax
je 0x43c836
and dword [eax], 0
mov byte [ebp - 1], 0
push dword [ebp - 0x10]
call fcn.0044793f
mov al, byte [ebp - 1]
pop ecx
jmp 0x43c7a7
Function at 0x43dc8e
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
push 0x40
pop eax
cmp dword [ebp + 0x10], eax
jbe 0x43dca5
mov dword [ebp + 0x10], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], ebx
cmp dword [ebp + 0x14], ebx
je 0x43dcfe
push dword [0x47752c]
call fcn.0043d96d
pop ecx
push ebx
push 1
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
push dword [ebp + 0x14]
call fcn.0043de34
add esp, 0x18
push dword [0x47752c]
test al, al
je 0x43dda5
call fcn.0043d981
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
jmp 0x43dd1b
mov eax, dword [0x47752c]
mov esi, 0x4779cc
mov dword [esp + 0xc], eax
mov edi, 0x477530
jmp 0x43dd1c
push dword [ebp + 0x14]
call fcn.0043d9a9
pop ecx
mov eax, dword [ebp + 0x10]
cmp dword [esi], eax
jae 0x43dd13
push dword [esp + 0xc]
call fcn.0043d96d
pop ecx
push ebx
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push ebx
call fcn.004463e3
mov ecx, dword [esi]
mov dword [esp + 0x28], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x18
mov dword [edi + ecx*4], eax
mov eax, dword [esi]
cmp dword [edi + eax*4], 0xffffffff
jne 0x43dd80
push 0x32
call ebx
xor eax, eax
push eax
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call fcn.004463e3
mov ecx, dword [esi]
add esp, 0x18
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 5
mov dword [edi + ecx*4], eax
jl 0x43dd4f
mov eax, dword [esi]
cmp dword [edi + eax*4], 0xffffffff
jne 0x43dd90
dec eax
mov dword [esi], eax
or eax, 0xffffffff
jmp 0x43ddad
push 0
call ebx
mov eax, dword [esi]
push dword [edi + eax*4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
inc dword [esi]
push dword [esp + 0xc]
call fcn.0043d981
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43e698
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43e6ac
sub eax, edx
cmp eax, 0x104
jae 0x43e82f
lea eax, [ebp - 0x3c]
push eax
push esi
call fcn.00448cec
pop ecx
pop ecx
test eax, eax
jne 0x43e6e0
test dword [ebp - 0x36], 0x4000
je 0x43e6e0
mov al, 1
jmp 0x43e831
lea edx, [ebp - 0x144]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x43e6ea
push 0x5c
pop ebx
lea eax, [ebp - 0x144]
push ebx
push eax
call fcn.00445d90
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x43e7f9
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43e713
sub eax, edx
cmp eax, 3
jbe 0x43e754
cmp byte [esi + 1], bl
jne 0x43e754
push ebx
add esi, 2
push esi
call fcn.00445d90
pop ecx
pop ecx
test eax, eax
je 0x43e7f9
inc eax
push ebx
push eax
call fcn.00445d90
pop ecx
pop ecx
test eax, eax
je 0x43e7f9
push ebx
inc eax
push eax
jmp 0x43e7ec
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43e759
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x144]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x43e76d
sub eax, ecx
cmp edi, eax
je 0x43e7f5
mov al, byte [esi - 1]
cmp al, 0x3a
je 0x43e7e9
cmp al, bl
jne 0x43e7f5
jmp 0x43e7e9
lea eax, [ebp - 0x144]
mov byte [esi], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43e793
sub eax, edx
je 0x43e7e7
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.00448cec
pop ecx
pop ecx
test eax, eax
jne 0x43e7d6
test dword [ebp - 0x36], 0x4000
jne 0x43e7e7
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 8]
push str.Cant_create_dir__s:_non_dir__s_in_the_way
call fcn.004491df
add esp, 0xc
jmp 0x43e82f
lea eax, [ebp - 0x144]
push eax
call fcn.0044894a
pop ecx
test eax, eax
jne 0x43e836
mov byte [esi], bl
push ebx
inc esi
push esi
call fcn.00445d90
pop ecx
mov esi, eax
pop ecx
test esi, esi
jne 0x43e787
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43e80f
test al, 0x10
jne 0x43e6d9
push dword [ebp + 8]
call fcn.0044894a
pop ecx
test eax, eax
je 0x43e6d9
push dword [ebp + 8]
push str.Unable_to_create_dir__s
call fcn.004491df
pop ecx
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x144]
push eax
push str.Cant_create_dir__s:_mkdir_fails
jmp 0x43e828
Function at 0x43e8ca
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x118
push ebx
push esi
push edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x43e8dc
sub eax, ecx
cmp eax, 0x104
jbe 0x43e8f3
xor al, al
jmp 0x43e98d
push dword [ebp + 8]
lea eax, [ebp - 0x118]
call fcn.0043e5bd
pop ecx
lea eax, [ebp - 0x118]
push eax
call fcn.0043e698
pop ecx
test al, al
je 0x43e8ec
xor ebx, ebx
mov byte [ebp - 1], bl
mov edi, str.__s__n
push 0x4631bc
push dword [ebp + 8]
call fcn.004471be
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x43e992
push dword [ebp + 8]
push str.Unable_to_open__s_for_writing__will_try_again_in_1_sec
call fcn.004491df
and dword [ebp - 8], 0
lea esi, [ebp - 8]
call fcn.0043e844
push dword [ebp - 8]
push edi
call fcn.004491df
push dword [ebp - 8]
call fcn.00446598
add esp, 0x14
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x19
jb 0x43e91d
push dword [ebp + 8]
push str.ERROR:_Couldnt_open__s_for_writing_n
call fcn.00446f45
add eax, 0x40
push eax
call fcn.00447492
add esp, 0xc
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov byte [ebp - 1], 1
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], ebx
jbe 0x43ea13
mov esi, dword [ebp + 0x10]
sub esi, ebx
mov eax, 0x8000
cmp esi, eax
jbe 0x43e9b3
mov esi, eax
push dword [ebp - 0xc]
push esi
push 1
push dword [ebp - 8]
call fcn.00448b90
add esp, 0x10
cmp eax, esi
jne 0x43e9d4
add dword [ebp - 8], esi
add ebx, esi
cmp ebx, dword [ebp + 0x10]
jb 0x43e9a3
jmp 0x43ea13
push dword [ebp + 8]
push ebx
push esi
push str.ERROR:_Unable_to_write__li_bytes_at_offset__li_to__s_n
call fcn.00446f45
add eax, 0x40
push eax
call fcn.00447492
and dword [ebp - 8], 0
add esp, 0x14
lea esi, [ebp - 8]
call fcn.0043e844
push dword [ebp - 8]
push edi
call fcn.004491df
push dword [ebp - 8]
call fcn.00446598
add esp, 0xc
mov byte [ebp - 1], 0
push dword [ebp - 0xc]
call fcn.0044793f
pop ecx
jmp 0x43e98a
Function at 0x43ea21
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 1], 1
call fcn.00448cec
pop ecx
pop ecx
test eax, eax
jne 0x43ea93
push 0x4609fc
push dword [ebp + 8]
call fcn.004471be
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x43ea99
push dword [ebp + 8]
push str.ERROR:_Unable_to_open__s_for_reading_n
call fcn.004491df
lea esi, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.0043e844
push dword [ebp - 8]
push str.__s__n
call fcn.004491df
push dword [ebp - 8]
call fcn.00446598
mov eax, dword [ebp + 0xc]
add esp, 0x14
cmp eax, ebx
je 0x43ea93
mov dword [eax], ebx
xor al, al
pop esi
pop ebx
leave
ret
mov dword [edi], ebx
xor esi, esi
push dword [ebp - 0x2c]
call fcn.00445c23
pop ecx
mov dword [edi], eax
cmp eax, ebx
jne 0x43eadc
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x1e
jl 0x43ea9d
cmp dword [edi], ebx
jne 0x43eadc
push dword [ebp + 8]
push str.Cabby:_Unable_to_allocate_memory_to_read__s_to_mem_n
call fcn.00446f45
add eax, 0x40
push eax
call fcn.00447492
add esp, 0xc
jmp 0x43ea93
mov ecx, dword [ebp + 0xc]
mov ebx, dword [edi]
mov eax, dword [ebp - 0x2c]
test ecx, ecx
je 0x43eaea
mov dword [ecx], eax
test eax, eax
jbe 0x43eb82
sub eax, dword [ebp - 8]
mov esi, eax
mov eax, 0x8000
cmp esi, eax
jbe 0x43eb02
mov esi, eax
push dword [ebp - 0xc]
push esi
push 1
push ebx
call fcn.00447475
add esp, 0x10
cmp eax, esi
jne 0x43eb24
add dword [ebp - 8], eax
add ebx, eax
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 8], eax
jb 0x43eaf2
jmp 0x43eb82
push dword [ebp + 8]
push dword [ebp - 8]
push esi
push str.Cabby:_Unable_to_read__li_bytes_at_offset__li_from_file__s_n
call fcn.00446f45
add eax, 0x40
push eax
call fcn.00447492
and dword [ebp - 8], 0
add esp, 0x14
lea esi, [ebp - 8]
call fcn.0043e844
push dword [ebp - 8]
push str.__s__n
call fcn.00446f45
add eax, 0x40
push eax
call fcn.00447492
push dword [ebp - 8]
call fcn.00446598
push edi
call fcn.00446598
mov eax, dword [ebp + 0xc]
add esp, 0x14
test eax, eax
je 0x43eb7e
and dword [eax], 0
mov byte [ebp - 1], 0
push dword [ebp - 0xc]
call fcn.0044793f
mov al, byte [ebp - 1]
pop ecx
jmp 0x43ea95

Function at 0x4403dc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x440423
cmp edx, 0x10
jl 0x44040f
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x4403fc
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x440423
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x44041b
and edx, 3
cmp edx, 3
jne 0x440437
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x44043c
cmp edx, 2
jne 0x440448
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x44044d
cmp edx, 1
jne 0x440453
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x449ccd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4688f8]
jne 0x449cd7
repz ret
jmp fcn.00452c8c

Function at 0x452d92
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00449db7
and dword [ebp - 4], 0
cmp dword [0x476dbc], 0
mov ebx, eax
jne 0x452e43
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x452ef4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x45d8c0
push edi
call esi
test eax, eax
je 0x452ef4
push eax
call fcn.00449d45
mov dword [esp], 0x45d8b0
push edi
mov dword [0x476dbc], eax
call esi
push eax
call fcn.00449d45
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x476dc0], eax
call esi
push eax
call fcn.00449d45
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x476dc4], eax
call esi
push eax
call fcn.00449d45
pop ecx
mov dword [0x476dcc], eax
test eax, eax
je 0x452e43
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00449d45
pop ecx
mov dword [0x476dc8], eax
mov eax, dword [0x476dc8]
cmp eax, ebx
je 0x452e9b
cmp dword [0x476dcc], ebx
je 0x452e9b
push eax
call fcn.00449dc0
push dword [0x476dcc]
mov esi, eax
call fcn.00449dc0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x452e9b
test edi, edi
je 0x452e9b
call esi
test eax, eax
je 0x452e92
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x452e92
test byte [ebp - 0xc], 1
jne 0x452e9b
or dword [ebp + 0x10], 0x200000
jmp 0x452ed4
mov eax, dword [0x476dc0]
cmp eax, ebx
je 0x452ed4
push eax
call fcn.00449dc0
pop ecx
test eax, eax
je 0x452ed4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x452ed4
mov eax, dword [0x476dc4]
cmp eax, ebx
je 0x452ed4
push eax
call fcn.00449dc0
pop ecx
test eax, eax
je 0x452ed4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x476dbc]
call fcn.00449dc0
pop ecx
test eax, eax
je 0x452ef4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x452ef6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x45a5e8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x45a619
call fcn.004491a9
mov dword [eax], esi
call fcn.00449196
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00447fc4
add esp, 0x14
or eax, 0xffffffff
jmp 0x45a654
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45a636
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004491bc
pop ecx
jmp 0x45a614
test byte [ebp + 0xc], 0x80
je 0x45a641
and eax, 0xfffffffe
jmp 0x45a644
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x45a627
xor eax, eax
pop esi
pop ebp
ret
Function at 0x402e41
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or al, 9
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004063a9
xor ebx, ebx
cmp eax, ebx
jne 0x402f24
test byte [ebp + 0x10], 2
je 0x402ea2
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x402f09
lea eax, [ebp - 0x214]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x402ede
test edi, edi
jne 0x402f09
push dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
call fcn.00402e41
test eax, eax
jne 0x402ee7
lea eax, [ebp - 0x214]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402eb7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406931
test eax, eax
jne 0x402f19
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x402f24
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402f24
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x403309
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x403334
mov ecx, dword [0x42a2d8]
push esi
add eax, ecx
push esi
push eax
mov dword [0x420ef4], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403411
cmp eax, esi
jl 0x40340b
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.004060b5
test eax, eax
je 0x4033fb
push dword [ebp + 8]
add dword [0x420ef4], 4
call fcn.00403411
mov ebx, eax
cmp ebx, esi
jl 0x403409
cmp dword [ebp + 0x10], esi
jne 0x4033d7
cmp dword [ebp + 8], esi
jle 0x403409
mov esi, 0x414ef0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x403399
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.004060b5
test eax, eax
je 0x4033fb
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.004060e4
test eax, eax
je 0x4033d3
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x420ef4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x403388
jmp 0x403409
push 0xfffffffffffffffe
jmp 0x4033fd
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4033e2
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403400
push 0xfffffffffffffffd
pop eax
jmp 0x40340b
mov ebx, dword [ebp - 4]
add dword [0x420ef4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x4063d7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne 0x406571
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 0xd2
and byte [ebp - 0x779], 0
add dh, al
test dword [eax + 0x6efffff8], ecx
mov byte [ebp - 0x777], 0x17
mov byte [ebp - 0x776], 0x71
mov byte [ebp - 0x775], 0x7d
mov byte [ebp - 0x774], 0x5f
mov byte [ebp - 0x773], 0x42
mov byte [ebp - 0x772], 0x4a
mov byte [ebp - 0x771], 0x5f
test dword [edi + 0x5ffffff8], ecx
mov byte [ebp - 0x770], 0x4c
mov byte [ebp - 0x76f], 0x40
mov byte [ebp - 0x76e], 0xd
mov byte [ebp - 0x76d], 0x6b
mov byte [ebp - 0x76c], 0x44
mov byte [ebp - 0x76b], 0x41
mov byte [ebp - 0x76a], 0x48
mov byte [ebp - 0x769], 0x5e
mov byte [ebp - 0x768], 0x71
mov byte [ebp - 0x767], 0x6e
mov byte [ebp - 0x766], 0x42
mov byte [ebp - 0x765], 0x40
mov byte [ebp - 0x764], 0x40
mov byte [ebp - 0x763], 0x42
mov byte [ebp - 0x762], 0x43
mov byte [ebp - 0x761], 0xd
mov byte [ebp - 0x760], 0x6b
clc
invalid
jmp [ebx - 0x3a]
test dword [ecx + 0x44fffff8], esp
mov byte [ebp - 0x75e], 0x41
mov byte [ebp - 0x75d], 0x48

Function at 0x40649c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 1
pop eax
test eax, eax
je fcn.00406aa5
lea eax, [ebp - 0x230]
mov byte [ebp - 0x75c], 0x5e
mov byte [ebp - 0x75b], 0x71
mov byte [ebp - 0x75a], 0x7e
mov byte [ebp - 0x759], 0x54
mov byte [ebp - 0x758], 0x5e
mov byte [ebp - 0x757], 0x59
mov byte [ebp - 0x756], 0x48
mov byte [ebp - 0x755], 0x40
mov byte [ebp - 0x754], 0x71
mov byte [ebp - 0x753], 0x5e
mov byte [ebp - 0x752], 0x54
mov byte [ebp - 0x751], 0x40
mov byte [ebp - 0x750], 0x5e
mov byte [ebp - 0x74f], 0x5f
mov byte [ebp - 0x74e], 0x5b
mov byte [ebp - 0x74d], 3
mov byte [ebp - 0x74c], 0x49
mov byte [ebp - 0x74b], 0x41
mov byte [ebp - 0x74a], 0x41
mov byte [ebp - 0x749], 0x2d
lea eax, [ebp - 0x77c]
push eax
call fcn.00404a15
pop ecx
mov al, byte [ebp - 0x12c]
invalid

Function at 0x406a8c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x406aa0
jmp fcn.00406aa5
jmp 0x406398