joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457620
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [ebp - 4]
mov esi, 1
mov dword [ebp - 8], eax
cmp ecx, esi
jle 0x457688
push ebx
push edi
lea esp, [esp]
mov eax, dword [eax + esi*4]
xor ebx, ebx
inc esi
xor edi, edi
cmp esi, ecx
movzx ecx, word [eax]
sete bl
cmp ecx, 0x2d
je 0x45766a
cmp ecx, 0x2f
jne 0x457672
mov edi, 1
add eax, 2
mov ecx, dword [ebp + 8]
push ebx
push edi
push eax
mov edx, dword [ecx]
call dword [edx]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
cmp esi, ecx
jl 0x457650
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4582d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1cd6
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x4f91a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0
push 0x20219
push dword [0x4f910c]
lea ecx, [ebp - 0x2b4]
mov dword [ebp - 4], 0
push bind
call fcn.0044deb0
mov edi, dword [ebp - 0x2b4]
mov esi, eax
test esi, esi
jne 0x458472
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a90e0
add esp, 0xc
mov dword [ebp - 0x2a0], 0x208
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x2a4]
push eax
push 0
push 0x4d62a4
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x458472
mov eax, dword [ebp - 0x2a4]
cmp eax, 1
je 0x4583be
cmp eax, 2
je 0x4583be
mov esi, 0xd
jmp 0x458472
mov eax, dword [ebp - 0x2a0]
test eax, eax
je 0x4583e3
test al, 1
jne 0x4583d9
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x4583ec
mov esi, 0xd
jmp 0x458472
xor eax, eax
mov word [ebp - 0x218], ax
lea ecx, [ebp - 0x218]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4583f7
sub ecx, edx
sar ecx, 1
cmp ecx, 0x20
jne 0x458472
lea eax, [ebp - 0x298]
mov dword [ebp - 0x29c], eax
lea ecx, [ebp - 0x29c]
push 3
lea eax, [ebp - 0x218]
push eax
call fcn.00449670
mov edx, dword [ebp - 0x29c]
mov byte [ebp - 4], 1
cmp byte [edx], 0
jne 0x45843e
xor ecx, ecx
jmp 0x45844c
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x458443
sub ecx, ebx
push ecx
mov ecx, dword [ebp - 0x2a8]
push edx
call fcn.004073c0
mov eax, dword [ebp - 0x29c]
lea ecx, [ebp - 0x298]
cmp eax, ecx
je 0x458472
push eax
call fcn.0045f168
add esp, 4
test edi, edi
je 0x45847d
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046100d
mov esp, ebp
pop ebp
ret
Function at 0x4584a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1d0b
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x4f91a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ax, word [0x4eeb4c]
mov esi, dword [ebp + 8]
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push 0
push eax
call fcn.004a90e0
add esp, 0xc
mov dword [ebp - 0x2a0], 0x208
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x2a4], 1
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x2a4]
push eax
push 0x4d5138
push str.SOFTWAREliebao
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [ebp - 0x218], 0
jne 0x45854b
push 1
push 0x4ef390
mov ecx, esi
call fcn.004073c0
jmp 0x4585b1
lea eax, [ebp - 0x298]
mov dword [ebp - 0x29c], eax
lea ecx, [ebp - 0x29c]
push 3
lea eax, [ebp - 0x218]
push eax
call fcn.00449670
mov edx, dword [ebp - 0x29c]
mov dword [ebp - 4], 0
cmp byte [edx], 0
jne 0x458581
xor ecx, ecx
jmp 0x45858f
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x458586
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.004073c0
mov eax, dword [ebp - 0x29c]
lea ecx, [ebp - 0x298]
cmp eax, ecx
je 0x4585b1
push eax
call fcn.0045f168
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046100d
mov esp, ebp
pop ebp
ret
Function at 0x458610
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1d4b
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4f91a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x94], 7
mov dword [ebp - 0x98], 0
mov word [ebp - 0xa8], ax
push 0x17
push str.SOFTWAREClassesCLSID_
lea ecx, [ebp - 0xa8]
mov dword [ebp - 4], eax
call fcn.00407070
push 0x26
push str.9B7A98EC_7EF9_468c_ACC8_37C793DBD7E0
lea ecx, [ebp - 0xa8]
call fcn.00408850
push 0x18
push str.Implemented_Categories_
lea ecx, [ebp - 0xa8]
call fcn.00408850
push 0x26
push str.A5F7140E_4311_4ef9_AABC_F55941B5EBE5
lea ecx, [ebp - 0xa8]
call fcn.00408850
cmp dword [ebp - 0x94], 8
lea ecx, [ebp - 0xac]
push ecx
push 1
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xac], 0
cmovae eax, dword [ebp - 0xa8]
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
test eax, eax
jne 0x45877f
push 0x80
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004a90e0
add esp, 0xc
mov dword [ebp - 0xb0], 0x80
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb4], esi
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0xb4]
push eax
push esi
push str.idex
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x458773
cmp word [ebp - 0x90], si
jne 0x458744
xor ecx, ecx
jmp 0x45875f
lea ecx, [ebp - 0x90]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x458750
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x90]
mov ecx, edi
push eax
call fcn.00407070
mov esi, 1
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x94]
cmp ecx, 8
jb 0x45879d
inc ecx
push ecx
push dword [ebp - 0xa8]
lea ecx, [ebp - 0xa8]
call fcn.004085f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046100d
mov esp, ebp
pop ebp
ret

Function at 0x4587c0
Capabilities:
Create thread

Disassembly:
push 0x44b160
call fcn.004abf31
push 0x44b160
call fcn.004a9274
push 0x44b140
push 0x16
call fcn.004b14f8
add esp, 0x10
ret
push str.kdump.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x45880c
push str.KxEOpenDumpMonitorEx2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45880c
push esi
push 0
push 0
push eax
push 0x458820
push 0
push 0
call fcn.004bae98
add esp, 0x18
mov esi, eax
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x45880b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
jmp 0x44b180
Function at 0x45bd00
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2390
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4f91a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
cmp esi, ecx
je 0x45bd40
push 0xffffffffffffffff
push 0
push ecx
mov ecx, esi
call fcn.00407170
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [edi], ax
jne 0x45bd5d
xor ecx, ecx
jmp 0x45bd71
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45bd62
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00407070
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0045b130
add esp, 8
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x45bdab
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004085f0
push 1
xor eax, eax
mov dword [ebp - 0x14], 7
push 0x4eea78
mov ecx, esi
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00408850
cmp dword [ebp - 0x2c], 8
lea edx, [ebp - 0x40]
cmovae edx, dword [ebp - 0x40]
cmp word [edx], 0
jne 0x45bde2
xor ecx, ecx
jmp 0x45bdf6
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45bde7
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00408850
cmp dword [esi + 0x14], 8
jb 0x45be09
mov eax, dword [esi]
jmp 0x45be0b
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45be2c
cmp dword [ebp + 0x10], eax
je 0x45be2c
cmp dword [esi + 0x14], 8
jb 0x45be23
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x45be41
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004085f0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046100d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45bf00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d23cb
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4f91a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, 0x5258b0
call fcn.0044b270
push 0
push 0x1c
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, 0x5258b0
mov esi, eax
call fcn.0044b540
test esi, esi
jne 0x45bf65
xor al, al
jmp 0x45c0fc
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x45bf8f
xor ecx, ecx
jmp 0x45bfaf
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
jmp 0x45bfa0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45bfa0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00407070
cmp dword [ebp - 0x220], 0
mov dword [ebp - 4], 0
jne 0x45c05b
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0
push 0
call ebx
test eax, eax
je 0x45c09e
mov ecx, dword [ebp - 0x220]
lea esi, [eax + 1]
cmp esi, ecx
ja 0x45c019
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x220], esi
cmovae eax, dword [ebp - 0x230]
xor ecx, ecx
mov word [eax + esi*2], cx
jmp 0x45c02b
mov eax, esi
sub eax, ecx
lea ecx, [ebp - 0x230]
push 0
push eax
call fcn.00408790
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push esi
call ebx
test eax, eax
je 0x45c09e
cmp eax, dword [ebp - 0x220]
jae 0x45c09e
push eax
lea ecx, [ebp - 0x230]
call fcn.004064d0
lea eax, [ebp - 0x230]
cmp edi, eax
je 0x45c091
push eax
mov ecx, edi
call fcn.00417360
mov ecx, dword [edi + 0x10]
mov eax, dword [ebp - 0x220]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x220], ecx
mov ecx, dword [edi + 0x14]
mov dword [edi + 0x14], eax
mov dword [ebp - 0x21c], ecx
cmp dword [edi + 0x14], 8
mov ecx, dword [edi + 0x10]
jb 0x45c0a2
mov eax, dword [edi]
jmp 0x45c0a4
xor bl, bl
jmp 0x45c0dc
mov eax, edi
cmp word [eax + ecx*2 - 2], 0x5c
je 0x45c0b5
push 0x5c
mov ecx, edi
call fcn.0040bc30
push 6
push str.liebao
mov ecx, edi
call fcn.00408850
push 0x5c
mov ecx, edi
call fcn.0040bc30
push 9
push 0x4d6a9c
mov ecx, edi
call fcn.00408850
mov bl, 1
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x45c0fa
inc ecx
push ecx
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.004085f0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046100d
mov esp, ebp
pop ebp
ret
Function at 0x45c1c0
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4f91a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x45c1ee
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046100d
mov esp, ebp
pop ebp
ret 4
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004a90e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x45c1db
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004a951c
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x210]
push ecx
push ecx
push ecx
push ecx
push eax
push ecx
push ecx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x45c1db
push dword [ebp - 0x210]
push 0x4d62b8
push esi
call fcn.00418360
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov al, 1
pop esi
call fcn.0046100d
mov esp, ebp
pop ebp
ret 4

Function at 0x45c460
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2469
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4f91a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x60], 0
mov ecx, esi
push eax
push 0x4eeb4c
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x64], esi
mov word [esi], ax
call fcn.00407070
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 0
push eax
push 0
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x54], 0
call sub.IPHLPAPI.DLL_GetAdaptersInfo
push dword [ebp - 0x54]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
lea eax, [ebp - 0x54]
push eax
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x45c57d
test edi, edi
je 0x45c57d
mov ax, word [edi + 0x198]
mov ecx, dword [edi + 0x194]
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x58]
shr eax, 8
movzx eax, al
push eax
movzx eax, byte [ebp - 0x58]
push eax
mov eax, ecx
mov dword [ebp - 0x5c], ecx
shr eax, 0x18
push eax
mov eax, ecx
shr ecx, 8
shr eax, 0x10
movzx eax, al
push eax
movzx eax, cl
push eax
movzx eax, byte [ebp - 0x5c]
push eax
lea eax, [ebp - 0x50]
push 0x4d6da4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
cmp word [ebp - 0x50], 0
jne 0x45c55c
xor eax, eax
jmp 0x45c571
lea eax, [ebp - 0x50]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45c562
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call fcn.00407070
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046100d
mov esp, ebp
pop ebp
ret 4
Function at 0x45fb3a
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
mov edx, dword [ebp + 8]
push esi
push edi
mov esi, dword [edx]
mov edi, dword [edx + 4]
jbe 0x45fb8c
push ebx
mov ebx, dword [ebp + 0x10]
sub ebx, dword [ebp + 0x14]
lea eax, [esi + 1]
movzx esi, al
mov ecx, dword [edx + esi*4 + 8]
lea eax, [ecx + edi]
movzx edi, al
mov eax, dword [edx + edi*4 + 8]
mov dword [edx + esi*4 + 8], eax
add eax, ecx
mov dword [edx + edi*4 + 8], ecx
mov ecx, dword [ebp + 0x14]
movzx eax, al
mov al, byte [edx + eax*4 + 8]
xor al, byte [ebx + ecx]
mov byte [ecx], al
inc ecx
sub dword [ebp + 0xc], 1
mov dword [ebp + 0x14], ecx
jne 0x45fb54
pop ebx
mov dword [edx + 4], edi
pop edi
mov dword [edx], esi
pop esi
pop ebp
ret

Function at 0x45fd7e
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x5c
push 0
push esi
call fcn.004a90e0
add esp, 0xc
mov dword [esi], 0x67452301
xor eax, eax
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
inc eax
mov dword [esi + 0xc], 0x10325476
pop esi
pop ebp
ret
Function at 0x45fe9c
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ecx, dword [esp + 0x1c]
cmp ecx, 0
je 0x404395
call fcn.004041c6
jmp 0x4041b0

Function at 0x46c760
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4f91a4]
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 0x46c7b5
mov eax, dword [esp]
cmp al, 2
jne 0x46c7af
shr eax, 8
cmp al, 2
jne 0x46c7af
call fcn.00470f70
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0046100d
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
mov eax, 2
xor ecx, esp
call fcn.0046100d
add esp, 0x194
ret

Function at 0x471990
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4719ac
cmp dword [esi + 0x48], 0
je 0x4719ac
push 2
push 3
push esi
call fcn.00486940
add esp, 0xc
push dword [esp + 0xc]
call fcn.0047fa60
add esp, 4
test esi, esi
je 0x4719cd
cmp dword [esi + 0x48], 0
je 0x4719cd
push 3
push esi
call fcn.00486980
add esp, 8
pop esi
ret

Function at 0x472110
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x398], 2
je fcn.004720c0
mov al, 1
ret
Function at 0x47b990
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
push 0x4000
push dword [edi + 0x62c]
call fcn.00486f40
mov eax, dword [edi + 0x120]
add esp, 0x10
test eax, eax
je 0x47b9e4
cmp byte [edi + 0x4664], 0
jne 0x47b9e4
push dword [edi + 0x62c]
push 0x4f0fa8
push 0x100
push eax
call fcn.00486e50
add esp, 0x10
mov byte [edi + 0x4664], 1
cmp byte [edi + 0x340], 0
je 0x47ba6d
mov ecx, dword [edi + 0x62c]
push esi
mov esi, ecx
lea edx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x47ba00
sub esi, edx
cmp esi, 0x3fff
jae 0x47ba20
mov byte [ecx + esi], 0xa
inc esi
mov eax, dword [edi + 0x62c]
mov byte [esi + eax], 0
mov eax, dword [edi + 0x190]
push ebx
mov ebx, dword [edi + 0x62c]
test eax, eax
je 0x47ba45
push dword [edi + 0x11c]
push esi
push ebx
push 0
push edi
call eax
add esp, 0x14
pop ebx
pop esi
pop edi
ret
push dword [edi + 0x118]
push 1
push 2
push 0x4dc03c
call fcn.004b1f12
push dword [edi + 0x118]
push 1
push esi
push ebx
call fcn.004b1f12
add esp, 0x20
pop ebx
pop esi
pop edi
ret

Function at 0x47ba70
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x4f91a4]
xor eax, esp
mov dword [esp + 0x804], eax
push edi
mov edi, dword [esp + 0x810]
test edi, edi
je 0x47bb39
cmp byte [edi + 0x340], 0
je 0x47bb39
push esi
lea eax, [esp + 0x81c]
push eax
push dword [esp + 0x81c]
lea eax, [esp + 0x10]
push 0x801
push eax
call fcn.00486f40
lea esi, [esp + 0x18]
add esp, 0x10
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x47bad0
mov eax, dword [edi + 0x190]
sub esi, ecx
test eax, eax
je 0x47bb0e
push dword [edi + 0x11c]
lea ecx, [esp + 0xc]
push esi
push ecx
push 0
push edi
call eax
add esp, 0x14
pop esi
pop edi
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.0046100d
add esp, 0x808
ret
push dword [edi + 0x118]
push 1
push 2
push 0x4dc03c
call fcn.004b1f12
push dword [edi + 0x118]
lea eax, [esp + 0x1c]
push 1
push esi
push eax
call fcn.004b1f12
add esp, 0x20
pop esi
mov ecx, dword [esp + 0x808]
pop edi
xor ecx, esp
call fcn.0046100d
add esp, 0x808
ret

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

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x190]
call fcn.0047c150
add esp, 8
push 0
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [ebp], 0
cmp ebx, 0xffffffff
jne 0x47be26
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x47bdfe
pop edi
pop esi
mov dword [ebp], 0x51
xor eax, eax
pop ebp
pop ebx
ret
push esi
push edi
call fcn.00488f70
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.0047b990
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x4668], esi
mov eax, ebx
mov dword [ebp], 0x37
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x47c150
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov eax, edx
push ebx
push esi
shl eax, 4
lea esi, [ecx + 0x1b4]
mov ebx, dword [ecx + edx*4 + 0x190]
add esi, eax
mov eax, dword [ecx + 0x390]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x3c], 3
je 0x47c200
cmp dword [ecx + edx*4 + 0x1a4], 0x47bd00
jne 0x47c200
cmp dword [esi], 0
je 0x47c197
test edi, edi
je 0x47c200
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.0047b290
add esp, 0x14
cmp eax, 0xffffffff
je 0x47c200
test al, 1
je 0x47c200
cmp dword [esi], 0
jne 0x47c1e9
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x51e924]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x47c1e9
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x47c200
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
ret

Function at 0x47c210
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x190]
test eax, eax
je 0x47c239
push dword [esi + 0x11c]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push esi
call eax
add esp, 0x14
pop esi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x47c272
push dword [esi + 0x118]
lea eax, [eax + eax*2]
push 1
add eax, 0x4dc03c
push 2
push eax
call fcn.004b1f12
push dword [esi + 0x118]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.004b1f12
add esp, 0x20
xor eax, eax
pop esi
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x1d4], 0
je 0x47c35d
push eax
call fcn.004122e0
add esp, 4
test eax, eax
jne 0x47c37f
xor al, al
ret
mov eax, dword [eax + 0x190]
cmp eax, 0xffffffff
je 0x47c35a
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x47c37f
xor al, al
ret
mov al, 1
ret

Function at 0x47cd10
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [esp + 0x20]
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x47cd58
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00488f70
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0047ba70
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0047ba70
add esp, 8
pop edi
pop esi
ret