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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed5d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x54c1b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x431ffc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi + 0x2d6]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x431fca
cmp dword [esi + 0x8f8], 0
jne 0x431ea9
mov eax, esi
call fcn.00431de0
test al, al
je 0x431ffc
mov eax, dword [esi + 0x8f8]
mov ecx, dword [eax]
push 0
lea edx, [esi + 0x4e0]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jns 0x431ed6
add esi, 4
mov edi, str.SetURL
call fcn.00432a90
jmp 0x431ffc
lea edi, [esi + 0x6ea]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431ee1
sub eax, edx
sar eax, 1
mov ebx, 0xffffffff
je 0x431f44
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x431f44
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x8f8]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x4f899c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x431f32
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push edi
push eax
call edx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x431f44
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x8f8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push 0x4fc7fc
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x431f8e
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jns 0x431fa2
add esi, 4
mov edi, 0x516238
call fcn.00432a90
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x431ffc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x431ffc
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x431fb4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
add esi, 4
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431fd2
sub eax, edx
sar eax, 1
add eax, eax
push eax
push 0
push esi
call fcn.004c3610
push 0x516204
push 0x64
push esi
call fcn.004be6b7
add esp, 0x18
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x432030
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed58b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
push edi
mov esi, ecx
mov dword [ebp - 0x224], edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
je 0x432207
lea edi, [esi + 0x2d6]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x432207
cmp dword [esi + 0x8f4], 0
jne 0x4320a4
mov eax, esi
call fcn.00431d80
test al, al
je 0x43223a
mov eax, dword [esi + 0x8f4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push edi
push eax
call edx
lea edx, [esi + 0xcc]
mov eax, edx
lea ebx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4320c0
sub eax, ebx
sar eax, 1
je 0x4320e0
mov eax, dword [esi + 0x8f4]
mov ecx, dword [eax]
push edx
mov edx, dword [ecx + 0x2c]
push eax
call edx
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x21a]
push ecx
mov word [ebp - 0x21c], ax
call fcn.004c3610
add esp, 0xc
test edi, edi
je 0x432124
lea ebx, [ebp - 0x21c]
mov eax, edi
call fcn.00432800
test al, al
je 0x432124
mov eax, dword [esi + 0x8f4]
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
mov ecx, ebx
push ecx
push eax
call edx
lea ebx, [esi + 0x6ea]
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x432130
sub eax, edx
sar eax, 1
je 0x43215d
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43215d
mov eax, dword [esi + 0x8f4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push ebx
push eax
call edx
xor edi, edi
mov dword [ebp - 0x220], edi
mov dword [ebp - 4], edi
mov eax, dword [esi + 0x8f4]
mov ecx, dword [eax]
lea edx, [ebp - 0x220]
push edx
push 0x4fc7fc
push eax
mov eax, dword [ecx]
call eax
cmp eax, edi
jge 0x4321a7
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x43223a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x43223a
mov eax, dword [ebp - 0x220]
mov edx, dword [ebp - 0x224]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
cmp eax, edi
jge 0x4321ea
add esi, 4
mov edi, 0x516250
call fcn.00432a90
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x43223a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x43223a
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x432203
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, 1
jmp 0x43223c
add esi, 4
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x432210
sub eax, edx
sar eax, 1
add eax, eax
push eax
push 0
push esi
call fcn.004c3610
push 0x516204
push 0x64
push esi
call fcn.004be6b7
add esp, 0x18
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret
Function at 0x432260
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x208
mov esi, ecx
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.004c3610
add esp, 0xc
push 0
push 0x10
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4322ee
add esi, 4
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4322b3
sub eax, edx
sar eax, 1
add eax, eax
push eax
push 0
push esi
call fcn.004c3610
push 0x516268
push 0x64
push esi
call fcn.004be6b7
add esp, 0x18
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret
push 0x5118c0
lea ecx, [ebp - 0x210]
push 0x105
push ecx
call fcn.004be71a
push edi
lea edx, [ebp - 0x210]
push 0x105
push edx
call fcn.004be71a
push str..lnk
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.004be71a
add esp, 0x24
lea edx, [ebp - 0x210]
mov ecx, esi
call fcn.00432030
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret

Function at 0x432750
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.004c3610
mov edx, dword [ebp + 8]
add esp, 0xc
push 0
push edx
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x5118c0
lea ecx, [ebp - 0x210]
push 0x105
push ecx
call fcn.004be71a
push esi
lea edx, [ebp - 0x210]
push 0x105
push edx
call fcn.004be71a
push str..lnk
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.004be71a
add esp, 0x24
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret

Function at 0x432800
Capabilities:
Check if file exists

Disassembly:
push edi
mov edi, eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x432812
xor al, al
pop edi
ret
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x432817
sub eax, edx
sar eax, 1
push esi
lea esi, [eax - 1]
test esi, esi
js 0x43283a
mov edi, edi
cmp word [edi + esi*2], 0x5c
je 0x43283a
dec esi
jns 0x432830
mov edx, edi
xor ecx, ecx
mov eax, ebx
sub edx, ebx
cmp ecx, esi
jge 0x432859
mov di, word [edx + eax]
mov word [eax], di
inc ecx
add eax, 2
cmp ecx, 0x104
jl 0x432842
pop esi
mov al, 1
pop edi
ret
Function at 0x4335f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f02d3
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x54c1b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
or ecx, 0xffffffff
mov dword [esi + 8], ecx
mov dword [esi + 4], ecx
xor edx, edx
mov dword [esi + 0xc], edx
mov dword [esi + 0x30], edx
mov ebx, 0xf
mov dword [esi + 0x34], ebx
mov byte [esi + 0x20], dl
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 1
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [ebp - 4], edx
lea eax, [esi + 0x44]
mov dword [esi], vtable.TiXmlElement.0
mov dword [eax + 8], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], edx
mov dword [eax], vtable.TiXmlAttribute.0
mov dword [eax + 0x28], ebx
mov dword [eax + 0x24], edx
mov byte [eax + 0x14], dl
mov dword [eax + 0x44], ebx
mov dword [eax + 0x40], edx
mov byte [eax + 0x30], dl
mov dword [eax + 0x10], edx
mov dword [eax + 0x50], eax
mov dword [eax + 0x4c], eax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], edx
mov dword [esi + 0x18], edx
lea ecx, [eax + 1]
lea ebx, [ebx]
mov bl, byte [eax]
inc eax
cmp bl, dl
jne 0x433690
sub eax, ecx
push eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esi + 0x20]
call fcn.00408040
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x434510
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f02a3
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x54c1b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x30], ebx
mov edx, 0xf
mov dword [esi + 0x34], edx
mov byte [esi + 0x20], bl
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [ebp - 4], ebx
lea ecx, [esi + 0x4c]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x10], ebx
mov byte [ecx], bl
mov byte [ebp - 4], 1
mov dword [esi + 0x70], eax
mov dword [esi + 0x6c], eax
push ebx
push 0x512c6e
mov dword [esi + 0x68], 4
mov byte [esi + 0x74], bl
mov byte [esi + 0x44], bl
mov dword [esi + 0x48], ebx
call fcn.00408040
mov dword [esi + 0x70], ebx
mov dword [esi + 0x6c], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x434aa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
test ebx, ebx
jne 0x434aeb
cmp byte [esi + 0x44], bl
jne 0x434ae3
mov byte [esi + 0x44], 1
mov dword [esi + 0x48], 2
mov edx, dword [str.Failed_to_open_file]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x434ac7
sub eax, edi
push eax
push edx
lea ecx, [esi + 0x4c]
call fcn.00408040
or eax, 0xffffffff
mov dword [esi + 0x70], eax
mov dword [esi + 0x6c], eax
pop edi
xor al, al
pop ebx
pop ebp
ret 8
mov edi, dword [esi + 0x18]
test edi, edi
je 0x434b03
mov ecx, edi
mov eax, dword [ecx]
mov edx, dword [eax]
mov edi, dword [edi + 0x40]
push 1
call edx
test edi, edi
jne 0x434af2
xor eax, eax
push 2
push eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
or edi, 0xffffffff
push ebx
mov dword [esi + 8], edi
mov dword [esi + 4], edi
call fcn.004beac9
push ebx
call fcn.004becd9
push 0
mov ebx, eax
mov eax, dword [ebp + 8]
push 0
push eax
call fcn.004beac9
add esp, 0x1c
test ebx, ebx
jg 0x434b76
cmp byte [esi + 0x44], 0
jne 0x434b6e
mov byte [esi + 0x44], 1
mov dword [esi + 0x48], 0xd
mov edx, dword [str.Error_null__0__or_unexpected_EOF_found_in_input_stream.]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x434b55
sub eax, ebx
push eax
push edx
lea ecx, [esi + 0x4c]
call fcn.00408040
mov dword [esi + 0x70], edi
mov dword [esi + 0x6c], edi
pop edi
xor al, al
pop ebx
pop ebp
ret 8
lea ecx, [ebx + 1]
push ecx
call fcn.00475003
mov edx, dword [ebp + 8]
push edx
push 1
mov edi, eax
push ebx
push edi
mov byte [edi], 0
call fcn.004bca5b
add esp, 0x14
cmp eax, 1
je 0x434bce
push edi
call fcn.004bcb93
add esp, 4
cmp byte [esi + 0x44], 0
jne 0x434ae3
mov byte [esi + 0x44], 1
mov dword [esi + 0x48], 2
mov edx, dword [str.Failed_to_open_file]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x434bc2
jmp 0x434ace
mov byte [edi + ebx], 0
cmp byte [edi], 0
mov eax, edi
mov ecx, edi
je 0x434bfc
jmp 0x434be0
mov dl, byte [eax]
cmp dl, 0xd
jne 0x434bf3
mov byte [ecx], 0xa
inc eax
inc ecx
cmp byte [eax], 0xa
jne 0x434bf7
jmp 0x434bf6
mov byte [ecx], dl
inc ecx
inc eax
cmp byte [eax], 0
jne 0x434be0
mov byte [ecx], 0
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi]
mov edx, dword [eax + 8]
push ecx
push 0
push edi
mov ecx, esi
call edx
push edi
call fcn.004bcb93
add esp, 4
xor eax, eax
cmp byte [esi + 0x44], al
pop edi
sete al
pop ebx
pop ebp
ret 8
Function at 0x43c230
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x43c237
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x43c30d
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x514fd8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x514fd8]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x514fd8]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x514fd8]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x514fd8]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x514fd8]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x514fd8]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x514fd8]
add ecx, 8
sub edx, 8
dec esi
jne 0x43c250
pop edi
test edx, edx
je 0x43c32a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x514fd8]
inc ecx
dec edx
jne 0x43c311
not eax
pop esi
ret

Function at 0x43c330
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x514fd8]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x514fd8]
mov dword [edx + 8], ecx
ret

Function at 0x43c3a0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x514fd8]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x514fd8]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x43ccc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x43ccf6
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43ccec
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x43cd07
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.004bfd90
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret
Function at 0x43cd30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x43cd63
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43cd5e
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x43cd8e
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x43cd75
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.004bfd90
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x43cda3
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x43cd9d
cmp byte [esi + 8], 0
je 0x43cd9d
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x43cef0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x43cf37
cmp byte [esi + 1], 0
je 0x43cf3f
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x43cf52
cmp byte [esi + 1], 0
je 0x43cf46
mov eax, dword [esi + 4]
push 1
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [esi + 0xc]
mov ebx, eax
mov dword [ebp - 4], ebx
jmp 0x43cf5a
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x43cf11
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x43cf5a
mov edx, dword [esi + 0x1c]
mov dword [ebp - 4], edx
mov ebx, edx
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x43cf6c
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.004bc710
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x43cf89
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0xffffffff
cmp edi, eax
jbe 0x43d08e
lea ecx, [ecx]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x43cfaf
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x43cfc6
mov ebx, 0x404
cmp byte [esi], 0
je 0x43cfeb
cmp byte [esi + 1], 0
je 0x43d08e
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x43cfee
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x43d017
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43d012
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x43d040
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x43d028
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.004bfd90
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x43d08e
lea eax, [ebx - 3]
test eax, eax
js 0x43d073
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x43d06f
cmp byte [eax + ecx + 1], 0x4b
jne 0x43d06f
cmp byte [eax + ecx + 2], 5
jne 0x43d06f
cmp byte [eax + ecx + 3], 6
je 0x43d088
test eax, eax
jns 0x43d050
mov eax, dword [ebp - 8]
cmp dword [ebp - 0xc], eax
jae 0x43d08e
mov ebx, dword [ebp - 4]
mov edi, eax
mov eax, dword [ebp - 0xc]
jmp 0x43cfa0
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.004bcb59
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43e250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi], 0
push edi
jne 0x43e30a
cmp dword [esi + 4], 0xffffffff
jne 0x43e30a
lea edi, [esi + 0x244]
push edi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43e280
sub eax, edx
sar eax, 1
movzx ecx, word [esi + eax*2 + 0x242]
cmp ecx, 0x5c
je 0x43e2ac
cmp ecx, 0x2f
je 0x43e2ac
mov dword [esi + eax*2 + 0x244], 0x2f
mov edi, dword [ebp + 0xc]
cmp edi, 1
jne 0x43e2d0
push edi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x43e2d0
mov eax, 0x2000000
pop edi
pop ecx
pop ebp
ret 8
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push edi
push ecx
push ebx
call fcn.0043caa0
add esp, 0x10
test eax, eax
jne 0x43e2ef
mov eax, dword [ebp + 0xc]
pop edi
pop ecx
pop ebp
ret 8
call fcn.0043d0b0
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ecx
pop ebp
ret 8
mov eax, 0x1000000
pop edi
pop ecx
pop ebp
ret 8
Function at 0x43eb00
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x43eb8b
push 0x104
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004be66b
lea eax, [ebp - 0x414]
add esp, 0xc
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43eb40
sub eax, edx
sar eax, 1
je 0x43eb6a
lea ecx, [ebp + eax*2 - 0x416]
movzx eax, word [ecx]
cmp eax, 0x2f
je 0x43eb65
cmp eax, 0x5c
jne 0x43eb6a
xor edx, edx
mov word [ecx], dx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43eb8b
push 0
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [edi]
test ax, ax
je 0x43ec6f
mov ecx, edi
mov edx, edi
jmp 0x43eba0
cmp ax, 0x2f
je 0x43ebac
cmp ax, 0x5c
jne 0x43ebae
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x43eba0
cmp ecx, edi
je 0x43ebef
sub ecx, edi
push esi
sar ecx, 1
lea esi, [ecx + ecx]
push esi
lea edx, [ebp - 0x414]
push edi
push edx
call fcn.004bfd90
lea ecx, [ebp - 0x414]
push ecx
xor eax, eax
push ebx
mov word [ebp + esi - 0x414], ax
call fcn.0043eb00
add esp, 0x14
pop esi
xor edx, edx
mov word [ebp - 0x20c], dx
test ebx, ebx
je 0x43ec11
push 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004be66b
add esp, 0xc
xor ecx, ecx
lea eax, [ebp - 0x20c]
mov word [ebp - 6], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43ec20
sub eax, edx
sar eax, 1
mov edx, 0x104
sub edx, eax
push edx
lea eax, [ebp + eax*2 - 0x20c]
push edi
push eax
call fcn.004be66b
add esp, 0xc
lea edx, [ebp - 0x20c]
xor ecx, ecx
push edx
mov word [ebp - 6], cx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43ec6f
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret