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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x81c], eax
mov edi, edx
mov dword [ebp - 0x820], esi
lea ecx, [ebp - 0x818]
mov dword [ebp - 0x824], edi
mov dword [ebp - 0x828], ebx
call fcn.0041083b
mov ecx, eax
mov eax, dword [esi]
xor eax, ecx
push 1
pop esi
jg 0x41200d
xor eax, eax
jmp 0x41215e
mov edx, dword [ebp - 0x81c]
mov byte [edx + eax], 0
test eax, eax
js 0x41205e
mov ebx, dword [ebp - 0x820]
add eax, 4
shr eax, 2
mov edi, eax
mov eax, dword [ebx + esi*4]
xor eax, ecx
lea ecx, [ebp - 0x818]
mov dword [edx], eax
add edx, 4
mov dword [ebp - 0x81c], edx
inc esi
call fcn.0040e903
mov edx, dword [ebp - 0x81c]
mov ecx, eax
sub edi, 1
jne 0x412029
mov edi, dword [ebp - 0x824]
mov ebx, dword [ebp - 0x828]
mov edx, dword [ebp - 0x820]
mov dword [ebp - 0x81c], ebx
mov eax, dword [edx + esi*4]
xor eax, ecx
inc esi
test eax, eax
jle 0x412006
mov byte [ebx + eax], 0
js 0x4120c5
add eax, 4
mov ebx, edx
shr eax, 2
mov dword [ebp - 0x82c], eax
mov edi, eax
mov eax, dword [ebx + esi*4]
xor eax, ecx
mov ecx, dword [ebp - 0x81c]
mov dword [ecx], eax
add ecx, 4
mov dword [ebp - 0x81c], ecx
inc esi
lea ecx, [ebp - 0x818]
call fcn.0040e903
mov ecx, eax
sub edi, 1
jne 0x41208a
mov edi, dword [ebp - 0x824]
mov ebx, dword [ebp - 0x828]
mov edx, dword [ebp - 0x820]
mov eax, dword [edx + esi*4]
xor eax, ecx
mov dword [ebp - 0x81c], edi
inc esi
test eax, eax
jle 0x412006
mov byte [edi + eax], 0
js 0x412128
mov ebx, dword [ebp - 0x820]
add eax, 4
shr eax, 2
mov dword [ebp - 0x82c], eax
mov edi, eax
mov eax, dword [ebx + esi*4]
xor eax, ecx
mov ecx, dword [ebp - 0x81c]
mov dword [ecx], eax
add ecx, 4
mov dword [ebp - 0x81c], ecx
inc esi
lea ecx, [ebp - 0x818]
call fcn.0040e903
mov ecx, eax
sub edi, 1
jne 0x4120f3
mov edi, dword [ebp - 0x824]
mov ebx, dword [ebp - 0x828]
mov cl, byte [edi]
mov eax, 0x44e288
test cl, cl
je 0x41213f
sub edi, eax
mov byte [eax], cl
inc eax
mov cl, byte [edi + eax]
test cl, cl
jne 0x412135
mov byte [eax], 0
mov eax, 0x44e2c8
mov cl, byte [ebx]
test cl, cl
je 0x412159
sub ebx, eax
mov byte [eax], cl
inc eax
mov cl, byte [ebx + eax]
test cl, cl
jne 0x41214f
mov byte [eax], 0
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a623
mov esp, ebp
pop ebp
ret 8

Function at 0x412171
Capabilities:
Encode data using xor

Disassembly:
push 0x1f
pop edx
mov eax, dword [ecx + edx*4 - 4]
xor dword [ecx + edx*4], eax
sub edx, 1
jne 0x412174
and dword [ecx], edx
mov byte [0x461c5d], dl
ret
Function at 0x4124ed
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00439e70
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ecx, 0x483760
call fcn.00424ffd
mov ebx, eax
test ebx, ebx
je 0x4125a6
mov eax, dword [0x44ac64]
xor ecx, ecx
cdq
xor eax, edx
mov dword [0x44e3a0], 0x440
sub eax, edx
push esi
cmp eax, 0x1f4
mov esi, 0x44e3a0
push edi
cmovle ecx, dword [0x44ac64]
lea edi, [ebp - 0x1004]
cmp byte [0x44e3a4], 0
mov dword [0x44e7bc], ecx
mov ecx, 0x110
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
je 0x41256b
lea ecx, [ebp - 0xffc]
call fcn.00412171
push 0xffffffffffffffff
mov edx, 0x440
lea ecx, [ebp - 0x1004]
call fcn.0040ebe2
push 0x1000
mov dword [ebp - 0xbc4], eax
lea eax, [ebp - 0x1004]
push eax
push 3
push 0
push 0x449740
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042a623
mov esp, ebp
pop ebp
ret

Function at 0x4125b5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00439e70
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x449740
mov esi, 0x483760
mov edx, edi
mov ecx, esi
call fcn.00425154
lea eax, [ebp - 0x100c]
xor ebx, ebx
push eax
inc ebx
push ebx
push 0
push esi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412729
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0x1000
push eax
lea eax, [ebp - 0x1004]
push eax
push 0
push 0
push edi
push dword [ebp - 0x100c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41271d
cmp dword [ebp - 0x1008], eax
je 0x41271d
mov ecx, 0x110
lea esi, [ebp - 0x1004]
mov edi, 0x44e3a0
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x1004]
cmp esi, 2
jb 0x41271d
push 0xffffffffffffffff
lea edx, [esi + 4]
lea ecx, [ebp - 0x1004]
call fcn.0040ebe2
test eax, eax
jne 0x41271d
mov ecx, 0x440
cmp esi, ecx
jae 0x4126ac
mov eax, dword [0x44e3a0]
lea edx, [ecx - 0x30]
cmp esi, 0x428
cmove eax, edx
sub ecx, eax
mov dword [0x44e3a0], eax
push ecx
push 0
lea eax, [eax + 0x44e3a0]
push eax
call fcn.0042c7b0
add esp, 0xc
mov eax, dword [0x44e3a4]
mov ecx, dword [0x44e3a0]
shr eax, 8
shr al, 1
mov byte [0x44e3a5], al
call fcn.00412284
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 4
push eax
lea eax, [ebp - 0x1010]
push eax
push 0
push 0
push str.DisableTray
push dword [ebp - 0x100c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412708
cmp dword [ebp - 0x1010], eax
je 0x412708
or dword [0x44e4c4], 2
jmp 0x41270f
and dword [0x44e4c4], 0xfffffffd
push dword [ebp - 0x100c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x412730
push dword [ebp - 0x100c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00412482
xor ebx, ebx
call fcn.004124ed
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a623
mov esp, ebp
pop ebp
ret
Function at 0x412748
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x449648]
push edi
xor edi, edi
cmp dword [eax + 0x38], edi
je 0x4127e6
mov eax, dword [eax + 4]
cmp eax, dword [0x483168]
je 0x4127e6
mov ax, word [0x48316c]
test ax, ax
je 0x4127e6
push ebx
push esi
movzx esi, ax
mov ebx, 0x482168
push 0xffffffffffffffff
mov edx, esi
mov ecx, ebx
call fcn.0040ebe2
push edi
mov dword [esi + 0x482168], eax
lea eax, [ebp - 4]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x483760
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4127d6
movzx eax, word [0x48316c]
add eax, 4
push eax
push ebx
push 3
push edi
push str.NxCoreAccessTape
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [0x483168], edi
pop esi
mov word [0x48316c], ax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4127eb
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push 0x483760
push reloc.WS2_32.dll_bind
mov byte [0x482168], bl
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x412849
push 1
push 0x482168
push 3
push ebx
push str.NxCoreAccessTape
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [0x483168], ebx
mov word [0x48316c], ax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4129b6
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x44e498]
mov eax, ecx
test esi, 0x3fffffc0
mov byte [ebp - 0x16], dl
mov edx, dword [0x44e490]
xorps xmm0, xmm0
cmove esi, edx
mov dword [ebp - 0x24], eax
mov ch, byte [eax]
xor ebx, ebx
or dword [ebp - 0x20], 0xffffffff
inc ebx
cmp byte [ebp - 0x16], 0
push edi
mov byte [ebp - 0x15], ch
movlpd qword [ebp - 0x40], xmm0
je 0x412b0f
test dword [0x44e4a4], 0x30000
jne 0x412b0f
mov cl, ch
mov byte [ebp - 0x17], 0
call fcn.0040f8eb
mov edi, eax
test edi, 0x3fffffc0
je 0x412a49
mov dl, byte [ebp - 0x16]
push ecx
mov ecx, dword [ebp - 0x24]
call fcn.0040f913
pop ecx
cmp eax, 0xffffffff
jne 0x412afe
mov edx, dword [0x44e490]
not edi
and esi, edi
mov ch, byte [ebp - 0x15]
mov cl, byte [ebp - 0x17]
mov eax, edx
mov edi, dword [0x44e494]
and eax, esi
mov dword [ebp - 0x14], eax
test cl, cl
jne 0x412a6a
mov eax, edi
and eax, esi
push 2
mov dword [ebp - 0x10], eax
pop ebx
not esi
mov eax, esi
and eax, edx
mov dword [ebp + ebx*4 - 0x14], eax
inc ebx
mov dword [ebp - 0x30], ebx
test cl, cl
jne 0x412a86
and esi, edi
mov dword [ebp + ebx*4 - 0x14], esi
inc ebx
mov dword [ebp - 0x30], ebx
xor edi, edi
mov dword [ebp - 0x34], edi
test ebx, ebx
je 0x412af6
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
mov esi, dword [ebp + edi*4 - 0x14]
and esi, 0xffffffc0
push 2
shl esi, 2
pop eax
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x412aee
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
test esi, esi
jns 0x412add
mov dl, byte [ebp - 0x16]
add al, 0x41
push ecx
mov ecx, ebx
mov byte [ebx], al
call fcn.0040f913
mov dword [ebp - 0x3c], eax
pop ecx
cmp eax, 0xffffffff
jne 0x412b19
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ch, byte [ebp - 0x15]
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
add esi, esi
jne 0x412ab5
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x20], edi
mov edi, dword [ebp - 0x34]
inc edi
mov dword [ebp - 0x34], edi
cmp edi, ebx
jb 0x412a9b
mov eax, dword [ebp - 0x24]
mov byte [eax], ch
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a623
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x17], bl
and esi, edx
jmp 0x412a4c
lea ecx, [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp - 0x44]
xor ecx, ecx
or ecx, eax
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x20], ecx
cmp edx, dword [ebp - 0x2c]
jb 0x412ad7
ja 0x412b3d
cmp ecx, dword [ebp - 0x28]
jb 0x412ad7
cmp edi, 0xffffffff
je 0x412b4f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0x28], ecx
mov ch, byte [ebx]
mov dword [ebp - 0x2c], edx
mov byte [ebp - 0x15], ch
jmp 0x412ada
Function at 0x4148c7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00439e70
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x449648]
movzx ecx, word [0x45eda0]
push ebx
push esi
push edi
cmp dword [eax + 0x40], ecx
je 0x414a0c
mov cl, byte [0x481e18]
call fcn.0040f8eb
test eax, 0x3fffffc0
jne 0x41490f
xor eax, eax
jmp 0x414a11
push ecx
xor dl, dl
mov ecx, 0x481e18
call fcn.0040f913
mov esi, eax
mov dword [ebp - 0x1010], esi
pop ecx
cmp esi, 0xffffffff
je 0x414908
push 0
lea eax, [ebp - 0x100c]
push eax
push 0x1000
lea eax, [ebp - 0x1008]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414a05
movzx edx, byte [ebp - 0xf09]
inc edx
shl edx, 8
cmp edx, dword [ebp - 0x100c]
ja 0x414a05
push 0xffffffffffffffff
lea ecx, [ebp - 0x1008]
call fcn.0040ebe2
test eax, eax
jne 0x414a05
movzx ecx, word [ebp - 0xeec]
xor ebx, ebx
mov di, word [ebp - 0xef0]
mov edx, 0x80
cmp word [ebp - 0xeec], dx
mov word [0x45eda2], bx
cmovb edx, ecx
mov word [0x45eda0], di
movzx eax, dx
xor ecx, ecx
cmp cx, ax
jae 0x4149f8
mov esi, eax
lea edi, [ebp - 0xeea]
movzx edx, word [edi]
lea ecx, [edi + 2]
cmp byte [ecx], 0
lea eax, [ecx + 1]
lea edi, [eax + 2]
cmove edi, eax
movzx eax, bx
mov word [eax*2 + 0x45eda4], dx
mov bx, word [0x45eda2]
inc bx
mov word [0x45eda2], bx
sub esi, 1
jne 0x4149b9
mov di, word [0x45eda0]
mov esi, dword [ebp - 0x1010]
movzx ecx, di
mov edx, 0x45ed90
call fcn.00401dd8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x45ed90
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a623
mov esp, ebp
pop ebp
ret
Function at 0x416454
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x110]
push 0
mov dword [ebp - 0x124], edi
movzx eax, byte [edi + 0x28]
mov edx, dword [edi + 0x38]
push eax
push dword [edi + 0x40]
call fcn.00410153
test al, al
je 0x41665e
push dword [0x44e49c]
lea edx, [ebp - 0x110]
call fcn.004163b9
mov esi, eax
pop ecx
test esi, esi
je 0x41665e
mov eax, dword [0x44e49c]
lea edx, [ebp - 0x110]
mov bl, byte [ebp - 0x110]
not eax
and eax, dword [0x44e490]
push eax
mov byte [ebp - 0x111], bl
call fcn.004163b9
mov dword [ebp - 0x120], eax
pop ecx
cmp esi, eax
jb 0x41665e
mov al, byte [ebp - 0x110]
mov cl, byte [ebp - 0x111]
mov byte [ebp - 0x110], bl
xor ebx, ebx
mov byte [ebp - 0x112], al
call fcn.0040f8eb
test eax, 0x3fffffc0
je 0x41665e
push ecx
lea ecx, [ebp - 0x110]
call fcn.0040f040
mov esi, eax
mov dword [ebp - 0x128], esi
pop ecx
cmp esi, 0xffffffff
je 0x41665e
lea eax, [ebp - 0x11c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x11c]
xor edx, edx
or edx, eax
xor ecx, ecx
mov eax, dword [ebp - 0x120]
inc eax
mov dword [ebp - 0x12c], edx
push ecx
mov dword [ebp - 0x118], eax
shl eax, 0x10
push eax
push ecx
push 2
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, eax
mov dword [ebp - 0x11c], ecx
test ecx, ecx
je 0x4165f0
cmp dword [ebp - 0x118], ebx
jbe 0x4165e9
mov edi, dword [ebp - 0x118]
push 0x10000
mov eax, ebx
shl eax, 0x10
push eax
push 0
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x118], eax
test eax, eax
je 0x4165d7
mov ecx, ebx
mov edx, 0x10000
not ecx
push ecx
mov ecx, eax
call fcn.0040ebe2
push dword [ebp - 0x118]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test esi, esi
jne 0x4165d7
cmp dword [0x44ac4c], esi
jne 0x4165d7
mov ecx, dword [ebp - 0x11c]
inc ebx
cmp ebx, edi
jb 0x416581
mov edi, dword [ebp - 0x124]
mov esi, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, dword [ebp - 0x120]
jbe 0x41665e
mov al, byte [ebp - 0x112]
lea ecx, [ebp - 0x110]
mov dl, 1
mov byte [edi + 0x4f], 0x85
mov byte [ebp - 0x110], al
call fcn.0040f1d2
mov al, byte [ebp - 0x111]
mov ecx, dword [ebp - 0x12c]
sub al, 0x41
mov byte [edi + 0x28], al
mov eax, ecx
shr eax, 0x10
mov dword [edi + 4], eax
movzx eax, cx
mov dword [edi + 8], eax
cmp dword [edi + 0x20], ecx
jne 0x41664c
cmp dword [edi + 0x24], 0
jne 0x41664c
mov edx, dword [edi + 0x14]
mov dword [edi + 0x10], edx
push 0
push 4
or dl, 0xff
mov ecx, edi
call fcn.0041055a
mov al, 1
jmp 0x416660
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a623
mov esp, ebp
pop ebp
ret
Function at 0x416671
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
cmp dword [edi + 0x40], 0
jne 0x416697
or eax, 0xffffffff
jmp 0x416823
mov edx, dword [edi + 0x38]
lea ecx, [ebp - 0x110]
push 0
push 0
push dword [edi + 0x40]
call fcn.00410153
mov esi, dword [edi + 0x20]
lea ecx, [ebp - 0x110]
mov eax, dword [edi + 0x24]
mov dl, 1
shrd esi, eax, 0x14
add esi, 0x64
shr eax, 0x14
mov dword [ebp - 0x114], esi
call fcn.004129b6
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4167a3
mov cl, byte [ebp - 0x110]
mov edx, edi
sub cl, 0x41
push 0
mov byte [edi + 0x28], cl
mov ecx, 0x4e4b10
push ebx
call fcn.004159e9
lea eax, [ebp - 0x118]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x118]
movsx ebx, byte [edi + 0x28]
mov eax, dword [ebp - 0x114]
shl ecx, 0xc
shr esi, 0x14
or ecx, esi
add ecx, dword [ebx*4 + 0x44e428]
cmp eax, ecx
jb 0x416770
lea ecx, [eax + 0x32]
xor dl, dl
call fcn.0041290b
mov dword [ebp - 0x114], eax
test eax, eax
je 0x416770
cmp eax, ebx
je 0x416770
push ecx
lea ebx, [eax + 0x41]
mov dl, 1
push 0
mov ecx, edi
mov byte [edi + 0x57], bl
call fcn.00411199
pop ecx
pop ecx
test al, al
je 0x416770
mov eax, dword [ebp - 0x114]
mov byte [edi + 0x28], al
mov byte [ebp - 0x110], bl
jmp 0x416776
mov bl, byte [ebp - 0x110]
or byte [0x44ac88], 4
mov cl, bl
call fcn.0040f8eb
test eax, 0x3fffffc0
je 0x41668f
push ecx
mov dl, 1
lea ecx, [ebp - 0x110]
call fcn.0040f913
pop ecx
jmp 0x416823
mov ecx, edi
call fcn.00414184
cmp byte [ebp + 8], 0
je 0x416821
xor dl, dl
mov ecx, esi
call fcn.0041290b
mov dword [ebp - 0x114], eax
test eax, eax
jne 0x4167d8
push eax
push 0xff
mov dl, 5
mov ecx, edi
call fcn.0041055a
mov byte [edi + 0x28], 0
jmp 0x416821
lea edx, [eax + 0x41]
mov cl, dl
call fcn.0040f8eb
test eax, 0x3fffffc0
je 0x41668f
mov eax, dword [ebp - 0x114]
lea ecx, [ebp - 0x110]
mov byte [ebp - 0x110], dl
push 2
pop edx
mov byte [edi + 0x28], al
call fcn.0040f98b
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x416821
push 0
push 0xff
mov dl, 4
mov ecx, edi
call fcn.0041055a
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a623
mov esp, ebp
pop ebp
ret
Function at 0x416987
Capabilities:
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 6
push 1
push 2
pop eax
push eax
mov dword [ebp - 0x1c], edx
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x416a52
test ebx, ebx
je 0x416a52
xor eax, eax
mov edx, dword [ebp + 0xc]
mov edi, esi
mov ecx, ebx
push 2
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop eax
mov word [esi], ax
mov ax, word [ebp + 8]
mov word [esi + 2], ax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 4], eax
mov eax, 0x2710
push eax
push eax
push dword [ebp + 0x10]
call fcn.00428817
mov ecx, dword [0x44e744]
test ecx, ecx
je 0x416a52
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop eax
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x18]
push 0x10
push eax
push ebx
mov dword [ebp - 0x14], ecx
call dword [sym.imp.WS2_32.dll_bind]
mov esi, eax
mov ecx, str.Bind_Failed
mov eax, str.selected
test esi, esi
cmove ecx, eax
xor edx, edx
push ecx
mov ecx, dword [0x44e744]
push 0
call fcn.004285e1
push eax
push str.TCP_Interface__s__s
push 0
mov eax, esi
cdq
push 0x20
push edx
push eax
call fcn.00420600
add esp, 0x1c
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a623
mov esp, ebp
pop ebp
ret 0xc
Function at 0x416a67
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x44e73c]
push esi
push edi
mov dword [ebp - 0x1c], edx
mov edi, ebx
mov edx, dword [0x44e744]
mov esi, ecx
xor edi, edx
je 0x416af7
mov ecx, 0xff
push 3
pop eax
cmp edi, ecx
jbe 0x416af7
test eax, eax
je 0x416aa9
shl ecx, 8
dec eax
cmp edi, ecx
ja 0x416a9d
cmp eax, 2
jne 0x416af7
mov ecx, esi
call fcn.00428652
cmp eax, 3
jne 0x416af7
movzx eax, bl
and esi, 0xffffff00
or esi, eax
shr ebx, 8
movzx eax, bl
and esi, 0xffff00ff
shl eax, 8
xor ebx, ebx
or esi, eax
xor edx, edx
push ebx
mov ecx, esi
call fcn.004285e1
push eax
push str.ip_changed_to_local__s
push ebx
push 0x20
push ebx
push ebx
call fcn.00420600
add esp, 0x18
jmp 0x416af9
xor ebx, ebx
push dword [ebp + 0xc]
mov edx, esi
lea ecx, [ebp - 0x14]
push dword [ebp + 8]
push dword [ebp - 0x1c]
call fcn.00416987
mov edx, eax
mov ecx, edx
mov dword [ebp - 0x18], edx
call fcn.0040fdd6
test al, al
je 0x416b23
mov eax, edx
jmp 0x416c51
mov edi, 0x461c44
jmp 0x416b3f
mov ecx, 0x1f4
call fcn.004104ad
test al, al
je 0x416bf1
mov edx, dword [ebp - 0x18]
push ebx
mov ecx, edi
call fcn.0040eba3
test al, al
je 0x416b2a
mov ecx, 0x461c48
call fcn.0040eb84
cmp eax, 2
jbe 0x416b6c
mov ecx, 0x7d0
call fcn.004104ad
test al, al
je 0x416bf1
mov eax, dword [0x44de5c]
mov ecx, 0x461c54
push 0x10
pop edx
lea eax, [eax*2 + 4]
cmp eax, edx
cmovl edx, eax
call fcn.00401f16
imul eax, edx, 0x3e8
lea edx, [ebp - 0x14]
push ecx
push eax
call fcn.00428a75
xor edx, edx
mov ecx, edi
mov esi, eax
call fcn.00401f16
test esi, esi
je 0x416bf6
lea ecx, [ebp - 0x18]
call fcn.0040fe11
mov edx, dword [0x44de5c]
test edx, edx
jne 0x416be8
mov ecx, dword [0x44e744]
test ecx, ecx
je 0x416be8
push ebx
call fcn.004285e1
push eax
push str.TCP_interface_is_fixed_at__s__recommendation_is_ANY
push 2
mov eax, esi
cdq
push 0x20
push edx
push eax
call fcn.00420600
mov edx, dword [0x44de5c]
add esp, 0x18
inc edx
mov dword [0x44de5c], edx
jmp 0x416c4e
or eax, 0xffffffff
jmp 0x416c51
lea eax, [ebp - 0x1c]
mov dword [0x44de5c], ebx
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 0x10
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x416c4e
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x416c4e
cmp dword [0x461c38], ecx
je 0x416c4e
mov edi, 0x461c34
lea esi, [ebp - 0x14]
push ebx
xor edx, edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004285e1
push eax
push str.Connection_interface__s
push ebx
push 0x20
push ebx
push ebx
call fcn.00420600
add esp, 0x18
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a623
mov esp, ebp
pop ebp
ret 8
Function at 0x416e05
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
or edx, 0xffffffff
mov ecx, 0x461c68
call fcn.00401f16
mov esi, eax
cmp esi, edx
je 0x416e79
test esi, esi
je 0x416e79
cmp dword [0x461a84], 0
je 0x416e6d
mov dl, 2
lea ecx, [ebp - 0x108]
call fcn.00416d23
lea ecx, [ebp - 0x108]
sub eax, ecx
mov edx, eax
call fcn.00416dc5
push 0x10
push 0x461c6c
push 0
push eax
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.WS2_32.dll_sendto]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
inc eax
jmp 0x416e7b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042a623
mov esp, ebp
pop ebp
ret

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

Disassembly:
push esi
push edi
mov edi, ecx
call fcn.00416dc5
push 0x10
push 0x461c6c
push 0
mov esi, eax
push esi
push edi
push dword [0x461c68]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, esi
je 0x416ed1
push str.UDP_send_message_failed
push 1
push 0x40
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cdq
push edx
push eax
call fcn.00420600
add esp, 0x14
and dword [0x461c88], 0
pop edi
pop esi
ret

Function at 0x418a07
Capabilities:
Create udp socket

Disassembly:
cmp dword [0x44de7c], 0
je 0x418a04
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
je 0x418a04
test eax, eax
je 0x418a04
push esi
mov edx, eax
mov ecx, 0x461c20
call fcn.00401f16
mov ecx, dword [0x461c20]
mov edx, 0x40000
push 0x1f4
push 0x3e8
push 0x4000
mov esi, eax
call fcn.00428817
cmp esi, 0xffffffff
je 0x418a00
test esi, esi
je 0x418a00
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret
xor al, al
ret
cmp byte [0x45f8fd], 0
je 0x418a32
mov eax, dword [0x44e4a4]
shr eax, 0x11
test al, 1
je 0x418a32
mov eax, dword [0x461c20]
cmp eax, 0xffffffff
je 0x418a2d
test eax, eax
je 0x418a2d
mov al, 1
ret
jmp 0x4189a4
mov eax, dword [0x461ac0]
cmp eax, 0xffffffff
je 0x418a40
test eax, eax
jne 0x418a2a
test cl, cl
je 0x418a50
push dword [0x4619c8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor al, al
ret