joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45fe3f
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push edi
push str.ReplaceFileW
xor ebx, ebx
push 0x6d1ca8
mov esi, ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edi, eax
test edi, edi
je 0x45fefe
push dword [0x7c5a10]
call fcn.0067b915
call fcn.0067b8f4
push eax
push dword [ebp + 0xc]
mov esi, 0x104
lea eax, [ebp - 0x208]
push str._s._u.tmp
push esi
push eax
call fcn.00461447
push dword [ebp + 0xc]
lea eax, [ebp - 0x410]
push str._s.new
push esi
push eax
call fcn.00461447
add esp, 0x28
lea eax, [ebp - 0x410]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
push ebx
push ebx
push 2
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push eax
push dword [ebp + 0xc]
call edi
mov esi, eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x45fefe
push 4
push ebx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
pop edi
test esi, esi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4601c3
Capabilities:
Copy file
Delete file

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
push dword [esp + 0x220]
xor ebx, ebx
mov esi, ebx
call fcn.0045d475
movzx ebp, al
test al, al
mov eax, 0x6d2128
je 0x4601ed
mov eax, str..new
push eax
push dword [esp + 0x224]
lea eax, [esp + 0x1c]
push 0x6d2e5c
push 0x104
push eax
call fcn.00461447
add esp, 0x14
lea eax, [esp + 0x14]
push 0x80
push 7
push eax
call fcn.0045d9b9
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x46022a
xor al, al
jmp 0x46029b
push dword [esp + 0x228]
push dword [esp + 0x228]
push eax
call fcn.0045de7d
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
call fcn.0045d949
test ebp, ebp
je 0x460288
push dword [esp + 0x220]
lea eax, [esp + 0x18]
push eax
call fcn.0045fe3f
movzx esi, al
test al, al
jne 0x460288
push ebx
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x228]
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
mov esi, eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [esp + 0x10], ebx
jne 0x460299
test esi, esi
jne 0x460296
test ebp, ebp
jne 0x460299
xor ebx, ebx
inc ebx
mov al, bl
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 0xc

Function at 0x460340
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x460350
xor al, al
jmp 0x4603ac
mov eax, dword [esp + 8]
push ebx
push esi
push edi
lea esi, [eax + eax]
lea eax, [esi + 2]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push esi
push dword [esp + 0x14]
xor ecx, ecx
push eax
mov word [esi + eax], cx
call fcn.0066a680
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
setne bl
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
mov al, bl
pop ebx
ret 8
Function at 0x46086b
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0x10
push eax
call dword [sym.imp.KERNEL32.DLL_GetComputerNameW]
test eax, eax
jne 0x4608ac
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Cant_get_computer_name____d__d
call fcn.004798e6
add esp, 0xc
push 0x6dcdb8
jmp 0x4608b0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
call fcn.00428153
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x460e10
Capabilities:
Check http status code

Disassembly:
mov eax, 0x6af054
call fcn.00651da4
sub esp, 0x44
push ebx
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 0x10]
mov esi, ecx
push eax
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push 0x20000013
push dword [esi]
mov dword [ebp - 0x18], ebx
call dword [0x7c0b48]
test eax, eax
je 0x460e8a
cmp dword [ebp - 0x14], 0xc8
je 0x460e8a
push dword [ebp - 0x14]
lea eax, [ebp - 0x50]
push str.HTTP_Reply__d
push eax
call fcn.00462014
add esp, 0xc
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], ebx
jb 0x460e72
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.00460ddb
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.004284eb
jmp 0x460f4b
push edi
xor eax, eax
mov byte [ebp - 0x38], bl
lea edi, [ebp - 0x37]
mov dword [ebp - 0x10], 0x14
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x1d
push dword [esi]
call dword [0x7c0b48]
test eax, eax
je 0x460ed3
lea eax, [ebp - 0x38]
push str.gzip
push eax
call fcn.0067b962
pop ecx
pop ecx
test eax, eax
jne 0x460ed3
or byte [esi + 0x25], 1
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], 0x20
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
push eax
lea eax, [esi + 5]
push eax
push 1
push dword [esi]
call dword [0x7c0b48]
push ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 4
push eax
lea eax, [ebp - 0x24]
push eax
push 0x20000005
push dword [esi]
call dword [0x7c0b48]
test eax, eax
je 0x460f1d
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], ebx
push 0xa
pop ecx
xor eax, eax
lea edi, [esi + 0x2c]
rep stosd dword es:[edi], eax
mov edi, 0x2000
mov dword [esi + 0x2c], 0x28
push edi
call fcn.0045c47c
mov ecx, esi
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edi
mov byte [esi + 4], 1
call fcn.00460f9e
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4644e1
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
sub esp, 0x6c
mov eax, 0x6af343
call fcn.00651da4
sub esp, 0x1a8
and dword [ebp + 0x60], 0
lea ecx, [ebp - 0x70]
push ebx
push esi
push edi
call fcn.004ca926
and dword [ebp - 4], 0
lea ecx, [ebp - 0x108]
xor ebx, ebx
inc ebx
push ebx
push 2
call fcn.0044783c
lea eax, [ebp + 0x6c]
mov byte [ebp - 4], bl
push eax
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x64]
push eax
call fcn.00491012
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.0043b86a
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.0043b86a
push 0x55
lea eax, [ebp - 0x1b4]
mov byte [ebp - 4], 3
push eax
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultLocaleName]
cmp eax, ebx
lea eax, [ebp - 0x1b4]
jg 0x46456d
mov eax, 0x6dcdb8
push eax
lea ecx, [ebp + 0x48]
call fcn.00428153
push str.Mozilla_5.0__
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 4
push eax
call fcn.00428875
push 0x6dd66c
lea eax, [ebp + 0x48]
mov edi, 0x6dd670
push eax
push edi
call fcn.00490ec8
push eax
push 0x2e
push dword [ebp + 0x6c]
mov esi, 0x6db638
push 0x2e
push dword [ebp + 0x68]
push 0x2e
push dword [ebp + 0x64]
push esi
call fcn.00490f1c
push eax
push edi
lea eax, [ebp + 0x30]
push eax
push esi
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00462f48
push eax
call fcn.00428875
push eax
call fcn.00462f48
push eax
call fcn.00428875
push eax
call fcn.00428ac8
push eax
call fcn.00428875
mov ecx, eax
call fcn.00463e0c
push eax
call fcn.00462d51
mov ecx, eax
call fcn.00463e0c
push eax
call fcn.00462d51
mov ecx, eax
call fcn.00463e0c
push eax
call fcn.00462d51
mov ecx, eax
call fcn.00463e0c
push eax
call fcn.00428875
push eax
call fcn.00462f48
push eax
call fcn.00428875
lea eax, [ebp]
push eax
call fcn.004646c5
push eax
push 0x7573ec
push str.iexplore
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 5
push eax
call fcn.00428ac8
push eax
call fcn.00428875
push eax
call fcn.00462f48
mov byte [ebp - 4], 4
xor esi, esi
lea ecx, [ebp]
push esi
push ebx
call fcn.004284eb
push dword [ebp + 0x78]
lea ecx, [ebp - 0x108]
call fcn.00452c78
push esi
push ebx
lea ecx, [ebp + 0x48]
call fcn.004284eb
push esi
push ebx
lea ecx, [ebp + 0x30]
call fcn.004284eb
push esi
push ebx
lea ecx, [ebp + 0x18]
call fcn.004284eb
lea ecx, [ebp - 0x108]
call fcn.00448430
lea ecx, [ebp - 0x70]
call fcn.004cab93
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x78]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
lea esp, [ebp + 0x70]
pop ebp
ret 4
Function at 0x467d87
Capabilities:
Create thread

Disassembly:
mov eax, 0x6af5cc
call fcn.00651da4
sub esp, 0x20
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x14], ebx
and dword [ebp - 0x10], ebx
push edi
mov edi, dword [ebp + 0x20]
test edi, edi
jne 0x467da9
lea edi, [ebp - 0x10]
push 0x20
call fcn.00651ae6
mov esi, eax
pop ecx
mov dword [ebp + 0x20], esi
and dword [ebp - 4], 0
test esi, esi
je 0x467dec
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.0040f49f
mov eax, dword [ebp + 0x14]
lea ecx, [esi + 8]
mov dword [esi], eax
xor ebx, ebx
mov eax, dword [ebp + 0x18]
inc ebx
mov dword [esi + 4], eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], ebx
call fcn.0040fa4b
jmp 0x467dee
xor esi, esi
test bl, 1
je 0x467dff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040facf
push edi
push dword [ebp + 0x1c]
push esi
push 0x46812e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edi, eax
test edi, edi
jne 0x467e28
test esi, esi
je 0x467e28
push 1
mov ecx, esi
call fcn.00467d61
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x469784
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, dword [0x799c7c]
cmp esi, 0x270
jl 0x469849
xor esi, esi
push ebx
mov edx, esi
mov ebx, SysReAllocString
mov ecx, dword [edx*4 + 0x7c0e2c]
xor ecx, dword [edx*4 + 0x7c0e28]
and ecx, ebx
xor ecx, dword [edx*4 + 0x7c0e28]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x799e80]
xor ecx, dword [edx*4 + 0x7c145c]
mov dword [edx*4 + 0x7c0e28], ecx
inc edx
cmp edx, 0xe3
jl 0x4697a1
cmp edx, 0x26f
jge 0x46981a
push edi
lea edi, [edx*4 + 0x7c0e28]
mov ecx, dword [edi]
xor ecx, dword [edi + 4]
and ecx, ebx
xor ecx, dword [edi]
mov eax, ecx
shr ecx, 1
and eax, 1
mov eax, dword [eax*4 + 0x799e80]
xor eax, dword [edi - 0x38c]
xor eax, ecx
mov dword [edi], eax
add edi, 4
cmp edi, 0x7c17e4
jl 0x4697ed
pop edi
mov ecx, dword [0x7c0e28]
xor ecx, dword [0x7c17e4]
and ecx, ebx
xor ecx, dword [0x7c17e4]
mov eax, ecx
shr ecx, 1
and eax, 1
pop ebx
xor ecx, dword [eax*4 + 0x799e80]
xor ecx, dword [0x7c1458]
mov dword [0x7c17e4], ecx
mov ecx, dword [esi*4 + 0x7c0e28]
mov eax, ecx
shr eax, 0xb
inc esi
xor ecx, eax
mov dword [0x799c7c], esi
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop esi
ret

Function at 0x4699e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
xor edx, edx
mov dword [0x7c0e28], eax
inc edx
mov ecx, 0x7c0e28
mov eax, dword [ecx]
shr eax, 0x1e
xor eax, dword [ecx]
imul eax, eax, 0x6c078965
add eax, edx
inc edx
mov dword [ecx + 4], eax
add ecx, 4
cmp ecx, 0x7c17e4
jl 0x4699f1
mov dword [0x799c7c], edx
ret 4
Function at 0x46aa3a
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x46aa70
xor eax, eax
cmp dword [ebp + 0x14], eax
setne al
cmp dword [ebp + 0x18], 0
je 0x46aa5e
or eax, 2
test ecx, eax
je 0x46aa70
not eax
and eax, ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
pop ebp
ret 0x14

Function at 0x46ad5f
Capabilities:
Copy file

Disassembly:
push ebp
sub esp, 0x54
mov eax, 0x6c440b
call fcn.00651da4
sub esp, 0x74
push ebx
push esi
mov esi, dword [ebp + 0x64]
push edi
push dword [ebp + 0x6c]
mov edi, dword [ebp + 0x68]
push esi
push dword [ebp + 0x60]
and dword [edi], 0
call fcn.0045fb4c
mov ebx, eax
test ebx, ebx
jne 0x46ada9
push dword [ebp + 0x60]
call fcn.0045d475
xor ecx, ecx
test al, al
setne cl
add ecx, 2
xor eax, eax
mov dword [edi], ecx
jmp 0x46aedb
cmp byte [ebx], 0x64
jne 0x46aed9
cmp dword [esi], 0x39
jb 0x46aed9
push 0x11
push str.d10:.fileguard40:
push ebx
call fcn.0066ae97
add esp, 0xc
test eax, eax
je 0x46ade7
push 0x11
push str.d10:file_guard40:
push ebx
call fcn.0066ae97
add esp, 0xc
test eax, eax
jne 0x46aed9
push 0xa
pop ecx
push 1
push 0x28
lea eax, [ebp]
push eax
lea eax, [ebp + 0x2c]
lea esi, [ebx + 0x11]
lea edi, [ebp]
rep movsd dword es:[edi], dword [esi]
push eax
mov byte [ebp + 0x28], 0
call fcn.0046dcd1
test al, al
jne 0x46ae12
mov eax, str.malformed_guard
jmp 0x46ae89
mov esi, dword [ebp + 0x64]
add dword [esi], 0xffffffc8
mov eax, dword [esi]
dec eax
push eax
lea eax, [ebx + 0x39]
push eax
lea eax, [ebx + 1]
push eax
call fcn.00669cc0
mov eax, dword [esi]
lea ecx, [ebp - 0x80]
add esp, 0xc
mov byte [ebx + eax], 0
call fcn.00467158
push dword [esi]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x80]
push ebx
call fcn.004670f4
mov edx, eax
lea esi, [ebp + 0x2c]
xor ecx, ecx
mov eax, dword [esi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x46ae78
inc ecx
cmp ecx, 5
jne 0x46ae50
push dword [ebp + 0x60]
push str.File_passed_integrity_check:__s
call fcn.0040e854
add esp, 8
lea ecx, [ebp - 0x80]
call fcn.0040e854
jmp 0x46aed9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.0040e854
mov eax, str.hash_doesnt_match
push dword [ebp + 0x60]
push eax
push str.Warning:_file_integrity_check_failed___s_:__s
call fcn.0047995d
push str.Ignore_this_warning_if_you_switched_to_1.6.1_or_older_and_back
call fcn.0047995d
add esp, 0x10
lea eax, [ebp + 0x40]
push 0x6de958
push dword [ebp + 0x60]
push eax
call fcn.0046b0cf
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
jae 0x46aec1
lea eax, [ebp + 0x40]
push 0
push eax
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
push 0
push 1
lea ecx, [ebp + 0x40]
call fcn.004284eb
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
lea esp, [ebp + 0x58]
pop ebp
ret 0x10
Function at 0x46cc19
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x46cc59
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x46cc59
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov esi, eax
mov eax, esi
pop esi
ret 4
Function at 0x46f843
Capabilities:
Delete file

Disassembly:
mov eax, 0x6afad5
call fcn.00651da4
sub esp, 0x28
push ebx
push esi
push dword [0x79e878]
xor ebx, ebx
mov byte [ebp - 0xd], bl
call fcn.0047fc5b
mov esi, eax
test esi, esi
jne 0x46f874
push ebx
mov byte [ebp - 0xd], 1
call fcn.0047fc5b
mov esi, eax
mov eax, fcn.0047f32c
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ebx
test esi, esi
je 0x46f91c
push str.campaigncode.txt
lea eax, [ebp - 0x34]
mov dword [ebp - 0x14], ebx
push eax
call fcn.0047aca8
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 1
jb 0x46f8a7
mov eax, dword [eax]
push edi
lea ecx, [ebp - 0x14]
push ecx
push eax
push esi
call fcn.0047f670
push ebx
push 1
lea ecx, [ebp - 0x34]
mov edi, eax
call fcn.004284eb
test edi, edi
je 0x46f8ed
cmp dword [ebp - 0x14], 0
je 0x46f8ed
push edi
call fcn.00678742
pop ecx
mov ecx, 0x7c1a90
mov ebx, eax
call fcn.0046fcbe
test eax, eax
jne 0x46f8e7
mov dword [0x7c295c], ebx
mov dword [0x7c2958], ebx
cmp byte [ebp - 0xd], 0
je 0x46f906
cmp dword [esi + 0x14], 8
jb 0x46f8fd
mov eax, dword [esi]
jmp 0x46f8ff
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov byte [ebp - 4], 2
test edi, edi
je 0x46f916
push 1
push edi
call fcn.0045c46f
mov eax, fcn.0047f32c
pop edi
mov dword [ebp - 4], 3
test eax, eax
je 0x46f931
test esi, esi
je 0x46f931
push esi
call fcn.0047f32c
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x46fc2b
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x6afb3f
call fcn.00651da4
sub esp, 0xc
push esi
push edi
xor edx, edx
lea edi, [ecx + 0xef0]
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x14], edx
jb 0x46fc4f
mov eax, dword [edi]
jmp 0x46fc51
mov eax, edi
push edx
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
xor ecx, ecx
mov dword [ebp - 0x10], eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006520e5
mov esi, eax
pop ecx
mov dword [ebp - 0x18], esi
and dword [ebp - 4], 0
cmp dword [edi + 0x14], 8
jb 0x46fc83
mov edi, dword [edi]
push dword [ebp - 0x10]
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
mov ecx, dword [ebp + 8]
push esi
call fcn.00428153
test esi, esi
je 0x46fca2
push esi
call fcn.00651dd2
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4715f1
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x6afd55
call fcn.00651da4
sub esp, 0x44
push ebx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push edi
mov dword [ebp - 4], ebx
mov byte [ebp - 0xd], 1
call fcn.00475363
mov edi, dword [ebp + 8]
xor ecx, ecx
inc ecx
mov dword [ebp - 4], ecx
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], ebx
jb 0x47162e
mov eax, dword [edi]
jmp 0x471630
mov eax, edi
mov byte [eax], bl
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ebx
call fcn.00472dc3
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
sar ecx, 2
test ecx, ecx
je 0x471767
push esi
call fcn.00472dc3
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x14], eax
mov edx, dword [eax + 8]
jmp 0x47173d
mov edi, dword [edx + 4]
movzx edx, word [edx + 8]
add edi, dword [eax]
test dl, 0xe0
je 0x471734
and edx, 0xf
jmp dword [edx*4 + 0x471a39]
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
add edx, 0x1c
mov ebx, dword [edx]
mov dword [ebp - 0x18], edx
test ebx, ebx
jne 0x471663
mov ebx, dword [ebp - 0x1c]
inc ebx
mov dword [ebp - 0x1c], ebx
call fcn.00472dc3
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
sar ecx, 2
cmp ebx, ecx
jb 0x47164e
pop esi
mov dword [ebp - 4], 5
call fcn.004753a4
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4759f6
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 4], 0xffffffff
je 0x475af9
push ebx
xor ebx, ebx
inc ebx
cmp byte [esp + 0x10], 0
je 0x475a35
xor eax, eax
mov word [esp + 0x10], bx
push 4
mov word [esp + 0x16], ax
lea eax, [esp + 0x14]
push eax
push 0x80
push 0xffff
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_setsockopt]
test byte [edi + 0xe], 0x20
je 0x475ac5
mov ecx, dword [edi + 0x54]
test ecx, ecx
jns 0x475a4a
neg ecx
jmp 0x475a4c
xor ecx, ecx
mov esi, dword [edi + 0x90]
test esi, esi
jns 0x475a5a
neg esi
jmp 0x475a5c
xor esi, esi
xor eax, eax
push ebp
mov dword [esp + 0x14], eax
cmp dword [edi + 0xf4], eax
jle 0x475a95
lea ebp, [edi + 0xe0]
mov ebx, dword [ebp]
test ebx, ebx
je 0x475a85
mov eax, ecx
cdq
add dword [ebx + 0x2c], eax
mov eax, dword [esp + 0x14]
adc dword [ebx + 0x30], edx
inc eax
add ebp, 4
mov dword [esp + 0x14], eax
cmp eax, dword [edi + 0xf4]
jl 0x475a71
xor ebx, ebx
cmp dword [edi + 0xf4], ebx
jle 0x475ac1
lea ebp, [edi + 0xe0]
mov ecx, dword [ebp]
test ecx, ecx
je 0x475ab5
mov eax, esi
cdq
add dword [ecx + 0x34], eax
adc dword [ecx + 0x38], edx
inc ebx
add ebp, 4
cmp ebx, dword [edi + 0xf4]
jl 0x475aa5
xor ebx, ebx
inc ebx
pop ebp
push dword [edi + 4]
call fcn.0047736f
or dword [edi + 4], 0xffffffff
test byte [edi + 0xe], 0x20
je 0x475af8
cmp byte [edi + 0x18], 6
jb 0x475af8
push ebx
push 2
push 0x40
lea ecx, [edi + 0x4c]
call fcn.004739bb
push 0
push 2
push 0x40
lea ecx, [edi + 0x4c]
call fcn.004739bb
pop ebx
and byte [edi + 0xe], 0xdf
cmp byte [edi + 0xe], 0
jge 0x475b22
mov esi, dword [edi + 0xf8]
and dword [edi + 0xf8], 0
test esi, esi
je 0x475b22
push esi
call fcn.004e02e7
push 0
push esi
call fcn.004e0c64
pop edi
pop esi
ret 4
Function at 0x476671
Capabilities:
Terminate process

Disassembly:
mov eax, 0x6b68ad
call fcn.00651da4
sub esp, 0x18
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.0047aca8
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x476696
mov eax, dword [eax]
push eax
push 0x6d201c
push 0x10
call fcn.00491bf0
add esp, 0xc
lea ecx, [ebp - 0x24]
push 0
push 1
call fcn.004284eb
push 1
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x476c63
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x476c96
call fcn.004c8749
jmp 0x476ca2
lea eax, [ebp - 0x84]
push eax
call fcn.004c868f
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x476d9a
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
cmp dword [ecx + 4], 0xffffffff
jne 0x476dae
or eax, 0xffffffff
jmp 0x476de1
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80
push eax
lea eax, [ebp - 0x98]
push eax
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x476da9
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.004c868f
movzx eax, word [eax + 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x476e66
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
mov ebx, ecx
push 0
push 0
push 1
push ebp
call fcn.00462c94
movzx eax, al
mov ecx, ebx
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
push eax
call fcn.00477021
cmp dword [ebx + 4], 0xffffffff
jne 0x476e9f
xor al, al
jmp 0x476f82
cmp byte [esp + 0x24], 0
push esi
push edi
mov dword [esp + 0x28], 1
je 0x476ef4
push 4
lea eax, [esp + 0x2c]
push eax
push 4
push 0xffff
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x476ef4
call fcn.0067756d
mov esi, eax
call fcn.0067756d
push dword [esi]
mov edi, eax
call fcn.006813d5
push eax
push dword [edi]
push dword [ebx + 4]
push str.Cant_set_SO_REUSEADDR_option_on_socket__d____d__s
call fcn.004798e6
add esp, 0x14
push ebp
mov ecx, ebx
call fcn.004755a6
cmp eax, 0xffffffff
jne 0x476f44
cmp byte [esp + 0x2c], 0
mov edi, 0x2740
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
jne 0x476f19
call esi
cmp eax, edi
je 0x476f76
call esi
cmp eax, edi
jne 0x476f76
push 5
pop ecx
xor eax, eax
lea edi, [esp + 0x10]
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov word [esp + 0x20], ax
mov ecx, ebx
lea eax, [esp + 0x10]
push eax
call fcn.004755a6
cmp eax, 0xffffffff
je 0x476f76
jmp 0x476f55
push ebp
push dword [ebx + 4]
push str.Bound_listening_socket__d_to_IP__A
call fcn.004798e6
add esp, 0xc
push 0xa
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x476f7a
push ebp
push dword [ebx + 4]
push str.Cant_listen_on_socket__d_IP__A
call fcn.004798e6
add esp, 0xc
xor al, al
jmp 0x476f80
mov byte [ebx + 0xe], 0
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8