joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4532b0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x4532ce
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x4532c3
pop esi
ret

Function at 0x463a3f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x463a81
call fcn.00466d8e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x463a81
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x463a78
xor eax, eax
jmp 0x463a89
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00463a8f
pop edi
pop esi
pop ebx
ret 4

Function at 0x464a1a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x468638
call fcn.00456850
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00466d8e
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x464a59
call fcn.00466d8e
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x464a67
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x464a75
or eax, 0xffffffff
jmp 0x464b5d
mov ecx, esi
call fcn.00464990
mov dword [ebp - 0x14], eax
call fcn.00462083
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x464aac
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x464aac
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00462037
push dword [ebp - 0x14]
call fcn.00461b68
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00464728
cmp eax, edi
je 0x464b1f
test byte [esi + 0x24], 0x10
je 0x464aed
push 4
mov ecx, esi
pop ebx
call fcn.00461568
test ah, 1
je 0x464ae5
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00463b91
cmp dword [esi + 0x1c], edi
je 0x464b1f
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0046159c
jmp 0x464b1f
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x464b33
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x464b4c
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x464b4c
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.004649ca
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x466900
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46692e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46694c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00466866
jmp 0x46694c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46694c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00466866
test edi, edi
mov eax, edi
jne 0x466936
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
mov ecx, 0x314d0b99
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x2bd856e9
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

Function at 0x401090
Capabilities:
Hide graphical window

Disassembly:
mov ebp, esp
push esi
lea eax, [0x4032cc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov eax, dword [ebp + 4]
mov dword [0x403183], eax
xor eax, eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x4010bd
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x403183]
mov dword [ebp - 0x48], eax
mov eax, 0x402353
mov dword [ebp - 0x54], eax
mov ecx, str.secondclass
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
push 0
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
xor ecx, ecx
push ecx
push dword [0x403183]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.bananas
push eax
mov eax, str.secondclass
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403328], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403328]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x40117b
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x40116d
mov esp, ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x50686301
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x5f276691
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x295610
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 [0x2955f2], 0x100
jne 0x29562b
jmp fcn.00295849
jmp 0x295a5c
cmp dword [ebp + 0xc], 1
jne 0x295afc
call fcn.00295745
mov dword [ebx + 0x5dc], 0
lea eax, [ebx + 0x8e4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov cx, word [0x2955f2]
mov edx, dword [ebx + 0x8f4]
test cx, 0x20
jne 0x295aa7
cmp edx, 2
je 0x295ab6
test cx, 0x40
jne 0x295aa7
jmp 0x295b4d
call fcn.00295849
or dword [ebx + 0x5dc], 0x80
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
call fcn.002957dd
mov dword [ebx + 0x5f0], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x5fc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x604], eax
call fcn.00295630
jb 0x295b4d
inc word [ebx + 0x5f8]
movzx ecx, word [0x2955f0]
jecxz 0x295afc
push ecx
push 8
push esp
call dword [sym.imp.COMCTL32.DLL_InitCommonControlsEx]
pop eax
pop eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x600], eax
push ebx
call fcn.00295691
pop ebx
cmp dword [ebx + 0x600], 3
jne 0x295b1a
call fcn.00295975
cmp dword [ebx + 0x600], 0
jne 0x295b4d
mov ecx, dword [ebx + 0xdc]
call fcn.00295b5b
mov ecx, dword [ebx + 0xb8]
jecxz 0x295b3d
push ecx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov edi, dword [ebx + 0x638]
call fcn.00295696
call fcn.0029567d
movzx eax, word [ebx + 0x5f8]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x295630
Capabilities:
Allocate thread local storage

Disassembly:
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
stc
je 0x29567c
mov dword [ebx + 0x5e0], eax
mov dword [ebx + 0x5e8], 0
call fcn.0029593c
jb 0x29567c
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 0x295efc
Capabilities:
Terminate process

Disassembly:
push eax
push ecx
push esi
push edi
lea esi, [esp + 0x18]
mov ecx, dword [esi - 4]
push ecx
call fcn.00298df0
jb 0x295f32
jecxz 0x295f1f
lea esi, [esi + ecx*4 - 4]
mov eax, dword [esi]
mov byte [edi], al
sub esi, 4
inc edi
loop 0x295f15
call fcn.0029d456
pop edx
pop edi
pop esi
pop ecx
pop eax
shl edx, 2
pop dword [esp + edx]
add esp, edx
ret
call fcn.0029d454
pop edx
pop edi
pop esi
pop ecx
add esp, 4
shl edx, 2
pop dword [esp + edx]
add esp, edx
jmp fcn.00295860
Function at 0x296100
Capabilities:
Terminate process

Disassembly:
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], edi
pop dword [ebp - 0x6c]
pop edx
pop ax
test byte [ebx + 4], 4
je 0x296122
pop cx
movzx ecx, ch
add esp, 4
add esp, 8
loop 0x29611a
jmp dword [ebp - 0x6c]
mov byte [ebx + 5], 2
mov byte [ebx + 4], al
mov dword [ebx], edx
pop word [ebx + 6]
pop dword [ebx + 0x14]
movzx ecx, byte [ebx + 7]
mov esi, ecx
shl esi, 1
add esi, ecx
shl esi, 2
pop dword [ebx + esi + 0x10]
pop dword [ebx + esi + 0xc]
sub esi, 0xc
jne 0x29613f
mov eax, dword [ebx + esi + 0x1c]
sub eax, dword [ebx + esi + 0x18]
jl 0x2961b4
inc eax
dec ecx
je 0x296177
add esi, 0xc
mov dword [ebx + esi + 0x14], eax
mov eax, dword [ebx + esi + 0x1c]
sub eax, dword [ebx + esi + 0x18]
jl 0x2961b4
inc eax
mul dword [ebx + esi + 0x14]
dec ecx
ja 0x29615a
je 0x296177
jb 0x2961b4
mov dword [ebx + 8], eax
mul dword [ebx + 0x14]
jb 0x2961b4
test byte [ebx + 4], 1
je 0x29618a
mov dword [ebx + 0xc], eax
jmp 0x2961a7
push eax
call fcn.00295811
pop ecx
jb 0x2961b6
mov dword [ebx], eax
mov dword [ebx + 0xc], ecx
mov edi, eax
cld
xor eax, eax
shr ecx, 1
rep stosw word es:[edi], ax
adc cl, 0
rep stosb byte es:[edi], al
or byte [ebx + 4], 4
mov esi, dword [ebp - 0x68]
mov edi, dword [ebp - 0x64]
jmp dword [ebp - 0x6c]
mov al, 9
mov esi, dword [ebp - 0x68]
mov edi, dword [ebp - 0x64]
push dword [ebp - 0x6c]
jmp fcn.00295860

Function at 0x29622c
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
call fcn.00298ec4
jb 0x296283
mov al, byte [esi + 0xc]
test al, 0xa
jne 0x296277
test al, 1
jne 0x29624a
test word [esi + 0x2c], 2
jne 0x29627b
jmp 0x296277
push ecx
call fcn.00296cd4
mov edx, ecx
pop ecx
jb 0x296288
test word [esi + 0xe], 8
jne 0x29626a
test edx, edx
je 0x29627b
cmp byte [esi + ebx + 0x44], 0x1a
je 0x29627b
jmp 0x296277
cmp edx, 2
jb 0x29627b
cmp word [esi + ebx + 0x44], 0x1a
je 0x29627b
xor eax, eax
jmp 0x296280
mov eax, 0xffffffff
pop esi
pop ebx
ret
mov eax, 0x35
mov edx, eax
pop esi
pop ebx
mov eax, 0xffffffff
jmp fcn.00295855

Function at 0x2962c0
Capabilities:
Terminate process

Disassembly:
call fcn.002962cd
jb 0x2962c8
ret
jmp fcn.00295860
Function at 0x2976c6
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.00298e4c
call fcn.00298f02
jb 0x297772
test byte [edi + 0xc], 0x40
je 0x297776
add esp, 0x104
mov ebx, ecx
mov eax, dword [edi + 6]
mov ecx, 0x40
push eax
loop 0x297706
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.WS2_32.DLL_select]
pop edx
pop edx
cmp eax, 0xffffffff
je 0x297763
test eax, eax
je 0x297782
push 0
push ebx
push esi
push dword [edi + 6]
call dword [sym.imp.WS2_32.DLL_send]
cmp eax, 0xffffffff
je 0x297763
add esi, eax
sub ebx, eax
jg 0x29770b
and word [edi + 0x2c], 0xfffd
call fcn.0029ddce
add esp, 0x104
pop edi
pop esi
ret
call dword [sym.imp.WS2_32.DLL_WSAGetLastError]
cmp eax, 0x2734
je 0x29777a
jmp 0x29777e
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.0029ddce
add esp, 0x104
pop edi
pop esi
jmp fcn.00295860
Function at 0x297796
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.00298df0
mov ebx, ecx
jb 0x297907
mov dword [ebp - 0x6c], edi
mov ax, word [ebp - 0x46]
call fcn.00298ec4
jb 0x2978ed
test byte [esi + 0xc], 0x40
je 0x2978f1
and word [esi + 0x2c], 0xfff5
add esp, 0x104
mov eax, dword [esi + 6]
mov ecx, 0x40
push eax
loop 0x2977e3
push 0x40
mov ecx, dword [esi + 0x28]
jecxz 0x29783c
cmp ebx, ecx
ja 0x2977f3
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 0x2978b2
test word [esi + 0x2c], 8
je 0x29783c
or word [esi + 0x2c], 2
jmp 0x2978b2
test ebx, ebx
je 0x2978c9
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.WS2_32.DLL_select]
pop edx
pop edx
cmp eax, 0xffffffff
je 0x2978da
test eax, eax
jne 0x29787d
mov ecx, edi
sub ecx, dword [ebp - 0x6c]
jne 0x297896
jmp 0x2978fd
lea edx, [esi + 0x44]
push 0
push 0x10000
push edx
push dword [esi + 6]
call dword [sym.imp.WS2_32.DLL_recv]
cmp eax, 0xffffffff
je 0x2978da
mov dword [esi + 0x28], eax
cmp eax, 0x10000
je 0x2978a5
or word [esi + 0x2c], 8
test eax, eax
jne 0x2977e8
or word [esi + 0x2c], 2
test ebx, ebx
je 0x2978c9
push esi
mov ecx, edi
mov esi, dword [ebp - 0x6c]
sub ecx, esi
call fcn.00298e72
pop esi
jb 0x29790c
mov dword [ebp - 0x6c], edx
mov edx, dword [ebp - 0x6c]
call fcn.0029d456
add esp, 0x104
pop edi
pop esi
ret
call dword [sym.imp.WS2_32.DLL_WSAGetLastError]
cmp eax, 0x2734
je 0x2978f5
jmp 0x2978f9
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.00298e24
call fcn.0029d454
add esp, 0x104
pop edi
pop esi
jmp fcn.00295860

Function at 0x298117
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edx, ecx
mov esi, dword [ebp - 0x88]
mov esi, dword [ebp + esi - 0x6c]
call fcn.00298e4c
test eax, eax
jns 0x298130
add eax, ecx
test edx, edx
je 0x298170
jns 0x29813b
add edx, ecx
js 0x298170
inc edx
dec edx
add esi, edx
sub ecx, edx
jae 0x298144
xor ecx, ecx
cmp ecx, eax
jb 0x29814a
mov ecx, eax
call fcn.00298df0
jb 0x298174
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]
call fcn.00299768
mov esi, dword [ebp - 0x88]
mov dword [ebp + esi - 0x6c], edx
pop edi
pop esi
ret
xor edx, edx
jmp 0x29815e
pop edi
pop esi
jmp fcn.00295860

Function at 0x299898
Capabilities:
Terminate process

Disassembly:
call fcn.0029d577
jb 0x2998a0
ret
jmp fcn.00295860
Function at 0x299f40
Capabilities:
Terminate process

Disassembly:
fldcw word [0x295588]
mov edx, eax
call fcn.0029593c
jb 0x299f52
mov dword [eax + 0x34], edx
mov eax, edx
test eax, eax
js 0x299f59
ret
mov edx, 0x63
jmp fcn.00295855

Function at 0x29bed1
Capabilities:
Terminate process

Disassembly:
push ecx
mov ecx, 0xf
xor edx, edx
call fcn.0029bf2e
pop ecx
jb 0x29bf29
ret

Function at 0x29bf04
Capabilities:
Terminate process

Disassembly:
push ecx
mov ecx, 0xf
mov edx, 0x80000000
call fcn.0029bf2e
pop ecx
jb 0x29bf29
ret
jmp fcn.00295855

Function at 0x29c245
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [ebp - 0x88]
mov eax, dword [ebp + esi - 0x6c]
add dword [ebp - 0x88], 4
pop esi
test eax, 1
jne 0x29c265
mov dword [ebx], eax
pop edx
push eax
push edx
ret
push esi
push edi
mov esi, eax
call fcn.00298e4c
call fcn.00298df0
jb 0x29c28a
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
mov dword [ebx], edx
pop eax
push edx
push eax
ret
pop edi
pop esi
mov dword [ebx], edx
pop ebx
push edx
push ebx
jmp fcn.00295860

Function at 0x29c296
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [ebp - 0x88]
mov eax, dword [ebp + esi - 0x6c]
add dword [ebp - 0x88], 4
pop esi
test eax, 1
jne 0x29c2b6
mov dword [ebx], eax
pop edx
push eax
push edx
ret
push esi
push edi
mov esi, eax
call fcn.002996d0
call fcn.0029969c
jb 0x29c28a
cld
shr ecx, 1
rep movsd dword es:[edi], dword [esi]
adc cl, 0
rep movsw word es:[edi], word [esi]
pop edi
pop esi
mov dword [ebx], edx
pop eax
push edx
push eax
ret

Function at 0x29cf90
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 0x29cfbd
je 0x29cfb9
shr esi, 1
jae 0x29cfde
shl esi, 2
mov esi, dword [ebp + esi]
call fcn.00298e24
jmp 0x29cf9c
pop esi
pop edx
pop eax
ret
shr esi, 1
jb 0x29cfef
push ebx
shl esi, 2
lea ebx, [ebp + esi]
mov eax, 1
call fcn.002962cd
pop ebx
jae 0x29cf9c
pop esi
pop edx
pop eax
jmp fcn.00295860
shl esi, 2
mov ecx, dword [ebp + esi]
jecxz 0x29cf9c
push ecx
mov ecx, dword [ecx]
call dword [ecx + 8]
jmp 0x29cf9c
lea ecx, [ebp + esi*4]
push ecx
call dword [sym.imp.OLEAUT32.DLL_VariantClear]
jmp 0x29cf9c

Function at 0x29d0d3
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 0x29d0f3
and esi, 0xfffffffe
jne 0x29d0fd
xchg dword [ebx], esi
call fcn.00298e24
pop edi
pop esi
ret
call fcn.00298e4c
mov edi, dword [ebx]
or edi, edi
je 0x29d10d
cmp ecx, dword [edi - 4]
je 0x29d12d
call fcn.00298df0
jb 0x29d13d
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.00298e24
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.00298e24
pop edi
pop esi
jmp fcn.00295860