joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4161bd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.004128c8
mov ebx, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4161f4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00416213
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x41891f
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x547d3e
call fcn.00527d9a
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x6c], esi
jne 0x418945
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x418999
call fcn.004124b6
push eax
lea ecx, [ebp - 0x10]
call fcn.004015a0
mov ecx, dword [edi + 0x6c]
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], esi
call dword [eax + 0x8c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0052826e
push eax
call fcn.00402330
add esp, 0x14
test edi, edi
je 0x41898c
push edi
call fcn.00528255
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401620
mov eax, esi
call fcn.00527d68
ret 8

Function at 0x41a837
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
je 0x41a87c
call fcn.004128c8
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41a87c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x41a898
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00428312
mov ebx, eax
test edi, edi
je 0x41a896
test esi, esi
je 0x41a896
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x429278
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, dword [esi + 4]
push eax
push dword [ebp + 0xc]
call fcn.00418891
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4292b4
call fcn.00429493
mov dword [esi + 0xc], 1
jmp 0x4292b9
call fcn.00429493
cmp dword [esi], 0
je 0x429302
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4292dc
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00413b8f
jmp 0x4292ed
push 0xff
mov ecx, esi
call fcn.00401780
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00406bb0
jmp 0x429326
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x429326
push dword [esi]
push dword [ebp - 4]
call fcn.00421bec
pop esi
leave
ret 0xc

Function at 0x4293ea
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00429493
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x429432
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00413b8f
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00406bb0
jmp 0x42943d
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00421bec
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x42f4c6
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.004420a3
call fcn.0041291c
cmp dword [eax + 0x14], 0
jne 0x42f4e1
mov ecx, esi
pop esi
jmp fcn.0042e8bd
pop esi
ret

Function at 0x43fdbc
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00498ec9
call fcn.0041291c
cmp dword [eax + 0x14], 0
jne 0x43fdd7
mov ecx, esi
pop esi
jmp fcn.0043f6af
pop esi
ret

Function at 0x44b579
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x44b591
call fcn.004128c8
mov esi, dword [eax + 0xc]
push 0x55973c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x44b5e7
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x44b5e6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x44b5c7
xor esi, esi
jmp 0x44b5dd
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.0044b5ed
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x50a030
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test byte [esi + 4], 1
push edi
mov dword [ebp - 4], ebx
je 0x50a04a
mov edi, dword [esi + 0xc]
jmp 0x50a08a
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x50a063
call fcn.004108f0
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x50a078
call fcn.004108f0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x50a08a
call fcn.004108f0
call fcn.004128c8
cmp dword [eax + 0x3c], 0
je 0x50a09f
push edi
mov ecx, ebx
call fcn.00509954
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0050a262
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x50a0c2
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x7c], 0
test ebx, ebx
je 0x50a0cb
mov edi, ebx
mov dword [eax + 0x7c], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x539098
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5a2740]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0052d845
mov dword [ebp - 0x14], eax
cmp dword [0x5aa670], edi
jne 0x539189
push 0x800
push edi
push 0x57bc00
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x539116
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x539269
push 0x57bc00
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x539269
push 0x57bc18
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x539269
push eax
call ebx
push 0x57bc24
push esi
mov dword [0x5aa670], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x57bc34
push esi
mov dword [0x5aa674], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x5aa678], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5aa680], eax
test eax, eax
je 0x539186
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5aa67c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5391ae
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5391a1
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x5391c3
push 4
pop eax
jmp 0x53926b
cmp dword [ebp - 0x14], edi
je 0x5391c3
push dword [0x5aa670]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5391a8
mov eax, dword [0x5aa67c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x539221
cmp dword [0x5aa680], esi
je 0x539221
push eax
call ebx
push dword [0x5aa680]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x539221
test eax, eax
je 0x539221
call ecx
test eax, eax
je 0x539216
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x539216
test byte [ebp - 8], 1
jne 0x539221
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x539251
mov eax, dword [0x5aa674]
cmp eax, esi
je 0x53924e
push eax
call ebx
test eax, eax
je 0x53924e
call eax
mov edi, eax
test edi, edi
je 0x53924e
mov eax, dword [0x5aa678]
cmp eax, esi
je 0x53924e
push eax
call ebx
test eax, eax
je 0x53924e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x5aa670]
call ebx
test eax, eax
je 0x539269
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x53926b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005255c5
leave
ret
Function at 0x40c820
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push edi
lea eax, [ebp - 0x404]
push 1
push eax
mov edi, ecx
call fcn.00518f40
mov ecx, dword [0x5f6dec]
mov dword [eax], ecx
mov edx, dword [0x5f6df0]
mov dword [eax + 4], edx
mov ecx, dword [0x5f6df4]
mov dword [eax + 8], ecx
mov dx, word [0x5f6df8]
mov word [eax + 0xc], dx
mov cl, byte [0x5f6dfa]
add esp, 8
lea edx, [ebp - 0x404]
mov byte [eax + 0xe], cl
push edx
mov ecx, edi
call fcn.0051fc90
mov dword [edi + 4], eax
test eax, eax
je 0x40c937
cmp byte [eax + 0xfc0d33], 0x83
lea ecx, [eax + 0xfc0d33]
push ebx
mov bl, 8
jne 0x40c8ab
cmp byte [ecx + 1], 0x7d
jne 0x40c8ab
cmp byte [ecx + 2], bl
jne 0x40c8ab
cmp byte [ecx + 3], 0
jne 0x40c8ab
mov al, 1
jmp 0x40c8ad
xor al, al
push eax
push 0xb
call fcn.00406810
mov ecx, dword [edi + 4]
add ecx, 0xfbf7c1
add esp, 8
cmp byte [ecx], 0x8b
jne 0x40c8d5
cmp byte [ecx + 1], 0x4d
jne 0x40c8d5
cmp byte [ecx + 2], bl
jne 0x40c8d5
mov al, 1
jmp 0x40c8d7
xor al, al
push esi
push eax
push 0x17
call fcn.00406810
mov esi, dword [edi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 8
lea eax, [ebp - 4]
push eax
push 0x40
push 7
add esi, 0x381394
push esi
call ebx
test eax, eax
je 0x40c935
lea ecx, [esi + 2]
push 0x40c810
push ecx
mov word [esi], 0x9090
call fcn.00456a40
mov eax, dword [ebp - 4]
add esp, 8
lea edx, [ebp - 4]
push edx
push eax
push 7
push esi
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop esi
pop ebx
cmp dword [edi + 4], 0
pop edi
setne al
mov esp, ebp
pop ebp
ret
Function at 0x418780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5db790
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
push 6
mov esi, ecx
call fcn.0052ce40
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x18]
add esp, 4
cmp edi, eax
jbe 0x4187b6
mov edi, eax
mov eax, dword [esi + 0x14]
xor ebx, ebx
cmp eax, ebx
je 0x4187d0
push eax
mov eax, dword [ebp + 8]
push 1
push edi
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp byte [esi + 0xc], bl
je 0x41885d
mov ecx, dword [ebp + 8]
push edi
push ecx
call fcn.00403130
add esp, 8
test al, al
je 0x41885d
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [ebp - 0x18]
push eax
call edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], ebx
mov byte [esi + 0xc], bl
cmp eax, ebx
je 0x418809
mov eax, dword [eax]
jmp 0x41880b
xor eax, eax
mov ecx, dword [esi + 8]
push eax
push 0xe
call fcn.00413890
mov dword [ebp + 0x18], ebx
mov eax, dword [esi + 0x10]
mov byte [ebp - 4], 1
mov dword [esi + 0x10], ebx
cmp eax, ebx
je 0x418838
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
lea ecx, [edx + eax + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], vtable.ns1_CefStringBase_struct_ns1_CefStringTraitsUTF8_.0
cmp eax, ebx
je 0x41885d
cmp byte [ebp - 0x10], bl
je 0x41885d
push eax
call sub.libcef_ns1.dll_ns1_cef_string_utf8_clear
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040106c
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
push edi
push ecx
push edx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x1c]
add esp, 0xc
cmp edi, dword [ebp + 0xc]
mov dword [eax], edi
mov dword [ecx], edi
mov ecx, dword [ebp - 0xc]
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x420fe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 5
mov esi, ecx
call fcn.0056c590
mov edi, dword [ebp + 0xc]
add esp, 4
test edi, edi
je 0x421012
mov eax, dword [ebp + 8]
push edi
push eax
lea ecx, [esi + 0xc]
call fcn.0043bcf0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], edi
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x18
cmp dword [esi + 0x10], 0
je 0x4210df
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4210df
cmp dword [esi + 0x18], 0
jne 0x421084
mov edi, dword [sym.imp.msvcrt.dll_strstr]
push str.getBrowserVersion___10_
push eax
call edi
add esp, 8
test eax, eax
je 0x421084
add eax, 0x17
cmp byte [eax], 0x20
jne 0x42104b
inc eax
cmp byte [eax], 0x3e
jne 0x421075
cmp byte [eax + 1], 0x3d
jne 0x421075
mov ecx, eax
add eax, 2
cmp byte [eax], 0x20
jne 0x421061
inc eax
cmp byte [eax], 0x36
jne 0x421075
cmp byte [eax + 1], 0x36
jne 0x421075
mov byte [ecx], 0x3c
mov byte [eax], 0x31
add eax, 2
push str.getBrowserVersion___10_
push eax
call edi
add esp, 8
test eax, eax
jne 0x421042
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0x18]
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x1c]
mov dword [edi], eax
cmp eax, ecx
jbe 0x421098
mov dword [edi], ecx
mov eax, dword [esi + 0x18]
mov edx, dword [edi]
add eax, dword [esi + 0xc]
mov ecx, dword [ebp + 0x14]
push edx
push eax
push ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [esi + 0x1c]
add esp, 0xc
test eax, eax
je 0x4210cb
mov edx, dword [edi]
push eax
mov eax, dword [esi + 0x18]
add eax, dword [esi + 0xc]
push 1
push edx
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
mov ecx, dword [edi]
add dword [esi + 0x18], ecx
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x10]
pop edi
sbb eax, eax
inc eax
pop esi
pop ebp
ret 0x18
pop edi
mov eax, 1
pop esi
pop ebp
ret 0x18
Function at 0x429d10
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
lea eax, [ebp - 0x404]
push 3
push eax
mov ebx, ecx
call fcn.00518f40
mov ecx, dword [0x604c40]
mov dword [eax], ecx
mov edx, dword [0x604c44]
mov dword [eax + 4], edx
mov ecx, dword [0x604c48]
mov dword [eax + 8], ecx
mov dx, word [0x604c4c]
mov word [eax + 0xc], dx
mov cl, byte [0x604c4e]
add esp, 8
lea edx, [ebp - 0x404]
mov byte [eax + 0xe], cl
push edx
mov ecx, ebx
call fcn.0051fc90
mov dword [ebx + 4], eax
test eax, eax
je 0x429dfb
cmp byte [eax + 0x1eb0a90], 0x80
push esi
lea esi, [eax + 0x1eb0a90]
jne 0x429da6
cmp byte [esi + 1], 0x67
jne 0x429da6
cmp byte [esi + 2], 0xd
jne 0x429da6
cmp byte [esi + 3], 0xfd
jne 0x429da6
cmp byte [esi + 4], 0x89
jne 0x429da6
cmp byte [esi + 5], 0xf1
jne 0x429da6
mov al, 1
jmp 0x429da8
xor al, al
call fcn.00422600
test al, al
je 0x429dfa
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 6
push esi
call edi
test eax, eax
je 0x429df9
lea ecx, [esi + 1]
push 0x429cf0
push ecx
mov byte [esi], 0x90
call fcn.00456a40
mov eax, dword [ebp - 4]
add esp, 8
lea edx, [ebp - 4]
push edx
push eax
push 6
push esi
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop edi
pop esi
cmp dword [ebx + 4], 0
pop ebx
setne al
mov esp, ebp
pop ebp
ret
Function at 0x4322a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5de0c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
push 5
mov esi, ecx
mov dword [ebp - 0x10], ebx
call fcn.0056c590
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x18]
add esp, 4
cmp edi, eax
jbe 0x4322db
mov edi, eax
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x4322f3
push eax
mov eax, dword [ebp + 8]
push 1
push edi
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp byte [esi + 0xc], bl
je 0x432375
mov ecx, dword [ebp + 8]
push edi
push ecx
call fcn.00403130
add esp, 8
test al, al
je 0x432375
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [ebp - 0x1c]
push eax
call edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], ebx
mov byte [esi + 0xc], bl
cmp eax, ebx
je 0x432328
mov eax, dword [eax]
jmp 0x43232a
xor eax, eax
mov ecx, dword [esi + 8]
push eax
push 0xe
call fcn.0042ddd0
mov eax, dword [esi + 0x10]
mov dword [esi + 0x10], ebx
cmp eax, ebx
je 0x432350
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
lea ecx, [edx + eax + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], vtable.ns3_CefStringBase_struct_ns3_CefStringTraitsUTF8_.0
cmp eax, ebx
je 0x432375
cmp byte [ebp - 0x14], bl
je 0x432375
push eax
call sub.libcef_ns3.dll_ns3_cef_string_utf8_clear
mov eax, dword [ebp - 0x18]
push eax
call fcn.0040106c
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
push edi
push ecx
push edx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x1c]
add esp, 0xc
cmp edi, dword [ebp + 0xc]
mov dword [eax], edi
mov dword [ecx], edi
mov ecx, dword [ebp - 0xc]
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x439250
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp + 8]
push eax
push 1
push edi
push ecx
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
jne 0x439287
push 0x637c4c
lea edx, [ebp + 0xc]
push edx
mov dword [ebp + 0xc], 0xff67697f
call sub.msvcrt.dll__CxxThrowException
add dword [esi + 8], edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x439290
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp + 8]
push eax
push 1
push edi
push ecx
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
test eax, eax
jne 0x4392c7
push 0x637c4c
lea edx, [ebp + 0xc]
push edx
mov dword [ebp + 0xc], 0xff67697f
call sub.msvcrt.dll__CxxThrowException
add dword [esi + 8], edi
pop edi
pop esi
pop ebp
ret 8
Function at 0x43c790
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
sub esp, 0xc
push esi
push edi
lea edx, [ebp - 8]
push edx
mov dword [eax], 0
push ebx
mov dword [ecx], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x43c849
lea eax, [edi + 8]
cmp eax, 0x400
ja 0x43c7de
call fcn.00524960
mov esi, esp
test esi, esi
je 0x43c849
mov dword [esi], 0xcccc
add esi, 8
jmp 0x43c7f7
push eax
call dword [sym.imp.msvcrt.dll_malloc]
add esp, 4
test eax, eax
je 0x43c7f5
mov dword [eax], 0xdddd
add eax, 8
mov esi, eax
test esi, esi
je 0x43c849
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x43c833
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x6055c4
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x43c833
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x10]
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
mov edx, dword [eax + 0x14]
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
cmp dword [esi - 8], 0xdddd
lea eax, [esi - 8]
jne 0x43c849
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
lea esp, [ebp - 0x14]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43d420
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5def02
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ebx, ax
push 9
lea eax, [ebp - 0x1c]
push eax
push 0x59
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, eax
test esi, esi
je 0x43d50f
dec esi
je 0x43d50f
push 9
lea ecx, [ebp + esi - 0x4f]
push ecx
push 0x5a
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ebx, eax
test ebx, ebx
je 0x43d4d4
dec ebx
je 0x43d4d4
push esi
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x50]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0xd]
push ecx
lea edx, [ebx + esi + 1]
push edx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp + esi - 0x50], 0x2d
mov byte [ebp - 0xd], 0
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int__class_std::allocator_char__const__]
mov ecx, dword [edi + 8]
push eax
push 1
push ecx
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.004172c0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0xe]
push ecx
push esi
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0xe], 0
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int__class_std::allocator_char__const__]
mov ecx, dword [edi + 8]
push eax
push 1
push ecx
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.004172c0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret