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

Disassembly:
mov eax, dword [esp + 4]
mov edx, 1
add eax, 0x8c
jmp 0x410360

Function at 0x413040
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
mov ebx, eax
sub esp, 0x14
test edx, edx
jne 0x410380
mov eax, dword [ebx]
add dword [eax + 0x10], 1
adc dword [eax + 0x14], 0
add esp, 0x14
pop ebx
pop esi
ret
mov esi, dword [fcn.004a1b90]
mov dword [esp], 2
call esi
mov dword [esp + 8], 0x4a9540
mov dword [esp + 4], 0x4a95b4
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4a95ae
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov eax, dword [ebx]
add dword [eax + 0x10], 1
adc dword [eax + 0x14], 0
add esp, 0x14
pop ebx
pop esi
ret
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
add eax, 0x8c
jmp 0x410360

Function at 0x4132c0
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 0x18]
and eax, 1
jne 0x4132f3
mov edx, dword [ebx + 0x8c]
mov ecx, dword [edx + 0xc]
mov esi, dword [edx + 8]
mov edi, ecx
or edi, esi
je 0x413300
mov edi, 1
cmp edi, esi
sbb eax, ecx
jae 0x413370
add esp, 0x20
xor eax, eax
xor edx, edx
pop ebx
pop esi
pop edi
ret
mov dword [esp], 2
mov ebx, dword [fcn.004a1b90]
call ebx
mov dword [esp + 8], 0x4a9540
mov dword [esp + 4], 0x4aa438
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4a95ae
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
add esp, 0x20
xor eax, eax
xor edx, edx
pop ebx
pop esi
pop edi
ret
mov eax, dword [edx + 0x14]
or eax, dword [edx + 0x10]
jne 0x4132f3
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x4132f3
mov eax, dword [ebx]
xor ecx, ecx
call fcn.00410400
mov esi, eax
mov eax, edx
or eax, esi
jne 0x4133b1
mov eax, dword [ebx + 0x8c]
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jmp 0x4132f3
mov dword [esp + 4], edx
mov dword [esp], esi
call fcn.0041d490
mov dword [esp], 2
mov ebx, dword [fcn.004a1b90]
mov edi, eax
call ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x4a9606
mov dword [esp + 4], 0x4aa46c
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x413327
Function at 0x4359b0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [fcn.004a1b90]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov dword [esp], 2
mov ebp, dword [esp + 0x38]
call ebx
mov dword [esp + 8], 0x5390a0
mov dword [esp + 4], 0x5390f3
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5390da
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov edx, dword [esi + 0x24]
xor eax, eax
test edx, edx
sete al
mov dword [esp + 0x34], eax
mov eax, dword [esi]
mov dword [esp + 0x30], eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00413040
Function at 0x466050
Capabilities:
Write file on windows

Disassembly:
push edi
xor edx, edx
xor ecx, ecx
push esi
push ebx
sub esp, 0x30
mov eax, dword [esp + 0x44]
mov dword [esp + 4], 0x200
mov dword [esp], eax
mov eax, dword [esp + 0x40]
call fcn.00464350
mov ebx, eax
mov eax, edx
or eax, ebx
jne 0x466083
add esp, 0x30
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [esp + 0x2c], edx
call fcn.0041d490
mov esi, dword [fcn.004a1b90]
mov dword [esp], 2
mov edi, eax
call esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x5451a0
mov dword [esp + 4], str.__s__Error_while_writing_boot_sector:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5451e4
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov edx, dword [esp + 0x2c]
add esp, 0x30
mov eax, ebx
pop ebx
pop esi
pop edi
ret

Function at 0x466110
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov eax, dword [esp + 0x48]
movzx ebx, byte [esp + 0x50]
mov dword [esp + 4], 0x200
mov edx, dword [esp + 0x4c]
mov ecx, ebx
xor ebx, ebx
shld edx, eax, cl
shl eax, cl
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
mov ecx, edx
mov edx, eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
call fcn.004640d0
mov ebx, eax
mov eax, edx
or eax, ebx
jne 0x466162
add esp, 0x30
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [esp + 0x2c], edx
call fcn.0041d490
mov esi, dword [fcn.004a1b90]
mov dword [esp], 2
mov edi, eax
call esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x5451a0
mov dword [esp + 4], str.__s__Error_while_reading_backup_boot_sector:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5451e4
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov edx, dword [esp + 0x2c]
add esp, 0x30
mov eax, ebx
pop ebx
pop esi
pop edi
ret
Function at 0x468520
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
cmp ecx, 0xb
jbe 0x468534
xor eax, eax
ret
mov dword [esp + 8], 0
mov dword [esp + 4], 1
jmp fcn.00464940

Function at 0x46a3d0
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov ecx, dword [eax + 0xdc]
cmp dword [eax + 0x20], 2
mov ebx, dword [ecx + 0x18]
lea esi, [ebx + 0x41]
je 0x46a3eb
lea esi, [ebx + 0x25]
movzx ecx, byte [esi]
mov edi, ecx
and ecx, 0xfffffffe
or edi, 1
test edx, edx
cmovne ecx, edi
mov byte [esi], cl
mov dword [esp + 4], ebx
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00466050
mov ebx, eax
mov eax, edx
or eax, ebx
jne 0x46a420
add esp, 0x30
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [esp + 0x2c], edx
call fcn.0041d490
mov esi, dword [fcn.004a1b90]
mov dword [esp], 2
mov edi, eax
call esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x546ba0
mov dword [esp + 4], str.__s__Failed_to_write_boot_sector_to_device:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x546bdd
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov edx, dword [esp + 0x2c]
add esp, 0x30
mov eax, ebx
pop ebx
pop esi
pop edi
ret
Function at 0x46b070
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, 1
add eax, 0xdc
jmp 0x46a5d0

Function at 0x46b090
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
mov ebx, eax
sub esp, 0x14
test edx, edx
jne 0x46a5f0
mov eax, dword [ebx]
add dword [eax + 0x10], 1
adc dword [eax + 0x14], 0
add esp, 0x14
pop ebx
pop esi
ret
mov esi, dword [fcn.004a1b90]
mov dword [esp], 2
call esi
mov dword [esp + 8], 0x546be0
mov dword [esp + 4], str.__s__Metadata_inconsistency_detected._Please_run_chkdsk__f_as_soon_as_possible_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x546bdd
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov eax, dword [ebx]
add dword [eax + 0x10], 1
adc dword [eax + 0x14], 0
add esp, 0x14
pop ebx
pop esi
ret
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
add eax, 0xdc
jmp 0x46a5d0

Function at 0x46b3b0
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [esp + 0x30]
test byte [ebx + 0x1c], 1
jne 0x46b3de
mov ecx, dword [ebx + 0xdc]
mov edx, dword [ecx + 0xc]
mov eax, dword [ecx + 8]
mov edi, edx
or edi, eax
je 0x46b3f0
add eax, 1
adc edx, 0
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
add esp, 0x20
xor eax, eax
xor edx, edx
pop ebx
pop esi
pop edi
ret
mov edx, 1
mov eax, ebx
call fcn.0046a3d0
mov esi, eax
mov eax, edx
or eax, esi
jne 0x46b423
mov eax, dword [ebx + 0xdc]
xor edx, edx
mov dword [eax + 8], 1
mov dword [eax + 0xc], 0
add esp, 0x20
xor eax, eax
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], edx
mov dword [esp], esi
call fcn.0041d490
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
mov edi, eax
call ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x546ba0
mov dword [esp + 4], str.__s__Failed_to_set_the_dirty_flag_for_volume:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x546bdd
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
jmp 0x46b3de
Function at 0x4745c0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [fcn.004a1b90]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov dword [esp], 2
mov ebp, dword [esp + 0x38]
call ebx
mov dword [esp + 8], 0x5496cd
mov dword [esp + 4], str.__s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5496ca
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov edx, dword [esi + 0x24]
xor eax, eax
test edx, edx
sete al
mov dword [esp + 0x34], eax
mov eax, dword [esi]
mov dword [esp + 0x30], eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0046b090
Function at 0x477860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, edx
push edi
xor edi, edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x4c
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x68]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0xb8]
test ebx, ebx
je 0x4778be
movzx ecx, cl
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 0x3c], edx
call fcn.00465db0
mov edx, dword [esp + 0x3c]
mov edi, eax
mov eax, dword [ebp + 0xb8]
mov ecx, esi
mov dword [esp + 4], edx
movzx ecx, cl
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.00465db0
mov ebp, eax
mov eax, esi
or al, byte [esp + 0x2c]
je 0x477910
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
movzx edx, bp
mov eax, dword [esp + 0x30]
mov dword [esp], esi
call fcn.00475290
mov ecx, edx
or ecx, eax
jne 0x477907
test ebx, ebx
je 0x477907
cmp bp, di
jne 0x4779a0
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
call ebx
mov dword [esp + 0x14], str.fat_dir_cache_insert
mov dword [esp + 0x10], 0x3c8
mov dword [esp + 0xc], str.dir.c
mov dword [esp + 8], 0x549666
mov dword [esp + 4], str.__s___s:_d___s__Attempted_to_add_empty_name_to_cache.
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5496ca
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
add esp, 0x4c
mov eax, 6
xor edx, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x60], esi
add esp, 0x4c
pop ebx
movzx edx, di
pop esi
pop edi
pop ebp
jmp fcn.00475290
Function at 0x496160
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
mov edi, eax
push esi
mov esi, ecx
push ebx
sub esp, 0x4c
mov ecx, dword [esp + 0x64]
mov ebp, dword [esp + 0x60]
test ecx, ecx
jne 0x495a39
mov edi, dword [edx]
mov eax, dword [esp + 0x68]
mov eax, dword [eax]
test eax, eax
je 0x495ab3
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x3c]
test ebp, ebp
je 0x495a9f
lea eax, [ebp + ebp]
xor ebx, ebx
lea ebp, [esp + 0x3a]
mov dword [esp + 0x2c], eax
jmp 0x495a70
movzx eax, word [eax]
mov word [edx + ebx], ax
add ebx, 2
cmp ebx, dword [esp + 0x2c]
je 0x495a9f
movzx eax, word [esi + ebx]
mov dword [esp + 4], ebp
mov dword [esp], edi
mov word [esp + 0x3a], ax
call fcn.0041c6c0
mov edx, dword [esp + 0x3c]
test eax, eax
jne 0x495a60
movzx eax, word [esp + 0x3a]
mov word [edx + ebx], ax
add ebx, 2
cmp ebx, dword [esp + 0x2c]
jne 0x495a70
mov eax, dword [esp + 0x68]
xor ebx, ebx
mov dword [eax], edx
xor edx, edx
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x3c]
mov dword [esp], 0
mov dword [esp + 8], eax
lea eax, [ebp + ebp]
mov dword [esp + 4], eax
call fcn.00427280
mov ebx, eax
mov eax, edx
or eax, ebx
je 0x495a47
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [esp + 0x2c], edx
call fcn.0041d490
mov esi, dword [fcn.004a1b90]
mov dword [esp], 2
mov edi, eax
call esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x550140
mov dword [esp + 4], str.__s__Failed_to_allocate_space_for_uppercase_string:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x550185
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov edx, dword [esp + 0x2c]
jmp 0x495aa9
push ebx
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], edx
lea edx, [eax + 4]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov eax, dword [eax]
pop ebx
jmp 0x495a20
Function at 0x10059160
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1005934d
pushal
mov esi, section.UPX1
lea edi, [esi - 0x49000]
push edi
or ebp, 0xffffffff
jmp 0x1005918a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10059191
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10059180
mov eax, 1
add ebx, ebx
jne 0x100591a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x100591b4
jne 0x100591d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100591d3
dec eax
add ebx, ebx
jne 0x100591c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x10059198
add ebx, ebx
jne 0x100591cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x10059225
xor ecx, ecx
sub eax, 3
jb 0x100591eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1005925a
sar eax, 1
mov ebp, eax
jmp 0x100591f6
add ebx, ebx
jne 0x100591f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100591c4
inc ecx
add ebx, ebx
jne 0x10059204
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100591c4
add ebx, ebx
jne 0x10059211
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10059206
jne 0x10059222
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10059206
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10059244
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10059236
jmp 0x10059186
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10059244
add edi, ecx
jmp 0x10059186
pop esi
mov edi, esi
mov ecx, 0x7fb
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10059262
cmp byte [edi], 0xa
jne 0x10059262
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 0x10059267
lea edi, [esi + 0x56000]
mov eax, dword [edi]
or eax, eax
je 0x100592df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5a04c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5a0ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10059294
mov ecx, edi
jns 0x100592c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5a0f0]
or eax, eax
je 0x100592d9
mov dword [ebx], eax
add ebx, 4
jmp 0x100592b1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10059310
cmp al, 0xef
ja 0x10059303
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x100592e5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x100592f2
mov ebp, dword [esi + 0x5a0f4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0x10059344
sub esp, 0xffffff80
jmp 0x1001b6df
Function at 0x401690
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x43d00c]
mov edi, ecx
xorps xmm0, xmm0
xor eax, ebp
mov dword [esp + 0x28], eax
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
push 0x4000000
push 2
call fcn.0040e080
add esp, 8
test eax, eax
mov dword [esp + 0xc], eax
je 0x4017a0
mov eax, dword [edi + 4]
xor esi, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov eax, dword [edi + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
mov eax, dword [edi + 0x10]
mov dword [esp + 0x24], eax
jmp 0x401718
test ebx, ebx
jne 0x4017ae
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
test eax, eax
je 0x4017a7
cmp esi, eax
jge 0x40175e
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x18]
jne 0x40175e
push dword [edi + 0xc]
push dword [edi + 4]
push esi
push dword [ebp + 8]
push dword [edi]
call fcn.0040c220
add esp, 0x14
test eax, eax
jle 0x4017e0
add esi, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
call fcn.0040cdf0
add esp, 8
mov ebx, eax
mov eax, dword [esp + 0x20]
cmp eax, dword [edi + 0x10]
jne 0x401710
push dword [ebp + 0xc]
push eax
push 1
push dword [edi + 8]
call fcn.0041f65e
add esp, 0x10
cmp eax, dword [esp + 0x20]
jne 0x4017d9
xor eax, eax
mov dword [esp + 0x20], 0
jmp 0x401710
mov esi, 0x27
jmp 0x4017f1
mov esi, 0x28
jmp 0x4017e5
mov esi, 0x27
cmp ebx, 1
jne 0x4017e5
push dword [ebp + 0xc]
push eax
push 1
push dword [edi + 8]
call fcn.0041f65e
add esp, 0x10
xor ecx, ecx
cmp eax, dword [esp + 0x20]
mov esi, 0x46
cmove esi, ecx
jmp 0x4017e5
mov esi, 0x46
jmp 0x4017e5
mov esi, 6
push dword [esp + 0xc]
call fcn.0040e240
add esp, 4
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.00412fa1
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x403710
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, ecx
push 0x2f
push ecx
call fcn.004157de
add esp, 8
test eax, eax
je 0x403742
mov ecx, edi
mov esi, eax
mov word [eax], 0
call fcn.00403710
mov ebx, eax
test eax, eax
je 0x40374b
mov word [esi], 0x2f
jmp 0x403744
xor ebx, ebx
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
cmp word [edi], 0
je 0x40373b
push edi
call fcn.0041dc2c
add esp, 4
test eax, eax
jns 0x40373b
call fcn.0041a26c
cmp dword [eax], 0x11
je 0x40373b
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x43fa9c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4037a8
call fcn.0041a26c
push dword [eax]
push edi
push str.ensure_parent_dir:_failed_to_create_directory:__S__err:__d
push 0x43f890
call fcn.00410af0
add esp, 0x10
mov ebx, 7
jmp 0x40373b
push 0x43fa9c
call fcn.004127a7
add esp, 4
cmp dword [0x43fa9c], 0xffffffff
jne 0x403787
mov dword [0x43f890], 0
push 0x40a010
call fcn.00412a1c
add esp, 4
push 0x43fa9c
call fcn.004127f9
add esp, 4
jmp 0x403787

Function at 0x404d90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov ecx, dword [0x43d00c]
mov eax, dword [ebp + 8]
xor ecx, ebp
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0x68]
push eax
call fcn.00404f30
add esp, 4
mov edi, dword [esp + 0x68]
test edi, edi
je 0x404eb5
xorps xmm0, xmm0
lea eax, [esp + 0x10]
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x2c], str.winsta0Default
lea ecx, [esp + 0x24]
movaps xmmword [esp + 0x10], xmm0
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test eax, eax
je 0x404eca
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x10]
test ecx, ecx
je 0x404ec1
mov dword [ecx], eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x68], 0
push edi
call fcn.0041276c
add esp, 4
mov ecx, dword [esp + 0x6c]
xor ecx, ebp
call fcn.00412fa1
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x68], 0
xor esi, esi
jmp 0x404ea1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404e86
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0xc]
push 0
push 0
push ecx
push 0x400
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [esp + 0xc]
mov ecx, 0x4385b8
test eax, eax
cmovne ecx, eax
sub esp, 8
mov dword [esp + 4], ecx
call fcn.00405120
add esp, 8
mov eax, dword [esp + 0xc]
test eax, eax
je 0x404e90
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x404e90