joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421ad0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov ecx, dword [esp + 0x28]
mov dword [esp + 8], 0
mov eax, 0x7f2bb705
cmp dword [ecx], 0x7f2bb705
jne 0x421cb1
mov edx, dword [ecx + 0x58]
mov eax, 0x10ed
cmp dword [edx], 0x10ed
jne 0x421cb1
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
cmp ebp, 5
mov dword [esp], edx
jb 0x421b8d
xor eax, eax
mov esi, 0x344
jmp 0x421b41
mov eax, ebp
add esi, 0x18
cmp esi, 0x404
je 0x421c91
mov ebp, eax
movzx eax, byte [edx + esi]
test al, 2
je 0x421b30
mov ecx, eax
and cl, 0xfd
mov byte [edx + esi], cl
test al, 1
je 0x421b30
mov ecx, dword [esp + 0x28]
mov edx, dword [esp]
mov eax, dword [esp]
push dword [eax + esi - 0x14]
push 1
mov eax, dword [esp + 8]
push dword [eax + esi - 8]
mov eax, dword [esp + 0xc]
push dword [eax + esi - 0xc]
call fcn.00422110
mov edx, dword [esp + 0x10]
add esp, 0x10
test eax, eax
jne 0x421b32
and byte [edx + esi], 0xfe
jmp 0x421b30
mov ecx, dword [ecx + 0x1c]
xor eax, eax
mov dword [esp + 4], ecx
test cl, 1
je 0x421bb2
mov ecx, dword [esp + 0x28]
mov edx, dword [esp]
push edi
push ebp
push esi
push ebx
call fcn.00422110
mov edx, dword [esp + 0x10]
add esp, 0x10
test ebp, ebp
je 0x421cb1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 4]
and al, 1
mov dword [esp + 4], eax
inc ebp
jmp 0x421bf8
movzx eax, byte [esi + 0x14]
and al, 0xfe
add al, byte [esp + 4]
xor al, 1
mov byte [esi + 0x14], al
add ebx, 1
mov esi, ebp
adc esi, 0
add edi, dword [ecx + 0xc]
mov ebp, dword [esp + 0x10]
dec ebp
cmp ebp, 1
jle 0x421cad
mov dword [esp + 0x10], ebp
mov ecx, edx
mov edx, ebx
lea eax, [esp + 8]
push eax
mov ebp, esi
push esi
call fcn.00422510
mov edx, dword [esp + 8]
add esp, 8
mov esi, eax
test eax, eax
jne 0x421c69
mov esi, dword [esp + 8]
movzx eax, byte [esi + 0x14]
mov ecx, eax
not cl
test cl, 3
jne 0x421c4c
mov ecx, dword [esp + 0x28]
mov edx, dword [esp]
push dword [esi]
push 1
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.00422110
mov edx, dword [esp + 0x10]
add esp, 0x10
movzx eax, byte [esi + 0x14]
and al, 0xfc
or al, 2
mov byte [esi + 0x14], al
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebp
mov eax, dword [edx + 0x320]
inc eax
mov dword [edx + 0x320], eax
mov dword [esi + 0x10], eax
mov eax, dword [esi]
cmp eax, edi
mov ecx, dword [esp + 0x28]
je 0x421bd0
push dword [ecx + 0xc]
push edi
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0xc]
add esp, 0xc
jmp 0x421bd0
test eax, eax
mov ecx, dword [esp + 0x28]
jne 0x421cb1
push edi
push dword [esp + 0x38]
push dword [esp + 0x38]
push ebx
call fcn.00422110
add esp, 0x24
jmp 0x421cb4
mov eax, dword [esp + 0xc]
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x422340
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov eax, dword [esp + 0x34]
mov dword [esp + 4], 0
test eax, eax
js 0x422361
mov ebp, dword [esi + 0xc]
imul ebp, eax
jmp 0x422365
mov ebp, eax
neg ebp
mov eax, ebp
sar eax, 0x1f
add dword [edx + 0x400], ebp
adc dword [edx + 0x404], eax
mov edi, dword [esp + 0x38]
mov eax, dword [esi + 0xc]
imul eax, dword [esp + 0x2c]
add eax, dword [edx + 0x328]
movzx ebx, byte [edx + 0x318]
push 0
push 0
push eax
mov dword [esp + 0x18], edx
push dword [edx + 0x108]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test bl, 8
jne 0x4223fd
cmp eax, 0xffffffff
je 0x422497
mov eax, dword [esi + 0x60]
test eax, eax
je 0x4223c2
dec eax
mov ecx, edi
or ecx, ebp
test eax, ecx
jne 0x422406
lea eax, [esp + 4]
push 0
push eax
push ebp
mov dword [esp + 0xc], edi
push edi
mov eax, dword [esp + 0x1c]
push dword [eax + 0x108]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42249a
mov edi, 0x7f2bb724
xor eax, eax
cmp dword [esp + 4], ebp
jne 0x4224a2
jmp 0x4224de
cmp eax, 0xffffffff
je 0x422497
test ebp, ebp
jle 0x422493
mov dword [esp + 8], ebp
mov dword [esp], edi
mov dword [esp + 0x10], esi
xor eax, eax
mov ebp, dword [esp + 0xc]
nop
mov dword [esp + 0x14], eax
push 0
lea eax, [esp + 8]
push eax
mov esi, dword [esp + 0x18]
push dword [esi + 0xc]
push dword [ebp + 0x3f0]
push dword [ebp + 0x108]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4224e6
mov ebx, dword [esp + 4]
cmp ebx, dword [esi + 0xc]
jne 0x4224f4
mov edi, dword [esp + 8]
cmp edi, ebx
cmovl ebx, edi
mov dword [esp + 4], ebx
push ebx
mov ebp, dword [esp + 0x10]
push dword [ebp + 0x3f0]
mov esi, dword [esp + 8]
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x14]
add eax, ebx
sub edi, ebx
add esi, ebx
mov dword [esp], esi
mov dword [esp + 8], edi
test edi, edi
jg 0x422420
xor eax, eax
jmp 0x4224de
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esp + 4]
mov ecx, ebp
sub ecx, eax
jbe 0x4224bb
add eax, dword [esp]
push ecx
push 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4224dc
push edi
push dword [esp + 8]
push ebp
push dword [esp + 0xc]
push dword [esp + 0x44]
push dword [esp + 0x40]
push esi
call ecx
add esp, 0x1c
jmp 0x4224de
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ebp, dword [esp + 8]
jmp 0x4224a2
mov eax, dword [esp + 0x14]
mov dword [esp + 4], eax
sub dword [esp], eax
mov ebp, dword [esp + 8]
add ebp, eax
mov edi, 0x7f2bb724
mov esi, dword [esp + 0x10]
jmp 0x4224a2
Function at 0x4229d0
Capabilities:
Query environment variable

Disassembly:
push esi
push eax
mov dword [esp], 0
mov esi, dword [0x4b3598]
test esi, 0x8000
jne 0x422a94
push str.COMERR_DEBUG
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
test eax, eax
je 0x422a28
mov ecx, esp
push 0
push ecx
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
add esp, 0xc
mov dword [0x4b3598], eax
mov eax, dword [esp]
cmp byte [eax], 0
jne 0x422a8a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0
jne 0x422a8a
mov esi, dword [0x4b3598]
or esi, 0x8000
mov dword [0x4b3598], esi
cmp esi, 0x8000
je 0x422a94
push str.COMERR_DEBUG_FILE
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
test eax, eax
je 0x422a66
push 0x493151
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
add esp, 8
mov dword [0x4b359c], eax
test eax, eax
jne 0x422a94
jmp 0x422a6f
mov eax, dword [0x4b359c]
test eax, eax
jne 0x422a94
push 0x493151
push str._dev_tty
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
add esp, 8
mov dword [0x4b359c], eax
test eax, eax
jne 0x422a94
mov dword [0x4b3598], 0x8000
add esp, 4
pop esi
ret

Function at 0x423160
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
mov dword [esp + 0xc], eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00438940
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
lea esi, [esi]
Function at 0x4231c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov eax, dword [0x4b3920]
test eax, eax
jle 0x4232d0
mov edx, dword [0x4b3924]
xor ebx, ebx
mov ecx, dword [edx + 0xc]
cmp ecx, esi
ja 0x4231f1
mov edi, dword [edx + 0x10]
add ecx, dword [edi + 8]
cmp esi, ecx
jb 0x42326a
add ebx, 1
add edx, 0x14
cmp ebx, eax
jne 0x4231e0
mov dword [esp], esi
call fcn.00438aa0
test eax, eax
mov edi, eax
je 0x4232f7
lea esi, [ebx + ebx*4]
mov ebx, dword [0x4b3924]
shl esi, 2
add ebx, esi
mov dword [ebx + 0x10], eax
mov dword [ebx], 0
call fcn.00438b90
add eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [0x4b3924]
mov dword [esp + 8], 0x1c
mov eax, dword [eax + esi + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4232d7
mov eax, dword [ebp - 0x20]
cmp eax, 0x40
jne 0x423272
add dword [0x4b3920], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 4
je 0x423263
cmp eax, 0x80
je 0x423263
cmp eax, 8
je 0x423263
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
add esi, dword [0x4b3924]
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x423263
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00423160
nop
lea esi, [esi]
xor ebx, ebx
jmp 0x4231fb
mov eax, dword [0x4b3924]
mov eax, dword [eax + esi + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00423160
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00423160
mov esi, esi
lea edi, [edi]

Function at 0x424720
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
jmp fcn.00424120
Function at 0x427470
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x12c
mov ebx, dword [ebp + 8]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
test ebx, ebx
mov dword [eax], 0
je 0x42761e
cmp byte [ebx], 0
je 0x4275e8
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
je 0x427600
test al, 0x10
je 0x4275e8
lea edi, [ebp - 0x11c]
mov dword [esp + 4], ebx
mov ebx, edi
mov dword [esp + 8], 0x104
mov dword [esp], edi
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__fullpath
mov edx, dword [ebx]
add ebx, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x4274d4
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea edx, [ebx + 2]
cmove ebx, edx
add al, al
sbb ebx, 3
sub ebx, edi
lea eax, [ebx + 0x233]
mov dword [esp], eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test eax, eax
mov esi, eax
je 0x42760f
lea edx, [eax + 0x22c]
lea eax, [ebx + 1]
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [ebp - 0x12c], edx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov edx, dword [ebp - 0x12c]
cmp byte [esi + 0x22c], 0
je 0x427563
movzx eax, byte [esi + ebx + 0x22b]
cmp al, 0x2f
je 0x427563
cmp al, 0x5c
je 0x427563
mov edi, 0x5c
mov word [edx + ebx], di
mov eax, edx
mov ecx, dword [eax]
add eax, 4
lea edx, [ecx - 0x1010101]
not ecx
and edx, ecx
and edx, 0x80808080
je 0x427565
mov ecx, edx
shr ecx, 0x10
test edx, 0x8080
cmove edx, ecx
lea ecx, [eax + 2]
cmove eax, ecx
add dl, dl
sbb eax, 3
mov edx, 0x2a
mov word [eax], dx
xor ecx, ecx
xor eax, eax
lea edx, [esi + 0x120]
xor ebx, ebx
mov word [esi + 0x11c], cx
mov edi, edx
mov ecx, 0x41
mov dword [esi + 0x224], 0xffffffff
mov dword [esi + 0x228], 0
mov dword [esi + 0x118], 0
mov word [esi + 0x11e], bx
rep stosd dword es:[edi], eax
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 0x14
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 2
xor eax, eax
jmp 0x4275e0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 0xc
xor eax, eax
jmp 0x4275e0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 0xe
xor eax, eax
jmp 0x4275e0
Function at 0x42eaa0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test ebx, ebx
je 0x42eb10
mov ecx, dword [esp + 0x14]
test bl, 1
jne 0x42eac1
mov edx, ebx
cmp ebx, 1
jne 0x42eadc
jmp 0x42eb10
lea edx, [ebx - 1]
movzx esi, ah
xor al, byte [ecx]
inc ecx
movzx eax, al
movzx eax, word [eax + eax + 0x493b40]
xor eax, esi
cmp ebx, 1
je 0x42eb10
xor esi, esi
nop
mov ebx, eax
xor al, byte [ecx + esi]
shr ebx, 8
movzx eax, al
movzx edi, word [eax + eax + 0x493b40]
xor ebx, edi
shr edi, 8
xor bl, byte [ecx + esi + 1]
movzx eax, bl
movzx eax, word [eax + eax + 0x493b40]
xor eax, edi
add esi, 2
cmp edx, esi
jne 0x42eae0
pop esi
pop edi
pop ebx
ret
Function at 0x4389c0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x4389f8
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x4389ee
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x4389fa
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x4389e0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x446040
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x44607d
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
xor ebp, ebp
nop word cs:[eax + eax]
mov eax, esi
sub eax, ebp
push eax
push edi
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
add esp, 0xc
test eax, eax
js 0x446081
je 0x44608f
add edi, eax
add ebp, eax
cmp ebp, esi
jb 0x446060
xor eax, eax
jmp 0x446094
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, eax
xor eax, eax
sub eax, dword [ecx]
jmp 0x446094
mov eax, 0xffffffea
pop esi
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
push ebx
push edi
push esi
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
not eax
test ebx, ebx
je 0x446e7e
mov ecx, dword [esp + 0x14]
test bl, 1
jne 0x446e23
mov edx, ebx
cmp ebx, 1
jne 0x446e42
jmp 0x446e7e
lea edx, [ebx - 1]
mov edi, ebx
movzx ebx, byte [ecx]
xor bl, al
inc ecx
movzx esi, bl
mov ebx, edi
shr eax, 8
xor eax, dword [esi*4 + 0x4a4b64]
cmp ebx, 1
je 0x446e7e
xor esi, esi
nop word cs:[eax + eax]
movzx ebx, byte [ecx + esi]
xor bl, al
movzx edi, bl
shr eax, 8
xor eax, dword [edi*4 + 0x4a4b64]
movzx ebx, byte [ecx + esi + 1]
xor bl, al
movzx edi, bl
shr eax, 8
xor eax, dword [edi*4 + 0x4a4b64]
add esi, 2
cmp edx, esi
jne 0x446e50
not eax
pop esi
pop edi
pop ebx
ret
Function at 0x453e80
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebx, ecx
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ebp, edx
add ebp, esi
adc edi, 0
xor eax, eax
mov ecx, 0x11000
cmp ecx, ebp
sbb eax, edi
jl 0x453eb1
cmp dword [ebx + 0xc], 0
je 0x453f05
mov ecx, dword [ebx + 0x10]
jmp 0x453f52
cmp dword [ebx + 0x18], esi
mov ebp, esi
mov esi, dword [esp + 0x18]
jae 0x453eda
mov edi, edx
push ebp
push dword [ebx + 0x14]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
je 0x453f66
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], ebp
mov edx, edi
push 0
push esi
push edx
push dword [ebx]
call fcn.0045d3c0
add esp, 0x10
xor esi, esi
test edx, edx
js 0x453f68
push ebp
push dword [ebx + 0x14]
push dword [ebx]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
add esp, 0xc
cmp eax, ebp
jne 0x453f68
mov esi, dword [ebx + 0x14]
jmp 0x453f68
mov dword [esp], edx
push 0x11000
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [ebx + 0xc], eax
xor esi, esi
test eax, eax
je 0x453f68
push 0
push 0
push 0
push dword [ebx]
call fcn.00427440
add esp, 0x10
test edx, edx
js 0x453f68
push 0x11000
push dword [ebx + 0xc]
push dword [ebx]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
mov edx, dword [esp + 0xc]
add esp, 0xc
xor ecx, ecx
test eax, eax
cmovg ecx, eax
mov dword [ebx + 0x10], ecx
xor esi, esi
cmp ecx, ebp
mov eax, 0
sbb eax, edi
jl 0x453f68
mov esi, dword [ebx + 0xc]
add esi, edx
jmp 0x453f68
xor esi, esi
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x457eb0
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
movzx eax, byte [0x4b4358]
test al, al
je 0x457fb2
push dword [0x4b4354]
push dword [0x4b4350]
push esi
push edi
call fcn.00440e80
add esp, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x1c]
and eax, 2
add eax, 2
push 0
push 0
push 0
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
je 0x457f5e
mov ebx, eax
mov edx, dword [esp + 0xc]
sub edi, edx
sbb esi, 0
mov eax, dword [ebp + 0x1c]
test al, 2
mov eax, 4
mov ecx, 0xf001f
cmove ecx, eax
mov eax, dword [ebp + 0x18]
add eax, edx
push eax
push edi
push esi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x457f9c
mov edi, eax
push 0x10
call fcn.00446ec0
add esp, 4
mov esi, eax
mov dword [eax], edi
mov eax, dword [ebp + 0x18]
mov dword [esi + 4], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebx
jmp 0x457fa5
xor esi, esi
cmp dword [ebp + 0x18], 0
jne 0x457fa5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ee
jne 0x457fa5
push 0x10
call fcn.00446ec0
add esp, 4
mov esi, eax
mov dword [eax], 0x4a64e0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jmp 0x457fa5
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4b4358
call fcn.0045d660
add esp, 4
test eax, eax
je 0x457ed4
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x30], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x2c]
mov dword [0x4b4350], eax
mov dword [0x4b4354], 0
push 0x4b4358
call fcn.0045d7d0
add esp, 4
jmp 0x457ed4
Function at 0x45d250
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
xorps xmm0, xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
lea eax, [esp + 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__fstat32i64]
add esp, 8
test eax, eax
jne 0x45d2a1
movzx eax, word [esp + 0x16]
and eax, 0xf000
cmp eax, 0x8000
jne 0x45d2a1
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
jmp 0x45d3b2
xor ecx, ecx
mov edx, 0x400
xor edi, edi
xor ebx, ebx
nop dword [eax]
mov dword [esp], ebx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov byte [esp + 0x10], 0
push 0
push ecx
push edx
push dword [ebp + 8]
call fcn.0045d3c0
add esp, 0x10
test edx, edx
js 0x45d2f0
push 1
lea eax, [esp + 0x14]
push eax
push dword [ebp + 8]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
add esp, 0xc
mov ecx, ebx
shld ecx, edi, 1
lea edx, [edi + edi]
test eax, eax
jg 0x45d2b0
mov dword [esp + 4], edi
mov edx, edi
add edx, 0xffffffff
mov edi, ebx
adc ebx, 0xffffffff
mov eax, esi
cmp esi, edx
mov edx, dword [esp]
mov esi, edx
sbb esi, ebx
jge 0x45d3ac
mov ecx, dword [esp + 4]
jmp 0x45d366
push 1
lea eax, [esp + 0x14]
push eax
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
add esp, 0xc
xor ecx, ecx
test eax, eax
setg cl
mov edx, dword [esp]
mov edi, dword [esp + 8]
test ecx, ecx
cmove edi, ebx
mov ecx, dword [esp + 4]
cmove ecx, esi
cmovne edx, ebx
mov eax, dword [esp + 0xc]
cmovne eax, esi
mov esi, ecx
add esi, 0xffffffff
mov ebx, edi
adc ebx, 0xffffffff
cmp eax, esi
mov esi, edx
sbb esi, ebx
jge 0x45d3ac
mov dword [esp + 0xc], eax
mov dword [esp + 4], ecx
add eax, ecx
mov dword [esp], edx
mov ebx, edx
mov dword [esp + 8], edi
adc ebx, edi
mov esi, ebx
shr esi, 0x1f
add esi, eax
adc ebx, 0
shrd esi, ebx, 1
sar ebx, 1
mov byte [esp + 0x10], 0
push 0
push ebx
push esi
mov edi, dword [ebp + 8]
push edi
call fcn.0045d3c0
add esp, 0x10
test edx, edx
jns 0x45d320
xor ecx, ecx
jmp 0x45d337
add eax, 1
adc edx, 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x463003
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
add esp, 0xffffff80
cmp dword [ebp + 8], 0
jne 0x463016
jmp 0x46314a
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00480c18
cmp eax, 1
jne 0x463142
mov dword [ebp - 0x77], 0x6f727245
mov dword [ebp - 0x73], 0x6c632072
mov dword [ebp - 0x6f], 0x696e6165
mov dword [ebp - 0x6b], 0x7520676e
mov dword [ebp - 0x67], 0x70732070
mov dword [ebp - 0x63], 0x6b5f6e69
mov dword [ebp - 0x5f], 0x20737965
mov dword [ebp - 0x5b], 0x20726f66
mov dword [ebp - 0x57], 0x65726874
mov dword [ebp - 0x53], 0x206461
lea edx, [ebp - 0x4f]
mov ebx, 0x43
mov eax, 0
mov ecx, edx
and ecx, 1
test ecx, ecx
je 0x46308e
mov byte [edx], al
add edx, 1
sub ebx, 1
mov ecx, edx
and ecx, 2
test ecx, ecx
je 0x4630a0
mov word [edx], ax
add edx, 2
sub ebx, 2
mov ecx, ebx
shr ecx, 2
mov edi, edx
rep stosd dword es:[edi], eax
mov edx, edi
mov ecx, ebx
and ecx, 2
test ecx, ecx
je 0x4630ba
mov word [edx], ax
add edx, 2
and ebx, 1
mov ecx, ebx
test ecx, ecx
je 0x4630c8
mov byte [edx], al
add edx, 1
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov dword [esp + 8], 0xa
lea edx, [ebp - 0x77]
add edx, 0x27
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
call eax
mov dword [ebp - 0xc], 0x27
jmp 0x4630f8
add dword [ebp - 0xc], 1
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x46310f
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
jbe 0x4630f4
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
ja 0x46312d
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0xa
mov eax, dword [ebp - 0xc]
add eax, 1
mov byte [ebp + eax - 0x77], 0
lea eax, [ebp - 0x77]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call eax
sub esp, 4
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret