joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f9e0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x476490], 0
je 0x43fbb5
push ebx
push esi
push edi
xor esi, esi
mov dword [0x476490], 0
xor edi, edi
mov edi, edi
movzx eax, byte [edi + 0x462e39]
mov ecx, 0x1f
sub ecx, eax
mov edx, 1
movzx eax, byte [edi + 0x462e38]
add edi, 2
shl edx, cl
mov ecx, 0x1f
sub ecx, eax
mov eax, 1
shl eax, cl
or edx, eax
or esi, edx
cmp edi, 0xe
jl 0x43fa00
xor ecx, ecx
mov eax, ecx
shr eax, 1
test cl, 1
je 0x43fa43
xor eax, esi
test al, 1
je 0x43fa4d
shr eax, 1
xor eax, esi
jmp 0x43fa4f
shr eax, 1
test al, 1
je 0x43fa59
shr eax, 1
xor eax, esi
jmp 0x43fa5b
shr eax, 1
test al, 1
je 0x43fa65
shr eax, 1
xor eax, esi
jmp 0x43fa67
shr eax, 1
test al, 1
je 0x43fa71
shr eax, 1
xor eax, esi
jmp 0x43fa73
shr eax, 1
test al, 1
je 0x43fa7d
shr eax, 1
xor eax, esi
jmp 0x43fa7f
shr eax, 1
test al, 1
je 0x43fa89
shr eax, 1
xor eax, esi
jmp 0x43fa8b
shr eax, 1
test al, 1
je 0x43fa95
shr eax, 1
xor eax, esi
jmp 0x43fa97
shr eax, 1
mov dword [ecx*4 + 0x47dd48], eax
inc ecx
cmp ecx, 0x100
jl 0x43fa38
mov edi, 0x47f148
lea esp, [esp]
mov edx, dword [edi - 0x1400]
mov ecx, edx
and ecx, 0xff00
mov eax, edx
shl eax, 0x10
mov esi, edx
add ecx, eax
shr esi, 8
shl ecx, 8
mov eax, esi
and eax, 0xff00
add ecx, eax
mov eax, edx
shr eax, 0x18
add ecx, eax
movzx eax, dl
mov dword [edi - 0x400], ecx
mov ebx, dword [eax*4 + 0x47dd48]
xor ebx, esi
mov ecx, ebx
mov dword [edi - 0x1000], ebx
and ecx, 0xff00
mov eax, ebx
shl eax, 0x10
mov edx, ebx
add ecx, eax
shr edx, 8
shl ecx, 8
mov eax, edx
and eax, 0xff00
add ecx, eax
mov eax, ebx
shr eax, 0x18
add ecx, eax
movzx eax, bl
mov dword [edi], ecx
mov ebx, dword [eax*4 + 0x47dd48]
xor ebx, edx
mov ecx, ebx
mov dword [edi - 0xc00], ebx
and ecx, 0xff00
mov eax, ebx
shl eax, 0x10
mov esi, ebx
add ecx, eax
shr esi, 8
shl ecx, 8
mov eax, esi
and eax, 0xff00
add ecx, eax
mov eax, ebx
shr eax, 0x18
add ecx, eax
movzx eax, bl
mov dword [edi + 0x400], ecx
mov edx, dword [eax*4 + 0x47dd48]
xor edx, esi
mov ecx, edx
mov dword [edi - 0x800], edx
and ecx, 0xff00
mov eax, edx
shl eax, 0x10
add ecx, eax
mov eax, edx
shr eax, 8
shl ecx, 8
and eax, 0xff00
add ecx, eax
shr edx, 0x18
add ecx, edx
mov dword [edi + 0x800], ecx
add edi, 4
cmp edi, 0x47f548
jl 0x43fab0
pop edi
pop esi
mov dword [0x4761e0], 0
pop ebx
ret
cmp dword [0x4761e0], 0
jne 0x43fbb5
ret
Function at 0x442e70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x442e7d
xor eax, eax
pop ebp
ret
cmp dword [0x4761e0], 0
je 0x442e8b
call fcn.0043f9e0
pop ebp
jmp fcn.0043cd50
Function at 0x4519ab
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4764d0]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00450125
mov dword [ebp - 0x14], eax
cmp dword [0x481264], esi
jne 0x451a9e
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x451a2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x451b7e
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x451b7e
push 0x46b040
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x451b7e
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x481264], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x481268], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x48126c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x481274], eax
test eax, eax
je 0x451a9b
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x481270], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x451ac3
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x451ab6
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x451ad8
push 4
pop eax
jmp 0x451b80
cmp dword [ebp - 0x14], esi
je 0x451ad8
push dword [0x481264]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x451abd
mov eax, dword [0x481270]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x451b36
cmp dword [0x481274], edi
je 0x451b36
push eax
call ebx
push dword [0x481274]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x451b36
test eax, eax
je 0x451b36
call ecx
test eax, eax
je 0x451b2b
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 0x451b2b
test byte [ebp - 8], 1
jne 0x451b36
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x451b66
mov eax, dword [0x481268]
cmp eax, edi
je 0x451b63
push eax
call ebx
test eax, eax
je 0x451b63
call eax
mov esi, eax
test esi, esi
je 0x451b63
mov eax, dword [0x48126c]
cmp eax, edi
je 0x451b63
push eax
call ebx
test eax, eax
je 0x451b63
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x481264]
call ebx
test eax, eax
je 0x451b7e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x451b80
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448a5b
mov esp, ebp
pop ebp
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x805fc4
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x805fca
pop ebp
sub ebp, 6
sub ebp, 0x405fc4
jmp 0x806028
or dword [esi + 0xf], 0x5a95db20
fcom dword [esi + 0x6a]
mov ebx, dword [esi + 0x486ebe51]
fisub word [edx]
mov ebp, 0x77e2a302
mov byte [esi - 0x10], bh
shl dword [edi - 0x17], 1
add al, 0
add byte [eax], al
xchg ebp, eax
and ch, byte [esi + 0x3a]
jmp 0x806031
mov eax, 0x405fc4
add eax, ebp
add eax, 0x93
mov ecx, 0x636
mov edx, 0xcf5f54ab
xor byte [eax], dl
inc eax
dec ecx
jne 0x806048
jmp 0x80605b
shr ebx, 0xc3
stosd dword es:[edi], eax
mov ebx, 0xabc3abab
xchg dword [bp + di + 0x6b98], ebp
sti
push esp
stosd dword es:[edi], eax
jp 0x80600c
stosd dword es:[edi], eax
sti
and byte [esi + 0x20], ah
and dl, byte [edi + 0x2aababab]
push 0x53
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test al, 0x66
adc ebp, dword [ebp + 0x11ababab]
sub dword [ebx + 0x495cabab], 0xffffffa8
arpl word [eax], sp
sub ah, byte [edi - 0x57545455]
outsb dx, byte [esi]
sti
ret
Function at 0x423b90
Capabilities:
Get disk information
Get system information on windows
Write file on windows

Disassembly:
sub esp, 0x41c
mov eax, dword [0x42f004]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [0x434ffc]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push edi
mov ebx, 0x1519a5
mov edi, 0x8e46a7b8
lea esp, [esp]
mov dword [0x434c64], edi
cmp eax, 0x3dc
jne 0x423bd6
push 0
call esi
mov eax, dword [0x434ffc]
dec ebx
jne 0x423bc0
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
xor esi, esi
cmp eax, 0x933
jne 0x423c2e
xor eax, eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x30]
push ecx
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call ebx
mov eax, dword [0x434ffc]
cmp esi, 0x845fef
jne 0x423c45
mov eax, dword [0x430bd0]
add eax, 0xa231
mov dword [0x434ffc], eax
cmp eax, 0x141
jne 0x423c60
mov dword [0x4322a8], 0xec58acac
mov dword [0x4322ac], 0xffffffff
inc esi
cmp esi, 0x12d1832
jl 0x423be7
call fcn.004237c0
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004010ea
add esp, 0x41c
ret 0x10
Function at 0x413ce0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x413d0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x413d0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x419d30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x410015
lea edi, [esi - 0xf015]
push edi
or ebp, 0xffffffff
jmp 0x419d52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419d59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419d48
mov eax, 1
add ebx, ebx
jne 0x419d6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419d60
jne 0x419d7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419d60
xor ecx, ecx
sub eax, 3
jb 0x419d90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419e02
mov ebp, eax
add ebx, ebx
jne 0x419d9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419da8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x419dcc
inc ecx
add ebx, ebx
jne 0x419db8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x419dad
jne 0x419dc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419dad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x419dec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x419ddd
jmp 0x419d4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x419dec
add edi, ecx
jmp 0x419d4e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x419e0a
cmp byte [edi], 5
jne 0x419e0a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x419e0f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x419e87
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x419e3c
mov ecx, edi
jns 0x419e6b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x419e81
mov dword [ebx], eax
add ebx, 4
jmp 0x419e59
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x419ebb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x100027b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x101c793c]
and eax, 0x10fda5c
mov ecx, dword [ebp + 8]
mov dword [0x101c7a58], eax
mov eax, dword [0x101c78a8]
add eax, dword [0x101c7984]
mov dword [0x101c7a10], eax
imul eax, dword [0x101c796c], 0xc27f09
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 4
mov dword [0x101c79e4], 0xffde4e05
mov dword [0x101c78ec], eax
mov eax, dword [0x101c7898]
add eax, dword [0x101c79e0]
lea edx, [edi + 3]
mov dword [0x101c79b4], eax
mov eax, dword [0x101c7a30]
imul eax, dword [0x101c7a40]
mov dword [0x101c78c4], eax
mov eax, dword [0x101c7878]
add eax, dword [0x101c786c]
mov dword [0x101c7994], eax
mov eax, dword [0x101c7924]
and eax, dword [0x101c7868]
sub edi, ecx
mov dword [0x101c7a04], eax
lea eax, [ecx + 1]
movzx ecx, byte [edx - 3]
lea edx, [edx + 4]
xor byte [eax - 1], cl
lea eax, [eax + 4]
movzx ecx, byte [edi + eax - 4]
xor byte [eax - 4], cl
movzx ecx, byte [edx - 5]
xor byte [eax - 3], cl
movzx ecx, byte [edx - 4]
xor byte [eax - 2], cl
sub esi, 1
jne 0x10002841
pop edi
pop esi
pop ebp
ret 8
Function at 0x1000f96f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000f9c8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000f9c8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x1000f9b9
cmp esi, ecx
jae 0x1000f9c8
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x1000f9a7
cmp esi, ecx
jae 0x1000f9c8
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
jmp 0x1000f9ca
xor eax, eax
pop esi
pop ebp
ret

Function at 0x10011e90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x1016b2bb
call fcn.10143759
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x10011f87
cmp edi, dword [ebx + 0xc]
jge 0x10011f87
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x10011ee7
cmp edi, dword [esi + 8]
jl 0x10011f75
cmp dword [ebp + 0xc], 0
je 0x10011f75
xor edi, edi
jmp 0x10011f19
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.10011ac8
mov esi, eax
test esi, esi
je 0x10011f01
mov dword [esi], vtable.CThreadData.0
jmp 0x10011f03
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esi + eax], ecx
mov dword [ebx + 0x14], esi
push 4
push dword [ebx + 0xc]
call fcn.10010601
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x10011f35
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x10011f41
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x10011fae
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.101470d0
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x10011f87
cmp edi, dword [esi + 8]
jge 0x10011f87
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.101436be
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.1000fb6f
int3
Function at 0x10014398
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x100143c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100143c8
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
leave
ret
lea ecx, [esi + 0xc]
call fcn.1000e879
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.10016ac0
int3

Function at 0x100146a3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x100146b4
xor eax, eax
jmp 0x100146d0
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100146d5
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
lea ecx, [esi + 0xc]
call fcn.1000e879
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.10016ac0
int3

Function at 0x10014773
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x10179940]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x100147a6
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.1000e879
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.10016ac0
int3

Function at 0x1001487a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x100148a5
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100148ab
cmp dword [ebp - 4], esi
jne 0x100148c2
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.1000e879
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.10016ac0
lea ecx, [edi + 0xc]
call fcn.1000e879
push eax
push 0xffffffffffffffff
push 0xd
call fcn.10016716
int3
Function at 0x10015928
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.10015e39
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x10015964
call fcn.10015b45
mov dword [esi + 0xc], 1
jmp 0x10015969
call fcn.10015b45
cmp dword [esi], 0
je 0x100159b4
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x1001598f
push edi
call fcn.10010430
lea ecx, [edi + 1]
push ecx
jmp 0x1001599e
push 0xff
call fcn.1000f320
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.10010453
pop edi
jmp 0x100159d8
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x100159d8
push dword [esi]
push dword [ebp - 4]
call fcn.10014da9
pop esi
leave
ret 0xc

Function at 0x10015a9c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.10015b45
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x10015ae4
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10010430
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10010453
jmp 0x10015aef
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.10014da9
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10015ef3
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x1016b24f
call fcn.101436f0
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x10015f19
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x10015f73
lea ecx, [ebp - 0x10]
call fcn.1000e720
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x10179940]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.1014d05b
push eax
call fcn.1000e8ad
add esp, 0x14
test esi, esi
je 0x10015f66
push esi
call fcn.1014cfd0
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.1000f46e
mov eax, ebx
call fcn.101436be
ret 8
Function at 0x10016ea6
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x101c6dd4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x128
xor edi, edi
push edi
push esi
call fcn.101470d0
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.1014d05b
push eax
call fcn.1000e8ad
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x1017b740]
je 0x10017004
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x10017018
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10017018
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
je 0x10016f62
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x10016f56
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.10016c57
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x10016f5d
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10016f64
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.10017156
test eax, eax
je 0x10016f8b
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.10016ade
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x10016f8f
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.10017156
test eax, eax
je 0x10016fb6
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.10016ade
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x10016fba
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.10017156
test eax, eax
je 0x10016fe2
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.10016ade
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x10016fe4
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x10016ff6
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x10017004
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10143002
leave
ret 4
xor eax, eax
jmp 0x10017007