joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10114ef0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10248a60
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x102ca474]
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
mov esi, ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10114f39
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x10114f40
call dword [sym.imp.USER32.dll_CloseClipboard]
xor al, al
jmp 0x10115002
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
xor bl, bl
call fcn.10114e40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.100086fc
test al, al
jne 0x10114feb
lea ecx, [ebp - 0x30]
call fcn.10008710
lea ecx, [ebp - 0x30]
lea edi, [eax*2 + 2]
call fcn.10008714
push edi
push 0x2002
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x10114fb7
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
test eax, eax
jne 0x10114fbb
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov byte [ebp - 4], 0
xor bl, bl
jmp 0x10114feb
push edi
push ebx
push eax
call fcn.101feb30
add esp, 0xc
mov byte [ebp - 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x10114fe9
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor bl, bl
jmp 0x10114feb
mov bl, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.10005e05
mov al, bl
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.101e7040
mov esp, ebp
pop ebp
ret
Function at 0x1011f3d0
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
cmp dword [esp + 8], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x1011f48a
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1011f51a
push esi
mov dword [ebx + 0x58], esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1011f51a
push dword [ebx + 4]
push dword [ebx + 0x58]
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
jne 0x1011f51a
push 0xfffffffffffffff0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
and ecx, 0x39ffffff
or ecx, 0x46000000
cmp eax, ecx
je 0x1011f442
push ecx
push 0xfffffffffffffff0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push dword [ebx + 0x58]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetParent]
mov edi, dword [ebx + 4]
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 1
push 0
push dword [ebx + 0x58]
call esi
push eax
push 0
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 0x57
push 0
push 0
push 0
push 0
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
push ebp
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [ebx + 4]
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push dword [ebx + 0x58]
call esi
push 0
push edi
mov ebp, eax
call esi
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov esi, eax
push 0
push ebp
push esi
call edi
test eax, eax
je 0x1011f4ca
nop
push 0
push ebp
push esi
call edi
test eax, eax
jne 0x1011f4c0
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetParent]
push 0xfffffffffffffff0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
and ecx, 0x39ffffff
or ecx, 0x80000000
pop ebp
cmp eax, ecx
je 0x1011f4ff
push ecx
push 0xfffffffffffffff0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 5
push 0
push 0
push 0x7d00
push 0x7d00
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
Function at 0x101244d0
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
mov ecx, dword [esp + 8]
je 0x10124503
test ecx, ecx
je 0x10124503
cmp dword [ecx + 4], 0x100
jne 0x10124503
mov eax, dword [ecx + 8]
cmp eax, 0x4c
je 0x10124512
add eax, 0xffffffb2
cmp eax, 1
jbe 0x10124512
cmp dword [ecx + 4], 0x104
jne 0x10124517
cmp dword [ecx + 8], 0x12
jne 0x10124517
xor eax, eax
ret 0x10
mov eax, 1
ret 0x10
Function at 0x1012f320
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x1012f32b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.1012f340
Function at 0x101627e0
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov ebp, edx
push 0
push 0x14
mov dword [ebx], 0
call fcn.10133a30
mov esi, eax
add esp, 8
test esi, esi
jne 0x10162808
lea eax, [esi + 7]
pop edi
pop esi
pop ebp
pop ebx
ret
cmp byte [0x102caf14], 0
mov edi, dword [esp + 0x14]
je 0x10162850
mov eax, dword [0x102cb004]
test eax, eax
je 0x1016282c
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x10162850
lea eax, [esi + 4]
mov dword [esi + 8], ebp
push eax
push 0
push esi
push 0x10136920
push 0
push 0
mov dword [esi + 0xc], edi
call fcn.1020e08d
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x1016285d
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x10162875
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi + 4], eax
call ebp
add esp, 4
mov dword [esi + 0x10], eax
pop edi
mov dword [ebx], esi
xor eax, eax
pop esi
pop ebp
pop ebx
ret
Function at 0x1016f680
Capabilities:
Reference sql statements

Disassembly:
push ebx
push edi
push dword [esp + 0xc]
mov edi, edx
mov ebx, ecx
push edi
push str.sqlite_master
push edi
push str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
push ebx
call fcn.10174300
add esp, 0x18
cmp dword [esp + 0xc], 0
jne 0x1016f6ba
push edi
push str.sqlite_master
push str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
push ebx
call fcn.10174300
add esp, 0x10
pop edi
pop ebx
ret

Function at 0x10174410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebx, ecx
mov ebp, edx
mov ecx, dword [esp + 0x14]
push esi
push edi
mov dword [esp + 0x10], ebx
xor esi, esi
cmp dword [ebx + 0x14], esi
jle 0x101744ab
nop
mov edi, esi
xor edi, 1
cmp esi, 2
cmovge edi, esi
test ecx, ecx
je 0x10174463
mov edx, edi
mov eax, ecx
mov ecx, dword [ebx + 0x10]
add edx, edx
mov ebx, dword [ecx + edx*8]
sub ebx, dword [esp + 0x1c]
nop
movzx edx, byte [eax]
movzx ecx, byte [ebx + eax]
cmp edx, ecx
jne 0x10174488
test edx, edx
jne 0x1017449a
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x10]
add edi, edi
push 0
mov edx, ebp
mov ecx, dword [eax + edi*8 + 0xc]
add ecx, 8
call fcn.101386d0
add esp, 4
mov eax, dword [eax + 8]
test eax, eax
jne 0x1017450a
jmp 0x101744a1
movzx ecx, byte [ecx + 0x1027eec8]
movzx edx, byte [edx + 0x1027eec8]
sub edx, ecx
jne 0x1017449d
inc eax
jmp 0x10174450
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
inc esi
cmp esi, dword [ebx + 0x14]
jl 0x10174430
mov edx, str.sqlite_master
sub edx, ebp
movzx ecx, byte [ebp]
movzx eax, byte [edx + ebp]
cmp ecx, eax
jne 0x101744d6
test ecx, ecx
jne 0x101744e8
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
test ecx, ecx
jne 0x101744eb
neg eax
sbb eax, eax
jmp 0x101744fa
movzx eax, byte [eax + 0x1027eec8]
movzx ecx, byte [ecx + 0x1027eec8]
sub ecx, eax
jne 0x10174508
inc ebp
jmp 0x101744b2
test eax, eax
je 0x10174508
mov edx, eax
call fcn.10137240
mov ecx, dword [esp + 0x1c]
test eax, eax
jne 0x10174508
mov ebp, str.sqlite_temp_master
jmp 0x10174423
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x10174850
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
mov eax, ecx
mov dword [esp + 4], edx
push ebx
push edi
xor ebx, ebx
mov dword [esp + 0x10], eax
xor edi, edi
cmp dword [eax + 0x14], ebx
jle 0x101748ea
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov eax, dword [eax + 0x10]
mov esi, edi
xor esi, 1
cmp edi, 2
cmovge esi, edi
shl esi, 4
add esi, eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x101748a9
mov esi, dword [esi]
mov eax, ebp
sub esi, ebp
movzx edx, byte [eax]
movzx ecx, byte [esi + eax]
cmp edx, ecx
jne 0x101748d5
test edx, edx
jne 0x101748e7
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea ecx, [eax + 0x18]
push 0
call fcn.101386d0
add esp, 4
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x101748cb
mov eax, dword [esp + 0x18]
inc edi
cmp edi, dword [eax + 0x14]
jl 0x10174872
pop esi
pop ebp
pop edi
mov eax, ebx
pop ebx
add esp, 0x10
ret
movzx ecx, byte [ecx + 0x1027eec8]
movzx edx, byte [edx + 0x1027eec8]
sub edx, ecx
jne 0x101748c1
inc eax
jmp 0x10174896
pop edi
mov eax, ebx
pop ebx
add esp, 0x10
ret
Function at 0x101cac90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
push edi
push 0x38
xorps xmm0, xmm0
lea eax, [esp + 0x4c]
mov ebp, edx
movlpd qword [esp + 0x2c], xmm0
mov ebx, ecx
mov dword [esp + 0x20], ebp
push 0
movups xmmword [esp + 0x40], xmm0
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x50], 0x13
call fcn.101ffde0
add esp, 0xc
lea eax, [esp + 0x48]
mov edx, ebp
mov ecx, ebx
push eax
push 1
push 0
push 0
push 0
push 0xfffffffffffffffe
push dword [esp + 0xa0]
call fcn.101bb1d0
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x101cae6e
push dword [esp + 0x3c]
lea eax, [esp + 0x3c]
mov ecx, ebx
push dword [esp + 0x3c]
lea edx, [esp + 0x50]
mov dword [esp + 0x5c], eax
call fcn.101c6720
mov esi, eax
add esp, 8
test esi, esi
jne 0x101cae6e
lea edx, [esp + 0x48]
mov ecx, ebx
call fcn.101c6840
mov esi, eax
cmp esi, 0x64
jne 0x101cae6e
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebp
mov edi, dword [esp + 0x78]
lea edx, [esp + 0x20]
mov ebp, dword [esp + 0x7c]
xorps xmm0, xmm0
mov ecx, edi
movlpd qword [esp + 0x20], xmm0
add ebp, edi
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x28], xmm0
call fcn.101b7420
lea esi, [edi + eax]
cmp esi, ebp
jae 0x101cae4e
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
xorps xmm0, xmm0
lea edx, [esp + 0x20]
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.101b7420
add esi, eax
cmp esi, ebp
jae 0x101cae4a
mov ecx, dword [esp + 0x20]
mov eax, ecx
mov edx, dword [esp + 0x24]
or eax, edx
je 0x101cadf6
cmp ecx, 1
jne 0x101cadb6
test edx, edx
je 0x101cadf6
mov eax, dword [esp + 0x28]
add ecx, 0xfffffffe
adc edx, 0xffffffff
add eax, ecx
mov ecx, dword [esp + 0x70]
adc dword [esp + 0x2c], edx
mov edx, dword [esp + 0x74]
push eax
push dword [esp + 0x34]
mov dword [esp + 0x30], eax
push edi
push ebx
push dword [esp + 0x98]
push dword [esp + 0x30]
call fcn.101cabe0
xor dword [esp + 0x2c], eax
add esp, 0x18
xor dword [esp + 0x10], edx
jmp 0x101cae42
xorps xmm0, xmm0
or ecx, edx
movlpd qword [esp + 0x30], xmm0
mov ecx, esi
movlpd qword [esp + 0x28], xmm0
je 0x101cae18
lea edx, [esp + 0x30]
call fcn.101b7420
add esi, eax
jmp 0x101cae42
lea edx, [esp + 0x20]
call fcn.101b7420
add esi, eax
mov eax, dword [esp + 0x18]
cmp byte [eax + 0xef], 0
je 0x101cae3a
sub ebx, dword [esp + 0x20]
sbb edi, dword [esp + 0x24]
jmp 0x101cae42
add ebx, dword [esp + 0x20]
adc edi, dword [esp + 0x24]
cmp esi, ebp
jb 0x101cad81
mov ebx, dword [esp + 0x18]
lea edx, [esp + 0x48]
mov ecx, ebx
call fcn.101c6840
mov esi, eax
cmp esi, 0x64
je 0x101cad44
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
jmp 0x101cae76
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
lea ecx, [esp + 0x48]
call fcn.101c6fd0
mov ecx, dword [esp + 0x8c]
mov edx, edi
pop edi
mov eax, ebp
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
Function at 0x101d52a0
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov ebx, edx
mov dword [esp + 0x10], str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
mov esi, ecx
mov dword [esp + 0x14], str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
push edi
mov edi, dword [esi + ebx*4 + 0x18]
test edi, edi
jne 0x101d52dc
push dword [esi + 8]
push dword [esi + 4]
push dword [esp + ebx*4 + 0x1c]
push esi
call fcn.101d51c0
mov edi, eax
add esp, 0x10
mov dword [esi + ebx*4 + 0x18], edi
cmp dword [esi + 0x28], 0
jne 0x101d539c
mov ebp, dword [esp + 0x24]
push ebp
push dword [esp + 0x24]
push 1
push edi
call fcn.10159d10
push edi
call fcn.10158a60
add esp, 0x14
cmp eax, 0x65
jne 0x101d5333
mov ecx, str.__parent
test ebx, ebx
mov eax, str.__rowid
cmove eax, ecx
mov ecx, dword [esp + 0x20]
push eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebp
push ecx
push str.Mapping___lld_____lld__missing_from__s_table
push esi
call fcn.101d5240
add esp, 0x1c
jmp 0x101d538a
cmp eax, 0x64
jne 0x101d538a
push 0
push edi
call fcn.10159380
mov ecx, dword [esp + 0x34]
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x28]
jne 0x101d5355
cmp edx, ecx
je 0x101d538a
push ecx
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
test ebx, ebx
push ebp
push ecx
mov eax, str.__rowid
mov dword [esp + 0x20], str.__parent
cmove eax, dword [esp + 0x20]
push eax
push edx
push dword [esp + 0x2c]
push ebp
push ecx
push str.Found___lld_____lld__in__s_table__expected___lld_____lld_
push esi
call fcn.101d5240
add esp, 0x2c
push edi
call fcn.10157ab0
add esp, 4
cmp dword [esi + 0x28], 0
jne 0x101d539c
mov dword [esi + 0x28], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x101d7f20
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x102ca474]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], edx
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x101d801a
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x101d8013
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x101d7ff9
call ebx
cmp dword [ebp - 0x14], eax
jne 0x101d7ff9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x101d7ff9
mov edx, dword [esi]
test edx, edx
jne 0x101d7fc2
push 0x200
push edx
push dword [0x102d3ba4]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x101d8013
jmp 0x101d7fed
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x101d7fed
shl eax, 3
push eax
push edx
push 0
push dword [0x102d3ba4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x101d8013
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x101d7f81
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x101d805f
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x101d805f
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x101d8059
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.101d7db0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x101d8026
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101e7040
mov esp, ebp
pop ebp
ret

Function at 0x101d8070
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx]
test eax, eax
je 0x101d80be
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x101d80ae
push edi
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x101d80a5
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 8]
jb 0x101d8082
mov eax, dword [ebx]
pop edi
push eax
push 0
push dword [0x102d3ba4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
ret
Function at 0x101d80c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
imul esi, ecx, 0x2c
push edi
add esi, dword [0x102d4ef0]
mov al, byte [esi + 0x14]
mov edi, dword [esi]
and al, 1
je 0x101d80dc
sub edi, 5
movzx eax, al
lea ebx, [eax*2 + 5]
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x101d8104
pop edi
pop esi
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x101d811f
mov eax, dword [esi]
mov word [eax], 0xf9eb
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [esi + 0x14], 6
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x101d8150
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [0x102d4ef8]
push ebx
push esi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x101d822d
mov eax, dword [0x102d4ef0]
add eax, 0x14
test byte [eax], 2
je 0x101d818a
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x101d8175
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x101d822d
push edi
push 1
or edx, 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.101d7f20
mov ecx, dword [0x102d4ef8]
add esp, 4
cmp esi, ecx
jae 0x101d81db
imul edi, esi, 0x2c
mov eax, dword [0x102d4ef0]
test byte [edi + eax + 0x14], 2
jne 0x101d81d0
mov ecx, esi
call fcn.101d80c0
mov ebx, eax
test ebx, ebx
jne 0x101d81d8
mov ecx, dword [0x102d4ef8]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x101d81b1
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x101d822c
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x101d821d
mov ebx, eax
jmp 0x101d81f0
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x101d8211
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x101d81f0
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x102d3ba4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101df000
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1024bf88
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [ebp + 0xc]
push esi
cmp dword [eax + 0x10], 0
je 0x101df09f
cmp dword [eax + 0x14], 0x10
xorps xmm0, xmm0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x48], 4
movups xmmword [ebp - 0x38], xmm0
jb 0x101df03f
mov eax, dword [eax]
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x48]
push ecx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x101df09f
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
mov eax, dword [eax + 0x18]
push dword [eax + 0x18]
add eax, 8
push eax
call fcn.101de8d0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.101de870
lea ecx, [ebp - 0x28]
call fcn.101de930
mov eax, dword [ebp + 8]
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
call fcn.101de900
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x101e01d0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x2c]
xorps xmm0, xmm0
push esi
mov esi, dword [esp + 0x2c]
movups xmmword [esp + 4], xmm0
mov dword [esp + 4], eax
mov eax, esi
movups xmmword [esp + 0x14], xmm0
cmp dword [esi + 0x14], 0x10
jb 0x101e01f7
mov eax, dword [esi]
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 8]
push ecx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x101e022e
push dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
call fcn.101dfa90
push dword [esp + 0x30]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [esp + 0x28]
pop esi
add esp, 0x20
ret
push esi
push eax
call fcn.101e0070
int3

Function at 0x101e0900
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov eax, dword [ecx + 8]
sub esp, 0xb0
cmp eax, 0xffffffff
je 0x101e0974
push esi
lea ecx, [esp + 4]
mov dword [esp + 4], 0x80
push ecx
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x101e0952
push dword [esp + 4]
mov ecx, dword [esp + 0xbc]
lea eax, [esp + 0x38]
push eax
call fcn.101dd7e0
mov eax, dword [esp + 0xb8]
pop esi
add esp, 0xb0
ret 4
call fcn.101e1580
mov ecx, dword [esp + 0xb8]
call fcn.101dd8c0
mov eax, dword [esp + 0xb8]
pop esi
add esp, 0xb0
ret 4
push 0
lea ecx, [esp + 8]
call fcn.101dc680
push 0x102c2cc4
lea eax, [esp + 8]
push eax
call fcn.101feab4
int3

Function at 0x101e0bb0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x101e0be6
mov eax, dword [esp + 4]
cmp eax, 6
jb 0x101e0be6
jne 0x101e0bdd
cmp dword [esp + 8], 2
jb 0x101e0be6
xor al, al
add esp, 0x94
ret
mov al, 1
add esp, 0x94
ret