joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4716f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], vtable.CEt99Ex.0
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1c], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0
je 0x47177e
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0xffffffff
jne 0x471783
jmp 0x471832
push str.et_FindToken
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], eax
push str.et_OpenToken
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
push str.et_CloseToken
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1c], eax
push str.et_Verify
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20], eax
push str.et_Read
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x24], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x14], 0
je 0x471832
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0
je 0x471832
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x1c], 0
je 0x471832
mov edx, dword [ebp - 4]
cmp dword [edx + 0x20], 0
je 0x471832
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
je 0x471832
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x4730f0
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a708
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x5954a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x70], ecx
lea ecx, [ebp - 0x18]
call fcn.0044f320
mov dword [ebp - 4], 0
push str._r_nCFileDecode::QueryRegValue_Begin_r_n
lea eax, [ebp - 0x18]
push eax
call fcn.00451560
add esp, 8
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 0x20019
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0044f380
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x10]
push eax
push str._r_nCFileDecode::QueryRegValue_dwRet:_d_lpszSubKey:_s_r_n
lea ecx, [ebp - 0x18]
push ecx
call fcn.00451560
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0044f990
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x10], 0
je 0x4731da
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0044f990
mov eax, dword [ebp - 0x20]
jmp 0x473286
push str._r_nCFileDecode::QueryRegValue_between_r_n
lea eax, [ebp - 0x18]
push eax
call fcn.00451560
add esp, 8
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edx, [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x24]
call fcn.0044f380
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push str._r_nCFileDecode::QueryRegValue_dwRet:_d_lpszVlaue:_s_r_n
lea eax, [ebp - 0x18]
push eax
call fcn.00451560
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.0044f990
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0x10], 0
sete al
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0044f990
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x473330
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x473370
xor eax, eax
jmp 0x473418
mov eax, dword [ebp + 0x14]
shr eax, 0xa
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x18], 0x200
cmp dword [ebp - 8], 0
jne 0x4733ec
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 8], 0x103
jne 0x4733ce
jmp 0x4733ec
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0xc]
jbe 0x4733d8
jmp 0x4733ec
mov eax, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0x200
jmp 0x47338d
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x47340e
cmp dword [ebp - 8], 0x103
je 0x47340e
mov dword [ebp - 0x24], 0
jmp 0x473415
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x478b60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x5954a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x40c], ecx
xor eax, eax
mov word [ebp - 0x408], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x406]
push ecx
call fcn.004f8090
add esp, 0xc
mov edx, dword [ebp - 0x40c]
mov eax, dword [edx + 0x7c]
push eax
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x408]
push edx
call fcn.004f810a
add esp, 4
movzx eax, word [ebp + eax*2 - 0x40a]
cmp eax, 0x5c
je 0x478bdd
push 0x5668c0
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.PCID.DAT
lea edx, [ebp - 0x408]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x408]
push eax
push 0
push str.Auto
mov ecx, dword [ebp - 0x40c]
mov edx, dword [ecx + 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea edx, [ebp - 0x408]
push edx
push 0x200
mov eax, dword [ebp + 0xc]
push eax
push 0
push str.Pcid
mov ecx, dword [ebp - 0x40c]
mov edx, dword [ecx + 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
test eax, eax
setg cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8124
mov esp, ebp
pop ebp
ret 8
Function at 0x479650
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ab78
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5954a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x10]
call fcn.0044f320
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x38]
cmp dword [edx + 4], 0
jne 0x4796e0
push str.CProcessMap::GetMapPoint_m_hMapFile_is_null
lea eax, [ebp - 0x10]
push eax
call fcn.00451560
add esp, 8
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0044f990
mov eax, dword [ebp - 0x14]
jmp 0x479761
push 0
push 0
push 0
push 0xf001f
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x38]
cmp dword [edx + 8], 0
jne 0x47973d
push str.CProcessMap::GetMapPoint_m_lpMapAddress_is_null
lea eax, [ebp - 0x10]
push eax
call fcn.00451560
add esp, 8
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0044f990
mov eax, dword [ebp - 0x18]
jmp 0x479761
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 8]
mov dword [edx], ecx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0044f990
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x47c040
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2a4c
call fcn.004fa800
mov eax, dword [0x5954a0]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 0x2a08], 0
push 0x27ff
push 0
lea eax, [ebp - 0x2a07]
push eax
call fcn.004f8090
add esp, 0xc
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x2800
lea ecx, [ebp - 0x2a08]
push ecx
call fcn.004fd73b
add esp, 0x10
mov dword [ebp - 4], 0
mov byte [ebp - 0x208], 0
push 0x1ff
push 0
lea edx, [ebp - 0x207]
push edx
call fcn.004f8090
add esp, 0xc
push 0x200
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x545030
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.ODMGuard.LOG
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x549da0
lea eax, [ebp - 0x208]
push eax
call fcn.004fccb7
add esp, 8
mov dword [ebp - 0x2a4c], eax
cmp dword [ebp - 0x2a4c], 0
jne 0x47c118
jmp 0x47c1e2
mov byte [ebp - 0x2a48], 0
xor ecx, ecx
mov dword [ebp - 0x2a47], ecx
mov dword [ebp - 0x2a43], ecx
mov dword [ebp - 0x2a3f], ecx
mov dword [ebp - 0x2a3b], ecx
mov dword [ebp - 0x2a37], ecx
mov dword [ebp - 0x2a33], ecx
mov dword [ebp - 0x2a2f], ecx
mov word [ebp - 0x2a2b], cx
mov byte [ebp - 0x2a29], cl
mov byte [ebp - 0x2a28], 0
xor edx, edx
mov dword [ebp - 0x2a27], edx
mov dword [ebp - 0x2a23], edx
mov dword [ebp - 0x2a1f], edx
mov dword [ebp - 0x2a1b], edx
mov dword [ebp - 0x2a17], edx
mov dword [ebp - 0x2a13], edx
mov dword [ebp - 0x2a0f], edx
mov word [ebp - 0x2a0b], dx
mov byte [ebp - 0x2a09], dl
lea eax, [ebp - 0x2a08]
push eax
lea ecx, [ebp - 0x2a28]
push ecx
call fcn.004fd66c
add esp, 4
push eax
lea edx, [ebp - 0x2a48]
push edx
call fcn.004fd5ad
add esp, 4
push eax
push str._s__s____s_n
mov eax, dword [ebp - 0x2a4c]
push eax
call fcn.004fd35b
add esp, 0x14
mov ecx, dword [ebp - 0x2a4c]
push ecx
call fcn.004fc8ae
add esp, 4
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004f8124
mov esp, ebp
pop ebp
ret
Function at 0x47c450
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ae80
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5954a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0
push 0x567128
lea ecx, [ebp - 0x10]
call fcn.0044f380
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0x34
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
push 0
mov ecx, dword [ebp - 0x48]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x47c56a
mov edx, dword [ebp - 0x14]
push edx
call fcn.004b304f
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x4c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x47c558
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0x54b464
mov ecx, dword [ebp - 0x20]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x47c558
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
push ecx
push str._d._d._d._d
lea edx, [ebp - 0x10]
push edx
call fcn.00451560
add esp, 0x18
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004b3044
add esp, 4
mov edx, dword [ebp - 0x10]
sub edx, 0x10
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
push eax
call fcn.0044fd30
add esp, 4
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
add ecx, 0x10
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp - 0x2c]
or eax, 1
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0044f990
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0044f990
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x47c6d0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x5954a0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0
jne 0x47c70a
mov eax, 1
jmp 0x47c8a1
lea edx, [ebp - 8]
push edx
push 0x20019
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0
je 0x47c768
cmp dword [ebp - 0x414], 2
jne 0x47c754
push str.Key_not_found._n
call fcn.004fbdd5
add esp, 4
mov eax, 1
jmp 0x47c8a1
push str.Error_opening_key._n
call fcn.004fbdd5
add esp, 4
xor eax, eax
jmp 0x47c8a1
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax*2]
mov dword [ebp - 0x420], edx
mov eax, dword [ebp - 0x420]
movzx ecx, word [eax - 2]
cmp ecx, 0x5c
je 0x47c7b5
mov edx, 0x5c
mov eax, dword [ebp - 0x420]
mov word [eax], dx
mov ecx, dword [ebp - 0x420]
add ecx, 2
mov dword [ebp - 0x420], ecx
xor edx, edx
mov eax, dword [ebp - 0x420]
mov word [eax], dx
mov dword [ebp - 4], 0x200
lea ecx, [ebp - 0x41c]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x410]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0
jne 0x47c857
lea edx, [ebp - 0x410]
push edx
push 0x400
mov eax, dword [ebp - 0x420]
push eax
call fcn.0047c8b0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0047c6d0
add esp, 8
test eax, eax
jne 0x47c81d
jmp 0x47c857
mov dword [ebp - 4], 0x200
lea eax, [ebp - 0x41c]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x410]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0
je 0x47c7ef
mov ecx, dword [ebp - 0x420]
sub ecx, 2
mov dword [ebp - 0x420], ecx
xor edx, edx
mov eax, dword [ebp - 0x420]
mov word [eax], dx
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0
jne 0x47c89f
mov eax, 1
jmp 0x47c8a1
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004f8124
mov esp, ebp
pop ebp
ret
Function at 0x47d4f0
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5954a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], ecx
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004f8090
add esp, 0xc
lea edx, [ebp - 0x214]
push edx
mov eax, dword [ebp + 8]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004f810a
add esp, 4
add eax, 1
push eax
mov edx, dword [ebp + 0x10]
push edx
push 1
push 0x567128
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x214]
push edx
mov eax, dword [ebp + 0x10]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.004f810a
add esp, 4
add eax, 1
push eax
mov edx, dword [ebp + 0x18]
push edx
push 1
push 0x567128
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x10]
push edx
push 0x54b568
lea eax, [ebp - 0x210]
push eax
call fcn.00401030
add esp, 0xc
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x210]
push edx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov eax, dword [ebp + 0x14]
push eax
call fcn.004f810a
add esp, 4
add eax, 1
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 1
push 0x567128
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x10]
push ecx
push str._sShell
lea edx, [ebp - 0x210]
push edx
call fcn.00401030
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x210]
push ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push 0x54b60c
call fcn.004f810a
add esp, 4
add eax, 1
push eax
push 0x54b60c
push 1
push 0x567128
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x10]
push ecx
push str._sShellOpenCommand
lea edx, [ebp - 0x210]
push edx
call fcn.00401030
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x210]
push ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push 0x54b600
mov edx, dword [ebp + 0xc]
push edx
push str._s__s
lea eax, [ebp - 0x210]
push eax
call fcn.00401030
add esp, 0x10
lea ecx, [ebp - 0x210]
push ecx
call fcn.004f810a
add esp, 4
add eax, 1
push eax
lea edx, [ebp - 0x210]
push edx
push 1
push 0x567128
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8124
mov esp, ebp
pop ebp
ret 0x14
Function at 0x47e130
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
xor eax, eax
cmp dword [edx], 0xffffffff
setne al
mov esp, ebp
pop ebp
ret

Function at 0x47e160
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x5954a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0xc], 3
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x47e192
mov dword [ebp - 0x40], 0
jmp 0x47e220
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x3fffffff
jle 0x47e1b4
mov dword [ebp - 0x44], 0
jmp 0x47e21a
mov eax, dword [ebp - 4]
shl eax, 1
call fcn.004f86f0
mov dword [ebp - 0x34], esp
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x34], 0
je 0x47e1d3
cmp dword [ebp - 8], 0
jne 0x47e1dc
mov dword [ebp - 0x44], 0
jmp 0x47e21a
mov eax, dword [ebp - 0x34]
mov byte [eax], 0
push 0
push 0
mov ecx, dword [ebp - 4]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x47e214
mov dword [ebp - 0x44], 0
jmp 0x47e21a
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x24], ecx
push 0x10
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.004f8090
add esp, 0xc
mov eax, 2
mov word [ebp - 0x20], ax
movzx ecx, word [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x47e287
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x47e283
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
jmp 0x47e287
xor eax, eax
jmp 0x47e295
push 0x10
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x3c]
call fcn.0047e2b0
lea esp, [ebp - 0x44]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f8124
mov esp, ebp
pop ebp
ret 8

Function at 0x47e2b0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], 0
sete al
mov esp, ebp
pop ebp
ret 8