joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49a570
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x49a59e
mov eax, ebx
call fcn.0049b028
cmp dword [ebx + 0x3c], 0
je 0x49a597
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x49a60f
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x49a601
cmp dword [ebx + 8], 0
je 0x49a5c0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x49a5d2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x49a601
cmp dword [ebx + 8], 0
je 0x49a5b3
cmp eax, 3
je 0x49a5e5
dec eax
jne 0x49a5b3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x49a5b3
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x49a5b3
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x49a62d
cmp dword [ebx + 0x10], 0xcc
je 0x49a62d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0049a638
pop ebx
ret

Function at 0x4af5ec
Capabilities:
Create thread

Disassembly:
test al, al
je 0x4af614
mov byte [0x4d3980], 0
push 0x4d397c
push 0
push 0
push 0x4af4e8
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x4d3978], eax
ret
call fcn.004af5ac
ret

Function at 0x4afed0
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4afee2
add esp, 0xfffffff0
call fcn.004040c4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e130
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4accc4]
call fcn.004ad24c
mov esi, eax
mov dword [ebx + 0x30], esi
mov dword [esi + 0x4bc], ebx
mov dword [esi + 0x4b8], 0x4b06fc
mov dword [esi + 0x4cc], ebx
mov dword [esi + 0x4c8], 0x4afcdc
mov dword [esi + 0x4ec], ebx
mov dword [esi + 0x4e8], 0x4b00bc
mov dword [esi + 0x4dc], ebx
mov dword [esi + 0x4d8], 0x4afe88
mov dword [esi + 0x6c], 0x3c
lea eax, [ebx + 0x38]
mov edx, 0x4affdc
call fcn.00404b20
lea eax, [ebx + 0x34]
mov edx, 0x4afff8
call fcn.00404b20
lea eax, [ebx + 0x88]
mov edx, 0x4b001c
call fcn.00404b20
xor eax, eax
mov dword [ebx + 0x78], eax
mov byte [ebx + 0x5c], 1
mov dl, 1
mov eax, dword [0x414200]
call fcn.00403d30
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x414200]
call fcn.00403d30
mov dword [ebx + 0xa0], eax
mov dword [ebx + 0x94], 0xffffffff
mov dword [ebx + 0x98], 0xffffffff
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4affcc
call fcn.0040411c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4b10a8
Capabilities:
Get common file path
Get number of processors

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, 0x4d39b4
xor eax, eax
push ebp
push 0x4b1210
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, fcn.0045e104
mov edx, dword [0x4b8f84]
mov dword [edx], eax
mov eax, edi
mov edx, 0x104
call fcn.00405108
mov eax, dword [edi]
call fcn.00404f7c
push eax
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
mov eax, edi
call fcn.00404fd4
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.00404cbc
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0045b3e0
mov edx, dword [ebp - 8]
mov eax, edi
mov ecx, 0x4b1228
call fcn.00404dd0
mov eax, dword [edi]
call fcn.00402998
call fcn.00402978
mov eax, dword [0x4b9070]
cmp dword [eax], 0
je 0x4b1148
mov esi, 0x66
lea eax, [ebp - 4]
mov edx, 0x4b1240
call fcn.00404b64
jmp 0x4b1178
mov eax, dword [0x4b933c]
cmp byte [eax], 0
je 0x4b1166
mov esi, 0x65
lea eax, [ebp - 4]
mov edx, 0x4b1258
call fcn.00404b64
jmp 0x4b1178
mov esi, 0x64
lea eax, [ebp - 4]
mov edx, 0x4b1270
call fcn.00404b64
push dword [edi]
push 0x4b1288
push dword [ebp - 4]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404e44
mov eax, dword [ebp - 0x10]
call fcn.0045b0c4
test al, al
jne 0x4b11bc
push dword [edi]
push 0x4b1288
push dword [ebp - 4]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404e44
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.0048499c
mov dl, 1
mov eax, dword [0x47201c]
call fcn.004720a4
mov ebx, eax
lea eax, [ebx + 0x30]
mov edx, dword [edi]
call fcn.00404b20
mov eax, ebx
call fcn.00472184
mov eax, ebx
call fcn.00403d60
xor eax, eax
mov ecx, dword [0x4b92bc]
mov cl, byte [ecx]
mov edx, eax
mov eax, esi
call fcn.00487340
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1217
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404af0
ret
Function at 0x42a920
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
jmp 0x42a93a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42a941
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42a930
mov eax, 1
add ebx, ebx
jne 0x42a953
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42a948
jne 0x42a964
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42a948
xor ecx, ecx
sub eax, 3
jb 0x42a978
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42a9ea
mov ebp, eax
add ebx, ebx
jne 0x42a983
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42a990
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42a9b4
inc ecx
add ebx, ebx
jne 0x42a9a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42a995
jne 0x42a9b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42a995
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42a9d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42a9c5
jmp 0x42a936
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42a9d4
add edi, ecx
jmp 0x42a936
pop esi
mov edi, esi
mov ecx, 0xa57
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42a9f2
cmp byte [edi], 0x12
jne 0x42a9f2
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 0x42a9f7
lea edi, [esi + 0x28000]
mov eax, dword [edi]
or eax, eax
je 0x42aa6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2f848]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2f928]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42aa24
mov ecx, edi
jns 0x42aa53
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 + 0x2f930]
or eax, eax
je 0x42aa69
mov dword [ebx], eax
add ebx, 4
jmp 0x42aa41
call dword [esi + 0x2f92c]
mov ebp, dword [esi + 0x2f934]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x42aaa3
sub esp, 0xffffff80
jmp 0x41942f
Function at 0x10001010
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x101151b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [edi + edi]
mov dword [ebp - 0x1c], eax
inc eax
push esi
push eax
mov dword [ebp - 0x14], 0x33323130
mov dword [ebp - 0x10], 0x37363534
mov dword [ebp - 0xc], 0x42413938
mov dword [ebp - 8], 0x46454443
call fcn.100bc5f3
mov esi, eax
add esp, 4
xor eax, eax
test edi, edi
jle 0x10001080
jmp 0x10001060
movzx ecx, byte [eax + ebx]
mov edx, ecx
shr edx, 4
mov dl, byte [ebp + edx - 0x14]
and ecx, 0xf
mov cl, byte [ebp + ecx - 0x14]
mov byte [esi + eax*2], dl
mov byte [esi + eax*2 + 1], cl
inc eax
cmp eax, edi
jl 0x10001060
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push edx
push esi
push eax
call fcn.100be0a0
push esi
call fcn.100bc687
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
xor eax, eax
pop esi
call fcn.100bc5e4
mov esp, ebp
pop ebp
ret
Function at 0x100012b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x101151b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x9c], ecx
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
test ebx, ebx
je 0x10001467
test ecx, ecx
je 0x10001467
push esi
push edi
push 0x1010f0b0
push ebx
call fcn.100bd600
mov edi, eax
add esp, 8
test edi, edi
jne 0x1000133d
mov esi, 0xfffffffe
add esi, 0x2800
push 0x1010f0b4
push ebx
call fcn.100bd600
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10001363
pop edi
pop esi
lea eax, [ebx - 2]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bc5e4
mov esp, ebp
pop ebp
ret 8
push 2
push 0
push edi
call fcn.100bd88e
push edi
call fcn.100bda9e
push edi
mov esi, eax
call fcn.100bd790
add esp, 0x14
test esi, esi
jne 0x1000130d
mov esi, 0x6400000
jmp 0x10001313
push esi
call fcn.100bc5f3
mov edi, eax
add esp, 4
test edi, edi
jne 0x10001391
push ebx
call fcn.100bd790
add esp, 4
lea eax, [edi - 3]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bc5e4
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x98]
push eax
call fcn.10019470
push ebx
push esi
push 1
push edi
call fcn.100bdd4d
add esp, 0x14
test eax, eax
je 0x100013cf
mov edi, edi
push eax
lea ecx, [ebp - 0x98]
push edi
push ecx
call fcn.10003370
push ebx
push esi
push 1
push edi
call fcn.100bdd4d
add esp, 0x1c
test eax, eax
jne 0x100013b0
lea edx, [ebp - 0x98]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.10003470
push ebx
call fcn.100bd790
push edi
call fcn.100bc687
xor eax, eax
lea ecx, [ebp - 0x3c]
push ecx
lea edi, [eax + 0x10]
lea ebx, [ebp - 0x18]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], al
call fcn.10001010
add esp, 0x14
test eax, eax
jne 0x1000144f
mov edx, dword [ebp - 0x9c]
lea eax, [ebp - 0x3c]
mov ecx, eax
sub edx, ecx
jmp 0x10001430
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10001430
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bc5e4
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bc5e4
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.100bc5e4
mov esp, ebp
pop ebp
ret 8
Function at 0x10003a40
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.100bdff0
mov eax, dword [0x101151b0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x10003ac7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x10003ac7
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x100
push edx
call fcn.100beaa8
add esp, 0x10
test eax, eax
jns 0x10003a9d
mov eax, 0x100
push 0
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.100bc5e4
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0xff
push edx
call fcn.100beaa8
add esp, 0x10
mov byte [esp + 0x107], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x10003b55
call fcn.10003900
test eax, eax
jle 0x10003b55
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
push 0
push 0
mov esi, eax
push 1
lea eax, [esp + 0x28]
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.100bc5e4
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.100bc5e4
add esp, 0x108
ret

Function at 0x10003bb0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
je 0x10003bd2
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
sub esi, eax
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc eax
or cl, dl
dec edi
jne 0x10003bc6
pop esi
movzx eax, cl
pop edi
ret
Function at 0x10004340
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [ebx + 0x20]
cmp dword [esi], 6
je 0x10004357
call fcn.10003cf0
test eax, eax
jle 0x100043a0
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0x1c]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push ebx
mov esi, eax
call fcn.10004900
add esp, 8
test esi, esi
jg 0x1000439e
push esi
call fcn.1000ba10
add esp, 4
test eax, eax
je 0x1000439e
push 0xa
push ebx
call fcn.10004920
add esp, 8
mov eax, esi
pop esi
pop ebx
ret

Function at 0x10007240
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
push ecx
mov eax, dword [esp + 0x34]
push eax
push ebx
cmp ecx, 0
je 0x1000731b
and ebp, 0xfffffff8
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
je 0x100072b6
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call fcn.10006e80
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x10007284
mov ebp, dword [esp + 0x38]
and ebp, 7
je 0x100073d4
call fcn.100072c8
and ebp, 0xfffffff8
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
je 0x10007373
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call fcn.10006e80
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x1000732c
mov ebp, dword [esp + 0x38]
and ebp, 7
je 0x100073d4
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call fcn.10006e80
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x100073cf
jmp 0x100073d4
mov ecx, dword [esp + 0x40]
add esp, 0x1c
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10007440
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push eax
push ebx
cmp ecx, 0
je 0x10007524
and ebp, 0xfffffff8
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
je 0x100074bf
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call fcn.10006fe0
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x1000748d
mov ebp, dword [esp + 0x3c]
and ebp, 7
je 0x100075dd
call fcn.100074d1
and ebp, 0xfffffff8
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
je 0x1000757c
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call fcn.10007110
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x10007535
mov ebp, dword [esp + 0x3c]
and ebp, 7
je 0x100075dd
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call fcn.10007110
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x100075d8
jmp 0x100075dd
mov ecx, dword [esp + 0x4c]
add esp, 0x20
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1000b730
Capabilities:
Set socket configuration

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push esi
lea ecx, [esp + 0xc]
push ecx
push 0x8004667e
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x1000b771
push 0x233
push str..crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.10009e40
add esp, 0x14
xor eax, eax
test esi, esi
sete al
pop esi
ret
Function at 0x1000b780
Capabilities:
Resolve dns

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
push esi
mov ecx, ebp
mov ebx, 1
call fcn.1000b650
mov edi, eax
add esp, 4
test edi, edi
jns 0x1000b7bc
push 0x7b
push str..crypto_bio_b_sock.c
push 0x6c
push 0x6a
push 0x20
call fcn.10009e40
add esp, 0x14
jmp 0x1000b87a
call fcn.1000b5d0
cmp eax, 1
jne 0x1000b88a
test edi, edi
jle 0x1000b7d5
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
push 0x8e
push str..crypto_bio_b_sock.c
push 0x16
push 9
call fcn.10003be0
add esp, 0x10
push ebp
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x1000b810
push 0x92
push str..crypto_bio_b_sock.c
push 0x66
push 0x6a
push 0x20
call fcn.10009e40
add esp, 0x14
jmp 0x1000b860
cmp word [eax + 8], 2
je 0x1000b831
push 0x99
push str..crypto_bio_b_sock.c
push 0x6b
push 0x6a
push 0x20
call fcn.10009e40
add esp, 0x14
jmp 0x1000b860
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
movzx ecx, byte [edx]
mov byte [esi], cl
mov edx, dword [eax + 0xc]
mov ecx, dword [edx]
mov dl, byte [ecx + 1]
mov byte [esi + 1], dl
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
movzx ecx, byte [edx + 2]
mov byte [esi + 2], cl
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
movzx ecx, byte [eax + 3]
mov byte [esi + 3], cl
xor ebx, ebx
push 0xa2
push str..crypto_bio_b_sock.c
push 0x16
push 0xa
call fcn.10003be0
add esp, 0x10
test ebx, ebx
je 0x1000b891
push ebp
push 0x100d53a8
push 2
call fcn.1000a100
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x1000d850
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x1000d894
mov al, byte [edx]
test al, al
je 0x1000d894
push edi
mov edi, 0x100
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
inc edx
xor esi, eax
mov al, byte [edx]
test al, al
jne 0x1000d867
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x10013c40
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
dec ecx
push edi
mov edi, dword [esi + 4]
shr ecx, 0x1f
xor edx, edi
dec ecx
and edx, ecx
xor edi, edx
mov dword [esi + 4], edi
xor dword [eax + 4], edx
lea edx, [ebx - 1]
cmp edx, 9
ja case.default.0x10013c72
jmp dword [edx*4 + 0x10013d9c]
mov edi, 0xa
cmp ebx, edi
jle case.0x10013c72.10
push ebp
mov edx, dword [esi]
mov ebx, dword [edx + edi*4]
lea ebp, [edx + edi*4]
mov edx, dword [eax]
mov edx, dword [edx + edi*4]
xor edx, ebx
and edx, ecx
xor ebx, edx
mov dword [ebp], ebx
mov ebx, dword [eax]
xor dword [ebx + edi*4], edx
lea ebx, [ebx + edi*4]
inc edi
cmp edi, dword [esp + 0x20]
jl 0x10013c83
pop ebp
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x24]
mov edx, dword [edx + 0x24]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x24], edi
mov edi, dword [eax]
xor dword [edi + 0x24], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x20]
mov edx, dword [edx + 0x20]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x20], edi
mov edi, dword [eax]
xor dword [edi + 0x20], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x1c]
mov edx, dword [edx + 0x1c]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x1c], edi
mov edi, dword [eax]
xor dword [edi + 0x1c], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x18]
mov edx, dword [edx + 0x18]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x18], edi
mov edi, dword [eax]
xor dword [edi + 0x18], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x14]
mov edx, dword [edx + 0x14]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x14], edi
mov edi, dword [eax]
xor dword [edi + 0x14], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x10]
mov edx, dword [edx + 0x10]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x10], edi
mov edi, dword [eax]
xor dword [edi + 0x10], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0xc]
mov edx, dword [edx + 0xc]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0xc], edi
mov edi, dword [eax]
xor dword [edi + 0xc], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 8]
mov edx, dword [edx + 8]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 8], edi
mov edi, dword [eax]
xor dword [edi + 8], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 4]
mov edx, dword [edx + 4]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 4], edi
mov edi, dword [eax]
xor dword [edi + 4], edx
mov esi, dword [esi]
mov edx, dword [eax]
mov edi, dword [esi]
mov edx, dword [edx]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [esi], edi
mov eax, dword [eax]
xor dword [eax], edx
pop edi
pop esi
pop ebx
ret