joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443b6d
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 0x40137c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x443bdd
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x4051e0
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x443bd4
cmp dword [ebp - 0xc], 4
jne 0x443bd4
cmp dword [ebp - 0x10], edi
je 0x443bd4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x611298], edi
xor eax, eax
jmp 0x443c1c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x611298], edi
jge 0x443c17
lea eax, [ebp - 0x34]
push eax
mov dword [0x611298], edi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x443c17
cmp word [ebp - 0x14], 5
jb 0x443c17
call fcn.005b5955
test eax, eax
je 0x443c17
emms
mov dword [0x611298], 1
mov eax, dword [0x611298]
pop edi
leave
ret

Function at 0x4ce00e
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x629890]
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 0x4ce10b
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.0060a0d0
cmp dword [ebp - 0xac], esi
mov dword [ebp - 0xa8], esp
jne 0x4ce0bc
push 0x40607c
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, 0x8876086c
jmp 0x4ce136
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.005b5955
jmp 0x4ce136
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.005b5955
lea esp, [ebp - 0xc0]
mov ecx, dword [ebp - 4]
call fcn.0060a5a9
pop edi
pop esi
pop ebx
leave
ret 0x20
Function at 0x587878
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
je 0x58795c
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x58795c
push 0x4215d8
push dword [ebp + 8]
call sub.msvcrt.dll_fopen
mov ebx, eax
cmp ebx, edi
pop ecx
pop ecx
je 0x58795c
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]
push ebx
push 6
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push 4
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x10
cmp eax, 6
je 0x587908
mov edi, 0x8876086c
jmp 0x587945
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0x1c]
push edi
push esi
call dword [eax + 0x28]
mov edi, eax
test edi, edi
jl 0x587945
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x18]
push ebx
push dword [ebp - 0x1c]
shl eax, 2
push eax
push dword [ebp - 4]
call sub.msvcrt.dll_fwrite
mov edi, dword [ebp - 0x1c]
sub edi, eax
add esp, 0x10
neg edi
sbb edi, edi
and edi, 0x8876086c
push ebx
call sub.msvcrt.dll_fclose
cmp dword [ebp - 4], 0
pop ecx
je 0x587958
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
mov eax, edi
jmp 0x587961
mov eax, 0x8876086c
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x58796d
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x629890]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x10], edi
mov word [ebp - 0xc], 0x77
mov word [ebp - 0xa], 0x62
mov word [ebp - 8], di
je 0x587a68
cmp esi, edi
je 0x587a68
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.msvcrt.dll__wfopen
mov ebx, eax
cmp ebx, edi
pop ecx
pop ecx
je 0x587a68
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x18]
push ebx
push 6
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28]
push 4
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x10
cmp eax, 6
je 0x587a14
mov edi, 0x8876086c
jmp 0x587a51
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x28]
push edi
push esi
call dword [eax + 0x28]
mov edi, eax
test edi, edi
jl 0x587a51
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x24]
push ebx
push dword [ebp - 0x28]
shl eax, 2
push eax
push dword [ebp - 0x10]
call sub.msvcrt.dll_fwrite
mov edi, dword [ebp - 0x28]
sub edi, eax
add esp, 0x10
neg edi
sbb edi, edi
and edi, 0x8876086c
push ebx
call sub.msvcrt.dll_fclose
cmp dword [ebp - 0x10], 0
pop ecx
je 0x587a64
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
mov eax, edi
jmp 0x587a6d
mov eax, 0x8876086c
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0060a5a9
leave
ret 8
Function at 0x5884d2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
push esi
xor esi, esi
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
je 0x58860b
cmp dword [ebp + 0xc], ebx
je 0x58860b
push 0x4215e0
push dword [ebp + 8]
call sub.msvcrt.dll_fopen
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp + 8], eax
je 0x58860b
push edi
push eax
push 6
lea eax, [ebp - 0x1c]
push 4
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
cmp eax, 6
jne 0x5885ed
cmp dword [ebp - 0x1c], ebx
je 0x5885ed
cmp dword [ebp - 0x18], ebx
je 0x5885ed
cmp dword [ebp - 0x14], ebx
je 0x5885ed
cmp dword [ebp - 8], ebx
je 0x58855a
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x1c]
jne 0x5885ed
push 0x2c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x588571
mov ecx, eax
call fcn.005883c2
mov esi, eax
jmp 0x588573
xor esi, esi
cmp esi, ebx
jne 0x58857e
mov edi, 0x8007000e
jmp 0x5885f2
cmp dword [ebp - 8], ebx
push dword [ebp - 0x14]
mov ecx, esi
push dword [ebp - 0x18]
je 0x588598
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.005b5955
jmp 0x5885a0
push dword [ebp - 0x1c]
call fcn.005b5955
mov edi, eax
cmp edi, ebx
mov eax, dword [esi]
jge 0x5885b1
push 1
mov ecx, esi
call dword [eax + 0x4c]
jmp 0x5885f2
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0x1c]
push ebx
push esi
call dword [eax + 0x28]
mov edi, eax
cmp edi, ebx
jl 0x5885f2
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x18]
push dword [ebp + 8]
shl eax, 2
push dword [ebp - 0x1c]
push eax
push dword [ebp - 4]
call sub.msvcrt.dll_fread
add esp, 0x10
cmp dword [ebp - 0x1c], eax
jne 0x5885ed
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor edi, edi
jmp 0x5885f2
mov edi, 0x8876086c
cmp dword [ebp - 4], ebx
je 0x5885fd
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
push dword [ebp + 8]
call sub.msvcrt.dll_fclose
pop ecx
mov eax, edi
pop edi
jmp 0x588610
mov eax, 0x8876086c
pop esi
pop ebx
leave
ret 8
Function at 0x58861b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x629890]
mov ecx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp eax, ebx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x72
mov word [ebp - 0xa], 0x62
mov word [ebp - 8], bx
je 0x588770
cmp ecx, ebx
je 0x588770
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.msvcrt.dll__wfopen
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x2c], eax
je 0x588770
push edi
push eax
push 6
lea eax, [ebp - 0x28]
push 4
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
cmp eax, 6
jne 0x588752
cmp dword [ebp - 0x28], ebx
je 0x588752
cmp dword [ebp - 0x24], ebx
je 0x588752
cmp dword [ebp - 0x20], ebx
je 0x588752
cmp dword [ebp - 0x14], ebx
je 0x5886bf
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x28]
jne 0x588752
push 0x2c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x5886d6
mov ecx, eax
call fcn.005883c2
mov esi, eax
jmp 0x5886d8
xor esi, esi
cmp esi, ebx
jne 0x5886e3
mov edi, 0x8007000e
jmp 0x588757
cmp dword [ebp - 0x14], ebx
push dword [ebp - 0x20]
mov ecx, esi
push dword [ebp - 0x24]
je 0x5886fd
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.005b5955
jmp 0x588705
push dword [ebp - 0x28]
call fcn.005b5955
mov edi, eax
cmp edi, ebx
mov eax, dword [esi]
jge 0x588716
push 1
mov ecx, esi
call dword [eax + 0x4c]
jmp 0x588757
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x28]
push ebx
push esi
call dword [eax + 0x28]
mov edi, eax
cmp edi, ebx
jl 0x588757
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x24]
push dword [ebp - 0x2c]
shl eax, 2
push dword [ebp - 0x28]
push eax
push dword [ebp - 0x10]
call sub.msvcrt.dll_fread
add esp, 0x10
cmp dword [ebp - 0x28], eax
jne 0x588752
mov eax, dword [ebp - 0x30]
mov dword [eax], esi
xor edi, edi
jmp 0x588757
mov edi, 0x8876086c
cmp dword [ebp - 0x10], ebx
je 0x588762
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
push dword [ebp - 0x2c]
call sub.msvcrt.dll_fclose
pop ecx
mov eax, edi
pop edi
jmp 0x588775
mov eax, 0x8876086c
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0060a5a9
leave
ret 8
Function at 0x588b06
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 8], 0
push ebx
push esi
je 0x588c1b
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x588c1b
push 0x4215d8
push dword [ebp + 8]
call sub.msvcrt.dll_fopen
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x588c1b
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x24]
mov dword [ebp - 8], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x28]
push ebx
push 8
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push 4
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x10
cmp eax, 8
je 0x588ba3
mov esi, 0x8876086c
jmp 0x588c10
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x18]
inc ecx
imul ecx, dword [ebp - 0x18]
imul ecx, dword [ebp - 0x1c]
push edi
mov edi, dword [esi + 0x1c]
mov esi, dword [esi + 0x20]
push ebx
push dword [ebp - 8]
shl ecx, 2
push ecx
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x10
cmp dword [ebp - 8], eax
je 0x588bd6
mov esi, 0x8876086c
jmp 0x588c0f
mov eax, dword [ebp - 4]
push ebx
push dword [ebp - 0x20]
shl eax, 2
push eax
push edi
call sub.msvcrt.dll_fwrite
add esp, 0x10
cmp dword [ebp - 0x20], eax
jne 0x588bcf
test esi, esi
je 0x588c0d
cmp dword [ebp - 8], 1
je 0x588c0d
push ebx
push dword [ebp - 0x20]
push 4
push esi
call sub.msvcrt.dll_fwrite
add esp, 0x10
cmp dword [ebp - 0x20], eax
jne 0x588bcf
xor esi, esi
pop edi
push ebx
call sub.msvcrt.dll_fclose
pop ecx
mov eax, esi
jmp 0x588c20
mov eax, 0x8876086c
pop esi
pop ebx
leave
ret 8
Function at 0x588c2b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x629890]
and word [ebp - 8], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov word [ebp - 0xc], 0x77
mov word [ebp - 0xa], 0x62
je 0x588d57
test esi, esi
je 0x588d57
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.msvcrt.dll__wfopen
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x588d57
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x28]
push ebx
push 8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2c]
push 4
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x10
cmp eax, 8
je 0x588cdf
mov esi, 0x8876086c
jmp 0x588d4c
mov ecx, dword [ebp - 0x10]
mov eax, dword [esi + 0x18]
inc ecx
imul ecx, dword [ebp - 0x24]
imul ecx, dword [ebp - 0x28]
push edi
mov edi, dword [esi + 0x1c]
mov esi, dword [esi + 0x20]
push ebx
push dword [ebp - 0x14]
shl ecx, 2
push ecx
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x10
cmp dword [ebp - 0x14], eax
je 0x588d12
mov esi, 0x8876086c
jmp 0x588d4b
mov eax, dword [ebp - 0x10]
push ebx
push dword [ebp - 0x2c]
shl eax, 2
push eax
push edi
call sub.msvcrt.dll_fwrite
add esp, 0x10
cmp dword [ebp - 0x2c], eax
jne 0x588d0b
test esi, esi
je 0x588d49
cmp dword [ebp - 0x14], 1
je 0x588d49
push ebx
push dword [ebp - 0x2c]
push 4
push esi
call sub.msvcrt.dll_fwrite
add esp, 0x10
cmp dword [ebp - 0x2c], eax
jne 0x588d0b
xor esi, esi
pop edi
push ebx
call sub.msvcrt.dll_fclose
pop ecx
mov eax, esi
jmp 0x588d5c
mov eax, 0x8876086c
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0060a5a9
leave
ret 8
Function at 0x58940d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 8], esi
je 0x58957f
cmp dword [ebp + 0xc], esi
je 0x58957f
push 0x4215e0
push dword [ebp + 8]
call sub.msvcrt.dll_fopen
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp + 8], eax
je 0x58957f
push ebx
push eax
push 8
lea eax, [ebp - 0x2c]
push 4
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
cmp eax, 8
je 0x589468
mov ebx, 0x8876086c
jmp 0x589571
cmp dword [ebp - 0x2c], esi
push edi
je 0x58955d
cmp dword [ebp - 0x28], esi
je 0x58955d
cmp dword [ebp - 0x24], esi
je 0x58955d
cmp dword [ebp - 0x18], esi
je 0x589499
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x2c]
jne 0x58955d
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
push 0x38
mov dword [ebp - 4], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x5894b7
mov ecx, eax
call fcn.0058935c
mov esi, eax
test esi, esi
mov dword [ebp - 8], esi
jne 0x5894c8
mov ebx, 0x8007000e
jmp 0x589562
push dword [ebp - 0x18]
mov ecx, esi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.005b5955
mov ebx, eax
test ebx, ebx
jl 0x589562
mov ecx, dword [esi + 0x20]
push dword [ebp + 8]
mov eax, dword [esi + 0x18]
push dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov ebx, dword [esi + 0x1c]
lea ecx, [edi + 1]
imul ecx, dword [ebp - 0x24]
imul ecx, dword [ebp - 0x28]
shl ecx, 2
push ecx
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
cmp dword [ebp - 4], eax
jne 0x58955d
push dword [ebp + 8]
mov eax, edi
push dword [ebp - 0x2c]
shl eax, 2
push eax
push ebx
call sub.msvcrt.dll_fread
add esp, 0x10
cmp dword [ebp - 0x2c], eax
jne 0x58955d
cmp dword [ebp - 4], 1
je 0x589554
push dword [ebp + 8]
push dword [ebp - 0x2c]
push 4
push dword [ebp - 0xc]
call sub.msvcrt.dll_fread
add esp, 0x10
cmp dword [ebp - 0x2c], eax
jne 0x58955d
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor ebx, ebx
jmp 0x589570
mov ebx, 0x8876086c
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x589570
mov eax, dword [ecx]
push 1
call dword [eax + 0x44]
pop edi
push dword [ebp + 8]
call sub.msvcrt.dll_fclose
pop ecx
mov eax, ebx
pop ebx
jmp 0x589584
mov eax, 0x8876086c
pop esi
leave
ret 8
Function at 0x58958e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x629890]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x18], esi
mov word [ebp - 0xc], 0x72
mov word [ebp - 0xa], 0x62
mov word [ebp - 8], si
je 0x58971c
cmp ecx, esi
je 0x58971c
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.msvcrt.dll__wfopen
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
je 0x58971c
push ebx
push eax
push 8
lea eax, [ebp - 0x38]
push 4
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
cmp eax, 8
je 0x589605
mov ebx, 0x8876086c
jmp 0x58970e
cmp dword [ebp - 0x38], esi
push edi
je 0x5896fa
cmp dword [ebp - 0x34], esi
je 0x5896fa
cmp dword [ebp - 0x30], esi
je 0x5896fa
cmp dword [ebp - 0x24], esi
je 0x589636
mov eax, dword [ebp - 0x2c]
imul eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x38]
jne 0x5896fa
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
push 0x38
mov dword [ebp - 0x14], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x589654
mov ecx, eax
call fcn.0058935c
mov esi, eax
test esi, esi
mov dword [ebp - 0x18], esi
jne 0x589665
mov ebx, 0x8007000e
jmp 0x5896ff
push dword [ebp - 0x24]
mov ecx, esi
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.005b5955
mov ebx, eax
test ebx, ebx
jl 0x5896ff
mov ecx, dword [esi + 0x20]
push dword [ebp - 0x10]
mov eax, dword [esi + 0x18]
push dword [ebp - 0x14]
mov dword [ebp - 0x3c], ecx
mov ebx, dword [esi + 0x1c]
lea ecx, [edi + 1]
imul ecx, dword [ebp - 0x30]
imul ecx, dword [ebp - 0x34]
shl ecx, 2
push ecx
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
cmp dword [ebp - 0x14], eax
jne 0x5896fa
push dword [ebp - 0x10]
mov eax, edi
push dword [ebp - 0x38]
shl eax, 2
push eax
push ebx
call sub.msvcrt.dll_fread
add esp, 0x10
cmp dword [ebp - 0x38], eax
jne 0x5896fa
cmp dword [ebp - 0x14], 1
je 0x5896f1
push dword [ebp - 0x10]
push dword [ebp - 0x38]
push 4
push dword [ebp - 0x3c]
call sub.msvcrt.dll_fread
add esp, 0x10
cmp dword [ebp - 0x38], eax
jne 0x5896fa
mov eax, dword [ebp - 0x40]
mov dword [eax], esi
xor ebx, ebx
jmp 0x58970d
mov ebx, 0x8876086c
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x58970d
mov eax, dword [ecx]
push 1
call dword [eax + 0x44]
pop edi
push dword [ebp - 0x10]
call sub.msvcrt.dll_fclose
pop ecx
mov eax, ebx
pop ebx
jmp 0x589721
mov eax, 0x8876086c
mov ecx, dword [ebp - 4]
pop esi
call fcn.0060a5a9
leave
ret 8
Function at 0x58b172
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x60b04e
call fcn.0060a098
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], 0x421640
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call fcn.0058afc5
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.005976f1
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 0x5976f1
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x60b319
call fcn.0060a098
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.00592f66
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 1
call fcn.00592f66
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.00592f66
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 3
call fcn.00595ae1
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 4
call fcn.00595b4a
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 5
call fcn.00595b4a
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 6
call fcn.005976a0
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 0x5b5819
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], 0x422fb8
call edi
push dword [esi + 0x34]
call edi
mov eax, dword [esi + 0x38]
cmp eax, 0xffffffff
je 0x5b5840
push eax
call edi
mov al, byte [esi + 0x48]
test al, 0x40
je 0x5b5856
test al, al
js 0x5b5863
push dword [esi + 0xc]
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x5b5863
test al, al
js 0x5b5863
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.005b3d4b
pop edi
lea ecx, [esi + 0x10]
pop esi
jmp fcn.005b33bb