joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a5718
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4a572f
add esp, 0xfffffff0
call fcn.004052c4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0043aef8
mov eax, dword [0x4b1ef4]
cmp byte [eax], 0
jne 0x4a575c
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x4b2130]
cmp word [eax + 2], 0
jne 0x4a5776
mov eax, dword [0x4b2130]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004a7810
mov eax, dword [0x4b2204]
cmp word [eax + 2], 0
jne 0x4a5790
mov eax, dword [0x4b2204]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004a7a20
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x445738]
call fcn.0044a740
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4a7fd0
mov dl, 1
mov eax, dword [0x424578]
call fcn.00404d78
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x424578]
call fcn.00404d78
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x448dd0]
call fcn.00451538
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4a5970
mov eax, dword [0x4b2030]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.004519cc
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4a82b8
mov dl, 1
mov eax, dword [0x424578]
call fcn.00404d78
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x4b2030]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.004119dc
test eax, eax
je 0x4a58a1
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.004117c0
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.004119c0
test eax, eax
je 0x4a58b9
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00406a20
push ebx
push 0x4a71e0
call fcn.0049b428
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x4b1ef4]
cmp byte [eax], 0
jne 0x4a590a
mov eax, ebx
call fcn.004a5ae4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004a84e4
mov eax, ebx
call fcn.004a9118
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4a5967
call fcn.0040531c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a5db8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4a5e5a
cmp dword [ebx + 0x94], 0
jne 0x4a5e54
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4a5d04
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4a5e54
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x4a5e1a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4a5e54
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0042f34c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4a5e29
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4a6078
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4b8280]
cmp dword [eax + 0x170], 0
je 0x4a61dd
test bl, bl
jne 0x4a612b
cmp dword [esi + 0x9c], 0
jne 0x4a6120
mov eax, esi
call fcn.004a8f68
push eax
push 0x4a5f84
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4a60f1
mov eax, dword [0x4b8280]
cmp byte [eax + 0xd3], 0
je 0x4a60f1
mov eax, dword [esi + 0xd8]
call fcn.00407e3c
mov edi, eax
cmp edi, 0
jl 0x4a60f1
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4a60da
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4a6120
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0042f34c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4a6100
inc dword [esi + 0x9c]
jmp 0x4a61dd
cmp dword [esi + 0x9c], 0
jle 0x4a61dd
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4a61dd
cmp dword [esi + 0x44], 0
je 0x4a6188
mov eax, dword [0x4b8280]
cmp byte [eax + 0xd3], 0
je 0x4a6188
mov eax, dword [esi + 0xd8]
call fcn.00407e3c
mov edi, eax
cmp edi, 0
jl 0x4a6188
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4a6171
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4a61b7
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0042f34c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4a6197
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x499300]
call fcn.00407ffc
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4a6e2c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4a6e97
cmp byte [ebx + 0xd3], 0
jne 0x4a6e97
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406974
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4a6e84
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4a6ea4
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406838
jmp 0x4a6ea4
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406838
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4a86cc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4a873a
mov eax, esi
call fcn.00480cf8
test al, al
je 0x4a873a
mov eax, dword [ebx + 0x84]
call fcn.0048094c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4a873a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4a872e
push 0
mov eax, dword [ebx + 0x84]
call fcn.0048094c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00477920
jmp 0x4a873a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004a8504
pop esi
pop ebx
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40701c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x407028
push 0x407024
push 0x407020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x407028]
push dword [0x407024]
push dword [0x407020]
mov dword [0x407014], esp
call fcn.004014df
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x4033fa
Capabilities:
Delete directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc44
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
push esi
xor esi, esi
cmp dword [0x887da4], 0x594
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
jne 0x40343f
push 0x402b50
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
push 0x402b70
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov eax, dword [0x422d28]
mov edi, dword [0x422d2c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
call fcn.004033f3
mov eax, dword [0x422d30]
add dword [ebp - 0x14], 0x23f
mov ebx, dword [0x422d34]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, dword [ebp - 0xc]
mov ecx, eax
shl ecx, 4
cmp dword [0x887da4], 0xc
mov dword [ebp - 4], ecx
jne 0x4034dc
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x444]
push eax
push esi
push 0x402b94
push 0x402b9c
push 0x402ba4
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push esi
lea eax, [ebp - 0x844]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x28]
push eax
push esi
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
add dword [ebp - 4], ecx
mov ecx, dword [0x887da4]
cmp ecx, 0xfa9
jne 0x4034fa
mov dword [0x887da0], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x403508
mov dword [0x860f3c], esi
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x10]
shr eax, cl
mov dword [0x887d9c], 0xf4ea3dee
add eax, ebx
mov ecx, eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0x887da4], 0x213
mov dword [ebp - 0x18], ecx
jne 0x403547
push esi
push 0x402bc8
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x18]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
cmp dword [0x887da4], 0xc
jne 0x403590
lea eax, [ebp - 0x18]
push eax
push esi
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_BackupWrite]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PrepareTape]
push esi
lea eax, [ebp - 0xc44]
push eax
push 0x402c40
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax]
mov ecx, dword [ebp - 0x10]
shr eax, cl
add eax, edi
xor eax, edx
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
call fcn.004033ec
dec dword [ebp - 0x1c]
jne 0x403474
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x4035e0
Capabilities:
Create pipe
Get common file path
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x887da4]
mov ecx, dword [0x860f40]
sub esp, 0xc34
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x4036d9
mov ebx, ecx
mov dword [ebp - 4], eax
cmp dword [0x887da4], 0x959
jne 0x4036c7
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
xor eax, eax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
push esi
push esi
lea eax, [ebp - 0xc30]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402c04
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0x402cec
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402d08
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InitializeSListHead]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call fcn.004033fa
add ebx, 8
dec dword [ebp - 4]
jne 0x403609
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40555b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4224b4]
jne 0x405565
repz ret
jmp fcn.00408dcc

Function at 0x40abeb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406b76
and dword [ebp - 4], 0
cmp dword [0x426828], 0
mov ebx, eax
jne 0x40ac9c
push 0x4021bc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ad4d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4021b0
push edi
call esi
test eax, eax
je 0x40ad4d
push eax
call fcn.00406b04
mov dword [esp], 0x4021a0
push edi
mov dword [0x426828], eax
call esi
push eax
call fcn.00406b04
mov dword [esp], 0x40218c
push edi
mov dword [0x42682c], eax
call esi
push eax
call fcn.00406b04
mov dword [esp], 0x402170
push edi
mov dword [0x426830], eax
call esi
push eax
call fcn.00406b04
pop ecx
mov dword [0x426838], eax
test eax, eax
je 0x40ac9c
push 0x402158
push edi
call esi
push eax
call fcn.00406b04
pop ecx
mov dword [0x426834], eax
mov eax, dword [0x426834]
cmp eax, ebx
je 0x40acf4
cmp dword [0x426838], ebx
je 0x40acf4
push eax
call fcn.00406b7f
push dword [0x426838]
mov esi, eax
call fcn.00406b7f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40acf4
test edi, edi
je 0x40acf4
call esi
test eax, eax
je 0x40aceb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40aceb
test byte [ebp - 0xc], 1
jne 0x40acf4
or dword [ebp + 0x10], 0x200000
jmp 0x40ad2d
mov eax, dword [0x42682c]
cmp eax, ebx
je 0x40ad2d
push eax
call fcn.00406b7f
pop ecx
test eax, eax
je 0x40ad2d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ad2d
mov eax, dword [0x426830]
cmp eax, ebx
je 0x40ad2d
push eax
call fcn.00406b7f
pop ecx
test eax, eax
je 0x40ad2d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x426828]
call fcn.00406b7f
pop ecx
test eax, eax
je 0x40ad4d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ad4f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003f00
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10135d70
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x10195170]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
cmp dword [esi + 0x1c], 0
mov dword [ebp - 0x1ac], esi
mov dword [esi + 0x14], 0
ja 0x10003fa8
push 0x190
lea eax, [ebp - 0x1a4]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.10021510
add esp, 0xc
lea eax, [ebp - 0x1a4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10003f94
push 0x1018d0cc
lea eax, [ebp - 0x1b0]
mov dword [ebp - 0x1b0], 0
push eax
call fcn.10020a35
mov eax, dword [ebp - 0x1a4]
cmp al, 1
jne 0x10003fc4
shr eax, 8
cmp al, 1
jne 0x10003fc4
inc dword [esi + 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10020a26
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0x1018d0cc
lea eax, [ebp - 0x1a8]
mov dword [ebp - 0x1a8], 0
push eax
call fcn.10020a35
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x1ac]
mov dword [ecx + 0x14], eax
mov eax, 0x10003fa8
ret
Function at 0x10004260
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10135da0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10195170]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1000440c
mov esi, dword [ebp + 0xc]
test esi, esi
jle 0x1000440c
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x1000440c
cmp dword [eax + 0x28], 0
lea edx, [eax + 0x28]
mov dword [eax + 0x14], 0
mov dword [ebp - 4], 0
jbe 0x100042f9
push 4
push edx
push 0x1006
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x100042f6
push 0x1018d0cc
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
call fcn.10020a35
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x10], 0
je 0x10004339
push 0
push esi
push ebx
push dword [eax + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
cmp esi, eax
je 0x100043b4
push 0x1018d0cc
test eax, eax
jne 0x10004329
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10020a35
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
call fcn.10020a35
mov edx, 0x400
mov edi, edi
cmp esi, 0x400
mov edi, esi
push 0
cmovg edi, edx
push edi
push ebx
push dword [eax + 0xc]
sub esi, edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jns 0x100043e3
call fcn.100200f9
cmp dword [eax], 0xb
je 0x100043ca
call fcn.100200f9
cmp dword [eax], 4
je 0x10004398
call fcn.100200f9
cmp dword [eax], 0x8c
je 0x10004398
push 0x1018d0cc
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
call fcn.10020a35
xor eax, eax
sub edi, eax
add ebx, eax
push 1
add esi, edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x14]
mov edx, 0x400
test esi, esi
jg 0x10004340
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test esi, esi
jle 0x100043b4
push 0x1018d0cc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
call fcn.10020a35
jne 0x1000439a
push 0x1018d0cc
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
call fcn.10020a35
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x14], eax
mov eax, 0x1000440c
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10004430
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10135dc0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10195170]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x100045d4
mov esi, dword [ebp + 0xc]
test esi, esi
jle 0x100045d4
mov eax, dword [edi + 0xc]
test eax, eax
je 0x100045d4
cmp dword [edi + 0x24], 0
lea edx, [edi + 0x24]
mov dword [edi + 0x14], 0
mov dword [ebp - 4], 0
jbe 0x100044c9
push 4
push edx
push 0x1005
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x100044c6
push 0x1018d0cc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
call fcn.10020a35
mov ecx, dword [ebp + 8]
cmp byte [edi + 0x10], 0
mov ebx, ecx
je 0x1000450b
push 0
push esi
push ecx
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_send]
cmp esi, eax
je 0x1000457c
push 0x1018d0cc
test eax, eax
jne 0x100044fb
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.10020a35
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
call fcn.10020a35
mov edx, 0x400
cmp esi, 0x400
mov eax, esi
push 0
cmovg eax, edx
push eax
push ecx
push dword [edi + 0xc]
sub esi, eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x100045ab
call fcn.100200f9
cmp dword [eax], 0xb
je 0x10004592
call fcn.100200f9
cmp dword [eax], 4
je 0x10004564
call fcn.100200f9
cmp dword [eax], 0x8c
je 0x10004564
push 0x1018d0cc
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
call fcn.10020a35
xor eax, eax
push 1
add ebx, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
mov edx, 0x400
test esi, esi
jg 0x10004510
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test esi, esi
jle 0x1000457c
push 0x1018d0cc
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
call fcn.10020a35
jne 0x10004566
push 0x1018d0cc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
call fcn.10020a35
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x14], eax
mov eax, 0x100045d4
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10004810
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 0x10004825
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10004864
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 0x10004860
lea ebx, [ebx]
cmp esi, edx
jae 0x10004864
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x10004850
cmp esi, edx
jb 0x10004869
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x100057e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10135f0a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x10195170]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.1001e7de
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x10005886
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.10021baa
push 0x1018d448
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.10020a35
push edi
push esi
call fcn.1001ece3
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10020a26
mov esp, ebp
pop ebp
ret 4

Function at 0x10007810
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x10195170]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, 0x10624dd3
imul ecx
mov dword [ebp - 0x214], 0
sar edx, 6
mov eax, edx
mov dword [ebp - 0x110], 0
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x318], 1
mov dword [ebp - 0xc], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
cmp byte [ebp + 0xc], 0
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x314], eax
je 0x1000788a
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], 1
jmp 0x1000789a
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x110], 1
lea ecx, [ebp - 0xc]
inc eax
push ecx
lea ecx, [ebp - 0x318]
push ecx
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x214]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10020a26
mov esp, ebp
pop ebp
ret 0xc