joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101025eb
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
je 0x101026de
mov eax, dword [esp + 0xc]
test eax, eax
jle 0x101026de
cmp eax, 8
push ebx
push esi
mov esi, dword [esp + 0xc]
not esi
mov ecx, 0xff
jl 0x101026be
push edi
mov edi, eax
shr edi, 3
mov ebx, edi
imul ebx, ebx, 0xfffffff8
add eax, ebx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1019ae30]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1019ae30]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1019ae30]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1019ae30]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1019ae30]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1019ae30]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1019ae30]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1019ae30]
inc edx
dec edi
jne 0x10102626
pop edi
test eax, eax
je 0x101026d7
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x1019ae30]
inc edx
dec eax
jne 0x101026c2
mov eax, esi
pop esi
not eax
pop ebx
ret
mov eax, dword [esp + 4]
ret

Function at 0x101026ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push str.metnsdclsid
push accept
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1010278c
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push ebx
push ebx
mov edi, 0x1019b230
push edi
push dword [ebp - 8]
call esi
test eax, eax
jne 0x1010278c
cmp dword [ebp - 4], 0x10
jne 0x1010278c
push 0x10
call fcn.1015780a
pop ecx
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push ebx
push edi
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
call esi
test eax, eax
jne 0x1010277a
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.10158c60
push dword [ebp - 0xc]
call fcn.10158016
add esp, 0x10
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x1010278e
push dword [ebp - 0xc]
call fcn.10158016
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10102795
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov edi, str.metnsdclsid
push edi
mov esi, accept
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor ebx, ebx
test eax, eax
jne 0x101027df
push 0x10
push dword [ebp + 8]
push 3
push ebx
push 0x1019b230
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1010280b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x10102816
lea eax, [ebp - 4]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1010280b
push 0x10
push dword [ebp + 8]
push 3
push ebx
push 0x1019b230
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1010280b
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10102c4f
Capabilities:
Write file on windows

Disassembly:
push 0x144
mov eax, 0x1018d933
call fcn.1015d10b
mov dword [ebp - 0x18], ecx
xor esi, esi
inc esi
push esi
xor ebx, ebx
push 2
lea ecx, [ebp - 0x150]
mov byte [ebp - 0xd], bl
call fcn.10013500
mov ecx, dword [ebp - 0x18]
push ebx
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 4], ebx
call fcn.1010286e
mov edi, str.Global.db
push edi
push eax
lea eax, [ebp - 0x150]
push eax
mov byte [ebp - 4], 1
call fcn.10027c70
pop ecx
pop ecx
push eax
call fcn.10012340
pop ecx
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.10001b20
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x150]
call fcn.1000a8e0
cmp dword [eax + 0x18], 0x10
jb 0x10102ccf
mov eax, dword [eax + 4]
jmp 0x10102cd2
add eax, 4
push ebx
push ebx
push 2
push ebx
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push esi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x14], eax
call fcn.10001b20
cmp dword [ebp - 0x14], 0xffffffff
jne 0x10102d94
push esi
push 2
lea ecx, [ebp - 0xd0]
call fcn.10013500
mov ecx, dword [ebp - 0x18]
push esi
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 2
call fcn.1010286e
push edi
push eax
lea eax, [ebp - 0xd0]
push eax
mov byte [ebp - 4], 3
call fcn.10027c70
pop ecx
pop ecx
push eax
call fcn.10012340
pop ecx
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.10001b20
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0xd0]
call fcn.1000a8e0
cmp dword [eax + 0x18], 0x10
jb 0x10102d5e
mov eax, dword [eax + 4]
jmp 0x10102d61
add eax, 4
push ebx
push ebx
push 2
push ebx
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push esi
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x14], eax
call fcn.10001b20
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], bl
call fcn.100064b0
cmp dword [ebp - 0x14], 0xffffffff
je 0x10102dbe
push ebx
lea eax, [ebp + 8]
push eax
push 0x10
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10102db5
cmp dword [ebp + 8], 0x10
jne 0x10102db5
mov byte [ebp - 0xd], 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.100064b0
mov al, byte [ebp - 0xd]
call fcn.1015d1e3
ret 4
Function at 0x10103ead
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x5c], ecx
ret

Function at 0x10103f83
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x14]
mov dword [ebp + 0xc], eax
mov eax, ebx
shr eax, 3
and eax, 0x3f
mov byte [eax + esi + 0x1c], 0x80
inc eax
cmp eax, 0x38
jle 0x10103fd2
push 0x40
pop ecx
sub ecx, eax
push ecx
lea eax, [eax + esi + 0x1c]
push 0
push eax
call fcn.101580b0
mov eax, esi
call fcn.101032b9
push 0x38
lea eax, [esi + 0x1c]
push 0
push eax
call fcn.101580b0
add esp, 0x18
jmp 0x10103fe7
push 0x38
pop ecx
sub ecx, eax
push ecx
lea eax, [eax + esi + 0x1c]
push 0
push eax
call fcn.101580b0
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, eax
shr ecx, 0x18
mov byte [esi + 0x54], cl
mov ecx, eax
mov byte [esi + 0x57], al
shr ecx, 0x10
mov byte [esi + 0x55], cl
mov ecx, eax
mov eax, ebx
shr eax, 0x18
mov byte [esi + 0x58], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0x59], al
mov eax, ebx
shr eax, 8
shr ecx, 8
mov byte [esi + 0x5a], al
mov eax, esi
mov byte [esi + 0x56], cl
mov byte [esi + 0x5b], bl
call fcn.101032b9
mov cl, byte [esi + 3]
mov eax, dword [ebp + 8]
mov byte [eax], cl
mov cl, byte [esi + 2]
mov byte [eax + 1], cl
mov cl, byte [esi + 1]
mov byte [eax + 2], cl
mov cl, byte [esi]
mov byte [eax + 3], cl
mov cl, byte [esi + 7]
mov byte [eax + 4], cl
mov cl, byte [esi + 6]
mov byte [eax + 5], cl
mov cl, byte [esi + 5]
mov byte [eax + 6], cl
mov cl, byte [esi + 4]
mov byte [eax + 7], cl
mov cl, byte [esi + 0xb]
mov byte [eax + 8], cl
mov cl, byte [esi + 0xa]
mov byte [eax + 9], cl
mov cl, byte [esi + 9]
mov byte [eax + 0xa], cl
mov cl, byte [esi + 8]
mov byte [eax + 0xb], cl
mov cl, byte [esi + 0xf]
mov byte [eax + 0xc], cl
mov cl, byte [esi + 0xe]
mov byte [eax + 0xd], cl
mov cl, byte [esi + 0xd]
mov byte [eax + 0xe], cl
mov cl, byte [esi + 0xc]
mov byte [eax + 0xf], cl
mov cl, byte [esi + 0x13]
mov byte [eax + 0x10], cl
mov cl, byte [esi + 0x12]
mov byte [eax + 0x11], cl
mov cl, byte [esi + 0x11]
mov byte [eax + 0x12], cl
mov cl, byte [esi + 0x10]
pop esi
mov byte [eax + 0x13], cl
pop ebx
pop ebp
ret
Function at 0x1010495d
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
ret

Function at 0x10104b42
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, eax
push dword [edi]
call esi
push dword [edi + 4]
mov ebx, eax
call esi
and dword [ebp - 4], 0
mov edi, eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
sub eax, ecx
mov dword [ebp - 8], eax
jmp 0x10104b74
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx*4]
push dword [ebp + eax - 0x18]
call esi
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
mov dword [ebp + ecx*4 - 0x18], eax
jl 0x10104b71
push 0x10
xor eax, eax
pop ecx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 0x14]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0x18]
sub eax, 0x61c88647
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add ebx, edx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 0xc]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0x10]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add edi, edx
dec ecx
jne 0x10104b95
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
call esi
mov ebx, dword [ebp + 0xc]
push edi
mov dword [ebx], eax
call esi
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebx
leave
ret

Function at 0x10104be8
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, eax
push dword [edi]
call esi
push dword [edi + 4]
mov ebx, eax
call esi
and dword [ebp - 4], 0
mov edi, eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
sub eax, ecx
mov dword [ebp - 8], eax
jmp 0x10104c1a
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx*4]
push dword [ebp + eax - 0x18]
call esi
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
mov dword [ebp + ecx*4 - 0x18], eax
jl 0x10104c17
push 0x10
mov eax, 0xe3779b90
pop ecx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 0xc]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0x10]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
sub edi, edx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 0x14]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0x18]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
sub ebx, edx
add eax, 0x61c88647
dec ecx
jne 0x10104c3e
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
call esi
mov ebx, dword [ebp + 0xc]
push edi
mov dword [ebx], eax
call esi
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebx
leave
ret
Function at 0x10105f2b
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x10108304
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xa4]
sub esp, 0x124
mov eax, dword [0x101c6444]
xor eax, ebp
mov dword [ebp + 0xa0], eax
mov eax, dword [ebp + 0xac]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7c]
push eax
xor ebx, ebx
mov edi, 0x20019
push edi
push ebx
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x6c], 3
mov dword [ebp - 0x78], 0x104
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x70], ebx
call esi
test eax, eax
jne 0x10108477
push dword [ebp - 0x80]
lea eax, [ebp - 0x64]
push str._sConnection
push 0x103
push eax
call fcn.101082e7
add esp, 0x10
lea eax, [ebp - 0x68]
push eax
push edi
push ebx
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x7c]
call esi
test eax, eax
jne 0x1010846e
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
pop eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push str.MediaSubType
push dword [ebp - 0x68]
call esi
test eax, eax
jne 0x10108465
push 0x104
xor edi, edi
lea eax, [ebp - 0x64]
push ebx
inc edi
push eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], 0x103
call fcn.101580b0
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push str.PnpInstanceID
push dword [ebp - 0x68]
call esi
test eax, eax
jne 0x10108465
cmp dword [ebp - 0x70], edi
jne 0x10108455
mov esi, 0x1019b374
push esi
call fcn.1015d080
push eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.1015eae8
add esp, 0x10
test eax, eax
jne 0x1010842f
mov dword [ebp - 0x6c], ebx
jmp 0x10108465
cmp dword [ebp - 0x70], edi
jne 0x10108455
push esi
call fcn.1015d080
push eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.1015eae8
add esp, 0x10
test eax, eax
je 0x10108455
mov dword [ebp - 0x6c], 2
jmp 0x10108465
xor eax, eax
cmp dword [ebp - 0x70], 2
setne al
lea eax, [eax + eax + 1]
mov dword [ebp - 0x6c], eax
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xa0]
mov eax, dword [ebp - 0x6c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101586e7
add ebp, 0xa4
leave
ret
Function at 0x1010c822
Capabilities:
Check for time delay via gettickcount
Print debug messages
Resolve dns

Disassembly:
push 0xc4
mov eax, 0x1018e6f5
call fcn.1015d174
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ebx, ebx
cmp byte [0x101c7fbc], bl
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ebx
je 0x1010c885
cmp byte [0x101c7fbd], bl
jne 0x1010c875
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x101c7fc0]
cmp eax, ecx
jbe 0x1010c875
sub eax, ecx
cmp eax, dword [0x101c5bd0]
jb 0x1010c875
mov byte [0x101c7fbc], bl
cmp byte [0x101c7fbc], bl
je 0x1010c885
cmp byte [0x101c7fbd], bl
je 0x1010c8d0
cmp dword [esi + 0x18], 0x10
jb 0x1010c890
mov esi, dword [esi + 4]
jmp 0x1010c893
add esi, 4
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
call edi
cmp eax, 0x2afc
jne 0x1010c8b9
mov byte [0x101c7fbc], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x101c7fc0], eax
jmp 0x1010c8c8
cmp dword [0x101c7fc0], ebx
je 0x1010c8c8
mov byte [0x101c7fbd], 1
cmp esi, ebx
jne 0x1010c959
push 1
push 2
lea ecx, [ebp - 0xd0]
call fcn.10013500
push 0x10198200
mov dword [ebp - 4], ebx
call edi
push eax
lea eax, [ebp - 0xd0]
push str.InetAddress::getHostByName_error_code:
push eax
call fcn.10012340
pop ecx
pop ecx
mov ecx, eax
call fcn.10013240
push eax
call fcn.10012340
pop ecx
pop ecx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0xd0]
call fcn.1000a8e0
cmp dword [eax + 0x18], 0x10
jb 0x1010c926
mov eax, dword [eax + 4]
jmp 0x1010c929
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.10001b20
mov ecx, dword [ebp - 0x30]
push 0x1019777d
call fcn.100019a0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd0]
call fcn.100064b0
jmp 0x1010c9a2
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
cmp eax, ebx
je 0x1010c995
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
cmp eax, ebx
je 0x1010c995
push eax
lea ecx, [ebp - 0x2c]
call fcn.100019a0
mov ecx, dword [ebp - 0x30]
xor esi, esi
lea eax, [ebp - 0x2c]
inc esi
push eax
mov dword [ebp - 4], esi
call fcn.10001970
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.10001b20
jmp 0x1010c9a2
mov ecx, dword [ebp - 0x30]
push 0x1019777d
call fcn.100019a0
mov eax, dword [ebp - 0x30]
call fcn.1015d1f7
ret
Function at 0x1010c9ab
Capabilities:
Get hostname

Disassembly:
push ebp
sub esp, 0x80
lea ebp, [esp - 4]
mov eax, dword [0x101c6444]
xor eax, ebp
mov dword [ebp + 0x80], eax
push 0x40
mov eax, 0x1018e746
call fcn.1015d10b
mov esi, dword [ebp + 0x8c]
push 0x7b
lea eax, [ebp]
xor ebx, ebx
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.WS2_32.dll_gethostname]
mov ecx, esi
call fcn.1010c75f
xor edi, edi
lea eax, [ebp]
inc edi
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], edi
call fcn.100019a0
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.10001a10
push ebx
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.10001b20
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esi + 0x48]
call fcn.10001a10
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x4c]
call fcn.100019a0
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 4], 2
call fcn.1010c822
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x1010ca56
mov eax, dword [eax + 4]
jmp 0x1010ca59
add eax, 4
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push ebx
push edi
lea ecx, [ebp - 0x30]
mov dword [esi + 0x3c], eax
call fcn.10001b20
push ebx
push edi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.10001b20
push 8
lea eax, [esi + 0x40]
push ebx
push eax
mov word [esi + 0x3a], bx
mov word [esi + 0x38], 2
call fcn.101580b0
add esp, 0xc
push dword [esi + 0x3c]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
cmp eax, ebx
je 0x1010caa9
push eax
lea ecx, [esi + 0x1c]
call fcn.10001af0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x80]
xor ecx, ebp
call fcn.101586e7
add ebp, 0x84
leave
ret
Function at 0x1010cfdf
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x101c6444]
xor eax, ebp
mov dword [ebp + 0x394], eax
push ebx
push esi
mov esi, dword [ebp + 0x3a0]
push edi
mov edi, dword [ebp + 0x3a4]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push str.proxy
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [ebp - 0x78], eax
jne 0x1010d028
xor al, al
jmp 0x1010d0ee
cmp dword [esi + 0x18], 0x10
jb 0x1010d033
mov esi, dword [esi + 4]
jmp 0x1010d036
add esi, 4
push ebx
push accept
push ebx
push ebx
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, ebx
mov dword [ebp - 0x7c], eax
jne 0x1010d058
push dword [ebp - 0x78]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x1010d021
cmp dword [edi + 0x18], 0x10
mov byte [ebp - 0x6d], 1
jb 0x1010d067
mov edi, dword [edi + 4]
jmp 0x1010d06a
add edi, 4
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1010d08a
mov byte [ebp - 0x6d], bl
cmp byte [ebp - 0x6d], bl
mov dword [ebp - 0x74], ebx
je 0x1010d0db
mov esi, 0x400
push esi
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.101580b0
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push esi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp dword [ebp - 0x74], ebx
je 0x1010d0db
push ebx
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1010d0d6
mov byte [ebp - 0x6d], bl
cmp byte [ebp - 0x6d], bl
jne 0x1010d097
push dword [ebp - 0x78]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x6d]
mov ecx, dword [ebp + 0x394]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101586e7
add ebp, 0x398
leave
ret 8
Function at 0x1010f0be
Capabilities:
Get proxy
Query or enumerate registry value

Disassembly:
push 0x58
mov eax, 0x1018ecb3
call fcn.1015d174
and dword [ebp - 0x44], 0
mov esi, 0x104
push esi
mov edi, ecx
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], esi
call fcn.1015780a
push esi
push 0
push eax
mov dword [ebp - 0x34], eax
call fcn.101580b0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
add esp, 0x10
lea eax, [ebp - 0x38]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.WS2_32.dll_accept
call ebx
test eax, eax
jne 0x1010f129
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x34]
lea eax, [ebp - 0x40]
push eax
push 0
push str.AutoConfigURL
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x1010f165
push dword [ebp - 0x34]
lea ecx, [ebp - 0x64]
call fcn.100019a0
and dword [ebp - 4], 0
push eax
mov ecx, edi
mov dword [ebp - 0x44], 1
call fcn.1010ee09
test eax, eax
mov byte [ebp - 0x2d], 1
je 0x1010f169
mov byte [ebp - 0x2d], 0
or dword [ebp - 4], 0xffffffff
test byte [ebp - 0x44], 1
je 0x1010f17f
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.10001b20
cmp byte [ebp - 0x2d], 0
je 0x1010f192
mov dword [edi], 5
mov al, 1
jmp 0x1010f296
and dword [ebp - 0x48], 0
push esi
mov dword [ebp - 0x40], 4
call fcn.1015780a
push esi
push 0
push eax
mov dword [ebp - 0x34], eax
call fcn.101580b0
add esp, 0x10
lea eax, [ebp - 0x38]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.WS2_32.dll_accept
call ebx
test eax, eax
jne 0x1010f27f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x40]
push eax
push 0
push str.ProxyEnable
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 4
call ebx
cmp dword [ebp - 0x48], 1
jne 0x1010f27f
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x34]
lea eax, [ebp - 0x40]
push eax
push 0
push str.ProxyServer
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], esi
call ebx
push dword [ebp - 0x34]
call fcn.1015d080
test eax, eax
pop ecx
jbe 0x1010f27f
push dword [ebp - 0x34]
lea ecx, [ebp - 0x2c]
call fcn.100019a0
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.1010e1ad
mov ebx, eax
lea esi, [edi + 0x24]
push esi
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
mov dword [edi + 4], ebx
call fcn.1010e102
movzx eax, word [esi]
push eax
lea eax, [edi + 8]
push eax
mov ecx, edi
call fcn.1010d283
test al, al
jne 0x1010f271
and dword [edi], 0
and dword [edi + 4], 0
jmp 0x1010f273
mov dword [edi], ebx
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001b20
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [edi], 0
jg 0x1010f18b
and dword [edi], 0
xor al, al
call fcn.1015d1f7
ret
Function at 0x1010f2db
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
or dword [esi], 0xffffffff
xor ebx, ebx
cmp dword [esi + 0x88], ebx
push edi
lea edi, [esi + 0x8c]
mov dword [edi], ebx
jne 0x1010f32c
lea eax, [esi + 0x28]
push eax
lea ecx, [ebp - 8]
call fcn.100035d0
inc dword [esi + 0x94]
push edi
push ebx
push esi
push 0x1010f29c
push ebx
push ebx
call fcn.10158ba9
add esp, 0x18
lea ecx, [ebp - 8]
mov dword [esi + 0x88], eax
call fcn.100035f0
pop edi
pop esi
pop ebx
leave
ret