joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e744
Capabilities:
Get mac address on windows

Disassembly:
mov eax, 0x4651e0
call fcn.00452ab4
sub esp, 0x48
push ebx
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp dword [ebp - 0x10], ebx
jne 0x41e77b
mov ecx, dword [ebp + 8]
push 0x472e5a
call fcn.0041c1c2
jmp 0x41e865
push esi
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
call fcn.0041acc8
mov dword [ebp - 4], ebx
push dword [ebp - 0x10]
call fcn.00450529
mov esi, eax
pop ecx
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp - 0x14], esi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x41e829
cmp esi, ebx
je 0x41e829
push edi
cmp dword [esi + 0x190], ebx
je 0x41e822
cmp dword [ebp - 0x1c], ebx
je 0x41e7ca
push 0x47504c
lea ecx, [ebp - 0x30]
call fcn.004156e1
cmp dword [esi + 0x190], ebx
jbe 0x41e822
push 8
pop ecx
xor eax, eax
mov byte [ebp - 0x54], 0
lea edi, [ebp - 0x53]
rep stosd dword es:[edi], eax
movzx eax, byte [esi + ebx + 0x194]
push eax
lea eax, [ebp - 0x54]
push str._02X
push eax
call fcn.00451b45
add esp, 0xc
test ebx, ebx
jbe 0x41e80b
push 0x476bf8
lea ecx, [ebp - 0x30]
call fcn.004156e1
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x30]
call fcn.004156e1
inc ebx
cmp ebx, dword [esi + 0x190]
jb 0x41e7d2
xor ebx, ebx
mov esi, dword [esi]
cmp esi, ebx
jne 0x41e7b0
pop edi
push dword [ebp - 0x14]
call fcn.0045053b
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
pop ecx
pop esi
jae 0x41e83f
lea eax, [ebp - 0x2c]
push eax
push str.MACS_____s
push ebx
call fcn.004418d2
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
call fcn.0041c33e
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.0041b413
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41f341
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4679a4
call fcn.00452ab4
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0x10
jb 0x41f34f
mov eax, dword [esi + 4]
jmp 0x41f352
lea eax, [esi + 4]
push dword [ebp + 8]
push eax
push str.CompInfo::TestFileExists_532
push str._s__f_s_isDir_d
push 0
call fcn.004418d2
add esp, 0x14
push esi
lea ecx, [ebp - 0x28]
call fcn.0041c33e
and dword [ebp - 4], 0
push 3
lea ebx, [ebp - 0x28]
call fcn.004229f2
cmp dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x24]
pop ecx
jae 0x41f38e
lea eax, [ebp - 0x24]
push eax
push str.__fullpath_s
xor esi, esi
push esi
call fcn.004418d2
mov eax, dword [ebp - 0x24]
add esp, 0xc
cmp dword [ebp - 0x10], 0x10
jae 0x41f3ab
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x41f3ba
xor bl, bl
jmp 0x41f3e8
cmp dword [ebp + 8], esi
jge 0x41f3c3
mov bl, 1
jmp 0x41f3e8
cmp dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x24]
jae 0x41f3cf
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x41f3e2
cmp dword [ebp + 8], esi
setne bl
jmp 0x41f3e8
cmp dword [ebp + 8], esi
sete bl
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.0041b413
mov ecx, dword [ebp - 0xc]
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41f8be
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41f911
cmp dword [ebp + 0xc], 1
je 0x41f8f3
cmp dword [ebp + 0xc], 2
jne 0x41f905
test edi, edi
mov eax, dword [ebp - 4]
je 0x41f90d
test eax, eax
je 0x41f90a
cmp byte [eax + edi - 1], 0
je 0x41f90d
push 0xd
pop eax
jmp 0x41f911
mov byte [edi], 0
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x4203ac
Capabilities:
Link many functions at runtime

Disassembly:
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.sqlite3_libversion_number
push dword [esi + 0x1c]
call edi
push str.sqlite3_open
push dword [esi + 0x1c]
mov dword [esi], eax
call edi
push str.sqlite3_prepare
push dword [esi + 0x1c]
mov dword [esi + 4], eax
call edi
push str.sqlite3_step
push dword [esi + 0x1c]
mov dword [esi + 8], eax
call edi
push str.sqlite3_finalize
push dword [esi + 0x1c]
mov dword [esi + 0xc], eax
call edi
push str.sqlite3_column_text
push dword [esi + 0x1c]
mov dword [esi + 0x14], eax
call edi
push str.sqlite3_close
push dword [esi + 0x1c]
mov dword [esi + 0x10], eax
call edi
xor ecx, ecx
cmp dword [esi], ecx
mov dword [esi + 0x18], eax
pop edi
je 0x420435
cmp dword [esi + 4], ecx
je 0x420435
cmp dword [esi + 8], ecx
je 0x420435
cmp dword [esi + 0xc], ecx
je 0x420435
cmp dword [esi + 0x14], ecx
je 0x420435
cmp dword [esi + 0x10], ecx
je 0x420435
cmp eax, ecx
je 0x420435
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x42050f
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x93c
push ebx
push edi
push 0xe
mov ebx, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
push 0x100
lea eax, [ebp - 0x13c]
xor edi, edi
push edi
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x2c], eax
call fcn.00450330
push 0x800
lea eax, [ebp - 0x93c]
push edi
push eax
mov dword [ebp - 0x28], 0xff
mov dword [ebp - 0x10], eax
call fcn.00450330
mov eax, dword [ebx + 0x14]
add esp, 0x18
cmp dword [ebx + 0x18], 0x10
mov dword [ebp - 0xc], 0x7ff
jb 0x420578
mov ebx, dword [ebx + 4]
jmp 0x42057b
add ebx, 4
lea ecx, [ebp - 0x3c]
push ecx
push edi
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov eax, dword [ebp - 0x30]
push dword [ebp - 0x2c]
lea ecx, [esi + 4]
mov dword [esi], eax
call fcn.0041bbeb
push dword [ebp - 0x10]
lea ecx, [esi + 0x20]
call fcn.0041bbeb
movzx eax, word [ebp - 0x24]
pop edi
mov dword [esi + 0x3c], eax
pop ebx
leave
ret
Function at 0x420c99
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push edi
mov ecx, esi
call fcn.004205ae
test al, al
jne 0x420caa
xor eax, eax
pop ecx
ret
push 8
call fcn.0044eef4
test eax, eax
pop ecx
je 0x420cbd
mov dword [eax], edi
mov dword [eax + 4], esi
jmp 0x420cbf
xor eax, eax
lea ecx, [esp]
push ecx
push 4
push eax
push 0x420cf0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
mov dword [esi + 0x5c], eax
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov eax, dword [esi + 0x5c]
pop ecx
ret
Function at 0x42141e
Capabilities:
Create directory
Get common file path

Disassembly:
mov eax, 0x4661c5
call fcn.00452ab4
sub esp, 0x1b4
push ebx
push esi
push edi
mov esi, str.fs::CreateTemp_412
mov dword [ebp - 0x10], esp
push esi
call fcn.00450e4d
mov dword [ebp - 0x14], eax
push esi
xor ebx, ebx
push 0x475f78
push ebx
mov dword [ebp - 4], ebx
call fcn.004418d2
add esp, 0x10
push 0x40
mov byte [ebp - 4], 1
pop ecx
xor eax, eax
mov byte [ebp - 0x1c0], bl
lea edi, [ebp - 0x1bf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c0]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
lea eax, [ebp - 0x70]
push eax
call fcn.00421914
pop ecx
mov esi, eax
lea eax, [ebp - 0x1c0]
push eax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 2
call fcn.0041c1c2
push 0x4796f8
push eax
lea eax, [ebp - 0xbc]
push eax
mov byte [ebp - 4], 3
call fcn.00418a32
add esp, 0xc
push esi
push eax
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 4
call fcn.00418bb5
add esp, 0xc
push 0x4796fc
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 5
call fcn.00418a32
add esp, 0xc
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push ebx
add esi, 0x28
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.0041af25
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x34]
call fcn.0041b413
push ebx
push edi
lea ecx, [ebp - 0x54]
call fcn.0041b413
push ebx
push edi
lea ecx, [ebp - 0xbc]
call fcn.0041b413
push ebx
push edi
lea ecx, [ebp - 0xa0]
call fcn.0041b413
push ebx
push edi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.0041b413
cmp dword [esi + 0x18], 0x10
jb 0x421544
mov eax, dword [esi + 4]
jmp 0x421547
lea eax, [esi + 4]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
jne 0x421625
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0x472e5a
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x18], eax
call fcn.0041c1c2
push str.INVALID_FILENAME
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 7
push dword [0x490704]
call fcn.0041db8b
mov byte [ebp - 4], 8
cmp dword [eax + 0x18], 0x10
jb 0x421594
mov eax, dword [eax + 4]
jmp 0x421597
add eax, 4
push eax
lea ecx, [ebp - 0x54]
call fcn.0041c1c2
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 9
mov ecx, dword [ecx]
push eax
lea edi, [ebp - 0x34]
xor eax, eax
call fcn.00409d02
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.0041b413
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.0041b413
push ebx
push 1
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0041b413
push 0x472e5a
lea ecx, [ebp - 0x70]
call fcn.0041c1c2
lea eax, [ebp - 0x70]
push eax
push 2
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xa
call fcn.0041c1e4
mov byte [ebp - 4], 0xb
cmp dword [esi + 0x18], 0x10
jb 0x421609
mov esi, dword [esi + 4]
jmp 0x42160c
add esi, 4
push dword [ebp - 0x18]
push esi
push str.fs::CreateTemp_failed__temp_s__err_d_
push eax
call fcn.0041ba49
add esp, 0x10
mov ecx, eax
call fcn.0041c220
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x14]
call fcn.0041bdf9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x42168d
Capabilities:
Check if file exists
Delete directory
Delete file
Set current directory

Disassembly:
mov eax, 0x467992
call fcn.00452ab4
sub esp, 0x30
push ebx
push esi
push edi
mov esi, str.fs::ClearTemp_433
mov dword [ebp - 0x10], esp
push esi
call fcn.00450e4d
mov dword [ebp - 0x18], eax
push esi
xor edi, edi
push 0x475f78
push edi
mov dword [ebp - 4], edi
call fcn.004418d2
mov ebx, dword [ebp + 8]
add ebx, 0x44
add esp, 0x10
push ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
lea esi, [ebx + 0x18]
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], edi
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
je 0x42171e
cmp dword [edi + 0x18], 0x10
jb 0x4216ef
mov eax, dword [edi + 4]
jmp 0x4216f2
lea eax, [edi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x421716
cmp dword [edi + 0x18], 0x10
jb 0x421708
mov eax, dword [edi + 4]
jmp 0x42170b
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
je 0x421719
inc dword [ebp - 0x14]
add edi, 0x1c
jmp 0x4216df
mov eax, esi
call fcn.0042dca0
push eax
push dword [ebp - 0x14]
xor edi, edi
push str.__remove__d__d_files
push edi
call fcn.004418d2
add esp, 0x10
call fcn.00416b9b
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp byte [ebp + 0xc], 0
jne 0x4217bc
mov esi, dword [ebp + 8]
cmp dword [esi + 0x3c], edi
je 0x4217bc
lea eax, [ebp - 0x3c]
push eax
call fcn.00422376
cmp dword [eax + 0x18], 0x10
pop ecx
jb 0x42176c
mov eax, dword [eax + 4]
jmp 0x42176f
add eax, 4
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
push edi
push 1
lea ecx, [ebp - 0x3c]
call fcn.0041b413
add esi, 0x28
cmp dword [esi + 0x18], 0x10
jb 0x42178f
mov eax, dword [esi + 4]
jmp 0x421792
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
test eax, eax
jne 0x4217b2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.__cant_remove_temp__err_d
push edi
call fcn.004418d2
add esp, 0xc
push 0xffffffffffffffff
push edi
mov ecx, esi
call fcn.0041ac57
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x18]
call fcn.0041bdf9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x421966
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4642fc
call fcn.00452ab4
sub esp, 0x5c
push ebx
push esi
push dword [ebp + 8]
xor esi, esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], esi
call fcn.0041c33e
push str..html
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], esi
call fcn.0041c1c2
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
push str..mht
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x14], ebx
call fcn.0041c1c2
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x14], 3
call fcn.0044e050
add esp, 0xc
test eax, eax
je 0x4219eb
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4219dd
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
mov byte [ebp - 0xd], bl
jne 0x4219ef
mov byte [ebp - 0xd], 0
push esi
push ebx
lea ecx, [ebp - 0x4c]
call fcn.0041b413
push esi
push ebx
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], esi
call fcn.0041b413
cmp byte [ebp - 0xd], 0
mov ecx, edi
je 0x421a14
lea eax, [ebp - 0x30]
push eax
jmp 0x421a17
push dword [ebp + 8]
call fcn.0041c33e
push esi
lea ecx, [ebp - 0x30]
push ebx
call fcn.0041b413
mov ecx, dword [ebp - 0xc]
pop esi
mov eax, edi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x421aff
Capabilities:
Reference http user-agent string

Disassembly:
mov eax, 0x4642b8
call fcn.00452ab4
sub esp, 0x8ac
push ebx
push esi
push edi
push str.APPCOMPANY
lea eax, [ebp - 0x64]
xor ebx, ebx
push eax
mov dword [ebp - 0x10], ebx
push dword [0x490704]
call fcn.0041db8b
push str._Agent___
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], ebx
call fcn.00418a32
add esp, 0xc
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.0041b413
xor eax, eax
mov byte [ebp - 0x8b8], bl
mov ecx, 0x1ff
lea edi, [ebp - 0x8b7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x8b8]
push eax
push ebx
mov dword [ebp - 0x10], 0x800
call sub.urlmon.dll_ObtainUserAgentString
cmp eax, ebx
jl 0x421b94
lea eax, [ebp - 0x8b8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041bbeb
mov edi, 0x473cf4
push edi
lea ecx, [ebp - 0x48]
call fcn.0041c1c2
lea eax, [ebp - 0x9c]
push 0x9a0
push eax
mov byte [ebp - 4], 3
call fcn.0044e140
push eax
lea eax, [ebp - 0x80]
push str.__OI_build
push eax
mov byte [ebp - 4], 4
call fcn.0041b639
push edi
push eax
lea eax, [ebp - 0xb8]
push eax
mov byte [ebp - 4], 5
call fcn.00418a32
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 6
call fcn.0044e050
add esp, 0x2c
push ebx
push esi
lea ecx, [ebp - 0xb8]
call fcn.0041b413
push ebx
push esi
lea ecx, [ebp - 0x80]
call fcn.0041b413
push ebx
push esi
lea ecx, [ebp - 0x9c]
call fcn.0041b413
push ebx
push esi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.0041b413
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.0041c33e
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0041b413
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x421c4b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x10]
xor edi, edi
push dword [ebp + 0xc]
push str.fs::LoadResourceToString_563
push str._s__id_d_type_s_
push edi
call fcn.004418d2
movzx eax, word [ebp + 0xc]
add esp, 0x14
push dword [ebp + 0x10]
push eax
push dword [0x4901cc]
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
cmp esi, edi
je 0x421d03
cmp esi, 0xffffffff
je 0x421d03
push esi
push dword [0x4901cc]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebx, eax
cmp ebx, edi
jne 0x421cac
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x47958c
jmp 0x421ce5
push esi
push dword [0x4901cc]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov esi, eax
push esi
push str.__size:__d
push edi
call fcn.004418d2
add esp, 0xc
cmp esi, edi
jbe 0x421d10
push ebx
call dword [sym.imp.KERNEL32.DLL_LockResource]
cmp eax, edi
jne 0x421cf5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x479560
push str.___s_failed:__d
push edi
call fcn.004418d2
add esp, 0x10
jmp 0x421d10
mov ecx, dword [ebp + 8]
push esi
push eax
call fcn.0041bc08
mov al, 1
jmp 0x421d12
push str.__not_found
push edi
call fcn.004418d2
pop ecx
pop ecx
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x421d17
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x4650b1
call fcn.00452ab4
sub esp, 0x460
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0x10
push edi
mov dword [ebp - 0x10], esp
lea edi, [esi + 4]
jb 0x421d3c
mov eax, dword [edi]
jmp 0x421d3e
mov eax, edi
push eax
push str.fs::LoadFileToString_598
push str._s__fn_s_
xor ebx, ebx
push ebx
call fcn.004418d2
add esp, 0x10
mov dword [ebp - 4], ebx
cmp dword [esi + 0x18], 0x10
jb 0x421d5f
mov edi, dword [edi]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, ebx
mov byte [ebp - 4], 1
je 0x421e2a
cmp esi, 0xffffffff
je 0x421e2a
push ebx
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push 0x400
lea eax, [ebp - 0x46c]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x421dd8
cmp dword [ebp - 0x14], ebx
jbe 0x421dd8
push dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x46c]
push eax
call fcn.00416754
add edi, dword [ebp - 0x14]
jmp 0x421da0
cmp edi, dword [ebp - 0x18]
jae 0x421e10
push 0x472e5a
lea ecx, [ebp - 0x58]
call fcn.0041c1c2
lea eax, [ebp - 0x58]
push eax
push 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.0041c1e4
mov esi, eax
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Cant_load_file__err_d_
jmp 0x421e5b
cmp esi, ebx
je 0x421e1b
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
push 0x472e5a
lea ecx, [ebp - 0x58]
call fcn.0041c1c2
lea eax, [ebp - 0x58]
push eax
push 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.0041c1e4
mov esi, eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Cant_open_file__err_d_
push esi
call fcn.0041ba49
add esp, 0xc
mov ecx, eax
jmp fcn.0041c220
Function at 0x421ecf
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x465077
call fcn.00452ab4
sub esp, 0x5c
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0x10
push edi
mov dword [ebp - 0x10], esp
lea edi, [esi + 4]
jb 0x421ef1
mov eax, dword [edi]
jmp 0x421ef3
mov eax, edi
push eax
push str.fs::SaveFileFromBuffer_629
push str._s__fn_s_
xor ebx, ebx
push ebx
call fcn.004418d2
add esp, 0x10
mov dword [ebp - 4], ebx
cmp dword [esi + 0x18], 0x10
jb 0x421f14
mov edi, dword [edi]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, ebx
mov byte [ebp - 4], 1
je 0x421f9e
cmp esi, 0xffffffff
je 0x421f9e
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x421f88
push 0x472e5a
lea ecx, [ebp - 0x68]
call fcn.0041c1c2
lea eax, [ebp - 0x68]
push eax
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.0041c1e4
mov esi, eax
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Cant_save_file__err_d_
jmp 0x421fcf
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
push 0x472e5a
lea ecx, [ebp - 0x68]
call fcn.0041c1c2
lea eax, [ebp - 0x68]
push eax
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0041c1e4
mov esi, eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Cant_create_file__err_d_
push esi
call fcn.0041ba49
add esp, 0xc
mov ecx, eax
jmp fcn.0041c220
Function at 0x422024
Capabilities:
Check if file exists
Create directory

Disassembly:
mov eax, 0x464278
call fcn.00452ab4
sub esp, 0x58
push ebx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], esi
call fcn.0041c33e
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], esi
je 0x4220d3
mov edi, 0x47946c
push edi
call fcn.00450c50
pop ecx
push eax
push edi
or ecx, 0xffffffff
lea edi, [ebp - 0x2c]
call fcn.0042e241
cmp eax, 0xffffffff
push 2
pop ebx
je 0x42208c
push eax
push esi
mov eax, edi
push eax
lea eax, [ebp - 0x64]
call fcn.0041579a
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 1
jmp 0x42209f
push 0x472e5a
lea ecx, [ebp - 0x48]
call fcn.0041c1c2
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041af25
test byte [ebp - 0x10], bl
je 0x4220bf
and dword [ebp - 0x10], 0xfffffffd
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.0041b413
mov dword [ebp - 4], esi
test byte [ebp - 0x10], 1
je 0x4220d3
push esi
push 1
lea ecx, [ebp - 0x64]
call fcn.0041b413
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
je 0x4221b6
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x4220ea
lea eax, [ebp - 0x28]
cmp byte [eax + ecx - 1], 0x5c
je 0x4220fe
push 0x4796fc
lea ecx, [ebp - 0x2c]
call fcn.004156e1
xor edi, edi
cmp dword [ebp - 0x18], esi
jbe 0x4221b6
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x422115
lea eax, [ebp - 0x28]
cmp byte [eax + edi], 0x5c
jne 0x422158
lea eax, [edi + 1]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x64]
call fcn.0041579a
cmp dword [eax + 0x18], 0x10
jb 0x422137
mov eax, dword [eax + 4]
jmp 0x42213a
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ebx, eax
neg ebx
push esi
sbb bl, bl
push 1
lea ecx, [ebp - 0x64]
inc bl
call fcn.0041b413
test bl, bl
jne 0x4221b1
inc edi
cmp edi, dword [ebp - 0x18]
jb 0x422109
jmp 0x4221b1
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x42216c
lea eax, [ebp - 0x28]
cmp byte [eax + edi], 0x5c
jne 0x4221b0
lea eax, [edi + 1]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x64]
call fcn.0041579a
cmp dword [eax + 0x18], 0x10
jb 0x42218e
mov eax, dword [eax + 4]
jmp 0x422191
add eax, 4
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
mov ebx, eax
neg ebx
push esi
sbb bl, bl
push 1
lea ecx, [ebp - 0x64]
inc bl
call fcn.0041b413
test bl, bl
jne 0x4221d4
inc edi
cmp edi, dword [ebp - 0x18]
jb 0x422160
mov bl, 1
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0041b413
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret
xor bl, bl
jmp 0x4221b8