joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424130
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
cmp word [eax + 0x18], 0x20b
je 0x4241c0
mov ecx, dword [eax + 0x74]
lea edx, [eax + 0x78]
cmp ecx, 2
jbe 0x4a4974
movzx esi, word [eax + 6]
mov ebx, dword [edx + 0x10]
movzx edx, word [eax + 0x14]
test esi, esi
lea edx, [eax + edx + 0x18]
je 0x4241d1
xor eax, eax
jmp 0x424180
cmp edi, ecx
jb 0x4a491b
inc eax
add edx, 0x28
cmp esi, eax
je 0x4241d1
cmp ebx, dword [edx + 0xc]
mov ecx, dword [edx + 0x14]
jne 0x424170
test ecx, ecx
mov esi, dword [ebp + 0x18]
je 0x4a48e6
test esi, esi
je 0x42419c
mov edi, dword [ebp + 0x18]
mov dword [edi], eax
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x4241a8
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x14]
lea esp, [ebp - 0xc]
pop ebx
pop esi
add eax, ecx
pop edi
pop ebp
ret
mov ecx, dword [eax + 0x84]
lea edx, [eax + 0x88]
jmp 0x42414d
mov dword [esp], 8
call fcn.004a2290
mov dword [esp], str.PE_file_doesnt_contain_any_resource_section
mov ecx, eax
mov ebx, eax
call fcn.00495130
jmp 0x4a49a9

Function at 0x424530
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [esp + 0x10], ecx
mov edx, dword [ecx + 0x10]
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x14], edx
movzx eax, word [edx + 0x14]
movzx edi, word [edx + 6]
lea esi, [edx + eax + 0x18]
mov dword [esp + 0x18], esi
test edi, edi
je 0x424640
xor ebx, ebx
jmp 0x424573
add esi, 0x28
cmp edi, ebx
je 0x424640
mov dword [esp + 4], ebp
mov dword [esp], esi
call sub.msvcrt.dll_strcmp
mov ecx, ebx
inc ebx
test eax, eax
jne 0x424568
mov eax, dword [esp + 0x14]
xor edx, edx
mov ebp, dword [eax + 0x38]
mov eax, dword [esp + 0x44]
div ebp
test edx, edx
je 0x4245a5
mov eax, dword [esp + 0x44]
add ebp, eax
sub ebp, edx
mov dword [esp + 0x44], ebp
mov eax, dword [esp + 0x44]
and dword [esi + 0x24], 0xfdffffff
cmp edi, ebx
mov dword [esi + 8], eax
jle 0x424630
mov ebp, dword [esp + 0x14]
lea eax, [ecx + ecx*4]
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0x18]
lea esi, [edx + eax*8]
lea eax, [ebp + 0x78]
mov dword [esp + 0x18], eax
lea eax, [ebp + 0x88]
mov dword [esp + 0x1c], eax
lea esi, [esi]
mov eax, dword [esi + 0xc]
xor edx, edx
mov ecx, dword [esi + 8]
mov edi, dword [ebp + 0x38]
add ecx, eax
mov eax, ecx
div edi
test edx, edx
je 0x4245fb
add edi, ecx
sub edi, edx
mov ecx, edi
mov dword [esi + 0x34], ecx
mov eax, dword [esp + 0x10]
add esi, 0x28
cmp dword [eax + 0x14], ebx
jne 0x424627
movsx edx, word [ebp + 0x18]
mov eax, dword [esp + 0x18]
cmp edx, 0x20b
cmove eax, dword [esp + 0x1c]
mov dword [eax + 0x10], ecx
mov eax, dword [esp + 0x10]
mov dword [eax + 0x18], ecx
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jne 0x4245e0
add esp, 0x2c
mov al, 1
pop ebx
pop esi
pop edi
pop ebp
ret 8
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x427530
Capabilities:
Resolve function by parsing pe exports

Disassembly:
movzx eax, word [esp + 8]
movzx edx, word [esp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
jmp fcn.00426a60
Function at 0x429a90
Capabilities:
Get file version info

Disassembly:
sub esp, 0x84c
mov dword [esp + 0x840], esi
lea esi, [esp + 0x30]
mov dword [esp + 0x848], ebp
mov ebp, edx
mov dword [esp + 0x18], ecx
lea edx, [esp + 0x20]
mov ecx, 0x400
mov dword [esp + 0x83c], ebx
movzx ebx, byte [esp + 0x850]
mov dword [esp + 0xc], edx
mov dword [esp + 4], ecx
mov dword [esp + 0x844], edi
mov dword [esp + 8], esi
mov dword [esp], eax
mov word [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
sub esp, 0x10
mov dword [esp], esi
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
sub esp, 8
test eax, eax
jne 0x429b30
xor eax, eax
mov ebx, dword [esp + 0x83c]
mov esi, dword [esp + 0x840]
mov edi, dword [esp + 0x844]
mov ebp, dword [esp + 0x848]
add esp, 0x84c
ret
mov dword [esp], eax
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov edi, eax
je 0x429b03
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x1c]
mov dword [esp], esi
mov dword [esp + 8], edx
xor edx, edx
mov dword [esp + 4], edx
call sub.VERSION.dll_GetFileVersionInfoW
sub esp, 0x10
test eax, eax
jne 0x429b80
xor eax, eax
mov dword [esp], edi
mov byte [esp + 0x18], al
call fcn.00483050
movzx eax, byte [esp + 0x18]
jmp 0x429b05
mov dword [esp], edi
lea eax, [esp + 0x28]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x2c]
mov dword [esp + 8], eax
mov eax, 0x4b5c80
mov dword [esp + 4], eax
call sub.VERSION.dll_VerQueryValueW
sub esp, 0x10
test eax, eax
je 0x429b63
mov edx, dword [esp + 0x2c]
lea eax, [ebx*8]
and eax, 0x7f8
mov ebx, dword [edx + eax + 8]
mov dword [ebp], ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [edx + eax + 0xc]
mov dword [ebx], eax
mov al, 1
jmp 0x429b65

Function at 0x429bd0
Capabilities:
Parse pe header

Disassembly:
sub esp, 8
xor eax, eax
mov dword [esp], ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 4], esi
mov edx, dword [esp + 0xc]
cmp ecx, 0x40
jbe 0x429bfc
movzx ebx, word [edx]
cmp ebx, 0x5a4d
je 0x429c10
cmp ebx, 0x4d5a
je 0x429c10
mov ebx, dword [esp]
mov esi, dword [esp + 4]
add esp, 8
ret
mov eax, dword [edx + 0x3c]
lea esi, [eax + 4]
cmp esi, ecx
jae 0x429c38
cmp byte [edx + eax + 1], 0x45
jne 0x429c38
add edx, eax
cmp ebx, 0x5a4d
je 0x429c40
movzx eax, byte [edx]
mov dl, al
and dl, 0xfd
cmp dl, 0x4c
je 0x429bfc
mov al, 0xbb
jmp 0x429bfc
cmp dword [edx], 0x4550
jne 0x429c2b
mov al, 0x50
jmp 0x429bfc
Function at 0x42a320
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xbc
mov ecx, 0x4b5c84
mov dword [esp + 4], ecx
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], esi
mov dword [esp], eax
call fcn.0044ebb0
mov byte [esp + 0x1f], 0
test eax, eax
je 0x42a391
mov dword [esp + 0xc], eax
mov edx, 1
mov ebx, eax
mov dword [esp + 4], edx
lea esi, [esp + 0x26]
mov eax, 0x8a
mov dword [esp + 8], eax
mov dword [esp], esi
call sub.msvcrt.dll_fread
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0042a260
mov dword [esp], ebx
mov byte [esp + 0x1f], al
call sub.msvcrt.dll_fclose
movzx eax, byte [esp + 0x1f]
mov ebx, dword [esp + 0xb4]
mov esi, dword [esp + 0xb8]
add esp, 0xbc
ret
Function at 0x44d3a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, ecx
sub esp, 0x30
mov ecx, 0xffffffff
mov dword [ebp - 0x14], 0
mov esi, dword [ebp + 0xc]
mov byte [ebp - 0xc], 0
mov dword [esp + 4], ecx
lea ecx, [ebp - 0x14]
movzx eax, word [ebx + 4]
mov dword [esp], eax
call fcn.0044c590
sub esp, 8
test al, al
je 0x44d450
mov byte [ebp - 0xc], 1
cmp esi, 0xffffffff
je 0x44d3e2
add esi, esi
mov dword [esp + 4], esi
lea eax, [ebp - 0x18]
mov dword [esp + 8], eax
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0044c7d0
sub esp, 0xc
test eax, eax
je 0x44d450
mov edx, dword [ebx]
mov esi, dword [ebp - 0x18]
mov dword [esp], eax
mov dword [esp + 0xc], edx
mov edx, 1
mov dword [esp + 8], esi
mov dword [esp + 4], edx
call sub.msvcrt.dll_fwrite
cmp esi, eax
sete al
cmp byte [ebp - 0xb], 0
jne 0x44d458
mov byte [ebp - 0x19], al
mov edx, dword [ebp - 0x14]
mov dword [esp], edx
call fcn.00483050
movzx eax, byte [ebp - 0x19]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 8
xor eax, eax
cmp byte [ebp - 0xb], 0
je 0x44d42b
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 8

Function at 0x44d470
Capabilities:
Write file on windows

Disassembly:
push ebp
xor eax, eax
push edi
push esi
mov esi, ecx
push ebx
xor ecx, ecx
sub esp, 0x2c
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
test edi, edi
jne 0x44d4a0
jmp 0x44d540
cmp edx, 0xa
sete dl
inc eax
movzx edx, dl
add ecx, edx
cmp edi, eax
je 0x44d4a8
movzx edx, word [ebx + eax*2]
test edx, edx
jne 0x44d490
test ecx, ecx
je 0x44d540
lea ebp, [eax + ecx]
lea eax, [ebp + ebp]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov edi, eax
je 0x44d566
test ebp, ebp
je 0x44d510
xor eax, eax
xor edx, edx
jmp 0x44d4e4
mov word [edi + eax*2], dx
inc eax
add ebx, 2
cmp eax, ebp
jae 0x44d510
mov ecx, edx
movzx edx, word [ebx]
cmp edx, 0xa
jne 0x44d4d8
cmp ecx, 0xd
je 0x44d560
mov word [edi + eax*2], 0xd
inc eax
add ebx, 2
mov word [edi + eax*2], dx
inc eax
cmp eax, ebp
jb 0x44d4e4
lea esi, [esi]
lea esi, [esi]
mov dword [esp + 4], ebp
mov ecx, esi
mov dword [esp], edi
call fcn.0044d3a0
sub esp, 8
mov dword [esp], edi
mov byte [esp + 0x1f], al
call fcn.00483050
movzx eax, byte [esp + 0x1f]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov dword [esp + 0x44], edi
mov ecx, esi
mov dword [esp + 0x40], ebx
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0044d3a0
dec ebp
jmp 0x44d4d8
mov byte [esp + 0x1f], 0
jmp 0x44d52d
Function at 0x44e750
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xdc
mov word [esp + 0x46], 0x72
movzx eax, word [esp + 0xf4]
lea ebx, [esp + 0x46]
mov dword [esp + 0x2c], eax
xor eax, eax
lea esi, [esi]
lea esi, [esi]
movsx dx, byte [eax + 0x4c7473]
inc eax
mov word [ebx + eax*2], dx
test dx, dx
jne 0x44e780
mov dword [esp + 4], ebx
mov eax, dword [esp + 0xf8]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wfopen]
test eax, eax
mov esi, eax
je 0x44e8d7
mov dword [esp + 0xc], eax
mov eax, 0x8a
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_fread
mov dword [esp], ebx
mov edi, eax
xor eax, eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 4], edi
call fcn.0042a170
test eax, eax
jne 0x44e810
mov ebp, 0xfffffffe
mov dword [esp], esi
call sub.msvcrt.dll_fclose
add esp, 0xdc
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
xor ebp, ebp
xor eax, eax
mov dword [esp + 8], ebp
mov dword [esp + 4], eax
call sub.msvcrt.dll_fseek
test eax, eax
mov ebp, eax
jne 0x44e7ee
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.0042a260
test al, al
je 0x44e7ee
mov edi, dword [esp + 0xfc]
test edi, edi
jne 0x44e864
mov ebx, dword [esp + 0x100]
test ebx, ebx
je 0x44e873
mov eax, dword [esp + 0x100]
cmp dword [esp + 0x38], eax
je 0x44e873
mov ebp, 0xfffffffd
jmp 0x44e7f3
mov eax, dword [esp + 0xfc]
cmp dword [esp + 0x34], eax
jne 0x44e85d
jmp 0x44e845
mov ecx, dword [esp + 0x104]
test ecx, ecx
je 0x44e896
movzx eax, word [esp + 0x40]
cmp eax, dword [esp + 0x104]
jle 0x44e896
mov ebp, 0xfffffffc
jmp 0x44e7f3
mov eax, 4
mov ecx, dword [esp + 0xf0]
mov edx, 0x409
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov dword [esp], 2
mov dword [esp + 4], eax
call fcn.00427550
sub esp, 0x14
test al, al
je 0x44e7ee
jmp 0x44e7f3
mov ebp, 0xffffffff
jmp 0x44e7fb
Function at 0x44ecf0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1c
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
test ebx, ebx
je 0x44edd0
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll__fileno]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__filelengthi64]
mov ecx, edx
mov edi, eax
mov edx, eax
mov eax, ecx
not edx
not eax
or eax, edx
je 0x44ed90
mov eax, 0xffffffff
xor esi, esi
cmp eax, edi
sbb esi, ecx
cmovae eax, edi
mov edx, eax
inc eax
je 0x44ed90
mov eax, dword [esp + 0x24]
mov dword [eax], edx
mov dword [esp], edx
call sub.msvcrt.dll_malloc
test eax, eax
mov esi, eax
je 0x44ed90
mov dword [esp], ebx
xor edx, edx
xor ecx, ecx
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
call sub.msvcrt.dll_fseek
test eax, eax
je 0x44eda0
xor ebx, ebx
mov dword [esp], esi
call fcn.00483050
mov eax, ebx
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
add esp, 0x1c
ret
xor esi, esi
xor ebx, ebx
jmp 0x44ed6e
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sub.msvcrt.dll_fread
mov ecx, dword [esp + 0x24]
cmp dword [ecx], eax
jne 0x44ed6c
mov ebx, esi
xor esi, esi
jmp 0x44ed6e
xor ebx, ebx
jmp 0x44ed76
Function at 0x44ee80
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0x4c
mov eax, 1
mov dword [esp + 8], eax
mov eax, 0x80000000
xor ecx, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x3c], ebx
xor ebx, ebx
mov dword [esp + 0x44], edi
mov edi, 3
mov dword [esp + 0x48], ebp
xor ebp, ebp
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x54]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebp
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x44ef13
mov ebx, eax
mov dword [esp], ebx
lea eax, [esp + 0x2c]
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
sub esp, 8
cmp eax, 0xffffffff
mov dword [esp + 0x28], eax
je 0x44efb8
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x44ef20
mov dword [esi + 4], eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
xor ebx, ebx
jmp 0x44ef9a
mov dword [esi + 4], eax
xor eax, eax
xor edi, edi
mov dword [esp + 0xc], eax
mov eax, 2
xor ebp, ebp
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebp
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
sub esp, 0x18
cmp eax, 0xffffffff
mov edi, eax
je 0x44ef07
mov dword [esp], ebx
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 4
call ebp
xor eax, eax
xor edx, edx
xor ecx, ecx
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
sub esp, 0x14
test eax, eax
mov dword [esp], edi
mov ebx, eax
je 0x44efd0
call ebp
sub esp, 4
mov dword [esi], ebx
mov eax, ebx
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
add esp, 0x4c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov eax, dword [esp + 0x28]
je 0x44eefc
jmp 0x44ef04
call ebp
xor ebx, ebx
sub esp, 4
jmp 0x44ef9a

Function at 0x44efe0
Capabilities:
Write file on windows

Disassembly:
push esi
xor eax, eax
push ebx
sub esp, 0x44
mov word [esp + 0x18], 0x77
lea ecx, [esp + 0x18]
lea esi, [esi]
lea esi, [esi]
movsx dx, byte [eax + 0x4c74a5]
inc eax
mov word [ecx + eax*2], dx
test dx, dx
jne 0x44f000
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wfopen]
test eax, eax
mov ebx, eax
je 0x44f060
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], ebx
mov esi, eax
call sub.msvcrt.dll_fclose
add esp, 0x44
mov eax, esi
pop ebx
pop esi
ret
add esp, 0x44
xor esi, esi
pop ebx
mov eax, esi
pop esi
ret
Function at 0x44f070
Capabilities:
Get common file path

Disassembly:
sub esp, 0x42c
mov dword [esp + 0x424], ebx
lea ebx, [esp + 0x10]
mov dword [esp + 0x428], esi
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
sub esp, 8
cmp eax, 0x102
ja 0x44f0e0
xor eax, eax
mov edx, 0x4c74a8
mov dword [esp + 8], eax
lea esi, [esp + 0x218]
mov dword [esp + 0xc], esi
mov dword [esp + 4], edx
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
sub esp, 0x10
test eax, eax
je 0x44f0e0
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__wcsdup]
jmp 0x44f0e2
xor eax, eax
mov ebx, dword [esp + 0x424]
mov esi, dword [esp + 0x428]
add esp, 0x42c
ret

Function at 0x44fb60
Capabilities:
Get file size

Disassembly:
sub esp, 0x1c
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x24]
lea eax, [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dl, 1
mov dword [ebx], eax
sub esp, 8
inc eax
je 0x44fb98
mov ebx, dword [esp + 0x18]
mov al, dl
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x18]
test eax, eax
sete dl
add esp, 0x1c
mov al, dl
ret
Function at 0x44fbb0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x6c
mov dword [esp + 0x60], esi
mov esi, dword [esp + 0x74]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x64], edi
mov edi, dword [esp + 0x70]
mov dword [esp + 0x68], ebp
movzx ebp, word [esp + 0x78]
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__fileno]
mov byte [edi + 0xa], 0
mov dword [edi + 4], esi
mov dword [esp], eax
mov ebx, eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x44fcd0
mov dword [esp], eax
lea ecx, [esp + 0x24]
mov dword [esp + 4], ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
sub esp, 8
test eax, eax
movzx eax, byte [edi + 0xa]
jne 0x44fc90
dec al
mov byte [edi + 0xa], al
mov eax, 0x8000
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll__setmode]
mov ecx, dword [esp + 0x7c]
xor edx, edx
mov dword [esp + 0x28], edx
test ecx, ecx
je 0x44fc98
cmp eax, 0xffffffff
je 0x44fc98
lea eax, [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
sub esp, 8
mov dword [esp + 0x30], eax
inc eax
je 0x44fd70
mov eax, dword [esp + 0x34]
or eax, dword [esp + 0x30]
jne 0x44fcd8
mov edx, dword [esp + 0x7c]
test edx, edx
jle 0x44fd60
mov word [edi + 8], bp
mov eax, dword [esp + 0x28]
test eax, eax
sete al
mov byte [edi + 0xb], al
mov al, 1
jmp 0x44fcb0
inc al
jmp 0x44fc14
mov word [edi + 8], bp
mov ecx, dword [esp + 0x7c]
test ecx, ecx
setg byte [edi + 0xb]
inc eax
jne 0x44fc83
cmp byte [edi + 0xa], 0
setg al
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
mov ebp, dword [esp + 0x68]
add esp, 0x6c
ret 0x10
xor eax, eax
jmp 0x44fcb0
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x3c]
xor edx, edx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x28]
xor ecx, ecx
mov dword [esp + 0xc], eax
mov eax, 4
xor esi, esi
mov dword [esp + 0x44], ebx
lea ebx, [esp + 0x2c]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp + 0x3c], edx
mov eax, dword [edi]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
jne 0x44fd88
xor eax, eax
xor esi, esi
mov dword [esp + 8], esi
mov ebx, 2
mov dword [esp + 0xc], ebx
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
mov eax, dword [esp + 0x7c]
test eax, eax
jg 0x44fc73
lea esi, [esi]
nop
mov byte [edi + 0xb], 0
mov al, 1
mov word [edi + 8], bp
jmp 0x44fcb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x44fc5d
nop
jmp 0x44fc67
mov dword [esp], ebx
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
call fcn.0044cd60
test eax, eax
je 0x44fd29
movzx ebp, ax
mov eax, 2
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
jmp 0x44fd60
Function at 0x44fdd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cmp esi, 0xffffffff
je 0x44fed0
cmp byte [ebx + 0xa], 0
jg 0x44fe90
mov edx, dword [ebx + 4]
movzx eax, word [ebx + 8]
cmp byte [ebx + 0xb], 0
mov dword [ebp - 0x20], edx
mov word [ebp - 0x1c], ax
je 0x44fe6e
mov byte [ebx + 0xb], 0
cmp eax, 0xfde9
je 0x44fee0
mov ecx, eax
or ecx, 1
cmp ecx, 0x4b1
je 0x44fe2d
cmp ecx, 0x2ee1
jne 0x44fe6e
cmp eax, 0x4b0
je 0x44ff28
cmp eax, 0x4b1
jne 0x44ff10
mov dword [esp + 0xc], edx
mov ecx, 2
mov eax, 1
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], 0x4ce54c
call sub.msvcrt.dll_fwrite
cmp eax, 2
jne 0x44ff10
mov dword [esp + 4], esi
lea ecx, [ebp - 0x20]
mov dword [esp], edi
call fcn.0044d470
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov dword [esp + 8], esi
lea eax, [ebp - 0x20]
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov edx, eax
sub esp, 0x14
test esi, esi
sete al
test edx, edx
setne dl
lea esp, [ebp - 0xc]
or al, dl
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
mov esi, eax
jmp 0x44fdeb
mov dword [esp + 0xc], edx
mov eax, 3
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
mov dword [esp], 0x4ce548
call sub.msvcrt.dll_fwrite
cmp eax, 3
je 0x44fe6e
lea esi, [esi]
nop
mov byte [ebx + 0xa], 1
xor eax, eax
mov dword [ebx], 0
jmp 0x44fe80
mov dword [esp + 0xc], edx
mov eax, 2
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
mov dword [esp], 0x4ce550
call sub.msvcrt.dll_fwrite
jmp 0x44fe65
Function at 0x458f70
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0xc
movzx ecx, byte [esp + 0x28]
cmp byte [esp + 0x20], 0
movzx eax, byte [esp + 0x24]
mov dword [esp], ecx
je 0x459008
mov dword [esp + 8], eax
mov ecx, 8
mov eax, 1
mov dword [esp + 4], edi
xor ebp, ebp
lea esi, [esi]
lea esi, [esi]
nop
mov esi, dword [esp + 8]
dec ecx
mov edi, dword [esp + 4]
mov ebx, dword [esp]
sar esi, cl
and esi, 1
sar ebx, cl
mov edx, esi
shl edx, 8
and ebx, 1
lea edx, [eax + edx + 0x100]
add eax, eax
mov edx, dword [edi + edx*4]
mov edi, ebx
or eax, ebx
neg edi
sub edx, ebx
xor edx, edi
and edx, 0x7fc
mov edi, dword [edx + 0x4f41e0]
add ebp, edi
cmp esi, ebx
jne 0x459060
test ecx, ecx
jne 0x458fb0
add esp, 0xc
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov ecx, 8
mov eax, 1
xor ebp, ebp
lea esi, [esi]
lea esi, [esi]
nop
mov ebx, dword [esp]
dec ecx
mov edx, dword [edi + eax*4]
add eax, eax
sar ebx, cl
and ebx, 1
mov esi, ebx
sub edx, ebx
neg esi
or eax, ebx
xor edx, esi
and edx, 0x7fc
mov esi, dword [edx + 0x4f41e0]
add ebp, esi
test ecx, ecx
jne 0x459020
add esp, 0xc
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
test ecx, ecx
mov edi, dword [esp + 4]
jne 0x459020
jmp 0x458ff7