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

Disassembly:
mov eax, 0x45a225
call fcn.004485c4
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 0x419b14
mov ecx, dword [ebp + 8]
push 0x465cf2
call fcn.00418739
jmp 0x419bfe
push esi
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
call fcn.004173b7
mov dword [ebp - 4], ebx
push dword [ebp - 0x10]
call fcn.00445ee7
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 0x419bc2
cmp esi, ebx
je 0x419bc2
push edi
cmp dword [esi + 0x190], ebx
je 0x419bbb
cmp dword [ebp - 0x1c], ebx
je 0x419b63
push 0x467ac0
lea ecx, [ebp - 0x30]
call fcn.00411ae1
cmp dword [esi + 0x190], ebx
jbe 0x419bbb
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.004475f5
add esp, 0xc
test ebx, ebx
jbe 0x419ba4
push 0x469154
lea ecx, [ebp - 0x30]
call fcn.00411ae1
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x30]
call fcn.00411ae1
inc ebx
cmp ebx, dword [esi + 0x190]
jb 0x419b6b
xor ebx, ebx
mov esi, dword [esi]
cmp esi, ebx
jne 0x419b49
pop edi
push dword [ebp - 0x14]
call fcn.00445ef9
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
pop ecx
pop esi
jae 0x419bd8
lea eax, [ebp - 0x2c]
push eax
push str.MACS_____s
push ebx
call fcn.00437bbc
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
call fcn.004188b1
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00417a85
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41a10a
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x459432
call fcn.004485c4
sub esp, 0x23c
push ebx
push esi
push edi
push 0x3f
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
and dword [ebp - 0x10], 0
xor eax, eax
mov byte [ebp - 0x148], 0
lea edi, [ebp - 0x147]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x3f
pop ecx
xor eax, eax
mov byte [ebp - 0x248], 0
lea edi, [ebp - 0x247]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, 0xff
push ebx
lea eax, [ebp - 0x148]
push eax
push 0x59
mov edi, 0x400
push edi
call esi
push ebx
lea eax, [ebp - 0x248]
push eax
push 0x5a
push edi
call esi
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00418739
push 0x466c54
push eax
lea eax, [ebp - 0x48]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.004152b2
lea ecx, [ebp - 0x248]
push ecx
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004152b2
add esp, 0x18
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.00417a85
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00417a85
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41a7ab
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x45c5fd
call fcn.004485c4
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0x10
jb 0x41a7b9
mov eax, dword [esi + 4]
jmp 0x41a7bc
lea eax, [esi + 4]
push dword [ebp + 8]
push eax
push str.CompInfo::TestFileExists_511
push str._s__f_s_isDir_d
push 0
call fcn.00437bbc
add esp, 0x14
push esi
lea ecx, [ebp - 0x28]
call fcn.004188b1
and dword [ebp - 4], 0
lea ebx, [ebp - 0x28]
call fcn.0041d242
cmp dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x24]
jae 0x41a7f5
lea eax, [ebp - 0x24]
push eax
push str.__fullpath_s
xor esi, esi
push esi
call fcn.00437bbc
mov eax, dword [ebp - 0x24]
add esp, 0xc
cmp dword [ebp - 0x10], 0x10
jae 0x41a812
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x41a821
xor bl, bl
jmp 0x41a84f
cmp dword [ebp + 8], esi
jge 0x41a82a
mov bl, 1
jmp 0x41a84f
cmp dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x24]
jae 0x41a836
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x41a849
cmp dword [ebp + 8], esi
setne bl
jmp 0x41a84f
cmp dword [ebp + 8], esi
sete bl
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.00417a85
mov ecx, dword [ebp - 0xc]
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41adcb
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 0x41ae1e
cmp dword [ebp + 0xc], 1
je 0x41ae00
cmp dword [ebp + 0xc], 2
jne 0x41ae12
test edi, edi
mov eax, dword [ebp - 4]
je 0x41ae1a
test eax, eax
je 0x41ae17
cmp byte [eax + edi - 1], 0
je 0x41ae1a
push 0xd
pop eax
jmp 0x41ae1e
mov byte [edi], 0
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x41b018
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 0x41b0a1
cmp dword [esi + 4], ecx
je 0x41b0a1
cmp dword [esi + 8], ecx
je 0x41b0a1
cmp dword [esi + 0xc], ecx
je 0x41b0a1
cmp dword [esi + 0x14], ecx
je 0x41b0a1
cmp dword [esi + 0x10], ecx
je 0x41b0a1
cmp eax, ecx
je 0x41b0a1
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x41b17b
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x93c
push esi
push edi
push 0xe
mov esi, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x13c]
xor edi, edi
push edi
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x2c], eax
call fcn.00445de0
push 0x800
lea eax, [ebp - 0x93c]
push edi
push eax
mov dword [ebp - 0x28], 0xff
mov dword [ebp - 0x10], eax
call fcn.00445de0
mov eax, dword [esi + 0x14]
add esp, 0x18
cmp dword [esi + 0x18], 0x10
mov dword [ebp - 0xc], 0x7ff
jb 0x41b1e4
mov esi, dword [esi + 4]
jmp 0x41b1e7
add esi, 4
lea ecx, [ebp - 0x3c]
push ecx
push edi
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push dword [ebp - 0x2c]
mov ecx, ebx
call fcn.00418180
push dword [ebp - 0x10]
lea ecx, [ebx + 0x1c]
call fcn.00418180
movzx eax, word [ebp - 0x24]
pop edi
mov dword [ebx + 0x38], eax
pop esi
leave
ret
Function at 0x41b8f4
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push edi
mov ecx, esi
call fcn.0041b214
test al, al
jne 0x41b905
xor eax, eax
pop ecx
ret
push 8
call fcn.004449b4
test eax, eax
pop ecx
je 0x41b918
mov dword [eax], edi
mov dword [eax + 4], esi
jmp 0x41b91a
xor eax, eax
lea ecx, [esp]
push ecx
push 4
push eax
push 0x41b94b
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 0x41bf03
Capabilities:
Create directory
Get common file path

Disassembly:
mov eax, 0x45ae0d
call fcn.004485c4
sub esp, 0x1b0
push ebx
push esi
push edi
mov esi, str.fs::CreateTemp_383
mov dword [ebp - 0x10], esp
push esi
call fcn.004468a0
mov dword [ebp - 0x14], eax
push esi
xor ebx, ebx
push 0x468020
push ebx
mov dword [ebp - 4], ebx
call fcn.00437bbc
add esp, 0x10
push 0x40
mov byte [ebp - 4], 1
pop ecx
xor eax, eax
mov byte [ebp - 0x1bc], bl
lea edi, [ebp - 0x1bb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1bc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x70]
push eax
call fcn.0041c3f3
pop ecx
mov esi, eax
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 2
call fcn.00418739
push 0x46b898
push eax
lea eax, [ebp - 0xb8]
push eax
mov byte [ebp - 4], 3
call fcn.004152b2
add esp, 0xc
push esi
push eax
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 4
call fcn.00415459
add esp, 0xc
push 0x46b89c
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 5
call fcn.004152b2
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.00417328
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x34]
call fcn.00417a85
push ebx
push edi
lea ecx, [ebp - 0x54]
call fcn.00417a85
push ebx
push edi
lea ecx, [ebp - 0xb8]
call fcn.00417a85
push ebx
push edi
lea ecx, [ebp - 0x9c]
call fcn.00417a85
push ebx
push edi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.00417a85
cmp dword [esi + 0x18], 0x10
jb 0x41c029
mov eax, dword [esi + 4]
jmp 0x41c02c
lea eax, [esi + 4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41c10a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x465cf2
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x18], eax
call fcn.00418739
push str.INVALID_FILENAME
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 7
push dword [0x47f2bc]
call fcn.004190c9
mov byte [ebp - 4], 8
cmp dword [eax + 0x18], 0x10
jb 0x41c079
mov eax, dword [eax + 4]
jmp 0x41c07c
add eax, 4
push eax
lea ecx, [ebp - 0x54]
call fcn.00418739
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.00407c9a
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.00417a85
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.00417a85
push ebx
push 1
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00417a85
push 0x465cf2
lea ecx, [ebp - 0x70]
call fcn.00418739
lea eax, [ebp - 0x70]
push eax
push 2
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xa
call fcn.0041875b
mov byte [ebp - 4], 0xb
cmp dword [esi + 0x18], 0x10
jb 0x41c0ee
mov esi, dword [esi + 4]
jmp 0x41c0f1
add esi, 4
push dword [ebp - 0x18]
push esi
push str.fs::CreateTemp_failed__temp_s__err_d_
push eax
call fcn.004180c3
add esp, 0x10
mov ecx, eax
call fcn.00418793
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x14]
call fcn.0041836d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x41c16c
Capabilities:
Check if file exists
Delete directory
Delete file
Set current directory

Disassembly:
mov eax, 0x45c5eb
call fcn.004485c4
sub esp, 0x30
push ebx
push esi
push edi
mov esi, str.fs::ClearTemp_404
mov dword [ebp - 0x10], esp
push esi
call fcn.004468a0
mov dword [ebp - 0x18], eax
push esi
xor edi, edi
push 0x468020
push edi
mov dword [ebp - 4], edi
call fcn.00437bbc
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 0x41c1fd
cmp dword [edi + 0x18], 0x10
jb 0x41c1ce
mov eax, dword [edi + 4]
jmp 0x41c1d1
lea eax, [edi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41c1f5
cmp dword [edi + 0x18], 0x10
jb 0x41c1e7
mov eax, dword [edi + 4]
jmp 0x41c1ea
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x41c1f8
inc dword [ebp - 0x14]
add edi, 0x1c
jmp 0x41c1be
mov eax, esi
call fcn.00427195
push eax
push dword [ebp - 0x14]
xor edi, edi
push str._____remove__d_of__d_temp_files.
push edi
call fcn.00437bbc
add esp, 0x10
call fcn.00412e19
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp + 0xc], 0
jne 0x41c29b
mov esi, dword [ebp + 8]
cmp dword [esi + 0x3c], edi
je 0x41c29b
lea eax, [ebp - 0x3c]
push eax
call fcn.0041ccbe
cmp dword [eax + 0x18], 0x10
pop ecx
jb 0x41c24b
mov eax, dword [eax + 4]
jmp 0x41c24e
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
push 1
lea ecx, [ebp - 0x3c]
call fcn.00417a85
add esi, 0x28
cmp dword [esi + 0x18], 0x10
jb 0x41c26e
mov eax, dword [esi + 4]
jmp 0x41c271
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x41c291
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._____couldnt_remove_the_temp_folder___err_d_
push edi
call fcn.00437bbc
add esp, 0xc
push 0xffffffffffffffff
push edi
mov ecx, esi
call fcn.004172b7
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x18]
call fcn.0041836d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x41c445
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x45930a
call fcn.004485c4
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.004188b1
push str..html
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], esi
call fcn.00418739
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
push str..mht
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x14], ebx
call fcn.00418739
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.00444180
add esp, 0xc
test eax, eax
je 0x41c4ca
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x41c4bc
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
mov byte [ebp - 0xd], bl
jne 0x41c4ce
mov byte [ebp - 0xd], 0
push esi
push ebx
lea ecx, [ebp - 0x4c]
call fcn.00417a85
push esi
push ebx
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], esi
call fcn.00417a85
cmp byte [ebp - 0xd], 0
mov ecx, edi
je 0x41c4f3
lea eax, [ebp - 0x30]
push eax
jmp 0x41c4f6
push dword [ebp + 8]
call fcn.004188b1
push esi
lea ecx, [ebp - 0x30]
push ebx
call fcn.00417a85
mov ecx, dword [ebp - 0xc]
pop esi
mov eax, edi
pop ebx
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
mov eax, 0x459822
call fcn.004485c4
sub esp, 0x890
push ebx
push esi
push edi
xor ebx, ebx
push str.OpenInstall_Agent___
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], ebx
call fcn.00418739
mov dword [ebp - 4], ebx
xor eax, eax
mov byte [ebp - 0x89c], bl
mov ecx, 0x1ff
lea edi, [ebp - 0x89b]
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 - 0x89c]
push eax
push ebx
mov dword [ebp - 0x10], 0x800
call sub.urlmon.dll_ObtainUserAgentString
cmp eax, ebx
jl 0x41c649
lea eax, [ebp - 0x89c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00418180
mov esi, 0x466ac4
push esi
lea ecx, [ebp - 0x48]
call fcn.00418739
lea eax, [ebp - 0x80]
push 0x727
push eax
mov byte [ebp - 4], 1
call fcn.00444270
push eax
lea eax, [ebp - 0x9c]
push str.__OI_build
push eax
mov byte [ebp - 4], 2
call fcn.00417cd3
push esi
push eax
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 3
call fcn.004152b2
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 4
call fcn.00444180
add esp, 0x2c
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x64]
call fcn.00417a85
push ebx
push esi
lea ecx, [ebp - 0x9c]
call fcn.00417a85
push ebx
push esi
lea ecx, [ebp - 0x80]
call fcn.00417a85
push ebx
push esi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.00417a85
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.004188b1
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00417a85
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 0x41c6fc
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_534
push str._s__id_d_type_s_
push edi
call fcn.00437bbc
movzx eax, word [ebp + 0xc]
add esp, 0x14
push dword [ebp + 0x10]
push eax
push dword [0x47ed84]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, edi
je 0x41c7b4
cmp esi, 0xffffffff
je 0x41c7b4
push esi
push dword [0x47ed84]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, edi
jne 0x41c75d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x46b700
jmp 0x41c796
push esi
push dword [0x47ed84]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push str.__size:__d
push edi
call fcn.00437bbc
add esp, 0xc
cmp esi, edi
jbe 0x41c7c1
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
jne 0x41c7a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x46b6d4
push str.___s_failed:__d
push edi
call fcn.00437bbc
add esp, 0x10
jmp 0x41c7c1
mov ecx, dword [ebp + 8]
push esi
push eax
call fcn.0041819d
mov al, 1
jmp 0x41c7c3
push str.__not_found
push edi
call fcn.00437bbc
pop ecx
pop ecx
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x41c7c8
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x45a100
call fcn.004485c4
sub esp, 0x45c
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0x10
push edi
mov dword [ebp - 0x10], esp
lea edi, [esi + 4]
jb 0x41c7ed
mov eax, dword [edi]
jmp 0x41c7ef
mov eax, edi
push eax
push str.fs::LoadFileToString_569
push str._s__fn_s_
xor ebx, ebx
push ebx
call fcn.00437bbc
add esp, 0x10
mov dword [ebp - 4], ebx
cmp dword [esi + 0x18], 0x10
jb 0x41c810
mov edi, dword [edi]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
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 0x41c8db
cmp esi, 0xffffffff
je 0x41c8db
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 - 0x468]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c889
cmp dword [ebp - 0x14], ebx
jbe 0x41c889
push dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x468]
push eax
call fcn.00412a9b
add edi, dword [ebp - 0x14]
jmp 0x41c851
cmp edi, dword [ebp - 0x18]
jae 0x41c8c1
push 0x465cf2
lea ecx, [ebp - 0x58]
call fcn.00418739
lea eax, [ebp - 0x58]
push eax
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.0041875b
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 0x41c90c
cmp esi, ebx
je 0x41c8cc
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 0x465cf2
lea ecx, [ebp - 0x58]
call fcn.00418739
lea eax, [ebp - 0x58]
push eax
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.0041875b
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.004180c3
add esp, 0xc
mov ecx, eax
jmp fcn.00418793
Function at 0x41c980
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x45a0c6
call fcn.004485c4
sub esp, 0x58
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0x10
push edi
mov dword [ebp - 0x10], esp
lea edi, [esi + 4]
jb 0x41c9a2
mov eax, dword [edi]
jmp 0x41c9a4
mov eax, edi
push eax
push str.fs::SaveFileFromBuffer_600
push str._s__fn_s_
xor ebx, ebx
push ebx
call fcn.00437bbc
add esp, 0x10
mov dword [ebp - 4], ebx
cmp dword [esi + 0x18], 0x10
jb 0x41c9c5
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 0x41ca4f
cmp esi, 0xffffffff
je 0x41ca4f
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 0x41ca39
push 0x465cf2
lea ecx, [ebp - 0x64]
call fcn.00418739
lea eax, [ebp - 0x64]
push eax
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
call fcn.0041875b
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 0x41ca80
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 0x465cf2
lea ecx, [ebp - 0x64]
call fcn.00418739
lea eax, [ebp - 0x64]
push eax
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.0041875b
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.004180c3
add esp, 0xc
mov ecx, eax
jmp fcn.00418793
Function at 0x41cad5
Capabilities:
Check if file exists
Create directory

Disassembly:
mov eax, 0x4592c6
call fcn.004485c4
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.004188b1
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], esi
je 0x41cb84
mov edi, 0x46b5e0
push edi
call fcn.00446610
pop ecx
push eax
push edi
or ecx, 0xffffffff
lea edi, [ebp - 0x2c]
call fcn.00427701
cmp eax, 0xffffffff
push 2
pop ebx
je 0x41cb3d
push eax
push esi
mov eax, edi
push eax
lea eax, [ebp - 0x64]
call fcn.0041abdd
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 1
jmp 0x41cb50
push 0x465cf2
lea ecx, [ebp - 0x48]
call fcn.00418739
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x2c]
call fcn.00417328
test byte [ebp - 0x10], bl
je 0x41cb70
and dword [ebp - 0x10], 0xfffffffd
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.00417a85
mov dword [ebp - 4], esi
test byte [ebp - 0x10], 1
je 0x41cb84
push esi
push 1
lea ecx, [ebp - 0x64]
call fcn.00417a85
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
je 0x41cc67
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x41cb9b
lea eax, [ebp - 0x28]
cmp byte [eax + ecx - 1], 0x5c
je 0x41cbaf
push 0x46b89c
lea ecx, [ebp - 0x2c]
call fcn.00411ae1
xor edi, edi
cmp dword [ebp - 0x18], esi
jbe 0x41cc67
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x41cbc6
lea eax, [ebp - 0x28]
cmp byte [eax + edi], 0x5c
jne 0x41cc09
lea eax, [edi + 1]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x64]
call fcn.0041abdd
cmp dword [eax + 0x18], 0x10
jb 0x41cbe8
mov eax, dword [eax + 4]
jmp 0x41cbeb
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.00417a85
test bl, bl
jne 0x41cc62
inc edi
cmp edi, dword [ebp - 0x18]
jb 0x41cbba
jmp 0x41cc62
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x41cc1d
lea eax, [ebp - 0x28]
cmp byte [eax + edi], 0x5c
jne 0x41cc61
lea eax, [edi + 1]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x64]
call fcn.0041abdd
cmp dword [eax + 0x18], 0x10
jb 0x41cc3f
mov eax, dword [eax + 4]
jmp 0x41cc42
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.00417a85
test bl, bl
jne 0x41cc85
inc edi
cmp edi, dword [ebp - 0x18]
jb 0x41cc11
mov bl, 1
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00417a85
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 0x41cc69