joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426b60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a07e6
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x4c506c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x178]
push ecx
call fcn.00406450
add esp, 8
mov dword [ebp - 0x14c], eax
mov edx, dword [ebp - 0x14c]
mov dword [ebp - 0x150], edx
mov dword [ebp - 4], 0
push str.launcher_config.ini
mov eax, dword [ebp - 0x150]
push eax
lea ecx, [ebp - 0x144]
push ecx
call fcn.0040fc70
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x178]
call fcn.00404630
push 0x104
push 0
lea edx, [ebp - 0x114]
push edx
call fcn.00477ee0
add esp, 0xc
lea ecx, [ebp - 0x144]
call fcn.00404610
push eax
push 0x103
lea eax, [ebp - 0x114]
push eax
push 0x4b9d3e
push str.need_fix
push 0x4bc278
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x12c]
call fcn.004046a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x12c]
call fcn.004056c0
movzx edx, al
test edx, edx
je 0x426c7f
mov byte [ebp - 0x145], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x12c]
call fcn.00404630
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x144]
call fcn.00404630
mov al, byte [ebp - 0x145]
jmp 0x426d13
push fcn.0047c387
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x12c]
call fcn.0040c7b0
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x158]
push edx
lea ecx, [ebp - 0x12c]
call fcn.0040c770
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0x12c]
call fcn.0040c7b0
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x160]
push eax
call fcn.00410140
add esp, 0x14
push 0x4bc27c
lea ecx, [ebp - 0x12c]
push ecx
call fcn.00407a20
add esp, 8
mov byte [ebp - 0x146], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x12c]
call fcn.00404630
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x144]
call fcn.00404630
mov al, byte [ebp - 0x146]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
Function at 0x426d30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a081d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4c506c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 1
push 0
lea ecx, [ebp + 8]
call fcn.00404610
push eax
call fcn.00486537
add esp, 8
test eax, eax
je 0x426de7
push 0
lea ecx, [ebp + 8]
call fcn.00404610
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x426dcb
call fcn.00421970
cmp eax, 3
jg 0x426dcb
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.00404610
push eax
push str.SHCreateDirectoryEx_error__dir_s__errorid_d
push 3
push str.CheckAndCreateDir
push 0x8c
push 0x4bc2c8
call fcn.00421d50
add esp, 0x1c
cmp dword [ebp - 0x10], 0
jne 0x426dda
mov dword [ebp - 0x14], 2
jmp 0x426de1
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404630
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x426fb0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x4c506c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x10c
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.00477ee0
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.00404610
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.0042a730
add esp, 8
xor edx, edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x118], edx
mov word [ebp - 0x114], dx
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 3
lea eax, [ebp - 0x110]
mov dword [ebp - 0x128], eax
mov ecx, 0x614
mov word [ebp - 0x120], cx
lea edx, [ebp - 0x130]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
je 0x4270a4
call fcn.00421970
cmp eax, 3
jg 0x4270a4
mov eax, dword [ebp - 0x134]
push eax
mov ecx, dword [ebp + 8]
call fcn.00404610
push eax
push str.SHFileOperation_delete_file_error__paht_s__errorid_d
push 3
push str.ShDeleteFile
push 0xbd
push 0x4bc3b8
call fcn.00421d50
add esp, 0x1c
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
Function at 0x427390
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0905
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4c506c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xc
lea ecx, [ebp - 0x1c]
call fcn.004053a0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042a500
mov dword [ebp - 4], 0
push 0
call fcn.004265f0
add esp, 4
push eax
call fcn.00486525
add esp, 4
lea ecx, [ebp - 0x1c]
call fcn.00421300
movzx ecx, al
test ecx, ecx
jne 0x4274fa
call fcn.00486504
mov esi, eax
lea ecx, [ebp - 0x1c]
call fcn.004140f0
mov ecx, eax
mov eax, esi
xor edx, edx
div ecx
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x1c]
call fcn.004064b0
push eax
lea ecx, [ebp - 0x34]
call fcn.00407850
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004140f0
sub eax, 1
push eax
lea ecx, [ebp - 0x1c]
call fcn.004064b0
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004064b0
mov ecx, eax
call fcn.004077e0
lea ecx, [ebp - 0x1c]
call fcn.0042a460
mov ecx, dword [ebp + 0xc]
call fcn.00404610
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str..tmp
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x5c]
push edx
call fcn.004068e0
add esp, 0xc
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
call fcn.00404610
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x5c]
call fcn.00404630
mov eax, dword [ebp + 0xc]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x44], esp
lea edx, [ebp - 0x34]
push edx
call fcn.00407850
call fcn.00427200
add esp, 0x1c
mov byte [ebp - 0x35], al
movzx eax, byte [ebp - 0x35]
test eax, eax
je 0x4274e9
mov byte [ebp - 0x36], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00404630
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00406530
mov al, byte [ebp - 0x36]
jmp 0x427510
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00404630
jmp 0x4273e9
mov byte [ebp - 0x37], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00406530
mov al, byte [ebp - 0x37]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
Function at 0x427530
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a095f
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x4c506c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4bc4c4
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.004068e0
add esp, 0xc
mov dword [ebp - 4], 0
push 0x140
push 0
lea edx, [ebp - 0x168]
push edx
call fcn.00477ee0
add esp, 0xc
lea eax, [ebp - 0x168]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404610
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0xffffffff
je 0x427768
mov ecx, 1
imul edx, ecx, 0
movsx eax, byte [ebp + edx - 0x13c]
cmp eax, 0x2e
jne 0x4275d0
jmp 0x42774c
mov ecx, dword [ebp - 0x168]
and ecx, 0x10
je 0x42768a
lea edx, [ebp - 0x13c]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1b0]
push ecx
call fcn.004068e0
add esp, 0xc
mov dword [ebp - 0x170], eax
mov edx, dword [ebp - 0x170]
mov dword [ebp - 0x174], edx
mov byte [ebp - 4], 1
push 0x4bc4c8
mov eax, dword [ebp - 0x174]
push eax
lea ecx, [ebp - 0x198]
push ecx
call fcn.0040fc70
add esp, 0xc
mov dword [ebp - 0x178], eax
mov edx, dword [ebp - 0x178]
mov dword [ebp - 0x17c], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x17c]
push ecx
call fcn.00427530
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x198]
call fcn.00404630
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1b0]
call fcn.00404630
mov ecx, dword [ebp + 0xc]
call fcn.004056c0
movzx edx, al
test edx, edx
jne 0x427685
jmp 0x427768
jmp 0x42774c
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov edx, dword [0x4c77fc]
cmp edx, dword [ecx + 4]
jle 0x4276e7
push 0x4c77fc
call fcn.00476073
add esp, 4
cmp dword [0x4c77fc], 0xffffffff
jne 0x4276e7
mov byte [ebp - 4], 3
push str.fixstart.
mov ecx, 0x4c77cc
call fcn.004046a0
push 0x4a1600
call fcn.00475f28
add esp, 4
mov byte [ebp - 4], 0
push 0x4c77fc
call fcn.00476029
add esp, 4
mov ecx, 0x4c77cc
call fcn.004045f0
push eax
mov ecx, 0x4c77cc
call fcn.00404610
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.004865d0
add esp, 0xc
test eax, eax
jne 0x42774c
lea ecx, [ebp - 0x13c]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x1c8]
push eax
call fcn.004068e0
add esp, 0xc
mov dword [ebp - 0x180], eax
mov ecx, dword [ebp - 0x180]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00406600
lea ecx, [ebp - 0x1c8]
call fcn.00404630
jmp 0x427768
lea edx, [ebp - 0x168]
push edx
mov eax, dword [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4275b6
mov ecx, dword [ebp - 0x16c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00404630
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
Function at 0x429a40
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4c506c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 0
push str.LogLaunch_
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004068e0
add esp, 0xc
push 0
lea ecx, [ebp - 0x1c]
call fcn.00404610
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00404650
mov eax, dword [ebp - 0x20]
or eax, 1
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x1c]
call fcn.00404630
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
Function at 0x42d690
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4c506c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0042d5f0
add esp, 4
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0xc8
push 0x15e
push 0
push 0
push 0xc80000
push 0x4bdbfc
push str.silent_updating_tip
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4c74c8], eax
cmp dword [0x4c74c8], 0
jne 0x42d6ee
jmp 0x42d7f0
push 0
mov edx, dword [0x4c74c8]
push edx
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov dword [ebp - 0x24], eax
push 0
push 0xf010
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DeleteMenu]
push 0
push 0xf000
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_DeleteMenu]
push 0
push 0xf030
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.USER32.dll_DeleteMenu]
push 0
push 0xf020
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DeleteMenu]
push 0
push 0xf120
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_DeleteMenu]
push 0
push 0xf060
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.USER32.dll_DeleteMenu]
push 2
push 0xf060
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov ecx, dword [0x4c74c8]
push ecx
call fcn.0042d440
add esp, 4
push 1
mov edx, dword [0x4c74c8]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4c74c8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov dword [ebp - 0x28], eax
push 0
push 0
push 0
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x42d7f0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x42d7ee
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x42d7b0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
Function at 0x43a040
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x43a0d6
push esi
call fcn.00448e90
add esp, 4
test al, al
jne 0x43a0d6
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x43a065
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.00456ad0
add esp, 0xc
test eax, eax
je 0x43a099
sub eax, esi
push eax
push 0x2e
push esi
call fcn.00456ad0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x43a09b
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 0x43a0ce
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.00447a90
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 0x43a0b0
pop edi
movzx eax, bl
pop ebx
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4433a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x712], 0
je 0x443434
cmp dword [edi + 0x1b0], 0
je 0x4433f1
push esi
push 1
push edi
call fcn.00435240
push dword [edi + 0x14c]
mov eax, dword [edi + 0x1b0]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.00435240
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov ecx, edx
sub ecx, 0
je 0x443405
sub ecx, 1
je 0x443405
sub ecx, 1
jne 0x443434
push dword [edi + 0x148]
lea eax, [edx*2 + 0x4a6290]
push 1
add eax, edx
push 2
push eax
call fcn.0047ed3f
push dword [edi + 0x148]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0047ed3f
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret
Function at 0x4439e0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4c506c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10c], eax
xor eax, eax
mov ecx, dword [ebx + 0xc]
push esi
mov esi, 0x170
push edi
mov edx, dword [ecx + 0x14c]
cmp dword [ebp + 0xc], edx
sete al
lea eax, [eax*4 + 0x148]
mov eax, dword [eax + ecx]
mov dword [ebp - 0x108], eax
mov eax, 0x180
cmove esi, eax
mov eax, dword [ecx + 0x290]
add esi, ecx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x443ae1
xor eax, eax
cmp dword [ebp + 0xc], edx
sete al
lea eax, [eax*4 + 0x160]
cmp dword [eax + ecx], 0x443670
jne 0x443ae1
cmp dword [esi], 0
je 0x443a72
test edi, edi
je 0x443ae1
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x108]
call fcn.00452460
add esp, 0x14
cmp eax, 0xffffffff
je 0x443ae1
test al, 1
je 0x443ae1
mov ecx, dword [esi]
test ecx, ecx
jne 0x443ac5
mov eax, dword [ebx + 0x4e0]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
je 0x443b18
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push dword [ebp - 0x108]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x443ae1
add dword [esi + 8], eax
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x110]
push dword [ebp - 0x108]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
jne 0x443b66
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x443b3a
xor edi, edi
lea eax, [edi + 0x51]
jmp 0x443b66
mov ecx, dword [ebp - 0x10c]
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov dword [ecx], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.00455fb0
push eax
push str.Send_failure:__s
push ebx
call fcn.00443440
add esp, 0x18
mov dword [ebx + 0x964], esi
mov eax, 0x37
mov ecx, dword [ebp - 0x10c]
mov dword [ecx], edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475c6f
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x198], 0
jne 0x443f40
mov eax, dword [eax + 0x148]
cmp eax, 0xffffffff
je 0x443f40
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x4441a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x4c506c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x184]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push 0x80
push 0
push eax
mov dword [ebp - 0x188], 0x80
call fcn.00477ee0
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x184]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x44421d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.00455fb0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x444260
push edi
push esi
push dword [ebp - 0x188]
lea eax, [ebp - 0x184]
push eax
call fcn.00443dd0
add esp, 0x10
test al, al
jne 0x444269
call fcn.00482b29
mov esi, dword [eax]
call fcn.00482b29
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.00455fb0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00443440
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475c6f
mov esp, ebp
pop ebp
ret

Function at 0x444b10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4c6648]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x444b61
push 3
push 2
push eax
push 6
call fcn.0046bee0
add esp, 0x10
test al, al
je 0x444b55
mov dword [0x4c6648], 2
mov esp, ebp
pop ebp
ret
mov dword [0x4c6648], 1
jmp 0x444b66
cmp eax, 2
je 0x444ba6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x444b8d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x444ba6
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret
Function at 0x445ea0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048e26a

Function at 0x446120
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x4c506c]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x446179
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x446166
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x446160
shr eax, 8
cmp al, 2
je 0x446179
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x4a66f8
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x446199
mov dword [0x4c6650], esi
jmp 0x4462d5
push ebx
push str.LoadLibraryExA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a6714
push str.iphlpapi.dll
mov ebx, eax
call fcn.0048705a
add esp, 8
test eax, eax
je 0x4461e6
test ebx, ebx
je 0x4461d4
push 8
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x4462ad
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x4462ad
test ebx, ebx
je 0x44620f
push str.AddDllDirectory
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x44620f
push 0x800
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x4462ad
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x198], eax
test eax, eax
je 0x4462ad
lea ecx, [eax + 0xd]
push ecx
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
je 0x4462a3
push dword [ebp - 0x198]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4462a3
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x446250
sub ecx, edx
mov eax, 0x5c
mov edx, edi
mov word [ecx + edi], ax
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x446267
sub edx, ecx
mov ecx, str.iphlpapi.dll
sub edx, ecx
add edx, edi
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x446280
test ebx, ebx
je 0x44629a
push 8
push 0
push edi
call ebx
jmp 0x4462a1
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push edi
call dword [0x4c5004]
add esp, 4
mov dword [0x4c6650], esi
pop ebx
test esi, esi
je 0x4462d5
push str.if_nametoindex
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c664c]
test eax, eax
cmovne ecx, eax
mov dword [0x4c664c], ecx
push 3
push 2
push 0
push 6
call fcn.0046bee0
add esp, 0x10
test al, al
setne byte [0x4c7820]
push 0x4c7828
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
Function at 0x448b30
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x448b45
mov eax, dword [eax + 0x70]
mov al, byte [eax + 0xe3]
pop ebp
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x448b5a
xor al, al
pop ebp
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop ebp
ret

Function at 0x448b70
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x100], 2
jne 0x448bc1
mov eax, dword [ebp + 8]
test eax, eax
je 0x448b91
mov eax, dword [eax + 0x70]
mov al, byte [eax + 0xe3]
pop ebp
ret
push esi
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x448bad
xor esi, esi
test esi, esi
pop esi
setne al
pop ebp
ret
push eax
mov esi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
test esi, esi
pop esi
setne al
pop ebp
ret
mov al, 1
pop ebp
ret

Function at 0x448e90
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4c506c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x448ed6
lea eax, [ebp - 0x14]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
pop esi
setg al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00475c6f
mov esp, ebp
pop ebp
ret