joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4794c0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c4680]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x4794dc
cmp dword [ebp + 0xc], 0
jne 0x4794e0
xor eax, eax
jmp 0x479537
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str.__s___s
lea edx, [ebp - 0x1c]
push edx
call fcn.00478d90
add esp, 0x10
lea ecx, [ebp - 0x1c]
call fcn.0041a9b0
shl eax, 1
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403d90
push eax
push 1
mov eax, dword [ebp + 8]
push eax
push 0x57caa8
push reloc.WS2_32.dll_accept
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x1c]
call fcn.00403c70
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005313f0
mov esp, ebp
pop ebp
ret
Function at 0x47c040
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5770b0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5c4680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0047baa0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CryptoPP::BaseN_Decoder.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], vtable.CryptoPP::BaseN_Decoder.1.0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x1c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x20], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x28], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x2c], 0
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0047bb80
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.004b1d40
lea edx, [ebp + 0xc]
push edx
call fcn.0047e570
push eax
push 1
lea eax, [ebp + 8]
push eax
call fcn.0047e250
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.0047b040
add esp, 0x10
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
call fcn.0047ac20
push eax
mov ecx, dword [ebp - 0x10]
call fcn.004beed0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.0047cfd0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x486e80
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x577f28
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x5c4680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], 0
push 0x288
call fcn.0054466b
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x288
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x486ef7
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00543dee
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0054466b
add esp, 4
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x48703f
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x190]
push ecx
mov edx, dword [ebp - 0x2c]
add edx, 0x194
push edx
lea ecx, [ebp - 0x28]
call fcn.0042e3b0
mov dword [ebp - 4], 0
push 1
lea ecx, [ebp - 0xe8]
call fcn.004807a0
mov byte [ebp - 4], 1
push 0x30
lea eax, [ebp - 0x35]
push eax
call fcn.00485fb0
add esp, 8
push eax
push 0x488e90
push 0x488b20
lea ecx, [ebp - 0xe8]
call fcn.00486840
mov ecx, eax
call fcn.00486840
push eax
call fcn.00485100
add esp, 8
mov dword [ebp - 0x30], 0
jmp 0x486f8c
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x28]
call fcn.00403ae0
cmp dword [ebp - 0x30], eax
jae 0x486ff6
mov edx, dword [ebp - 0x30]
push edx
lea ecx, [ebp - 0x28]
call fcn.00404440
movsx eax, byte [eax]
push eax
push 0
push 2
lea ecx, [ebp - 0x50]
push ecx
call fcn.005301d5
add esp, 0xc
push eax
lea edx, [ebp - 0xe8]
push edx
call fcn.00485120
add esp, 8
mov ecx, eax
call fcn.00486520
lea ecx, [ebp - 0x28]
call fcn.00403ae0
sub eax, 1
cmp dword [ebp - 0x30], eax
jae 0x486ff4
push 0x57e544
lea eax, [ebp - 0xe8]
push eax
call fcn.00485150
add esp, 8
jmp 0x486f83
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00543dee
add esp, 4
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0xe8]
call fcn.00483e00
mov eax, dword [ebp - 0x34]
or eax, 1
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe8]
call fcn.004818b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402270
mov eax, dword [ebp + 8]
jmp 0x487064
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00543dee
add esp, 4
push 0x57e366
mov ecx, dword [ebp + 8]
call fcn.004022c0
mov edx, dword [ebp - 0x34]
or edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005313f0
mov esp, ebp
pop ebp
ret
Function at 0x48dc80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57864d
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x5c4680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x150], 0
push str.unknow
lea ecx, [ebp - 0x28]
call fcn.004022c0
mov dword [ebp - 4], 0
push 0x11c
push 0
lea eax, [ebp - 0x144]
push eax
call fcn.005339f0
add esp, 0xc
mov dword [ebp - 0x144], 0x11c
lea ecx, [ebp - 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x48de34
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0x148], edx
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x148], 5
jne 0x48dd3a
cmp dword [ebp - 0x14c], 1
jne 0x48dd3a
push str.winxp
lea ecx, [ebp - 0x28]
call fcn.00409b90
jmp 0x48de34
cmp dword [ebp - 0x148], 6
jne 0x48dd5e
cmp dword [ebp - 0x14c], 0
jne 0x48dd5e
push str.winvista
lea ecx, [ebp - 0x28]
call fcn.00409b90
jmp 0x48de34
cmp dword [ebp - 0x148], 6
jne 0x48dd82
cmp dword [ebp - 0x14c], 1
jne 0x48dd82
push str.win7
lea ecx, [ebp - 0x28]
call fcn.00409b90
jmp 0x48de34
cmp dword [ebp - 0x148], 6
jne 0x48dda6
cmp dword [ebp - 0x14c], 2
jne 0x48dda6
push str.win8
lea ecx, [ebp - 0x28]
call fcn.00409b90
jmp 0x48de34
cmp dword [ebp - 0x148], 6
jne 0x48ddc7
cmp dword [ebp - 0x14c], 3
jne 0x48ddc7
push str.win8.1
lea ecx, [ebp - 0x28]
call fcn.00409b90
jmp 0x48de34
cmp dword [ebp - 0x140], 0xa
jne 0x48ddf4
cmp dword [ebp - 0x13c], 0
jne 0x48ddf4
cmp dword [ebp - 0x138], 0x55f0
jb 0x48ddf4
push 0x57f9f8
lea ecx, [ebp - 0x28]
call fcn.00409b90
jmp 0x48de34
cmp dword [ebp - 0x148], 0xa
jne 0x48de15
cmp dword [ebp - 0x14c], 0
jne 0x48de15
push str.win10
lea ecx, [ebp - 0x28]
call fcn.00409b90
jmp 0x48de34
cmp dword [ebp - 0x148], 0xa
jne 0x48de34
cmp dword [ebp - 0x14c], 0
jle 0x48de34
push str.win11
lea ecx, [ebp - 0x28]
call fcn.00409b90
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0042b500
mov edx, dword [ebp - 0x150]
or edx, 1
mov dword [ebp - 0x150], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402270
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005313f0
mov esp, ebp
pop ebp
ret

Function at 0x48de80
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov byte [ebp - 1], 0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx ecx, word [ebp - 0x28]
cmp ecx, 9
je 0x48dea6
movzx edx, word [ebp - 0x28]
cmp edx, 0xc
jne 0x48deaa
mov byte [ebp - 1], 1
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x490490
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57898d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5c4680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00401730
add esp, 4
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00490a40
add esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.0048fac0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00491170
mov dword [ebp - 0x20], 0x4903e0
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push 0
lea ecx, [ebp - 0x14]
call fcn.00410cb0
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0
push 0
call fcn.0054a100
add esp, 0x18
mov edx, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x49052f
lea ecx, [ebp - 0x14]
call fcn.004837b0
jmp 0x490540
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
push 6
call fcn.0053062c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00491170
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x492c70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x492c95
xor eax, eax
jmp 0x492d04
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x492cc1
xor eax, eax
jmp 0x492d04
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.00492e80
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
mov ecx, dword [ebp + 0x14]
call fcn.00492c50
push eax
call fcn.00533470
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x498250
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
cmp dword [ebp + 8], 0
jne 0x498260
xor eax, eax
jmp 0x4982d8
push 0x44
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.005339f0
add esp, 0xc
mov dword [ebp - 0x54], 0x44
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4982ad
xor eax, eax
jmp 0x4982d8
cmp dword [ebp + 0xc], 0
je 0x4982bf
push 0xffffffffffffffff
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x498450
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x5c4680]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x438], 0x22c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0xffffffff
jne 0x4984aa
push 0x485f00
push str.Error_creating_process_snapshot.
push 0x5cc210
call fcn.00485150
add esp, 8
mov ecx, eax
call fcn.00486820
xor al, al
jmp 0x498564
lea eax, [ebp - 0x438]
push eax
mov ecx, dword [ebp - 0x43c]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x498555
push 0x104
lea edx, [ebp - 0x20c]
push edx
mov eax, dword [ebp - 0x430]
push eax
call fcn.00497ed0
add esp, 0xc
movzx ecx, al
test ecx, ecx
je 0x49853a
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.0054a20d
add esp, 8
test eax, eax
jne 0x49853a
mov ecx, dword [ebp - 0x430]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
je 0x49853a
push 0
mov edx, dword [ebp - 0x440]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x438]
push ecx
mov edx, dword [ebp - 0x43c]
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4984c5
mov eax, dword [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005313f0
mov esp, ebp
pop ebp
ret
Function at 0x49ee90
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57873d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5c4680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], 0
push 0x58085c
lea ecx, [ebp - 0x28]
call fcn.00403d10
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0x34
push 0
mov eax, dword [ebp + 0xc]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x49efc0
xor ecx, ecx
mov eax, dword [ebp - 0x34]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0053143c
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x49efac
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x30]
push edx
push 0x580860
mov eax, dword [ebp - 0x2c]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x49efac
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0xc]
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0xc]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 8]
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 8]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
push eax
push 0x580864
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
mov edx, dword [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x28]
call fcn.00403c40
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
push 2
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.0053142e
add esp, 8
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403cd0
mov eax, dword [ebp - 0x38]
or eax, 1
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403c70
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005313f0
mov esp, ebp
pop ebp
ret
Function at 0x4a14d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x4a14f0
jl 0x4a14e7
cmp dword [ebp + 0xc], 0
ja 0x4a14f0
xor eax, eax
xor edx, edx
jmp 0x4a1627
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x4a1512
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00484130
jmp 0x4a1627
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.004821b0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x4a1581
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00478ec0
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00482fe0
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0047f000
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.00482f50
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x4a1618
mov ecx, dword [ebp - 8]
call fcn.004a0820
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x4a15f1
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.0054bba9
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x4a15ef
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x4a1627
jmp 0x4a159d
cmp dword [ebp - 4], 0
jbe 0x4a1618
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.0054bba9
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4a6160
Capabilities:
Create shortcut via ishelllink
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5c4680]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jl 0x4a6321
lea eax, [ebp - 0x210]
push eax
push 0x582e48
push 1
push 0
push 0x582e88
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jl 0x4a631b
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [eax + 0x50]
call edx
lea eax, [ebp - 0x220]
push eax
push 0x582e68
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [edx]
call ecx
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jl 0x4a6307
push 0x208
push 0
lea edx, [ebp - 0x20c]
push edx
call fcn.005339f0
add esp, 0xc
push 0
push 7
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x218], ecx
mov edx, dword [ebp - 0x218]
mov dword [ebp - 0x228], edx
mov eax, dword [ebp - 0x218]
mov cx, word [eax]
mov word [ebp - 0x222], cx
add dword [ebp - 0x218], 2
cmp word [ebp - 0x222], 0
jne 0x4a6246
mov edx, dword [ebp - 0x218]
sub edx, dword [ebp - 0x228]
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x230], edx
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
mov dword [ebp - 0x21c], ecx
mov edx, dword [ebp - 0x21c]
mov ax, word [edx + 2]
mov word [ebp - 0x224], ax
add dword [ebp - 0x21c], 2
cmp word [ebp - 0x224], 0
jne 0x4a6294
mov edi, dword [ebp - 0x21c]
mov esi, dword [ebp - 0x22c]
mov edx, dword [ebp - 0x230]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp - 0x220]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x220]
push eax
mov ecx, dword [edx + 0x18]
call ecx
mov edx, dword [ebp - 0x220]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x220]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x210]
push edx
mov eax, dword [ecx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005313f0
mov esp, ebp
pop ebp
ret
Function at 0x4c79f0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4c7a9f
push esi
call fcn.004d6120
add esp, 4
test al, al
jne 0x4c7a9f
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4c7a17
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.004d76f0
add esp, 0xc
test eax, eax
je 0x4c7a4b
sub eax, esi
push eax
push 0x2e
push esi
call fcn.004d76f0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4c7a4d
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
lea ebx, [esi + edi]
mov edi, 0x1505
cmp esi, ebx
jae 0x4c7a7e
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.004c5a80
movsx ecx, al
inc esi
mov eax, edi
add esp, 4
shl eax, 5
add eax, edi
xor ecx, eax
mov edi, ecx
cmp esi, ebx
jb 0x4c7a60
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4d6120
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x18
mov eax, dword [0x5c4680]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
lea eax, [esp + 4]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x4d6168
lea eax, [esp + 8]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
pop esi
setg al
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.005313f0
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
mov al, 1
pop esi
xor ecx, esp
call fcn.005313f0
add esp, 0x18
ret

Function at 0x4d62d0
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4d630e
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x104], 0
jne 0x4d62ff
push 0
call fcn.004d62d0
add esp, 4
test al, al
mov eax, dword [esi + 0x7c]
setne cl
inc cl
mov byte [eax + 0x104], cl
mov eax, dword [esi + 0x7c]
pop esi
cmp byte [eax + 0x104], 2
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x4d6323
xor al, al
pop esi
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret