joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx + 8]
test edx, edx
jne 0x40a150
xor eax, eax
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push edi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a157
push edx
sub ecx, edi
push 1
push ecx
push dword [ebp + 8]
call fcn.00543f50
add esp, 0x10
pop edi
pop ebp
ret 4

Function at 0x40c7a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40c7c7
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40c7c0
shr eax, 4
and eax, 1
mov dword [ecx], eax
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40cb40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5b7de4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x40cbe1
cmp byte [esi + 0x3d], 0
je 0x40cbe1
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40cb97
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40cba9
sub eax, 1
je 0x40cbad
sub eax, 2
je 0x40cbe1
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005189ad
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40cbca
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00543f50
add esp, 0x10
cmp edi, eax
jne 0x40cb97
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005189ad
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.005189ad
mov esp, ebp
pop ebp
ret
Function at 0x40da60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5b7de4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x40da90
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005189ad
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40dacc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40dacc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005189ad
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x40dbb1
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x40daf4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40db27
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0053ee72
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005189ad
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x40dbb1
cmp eax, 1
jle 0x40db84
cmp eax, 3
jne 0x40dbb1
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.0040b210
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005189ad
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40dba1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00543f50
add esp, 0x10
cmp edi, eax
jne 0x40dbb1
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x40dab7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005189ad
mov esp, ebp
pop ebp
ret 4
Function at 0x40e360
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x40e384
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e450
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x40e3a5
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x40e3a7
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x40e42f
jg 0x40e3ba
test esi, esi
je 0x40e42f
test ecx, ecx
jl 0x40e3fc
jg 0x40e3c4
test eax, eax
je 0x40e3fc
cmp ebx, ecx
jg 0x40e3d6
jl 0x40e3ce
cmp esi, eax
jae 0x40e3d6
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0052ffe0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x40e402
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x40e42f
jg 0x40e40c
test esi, esi
je 0x40e42f
cmp dword [edi + 0x4c], 0
je 0x40e42f
mov ecx, edi
call fcn.0040d110
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.0053f142
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40e544
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e600
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x40e565
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x40e567
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x40e5e4
jg 0x40e57a
test esi, esi
je 0x40e5e4
test ecx, ecx
jl 0x40e5be
jg 0x40e584
test eax, eax
je 0x40e5be
cmp edi, ecx
jg 0x40e596
jl 0x40e58e
cmp esi, eax
jae 0x40e596
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.0052ffe0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x40e5c1
mov edx, dword [ebp + 8]
test edi, edi
jl 0x40e5e4
jg 0x40e5cb
test esi, esi
je 0x40e5e4
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x40e5e4
push eax
push esi
push 1
push edx
call fcn.00543f50
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x414040
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e1f9
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5b7de4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], 0
xor esi, esi
mov edi, dword [ebp + 8]
mov ebx, 3
push esi
push 0x5707b4
mov ecx, edi
mov dword [ebp - 4], 0
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
call fcn.0040a4a0
xor eax, eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], eax
nop dword [eax]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4140fc
lea ecx, [ebp - 0x14]
push ecx
push eax
push 0
push 0x10
push 2
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov esi, eax
mov eax, dword [ebp - 0x10]
cmp esi, 0x6f
jne 0x4140fc
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
sub ebx, 1
je 0x414166
mov eax, dword [ebp - 0x14]
jmp 0x4140b0
test esi, esi
jne 0x41414e
mov dword [ebp - 0x1c], eax
mov ecx, eax
test eax, eax
je 0x414166
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
nop
mov esi, dword [ecx + 0x10]
test esi, esi
je 0x414144
test ebx, ebx
je 0x41412c
mov ecx, dword [ebp - 0x18]
push eax
push dword [esi + 0xc]
push edi
call ebx
test eax, eax
je 0x414137
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x18]
push eax
push dword [esi + 0xc]
push edi
call dword [ebp + 0xc]
mov esi, dword [esi + 8]
mov eax, dword [ebp + 0x14]
test esi, esi
jne 0x414117
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jne 0x414110
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x414166
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4143f0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e280
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5b7de4]
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 esi, ecx
lea eax, [ebp - 0x28]
push eax
call fcn.00414180
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.00413620
cmp dword [eax + 0x14], 0x10
mov ecx, eax
mov byte [ebp - 4], 1
jb 0x414446
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040a340
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x414486
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41447c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41453e
push edx
push ecx
call fcn.005189ee
add esp, 8
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
mov eax, 0x1505
mov ebx, dword [ebp - 0x18]
cmovae ecx, edx
xor esi, esi
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], eax
mov edi, eax
test ebx, ebx
je 0x4144e8
dec ecx
mov dword [ebp - 0x4c], ecx
nop dword [eax]
movzx ecx, byte [ecx + esi + 1]
lea edx, [esi + 1]
shl eax, 5
add eax, dword [ebp - 0x44]
xor eax, ecx
mov dword [ebp - 0x44], eax
cmp edx, ebx
jae 0x4144db
mov eax, dword [ebp - 0x48]
movzx ecx, byte [esi + eax + 1]
mov eax, edi
shl eax, 5
add edi, eax
mov eax, dword [ebp - 0x44]
xor edi, ecx
mov ecx, dword [ebp - 0x4c]
add esi, 2
cmp esi, ebx
jb 0x4144b0
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
imul esi, edi, 0x5d588b65
add esi, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x414520
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x414516
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414543
push ecx
push edx
call fcn.005189ee
add esp, 8
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.005189ad
mov esp, ebp
pop ebp
ret
call fcn.00545078
call fcn.00545078
int3
Function at 0x415370
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e42a
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5b7de4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x5c8668
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x5c8680]
mov dword [ebp - 4], 0
test edi, edi
jne 0x4154ff
push 0x5c
call fcn.005189be
mov edi, eax
add esp, 4
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x4154f7
mov dword [edi], vtable.Coordinators::AppSettingsBase.0
lea eax, [edi + 0x40]
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0xf
mov byte [edi + 0x1c], 0
push eax
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi + 0x58], vtable.Utilities::Singleton_class_Coordinators::AppCommonSettings__class_Utilities::SingletonCreateUsingNew_.0
push 4
push str.Main
lea ecx, [edi + 4]
mov byte [ebp - 4], 3
mov dword [edi], vtable.Coordinators::AppCommonSettings.0
mov dword [edi + 0x58], vtable.Coordinators::AppCommonSettings.1.0
call fcn.0040a4a0
lea eax, [ebp - 0x28]
push str..._server_
push eax
call fcn.00413d10
lea esi, [edi + 0x1c]
mov dword [ebp - 0x2c], eax
add esp, 8
cmp esi, eax
je 0x41548b
mov ecx, esi
call fcn.00408f00
mov eax, dword [ebp - 0x2c]
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4154bb
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4154b1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41552d
push edx
push ecx
call fcn.005189ee
add esp, 8
cmp dword [esi + 0x14], 0x10
mov eax, esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
jb 0x4154d7
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x12
push str.commonsettings.snc
mov ecx, esi
call fcn.0040a340
mov ecx, edi
call fcn.00417720
jmp 0x4154f9
xor edi, edi
mov dword [0x5c8680], edi
inc dword [0x5c8684]
push 0x5c8668
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
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.005189ad
mov esp, ebp
pop ebp
ret
call fcn.00545078
int3
Function at 0x4172d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5b7de4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x14]
lea ebx, [edi + 0x40]
xorps xmm0, xmm0
push eax
push dword [ebx]
movups xmmword [ebp - 0x14], xmm0
mov dword [ebp - 0x20], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp + 0xc]
add eax, 0xfffffffb
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov ecx, eax
and ecx, 0xffff0000
movzx eax, ax
or ecx, eax
lea eax, [edi + 0x20]
mov dword [ebp - 0x1c], ecx
xor ecx, ecx
test eax, eax
cmove edi, ecx
cmp byte [eax + 0x1c], cl
je 0x417359
push 0xe801
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp esi, 2
jne 0x41734a
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41735e
test esi, esi
jne 0x417359
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41735e
cmp esi, 1
je 0x417374
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
shr eax, 0x10
cwde
push eax
movsx eax, cx
lea ecx, [edi + 0x20]
push eax
call fcn.00412780
push 0
push 0
push 0x101f
push dword [ebx]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
call ebx
push 0
push 0
push 0x1200
push eax
call ebx
mov edi, eax
xor esi, esi
test edi, edi
je 0x4173be
mov eax, dword [ebp - 0x18]
xor edx, edx
div edi
movzx eax, ax
mov dword [ebp - 0x18], eax
push eax
mov eax, dword [ebp - 0x20]
push esi
push 0x101e
push dword [eax]
call ebx
mov eax, dword [ebp - 0x18]
inc esi
cmp esi, edi
jb 0x4173a8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005189ad
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4186b0
Capabilities:
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5b7de4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0x14]
push 0x11
push 2
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
test esi, esi
je 0x41874a
cmp esi, 0xffffffff
je 0x41874a
cmp dword [ebp + 0x10], 0
je 0x4186fd
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 0x20
push 0xffff
push esi
call dword [sym.imp.WSOCK32.dll_setsockopt]
push dword [ebp + 8]
mov eax, 2
mov word [ebp - 0x14], ax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x12], ax
mov eax, dword [ebp + 0xc]
push 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 0x18]
push edi
push esi
call dword [sym.imp.WSOCK32.dll_sendto]
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005189ad
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.005189ad
mov esp, ebp
pop ebp
ret 0x14

Function at 0x418ca0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
test eax, eax
je 0x418cfa
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
push 0x3e8
push dword [esi + 8]
mov dword [esi + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x418cfa
push 1
push dword [esi + 8]
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x418cfa
push dword [esi + 8]
mov dword [esi + 4], 2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov eax, 1
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5b7de4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x200
lea eax, [ebp - 0x204]
mov esi, ecx
push 0
push eax
call fcn.00530cf0
mov edi, dword [sym.imp.WSOCK32.dll_recvfrom]
lea eax, [ebp - 0x218]
add esp, 0xc
mov dword [ebp - 0x218], 0x10
xorps xmm0, xmm0
movups xmmword [ebp - 0x214], xmm0
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0x200
lea eax, [ebp - 0x204]
push eax
push dword [esi + 0x18]
call edi
test eax, eax
jle 0x418de8
nop dword [eax]
mov edx, dword [esi]
lea ecx, [ebp - 0x214]
push ecx
push eax
lea eax, [ebp - 0x204]
mov ecx, esi
push eax
call dword [edx + 0xc]
test eax, eax
jne 0x418de8
push 0x200
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.00530cf0
add esp, 0xc
mov dword [ebp - 0x218], 0x10
lea eax, [ebp - 0x218]
xorps xmm0, xmm0
movups xmmword [ebp - 0x214], xmm0
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0x200
lea eax, [ebp - 0x204]
push eax
push dword [esi + 0x18]
call edi
test eax, eax
jg 0x418d80
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005189ad
mov esp, ebp
pop ebp
ret
Function at 0x41df40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x5b7de4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push 0x30
push 0
push esi
call fcn.00530cf0
push 0x90
lea eax, [ebp - 0x94]
mov dword [ebp - 0x98], 0x94
push 0
push eax
call fcn.00530cf0
add esp, 0x18
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41dfa3
cmp dword [ebp - 0x94], 6
mov eax, 0x30
jae 0x41dfa8
mov eax, 0x2c
mov ecx, dword [ebp + 0x10]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
test ecx, ecx
jne 0x41dfc6
push edi
call dword [sym.imp.USER32.dll_GetParent]
or dword [esi + 4], 1
mov ecx, edi
jmp 0x41dfc8
mov eax, edi
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xc], ecx
test eax, eax
je 0x41dfdc
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x10], xmm0
mov ecx, dword [0x5c89a0]
mov eax, esi
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esi + 0x28], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005189ad
mov esp, ebp
pop ebp
ret 0x18
Function at 0x421610
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f4cc
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push esi
push edi
mov eax, dword [0x5b7de4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 8
call fcn.005189be
mov edi, eax
add esp, 4
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x4217a8
push 0x34
mov byte [ebp - 4], 1
mov dword [edi], vtable.ThreadPoolHelper.0
call fcn.005189be
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x421790
mov edi, dword [0x5b71c8]
lea esi, [eax + 4]
push 0
mov dword [eax], vtable.ThreadPool.0
mov ecx, esi
mov dword [ebp - 0x18], esi
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0042da60
mov dword [esi], eax
mov esi, dword [ebp - 0x14]
lea eax, [esi + 0xc]
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], eax
mov ecx, eax
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.0042da20
mov dword [esi + 0xc], eax
lea eax, [esi + 0x1c]
mov byte [ebp - 4], 4
push eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x18], eax
test eax, eax
je 0x4217bd
cmp dword [esi + 0x14], 0
mov dword [ebp - 0x10], 0
jle 0x421777
lea eax, [ebp - 0x18]
push eax
push 4
push esi
push 0x42c220
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x4217bd
push 0
push 0
push 1
push 0
mov byte [ebp - 0x34], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
lea ecx, [esi + 0xc]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x2c], edi
lea eax, [ebp - 0x24]
movups xmm0, xmmword [ebp - 0x34]
push 0
push eax
movups xmmword [ebp - 0x44], xmm0
call fcn.0041d3b0
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [esi + 0x14]
jl 0x421706
mov edi, dword [ebp - 0x1c]
mov eax, edi
mov dword [edi + 4], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor esi, esi
mov eax, edi
mov dword [edi + 4], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor edi, edi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x5a3278
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 1
push eax
call fcn.00531020
int3