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

Disassembly:
push 0x24
mov eax, 0x10182c70
call fcn.100854a0
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.10062a91
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x100810a8
call fcn.10062a91
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 0x100810b9
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x100810c6
or eax, 0xffffffff
jmp 0x10081222
mov ecx, esi
call fcn.10080baf
mov dword [ebp - 0x14], eax
call fcn.1006c8ea
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x10081144
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x10081144
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x10081144
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.10053962
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x10081144
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + pe_nt_image_headers32]
test eax, eax
je 0x10081144
mov ecx, ebx
call fcn.10075017
test eax, eax
je 0x10081144
push 0
mov ecx, ebx
call fcn.10075032
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.1006e603
push dword [ebp - 0x14]
call fcn.1006c842
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.10080e65
xor edi, edi
cmp eax, edi
je 0x100811a1
test byte [esi + 0x3c], 0x10
je 0x1008118b
push 4
pop edi
mov ecx, esi
call fcn.10074eb1
test ax, 0x100
je 0x10081181
push 5
pop edi
push edi
mov ecx, esi
call fcn.1006c3b3
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x100811a1
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.100751dc
or dword [ebp - 4], 0xffffffff
jmp 0x100811cc
cmp dword [ebp - 0x28], edi
je 0x100811da
push 1
mov ecx, ebx
call fcn.10075032
cmp dword [ebp - 0x2c], edi
je 0x100811ea
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x10081203
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x10081203
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.10080be9
cmp dword [esi + 0x58], edi
je 0x1008121f
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.10085545
ret
Function at 0x10081253
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.10062a91
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 0x1008128a
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.10080e65
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 0x100812e2
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 0x10081302
cmp dword [edi + 0x54], 0
jne 0x10081302
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.10062a91
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.100812a9
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 0x1008545e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10207390]
jne 0x10085468
repz ret
jmp fcn.10091bbc
Function at 0x1008c830
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x1008c86d
cmp dword [ebp + 0x14], edi
je 0x1008c86d
cmp ecx, edi
jne 0x1008c874
call fcn.1008c6b7
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.100859cc
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x1008c888
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x1008c8a9
cmp ebx, 0xffffffff
je 0x1008c898
push ebx
push edi
push ecx
call fcn.10085bc0
add esp, 0xc
cmp esi, edi
je 0x1008c855
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x1008c855
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x1008c8c5
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x1008c8cc
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x1008c9bd
test word [esi + 0xc], 0x10c
je 0x1008c920
mov eax, dword [esi + 4]
test eax, eax
je 0x1008c920
jl 0x1008ca1e
cmp ebx, eax
mov edi, ebx
jb 0x1008c8f1
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x1008c9c5
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.10084fc1
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x1008c9b5
cmp ebx, dword [ebp - 0xc]
jb 0x1008c98d
cmp dword [ebp - 0xc], 0
je 0x1008c94a
mov ecx, accept
xor edx, edx
cmp ebx, ecx
jbe 0x1008c93f
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x1008c946
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x1008c955
mov eax, accept
cmp ebx, eax
ja 0x1008c955
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x1008c9f1
push eax
push dword [ebp - 8]
push esi
call fcn.100926b5
pop ecx
push eax
call fcn.1009d591
add esp, 0xc
test eax, eax
je 0x1008ca30
cmp eax, 0xffffffff
je 0x1008ca1e
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x1008c9b5
push esi
call fcn.1009ceb0
cmp eax, 0xffffffff
pop ecx
je 0x1008ca22
cmp dword [ebp - 4], 0
je 0x1008c9f1
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x1008c8d4
mov eax, dword [ebp + 0x14]
jmp 0x1008c86f
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x1008c9dc
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.10085bc0
add esp, 0xc
call fcn.1008c6b7
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x1008c865
cmp dword [ebp + 0xc], 0xffffffff
je 0x1008ca07
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.10085bc0
add esp, 0xc
call fcn.1008c6b7
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x1008c865
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x1008c86f
or dword [esi + 0xc], 0x10
jmp 0x1008ca22
Function at 0x100945fc
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 + 0x10207ee8]
je 0x10094617
inc edi
cmp edi, 0x17
jb 0x10094608
cmp edi, 0x17
jae 0x10094797
push ebp
push 3
call fcn.100a5530
cmp eax, 1
pop ecx
je 0x10094763
push 3
call fcn.100a5530
test eax, eax
pop ecx
jne 0x1009464b
cmp dword [0x102198c0], 1
je 0x10094763
cmp ebx, 0xfc
je 0x10094796
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10219c50
push ebp
call fcn.100923f5
add esp, 0xc
test eax, eax
je 0x10094681
push esi
push esi
push esi
push esi
push esi
call fcn.100858d0
add esp, 0x14
push 0x104
mov esi, 0x10219c69
push esi
push 0
mov byte [0x10219d6d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100946c5
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.100923f5
add esp, 0xc
test eax, eax
je 0x100946c5
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.100858d0
add esp, 0x14
push esi
call fcn.10084e70
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1009470a
push esi
call fcn.10084e70
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10219f64
push 0x1019d408
sub ecx, eax
push ecx
push eax
call fcn.1009b2e1
add esp, 0x14
test eax, eax
je 0x1009470a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.100858d0
add esp, 0x14
jmp 0x1009470c
xor esi, esi
push 0x10186368
push ebx
push ebp
call fcn.1009b270
add esp, 0xc
test eax, eax
je 0x1009472c
push esi
push esi
push esi
push esi
push esi
call fcn.100858d0
add esp, 0x14
push dword [edi*8 + 0x10207eec]
push ebx
push ebp
call fcn.1009b270
add esp, 0xc
test eax, eax
je 0x1009474e
push esi
push esi
push esi
push esi
push esi
call fcn.100858d0
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.100a5373
add esp, 0xc
jmp 0x10094796
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10094796
cmp ebp, 0xffffffff
je 0x10094796
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x10207eec]
push dword [esi]
call fcn.10084e70
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 0x100a5373
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10091550
xor ebx, ebx
cmp dword [0x1021a30c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x100a5449
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100a5529
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x101a99f8
push edi
call esi
cmp eax, ebx
je 0x100a5529
push eax
call fcn.100914e2
mov dword [esp], 0x101a99e8
push edi
mov dword [0x1021a30c], eax
call esi
push eax
call fcn.100914e2
mov dword [esp], 0x101a99d4
push edi
mov dword [0x1021a310], eax
call esi
push eax
call fcn.100914e2
mov dword [0x1021a314], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1008e234
test eax, eax
pop ecx
pop ecx
je 0x100a5417
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100858d0
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x100a5449
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.100914e2
cmp eax, ebx
pop ecx
mov dword [0x1021a31c], eax
je 0x100a5449
push 0x101a99a0
push edi
call esi
push eax
call fcn.100914e2
pop ecx
mov dword [0x1021a318], eax
mov eax, dword [0x1021a318]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x100a54ce
cmp dword [0x1021a31c], ecx
je 0x100a54ce
push eax
call fcn.10091559
push dword [0x1021a31c]
mov esi, eax
call fcn.10091559
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x100a54ce
cmp edi, ebx
je 0x100a54ce
call esi
cmp eax, ebx
je 0x100a549b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100a549b
test byte [ebp - 0x18], 1
jne 0x100a54ce
lea eax, [ebp - 0x10]
push eax
call fcn.1008e26b
test eax, eax
pop ecx
je 0x100a54b6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100858d0
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x100a54c5
or dword [ebp + 0x10], 0x200000
jmp 0x100a5509
or dword [ebp + 0x10], 0x40000
jmp 0x100a5509
mov eax, dword [0x1021a310]
cmp eax, dword [ebp - 8]
je 0x100a5509
push eax
call fcn.10091559
cmp eax, ebx
pop ecx
je 0x100a5509
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100a5509
mov eax, dword [0x1021a314]
cmp eax, dword [ebp - 8]
je 0x100a5509
push eax
call fcn.10091559
cmp eax, ebx
pop ecx
je 0x100a5509
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1021a30c]
call fcn.10091559
cmp eax, ebx
pop ecx
je 0x100a5529
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100a552b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100b1430
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 0x100b14c0
mov eax, dword [esi + 0x38]
push ebp
lea ecx, [eax + ebp]
push ecx
push eax
call fcn.10088150
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 0x100b148f
sub eax, ebp
jmp 0x100b1491
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x100b1480
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 0x100b14b0
sub eax, ebp
jmp 0x100b14b2
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x100b14a1
add edi, ebp
mov dword [esp + 0xc], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x100b15ef
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 0x100b14e8
mov ebx, edx
test ebx, ebx
je 0x100b1539
mov edx, dword [edi + 0x1c]
sub ecx, ebx
mov dword [edi + 4], ecx
mov ecx, dword [edx + 0x18]
cmp ecx, 1
jne 0x100b150b
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
push eax
push ecx
call fcn.100b2920
jmp 0x100b151d
cmp ecx, 2
jne 0x100b1527
mov edx, dword [edi]
mov eax, dword [edi + 0x30]
push ebx
push edx
push eax
call fcn.100af890
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.10088150
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 0x100b1563
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 0x100b1577
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x100b1440
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x100b15ef
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x100b15be
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x100b159e
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.10085bc0
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 0x100b15ef
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x100b15d8
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call fcn.10085bc0
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x100b4320
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x10207390]
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 0x100b4372
mov eax, dword [esp]
cmp al, 2
jne 0x100b436c
shr eax, 8
cmp al, 2
jne 0x100b436c
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.1008545e
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.1008545e
add esp, 0x194
ret

Function at 0x100b5770
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x100b5792
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x100b5786
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x100b57c2
cmp dword [esi + 8], 0
jne 0x100b57b5
mov ecx, dword [eax + 8]
push 0x1018fa8c
push ecx
call fcn.1008c7bf
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x100b57b5
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.1008cacc
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100b57e4
mov eax, dword [esi + 8]
test eax, eax
je 0x100b57de
push eax
call fcn.10085d6d
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 0x100c0e20
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 0x100c0e52
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 0x100c0fa0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x100c0fbb
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 0x100c0fef
cmp eax, 2
jg 0x100c0fef
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x101b05a8]
push 2
push edx
call fcn.10085f48
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.10085f48
add esp, 0x20
xor eax, eax
ret

Function at 0x100c1300
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
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x100c137d
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x100c1354
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.100c5610
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.100c1180
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 0x100c1b50
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x10207390]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
mov ebp, dword [esp + 0x118]
cmp dword [ebp + 0x1bc], 0
push esi
push edi
mov edi, dword [ebp]
mov dword [esp + 0x14], edi
jne 0x100c1c8b
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 0x100c1bcc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.100c5610
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.100c1180
add esp, 0x18
jmp 0x100c1c94
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 0x100c1c0c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.100c5610
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.100c1180
add esp, 0x18
jmp 0x100c1c94
lea ebx, [ebp + 0xcc]
lea edi, [ebp + 0x9e]
lea esi, [esp + 0x18]
call fcn.100c1b10
test eax, eax
jne 0x100c1c4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.100c5610
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.100c1180
add esp, 0x18
jmp 0x100c1c94
lea ebx, [ebp + 0x100]
lea edi, [ebp + 0xd0]
lea esi, [esp + 0x98]
call fcn.100c1b10
test eax, eax
jne 0x100c1c8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.100c5610
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.100c1180
add esp, 0x18
jmp 0x100c1c94
push ebp
call fcn.100c1ab0
add esp, 4
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1008545e
add esp, 0x10c
ret

Function at 0x100c1cb0
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 0x100c1cf3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.100c5610
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.100c10f0
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.100c10f0
add esp, 8
pop esi
pop ecx
ret

Function at 0x100c1d10
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 0x100c1d59
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x100c1d71
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 0x100c1d80
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x530]
cmp eax, 0xffffffff
je 0x100c1de4
mov ecx, dword [ecx + 0x524]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x100c1de4
mov ecx, dword [esp + 8]
mov eax, dword [eax]
test ecx, ecx
je 0x100c1dac
mov dword [ecx], eax
cmp dword [eax + 0x148], 0
push esi
mov esi, dword [eax + 0x130]
je 0x100c1dce
push eax
call fcn.100b6e10
add esp, 4
test eax, eax
jne 0x100c1de0
or eax, 0xffffffff
pop esi
ret
push 2
push 1
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x100c1dc5
mov eax, esi
pop esi
ret
or eax, 0xffffffff
ret
Function at 0x100c3b40
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
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x100c3be4
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x100c3bb5
cmp word [ecx + 0xa], 4
jne 0x100c3bb5
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x100c3bb5
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.100c3ad0
mov dword [esi], eax
test eax, eax
je 0x100c3bd8
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x100c3b90
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.1009b2e1
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.0x100c3bf4.11001
jmp dword [eax*4 + 0x100c3c18]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18