joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100834a4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100bf4d8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100834e4
cmp byte [ebx], 0xa
jne 0x100834e4
or byte [edi + eax + 0x28], 4
jmp 0x100834e9
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x100835e8
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100835cb
inc eax
cmp dl, 0xd
je 0x10083515
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1008353b
cmp eax, ecx
jae 0x10083549
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x100834fd
jmp 0x100835e8
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100835c6
cmp dword [ebp - 0x10], 0
je 0x100835c6
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100bf4d8]
test byte [eax + edi + 0x28], 0x48
je 0x100835a0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1008358b
mov byte [esi], dl
jmp 0x1008359c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100bf4d8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100835e8
cmp byte [ebp - 1], 0xa
jne 0x100835af
cmp esi, ebx
jne 0x100835af
mov byte [esi], 0xa
jmp 0x100835e7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1008402a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100835e8
mov byte [esi], 0xd
jmp 0x100835e7
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100bf4d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100835e5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100835e8
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100835f1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100bf4d8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10083637
cmp word [ebx], dx
jne 0x10083637
or byte [eax + edi + 0x28], 4
jmp 0x1008363c
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1008379f
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1008377f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1008367d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100836b3
cmp eax, edx
jae 0x100836c1
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10083658
jmp 0x1008379f
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1008377a
cmp dword [ebp - 0x18], 0
je 0x1008377a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100bf4d8]
test byte [eax + edi + 0x28], 0x48
je 0x10083750
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10083714
mov word [esi], cx
jmp 0x1008374b
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100bf4d8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100bf4d8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100bf4d8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1008379f
pop eax
cmp word [ebp - 4], ax
jne 0x10083760
cmp esi, ebx
jne 0x10083760
mov word [esi], ax
jmp 0x1008379c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1008402a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1008379f
push 0xd
pop eax
jmp 0x1008375b
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100bf4d8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10083799
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1008379f
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10087192
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1008722f
push ebx
push esi
call fcn.1008715b
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100870ef
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100871dc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1008722e
push edi
push eax
call fcn.1008001a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100871fc
call fcn.1007ffe0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1008722d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100870ef
add esp, 0x20
test eax, eax
jne 0x1008721b
push edi
call fcn.1007ffe0
jmp 0x10087223
push ebx
call fcn.1007ffe0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10089ed1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1007e517
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10089f40
cmp esi, dword [ebp - 4]
je 0x10089f3b
cmp dword [ebp + 0xc], 0
je 0x10089f3b
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10089f18
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10089a23
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10089f42
xor eax, eax
inc eax
jmp 0x10089f42
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10089fa7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100bc0b0]
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.1007e517
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.1007e517
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 0x1008a01e
cmp word [ecx], dx
je 0x1008a01e
mov eax, dword [0x100a7a14]
push edi
dec eax
push eax
push 0x100a7900
call fcn.10089f46
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1008a091
cmp word [eax], dx
je 0x1008a091
mov eax, dword [edi]
test eax, eax
je 0x1008a042
cmp word [eax], dx
je 0x1008a042
lea eax, [ebp - 0x10]
push eax
call fcn.10089929
jmp 0x1008a04b
lea eax, [ebp - 0x10]
push eax
call fcn.100899c4
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1008a0bb
mov eax, dword [0x100a78fc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100a75f0
call fcn.10089f46
add esp, 0xc
test al, al
je 0x1008a0bb
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1008a086
cmp word [eax], di
je 0x1008a086
lea eax, [ebp - 0x10]
push eax
call fcn.10089929
pop ecx
jmp 0x1008a0bd
lea eax, [ebp - 0x10]
push eax
call fcn.100899c4
jmp 0x1008a083
mov eax, dword [edi]
test eax, eax
je 0x1008a0a8
cmp word [eax], dx
je 0x1008a0a8
lea eax, [ebp - 0x10]
push eax
call fcn.100898de
pop ecx
jmp 0x1008a0bb
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 0x1008a186
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10089dcb
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1008a186
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1008a186
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1008a186
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1008a113
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10082011
test ebx, ebx
je 0x1008a181
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10082011
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1008a186
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 0x1008a186
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1007a963
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1008a188
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10067e5d
leave
ret
Function at 0x1008e8a1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1008e81d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1008ea10
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1008ea10
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1008e9c5
jg 0x1008e8fd
test eax, eax
je 0x1008e9bb
push 1
push 0x1000
call fcn.1007ff83
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1008e920
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1008e9b2
push 0x8000
push ebx
call fcn.1008e74e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1008e949
jg 0x1008e944
cmp ecx, 0x1000
jb 0x1008e949
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10082cc7
add esp, 0x10
cmp eax, 0xffffffff
je 0x1008e98e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1008e944
jl 0x1008e975
test ecx, ecx
jne 0x1008e936
push dword [ebp - 0xc]
push ebx
call fcn.1008e74e
push esi
call fcn.1007ffe0
add esp, 0xc
xor ebx, ebx
jmp 0x1008ea1e
cmp byte [edi + 0x24], 0
je 0x1008e9a5
cmp dword [edi + 0x20], 5
jne 0x1008e9a5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1008e9b0
mov ebx, dword [edi + 0x18]
jmp 0x1008e9b2
xor ebx, ebx
push esi
call fcn.1007ffe0
pop ecx
jmp 0x1008ea1e
test ecx, ecx
jg 0x1008e987
jl 0x1008e9c5
test eax, eax
jae 0x1008e987
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1008402a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1008e9e5
cmp byte [edi + 0x1c], 0
je 0x1008e987
jmp 0x1008ea16
push ebx
call fcn.1008bf78
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1008e987
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1008ea1e
cmp byte [edi + 0x1c], 0
je 0x1008ea1b
mov ebx, dword [edi + 0x18]
jmp 0x1008ea1e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1008402a
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1008f580
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1008f5ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1008f5ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10011fa
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
lea eax, [ebp + 0xc]
mov dword [ebp - 8], eax
xor esi, esi
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push esi
push 0x900
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp eax, esi
mov dword [ebp - 8], esi
je 0x10012db
cmp dword [ebp - 4], esi
je 0x10012db
push edi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
push edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test al, 2
je 0x100127f
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x100127f
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
push eax
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x10012da
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push ebx
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp - 4]
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
call ebx
push eax
mov dword [ebp - 0x10], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
mov dword [ebp - 0xc], eax
je 0x10012d9
push esi
push esi
push dword [ebp - 0x10]
push eax
push 0xffffffffffffffff
push dword [ebp - 4]
push esi
call edi
push eax
call ebx
push esi
lea ecx, [ebp - 0x14]
push ecx
dec eax
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x10015ee
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push 0x2710
call fcn.010011fa
mov dword [esp], 0x2711
call fcn.010011fa
pop ecx
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
add eax, 4
push eax
mov eax, dword [ebp + 8]
dec eax
push eax
call fcn.0100133f
mov eax, dword [ebp - 0x10]
cmp eax, 1
je 0x100168b
cmp eax, 2
je 0x1001699
jle 0x100167e
cmp eax, 4
jg 0x100167e
push edi
call fcn.010016ac
mov edi, eax
test edi, edi
je 0x1001676
push esi
push edi
call fcn.0100117f
mov esi, eax
test esi, esi
jne 0x1001654
mov eax, 0x10010d0
push eax
push edi
push 0x2713
call fcn.010011fa
add esp, 0xc
test esi, esi
je 0x100166f
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
push edi
call dword [sym.imp.msvcrt.dll_exit]
call fcn.01001509
pop edi
jmp 0x100169e
push 0x2712
call fcn.010011fa
pop ecx
jmp 0x100169e
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.01001491
call fcn.01001509
call fcn.01001169
xor eax, eax
leave
ret

Function at 0x1005e27
Capabilities:
Encode data using xor

Disassembly:
enter 0, 0
pushal
mov ebx, 0x7fffffff
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, esi
imul eax, edx, 0x10dcd
add eax, 0x116c5
xor edx, edx
div ebx
lodsd eax, dword [esi]
xor eax, edx
stosd dword es:[edi], eax
loop 0x1005e3c
popal
leave
ret 0xc
Function at 0x100022a0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x278
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push ebp
mov ebp, dword [esp + 0x284]
push esi
push edi
push 0x100
xor ebx, ebx
lea eax, [esp + 0x128]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x100
lea ecx, [esp + 0x20]
push ebx
push ecx
mov dword [esp + 0x24], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x51
lea edx, [esp + 0x22c]
push ebx
push edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x130], ebp
mov dword [esp + 0x12c], 1
call sub.MSVCR90.dll_memset
mov eax, dword [0x10009178]
add esp, 0xc
push eax
lea ecx, [esp + 0x22c]
push 0x100071d0
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
lea eax, [esp + 0x234]
add esp, 0xc
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10002341
sub eax, esi
push eax
lea edx, [esp + 0x22c]
push edx
mov esi, ebp
call fcn.10002690
add esp, 8
lea eax, [esp + 0x10]
push eax
push ebx
mov ecx, 0x41
lea esi, [esp + 0x128]
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [esp + 0x24]
push ecx
push ebx
mov dword [esp + 0x24], 0x14
mov dword [esp + 0x28], ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x10002485
push 0x51
lea edx, [esp + 0x22c]
push ebx
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
push 0x51
lea eax, [esp + 0x230]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
push 0x51
lea ecx, [esp + 0x22c]
push ebx
push ecx
mov byte [esp + eax + 0x234], bl
call sub.MSVCR90.dll_memset
mov edx, dword [0x1000a64c]
add esp, 0xc
push edx
lea eax, [esp + 0x22c]
push 0x100071d0
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
lea eax, [esp + 0x234]
add esp, 0xc
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10002400
sub eax, esi
push eax
lea ecx, [esp + 0x22c]
push ecx
mov esi, ebp
call fcn.10002690
add esp, 8
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x10]
push edx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
mov ecx, 0x41
lea esi, [esp + 0x130]
lea edi, [esp + 0x28]
push ebx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x24], 0x14
mov dword [esp + 0x28], ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x10002485
push 0x51
lea ecx, [esp + 0x22c]
push ebx
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
push 0x51
lea edx, [esp + 0x230]
push edx
push ebp
call dword [sym.imp.WS2_32.dll_recv]
mov eax, 1
jmp 0x10002487
xor eax, eax
mov ecx, dword [esp + 0x284]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100061d0
add esp, 0x278
ret
Function at 0x10002690
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x30
push ebx
push ebp
push edi
mov ebp, 1
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov ecx, dword [esp + 0x40]
mov ebx, dword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
push 0
lea edx, [esp + 0x28]
push edx
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0x28]
push ecx
push esi
call ebx
cmp eax, 0xffffffff
jne 0x10002701
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x10002750
push 0
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x28]
push edx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0xffffffff
je 0x10002750
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
lea ecx, [esp + 0x10]
push ecx
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x10002750
mov eax, dword [esp + 0xc]
sub dword [esp + 0x14], eax
je 0x10002752
add dword [esp + 0x18], eax
jmp 0x100026d7
xor ebp, ebp
push edi
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x100034c0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x278
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push ebp
mov ebp, dword [esp + 0x284]
push esi
push edi
push 0x100
xor ebx, ebx
lea eax, [esp + 0x128]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x100
lea ecx, [esp + 0x20]
push ebx
push ecx
mov dword [esp + 0x24], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x51
lea edx, [esp + 0x22c]
push ebx
push edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x130], ebp
mov dword [esp + 0x12c], 1
call sub.MSVCR90.dll_memset
mov eax, dword [0x1000bb80]
add esp, 0xc
push eax
lea ecx, [esp + 0x22c]
push 0x100071d0
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
lea eax, [esp + 0x234]
add esp, 0xc
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10003561
sub eax, esi
push eax
lea edx, [esp + 0x22c]
push edx
mov esi, ebp
call fcn.10002690
add esp, 8
lea eax, [esp + 0x10]
push eax
push ebx
mov ecx, 0x41
lea esi, [esp + 0x128]
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [esp + 0x24]
push ecx
push ebx
mov dword [esp + 0x24], 0x14
mov dword [esp + 0x28], ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x100036a5
push 0x51
lea edx, [esp + 0x22c]
push ebx
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
push 0x51
lea eax, [esp + 0x230]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
push 0x51
lea ecx, [esp + 0x22c]
push ebx
push ecx
mov byte [esp + eax + 0x234], bl
call sub.MSVCR90.dll_memset
mov edx, dword [0x1000d054]
add esp, 0xc
push edx
lea eax, [esp + 0x22c]
push 0x100071d0
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
lea eax, [esp + 0x234]
add esp, 0xc
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10003620
sub eax, esi
push eax
lea ecx, [esp + 0x22c]
push ecx
mov esi, ebp
call fcn.10002690
add esp, 8
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x10]
push edx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
mov ecx, 0x41
lea esi, [esp + 0x130]
lea edi, [esp + 0x28]
push ebx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x24], 0x14
mov dword [esp + 0x28], ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x100036a5
push 0x51
lea ecx, [esp + 0x22c]
push ebx
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
push 0x51
lea edx, [esp + 0x230]
push edx
push ebp
call dword [sym.imp.WS2_32.dll_recv]
mov eax, 1
jmp 0x100036a7
xor eax, eax
mov ecx, dword [esp + 0x284]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100061d0
add esp, 0x278
ret