joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453d70
Capabilities:
Authenticate hmac
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0x10
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
call fcn.0049be50
cmp ax, 0xffff
jne 0x453d88
jmp 0x453dd5
mov eax, dword [0x4d178c]
sub eax, 1
jo 0x453ddd
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 1
and dword [ebp - 4], 0
jmp 0x453dad
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
jo 0x453ddd
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x10]
jg 0x453dd5
push dword [ebp - 4]
push dword [0x4d1788]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
cmp ecx, dword [eax]
jne 0x453dd3
or word [ebp - 8], 0xffff
jmp 0x453dd5
jmp 0x453da2
mov ax, word [ebp - 8]
leave
ret 4
call sub.MSVBVM60.DLL___vbaErrorOverflow
Function at 0x46d2f4
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0x28
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
push esi
and dword [0x4d2280], 0
mov eax, dword [0x4d2278]
sub eax, 1
jo 0x46d4fe
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 1
and dword [ebp - 4], 0
jmp 0x46d334
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
jo 0x46d4fe
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x10]
jg 0x46d4fb
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x201
jae 0x46d355
and dword [ebp - 0x14], 0
jmp 0x46d35d
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
imul eax, eax, 0x2c
mov ecx, dword [0x4d226c]
cmp dword [ecx + eax + 0x1c], 0
jne 0x46d4f6
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x201
jae 0x46d389
and dword [ebp - 0x18], 0
jmp 0x46d391
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
imul eax, eax, 0x2c
mov ecx, dword [0x4d226c]
push dword [ecx + eax + 0x20]
push 0x420c24
call sub.MSVBVM60.DLL___vbaStrCmp
test eax, eax
jne 0x46d4f6
push 0
mov eax, dword [0x4d2280]
add eax, 1
jo 0x46d4fe
push eax
push 1
push 0x40dd64
push 0x4d227c
push 0x10
push 0
call sub.MSVBVM60.DLL___vbaRedimPreserve
add esp, 0x1c
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x201
jae 0x46d3f1
and dword [ebp - 0x1c], 0
jmp 0x46d3f9
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp - 8]
imul esi, esi, 0x2c
push dword [0x4d2280]
push dword [0x4d227c]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, dword [0x4d226c]
mov ecx, dword [ecx + esi]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x201
jae 0x46d430
and dword [ebp - 0x20], 0
jmp 0x46d438
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x20], eax
mov esi, dword [ebp - 8]
imul esi, esi, 0x2c
push dword [0x4d2280]
push dword [0x4d227c]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, dword [0x4d226c]
mov ecx, dword [ecx + esi + 0x14]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x201
jae 0x46d471
and dword [ebp - 0x24], 0
jmp 0x46d479
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x24], eax
mov esi, dword [ebp - 8]
imul esi, esi, 0x2c
push dword [0x4d2280]
push dword [0x4d227c]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, dword [0x4d226c]
mov ecx, dword [ecx + esi + 0x18]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x201
jae 0x46d4b2
and dword [ebp - 0x28], 0
jmp 0x46d4ba
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
imul eax, eax, 0x2c
mov ecx, dword [0x4d226c]
mov esi, dword [ecx + eax + 0x28]
push dword [0x4d2280]
push dword [0x4d227c]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
add ecx, 0xc
mov edx, esi
call sub.MSVBVM60.DLL___vbaStrCopy
mov eax, dword [0x4d2280]
add eax, 1
jo 0x46d4fe
mov dword [0x4d2280], eax
jmp 0x46d325
pop esi
leave
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow
Function at 0x48ae8b
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x404446
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push 0x4c
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x402f20
call fcn.0040ea84
mov dword [ebp - 0x44], eax
call sub.MSVBVM60.DLL___vbaSetSystemError
lea eax, [ebp - 0x1c]
push eax
push 0x28
push dword [ebp - 0x44]
call fcn.0040eb70
mov dword [ebp - 0x48], eax
call sub.MSVBVM60.DLL___vbaSetSystemError
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x18], eax
call fcn.0040ebb8
mov dword [ebp - 0x44], eax
call sub.MSVBVM60.DLL___vbaSetSystemError
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
not eax
mov ecx, dword [ebp - 0x18]
and ecx, eax
test ecx, ecx
je 0x48afed
and dword [ebp - 0x50], 0
cmp dword [ebp - 0x50], 2
jae 0x48af16
and dword [ebp - 0x58], 0
jmp 0x48af1e
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x50]
imul eax, eax, 0xc
lea eax, [ebp + eax - 0x34]
push eax
push 0x412bf4
lea eax, [ebp - 0x40]
push eax
call sub.MSVBVM60.DLL___vbaStrToAnsi
push eax
push 0
call fcn.0040e9d4
mov dword [ebp - 0x44], eax
call sub.MSVBVM60.DLL___vbaSetSystemError
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x40]
call sub.MSVBVM60.DLL___vbaFreeStr
call fcn.0040ebb8
mov dword [ebp - 0x44], eax
call sub.MSVBVM60.DLL___vbaSetSystemError
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
not eax
mov ecx, dword [ebp - 0x18]
and ecx, eax
test ecx, ecx
je 0x48afed
mov dword [ebp - 0x38], 1
and dword [ebp - 0x50], 0
cmp dword [ebp - 0x50], 2
jae 0x48af8d
and dword [ebp - 0x5c], 0
jmp 0x48af95
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x50]
imul eax, eax, 0xc
mov dword [ebp + eax - 0x2c], 2
and dword [ebp - 0x48], 0
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
push 0x1c
lea eax, [ebp - 0x38]
push eax
push 0
push dword [ebp - 0x1c]
call fcn.0040ea24
mov dword [ebp - 0x4c], eax
call sub.MSVBVM60.DLL___vbaSetSystemError
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x18], eax
call fcn.0040ebb8
mov dword [ebp - 0x44], eax
call sub.MSVBVM60.DLL___vbaSetSystemError
xor eax, eax
cmp dword [ebp - 0x44], 0
sete al
neg eax
mov word [ebp - 0x14], ax
push dword [ebp - 0x1c]
call fcn.0040eb24
call sub.MSVBVM60.DLL___vbaSetSystemError
push 0x48b00b
jmp 0x48b00a
ret
Function at 0x496377
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x404446
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push 0x44
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x4032b0
fld dword [0x4023e8]
fstp dword [ebp - 0x1c]
mov eax, dword [0x4d21e4]
sub eax, 1
jo 0x49658e
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 1
and dword [ebp - 0x14], 0
jmp 0x4963da
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x44]
jo 0x49658e
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x48]
jg 0x49653a
push dword [ebp - 0x14]
push dword [0x4d21e0]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov eax, dword [eax + 4]
sub eax, 1
jo 0x49658e
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 1
and dword [ebp - 0x18], 0
jmp 0x49641f
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x4c]
jo 0x49658e
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x50]
jg 0x496535
push dword [0x4d21e0]
lea eax, [ebp - 0x3c]
push eax
call sub.MSVBVM60.DLL___vbaAryLock
push dword [ebp - 0x14]
push dword [ebp - 0x3c]
call sub.MSVBVM60.DLL___vbaDerefAry1
push dword [eax]
lea eax, [ebp - 0x38]
push eax
call sub.MSVBVM60.DLL___vbaAryLock
push dword [0x4d21e0]
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL___vbaAryLock
push dword [ebp - 0x14]
push dword [ebp - 0x34]
call sub.MSVBVM60.DLL___vbaDerefAry1
push dword [eax]
lea eax, [ebp - 0x30]
push eax
call sub.MSVBVM60.DLL___vbaAryLock
push dword [0x4d21e0]
lea eax, [ebp - 0x2c]
push eax
call sub.MSVBVM60.DLL___vbaAryLock
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
call sub.MSVBVM60.DLL___vbaDerefAry1
push dword [eax]
lea eax, [ebp - 0x28]
push eax
call sub.MSVBVM60.DLL___vbaAryLock
push dword [ebp - 0x18]
push dword [ebp - 0x38]
call sub.MSVBVM60.DLL___vbaDerefAry1
add eax, 4
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaDerefAry1
add eax, 8
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x28]
call sub.MSVBVM60.DLL___vbaDerefAry1
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045195c
fstp dword [ebp - 0x40]
lea eax, [ebp - 0x28]
push eax
call sub.MSVBVM60.DLL___vbaAryUnlock
lea eax, [ebp - 0x2c]
push eax
call sub.MSVBVM60.DLL___vbaAryUnlock
lea eax, [ebp - 0x30]
push eax
call sub.MSVBVM60.DLL___vbaAryUnlock
lea eax, [ebp - 0x34]
push eax
call sub.MSVBVM60.DLL___vbaAryUnlock
lea eax, [ebp - 0x38]
push eax
call sub.MSVBVM60.DLL___vbaAryUnlock
lea eax, [ebp - 0x3c]
push eax
call sub.MSVBVM60.DLL___vbaAryUnlock
fld dword [ebp - 0x40]
fstp dword [ebp - 0x20]
fld dword [ebp - 0x1c]
fcomp dword [ebp - 0x20]
fnstsw ax
sahf
jbe 0x496530
fld dword [ebp - 0x20]
fstp dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
jmp 0x496410
jmp 0x4963cb
wait
push 0x49657a
jmp 0x496579
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow
Function at 0x1000d120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1000d135
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000d176
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1000d172
lea ebx, [ebx]
cmp esi, edx
jae 0x1000d176
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x1000d160
cmp esi, edx
jb 0x1000d17b
xor eax, eax
pop esi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x1000e2b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x104], 0
jne 0x1000e2ff
call fcn.100674eb
mov eax, dword [eax + 0xc]
mov dword [esi + 0x104], eax
test eax, eax
je 0x1000e2e3
push 5
push 0x7594
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x1000e2ff
push 2
push 0
push str.DTCommonRes.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [esi + 0x104], eax
mov byte [esi + 0x10c], 1
push esi
push 0
push 0x1000e520
call fcn.101dd5fa
movzx ecx, byte [ebp + 8]
add esp, 0xc
neg ecx
mov dword [esi + 0x108], eax
sbb ecx, ecx
and ecx, 0xfffffe0d
add ecx, 0x1f4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1000e360
cmp byte [esi + 0x72], 0
jne 0x1000e360
push esi
push 0x1000e100
push dword [esi + 0xfc]
push 0x7594
push dword [esi + 0x104]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
pop esi
pop ebp
ret 4
mov eax, 1
pop esi
pop ebp
ret 4

Function at 0x1000e370
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x104], 0
jne 0x1000e3bc
call fcn.100674eb
mov eax, dword [eax + 0xc]
mov dword [esi + 0x104], eax
test eax, eax
je 0x1000e3a0
push 5
push 0x7594
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x1000e3bc
push 2
push 0
push str.DTCommonRes.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [esi + 0x104], eax
mov byte [esi + 0x10c], 1
push esi
push 0
push 0x1000e520
call fcn.101dd5fa
add esp, 0xc
mov dword [esi + 0x108], eax
mov byte [esi + 0x10d], 1
push esi
push 0x1000e100
push dword [esi + 0xfc]
push 0x7594
push dword [esi + 0x104]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
pop esi
ret
Function at 0x100119e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
je 0x10011a2c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.101d1720
lea eax, [esi + 4]
mov dword [ebp - 0x3c], 0x3c
add esp, 0xc
mov dword [ebp - 0x30], 0x10288c7c
cmp dword [eax + 0x14], 8
jb 0x10011a18
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0
push 0
push 0x40f
push dword [ebp + 8]
mov byte [esi + 0x33], 1
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x100129f0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x10012a49
cmp dword [edi + 0x34], 0
je 0x10012a50
mov ecx, dword [edi + 0x78]
mov eax, 0x92492493
sub ecx, dword [edi + 0x74]
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x10012a50
lea eax, [ebp - 8]
push eax
push 4
push edi
push 0x10012f60
push 0
push 0
call fcn.101dd686
add esp, 0x18
mov dword [edi + 0x5c], eax
test eax, eax
je 0x10012a49
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x64]
test ecx, ecx
je 0x10012a49
mov eax, dword [ecx]
lea edx, [ebp - 8]
push esi
push edx
push ecx
call dword [eax + 0x18]
mov eax, dword [edi + 0x64]
lea edx, [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [ebp - 4]
mov eax, ecx
mov edx, dword [edi + 0x64]
neg eax
push 0
push eax
push dword [ebp - 8]
mov esi, dword [edx]
push ecx
push 0
push dword [edi + 0x1c]
push dword [edi + 0x18]
push 0
push 0
push dword [edi + 0x44]
push edx
call dword [esi + 0x20]
pop esi
test eax, eax
jne 0x10012a49
mov ecx, edi
call fcn.100135e0
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10012ab0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x10012b3f
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 0x22
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x10012b3f
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x10012b38
test ebx, ebx
je 0x10012b38
push dword [ebp + 8]
push eax
push ebx
call fcn.101d11a0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 8]
mov ecx, esi
push edi
call fcn.10012560
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100179c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 5
push 0
push 0
push dword [ebp + 8]
push 0x10288c7c
push dword [ecx + 0x94]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret 4

Function at 0x10017cb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.100781dc

Function at 0x100186bc
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x20
mov eax, dword [0x102bff3c]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
inc ebx
cmp byte [esi + 0x3c], 0
mov dword [esi], ebx
je 0x100186e3
and dword [esi], 0
mov al, bl
jmp 0x1001884e
cmp dword [esi + 8], 0xffffffff
je 0x10018700
push ebx
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [esi + 8], 0xffffffff
push ebp
push 6
push ebx
push 2
pop ebp
push ebp
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x1001874a
cmp dword [section..data], 0x102bb000
je 0x10018743
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [section..data]
push 0x10233130
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001c94b
add esp, 0x14
xor al, al
jmp 0x1001884d
push edi
lea edi, [esi + 0x1c]
mov word [esp + 0x1c], bp
cmp dword [edi + 0x14], 0x10
jb 0x1001875d
mov eax, dword [edi]
jmp 0x1001875f
mov eax, edi
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x20], eax
movzx eax, word [esi + 0x3e]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1e], ax
lea eax, [esp + 0x1c]
push 0x10
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100187d0
cmp dword [section..data], 0x102bb000
je 0x10018843
cmp dword [edi + 0x14], 0x10
jb 0x100187a7
mov edi, dword [edi]
movzx eax, word [esi + 0x3e]
push eax
push edi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [section..data]
push 0x10233130
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001c96e
add esp, 0x1c
jmp 0x10018843
push 0
push 0x10
lea eax, [esi + 0x44]
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_send]
movzx eax, byte [esi + 0xc]
mov ecx, esi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebp
call fcn.10018faa
test al, al
je 0x10018843
push 0xbb8
lea eax, [esi + 0x34]
mov byte [esi + 0x3c], bl
push eax
mov ecx, esi
call fcn.10018f04
test al, al
je 0x10018843
cmp dword [esi + 0x38], ebp
je 0x10018847
mov eax, dword [section..data]
cmp eax, section..data
je 0x10018841
push dword [esi + 0x38]
push 0x10233130
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001c94b
add esp, 0x14
mov dword [esi], ebp
xor al, al
jmp 0x1001884c
and dword [esi], 0
mov al, bl
pop edi
pop ebp
mov ecx, dword [esp + 0x24]
pop esi
pop ebx
xor ecx, esp
call fcn.101b70aa
add esp, 0x20
ret
Function at 0x100186cb
Capabilities:
Connect socket
Send data
Send data on socket

Disassembly:
sub esp, 0x20
mov eax, dword [0x102bff3c]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
inc ebx
cmp byte [esi + 0x3c], 0
mov dword [esi], ebx
je 0x100186e3
and dword [esi], 0
mov al, bl
jmp 0x1001884e
cmp dword [esi + 8], 0xffffffff
je 0x10018700
push ebx
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [esi + 8], 0xffffffff
push ebp
push 6
push ebx
push 2
pop ebp
push ebp
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x1001874a
cmp dword [section..data], 0x102bb000
je 0x10018743
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [section..data]
push 0x10233130
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001c94b
add esp, 0x14
xor al, al
jmp 0x1001884d
push edi
lea edi, [esi + 0x1c]
mov word [esp + 0x1c], bp
cmp dword [edi + 0x14], 0x10
jb 0x1001875d
mov eax, dword [edi]
jmp 0x1001875f
mov eax, edi
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x20], eax
movzx eax, word [esi + 0x3e]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1e], ax
lea eax, [esp + 0x1c]
push 0x10
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100187d0
cmp dword [section..data], 0x102bb000
je 0x10018843
cmp dword [edi + 0x14], 0x10
jb 0x100187a7
mov edi, dword [edi]
movzx eax, word [esi + 0x3e]
push eax
push edi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [section..data]
push 0x10233130
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001c96e
add esp, 0x1c
jmp 0x10018843
push 0
push 0x10
lea eax, [esi + 0x44]
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_send]
movzx eax, byte [esi + 0xc]
mov ecx, esi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebp
call fcn.10018faa
test al, al
je 0x10018843
push 0xbb8
lea eax, [esi + 0x34]
mov byte [esi + 0x3c], bl
push eax
mov ecx, esi
call fcn.10018f04
test al, al
je 0x10018843
cmp dword [esi + 0x38], ebp
je 0x10018847
mov eax, dword [section..data]
cmp eax, section..data
je 0x10018841
push dword [esi + 0x38]
push 0x10233130
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001c94b
add esp, 0x14
mov dword [esi], ebp
xor al, al
jmp 0x1001884c
and dword [esi], 0
mov al, bl
pop edi
pop ebp
mov ecx, dword [esp + 0x24]
pop esi
pop ebx
xor ecx, esp
call fcn.101b70aa
add esp, 0x20
ret
Function at 0x100188ef
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x48
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ebx, [ebp + 0x10]
mov eax, dword [ebx]
cmp eax, dword [ebx + 4]
jne 0x1001890e
push 0xfd0
mov ecx, ebx
call fcn.1001bed7
xor ecx, ecx
and dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
push ecx
mov ecx, ebx
call fcn.1001b282
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [esp + 0x50]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0x1c
mov eax, dword [ebp + 4]
xor ecx, ecx
push ecx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ecx
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x34], ecx
push eax
push 1
lea eax, [esp + 0x34]
mov dword [esp + 0x40], ecx
push eax
push dword [ebp + 8]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x100189c5
call esi
cmp eax, 0x3e5
jne 0x10018a5c
call esi
cmp eax, 0x3e5
jne 0x100189c5
push dword [esp + 0x5c]
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10018a39
and dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
mov edx, dword [esp + 0x10]
test edx, edx
je 0x10018a83
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x100189ee
mov esi, dword [ebx]
lea edi, [esp + 0x3c]
push 7
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x50]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, edx
cmp eax, edi
je 0x10018a7f
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
cmp eax, edi
jae 0x10018a15
push edi
mov ecx, ebp
call fcn.10018ac3
test al, al
je 0x10018ab7
mov edx, dword [esp + 0x10]
add dword [esp + 0x14], edx
mov ecx, ebx
push 0
call fcn.1001b282
add eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, edi
sub eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x10018936
mov eax, dword [section..data]
cmp eax, section..data
je 0x10018ab7
push 0x10233130
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001c92e
add esp, 0x10
jmp 0x10018ab7
cmp dword [section..data], 0x102bb000
je 0x10018ab7
call esi
push eax
mov eax, dword [section..data]
push 0x10233130
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
jmp 0x10018aaf
mov al, 1
jmp 0x10018ab9
call esi
cmp eax, 0x2746
je 0x10018ab7
cmp eax, 0x2745
je 0x10018ab7
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x10018ab7
push eax
push 0x10233130
push 0xf
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.1001c94b
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 4