joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451df0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4f3b4c]
cmp dword [eax + 0x30], 0
je 0x451e9a
cmp dword [ebx + 0x94], 0
jne 0x451e94
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451d80
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x451e94
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x451e5a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x451e94
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00417218
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x451e69
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4529f8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x452a2d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404374
jmp 0x452a3a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042d8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x453bdc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x453c1d
mov eax, esi
call fcn.0043a180
test al, al
je 0x453c1d
mov eax, dword [ebx + 0x84]
call fcn.00439e7c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x453c1d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00439e7c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4549e8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x414670]
call fcn.00404bf4
xor eax, eax
push ebp
push 0x454b2c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45bd28], 0
jne 0x454a3b
mov ecx, dword [0x4f1da8]
mov dl, 1
mov eax, dword [0x407458]
call fcn.0040bac0
call fcn.00403c7c
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402ee8
mov eax, ebx
call fcn.00404ac0
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x454b3c
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405c04
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404ad0
test eax, eax
jle 0x454ad3
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x454acc
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.0040450c
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004044f4
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408268
test eax, eax
jne 0x454acc
mov ebx, 0x15
jmp 0x454ad8
mov ebx, 0x10
jmp 0x454ad8
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x45bd28]
call fcn.00454860
mov eax, dword [ebp - 8]
call fcn.00454860
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405c1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454b33
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004042a8
lea eax, [ebp - 0x10]
mov edx, dword [0x414670]
call fcn.00404cb8
ret

Function at 0x455fd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404734
mov eax, dword [ebp - 8]
call fcn.00404734
xor eax, eax
push ebp
push 0x456095
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebp - 4]
push esi
call sub.kernel32.dll_LoadLibraryW
test eax, eax
push esi
call sub.kernel32.dll_GetModuleHandleW
mov dword [0x4f3ba4], eax
cmp dword [0x4f3ba4], 0
je 0x45607a
mov eax, dword [ebp - 8]
call fcn.00404744
push eax
mov eax, dword [0x4f3ba4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f3ba8], eax
push 0x4f3bb0
push 0x40
push 0x15751a34
push 0x4f3ba8
call sub.kernel32.dll_VirtualProtect
mov edx, 0x4f3ba8
mov eax, sub.kernel32.dll_GetCPInfo
mov ecx, 4
call fcn.00455fc4
push 0x4f3bb0
push 4
push sub.kernel32.dll_GetCPInfo
push 0x4f3ba8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.ntdll_ZwWriteVirtualMemory
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45609c
lea eax, [ebp - 8]
mov edx, 2
call fcn.004042a8
ret
Function at 0x10001b40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
xor edx, edx
mov dword [ebp - 0x10], edi
mov esi, dword [edi]
lea eax, [esi*4]
test eax, eax
je 0x10001b79
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
sub ebx, ecx
mov al, byte [ebx + ecx]
inc edx
mov byte [ecx], al
inc ecx
mov esi, dword [edi]
lea eax, [esi*4]
cmp edx, eax
jb 0x10001b65
lea edi, [esi*4]
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 4]
inc eax
shl eax, 4
cmp edi, eax
jae 0x10001ccd
mov edx, dword [ebp + 0xc]
add edx, 0xfffffffd
add edx, edi
mov dword [ebp - 0xc], edx
mov bh, byte [edx]
nop
mov eax, dword [esi]
mov cl, byte [edx + 1]
mov ch, byte [edx + 2]
mov bl, byte [edx - 1]
xor edx, edx
mov dword [ebp - 0x14], eax
mov eax, edi
shr eax, 2
div dword [esi]
mov byte [ebp - 8], bl
mov byte [ebp - 7], bh
mov byte [ebp + 0xb], cl
mov byte [ebp - 6], cl
mov byte [ebp - 1], ch
mov byte [ebp - 5], ch
test edx, edx
jne 0x10001c2d
lea eax, [ebp - 8]
mov byte [ebp - 8], bh
push eax
mov byte [ebp - 7], cl
mov byte [ebp - 6], ch
mov byte [ebp - 5], bl
call fcn.10001ab0
mov eax, dword [ebp - 0x14]
xor edx, edx
mov cl, 1
lea esi, [eax*4]
mov eax, edi
div esi
mov esi, eax
sub esi, 1
je 0x10001c14
nop dword [eax + eax]
mov dl, cl
add cl, cl
shr dl, 7
movzx eax, dl
imul eax, eax, 0x1b
xor cl, al
sub esi, 1
jne 0x10001c00
mov al, byte [ebp - 5]
mov bl, byte [ebp - 8]
mov esi, dword [ebp - 0x10]
xor bl, cl
mov byte [ebp - 1], al
mov al, byte [ebp - 6]
mov byte [ebp + 0xb], al
mov eax, dword [ebp - 0x14]
jmp 0x10001c53
mov eax, dword [esi]
cmp eax, 6
jbe 0x10001c56
cmp edx, 4
jne 0x10001c56
lea eax, [ebp - 8]
push eax
call fcn.10001ab0
mov al, byte [ebp - 5]
mov bl, byte [ebp - 8]
mov byte [ebp - 1], al
mov al, byte [ebp - 6]
mov byte [ebp + 0xb], al
mov eax, dword [esi]
mov bh, byte [ebp - 7]
mov edx, dword [ebp + 0xc]
mov ecx, edi
shl eax, 2
sub ecx, eax
movzx eax, byte [ecx + edx]
mov ecx, dword [ebp - 0xc]
xor al, bl
mov byte [ecx + 3], al
mov eax, edi
mov ecx, dword [esi]
shl ecx, 2
sub eax, ecx
mov al, byte [eax + edx + 1]
xor al, bh
mov ebx, dword [ebp - 0xc]
mov byte [ebx + 4], al
lea edx, [ebx + 4]
mov ecx, dword [esi]
mov byte [ebp - 2], al
mov eax, edi
shl ecx, 2
sub eax, ecx
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp + 0xc]
movzx eax, byte [eax + ecx + 2]
xor al, byte [ebp + 0xb]
mov byte [ebx + 5], al
mov eax, edi
mov ecx, dword [esi]
add edi, 4
shl ecx, 2
sub eax, ecx
mov ecx, dword [ebp + 0xc]
movzx eax, byte [eax + ecx + 3]
xor al, byte [ebp - 1]
mov byte [ebx + 6], al
mov eax, dword [esi + 4]
mov bh, byte [ebp - 2]
inc eax
shl eax, 4
cmp edi, eax
jb 0x10001ba0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10008ed0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10041900
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.100240ca
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1002236c
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10009050
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 0x1000d450
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Convert ip address from string
Create raw socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10041da4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
lea eax, [edi + 8]
mov dword [ebp - 0x14], edi
mov dword [eax], 0
xorps xmm0, xmm0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
movups xmmword [eax + 0xc], xmm0
push 2
movq qword [eax + 0x1c], xmm0
mov dword [eax + 0x24], 0
push eax
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
call fcn.100238f8
add esp, 8
mov dword [ebp - 4], 0
mov dword [edi + 0x1e8], 0
mov dword [edi + 0x1ec], 0
mov dword [edi + 0x1f0], 0
xorps xmm0, xmm0
movups xmmword [edi + 0x1f4], xmm0
mov dword [edi + 0x204], 0
mov dword [edi + 0x208], 0xf
mov byte [edi + 0x1f4], 0
push 6
push 1
push 2
mov byte [ebp - 4], 3
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x1000d536
mov word [edi], 0
mov eax, edi
mov byte [edi], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [edi + 1], 1
lea eax, [edi + 0x48]
mov ecx, 2
mov word [edi + 0x44], cx
mov ecx, 0x10055c38
cmp dword [0x10055c4c], 0xf
push eax
cmova ecx, dword [0x10055c38]
push ecx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp dword [0x10055c34], 0xf
mov edx, 0x10055c20
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
cmova edx, dword [0x10055c20]
mov ecx, edx
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x38], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000d590
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x38]
call fcn.10003320
mov byte [ebp - 4], 4
call fcn.1002b15c
cmp dword [ebp - 0x24], 0xf
lea esi, [ebp - 0x38]
mov dword [ebp - 0x1c], eax
cmova esi, dword [ebp - 0x38]
mov dword [eax], 0
lea eax, [ebp - 0x18]
push 0xa
push eax
push esi
call fcn.1002ba1b
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp esi, dword [ebp - 0x18]
je 0x1000d6a1
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0x22
je 0x1000d6ab
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x1000d61b
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000d611
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000d6b5
push ecx
push edx
call fcn.100240fa
add esp, 8
push dword [ebp - 0x20]
call dword [sym.imp.WS2_32.dll_htons]
mov word [edi + 0x46], ax
lea eax, [edi + 0x44]
push 0x10
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1000d654
mov word [edi], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x40], 0
mov eax, edi
mov byte [edi], 1
mov dword [edi + 0x38], 0xa
mov dword [edi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.invalid_stoi_argument
call fcn.10021e9b
push str.stoi_argument_out_of_range
call fcn.10021edb
call fcn.1002ade6
int3
Function at 0x1000d6c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10041dd5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ebx
cmp dword [edi + 0x10], 0
je 0x1000d814
cmp dword [ebx + 4], 0xffffffff
jne 0x1000d70f
mov byte [ebx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea esi, [ebx + 8]
push esi
mov dword [ebp - 0x1c], esi
call fcn.10023914
add esp, 4
test eax, eax
jne 0x1000d827
mov eax, dword [esi + 0x2c]
cmp eax, 0x7fffffff
je 0x1000d82e
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
mov edx, dword [edi + 0x10]
call fcn.1000a910
mov byte [ebp - 4], 2
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 0xf
push 0
cmova eax, dword [ebp - 0x4c]
push 0xa
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x1000d839
mov eax, dword [ebp + 8]
xor ebx, ebx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x18], ecx
mov edx, 0xc800
cmp ebx, ecx
jge 0x1000d7bd
mov edi, ecx
mov ecx, edx
sub edi, ebx
cmp edx, edi
cmovl edi, ecx
cmp dword [eax + 0x14], 0xf
mov ecx, eax
jbe 0x1000d798
mov ecx, dword [eax]
push 0
push edi
lea eax, [ecx + ebx]
push eax
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x1000d864
mov eax, dword [ebp + 8]
add ebx, edi
mov ecx, dword [ebp - 0x18]
jmp 0x1000d77a
mov ecx, dword [ebp - 0x38]
cmp ecx, 0xf
jbe 0x1000d80b
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000d7e7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000d88f
push ecx
push edx
call fcn.100240fa
add esp, 8
jmp 0x1000d80b
push esi
call fcn.10023939
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
push 5
call fcn.100221cb
dec eax
push 6
mov dword [esi + 0x2c], eax
call fcn.100221cb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x64]
call fcn.1000a910
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.10002300
push 0x10053880
lea eax, [ebp - 0x28]
push eax
call fcn.100257f0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x64]
call fcn.1000a910
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.10002300
push 0x10053880
lea eax, [ebp - 0x34]
push eax
call fcn.100257f0
call fcn.1002ade6
int3
Function at 0x1000f400
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10041f2d
push eax
mov dword fs:[0], esp
sub esp, 0x224
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
cmp dword [esi + 0x14], 0xf
jbe 0x1000f42c
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
mov edx, eax
push 2
push 0x1004d194
mov dword [ebp + 0xc], eax
call fcn.1000a6c0
add esp, 8
test al, al
je 0x1000f44e
mov eax, 0x1a
jmp 0x1000f474
cmp dword [esi + 0x14], 0xf
jbe 0x1000f456
mov esi, dword [esi]
mov edx, dword [ebp + 0xc]
mov ecx, esi
push 2
push 0x1004d19c
call fcn.1000a6c0
add esp, 8
test al, al
je 0x1000f512
xor eax, eax
push 0
push eax
lea eax, [ebp - 0x230]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1000f512
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x24]
call fcn.100105f0
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.10010df0
mov ecx, dword [ebp - 0x10]
cmp ecx, 7
jbe 0x1000f4ff
mov edx, dword [ebp - 0x24]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000f4f5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000f54b
push ecx
push edx
call fcn.100240fa
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.1002ade6
int3
Function at 0x1000f790
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 0x1000f7a1
mov eax, dword [eax]
push ebx
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000f7da
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x1000f7f8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
pop ebx
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov esp, ebp
pop ebp
ret 8
push esi
xor ecx, ecx
xor esi, esi
push edi
xor edi, edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edi
test eax, eax
je 0x1000f836
push eax
lea ecx, [ebp - 0x18]
call fcn.10002260
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x18]
push eax
push edi
push esi
call fcn.10025e00
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov edi, dword [ebp - 0x10]
lea ecx, [esi + eax]
mov dword [ebp - 4], ecx
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
test eax, eax
jne 0x1000f89c
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 0x1000f891
sub edi, esi
mov eax, esi
cmp edi, 0x1000
jb 0x1000f887
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000f8fa
push edi
push esi
call fcn.100240fa
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 8], eax
je 0x1000f8e3
mov ebx, dword [ebp + 8]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
test esi, esi
je 0x1000f891
sub edi, esi
mov eax, esi
cmp edi, 0x1000
jb 0x1000f887
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000f8fa
jmp 0x1000f887
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [eax + 8], edi
pop edi
mov dword [eax], esi
pop esi
mov dword [eax + 4], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.1002ade6
int3
Function at 0x10010b20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10041fef
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], 0x1004d300
call fcn.10008b60
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.100090b0
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.10008ed0
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 [0x100586b8]
mov dword [eax], 0
mov eax, dword [0x100586b4]
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 0x10010cbb
push 0x40
push 0x22
push dword [ebp + 8]
call fcn.10023b00
add esp, 0xc
test eax, eax
je 0x10010cbb
push 1
push eax
mov ecx, ebx
call fcn.10010930
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.10010f00
add esp, 4
mov ecx, ebx
push eax
call fcn.10010800
test esi, esi
je 0x10010ca5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x10010ca5
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.10002de0
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 0x10011c90
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100412ad
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 0x10011d3a
push 0x400
lea eax, [ebp - 0x448]
push 0
push eax
call fcn.10025e00
add esp, 0xc
lea eax, [ebp - 0x448]
push 0x400
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jle 0x10011d3a
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 0x10011d10
sub ecx, edx
lea eax, [ebp - 0x448]
push ecx
push eax
mov ecx, esi
call fcn.10003320
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 0x10011d48
push ecx
lea eax, [ebp - 0x33]
push eax
push edi
lea ecx, [ebp - 0x30]
call fcn.10001620
push 5
push str.W_e:
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.10002060
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x10011dfb
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10011df1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10011e0d
push ecx
push edx
call fcn.100240fa
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.1002ade6
int3