joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4104b0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4ba820
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
mov eax, dword [0x4e27e0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x58]
xor eax, eax
mov word [esp + 0x14], ax
xor ebx, ebx
push 0x17
mov eax, 0x4cc38c
lea esi, [esp + 0x14]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
call fcn.004033f0
mov ecx, esi
push ecx
mov ecx, ebp
mov dword [esp + 0x54], ebx
call fcn.00402ec0
mov esi, 8
add esp, 4
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x28], esi
jb 0x410530
mov edx, dword [esp + 0x14]
push edx
call fcn.0047cc0e
add esp, 4
cmp dword [ebp + 0x18], esi
jb 0x41053a
mov eax, dword [ebp + 4]
jmp 0x41053d
lea eax, [ebp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
mov byte [edi + 0x24], al
cmp al, bl
je 0x410560
lea ebx, [edi + 0x20]
mov ecx, ebp
call fcn.0041d9e0
mov byte [edi + 0x24], al
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea ecx, [edi + 4]
mov eax, ebp
call fcn.004030c0
xor eax, eax
mov word [esp + 0x30], ax
push 0x17
mov eax, str.CINIReader::Init___init
lea esi, [esp + 0x30]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
call fcn.004033f0
mov dword [esp + 0x50], 1
movzx ecx, byte [edi + 0x24]
push ecx
mov edx, esi
push edx
call fcn.00402aa0
add esp, 8
cmp dword [esp + 0x44], 8
jb 0x4105bc
mov eax, dword [esp + 0x30]
push eax
call fcn.0047cc0e
add esp, 4
mov al, byte [edi + 0x24]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 4
Function at 0x414da0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4b9c4b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e27e0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004b74ed
push 4
mov dword [esp + 0x24], 0
call fcn.0047cbd4
mov edi, eax
add esp, 4
test edi, edi
je 0x414e22
call fcn.004b735e
mov dword [edi], eax
call fcn.004b718c
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.004b74ae
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x414e17
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.004b74d6
jmp 0x414e24
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x416010
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bbc96
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x4e27e0]
xor eax, esp
mov dword [esp + 0x294], eax
push ebx
push esi
mov eax, dword [0x4e27e0]
xor eax, esp
push eax
lea eax, [esp + 0x2a8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
xor ecx, ecx
mov ebx, 7
push 0x1b
mov eax, str.CFFConfig::GetNextFFProfile
lea esi, [esp + 0x18]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], cx
call fcn.004033f0
lea edx, [esp + 0x14]
xor esi, esi
push edx
mov dword [esp + 0x2b4], esi
call fcn.00403580
add esp, 4
mov dword [esp + 0x2b0], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x4160b3
mov eax, dword [esp + 0x18]
push eax
call fcn.0047cc0e
add esp, 4
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x28], esi
xor ecx, ecx
push esi
mov eax, 0x4c7eec
mov esi, ebx
mov word [esp + 0x1c], cx
call fcn.004033f0
lea edx, [esp + 0x30]
push edx
call fcn.00415e20
add esp, 4
push 1
mov eax, 0x4d0298
lea ecx, [esp + 0x34]
mov dword [esp + 0x2b4], 1
call fcn.00402d20
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41618f
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x34]
jae 0x41611a
lea eax, [esp + 0x34]
lea ecx, [esp + 0x4c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [edi], eax
cmp dword [edi], 0xffffffff
je 0x41614d
lea ecx, [ecx]
cmp word [esp + 0x78], 0x2e
je 0x41613f
test byte [esp + 0x4c], 0x10
jne 0x4161b2
mov eax, dword [edi]
lea edx, [esp + 0x4c]
push edx
push eax
call esi
test eax, eax
jne 0x416130
mov edx, dword [edi]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x48], 8
jb 0x41616a
mov eax, dword [esp + 0x34]
push eax
call fcn.0047cc0e
add esp, 4
xor al, al
mov ecx, dword [esp + 0x2a8]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x294]
xor ecx, esp
call fcn.0049bee5
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x4c]
push edx
push eax
call esi
test eax, eax
jne 0x416128
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x48], 8
jb 0x41616a
mov ecx, dword [esp + 0x34]
push ecx
jmp 0x416162
lea eax, [esp + 0x78]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4161c0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x7c]
mov esi, ebx
call fcn.004033f0
cmp dword [esp + 0x48], 8
jb 0x4161ef
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0047cc0e
add esp, 4
mov al, 1
jmp 0x41616c
Function at 0x417570
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ba6a8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e27e0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
call ebp
cmp dword [esi + 0x70], 8
jb 0x4175b0
mov esi, dword [esi + 0x5c]
jmp 0x4175b3
add esi, 0x5c
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x417632
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor eax, eax
mov word [esp + 0x1c], ax
xor ebx, ebx
push 0x3c
mov eax, str.CFFConfig::ReWritePrefFile___CreateFile_failed._GetLastError
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
call fcn.004033f0
mov ecx, edi
mov dword [esp + 0x58], ebx
call fcn.00402c10
cmp dword [esp + 0x30], 8
jb 0x41761c
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0047cc0e
add esp, 4
xor al, al
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
xor esi, esi
push esi
call ebp
cmp dword [edi + 0x18], 0x10
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x14], esi
jb 0x417649
mov eax, dword [edi + 4]
jmp 0x41764c
lea eax, [edi + 4]
push esi
lea edx, [esp + 0x18]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4176ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor eax, eax
mov dword [esp + 0x2c], esi
mov word [esp + 0x1c], ax
push 0x3b
mov eax, str.CFFConfig::ReWritePrefFile___WriteFile_failed._GetLastError
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], 7
call fcn.004033f0
mov ecx, edi
mov dword [esp + 0x58], 1
call fcn.00402c10
cmp dword [esp + 0x30], 8
jb 0x4176ad
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0047cc0e
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
mov edi, dword [edi + 0x14]
cmp dword [esp + 0x14], edi
jae 0x417704
mov eax, str.CFFConfig::ReWritePrefFile_____WriteFile_failed._size_written_too_small
lea ecx, [esp + 0x34]
call fcn.004034a0
mov dword [esp + 0x58], 2
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x34]
call fcn.00402c10
cmp dword [esp + 0x4c], 8
jb 0x4176ad
mov edx, dword [esp + 0x38]
push edx
jmp 0x4176a5
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
Function at 0x417a90
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4bbdc2
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e27e0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [edi], 0x4cc8dc
mov dword [edi + 0x58], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 8]
push esi
mov dword [esp + 0x24], ebx
push edi
mov dword [esp + 0x1c], 1
call fcn.00414430
mov dword [esp + 0x20], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [edi + ecx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov ecx, esi
call fcn.00414da0
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov edx, dword [0x4e85b8]
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov ecx, dword [esp + 0x2c]
push 1
mov byte [esp + 0x24], 2
call fcn.004145a0
test eax, eax
jne 0x417b89
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 8]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x417b82
or eax, 4
push ebx
push eax
call fcn.00411750
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8
Function at 0x423540
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test ecx, ecx
jle 0x42356d
push esi
push edi
jmp 0x423550
movzx esi, byte [edx]
movzx esi, byte [esi + 0x4cca90]
lea edi, [eax*8]
xor esi, edi
dec ecx
xor eax, esi
inc edx
test ecx, ecx
jg 0x423550
pop edi
pop esi
ret

Function at 0x4235d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
lea eax, [esi*8]
cmp eax, 0x400
jbe 0x4235ed
mov esi, 0x80
cmp esi, dword [edi]
jne 0x4235fa
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [0x4e8378]
test eax, eax
je 0x423605
call eax
lea ecx, [esi*8]
push ecx
call fcn.004204a0
mov ebp, eax
mov eax, dword [0x4e837c]
add esp, 4
mov dword [esp + 0x10], ebp
test eax, eax
je 0x423626
call eax
test ebp, ebp
je 0x4235f1
mov edx, dword [edi + 0xc]
push edx
call fcn.00420760
add esp, 4
push ebp
mov dword [edi + 0xc], ebp
call dword [0x4e4214]
mov ebx, eax
shr ebx, 3
add esp, 4
lea eax, [ebx*8]
push eax
push 0
push ebp
mov dword [esp + 0x28], ebx
mov dword [edi], ebx
call fcn.004a2540
mov ecx, dword [edi + 8]
add esp, 0xc
mov dword [edi + 8], 0
test ecx, ecx
je 0x42370f
mov edx, dword [ecx + 0x10]
mov esi, dword [ecx + 0xc]
xor eax, eax
test edx, edx
jle 0x4236a3
nop
movzx ebx, byte [esi]
movzx ebx, byte [ebx + 0x4cca90]
lea ebp, [eax*8]
xor ebx, ebp
dec edx
xor eax, ebx
inc esi
test edx, edx
jg 0x423680
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
mov edx, dword [ecx]
mov dword [esp + 0x14], edx
xor edx, edx
div ebx
lea eax, [ebp + edx*8]
test eax, eax
je 0x4236ea
mov esi, dword [eax]
test esi, esi
je 0x4236c0
mov edx, dword [eax + 4]
jmp 0x4236c2
xor edx, edx
inc esi
mov dword [eax], esi
mov dword [eax + 4], ecx
test edx, edx
je 0x4236ea
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x4236e2
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x423703
mov dword [edi + 8], ecx
mov dword [edx + 4], ecx
jmp 0x423703
mov edx, dword [edi + 8]
mov dword [ecx], edx
mov eax, dword [edi + 8]
test eax, eax
je 0x4236f9
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x423673
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret

Function at 0x423dd0
Capabilities:
Get file size

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, dword [edi + 8]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x423e01
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x423e01
mov dword [edi + 0x10], eax
pop edi
mov eax, 0x70a
pop esi
ret
mov edx, dword [esp + 0xc]
push 1
push 0
push 0
push edx
call fcn.004a3130
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [esp + 0x10]
pop edi
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop esi
ret
Function at 0x424c50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x320
mov eax, dword [0x4e27e0]
xor eax, esp
mov dword [esp + 0x31c], eax
mov eax, dword [0x4e846c]
push ebx
push ebp
mov ebp, dword [esp + 0x32c]
push esi
push edi
test eax, eax
je 0x424c95
push eax
push 0x4d1854
lea eax, [esp + 0x20]
push eax
push 0xe6
call fcn.00421d90
add esp, 0x10
jmp 0x424d3c
call fcn.00423950
test eax, eax
je 0x424ce1
lea ecx, [esp + 0x120]
push ecx
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ebx, [esp + 0x120]
call fcn.00423a10
mov esi, eax
test esi, esi
jne 0x424d1e
mov eax, 7
mov ecx, dword [esp + 0x32c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049bee5
add esp, 0x320
ret
lea eax, [esp + 0x120]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x120]
push ecx
call fcn.00423a70
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x424cc3
call fcn.00423a10
push ebx
mov esi, eax
call fcn.0049d99b
add esp, 4
test esi, esi
je 0x424cc3
push esi
push 0x4d1854
lea edx, [esp + 0x20]
push edx
push 0xe6
call fcn.00421d90
push esi
call fcn.0049d99b
add esp, 0x14
mov dl, byte [esp + 0x18]
lea eax, [esp + 0x18]
test dl, dl
je 0x424d4e
inc eax
cmp byte [eax], 0
jne 0x424d48
lea ecx, [esp + 0x18]
sub eax, ecx
and eax, 0x3fffffff
mov ecx, str.etilqs_
mov edi, edi
inc ecx
cmp byte [ecx], 0
jne 0x424d60
sub ecx, str.etilqs_
and ecx, 0x3fffffff
lea eax, [ecx + eax + 0x11]
cmp eax, 0x105
jl 0x424d87
mov eax, 1
jmp 0x424cc8
lea eax, [esp + 0x18]
test dl, dl
je 0x424d96
nop
inc eax
cmp byte [eax], 0
jne 0x424d90
lea ecx, [esp + 0x18]
sub eax, ecx
and eax, 0x3fffffff
jbe 0x424daf
dec ecx
cmp byte [ecx + eax], 0x5c
jne 0x424daf
sub eax, 1
jne 0x424da4
lea edx, [esp + 0x18]
push edx
push str._setilqs_
push ebp
push 0xf4
mov byte [esp + eax + 0x28], 0
call fcn.00421d90
add esp, 0x10
mov eax, ebp
test ebp, ebp
je 0x424de5
cmp byte [ebp], 0
je 0x424dde
inc eax
cmp byte [eax], 0
jne 0x424dd8
sub eax, ebp
and eax, 0x3fffffff
cmp dword [0x4e41f4], 0
mov esi, eax
mov edi, 0xf
lea ebx, [eax + ebp]
jne 0x424e02
mov dword [esp + 0x14], 0
jmp 0x424e20
push 5
call dword [0x4e4230]
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x424e20
push eax
call dword [0x4e4238]
add esp, 4
nop
dec edi
call fcn.00421ed0
mov byte [ebx], al
inc ebx
test edi, edi
jne 0x424e20
mov eax, dword [esp + 0x14]
test eax, eax
je 0x424e3f
push eax
call dword [0x4e4240]
add esp, 4
mov ecx, 0xf
movzx eax, byte [esi + ebp]
xor edx, edx
mov edi, 0x3e
div edi
inc esi
sub ecx, 1
mov dl, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [esi + ebp - 1], dl
jne 0x424e44
mov byte [esi + ebp], cl
xor eax, eax
jmp 0x424cc8
Function at 0x4251e0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
call fcn.00423950
mov ebx, dword [esp + 0x20]
test eax, eax
je 0x425207
call fcn.004239b0
mov edi, eax
jmp 0x425223
call fcn.004239b0
mov esi, eax
cmp esi, ebp
je 0x425227
push esi
call fcn.00423ae0
push esi
mov edi, eax
call fcn.0049d99b
add esp, 8
cmp edi, ebp
jne 0x425234
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 8
ret
call fcn.00423950
test eax, eax
je 0x425284
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea esp, [esp]
push edi
call ebx
push edi
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x42526c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
cmp eax, 5
jne 0x4252c4
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 5
mov dword [esp + 0x10], eax
jge 0x4252c4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x425250
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
call ebx
push edi
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x4252ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
cmp eax, 5
jne 0x4252c4
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 5
mov dword [esp + 0x10], eax
jge 0x4252c4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x425290
push edi
call fcn.0049d99b
add esp, 4
cmp esi, 0xffffffff
jne 0x4252e3
cmp dword [esp + 0x14], 2
jne 0x4252e3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, 0xa0a
pop ebx
add esp, 8
ret
Function at 0x425550
Capabilities:
Get disk size

Disassembly:
sub esp, 0x11c
mov eax, dword [0x4e27e0]
xor eax, esp
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x120]
push ebx
push esi
push edi
lea ecx, [esp + 0x18]
push ecx
push 0x104
push eax
push edx
mov dword [esp + 0x24], 0x200
call fcn.00425420
add esp, 0x10
test eax, eax
jne 0x4256c6
call fcn.00423950
test eax, eax
je 0x4255ab
lea ebx, [esp + 0x18]
call fcn.004239b0
mov esi, eax
jmp 0x42562e
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x24]
push eax
push 0
push 0xfde9
call ebx
mov edi, eax
lea ecx, [edi + edi]
push ecx
call fcn.0049da78
mov esi, eax
add esp, 4
test esi, esi
je 0x4256a9
push edi
push esi
push 0xffffffffffffffff
lea edx, [esp + 0x24]
push edx
push 0
push 0xfde9
call ebx
push esi
test eax, eax
jne 0x425619
call fcn.0049d99b
add esp, 4
mov eax, 0x200
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0049bee5
add esp, 0x11c
ret
call fcn.00423ae0
add esp, 4
push esi
mov edi, eax
call fcn.0049d99b
add esp, 4
mov esi, edi
test esi, esi
je 0x4256a9
call fcn.00423950
test eax, eax
mov eax, esi
je 0x425670
cmp word [esi], 0
je 0x425659
cmp word [eax], 0x5c
je 0x425654
add eax, 2
cmp word [eax], 0
jne 0x425643
jmp 0x425659
xor ecx, ecx
mov word [eax], cx
lea edx, [esp + 0x10]
push edx
mov eax, edx
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x42569a
cmp byte [esi], 0
je 0x425685
cmp byte [eax], 0x5c
je 0x425682
inc eax
cmp byte [eax], 0
jne 0x425675
jmp 0x425685
mov byte [eax], 0
lea eax, [esp + 0x10]
push eax
mov ecx, eax
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov edi, eax
call fcn.0049d99b
add esp, 4
test edi, edi
jne 0x4256c6
mov eax, 0x200
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0049bee5
add esp, 0x11c
ret
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049bee5
add esp, 0x11c
ret

Function at 0x425950
Capabilities:
Get system information on windows

Disassembly:
xor eax, eax
push 0x4e9760
mov dword [0x4e9760], eax
mov dword [0x4e9764], eax
mov dword [0x4e9768], eax
mov dword [0x4e976c], eax
mov dword [0x4e9770], eax
mov dword [0x4e9774], eax
mov dword [0x4e9778], eax
mov dword [0x4e977c], eax
mov dword [0x4e9780], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call fcn.00478930
test eax, eax
jne 0x4259eb
push esi
cmp dword [0x4e41f4], eax
jne 0x4259a0
xor esi, esi
jmp 0x4259bb
push 2
call dword [0x4e4230]
mov esi, eax
add esp, 4
test esi, esi
je 0x4259bb
push esi
call dword [0x4e4238]
add esp, 4
mov edx, 0x4e4430
call fcn.0041fbc0
mov eax, dword [0x4e8324]
mov dword [0x4e443c], eax
mov dword [0x4e8324], 0x4e4430
test esi, esi
je 0x4259e7
push esi
call dword [0x4e4240]
add esp, 4
xor eax, eax
pop esi
ret
xor eax, eax
ret
Function at 0x429c20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [esi + 0x3c]
sub esp, 0x14
push ebx
xor ebx, ebx
push ebp
push edi
cmp dword [edx], ebx
jne 0x429c53
mov eax, dword [esi + 0x78]
mov ecx, dword [esi]
or eax, 0x1e
push ebx
and eax, 0x87f3f
push eax
mov eax, dword [ecx + 0x18]
push edx
push ebx
push ecx
call eax
add esp, 0x14
test eax, eax
jne 0x429d2f
mov ebx, eax
mov ecx, dword [esi + 0x18]
cmp ecx, dword [esi + 0x24]
jbe 0x429c8f
mov eax, dword [esi + 0x80]
push 0
cdq
push ecx
push edx
push eax
call fcn.004a3130
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 5
push eax
mov eax, dword [ecx + 0x28]
call eax
mov ecx, dword [esi + 0x18]
add esp, 0xc
mov dword [esi + 0x24], ecx
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x429d2d
mov edi, dword [ebp + 0xc]
cmp edi, dword [esi + 0x18]
ja 0x429d1e
test byte [ebp + 0x14], 0x20
jne 0x429d1e
mov ebx, dword [esi + 0x80]
mov eax, ebx
cdq
push edx
push eax
lea ecx, [edi - 1]
push 0
push ecx
call fcn.004a3130
mov ecx, dword [esi + 0x3c]
mov ebp, dword [ebp]
push edx
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
push edx
push ebx
push ebp
push ecx
call eax
add esp, 0x14
mov dword [esp + 0x10], eax
cmp edi, 1
jne 0x429d00
mov ecx, dword [ebp + 0x18]
lea eax, [ebp + 0x18]
mov dword [esi + 0x64], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x68], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0x6c], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x70], edx
cmp edi, dword [esi + 0x20]
jbe 0x429d08
mov dword [esi + 0x20], edi
mov eax, dword [esp + 0x24]
mov ebx, dword [eax]
mov eax, dword [esi + 0x58]
call fcn.00438da0
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x24], ecx
test ebx, ebx
je 0x429c8f
mov eax, ebx
pop edi
pop ebp
pop ebx
add esp, 0x14
ret