joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460efd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [edi + 4]
inc eax
imul ebx, eax, 0xc
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x460f27
push ebx
call fcn.004a8e36
pop ecx
mov esi, eax
mov dword [ebp - 4], eax
mov dword [esi], 1
mov eax, dword [edi + 0xc]
mov dword [esi + 4], eax
xor eax, eax
cmp byte [edi + 0x10], al
setne al
and dword [ebp - 8], 0
mov dword [esi + 8], eax
cmp dword [edi + 4], 0
jbe 0x460f7c
push 0xffffffffffffffec
pop ebx
lea edx, [esi + 0x14]
sub ebx, esi
mov esi, dword [ebp - 8]
lea ecx, [ebx + edx]
add ecx, dword [edi]
mov eax, dword [ecx]
mov dword [edx - 8], eax
xor eax, eax
cmp byte [ecx + 4], al
setne al
inc esi
mov dword [edx - 4], eax
mov eax, dword [ecx + 8]
mov dword [edx], eax
lea edx, [edx + 0xc]
cmp esi, dword [edi + 4]
jb 0x460f53
mov esi, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
mov edi, 0x514efc
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
sub esp, 0x14
push 0x4f5fd8
push SysReAllocStringLen
call fcn.00408c1c
mov eax, dword [ebp + 8]
push ebx
push esi
push 3
push 0
push dword [eax]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 4]
call fcn.00408c9c
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call fcn.004a8d17
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x46112e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x50f35c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x514efc
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x1c]
sub esp, 0x14
push str.Software6789Zip6789ZipFM
push SysReAllocStringLen
call fcn.00408c1c
mov eax, dword [edi]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0xc], eax
xor eax, eax
cmp byte [edi + 0x10], al
push 0x14
setne al
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 3
push 0
push str.Position
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x1c]
push 0xc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push 3
push 0
push str.Panels
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x1c]
call fcn.00408c9c
push 0x514efc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004a8d06
leave
ret
Function at 0x464520
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x512e60], 0
push esi
mov esi, dword [ebp + 8]
jne 0x46462b
push 0x512e64
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x464619
test esi, esi
jne 0x46460e
push ebx
push edi
push str.advapi32.dll
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x4645ee
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptAcquireContextA
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x4645ee
push str.CryptGenRandom
push esi
call edi
mov dword [ebp - 8], eax
test eax, eax
je 0x4645ee
push str.CryptReleaseContext
push esi
call edi
mov edi, eax
test edi, edi
je 0x4645ee
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp + 8]
push eax
call ebx
test eax, eax
je 0x4645ee
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 8]
call dword [ebp - 8]
push 0
push dword [ebp + 8]
mov esi, eax
call edi
test esi, esi
je 0x4645ee
mov eax, dword [ebp - 4]
movzx esi, al
shl esi, 8
movzx eax, ah
or esi, eax
movzx eax, byte [ebp - 2]
shl esi, 8
or esi, eax
movzx eax, byte [ebp - 1]
shl esi, 8
or esi, eax
jmp 0x464602
push 0
call fcn.004afa2d
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
test esi, esi
mov eax, 1
pop edi
cmove esi, eax
pop ebx
mov dword [0x512e60], esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_SwitchToThread]
nop
call esi
cmp dword [0x512e60], 0
je 0x464620
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x464630
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
add ecx, 0xdeadbeef
push ebx
mov ebx, dword [ebp + 8]
add ecx, edx
push esi
mov esi, ecx
mov dword [ebp + 0x10], esi
push edi
mov edi, ecx
cmp edx, 0xc
jbe switch.0x0046473c
add edx, 0xfffffff3
mov eax, 0xaaaaaaab
mul edx
mov eax, edx
shr eax, 3
inc eax
mov dword [ebp - 4], eax
nop dword [eax + eax]
movzx esi, byte [ebx + 7]
movzx eax, byte [ebx + 6]
movzx edx, byte [ebx + 0xb]
shl esi, 8
add esi, eax
shl edx, 8
movzx eax, byte [ebx + 5]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 4]
add edi, eax
shl esi, 8
movzx eax, byte [ebx + 0xa]
add edi, esi
movzx esi, byte [ebx + 8]
add edx, eax
movzx eax, byte [ebx + 9]
add esi, ecx
shl edx, 8
add edx, eax
shl edx, 8
add esi, edx
mov edx, dword [ebp + 8]
mov ebx, esi
rol ebx, 4
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx]
shl ecx, 8
add ecx, eax
sub ecx, esi
add esi, edi
add ecx, dword [ebp + 0x10]
xor ebx, ecx
sub edi, ebx
mov eax, ebx
add ebx, esi
rol eax, 6
xor eax, edi
sub esi, eax
mov edx, eax
rol edx, 8
add eax, ebx
xor edx, esi
sub ebx, edx
mov esi, edx
rol esi, 0x10
add edx, eax
xor esi, ebx
mov ebx, dword [ebp + 8]
mov edi, esi
sub eax, esi
ror edi, 0xd
add esi, edx
xor edi, eax
mov dword [ebp + 0x10], esi
sub edx, edi
mov ecx, edi
rol ecx, 4
add ebx, 0xc
xor ecx, edx
mov dword [ebp + 8], ebx
mov edx, dword [ebp + 0xc]
add edi, esi
sub edx, 0xc
sub dword [ebp - 4], 1
mov dword [ebp + 0xc], edx
jne 0x464670
cmp edx, 0xc
ja 0x4647a8
jmp dword [edx*4 + 0x4647f8]
movzx eax, byte [ebx + 0xb]
shl eax, 0x18
add ecx, eax
movzx eax, byte [ebx + 0xa]
shl eax, 0x10
add ecx, eax
movzx eax, byte [ebx + 9]
shl eax, 8
add ecx, eax
movzx eax, byte [ebx + 8]
add ecx, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add edi, eax
movzx eax, byte [ebx + 6]
shl eax, 0x10
add edi, eax
movzx eax, byte [ebx + 5]
shl eax, 8
add edi, eax
movzx eax, byte [ebx + 4]
add edi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
add esi, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
add esi, eax
movzx eax, byte [ebx + 1]
shl eax, 8
add esi, eax
movzx eax, byte [ebx]
add esi, eax
mov dword [ebp + 0x10], esi
xor ecx, edi
mov eax, edi
rol eax, 0xe
sub ecx, eax
mov eax, ecx
mov esi, ecx
xor esi, dword [ebp + 0x10]
rol eax, 0xb
sub esi, eax
xor edi, esi
mov eax, esi
ror eax, 7
sub edi, eax
mov eax, edi
xor ecx, edi
rol eax, 0x10
sub ecx, eax
mov eax, ecx
mov edx, ecx
rol eax, 4
xor edx, esi
sub edx, eax
mov eax, edx
xor edi, edx
rol eax, 0xe
sub edi, eax
mov eax, edi
xor ecx, edi
ror eax, 8
sub ecx, eax
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x464f5b
Capabilities:
Check if file exists

Disassembly:
push 0x218
mov eax, 0x4d827f
call fcn.004a9c62
mov ebx, ecx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x224], ebx
call fcn.00467333
and dword [ebp - 4], 0
mov dword [ebx], vtable.CServerConnect.0
call fcn.00423843
push eax
lea ecx, [ebx + 0x10]
call fcn.00423599
mov byte [ebp - 4], 1
call fcn.00423843
push eax
lea ecx, [ebx + 0x14]
call fcn.00423599
mov byte [ebp - 4], 2
call fcn.00423843
push eax
lea ecx, [ebx + 0x18]
call fcn.00423599
mov byte [ebp - 4], 3
call fcn.00423843
push eax
lea ecx, [ebx + 0x1c]
call fcn.00423599
push 0
mov byte [ebp - 4], 4
call fcn.004afa2d
push eax
call fcn.004af45e
mov esi, 0x100
lea eax, [ebp - 0x110]
push esi
push 0
push eax
call fcn.004ab9a0
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.004691ad
add esp, 0x1c
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], eax
lea ecx, [ebp - 0x214]
lea eax, [ebp - 0x110]
push 3
push eax
call fcn.00466215
push dword [ebp - 0x214]
mov byte [ebp - 4], 5
call fcn.00423168
pop ecx
push eax
push dword [ebp - 0x214]
lea ecx, [ebx + 0x10]
call fcn.004232ea
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x214], eax
je 0x46505d
push dword [ebp - 0x214]
call fcn.004af246
pop ecx
xor eax, eax
lea ecx, [ebx + 0x14]
inc eax
xor esi, esi
push 0x16
push str.https:__soft.6789.net_
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x38], esi
mov dword [ebx + 0x3c], esi
call fcn.004232ea
push 0x1b
push str.https:__read.soft.6789.net_
lea ecx, [ebx + 0x18]
call fcn.004232ea
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.00465f7d
push str.AppTest.txt
push eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 6
push eax
call fcn.00427fdc
mov ecx, dword [ebp - 0x21c]
add esp, 0x14
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.004238e7
push dword [ebp - 0x218]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x218]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.004238e7
test esi, esi
je 0x465102
push 0x15
push str.http:__soft.6789.net_
lea ecx, [ebx + 0x14]
call fcn.004232ea
push 0x1a
push str.http:__read.soft.6789.net_
lea ecx, [ebx + 0x18]
call fcn.004232ea
xor edi, edi
lea esi, [ebx + 0x20]
push edi
push edi
push edi
push esi
mov dword [ebx + 0x28], edi
mov dword [ebx + 0x2c], edi
call fcn.0042fb08
add esp, 0x10
test eax, eax
jne 0x46511f
mov dword [esi], edi
mov dword [ebx + 0x40], edi
mov eax, ebx
mov dword [ebx + 0x44], edi
call fcn.004a9c0c
ret
Function at 0x465d58
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xc
mov eax, 0x4d8497
call fcn.004a9c2e
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0042335e
push dword [ebp - 0x10]
and dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x465dee
push eax
jmp 0x465ddd
call fcn.00423843
push eax
lea ecx, [ebp - 0x14]
call fcn.00423599
inc edi
mov byte [ebp - 4], 1
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.00428034
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00428291
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.004238e7
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x465dd0
push esi
call fcn.004affe2
pop ecx
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.004238e7
push edi
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.00428076
mov edi, eax
cmp edi, 0xffffffff
jne 0x465d83
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.004238e7
call fcn.004a9bf7
ret

Function at 0x46612a
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x4d8586
call fcn.004a9c2e
call fcn.00423843
push eax
lea ecx, [ebp - 0x10]
call fcn.00423599
xor esi, esi
lea ecx, [ebp - 0x10]
push esi
push 0x1a
push 0x200
mov dword [ebp - 4], esi
call fcn.00423553
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00428c95
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x46618f
mov ecx, dword [ebp + 8]
push 0x4effd0
call fcn.0042335e
lea ecx, [esi - 0x10]
call fcn.004238e7
mov eax, dword [ebp + 8]
jmp 0x4661e8
dec eax
lea ecx, [ebp - 0x10]
push eax
call fcn.004280aa
cmp ax, 0x5c
je 0x4661ae
push 1
push 0x4f1ffc
lea ecx, [ebp - 0x10]
call fcn.00428a2f
push 8
push str.6789Zip_
lea ecx, [ebp - 0x10]
call fcn.00428a2f
cmp dword [ebp + 0xc], 0
mov esi, dword [ebp - 0x10]
je 0x4661cd
push esi
call fcn.00465d58
pop ecx
lea edi, [esi - 0x10]
push edi
call fcn.00428c3a
mov esi, dword [ebp + 8]
add eax, 0x10
pop ecx
mov ecx, edi
mov dword [esi], eax
call fcn.004238e7
mov eax, esi
call fcn.004a9bf7
ret
Function at 0x467629
Capabilities:
Check if file exists
Delete file

Disassembly:
push 8
mov eax, 0x4d87e3
call fcn.004a9c2e
mov edi, ecx
push dword [ebp + 0x10]
mov eax, dword [edi]
push dword [ebp + 8]
call dword [eax + 4]
test eax, eax
je 0x46772d
call fcn.00423843
push eax
lea ecx, [ebp + 0x10]
call fcn.00423599
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 0xc]
push ebx
mov byte [ebp - 4], 1
call fcn.00423168
pop ecx
push eax
push ebx
lea ecx, [ebp + 0x10]
call fcn.004232ea
push 0x5c
push dword [ebp + 0x10]
call fcn.004ab780
pop ecx
pop ecx
test eax, eax
jne 0x467690
or eax, 0xffffffff
jmp 0x467695
sub eax, dword [ebp + 0x10]
sar eax, 1
inc eax
lea ecx, [ebp + 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00428034
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.00428291
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.004238e7
mov esi, dword [ebp + 0x10]
push esi
call fcn.00465d58
pop ecx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4676db
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
lea ecx, [ebp - 0x14]
push eax
push eax
push 0x80
push 2
push eax
push 0xc0000000
push ebx
call fcn.004673d3
test eax, eax
js 0x467712
push 0
push dword [edi + 8]
lea ecx, [ebp - 0x14]
push dword [edi + 4]
call fcn.004680b5
test eax, eax
js 0x467712
xor ebx, ebx
inc ebx
jmp 0x467714
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0x467723
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.004238e7
mov eax, ebx
call fcn.004a9bf7
ret 0xc

Function at 0x467789
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x4d8806
call fcn.004a9c2e
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00465f7d
and dword [ebp - 4], 0
push str.AppTest.txt
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00427fdc
mov ecx, dword [ebp - 0x14]
add esp, 0x14
lea ecx, [ecx - 0x10]
call fcn.004238e7
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.004238e7
mov eax, esi
call fcn.004a9bf7
ret
Function at 0x468ea5
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30fc
call fcn.004a9e30
mov eax, dword [0x50f35c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
call fcn.004ab9a0
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004ab9a0
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str.._c:
push eax
call fcn.0044170c
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x468f34
mov al, 1
jmp 0x46903d
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.004ab9a0
push 0x3e8
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.004ab9a0
push 0x3e8
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.004ab9a0
add esp, 0x24
mov dword [ebp - 0x30f0], ebx
lea eax, [ebp - 0x30fc]
mov dword [ebp - 0x30f8], ebx
mov dword [ebp - 0x30f4], ebx
push ebx
push eax
push 0x2710
lea eax, [ebp - 0x30ec]
push eax
push 0xc
lea eax, [ebp - 0x30f8]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x468fb6
mov bl, 2
jmp 0x469034
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.0046904c
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.0046904c
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x468ff7
sub ecx, edx
lea eax, [ebp - 0x5f4]
push ecx
push eax
push edi
call fcn.00468a56
lea ecx, [ebp - 0x9dc]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46901a
sub ecx, edx
lea eax, [ebp - 0x9dc]
push ecx
push eax
push edi
call fcn.00468a56
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8d06
leave
ret
Function at 0x4691f3
Capabilities:
Create raw socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x50f35c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x194]
push eax
xor edi, edi
push 0x101
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push edi
push edi
xor ebx, ebx
mov word [esi + 8], ax
inc ebx
push ebx
push 3
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x469270
push ebx
push dword [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x2c
mov dword [esi + 0x10], ebx
call fcn.004af24b
mov dword [esi + 0xc], eax
pop ecx
test eax, eax
jne 0x469270
mov dword [esi + 0x10], edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8d06
leave
ret

Function at 0x469371
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x50f35c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x64
mov dword [ebp - 0x7c], eax
xor edi, edi
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.004ab9a0
add esp, 0xc
test esi, esi
je 0x46940a
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x46940a
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx]
jmp 0x4693ec
movsx eax, word [esi + 0xa]
push eax
push ecx
lea eax, [ebp - 0x74]
push eax
call fcn.004abb00
add esp, 0xc
push dword [ebp - 0x74]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x68]
push 0x4dc2b8
push eax
call fcn.004691d8
mov eax, dword [esi + 0xc]
add esp, 0xc
inc edi
mov ecx, dword [eax + edi*4]
test ecx, ecx
jne 0x4693b8
push dword [ebp + 0x10]
lea eax, [ebp - 0x68]
push dword [ebp - 0x7c]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
mov ecx, ebx
call fcn.0046941d
jmp 0x46940c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8d06
leave
ret 0xc
Function at 0x46941d
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x50f35c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x10], 0
je 0x4695d4
push 2
pop eax
mov word [ebp - 0x114], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x144], 0x10
call fcn.004692ed
mov cx, word [0x5137f0]
inc cx
mov dword [ebp - 0x14c], eax
push 0x2c
mov word [0x5137f0], cx
push 0
push dword [edi + 0xc]
movzx eax, cx
mov dword [ebp - 0x148], eax
call fcn.004ab9a0
mov esi, dword [edi + 0xc]
add esp, 0xc
mov ecx, edi
mov word [esi], 8
mov ax, word [edi + 8]
mov word [esi + 4], ax
mov eax, dword [ebp - 0x148]
mov word [esi + 6], ax
mov eax, dword [ebp - 0x14c]
push 0x2c
mov dword [esi + 8], eax
push dword [edi + 0xc]
call fcn.0046929f
mov word [esi + 2], ax
lea eax, [ebp - 0x114]
push dword [ebp - 0x144]
push eax
push 0
push 0x2c
push dword [edi + 0xc]
push dword [edi]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x4695d4
test ebx, ebx
jne 0x4694f6
xor eax, eax
inc eax
jmp 0x4695d6
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.004ab9a0
add esp, 0xc
lea esi, [edi + 4]
push 0
push 0x64
push 0
push esi
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0x102
je 0x4695be
lea eax, [ebp - 0x140]
push eax
push dword [esi]
push dword [edi]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test byte [ebp - 0x140], 1
je 0x4695be
mov ecx, edi
call fcn.004692ed
mov esi, eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push 0x100
lea eax, [ebp - 0x104]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edx, eax
cmp edx, 0xffffffff
je 0x4695bb
mov cl, byte [ebp - 0x104]
and cl, 0xf
movzx ecx, cl
shl cx, 2
movzx eax, cx
movzx ecx, ax
mov dword [ebp - 0x150], eax
mov ax, word [ebp + ecx - 0x100]
cmp ax, word [edi + 8]
jne 0x4695bb
cmp byte [ebp + ecx - 0x104], 0
jne 0x4695bb
mov eax, dword [ebp - 0x148]
cmp word [ebp + ecx - 0xfe], ax
je 0x4695e7
lea esi, [edi + 4]
mov ecx, edi
call fcn.004692ed
sub eax, dword [ebp - 0x14c]
cmp eax, dword [ebp + 0x10]
jb 0x46950f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8d06
leave
ret 0xc
sub esi, dword [ebp + ecx - 0xfc]
mov ecx, dword [ebp - 0x150]
movzx ecx, cx
sub edx, ecx
mov word [ebx], ax
movzx ecx, byte [ebp - 0xfc]
sub edx, 0xc
mov dword [ebx + 4], esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
jmp 0x4694ee
Function at 0x46cc82
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ebx, ecx
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindow]
push 1
push dword [ebx + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push 7
pop ecx
push dword [ebx + 4]
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_IsWindow]
mov edi, dword [sym.imp.USER32.dll_SetFocus]
jmp 0x46cd31
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x46cd35
cmp dword [ebp - 0x1c], 0x10
jne 0x46cd00
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebx + 4]
jne 0x46cd00
mov eax, dword [ebp - 0x18]
push 1
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call edi
lea eax, [ebp - 0x20]
push eax
call fcn.004715f7
pop ecx
test al, al
jne 0x46cd22
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [ebp - 0x1c], 0x12
je 0x46cd35
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x46cccd
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call edi
cmp dword [ebp - 0x1c], 0x12
pop edi
pop esi
pop ebx
jne 0x46cd53
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x46cd58
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46cd8a
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8

Function at 0x46ea50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
call fcn.0046e746
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x46ea74
push 2
pop eax
jmp 0x46ead8
push ebx
push edi
call fcn.0046e746
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x46ea8d
push 0xd
pop esi
jmp 0x46eace
push edi
call fcn.0046e746
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
test ecx, ecx
je 0x46ea88
mov eax, dword [ebp + 0x14]
push 8
pop edx
cmp ecx, dword [eax]
mov dword [eax], ecx
cmova esi, edx
test esi, esi
jne 0x46eace
cmp dword [ebp + 0x10], esi
jne 0x46eaba
push 0x57
jmp 0x46ea8a
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [ebp + 0x10]
call fcn.004abb00
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
ret