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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x2316ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x60], 0
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x60]
push ecx
push 0
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp + 8]
call fcn.001a8bb0
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0017d370
add esp, 8
mov ecx, eax
call fcn.00014c40
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x65], al
lea ecx, [ebp - 0x3c]
call fcn.00014e90
lea ecx, [ebp - 0x20]
call fcn.000d0ca0
movzx ecx, byte [ebp - 0x65]
test ecx, ecx
je 0x1b19b6
xor al, al
jmp 0x1b19de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 2
je 0x1b19d4
cmp dword [ebp - 0x64], 3
je 0x1b19d4
mov dword [ebp - 0x70], 0
jmp 0x1b19db
mov dword [ebp - 0x70], 1
mov al, byte [ebp - 0x70]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00158a41
mov esp, ebp
pop ebp
ret 4

Function at 0x1b19f0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x2316ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x7c], ecx
push 1
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.001a8bb0
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0017d370
add esp, 8
mov ecx, eax
call fcn.00014c40
push eax
lea edx, [ebp - 0x58]
push edx
mov ecx, dword [ebp + 8]
call fcn.001a8bb0
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0017d370
add esp, 8
mov ecx, eax
call fcn.00014c40
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x75], al
lea ecx, [ebp - 0x74]
call fcn.00014e90
lea ecx, [ebp - 0x58]
call fcn.000d0ca0
lea ecx, [ebp - 0x3c]
call fcn.00014e90
lea ecx, [ebp - 0x20]
call fcn.000d0ca0
mov al, byte [ebp - 0x75]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00158a41
mov esp, ebp
pop ebp
ret 8
Function at 0x1b1a90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x2316ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x258], ecx
lea eax, [ebp - 0x250]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1b1ac6
xor al, al
jmp 0x1b1b56
call fcn.001b2470
movzx ecx, al
test ecx, ecx
jne 0x1b1af3
push 0x105
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x1b1af3
xor al, al
jmp 0x1b1b56
lea ecx, [ebp - 0x250]
push ecx
call fcn.001b2450
add esp, 4
push eax
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call fcn.001a8bb0
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0017d370
add esp, 8
mov ecx, eax
call fcn.00014c40
push eax
call fcn.001b24b0
add esp, 0xc
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x251], al
lea ecx, [ebp - 0x3c]
call fcn.00014e90
lea ecx, [ebp - 0x20]
call fcn.000d0ca0
mov al, byte [ebp - 0x251]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00158a41
mov esp, ebp
pop ebp
ret 4
Function at 0x1b1d80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x2316ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x274], ecx
movzx eax, byte [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0xfffffff9
add eax, 0x23
mov dword [ebp - 0x5c], eax
push 1
mov ecx, dword [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x270]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x1b1dca
xor al, al
jmp 0x1b1f7a
call fcn.001b2470
movzx eax, al
test eax, eax
jne 0x1b1dfa
push 0x105
lea ecx, [ebp - 0x270]
push ecx
lea edx, [ebp - 0x270]
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x1b1dfa
xor al, al
jmp 0x1b1f7a
push 0xffffffffffffffff
push 0x1dea6c
push 0x105
lea eax, [ebp - 0x270]
push eax
call fcn.001b2570
add esp, 0x10
mov dword [ebp - 0x60], eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x274]
add ecx, 4
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.0017d370
add esp, 8
mov ecx, eax
call fcn.00014c40
push eax
mov eax, 0x105
sub eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x60]
lea edx, [ebp + ecx*2 - 0x270]
push edx
call fcn.001b2500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x20]
call fcn.00014e90
cmp dword [ebp - 0x60], 0
jbe 0x1b1ea1
mov eax, dword [ebp - 0x60]
movzx ecx, word [ebp + eax*2 - 0x272]
cmp ecx, 0x5c
je 0x1b1ea1
push 0xffffffffffffffff
push 0x1deb0c
mov edx, 0x105
sub edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x60]
lea ecx, [ebp + eax*2 - 0x270]
push ecx
call fcn.001b2500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
push 0xffffffffffffffff
mov edx, dword [ebp - 0x274]
add edx, 0x20
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.0017d370
add esp, 8
mov ecx, eax
call fcn.00014c40
push eax
mov ecx, 0x105
sub ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x60]
lea eax, [ebp + edx*2 - 0x270]
push eax
call fcn.001b2500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x3c]
call fcn.00014e90
cmp dword [ebp - 0x60], 0
jbe 0x1b1f2a
mov ecx, dword [ebp - 0x60]
movzx edx, word [ebp + ecx*2 - 0x272]
cmp edx, 0x5c
je 0x1b1f2a
push 0xffffffffffffffff
push 0x1debbc
mov eax, 0x105
sub eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x60]
lea edx, [ebp + ecx*2 - 0x270]
push edx
call fcn.001b2500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0x104
jb 0x1b1f37
xor al, al
jmp 0x1b1f7a
mov ecx, dword [ebp + 8]
call fcn.001a8b20
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.001aa380
add esp, 8
push eax
mov ecx, dword [ebp + 8]
call fcn.001a8f80
lea ecx, [ebp - 0x58]
call fcn.000d0ca0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x274]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x274]
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00158a41
mov esp, ebp
pop ebp
ret 8
Function at 0x1b2000
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x2316ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], ecx
cmp dword [ebp + 0xc], 0
jne 0x1b2026
xor al, al
jmp 0x1b223c
lea ecx, [ebp - 0x218]
call fcn.000150e0
mov dword [ebp - 0x1fc], 0
push 4
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp + 8]
call fcn.001a9310
movzx ecx, al
test ecx, ecx
je 0x1b20a1
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x20]
call fcn.00016550
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0017d370
add esp, 8
push eax
lea ecx, [ebp - 0x218]
call fcn.0001fd10
lea ecx, [ebp - 0x3c]
call fcn.00014e90
lea ecx, [ebp - 0x20]
call fcn.000d0ca0
lea ecx, [ebp - 0x218]
call fcn.00014c40
mov dword [ebp - 0x1fc], eax
jmp 0x1b2108
push 0x1dec5c
push 2
push 0
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
call fcn.001a8e60
mov ecx, eax
call fcn.0001b350
push eax
call fcn.0001e3d0
add esp, 8
mov byte [ebp - 0x231], al
lea ecx, [ebp - 0x74]
call fcn.000d0ca0
lea ecx, [ebp - 0x58]
call fcn.000d0ca0
movzx ecx, byte [ebp - 0x231]
test ecx, ecx
je 0x1b2108
mov byte [ebp - 0x232], 0
lea ecx, [ebp - 0x218]
call fcn.00014e90
mov al, byte [ebp - 0x232]
jmp 0x1b223c
mov edx, dword [ebp - 0x1fc]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x228]
and eax, 4
jne 0x1b2131
mov ecx, dword [ebp - 0x228]
and ecx, 0
je 0x1b219b
xor edx, edx
je 0x1b217e
lea eax, [ebp - 0x224]
push eax
push str._remove_or_unknown_drive
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x138]
call fcn.00184170
mov ecx, eax
call fcn.0017f550
push eax
call fcn.000116a0
add esp, 8
push eax
call fcn.000116a0
add esp, 8
lea ecx, [ebp - 0x138]
call fcn.00184580
jmp 0x1b2131
mov byte [ebp - 0x233], 0
lea ecx, [ebp - 0x218]
call fcn.00014e90
mov al, byte [ebp - 0x233]
jmp 0x1b223c
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x1fc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1b21da
mov byte [ebp - 0x234], 1
lea ecx, [ebp - 0x218]
call fcn.00014e90
mov al, byte [ebp - 0x234]
jmp 0x1b223c
xor edx, edx
je 0x1b2217
push str._GetDiskFreeSpaceEx_returns_error
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x1f8]
call fcn.00184170
mov ecx, eax
call fcn.0017f550
push eax
call fcn.000116a0
add esp, 8
lea ecx, [ebp - 0x1f8]
call fcn.00184580
jmp 0x1b21da
mov byte [ebp - 0x235], 0
lea ecx, [ebp - 0x218]
call fcn.00014e90
mov al, byte [ebp - 0x235]
jmp 0x1b223c
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00158a41
mov esp, ebp
pop ebp
ret 8
Function at 0x1b2250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x2316ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x154], ecx
lea ecx, [ebp - 0x140]
call fcn.001a89b0
mov dword [ebp - 0x148], 0
push 0
lea ecx, [ebp - 0x144]
call fcn.0019b8e0
lea ecx, [ebp - 0x144]
call fcn.0017da50
push eax
mov eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
jne 0x1b2328
xor ecx, ecx
je 0x1b22fb
push str.::GetCurrentDirectory___failed
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
push 4
push 0x1c0
push str.P:p_agentshpam2.eem_recipes201152726_base_branchesinputtools_win_release_branchgoogleclient_third_partylibjingle_files_talk_basewin32filesystem.cc
lea ecx, [ebp - 0xc8]
call fcn.00184170
mov ecx, eax
call fcn.0017f550
push eax
call fcn.000116a0
add esp, 8
lea ecx, [ebp - 0xc8]
call fcn.00184580
jmp 0x1b22b3
lea edx, [ebp - 0x140]
push edx
mov ecx, dword [ebp + 8]
call fcn.001b2400
lea ecx, [ebp - 0x144]
call fcn.001b24d0
lea ecx, [ebp - 0x140]
call fcn.0019f370
mov eax, dword [ebp + 8]
jmp 0x1b23e2
mov eax, dword [ebp - 0x14c]
cmp eax, dword [ebp - 0x148]
jg 0x1b2338
jmp 0x1b2388
xor ecx, ecx
mov eax, dword [ebp - 0x14c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00157a7c
add esp, 4
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
push eax
lea ecx, [ebp - 0x144]
call fcn.0017da10
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x148], ecx
mov edx, 1
test edx, edx
jne 0x1b228b
lea ecx, [ebp - 0x144]
call fcn.0017da50
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.001aa380
add esp, 8
push eax
lea ecx, [ebp - 0x140]
call fcn.001a8f80
lea ecx, [ebp - 0xe4]
call fcn.000d0ca0
lea ecx, [ebp - 0x140]
push ecx
mov ecx, dword [ebp + 8]
call fcn.001b2400
lea ecx, [ebp - 0x144]
call fcn.001b24d0
lea ecx, [ebp - 0x140]
call fcn.0019f370
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00158a41
mov esp, ebp
pop ebp
ret 4

Function at 0x1b3a45
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x1b3a6c
call fcn.0015aeef
mov dword [eax], esi
call fcn.0015aedc
push 0x16
pop esi
mov dword [eax], esi
call fcn.00158cab
mov eax, esi
jmp 0x1b3ac1
test dword [ebp + 0xc], 0xfffffff9
jne 0x1b3a52
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1b3a99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0015af02
pop ecx
call fcn.0015aedc
mov eax, dword [eax]
jmp 0x1b3ac1
test al, 0x10
jne 0x1b3abf
test al, 1
je 0x1b3abf
test byte [ebp + 0xc], 2
je 0x1b3abf
call fcn.0015aeef
mov dword [eax], 5
call fcn.0015aedc
mov dword [eax], 0xd
jmp 0x1b3a90
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10009090
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10042410
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.10024bba
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10022e69
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10009210
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000f860
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10042acd
push eax
mov dword fs:[0], esp
lea eax, [ebp - 0x230]
sub esp, 0x224
push esi
push 0x208
push 0
push eax
call fcn.100268f0
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov esi, ecx
mov eax, dword [ecx + 0x14]
cmp eax, 0xf
jbe 0x1000f8a4
mov esi, dword [ecx]
mov edx, dword [ecx + 0x10]
cmp edx, 2
jne 0x1000f924
mov eax, edx
sub eax, 4
push edi
mov edi, 0x1004e1a0
mov dword [ebp + 0xc], eax
jb 0x1000f8d7
nop dword [eax]
mov eax, dword [esi]
cmp eax, dword [edi]
jne 0x1000f8dc
mov eax, dword [ebp + 0xc]
add esi, 4
add edi, 4
sub eax, 4
mov dword [ebp + 0xc], eax
jae 0x1000f8c0
cmp eax, 0xfffffffc
je 0x1000f913
mov al, byte [esi]
cmp al, byte [edi]
jne 0x1000f90c
cmp dword [ebp + 0xc], 0xfffffffd
je 0x1000f913
mov al, byte [esi + 1]
cmp al, byte [edi + 1]
jne 0x1000f90c
cmp dword [ebp + 0xc], 0xfffffffe
je 0x1000f913
mov al, byte [esi + 2]
cmp al, byte [edi + 2]
jne 0x1000f90c
cmp dword [ebp + 0xc], 0xffffffff
je 0x1000f913
mov al, byte [esi + 3]
cmp al, byte [edi + 3]
je 0x1000f913
sbb eax, eax
or eax, 1
jmp 0x1000f915
xor eax, eax
pop edi
test eax, eax
jne 0x1000f921
mov eax, 0x1a
jmp 0x1000f994
mov eax, dword [ecx + 0x14]
cmp eax, 0xf
jbe 0x1000f92b
mov ecx, dword [ecx]
cmp edx, 2
jne 0x1000fa32
mov esi, 0x1004e1a4
sub edx, 4
jb 0x1000f951
nop
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x1000f956
add ecx, 4
add esi, 4
sub edx, 4
jae 0x1000f940
cmp edx, 0xfffffffc
je 0x1000f98a
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x1000f983
cmp edx, 0xfffffffd
je 0x1000f98a
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x1000f983
cmp edx, 0xfffffffe
je 0x1000f98a
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x1000f983
cmp edx, 0xffffffff
je 0x1000f98a
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x1000f98a
sbb eax, eax
or eax, 1
jmp 0x1000f98c
xor eax, eax
test eax, eax
jne 0x1000fa32
push 0
push eax
lea eax, [ebp - 0x230]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1000fa32
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x24]
call fcn.10010b40
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
cmp dword [ebp - 0x10], 7
mov eax, dword [ebp - 0x14]
cmova ecx, dword [ebp - 0x24]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x24]
cmova ecx, dword [ebp - 0x24]
push ecx
push eax
push ecx
mov ecx, esi
call fcn.10011340
mov ecx, dword [ebp - 0x10]
cmp ecx, 7
jbe 0x1000fa1f
mov edx, dword [ebp - 0x24]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000fa15
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000fa6b
push ecx
push edx
call fcn.10024bea
add esp, 8
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0xc]
pop esi
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
call fcn.1002b8d6
int3
Function at 0x1000fcb0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x18
cmp dword [eax + 0x14], 0xf
jbe 0x1000fcc1
mov eax, dword [eax]
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp + 0xc], esi
cmp esi, 0xffffffff
jne 0x1000fd03
mov eax, dword [ebp + 8]
pop esi
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov esp, ebp
pop ebp
ret 8
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000fd3a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
pop ebx
pop esi
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov esp, ebp
pop ebp
ret 8
xor eax, eax
xor esi, esi
push edi
xor edi, edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
test ebx, ebx
je 0x1000fd7d
cmp ebx, 0x7fffffff
ja 0x1000fe42
push ebx
lea ecx, [ebp - 0x18]
call fcn.10002270
mov esi, dword [ebp - 0x18]
push ebx
push edi
push esi
call fcn.100268f0
mov edi, dword [ebp - 0x10]
lea eax, [esi + ebx]
add esp, 0xc
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
test eax, eax
jne 0x1000fde7
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp + 8]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
test esi, esi
je 0x1000fddc
sub edi, esi
mov eax, esi
cmp edi, 0x1000
jb 0x1000fdd2
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000fe47
push edi
push esi
call fcn.10024bea
add esp, 8
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x1000fe2b
mov ebx, dword [ebp + 8]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
test esi, esi
je 0x1000fddc
sub edi, esi
mov eax, esi
cmp edi, 0x1000
jb 0x1000fdd2
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000fe47
jmp 0x1000fdd2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [eax + 8], edi
pop edi
pop ebx
mov dword [eax], esi
mov dword [eax + 4], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
call fcn.10002260
call fcn.1002b8d6
int3
Function at 0x10011070
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042b8f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], 0
push edi
lea ecx, [ebx + 0x68]
mov dword [ebx], 0x1004e308
call fcn.10008d20
mov dword [ebp - 4], 0
lea esi, [ebx + 4]
mov eax, dword [ebx]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], esi
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push ecx
push esi
lea eax, [ecx - 8]
mov dword [ecx + ebx - 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.10009270
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], esi
lea eax, [ecx - 0x68]
mov dword [ecx + ebx - 4], eax
mov ecx, esi
call fcn.10009090
lea eax, [ebx + 4]
lea ebx, [eax + 4]
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [eax + 0xc], ebx
lea ecx, [eax + 0x18]
mov dword [eax + 0x20], ecx
lea esi, [eax + 8]
mov byte [eax + 0x48], 0
lea edi, [eax + 0x14]
mov byte [eax + 0x3d], 0
lea edx, [eax + 0x24]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x1c]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [0x10059258]
mov dword [eax], 0
mov eax, dword [0x10059254]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x14]
mov dword [edi], 0
mov dword [edx], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x38], 0
mov byte [ebp - 4], 3
cmp dword [ebx + 0x4c], 0
jne 0x1001120b
push 0x40
push 0x22
push dword [ebp + 8]
call fcn.100245fd
add esp, 0xc
test eax, eax
je 0x1001120b
push 1
push eax
mov ecx, ebx
call fcn.10010e80
mov eax, dword [ebx + 0x34]
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0x1c], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 4
push eax
call fcn.10011450
add esp, 4
mov ecx, ebx
push eax
call fcn.10010d50
test esi, esi
je 0x100111f5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x100111f5
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebp - 0x10]
push 0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, esi
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10002e10
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100124a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10041d9d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x43c
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
test edi, edi
je 0x1001254a
push 0x400
lea eax, [ebp - 0x448]
push 0
push eax
call fcn.100268f0
add esp, 0xc
lea eax, [ebp - 0x448]
push 0x400
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jle 0x1001254a
xorps xmm0, xmm0
lea ecx, [ebp - 0x448]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
lea edx, [ecx + 1]
mov dword [esi + 0x14], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10012520
sub ecx, edx
lea eax, [ebp - 0x448]
push ecx
push eax
mov ecx, esi
call fcn.10003350
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea edi, [ebp - 0x33]
mov dword [ebp - 0x10], ecx
mov eax, 0xcccccccd
dec edi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x10]
add cl, cl
sub al, cl
mov ecx, edx
add al, 0x30
mov byte [edi], al
mov eax, edx
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x10012558
push ecx
lea eax, [ebp - 0x33]
push eax
push edi
lea ecx, [ebp - 0x30]
call fcn.10001670
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
mov edx, str.W_e:
mov ecx, esi
call fcn.10002010
mov ecx, dword [ebp - 0x1c]
add esp, 4
cmp ecx, 0xf
jbe 0x100125d9
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100125cf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100125eb
push ecx
push edx
call fcn.10024bea
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.1002b8d6
int3