joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b340
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44bb60
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x461c88]
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 eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x74], eax
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebx], ax
jne 0x40b3ac
xor ecx, ecx
jmp 0x40b3c0
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b3b1
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.004026b0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 4], 0
call fcn.0040a0d0
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x40b3e9
mov eax, dword [eax]
lea ecx, [ebp - 0x80]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp dword [ebp - 0x2c], 0x10
mov edi, eax
jb 0x40b406
push dword [ebp - 0x40]
call fcn.00419e3e
add esp, 4
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
jb 0x40b430
push dword [ebp - 0x28]
call fcn.00419e3e
add esp, 4
test edi, edi
je 0x40b51f
push edi
call fcn.0041c68d
mov esi, eax
add esp, 4
test esi, esi
je 0x40b51f
push ebx
lea ecx, [ebp - 0x70]
call fcn.00401690
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 4], 1
call fcn.0040a0d0
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x40b473
mov eax, dword [eax]
push esi
push edi
push dword [ebp - 0x80]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
sete bl
cmp dword [ebp - 0x44], 0x10
jb 0x40b494
push dword [ebp - 0x58]
call fcn.00419e3e
add esp, 4
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jb 0x40b4b7
push dword [ebp - 0x70]
call fcn.00419e3e
add esp, 4
test bl, bl
jne 0x40b516
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x44fb30
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40b516
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x7c]
movzx eax, word [ecx + 0xa]
mov word [edx], ax
movzx eax, word [ecx + 8]
mov edx, dword [ebp - 0x88]
push esi
mov word [edx], ax
movzx eax, word [ecx + 0xe]
mov edx, dword [ebp - 0x84]
mov word [edx], ax
movzx eax, word [ecx + 0xc]
mov ecx, dword [ebp - 0x74]
mov word [ecx], ax
call fcn.0041b176
add esp, 4
mov eax, 1
jmp 0x40b521
push esi
call fcn.0041b176
add esp, 4
xor eax, eax
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.0041a5c9
mov esp, ebp
pop ebp
ret
Function at 0x40b540
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [ebp + 0xc]
push ecx
movzx ecx, word [ebp + 8]
mov ebx, eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
push edi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp + 0x14]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
pop ebp
ret

Function at 0x40b730
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44bb98
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x461c88]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x40b300
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.0040ad70
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40b7ac
push eax
call fcn.00419e3e
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40bcd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x461c88]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jne 0x40bd31
lea eax, [ebp - 0x20c]
push eax
push 0x104
push ebx
call fcn.0041c3e2
add esp, 0xc
test edi, edi
je 0x40bd2f
push edi
push 0x104
push ebx
call fcn.0041c376
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a5c9
mov esp, ebp
pop ebp
ret

Function at 0x40c180
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44bca0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x461c88]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], esi
push 0
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0
push 0x16
push dword [eax]
xor bl, bl
mov dword [ebp - 4], esi
mov byte [ebp - 0x2d], bl
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x40c23d
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x7a
je 0x40c23a
call edi
mov ecx, dword [ebp - 0x34]
push str.Header___failed
mov dword [ecx + 0x28], eax
lea ecx, [ebp - 0x2c]
call fcn.00401590
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.0040d190
add esp, 4
cmp dword [ebp - 0x18], 0x10
jb 0x40c229
push dword [ebp - 0x2c]
call fcn.00419e3e
add esp, 4
push 0
call fcn.0041a5c4
add esp, 4
xor al, al
jmp 0x40c2ca
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
mov byte [ebp - 4], 2
neg ecx
or ecx, eax
push ecx
call fcn.004188f6
add esp, 4
mov dword [ebp - 0x34], eax
test eax, eax
je 0x40c274
push 0
call fcn.0041a5c4
mov esi, dword [ebp - 0x34]
add esp, 4
mov dword [ebp - 0x3c], esi
push 0
call fcn.0041a5c4
add esp, 4
mov dword [ebp - 4], 0
test esi, esi
je 0x40c2bf
push 0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x40]
push esi
push 0
push 0x16
push dword [eax]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x40c2af
push esi
mov ecx, edi
call fcn.0040d220
mov bl, 1
jmp 0x40c2bf
xor bl, bl
jmp 0x40c2bf
push esi
call fcn.0041a5c4
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041a5c9
mov esp, ebp
pop ebp
ret
Function at 0x40c2f0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44bcd8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x461c88]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0x10]
mov edi, edi
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], 0
push dword [eax]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x40c343
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x28], eax
xor esi, esi
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 4], esi
push eax
mov byte [ebp - 4], 1
call fcn.004188f6
mov edi, eax
add esp, 4
test edi, edi
je 0x40c36d
push esi
call fcn.0041a5c4
add esp, 4
mov esi, edi
push 0
call fcn.0041a5c4
add esp, 4
mov dword [ebp - 4], 0
test esi, esi
je 0x40c43e
mov eax, dword [ebp - 0x14]
inc eax
push eax
push 0
push esi
call fcn.0041b3e0
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
mov eax, dword [ebp + 8]
push esi
push dword [eax]
mov dword [ebp - 0x18], 0
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x40c3da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [ebx + 0x28], eax
call fcn.0041a5c4
add esp, 4
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
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40c3ee
push esi
call fcn.0041a5c4
add esp, 4
xor esi, esi
jmp 0x40c43e
push dword [ebp + 0x14]
push eax
push ecx
mov ecx, esp
push dword [ebp + 0xc]
mov eax, esi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ecx], eax
call fcn.0040cb60
add esp, 0x10
test al, al
jne 0x40c43e
push 0
call fcn.0041a5c4
add esp, 4
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
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.0041a5c4
add esp, 4
cmp dword [ebp - 0x14], 0
ja 0x40c320
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
Function at 0x40db30
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44be6b
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push esi
mov eax, dword [0x461c88]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
push 0
push dword [ebp + 8]
push 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
test esi, esi
je 0x40dbca
push 0x3a98
push 0x7530
push 0x2710
push 0x2710
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x40dbc8
lea ecx, [ebp - 0xcc]
call fcn.004066b0
push str._PROXY_DETECT__Failed_to_set_timeouts_for_WinHttp_requests
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00408060
push eax
call fcn.004038c0
add esp, 8
lea ecx, [ebp - 0xcc]
mov dword [ebp - 4], 0xffffffff
call fcn.00406a00
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x411f20
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x1c], 8
push esi
push edi
push 0
push 0x80
push 3
push 0
push 3
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x411f69
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
test eax, eax
jne 0x411f89
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
or edi, esi
cmp dword [ebp + 0x1c], 8
jb 0x411f7f
push dword [ebp + 8]
call fcn.00419e3e
add esp, 4
mov edx, edi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
jmp 0x411f6e
Function at 0x414910
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x461c88]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x230]
push eax
push esi
xor edi, edi
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
jne 0x414999
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x414999
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0041d114
add esp, 8
test eax, eax
je 0x414993
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x414960
jmp 0x414999
mov edi, dword [ebp - 0x228]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x1c], 8
jb 0x4149b1
push dword [ebp + 8]
call fcn.00419e3e
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0041a5c9
mov esp, ebp
pop ebp
ret

Function at 0x414c20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x461c88]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x464260
push dword [0x461748]
call fcn.0040bcd0
add esp, 8
test eax, eax
jne 0x414c7a
push eax
push 0x464260
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x414c67
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x414c7a
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a5c9
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x414cbe
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0041c5ca
lea ecx, [ebp - 0x20c]
sub eax, ecx
sar eax, 1
push eax
push ecx
push 0x104
push 0x464260
call fcn.0041c50c
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0041a5c9
mov esp, ebp
pop ebp
ret
Function at 0x415b00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44cbb8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x461c88]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp dword [ebp + 0x24], 8
push 0x44
lea eax, [ebp - 0x60]
push 0
lea edi, [ebp + 0x10]
cmovae edi, dword [ebp + 0x10]
push eax
mov dword [ebp - 4], 0
call fcn.0041b3e0
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push esi
push 0
push 0
push 0
push 0
push 0
xorps xmm0, xmm0
push edi
push ebx
mov dword [ebp - 0x60], 0x44
movq qword [ebp - 0x1c], xmm0
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x415ba9
push 0x19
push str.presenter_app_start_issue
mov ecx, 0x46176c
call fcn.004026b0
mov dword [0x464248], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x464250], eax
cmp dword [ebp + 0x24], 8
jb 0x415bba
push dword [ebp + 0x10]
call fcn.00419e3e
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x434a0c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x461c88]
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.004224ce
mov dword [ebp - 0x14], eax
cmp dword [0x46766c], edi
jne 0x434afd
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x434a8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x434bdd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x434bdd
push 0x4569fc
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x434bdd
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x46766c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x467670], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x467674], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46767c], eax
test eax, eax
je 0x434afa
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x467678], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x434b22
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x434b15
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x434b37
push 4
pop eax
jmp 0x434bdf
cmp dword [ebp - 0x14], edi
je 0x434b37
push dword [0x46766c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x434b1c
mov eax, dword [0x467678]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x434b95
cmp dword [0x46767c], esi
je 0x434b95
push eax
call ebx
push dword [0x46767c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x434b95
test eax, eax
je 0x434b95
call ecx
test eax, eax
je 0x434b8a
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 0x434b8a
test byte [ebp - 8], 1
jne 0x434b95
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x434bc5
mov eax, dword [0x467670]
cmp eax, esi
je 0x434bc2
push eax
call ebx
test eax, eax
je 0x434bc2
call eax
mov edi, eax
test edi, edi
je 0x434bc2
mov eax, dword [0x467674]
cmp eax, esi
je 0x434bc2
push eax
call ebx
test eax, eax
je 0x434bc2
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x46766c]
call ebx
test eax, eax
je 0x434bdd
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x434bdf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a5c9
leave
ret
Function at 0x4391a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00425481
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4391d8
xor eax, eax
jmp 0x439204
cmp esi, dword [ebp - 4]
je 0x439201
cmp dword [ebp + 0xc], 0
je 0x439201
push dword [edi + 0x9c]
call fcn.00438dae
push dword [edi + 0x9c]
mov esi, eax
call fcn.004237bb
pop ecx
pop ecx
cmp esi, eax
je 0x4391d4
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x402600
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40262c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x402654
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x40265a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x4026c2
jg 0x402671
test esi, esi
je 0x4026c2
test ecx, ecx
jl 0x4026bd
jg 0x40267b
test eax, eax
je 0x4026bd
cmp edi, ecx
jg 0x40268f
jl 0x402685
cmp esi, eax
jae 0x40268f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x4026c5
mov ecx, dword [ebp + 8]
jmp 0x4026cf
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x4026e9
jg 0x4026cf
test esi, esi
je 0x4026e9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x4026e9
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402700
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x40272c
jl 0x402720
test ecx, ecx
jne 0x40272c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x402745
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x402793
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x402799
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x402799
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x402806
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4027c2
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x4027f4
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x402806
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x4027d0
test edi, edi
je 0x402806
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc