joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10064dee
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x10064e34
call fcn.1004f611
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10064e34
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x10064e77
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x10064e60
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x10064e60
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x10064e74
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10065d7b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1011ac70]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x10065db8
push 0x100e83f8
push 4
push eax
call fcn.1007bcdc
push eax
call fcn.1000f4fa
add esp, 0x10
jmp 0x10065dca
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10065e35
push edi
call fcn.10078f37
mov edi, dword [eax]
call fcn.10078f37
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.1007968b
add esp, 0x18
mov ebx, eax
call fcn.10078f37
cmp dword [eax], 0
je 0x10065e15
call fcn.10078f37
push dword [eax]
call fcn.1004f7b6
pop ecx
jmp 0x10065e1c
call fcn.10078f37
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x10065e35
cmp ebx, esi
jae 0x10065e35
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x10065e37
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10071fee
leave
ret
Function at 0x1006dc67
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x100d2621
call fcn.10072030
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.1004f611
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x1006dcb2
call fcn.1004f611
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x1006dcc3
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x1006dcd0
or eax, 0xffffffff
jmp 0x1006de2c
mov ecx, esi
call fcn.1006d7b9
mov dword [ebp - 0x14], eax
call fcn.1005948d
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x1006dd4e
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x1006dd4e
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x1006dd4e
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.10049225
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x1006dd4e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + pe_nt_image_headers32]
test eax, eax
je 0x1006dd4e
mov ecx, ebx
call fcn.10061bd7
test eax, eax
je 0x1006dd4e
push 0
mov ecx, ebx
call fcn.10061bf2
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.1005b19e
push dword [ebp - 0x14]
call fcn.100593e5
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.1006da6f
xor edi, edi
cmp eax, edi
je 0x1006ddab
test byte [esi + 0x3c], 0x10
je 0x1006dd95
push 4
pop edi
mov ecx, esi
call fcn.10061a71
test ax, 0x100
je 0x1006dd8b
push 5
pop edi
push edi
mov ecx, esi
call fcn.10058f56
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x1006ddab
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.10061d9c
or dword [ebp - 4], 0xffffffff
jmp 0x1006ddd6
cmp dword [ebp - 0x28], edi
je 0x1006dde4
push 1
mov ecx, ebx
call fcn.10061bf2
cmp dword [ebp - 0x2c], edi
je 0x1006ddf4
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x1006de0d
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x1006de0d
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.1006d7f3
cmp dword [esi + 0x58], edi
je 0x1006de29
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.100720d5
ret
Function at 0x1006de5d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.1004f611
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1006de94
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.1006da6f
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x1006deec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x1006df0c
cmp dword [edi + 0x54], 0
jne 0x1006df0c
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.1004f611
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.1006deb3
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8
Function at 0x10071fee
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1011ac70]
jne 0x10071ff8
repz ret
jmp fcn.1007e41c
Function at 0x10080eab
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1011b7d8]
je 0x10080ec6
inc edi
cmp edi, 0x17
jb 0x10080eb7
cmp edi, 0x17
jae 0x10081046
push ebp
push 3
call fcn.10090cf4
cmp eax, 1
pop ecx
je 0x10081012
push 3
call fcn.10090cf4
test eax, eax
pop ecx
jne 0x10080efa
cmp dword [0x10123708], 1
je 0x10081012
cmp ebx, 0xfc
je 0x10081045
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10123a98
push ebp
call fcn.1007ec55
add esp, 0xc
test eax, eax
je 0x10080f30
push esi
push esi
push esi
push esi
push esi
call fcn.10072460
add esp, 0x14
push 0x104
mov esi, 0x10123ab1
push esi
push 0
mov byte [0x10123bb5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10080f74
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1007ec55
add esp, 0xc
test eax, eax
je 0x10080f74
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10072460
add esp, 0x14
push esi
call fcn.10071a00
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10080fb9
push esi
call fcn.10071a00
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10123dac
push 0x100ea288
sub ecx, eax
push ecx
push eax
call fcn.10087881
add esp, 0x14
test eax, eax
je 0x10080fb9
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10072460
add esp, 0x14
jmp 0x10080fbb
xor esi, esi
push 0x100d52dc
push ebx
push ebp
call fcn.10087810
add esp, 0xc
test eax, eax
je 0x10080fdb
push esi
push esi
push esi
push esi
push esi
call fcn.10072460
add esp, 0x14
push dword [edi*8 + 0x1011b7dc]
push ebx
push ebp
call fcn.10087810
add esp, 0xc
test eax, eax
je 0x10080ffd
push esi
push esi
push esi
push esi
push esi
call fcn.10072460
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10090b37
add esp, 0xc
jmp 0x10081045
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10081045
cmp ebp, 0xffffffff
je 0x10081045
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1011b7dc]
push dword [esi]
call fcn.10071a00
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10090b37
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1007ddae
xor ebx, ebx
cmp dword [0x10124154], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10090c0d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10090ced
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10090ced
push eax
call fcn.1007dd40
mov dword [esp], 0x100f6860
push edi
mov dword [0x10124154], eax
call esi
push eax
call fcn.1007dd40
mov dword [esp], 0x100f684c
push edi
mov dword [0x10124158], eax
call esi
push eax
call fcn.1007dd40
mov dword [0x1012415c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1007aae4
test eax, eax
pop ecx
pop ecx
je 0x10090bdb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10072460
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10090c0d
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1007dd40
cmp eax, ebx
pop ecx
mov dword [0x10124164], eax
je 0x10090c0d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1007dd40
pop ecx
mov dword [0x10124160], eax
mov eax, dword [0x10124160]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10090c92
cmp dword [0x10124164], ecx
je 0x10090c92
push eax
call fcn.1007ddb7
push dword [0x10124164]
mov esi, eax
call fcn.1007ddb7
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10090c92
cmp edi, ebx
je 0x10090c92
call esi
cmp eax, ebx
je 0x10090c5f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10090c5f
test byte [ebp - 0x18], 1
jne 0x10090c92
lea eax, [ebp - 0x10]
push eax
call fcn.1007ab1b
test eax, eax
pop ecx
je 0x10090c7a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10072460
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10090c89
or dword [ebp + 0x10], 0x200000
jmp 0x10090ccd
or dword [ebp + 0x10], 0x40000
jmp 0x10090ccd
mov eax, dword [0x10124158]
cmp eax, dword [ebp - 8]
je 0x10090ccd
push eax
call fcn.1007ddb7
cmp eax, ebx
pop ecx
je 0x10090ccd
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10090ccd
mov eax, dword [0x1012415c]
cmp eax, dword [ebp - 8]
je 0x10090ccd
push eax
call fcn.1007ddb7
cmp eax, ebx
pop ecx
je 0x10090ccd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10124154]
call fcn.1007ddb7
cmp eax, ebx
pop ecx
je 0x10090ced
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10090cef
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1009c870
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esi + 0x2c]
push edi
lea esp, [esp]
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea edx, [ecx + ebp - 0x106]
cmp eax, edx
mov dword [esp + 0xc], edi
jb 0x1009c900
mov eax, dword [esi + 0x38]
push ebp
lea ecx, [eax + ebp]
push ecx
push eax
call fcn.10074d40
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], ebp
sub dword [esi + 0x6c], ebp
add esp, 0xc
sub dword [esi + 0x5c], ebp
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x1009c8cf
sub eax, ebp
jmp 0x1009c8d1
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x1009c8c0
mov ecx, dword [esi + 0x40]
mov edx, ebp
lea ecx, [ecx + ebp*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x1009c8f0
sub eax, ebp
jmp 0x1009c8f2
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x1009c8e1
add edi, ebp
mov dword [esp + 0xc], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x1009ca2f
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [esp + 0xc]
mov ebx, ecx
cmp ebx, edx
mov dword [esp + 0x10], eax
jbe 0x1009c928
mov ebx, edx
test ebx, ebx
je 0x1009c979
mov edx, dword [edi + 0x1c]
sub ecx, ebx
mov dword [edi + 4], ecx
mov ecx, dword [edx + 0x18]
cmp ecx, 1
jne 0x1009c94b
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
push eax
push ecx
call fcn.1009dd60
jmp 0x1009c95d
cmp ecx, 2
jne 0x1009c967
mov edx, dword [edi]
mov eax, dword [edi + 0x30]
push ebx
push edx
push eax
call fcn.1009acd0
mov dword [edi + 0x30], eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [edi]
push ebx
push ecx
push eax
call fcn.10074d40
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x1009c9a3
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
add edx, eax
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x1009c9b7
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x1009c880
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x1009ca2f
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x1009c9fe
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x1009c9de
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.10072750
add esp, 0xc
add ebx, edi
pop edi
pop ebp
mov dword [esi + 0x16c0], ebx
pop ebx
add esp, 8
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x1009ca2f
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x1009ca18
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call fcn.10072750
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x1009f760
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x1011ac70]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1009f7b0
mov ax, word [esp]
cmp al, 2
jne 0x1009f7aa
cmp ah, al
jne 0x1009f7aa
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.10071fee
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.10071fee
add esp, 0x194
ret

Function at 0x100a0ac0
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x100a0ae2
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x100a0ad6
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x100a0b12
cmp dword [esi + 8], 0
jne 0x100a0b05
mov ecx, dword [eax + 8]
push 0x100de17c
push ecx
call fcn.1007903f
add esp, 8
test eax, eax
mov dword [esi + 8], eax
jne 0x100a0b05
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.1007931d
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100a0b34
mov eax, dword [esi + 8]
test eax, eax
je 0x100a0b2e
push eax
call fcn.100728fd
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x100abab0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x100abae2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x100abc30
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x100abc4b
mov edx, dword [esi + 0xf4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x100abc7f
cmp eax, 2
jg 0x100abc7f
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x100fd3d8]
push 2
push edx
call fcn.10072ad8
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.10072ad8
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x130]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebx], 0
jne 0x100ac00d
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x100abfe4
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.100b02f0
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.100abe10
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x856c], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x100ac7d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x1011ac70]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
mov ebp, dword [esp + 0x118]
cmp dword [ebp + 0x19c], 0
push esi
push edi
mov edi, dword [ebp]
mov dword [esp + 0x14], edi
jne 0x100ac90b
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x100ac84c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.100b02f0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.100abe10
add esp, 0x18
jmp 0x100ac914
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x9c]
push eax
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x100ac88c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.100b02f0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.100abe10
add esp, 0x18
jmp 0x100ac914
lea ebx, [ebp + 0xcc]
lea edi, [ebp + 0x9e]
lea esi, [esp + 0x18]
call fcn.100ac790
test eax, eax
jne 0x100ac8ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.100b02f0
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.100abe10
add esp, 0x18
jmp 0x100ac914
lea ebx, [ebp + 0x100]
lea edi, [ebp + 0xd0]
lea esi, [esp + 0x98]
call fcn.100ac790
test eax, eax
jne 0x100ac90b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.100b02f0
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.100abe10
add esp, 0x18
jmp 0x100ac914
push ebp
call fcn.100ac730
add esp, 4
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10071fee
add esp, 0x10c
ret

Function at 0x100ac930
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x100ac973
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.100b02f0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.100abd80
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.100abd80
add esp, 8
pop esi
pop ecx
ret

Function at 0x100ac990
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x1c], 0x4020
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x100ac9d9
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x100ac9f1
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 0xc
ret
Function at 0x100aca00
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x530]
cmp eax, 0xffffffff
je 0x100aca59
mov ecx, dword [ecx + 0x524]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x100aca59
mov ecx, dword [esp + 8]
test ecx, ecx
mov eax, dword [eax]
je 0x100aca2c
mov dword [ecx], eax
cmp dword [eax + 0x148], 0
push esi
mov esi, dword [eax + 0x130]
jne 0x100aca50
push 2
push 1
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x100aca55
or eax, 0xffffffff
pop esi
ret
mov eax, esi
pop esi
ret
or eax, 0xffffffff
ret
Function at 0x100ae830
Capabilities:
Resolve dns

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x1c], ecx
je 0x100ae8d4
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x100ae8a5
cmp word [ecx + 0xa], 4
jne 0x100ae8a5
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x100ae8a5
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea esp, [esp]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebx
push ebp
call fcn.100ae7c0
test eax, eax
mov dword [esi], eax
je 0x100ae8c8
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x100ae880
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.10087881
add esp, 0x10
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret 0x18
pop edi
pop ebp
pop ebx
mov eax, 8
pop esi
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x100ae8e4.11001
jmp dword [eax*4 + 0x100ae908]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18