joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40941c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409522
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x424c0c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x424c24]
jne 0x409468
mov eax, esi
mov edx, 0x424c26
mov ecx, 0x55
call fcn.00407084
push 0x424c0c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40950a
push 0x424c0c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406abc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4094d7
cmp byte [0x424c08], 0
je 0x40949c
mov edx, esi
mov eax, ebx
call fcn.00409300
jmp 0x4094d7
mov edx, esi
mov eax, ebx
call fcn.00409100
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4094d7
cmp dword [esi], 0
je 0x4094c0
mov eax, esi
mov edx, 0x40953c
call fcn.0040715c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409100
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040715c
push 0x424c0c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x424c24], bx
mov eax, dword [esi]
call fcn.00406ff4
mov ecx, eax
mov eax, 0x424c26
mov edx, 0xaa
call fcn.00408f7c
push 0x424c0c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409529
lea eax, [ebp - 4]
call fcn.00406abc
pop eax
jmp eax
Function at 0x409754
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406ba0
xor eax, eax
push ebp
push 0x40997d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409794
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4097ae
mov eax, dword [ebp - 4]
call fcn.00406ff4
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408f7c
cmp word [ebp - 0x21a], 0
je 0x409965
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40998c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40987d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40998c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40987d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4099c8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40987d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4099c8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40987d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4099fc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40987d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409a30
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409965
xor eax, eax
push ebp
push 0x40995e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409564
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4098ec
mov eax, dword [ebp - 0x10]
call fcn.004044e0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407048
jmp 0x409937
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409a70
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409937
mov eax, dword [ebp - 0x10]
call fcn.004044e0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409a70
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407048
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409965
cmp dword [ebp - 8], 0
je 0x409952
mov eax, dword [ebp - 8]
call fcn.004044fc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409984
lea eax, [ebp - 4]
call fcn.00406abc
pop eax
jmp eax
Function at 0x409c90
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406ba0
xor eax, eax
push ebp
push 0x409d52
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407084
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004071b4
mov eax, dword [ebx]
call fcn.00409b38
test al, al
jne 0x409d2d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407084
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004071b4
mov eax, dword [ebx]
call fcn.00409b38
test al, al
jne 0x409d2d
mov eax, ebx
call fcn.00406abc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409d59
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406b1c
lea eax, [ebp - 4]
call fcn.00406abc
pop eax
jmp eax

Function at 0x40b7e8
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x4156b8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x415711
test eax, edx
je 0x415714
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4156cf
movzx eax, word [eax]
sub eax, ecx
jmp 0x4156f6
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4156f7
add ecx, 4
js 0x4156e7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4156f4
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4156f6
xor eax, eax
ret
test eax, eax
je 0x415720
test edx, edx
jne 0x4156c0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x417a80
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x417ab9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406bf8
jmp 0x417ac2
mov eax, ebx
mov edx, esi
call fcn.00406d74
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x417acc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x417aee
movzx eax, word [esp]
jmp 0x417af0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x418df0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x418f17
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00418bf8
mov esi, eax
mov eax, dword [0x4216a4]
cmp byte [eax], 0
je 0x418ebd
mov eax, dword [0x4215b4]
call fcn.00404914
call fcn.00404634
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x418dc0]
call fcn.00408a34
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x418f30
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x418ef9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x42158c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x42562c]
call fcn.00408c20
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418f1e
lea eax, [ebp - 4]
mov edx, dword [0x418dc0]
call fcn.00408b58
pop eax
jmp eax
Function at 0x41a120
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41a224
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406dbc
lea eax, [ebp - 4]
call fcn.00406ed0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406ff4
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x41a20c
mov eax, ebx
call fcn.004044e0
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x41a205
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406ff4
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41a1ed
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41a238
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41a1ed
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a20c
mov eax, dword [ebp - 0x10]
call fcn.004044fc
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a22b
lea eax, [ebp - 4]
call fcn.00406abc
pop eax
jmp eax

Function at 0x41ae84
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00406e64
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040b7c8
mov edi, eax
cmp edi, 0x104
jbe 0x41ae2f
mov eax, edi
add eax, eax
call fcn.004044e0
mov esi, eax
jmp 0x41ae31
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040b7c8
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x41ae6a
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x41ae54
mov eax, esp
cmp esi, eax
je 0x41ae77
mov eax, esi
call fcn.004044fc
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x41aeb0
cmp bl, 0
je 0x41aeac
cmp bl, 0x41
jl 0x41aea7
cmp bl, 0x5a
jg 0x41aea7
or bl, 0x20
xor al, bl
inc esi
jmp 0x41ae8b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41adf0

Function at 0x41b150
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00407084
add esp, 0x800
pop ebx
ret
Function at 0x41c6d4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
push 0
push 0x1fffff
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41c701
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_TerminateProcess
pop ecx
pop ecx
pop ebp
ret
Function at 0x201420
Capabilities:
Accept command line arguments
Allocate thread local storage
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, section..data
test word [0x201402], 0x100
jne 0x20143b
jmp 0x20186c
jmp fcn.00201659
call fcn.00201555
mov dword [ebx + 0x600], 1
mov dword [ebx + 0x5dc], 0
lea eax, [ebx + 0x8e4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov cx, word [0x201402]
mov edx, dword [ebx + 0x8f4]
test cx, 0x20
jne 0x2018e1
cmp edx, 2
je 0x2018f0
test cx, 0x40
jne 0x2018e1
push 0x12000
push 0
call 0x2018cf
push edi
imul ebp, dword [esi + 0x39], 0x6f4e2038
and byte [ebx + 0x75], dl
jo 0x20193b
outsd dx, dword [esi]
jb 0x201942
add byte [edx], ch
call dword [sym.imp.USER32.DLL_MessageBoxA]
push 0xff
jmp 0x2019aa
call fcn.00201659
or dword [ebx + 0x5dc], 0x80
sub esp, 0x44
mov dword [esp], 0x44
mov dword [esp + 0x2c], 0
push esp
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
mov eax, 0xa
test dword [esp + 0x2c], 1
je 0x20191d
movzx eax, word [esp + 0x30]
add esp, 0x44
mov dword [ebx + 0x5f4], eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
call fcn.002015ed
mov dword [ebx + 0x5f0], eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
nop
push ecx
and byte [eax], al
mov dword [ebx + 0x5fc], eax
call fcn.00201440
push 0xff
jb 0x2019aa
add eax, 0xf6e80000
cli
invalid
pop eax
push 0
call dword [sym.imp.OLE32.DLL_CoInitialize]
movzx ecx, word [0x201400]
jecxz 0x20196f
push ecx
push 8
push esp
call dword [sym.imp.COMCTL32.DLL_InitCommonControlsEx]
pop eax
pop eax
call fcn.002014a1
push eax
mov ebx, section..data
mov ecx, dword [ebx + 0xdc]
call fcn.002019b0
mov ecx, dword [ebx + 0xb8]
jecxz 0x201994
push ecx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov edi, dword [ebx + 0x638]
call fcn.002014a6
call fcn.0020148d
call dword [sym.imp.OLE32.DLL_CoUninitialize]
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x201440
Capabilities:
Allocate thread local storage

Disassembly:
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
stc
je 0x20148c
mov dword [ebx + 0x5e0], eax
mov dword [ebx + 0x5e8], 0
call fcn.0020174c
jb 0x20148c
mov dword [ebx + 0x5e4], eax
mov dword [eax + 0x68], 1
mov dword [eax + 0x6c], 1
mov dword [eax + 0x70], 2
mov dword [eax + 0x74], 3
mov dword [eax + 0x78], 0
ret
Function at 0x201659
Capabilities:
Terminate process

Disassembly:
mov edx, 0xf4
jmp 0x201665
mov dh, 0xb0
mov word [ebp - 0x90], dx
jmp 0x20167b
test byte [ebp - 0x90], 0xff
jne 0x20168d
mov word [ebp - 0x90], 0xb033
push eax
push ebx
push ecx
push esi
push edi
mov ax, word [ebp - 0x8e]
mov word [ebp - 0xe], ax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
call fcn.0020174c
jb 0x2016c7
test dword [eax + 0x24], 0xffffffff
je 0x2016c7
test dword [eax + 0x20], 0xffffffff
je 0x2016c7
call fcn.00201659
mov edi, dword [ebp - 0x84]
mov edx, dword [esp + 0x14]
cmp edx, edi
jb 0x201705
cmp edx, dword [edi - 0xa]
ja 0x201705
mov ecx, dword [edi - 6]
jecxz 0x20170e
xor ebx, ebx
xor esi, esi
mov bl, byte [ecx]
inc ecx
cmp bl, 0xff
jne 0x2016f3
add esi, 0xfe
jmp 0x2016e3
add esi, ebx
add edi, esi
cmp edi, edx
jb 0x2016e1
mov dword [eax + 0x2c], edi
sub edi, esi
mov dword [eax + 0x28], edi
jmp 0x20170e
and word [ebp - 0x90], 0x7fff
test word [0x201402], 0x2000
je 0x20172f
test dword [ebp - 0x8c], 0xffffffff
jne 0x20172f
call fcn.00201659
cmp eax, 1
jne 0x20173e
cmp byte [ebp - 0x90], 0xf1
jae 0x20173e
pop edi
pop esi
pop ecx
pop ebx
pop eax
ret
push 0xff
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x201c76
Capabilities:
Get socket status
Send data
Send data on socket
Terminate process

Disassembly:
push esi
push edi
sub esp, 0x104
mov ax, word [ebp - 0x46]
mov esi, dword [ebp - 0x88]
mov esi, dword [ebp + esi - 0x6c]
call fcn.002029f8
call fcn.00202aae
jb 0x201d22
test byte [edi + 0xc], 0x40
je 0x201d26
add esp, 0x104
mov ebx, ecx
mov eax, dword [edi + 6]
mov ecx, 0x40
push eax
loop 0x201cb6
push 0x40
mov edx, esp
mov eax, dword [edi + 0x38]
mov ecx, eax
and eax, 0x3ff
shl eax, 0xa
shr ecx, 0xa
push eax
push ecx
push esp
push 0
push edx
push 0
push 0
call dword [sym.imp.WSOCK32.DLL_select]
pop edx
pop edx
cmp eax, 0xffffffff
je 0x201d13
test eax, eax
je 0x201d32
push 0
push ebx
push esi
push dword [edi + 6]
call dword [sym.imp.WSOCK32.DLL_send]
cmp eax, 0xffffffff
je 0x201d13
add esi, eax
sub ebx, eax
jg 0x201cbb
and word [edi + 0x2c], 0xfffd
call fcn.002031ba
add esp, 0x104
pop edi
pop esi
ret
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
cmp eax, 0x2734
je 0x201d2a
jmp 0x201d2e
mov al, 0x34
mov dx, 0x36b0
mov al, 0x36
mov dx, 0x46b0
mov al, 0x46
mov dx, 0x39b0
mov al, 0x39
mov dx, 0x18b0
mov al, 0x18
call fcn.002031ba
add esp, 0x104
pop edi
pop esi
jmp fcn.00201670
Function at 0x201d46
Capabilities:
Get socket status
Receive data
Receive data on socket
Terminate process

Disassembly:
push esi
push edi
mov dword [ebp - 0x6c], 0
sub esp, 0x104
mov ecx, eax
call fcn.0020299c
mov ebx, ecx
jb 0x201eb7
mov dword [ebp - 0x6c], edi
mov ax, word [ebp - 0x46]
call fcn.00202a70
jb 0x201e9d
test byte [esi + 0xc], 0x40
je 0x201ea1
and word [esi + 0x2c], 0xfff5
add esp, 0x104
mov eax, dword [esi + 6]
mov ecx, 0x40
push eax
loop 0x201d93
push 0x40
mov ecx, dword [esi + 0x28]
jecxz 0x201dec
cmp ebx, ecx
ja 0x201da3
mov ecx, ebx
sub dword [esi + 0x28], ecx
sub ebx, ecx
push esi
push dword [esi + 0x28]
cld
lea edx, [esi + 0x44]
mov esi, edx
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop ecx
xchg edi, edx
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
pop esi
test dword [esi + 0x28], 0xffffffff
jne 0x201e62
test word [esi + 0x2c], 8
je 0x201dec
or word [esi + 0x2c], 2
jmp 0x201e62
test ebx, ebx
je 0x201e79
mov edx, esp
mov eax, dword [esi + 0x38]
mov ecx, eax
and eax, 0x3ff
shl eax, 0xa
shr ecx, 0xa
push eax
push ecx
push esp
push 0
push 0
push edx
push 0
call dword [sym.imp.WSOCK32.DLL_select]
pop edx
pop edx
cmp eax, 0xffffffff
je 0x201e8a
test eax, eax
jne 0x201e2d
mov ecx, edi
sub ecx, dword [ebp - 0x6c]
jne 0x201e46
jmp 0x201ead
lea edx, [esi + 0x44]
push 0
push 0x10000
push edx
push dword [esi + 6]
call dword [sym.imp.WSOCK32.DLL_recv]
cmp eax, 0xffffffff
je 0x201e8a
mov dword [esi + 0x28], eax
cmp eax, 0x10000
je 0x201e55
or word [esi + 0x2c], 8
test eax, eax
jne 0x201d98
or word [esi + 0x2c], 2
test ebx, ebx
je 0x201e79
push esi
mov ecx, edi
mov esi, dword [ebp - 0x6c]
sub ecx, esi
call fcn.00202a1e
pop esi
jb 0x201ebc
mov dword [ebp - 0x6c], edx
mov edx, dword [ebp - 0x6c]
call fcn.00202f62
add esp, 0x104
pop edi
pop esi
ret
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
cmp eax, 0x2734
je 0x201ea5
jmp 0x201ea9
mov al, 0x34
mov dx, 0x36b0
mov al, 0x36
mov dx, 0x46b0
mov al, 0x46
mov dx, 0x39b0
mov al, 0x39
mov dx, 0x18b0
mov al, 0x18
mov esi, dword [ebp - 0x6c]
call fcn.002029d0
call fcn.00202f60
add esp, 0x104
pop edi
pop esi
jmp fcn.00201670

Function at 0x202ca4
Capabilities:
Terminate process

Disassembly:
call fcn.00203067
jb 0x202cac
ret
jmp fcn.00201670

Function at 0x202dc8
Capabilities:
Terminate process

Disassembly:
push eax
push edx
push esi
mov ebx, dword [ebp - 0x84]
sub ebx, 0xe
mov esi, dword [ebx]
sub ebx, 4
shr esi, 1
jb 0x202df5
je 0x202df1
shr esi, 1
jae 0x202e16
shl esi, 2
mov esi, dword [ebp + esi]
call fcn.002029d0
jmp 0x202dd4
pop esi
pop edx
pop eax
ret
shr esi, 1
jb 0x202e27
push ebx
shl esi, 2
lea ebx, [ebp + esi]
mov eax, 1
call fcn.00201659
pop ebx
jae 0x202dd4
pop esi
pop edx
pop eax
jmp fcn.00201670
shl esi, 2
mov ecx, dword [ebp + esi]
jecxz 0x202dd4
push ecx
mov ecx, dword [ecx]
call dword [ecx + 8]
jmp 0x202dd4
lea ecx, [ebp + esi*4]
push ecx
call dword [sym.imp.OLEAUT32.DLL_VariantClear]
jmp 0x202dd4
Function at 0x202ecb
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov esi, dword [ebp - 0x88]
mov esi, dword [ebp + esi - 0x6c]
add dword [ebp - 0x88], 4
test esi, 1
je 0x202eeb
and esi, 0xfffffffe
jne 0x202ef5
xchg dword [ebx], esi
call fcn.002029d0
pop edi
pop esi
ret
call fcn.002029f8
mov edi, dword [ebx]
or edi, edi
je 0x202f05
cmp ecx, dword [edi - 4]
je 0x202f25
call fcn.0020299c
jb 0x202f35
cld
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xchg dword [ebx], edx
mov esi, edx
call fcn.002029d0
pop edi
pop esi
ret
cld
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret
xchg dword [ebx], edx
mov esi, edx
call fcn.002029d0
pop edi
pop esi
jmp fcn.00201670

Function at 0x20311c
Capabilities:
Terminate process

Disassembly:
push ebx
push ecx
push esi
push edi
mov edi, dword [ebp - 0x88]
mov esi, dword [ebp + edi - 0x6c]
call fcn.002029f8
mov ebx, ecx
push esi
mov esi, dword [ebp + edi - 0x68]
call fcn.002029f8
jecxz 0x203192
test ebx, ebx
je 0x20319a
add ebx, ecx
xchg ecx, ebx
call fcn.0020299c
jb 0x2031a7
xchg ecx, ebx
sub ebx, ecx
cld
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov ecx, ebx
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x88]
mov esi, edx
xchg dword [ebp + edi - 0x68], esi
call fcn.002029d0
mov esi, dword [ebp + edi - 0x6c]
call fcn.002029d0
add dword [ebp - 0x88], 4
pop edi
pop esi
pop ecx
pop ebx
ret
mov esi, dword [ebp + edi - 0x6c]
mov dword [ebp + edi - 0x68], esi
add dword [ebp - 0x88], 4
pop esi
pop edi
pop esi
pop ecx
pop ebx
ret
pop esi
pop edi
pop esi
pop ecx
pop ebx
jmp fcn.00201670