joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x92e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0092e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x92e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x92e06a
add dl, dl
jne 0x92e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x92e0dc
xor eax, eax
add dl, dl
jne 0x92e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x92e17d
add dl, dl
jne 0x92e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x92e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x92e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x92e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x92e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x92e075
mov eax, 1
add dl, dl
jne 0x92e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x92e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x92e0e1
sub eax, ebx
mov ebx, 1
jne 0x92e128
mov ecx, 1
add dl, dl
jne 0x92e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x92e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x92e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x92e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x92e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x92e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x92e136
cmp eax, 0x7d00
jae 0x92e16d
cmp eax, 0x500
jb 0x92e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x92e075
cmp eax, 0x7f
ja 0x92e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x92e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x92e19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x92e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x100014cf
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x20]
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [esi], eax
mov ecx, dword [ecx]
cmp ecx, dword [ebp + 0x10]
je 0x1000162d
mov eax, ecx
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x1c]
xor ebx, ebx
inc ebx
mov edi, 0x3ff
mov ecx, eax
cmp dword [esi], edx
je 0x1000162d
mov edx, dword [ebp + 8]
movzx ecx, word [eax]
mov eax, ecx
mov byte [ebp + 0x23], 0
movzx edx, word [edx]
cmp bx, dx
jae 0x1000154d
lea eax, [ecx + 0x2400]
cmp ax, di
ja 0x1000163c
mov eax, edx
lea ebx, [ecx - 0xdc00]
shl eax, 0xa
or ebx, eax
mov cl, byte [ebp + 0x23]
cmp ebx, 0x80
jae 0x1000156a
mov dl, bl
xor edi, edi
jmp 0x1000159a
mov ebx, eax
lea eax, [ecx + 0x2800]
cmp ax, di
ja 0x1000153c
add ebx, 0xffff2840
mov cl, 1
shl ebx, 0xa
mov byte [ebp + 0x23], cl
jmp 0x1000153f
mov edx, ebx
cmp ebx, 0x800
jae 0x1000157f
shr edx, 6
xor edi, edi
or dl, 0xc0
inc edi
jmp 0x1000159a
cmp ebx, 0x10000
jae 0x10001591
shr edx, 0xc
or dl, 0xe0
push 2
jmp 0x10001599
shr edx, 0x12
or dl, 0xf0
push 3
pop edi
movzx eax, cl
mov ecx, dword [ebp - 4]
xor eax, 1
add eax, eax
cmp edi, 3
cmovb eax, edi
mov dword [ebp - 8], eax
inc eax
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x1c]
sub eax, dword [esi]
cmp eax, dword [ebp + 0x18]
jl 0x1000162d
mov eax, ecx
mov ecx, dword [ebp + 0x14]
add eax, 2
cmp byte [ebp + 0x23], 0
mov dword [ecx], eax
jne 0x100015d1
cmp edi, 3
jae 0x100015dc
mov eax, dword [esi]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [ebp - 8]
jmp 0x100015df
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x10001604
imul ecx, edi, 6
sub ecx, 6
mov edx, ebx
dec eax
shr edx, cl
mov dword [ebp + 0x18], eax
and dl, 0x3f
mov eax, dword [esi]
or dl, 0x80
mov byte [eax], dl
inc dword [esi]
mov eax, dword [ebp + 0x18]
test eax, eax
jg 0x100015e6
xor ecx, ecx
shr ebx, 0xa
inc ecx
movzx eax, bx
cmp byte [ebp + 0x23], 0
cmovne ecx, eax
mov eax, dword [ebp + 8]
mov word [eax], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov eax, ecx
mov dword [ebp - 4], eax
cmp ecx, dword [ebp + 0x10]
jne 0x100014f7
xor eax, eax
cmp dword [ebp + 0xc], ecx
sete al
pop edi
pop esi
pop ebx
leave
ret 0x1c
push 2
pop eax
jmp 0x10001635
Function at 0x10009e2b
Capabilities:
Get common file path

Disassembly:
push 0x274
mov eax, 0x100aa1e1
call fcn.10080bb1
mov esi, ecx
mov eax, dword [esi + 0x120]
xor ebx, ebx
mov eax, dword [eax]
cmp dword [eax + 0x178], ebx
je 0x10009fa7
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
cmp word [ebp - 0x218], bx
je 0x10009e7b
add eax, 2
cmp word [eax], bx
jne 0x10009e73
push eax
lea eax, [ebp - 0x218]
mov ecx, 0x100d7eb0
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.100124b7
mov eax, dword [esi + 0x120]
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x224], ebx
mov eax, dword [eax]
add eax, 0x168
mov dword [ebp - 0x220], ebx
push eax
call fcn.1000c826
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.100020f2
mov byte [ebp - 0x268], bl
lea eax, [ebp - 0x24c]
push dword [ebp - 0x268]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.100024b9
lea eax, [ebp - 0x280]
mov byte [ebp - 4], 3
push eax
call fcn.1000fdb8
add esp, 0x1c
lea ecx, [ebp - 0x280]
mov bl, al
call fcn.1000e787
test bl, bl
je 0x10009f42
cmp dword [ebp - 0x238], 0x10
lea eax, [ebp - 0x24c]
cmovae eax, dword [ebp - 0x24c]
push eax
call fcn.10086c2c
pop ecx
lea ecx, [ebp - 0x24c]
call fcn.1000e761
mov eax, dword [ebp - 0x220]
cmp eax, 0x10
jb 0x10009f9c
mov ecx, dword [ebp - 0x234]
inc eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x268], ecx
cmp eax, 0x1000
jb 0x10009f93
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.1000c2e0
mov eax, dword [ebp - 0x21c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x268]
push eax
push ecx
call fcn.1008062c
pop ecx
pop ecx
lea ecx, [ebp - 0x264]
call fcn.1000e761
call fcn.10080b60
ret
Function at 0x10009fad
Capabilities:
Get common file path

Disassembly:
push 0x278
mov eax, 0x100aa23c
call fcn.10080bb1
mov edi, ecx
mov eax, dword [edi + 0x120]
xor ebx, ebx
mov esi, dword [eax]
add esi, 0x138
cmp dword [esi + 0x10], ebx
je 0x1000a16a
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
cmp word [ebp - 0x218], bx
je 0x1000a000
add eax, 2
cmp word [eax], bx
jne 0x10009ff8
push eax
lea eax, [ebp - 0x218]
mov ecx, 0x100d7eb0
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.100124b7
mov eax, dword [edi + 0x120]
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x228], ebx
mov eax, dword [eax]
add eax, 0x168
mov dword [ebp - 0x224], ebx
push eax
call fcn.1000c826
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.100020f2
mov byte [ebp - 0x26c], bl
lea eax, [ebp - 0x250]
push dword [ebp - 0x26c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.100024b9
lea eax, [ebp - 0x284]
mov byte [ebp - 4], 3
push eax
call fcn.1000fdb8
add esp, 0x1c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x284]
mov bl, al
call fcn.1000e787
test bl, bl
jne 0x1000a105
lea eax, [ebp - 0x250]
mov dword [ebp - 0x26c], edi
push eax
push esi
lea eax, [ebp - 0x26c]
push eax
push 0x1000b960
lea eax, [ebp - 0x220]
push 1
push eax
call fcn.100040e5
add esp, 0x18
lea ecx, [edi + 8]
push eax
mov byte [ebp - 4], 4
call fcn.1000dc4c
mov ecx, dword [ebp - 0x220]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x1000a105
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x1000a105
call fcn.1000cb32
lea ecx, [ebp - 0x250]
call fcn.1000e761
mov eax, dword [ebp - 0x224]
cmp eax, 0x10
jb 0x1000a15f
mov ecx, dword [ebp - 0x238]
inc eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x26c], ecx
cmp eax, 0x1000
jb 0x1000a156
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.1000c2e0
mov eax, dword [ebp - 0x21c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x26c]
push eax
push ecx
call fcn.1008062c
pop ecx
pop ecx
lea ecx, [ebp - 0x268]
call fcn.1000e761
call fcn.10080b60
ret
Function at 0x1000a170
Capabilities:
Get common file path

Disassembly:
push 0x25c
mov eax, 0x100aa281
call fcn.10080bb1
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x220], 0xf
push ebx
mov edi, 0x100af690
mov dword [ebp - 0x234], ebx
push edi
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x224], ebx
mov byte [ebp - 0x234], bl
call fcn.1000ec5f
mov eax, dword [esi + 0x120]
mov dword [ebp - 4], ebx
mov eax, dword [eax]
add eax, 0x40
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x1000a1ca
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.1000eb05
push ebx
push edi
lea ecx, [ebp - 0x234]
call fcn.1000eb05
cmp dword [ebp - 0x224], 0
je 0x1000a261
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp - 0x218], 0
lea eax, [ebp - 0x218]
je 0x1000a217
add eax, 2
cmp word [eax], bx
jne 0x1000a20f
push eax
lea eax, [ebp - 0x218]
mov ecx, 0x100d7eb0
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.100124b7
push edi
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.1000213b
add esp, 0xc
lea ecx, [ebp - 0x264]
call fcn.1000e761
lea ecx, [ebp - 0x24c]
call fcn.1000e761
mov eax, dword [ebp - 0x220]
cmp eax, 0x10
jb 0x1000a2b0
mov ecx, dword [ebp - 0x234]
inc eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x268], ecx
cmp eax, 0x1000
jb 0x1000a2a7
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.1000c2e0
mov eax, dword [ebp - 0x21c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x268]
push eax
push ecx
call fcn.1008062c
pop ecx
pop ecx
call fcn.10080b60
ret
Function at 0x1001033f
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx]
and dword [ebp - 4], 0
push esi
mov dword [ecx + 4], eax
lea esi, [ecx + 0x1c]
lea eax, [ebp - 4]
push eax
lea eax, [ecx + 0xc]
push esi
push eax
call fcn.100047ca
push 0x20
push 0x100af4c8
push esi
call fcn.100830b0
add esp, 0x18
pop esi
leave
ret

Function at 0x100113e3
Capabilities:
Authenticate hmac

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x10011401
call fcn.10012155
test al, al
jne 0x10011401
mov dword [esi + 0x40], str.invalid_BOM__must_be_0xEF_0xBB_0xBF_if_given
push 0xe
pop eax
pop esi
ret
mov ecx, esi
call fcn.10010150
mov eax, dword [esi + 8]
cmp eax, 0x20
je 0x10011401
cmp eax, 9
je 0x10011401
cmp eax, 0xa
je 0x10011401
cmp eax, 0xd
je 0x10011401
cmp eax, 0x36
jg 0x1001147a
je 0x10011449
cmp eax, 0x30
jg 0x10011461
je 0x10011449
cmp eax, 0xffffffff
je 0x1001145d
test eax, eax
je 0x1001145d
cmp eax, 0x22
je 0x10011455
cmp eax, 0x2c
je 0x10011451
cmp eax, 0x2d
jne 0x100114c9
mov ecx, esi
pop esi
jmp fcn.10011549
push 0xd
jmp 0x100113fe
mov ecx, esi
pop esi
jmp fcn.1001188f
push 0xf
jmp 0x100113fe
sub eax, 0x31
je 0x10011449
sub eax, 1
je 0x10011449
sub eax, 1
je 0x10011449
sub eax, 1
je 0x10011449
sub eax, 1
jmp 0x10011443
cmp eax, 0x5d
jg 0x100114af
je 0x100114a8
sub eax, 0x37
je 0x10011449
sub eax, 1
je 0x10011449
sub eax, 1
je 0x10011449
sub eax, 1
je 0x100114a1
sub eax, 0x21
jne 0x100114c9
push 8
jmp 0x100113fe
push 0xc
jmp 0x100113fe
push 0xa
jmp 0x100113fe
sub eax, 0x66
je 0x100114f9
sub eax, 8
je 0x100114ee
sub eax, 6
je 0x100114e3
sub eax, 7
je 0x100114dc
dec eax
sub eax, 1
je 0x100114d5
mov dword [esi + 0x40], str.invalid_literal
jmp 0x100113fc
push 0xb
jmp 0x100113fe
push 9
jmp 0x100113fe
push 1
push 4
push str.true
jmp 0x10011502
push 3
push 4
push str.null
jmp 0x10011502
push 2
push 5
push str.false
mov ecx, esi
call fcn.1001150b
pop esi
ret
Function at 0x10012b3a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], edx
push esi
mov esi, ecx
mov dword [ebp - 8], esi
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x10012b65
jl 0x10012b5c
test edi, edi
jne 0x10012b65
xor eax, eax
xor edx, edx
jmp 0x10012c15
cmp dword [esi + 0x38], 0
je 0x10012b78
push eax
push edi
push edx
call fcn.10012c1f
jmp 0x10012c15
mov eax, dword [esi + 0x1c]
push ebx
mov ebx, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10012bb2
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x10012bb2
cmp dword [eax], edi
mov esi, edi
cmovb esi, dword [eax]
push esi
push ecx
push edx
call fcn.100830b0
mov ecx, dword [ebp - 8]
sub ebx, esi
add dword [ebp - 4], esi
add esp, 0xc
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
mov ecx, ebx
je 0x10012c0a
mov ecx, esi
call fcn.1000e01b
mov edx, dword [ebp - 4]
mov ecx, ebx
jmp 0x10012bea
push dword [esi + 0x4c]
push eax
push 1
push edx
call fcn.10086252
mov edx, dword [ebp - 4]
sub ebx, eax
add edx, eax
add esp, 0x10
mov dword [ebp - 4], edx
mov ecx, ebx
cmp eax, 0xfff
jne 0x10012c1b
mov eax, 0xfff
cmp ebx, eax
ja 0x10012bc8
test ecx, ecx
je 0x10012c0a
push dword [esi + 0x4c]
push ebx
push 1
push edx
call fcn.10086252
mov ecx, ebx
add esp, 0x10
sub ecx, eax
sub edi, ecx
mov edx, dword [ebp + 0x10]
mov eax, edi
sbb edx, 0
pop ebx
pop edi
pop esi
leave
ret 0xc
sub edi, ebx
jmp 0x10012c0c
Function at 0x10027df0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x18
mov eax, dword [0x100d51f4]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x10027ebb
lea eax, [esp + 4]
push eax
push esi
push 2
call fcn.10043230
add esp, 0xc
test eax, eax
jne 0x10027ebb
lea eax, [esp + 8]
push eax
push esi
push 0x17
call fcn.10043230
add esp, 0xc
test eax, eax
jne 0x10027ebb
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10027e44
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.10043200
add esp, 0xc
test eax, eax
je 0x10027e78
sub eax, esi
push eax
push 0x2e
push esi
call fcn.10043200
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x10027e7a
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x10027ea6
mov al, byte [esi]
push eax
call fcn.100364f0
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x10027e88
pop edi
movzx eax, bl
pop ebx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10080b3e
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop esi
xor ecx, esp
call fcn.10080b3e
add esp, 0x18
ret
Function at 0x10032750
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
mov eax, dword [0x100d51f4]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push ebx
mov ebx, dword [esp + 0x114]
mov dword [esp + 8], eax
xor eax, eax
push ebp
mov ebp, dword [esp + 0x128]
mov ecx, dword [ebx + 0x424]
cmp edx, ecx
push esi
sete al
mov esi, 0x448
push edi
lea eax, [eax*4 + 0x420]
mov eax, dword [eax + ebx]
mov dword [esp + 0x10], eax
mov eax, 0x458
cmove esi, eax
mov eax, dword [ebx + 0x548]
add esi, ebx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x1003285e
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x438]
cmp dword [eax + ebx], 0x10032310
jne 0x1003285e
cmp dword [esi], 0
je 0x100327e8
test edi, edi
je 0x1003285e
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.100419e0
add esp, 0x14
cmp eax, 0xffffffff
je 0x1003285e
test al, 1
je 0x1003285e
mov ecx, dword [esi]
test ecx, ecx
jne 0x1003283b
mov eax, dword [ebx]
mov eax, dword [eax + 0x90c]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x100d5098]
mov edi, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x10032857
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1003285e
add dword [esi + 8], eax
jmp 0x1003285e
mov dword [esi + 4], 0
push 0
push dword [esp + 0x130]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100328c7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x10032898
mov dword [ebp], 0
lea eax, [edi + 0x52]
jmp 0x100328cc
push 0x100
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.1001f480
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.10032050
mov eax, dword [ebx]
add esp, 0x18
mov dword [eax + 0xd44], esi
mov eax, 0x37
jmp 0x100328c9
xor eax, eax
mov dword [ebp], edi
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10080b3e
add esp, 0x10c
ret

Function at 0x10032cf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x474], 0
je 0x10032d0d
push eax
call fcn.1002c530
add esp, 4
test eax, eax
jne 0x10032d2c
xor al, al
ret
mov eax, dword [eax + 0x420]
cmp eax, 0xffffffff
je 0x10032d0a
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x10032d0a
mov al, 1
ret
Function at 0x10034ab0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x100b536c
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x10034aca
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x100b5388
push esi
call fcn.10091080
add esp, 8
test eax, eax
je 0x10034b12
test ebp, ebp
je 0x10034b03
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x10034b38
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10034b38
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x10034bef
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10034b55
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x100d5098]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10034be5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10034be5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10034b87
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10034ba0
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x10034bb0
test ebp, ebp
je 0x10034bdc
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x100d509c]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x100d509c]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x1003a0f0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x1003a104
mov eax, dword [eax]
mov eax, dword [eax + 0x78]
mov al, byte [eax + 0xe7]
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x1003a118
xor al, al
ret
push eax
push 0
call fcn.10032c20
add esp, 8
mov al, 1
ret
Function at 0x1003fef0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x34
mov eax, dword [0x100d51f4]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [esp + 0x48]
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
push 6
push 1
push 2
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x18], 1
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x100400d6
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [esp + 0x20], xmm0
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x18], eax
xor eax, eax
push 4
mov word [esp + 0x1a], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push edi
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x100400c4
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x100400c4
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x100400c4
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x100400c4
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x100400c4
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x100400c4
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x100400c4
push ebx
push 0x100b6c60
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.10035190
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10040022
push 0
sub esi, ecx
lea eax, [esp + 0x28]
push esi
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x100400c4
push 0
push 0xc
lea eax, [esp + 0x38]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x100400c4
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x10040077
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1004007c
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10040066
cmp esi, 0xfffffffc
je 0x100400a9
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x100400c4
cmp esi, 0xfffffffd
je 0x100400a9
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x100400c4
cmp esi, 0xfffffffe
je 0x100400a9
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x100400c4
cmp esi, 0xffffffff
je 0x100400a9
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x100400c4
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.10080b3e
add esp, 0x34
ret
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push edi
call esi
push dword [ebx]
call esi
push dword [ebx + 4]
call esi
mov ecx, dword [esp + 0x3c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10080b3e
add esp, 0x34
ret