joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100865b2
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10097757
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x100a77f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], edx
mov edi, ecx
test edx, edx
jne 0x100865f9
and dword [edi], edx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
push dword [0x100a7828]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [ebp - 0x18]
mov ebx, eax
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.10015431
test al, al
je 0x10086624
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
jmp 0x100865e5
mov edx, dword [ebp - 0x18]
mov ecx, ebx
push 0
call fcn.1001532f
mov ecx, ebx
mov dword [ebp - 0x24], eax
call fcn.100152a7
mov ecx, dword [ebp - 0x18]
mov edx, ebx
call fcn.10086737
mov esi, eax
mov ecx, ebx
test esi, esi
je 0x1008666d
mov edx, dword [ebp - 0x24]
call fcn.10015310
push esi
mov ecx, edi
call fcn.100140aa
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x100865e5
call fcn.10085d15
jmp 0x100865e5
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x3c], eax
call fcn.100869e7
cmp dword [ebp - 0x28], 0
jne 0x1008672c
mov edx, dword [ebp - 0x18]
xor ecx, ecx
push 1
call fcn.1001532f
mov esi, eax
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x18]
mov ecx, ebx
mov dword [ebp - 0x24], eax
call fcn.10086a48
mov edx, esi
mov ecx, ebx
call fcn.10015310
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.1001548c
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], eax
push ecx
lea ecx, [eax + 0x10]
call fcn.10086143
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x30], ecx
test ecx, ecx
jne 0x10086703
push dword [ebp - 0x24]
mov edx, esi
mov dword [eax + 0xc], esi
mov ecx, ebx
call fcn.1001553a
cmp byte [ebp - 0x11], 0
je 0x10086713
mov edx, dword [ebp - 0x20]
mov ecx, ebx
call fcn.10015601
cmp dword [ebp - 0x30], 0
je 0x1008661d
mov edx, dword [ebp - 0x18]
mov ecx, ebx
call fcn.10015601
jmp 0x1008661d
call fcn.10085532
int3
Function at 0x100867b2
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008d40a
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100a77f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
cmp ecx, edx
je 0x10086892
test edx, edx
je 0x100867f6
cmp byte [ebp + 8], 0
jne 0x100867f6
mov al, 1
jmp 0x100867f8
xor al, al
test ecx, ecx
setne bl
test al, al
je 0x10086861
push dword [0x100a7828]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [ebp - 0x10]
mov esi, eax
push 1
mov ecx, esi
call fcn.1001532f
mov ecx, esi
mov edi, eax
call fcn.100152a7
lea eax, [ebp - 0x10]
mov ecx, esi
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
call fcn.10086a48
test bl, bl
je 0x10086856
mov edx, dword [ebp - 0x14]
xor ecx, ecx
push 2
call fcn.1001532f
mov edi, eax
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x14]
mov ecx, esi
mov dword [ebp - 0x18], eax
call fcn.10086a9b
mov edx, edi
mov ecx, esi
call fcn.10015310
jmp 0x1008687b
test bl, bl
je 0x1008687e
push dword [0x100a7828]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [ebp - 0x14]
mov ecx, eax
call fcn.10015601
mov edx, dword [ebp - 0x10]
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
cmp byte [ebp + 8], 0
je 0x1008687e
call fcn.10085532
int3

Function at 0x100869c8
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x100869e5
push dword [0x100a7828]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, esi
mov ecx, eax
pop esi
jmp fcn.10015601
pop esi
ret

Function at 0x10087391
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
push dword [0x100a7828]
mov esi, edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 2
push esi
lea ecx, [eax + 0x88]
call fcn.10014272
mov dword [edi], eax
mov eax, edi
pop edi
pop esi
ret

Function at 0x100873f2
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [0x100a7828]
mov ebx, ecx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and dword [ebp - 4], 0
mov edi, eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebx]
lea ecx, [edi + 0x88]
call fcn.10014396
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov ecx, dword [esi]
test ecx, ecx
je 0x10087444
test bl, 2
je 0x1008743d
call fcn.10085d15
and dword [esi + 4], 0x800003ff
mov eax, dword [edi + 0x8c]
xor edx, edx
sar ebx, 0x11
and ebx, 0x1fff
mov ecx, dword [eax + ebx*4]
mov dword [esi + 4], edx
mov eax, dword [ecx]
mov dword [esi], eax
mov dword [ecx], esi
cmp dword [edi + 0x94], edx
jge 0x1008746f
mov dword [edi + 0x94], ebx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword [eax], edx
leave
ret
Function at 0x10087ba4
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x10087be1
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x10087bda
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x10087be6
add edx, 0x28
cmp edx, esi
jne 0x10087bcb
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x10087be3

Function at 0x1008ab50
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1008ab8e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x1008ab86
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x1008ab90
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x1008ab76
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1008ac60
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1008ac8f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1008ac8f
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4069c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4069e9
xor eax, eax
test eax, eax
je 0x4069fc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4069fc
xor ecx, ecx
jmp 0x4069ff
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b22
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x45fdec], 0
push esi
jne 0x406b59
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b33
mov dword [ecx*4 + 0x45fde8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406b8a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x45fde8]
xor eax, esi
inc ecx
dec edx
jne 0x406b6c
pop edi
not eax
pop esi
ret 0xc

Function at 0x5eb000
Capabilities:
Accept command line arguments
Check os version
Copy file
Delete file
Get common file path
Get file system object information
Set current directory
Set environment variable
Shutdown system
Terminate process

Disassembly:
push ebp
dec eax
mov ebp, esp
dec eax
sub esp, 0x38
dec eax
and esp, 0xfffffff0
dec eax
mov ecx, 0x5eb062
add byte [eax], al
add byte [eax], al
dec eax
mov eax, sym.imp.KERNEL32.dll_LoadLibraryA
add byte [eax], al
add byte [eax], al
call dword [eax]
dec eax
mov edx, 0x5eb06b
add byte [eax], al
add byte [eax], al
dec eax
mov ecx, eax
dec eax
mov eax, sym.imp.KERNEL32.dll_GetProcAddress
add byte [eax], al
add byte [eax], al
call dword [eax]
xor ecx, ecx
dec eax
mov dword [esp + 0x28], ecx
dec eax
mov dword [esp + 0x20], ecx
dec ecx
mov ecx, ecx
dec ecx
mov eax, 0x5eb078
add byte [eax], al
add byte [eax], al
dec eax
mov edx, ecx
call eax
leave
jmp fcn.00403640
Function at 0x100019e0
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 0x10001a3b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001a3b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10001a2a
cmp esi, edx
jae 0x10001a3b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10001a18
cmp esi, edx
jae 0x10001a3b
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10005df0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1004b220]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 0xffff
mov esi, ecx
cmp bx, di
jne 0x10005e27
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10036aba
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x10005e5d
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x10005e5d
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_protected:_wchar_t____thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Pninc_void_]
mov word [eax], di
mov ax, di
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10036aba
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10005f32
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ecx], eax
jne 0x10005e8a
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
sar edx, 1
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10005ebf
push dword [esi + 0x4c]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 8
cmp ax, bx
movzx eax, di
jne 0x10005f35
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10036aba
mov esp, ebp
pop ebp
ret 4
movzx eax, di
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet___wchar_t_const___wchar_t_const___wchar_t_const____char___char___char___const]
sub eax, 0
je 0x10005efe
sub eax, 1
je 0x10005efe
sub eax, 2
jne 0x10005f32
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x10005e95
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x10005f22
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x30], eax
jne 0x10005f32
lea ecx, [ebp - 0x28]
movzx eax, di
cmp dword [ebp - 0x34], ecx
mov byte [esi + 0x3e], 1
cmovne ebx, eax
mov ax, bx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10036aba
mov esp, ebp
pop ebp
ret 4
Function at 0x10006bb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1004b220]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10006c74
cmp byte [esi + 0x3e], 0
je 0x10006c74
mov eax, dword [esi]
push edi
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x10006c62
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x10006c29
sub eax, 1
je 0x10006c2d
sub eax, 2
jne 0x10006c62
mov byte [esi + 0x3e], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10036aba
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10006c4b
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10006c62
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10036aba
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10036aba
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10036aba
mov esp, ebp
pop ebp
ret
Function at 0x1000c8e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003877b
mov eax, dword fs:[0]
push eax
mov eax, 0x2010
call fcn.10037650
mov eax, dword [0x1004b220]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2018], edi
push 0x3ec
push edx
mov dword [ebp - 0x2018], edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
inc eax
push eax
lea eax, [ebp - 0x2014]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
call fcn.10001b20
mov ecx, eax
test ecx, ecx
je 0x1000ca3e
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2018], eax
lea eax, [ebp - 0x2014]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x2018]
call fcn.10006e20
test al, al
jne 0x1000c9b2
lea ecx, [ebp - 0x2014]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000c990
sub ecx, edx
lea eax, [ebp - 0x2014]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2018]
call fcn.100071a0
lea eax, [ebp - 0x2018]
mov dword [ebp - 4], 1
push eax
call fcn.1002c930
xorps xmm0, xmm0
lea ecx, [ebp - 0x2014]
movups xmmword [edi], xmm0
add esp, 4
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000c9e5
sub ecx, edx
lea eax, [ebp - 0x2014]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.1000d9f0
mov esi, dword [ebp - 0x2018]
or eax, 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000ca21
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10036aba
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100018f0
int3
Function at 0x1000ca50
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100387e2
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x1004b220]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x218], edi
mov dword [ebp - 4], 0
push 0x3ee
mov dword [ebp - 0x21c], edi
push edx
mov dword [ebp - 0x214], 0
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
inc eax
push eax
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
call fcn.10001b20
mov ecx, eax
test ecx, ecx
je 0x1000cb55
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x210]
mov dword [ebp - 4], 1
push eax
mov ecx, edi
call fcn.10006e20
test al, al
jne 0x1000cb1e
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000cb00
sub eax, edx
mov ecx, edi
sar eax, 1
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.100071a0
mov dword [ebp - 4], 0
push edi
mov dword [ebp - 0x214], 1
call fcn.1002c930
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10036aba
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100018f0
int3
Function at 0x10012830
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x1004c967], 1
jne 0x1001288c
push str.END_OF_EXCEPTION_HANDLER
push 0x1004c328
call fcn.10007530
add esp, 8
mov ecx, eax
push 0x10007800
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov ecx, 0x1004c328
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::flush_void_]
mov ecx, 0x1004c32c
call fcn.10006c90
test eax, eax
jne 0x1001288c
push eax
mov eax, dword [0x1004c328]
push 2
mov ecx, dword [eax + 4]
add ecx, 0x1004c328
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool_]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 4]
push eax
call fcn.10035720
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
mov edx, dword [ebp - 4]
add esp, 0xc
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100128c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esp, ebp
pop ebp
ret
Function at 0x1001a1c0
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 0x1001a1ec
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 0x1001a214
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1001a21a
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 0x1001a282
jg 0x1001a231
test esi, esi
je 0x1001a282
test ecx, ecx
jl 0x1001a27d
jg 0x1001a23b
test eax, eax
je 0x1001a27d
cmp edi, ecx
jg 0x1001a24f
jl 0x1001a245
cmp esi, eax
jae 0x1001a24f
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 0x1001a285
mov ecx, dword [ebp + 8]
jmp 0x1001a28f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x1001a2a9
jg 0x1001a28f
test esi, esi
je 0x1001a2a9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1001a2a9
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 0x1001a2c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
test eax, eax
jg 0x1001a2e4
jl 0x1001a2d9
test ecx, ecx
jne 0x1001a2e4
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1001a2fe
push eax
push ecx
push dword [ebp + 8]
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 ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push esi
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x1001a34a
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 4], edx
mov eax, dword [eax]
test eax, eax
je 0x1001a350
mov edi, dword [ebp + 8]
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 + 8], 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
jmp 0x1001a350
lea eax, [ebx + 0x2c]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
mov esi, dword [ebp + 8]
je 0x1001a3c6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1001a37c
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 - 4]
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 0x1001a3b4
nop dword [eax]
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 0x1001a3c6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x1001a390
test edi, edi
je 0x1001a3c6
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