joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42cf00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x48a540
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4a9150]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov edi, dword [ebp + 0x414]
mov ebx, dword [ebp + 0x418]
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x42cf82
call fcn.00429080
mov edi, eax
jmp 0x42d064
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x42cf9b
call fcn.00429080
jmp 0x42d05b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x42cfb6
call fcn.00429080
jmp 0x42d05b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x18], edi
cmp eax, edi
jae 0x42cfec
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x42cfda
lea ecx, [ebp]
call fcn.00429c80
lea ecx, [ebp - 0x20]
call fcn.00429aa0
mov eax, 0x8007000e
jmp 0x42d076
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.0042ad00
mov dword [ebp - 4], 1
jmp 0x42d018
mov eax, dword [ebp]
test eax, eax
jne 0x42d026
mov edi, 0x8007000e
jmp 0x42d05d
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x42d03f
call fcn.00429080
jmp 0x42d05b
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.0042bfd0
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x42d074
lea ecx, [ebp]
call fcn.00429c80
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0043f097
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42dd90
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x54]
mov ecx, eax
and ecx, 0xc
push edi
mov bl, 1
cmp cl, 0xc
jne 0x42dded
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [esp + 0x10], eax
call edi
mov edx, dword [esi + 4]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0xfffffffe
call edi
mov edi, eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [esp + 0xc]
push ecx
push edi
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret
shr eax, 2
test al, 1
je 0x42de27
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esi + 4]
push ecx
movzx edx, di
push edx
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret
mov eax, dword [esi + 0x28]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta bl
test bl, bl
je 0x42de5a
mov ecx, dword [esi + 4]
or byte [esi + 0x58], 2
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret
Function at 0x42ee50
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0x220
mov eax, dword [0x4a9150]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SOFTWARE360zhushou
xor bl, bl
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x1b], bl
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42ef89
push esi
mov eax, 4
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0x48ed9c
push ecx
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
push esi
push 0x48ed74
call fcn.00414e90
add esp, 8
test esi, esi
pop esi
jne 0x42ef45
mov edx, dword [esp + 8]
push 0x48ed9c
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x42ef47
push 0x206
push eax
lea ecx, [esp + 0x22]
push ecx
mov bl, 1
mov word [esp + 0x24], ax
call fcn.0043f2b0
mov ecx, dword [esp + 0x14]
add esp, 0xc
push 0
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x2c]
push eax
push 0
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x42ef47
mov byte [esp + 7], bl
jmp 0x42ef47
mov bl, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 7], 0
mov dword [esp + 8], 0
je 0x42ef71
push str.SOFTWARE360zhushou
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov al, bl
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0043f097
add esp, 0x220
ret
mov ecx, dword [esp + 0x220]
pop ebx
xor ecx, esp
mov al, 1
call fcn.0043f097
add esp, 0x220
ret
Function at 0x430a50
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x118
mov eax, dword [0x4a9150]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
push edi
mov edi, dword [esp + 0x12c]
push str.360ZhuShou_setup
push 0x104
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x24], 0
call fcn.004201e0
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
cmp eax, 0xb7
je 0x430ab7
cmp eax, 5
jne 0x430aef
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ecx, ecx
je 0x430ad2
push ecx
call esi
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x10], ecx
test eax, eax
jne 0x430ae8
test ecx, ecx
je 0x430ae8
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [esp + 0x10]
push edx
call esi
xor eax, eax
jmp 0x430ba9
mov esi, dword [sym.imp.ole32.dll_CoInitialize]
push 0
call esi
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], 0x404
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
call esi
mov ecx, dword [esp + 0x124]
push 0
push ecx
push 0
mov ecx, 0x4ab458
call fcn.00428a40
mov edx, dword [esp + 0x130]
push edx
push edi
mov byte [0x4ab450], 0
call fcn.0042ffa0
mov esi, eax
movzx eax, byte [0x4ab450]
push eax
push str.Run_over__setupkilled___d
call fcn.00414e90
add esp, 0x10
cmp byte [0x4ab450], 0
je 0x430b76
call fcn.0042ee50
mov ecx, 0x4ab458
call fcn.0042c360
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x14], 0
jne 0x430ba7
mov eax, dword [esp + 0x10]
test eax, eax
je 0x430ba7
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
xor ecx, esp
call fcn.0043f097
add esp, 0x118
ret 0x10
Function at 0x431850
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, ecx
test ebx, ebx
jne 0x43186d
push ebx
push ebx
push ebx
push 2
call fcn.00434940
pop ebp
xor al, al
pop ebx
ret 8
push edi
call fcn.004314d0
push 2
or eax, 0xffffffff
push 0
push ebx
mov dword [ebp + 8], eax
mov dword [ebp + 4], eax
call fcn.00442902
push ebx
call fcn.0044280a
push 0
push 0
push ebx
mov edi, eax
call fcn.00442902
add esp, 0x1c
test edi, edi
jg 0x4318b6
push 0
push 0
push 0
push 0xc
mov ecx, ebp
call fcn.00434940
pop edi
pop ebp
xor al, al
pop ebx
ret 8
lea eax, [edi + 1]
push esi
push eax
call fcn.0043ab80
push ebx
push 1
mov esi, eax
push edi
push esi
mov byte [esi], 0
call fcn.00442650
add esp, 0x14
cmp eax, 1
je 0x4318f8
push esi
call fcn.0043abb0
add esp, 4
push 0
push 0
push 0
push 2
mov ecx, ebp
call fcn.00434940
pop esi
pop edi
pop ebp
xor al, al
pop ebx
ret 8
mov byte [esi + edi], 0
cmp byte [esi], 0
mov eax, esi
mov ecx, esi
je 0x431921
mov dl, byte [eax]
cmp dl, 0xd
jne 0x431918
mov byte [ecx], 0xa
inc eax
inc ecx
cmp byte [eax], 0xa
jne 0x43191c
jmp 0x43191b
mov byte [ecx], dl
inc ecx
inc eax
cmp byte [eax], 0
jne 0x431905
mov eax, dword [esp + 0x18]
push eax
mov byte [ecx], 0
mov edx, dword [ebp]
mov edx, dword [edx + 8]
push 0
push esi
mov ecx, ebp
call edx
push esi
call fcn.0043abb0
add esp, 4
pop esi
xor eax, eax
cmp byte [ebp + 0x2c], al
pop edi
pop ebp
sete al
pop ebx
ret 8

Function at 0x4366a0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x436720
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push esi
call fcn.004366a0
add esp, 8
test al, al
jne 0x436736
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop esi
ret

Function at 0x436a40
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 8], 0x105
push edi
jg 0x436a5b
push 0x105
mov ecx, esi
call fcn.0041e990
mov eax, dword [esi]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edi, dword [esi]
xor ecx, ecx
cmp word [edi], cx
je 0x436a7e
mov edx, edi
add edx, 2
inc ecx
cmp word [edx], 0
jne 0x436a74
xor edx, edx
mov word [edi + ecx*2], dx
mov dword [esi + 4], ecx
dec eax
mov ecx, 0x103
cmp ecx, eax
sbb eax, eax
pop edi
inc eax
pop esi
ret

Function at 0x436d20
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 8], 0x105
push edi
jg 0x436d3b
push 0x105
mov ecx, esi
call fcn.0041e990
mov eax, dword [esi]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, dword [esi]
xor ecx, ecx
cmp word [edi], cx
je 0x436d5e
mov edx, edi
add edx, 2
inc ecx
cmp word [edx], 0
jne 0x436d54
xor edx, edx
mov word [edi + ecx*2], dx
mov dword [esi + 4], ecx
dec eax
mov ecx, 0x103
cmp ecx, eax
sbb eax, eax
pop edi
inc eax
pop esi
ret
Function at 0x436d80
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 0x10]
cmp dword [esi + 8], 0x105
push edi
jg 0x436d9b
push 0x105
mov ecx, esi
call fcn.0041e990
mov eax, dword [esi]
mov ecx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, dword [esi]
xor ecx, ecx
cmp word [edi], cx
je 0x436dca
mov edx, edi
jmp 0x436dc0
add edx, 2
inc ecx
cmp word [edx], 0
jne 0x436dc0
xor edx, edx
mov word [edi + ecx*2], dx
pop edi
mov dword [esi + 4], ecx
pop esi
ret
Function at 0x439560
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x107c
call fcn.0043f640
mov eax, dword [0x4a9150]
xor eax, esp
mov dword [esp + 0x1078], eax
mov eax, dword [esp + 0x1080]
mov ecx, dword [esp + 0x1084]
push ebp
push esi
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push 7
push SysReAllocString
push eax
mov dword [esp + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4395c8
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x4395e1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1078]
xor ecx, esp
call fcn.0043f097
add esp, 0x107c
ret
push ebx
push edi
lea eax, [esp + 0x20]
push ebp
push eax
mov dword [esp + 0x18], ebp
call fcn.0043a170
add esp, 8
cmp dword [esp + 0x18], ebp
ja 0x439609
cmp dword [esp + 0x14], 0x200000
jbe 0x4396db
cmp dword [esp + 0x1098], ebp
jne 0x4396db
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
xor edi, edi
lea ebp, [edi + 1]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x1000
lea edx, [esp + 0x94]
push edx
push esi
call ebx
test eax, eax
je 0x4396d7
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4396d7
push eax
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.0043a1c0
add edi, dword [esp + 0x1c]
add esp, 0xc
cmp edi, 0x100000
jb 0x439621
push 2
push 0
push 0xfff00000
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x43973f
xor edi, edi
lea esp, [esp]
push 0
lea edx, [esp + 0x14]
push edx
push 0x1000
lea eax, [esp + 0x94]
push eax
push esi
call ebx
test eax, eax
je 0x4396d7
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4396d7
push eax
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.0043a1c0
add edi, dword [esp + 0x1c]
add esp, 0xc
cmp edi, 0x100000
jb 0x439690
jmp 0x43973f
xor ebp, ebp
jmp 0x43973f
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
lea eax, [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x94]
push ecx
push esi
call edi
test eax, eax
je 0x43973f
jmp 0x439700
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x43973a
push eax
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.0043a1c0
add esp, 0xc
push ebp
lea ecx, [esp + 0x14]
push ecx
push 0x1000
lea edx, [esp + 0x94]
push edx
push esi
call edi
test eax, eax
jne 0x439700
jmp 0x43973f
mov ebp, 1
lea eax, [esp + 0x20]
push eax
call fcn.0043a2e0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
test ebp, ebp
je 0x4395c8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [eax], ecx
mov ecx, dword [esp + 0x78]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x7c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x1080]
pop esi
pop ebp
mov dword [eax + 0xc], edx
xor ecx, esp
mov eax, 1
call fcn.0043f097
add esp, 0x107c
ret
Function at 0x43dab0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4ab850], 0
push esi
jne 0x43da1e
call fcn.0043d932
test eax, eax
je 0x43da61
mov eax, dword [0x4ab850]
cmp eax, 1
jne 0x43da3f
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x43da61
pop esi
ret
push eax
call dword [0x4ab858]
test eax, eax
jne 0x43daa9
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x43da65
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4ab850]
call dword [0x4ab858]
mov edi, eax
test edi, edi
je 0x43da8a
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x43daa6
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4ab850]
call dword [0x4ab854]
add edi, 0x10
cmp edi, esi
jb 0x43da92
mov eax, edi
pop edi
pop esi
ret
jmp 0x43da0b

Function at 0x43f097
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a9150]
jne 0x43f0a1
repz ret
jmp fcn.0044899c

Function at 0x465c82
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00445989
and dword [ebp - 4], 0
cmp dword [0x4ac470], 0
mov ebx, eax
jne 0x465d33
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x465de4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x465de4
push eax
call fcn.00445917
mov dword [esp], 0x4955f8
push edi
mov dword [0x4ac470], eax
call esi
push eax
call fcn.00445917
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4ac474], eax
call esi
push eax
call fcn.00445917
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4ac478], eax
call esi
push eax
call fcn.00445917
pop ecx
mov dword [0x4ac480], eax
test eax, eax
je 0x465d33
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00445917
pop ecx
mov dword [0x4ac47c], eax
mov eax, dword [0x4ac47c]
cmp eax, ebx
je 0x465d8b
cmp dword [0x4ac480], ebx
je 0x465d8b
push eax
call fcn.00445992
push dword [0x4ac480]
mov esi, eax
call fcn.00445992
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x465d8b
test edi, edi
je 0x465d8b
call esi
test eax, eax
je 0x465d82
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x465d82
test byte [ebp - 0xc], 1
jne 0x465d8b
or dword [ebp + 0x10], 0x200000
jmp 0x465dc4
mov eax, dword [0x4ac474]
cmp eax, ebx
je 0x465dc4
push eax
call fcn.00445992
pop ecx
test eax, eax
je 0x465dc4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x465dc4
mov eax, dword [0x4ac478]
cmp eax, ebx
je 0x465dc4
push eax
call fcn.00445992
pop ecx
test eax, eax
je 0x465dc4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4ac470]
call fcn.00445992
pop ecx
test eax, eax
je 0x465de4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x465de6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46f3c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x48b968
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a9150]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
mov edi, dword [esp + 0x34]
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
push edi
mov dword [esp + 0x38], ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
mov dword [esp + 0x1c], ebx
cmp ebx, ebp
je 0x46f475
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, ebp
je 0x46f46a
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 1
push eax
push ebp
call fcn.0046fa90
add esp, 0xc
test eax, eax
je 0x46f46a
mov ecx, dword [esp + 0x14]
push eax
mov dword [ecx + 4], 1
call fcn.0046e590
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 1
jmp 0x46f477
test esi, esi
je 0x46f475
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc
Function at 0x472f70
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x10
push ebx
mov bl, byte [edx + 8]
cmp bl, 3
je 0x47311a
mov ecx, dword [esp + 0x20]
push ebp
mov ebp, dword [edx]
push esi
xor esi, esi
push edi
mov dword [esp + 0x24], esi
test bl, 2
je 0x472fc8
movzx eax, byte [edx + 9]
movzx esi, byte [ecx]
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 1]
mov dword [esp + 0x10], edi
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 2]
sub eax, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov edi, 3
jmp 0x472fdb
movzx eax, byte [ecx + 3]
movzx edi, byte [edx + 9]
sub edi, eax
mov dword [esp + 0x10], edi
mov edi, 1
test bl, 4
je 0x472fef
movzx ecx, byte [ecx + 4]
movzx eax, byte [edx + 9]
sub eax, ecx
mov dword [esp + edi*4 + 0x10], eax
inc edi
xor ecx, ecx
xor eax, eax
cmp edi, ecx
jle case.0x473036.3
jmp 0x473000
cmp dword [esp + eax*4 + 0x10], ecx
jg 0x47300c
mov dword [esp + eax*4 + 0x10], ecx
jmp 0x473011
mov esi, 1
inc eax
cmp eax, edi
jl 0x473000
cmp si, cx
je case.0x473036.3
movzx eax, byte [edx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x473036.3
movzx eax, byte [eax + 0x473134]
jmp dword [eax*4 + 0x473120]
mov edx, dword [edx + 4]
mov eax, dword [esp + 0x28]
cmp edx, ecx
jbe case.0x473036.3
lea esp, [esp]
mov cl, byte [eax]
shr cl, 1
and cl, 0x55
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x473050
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edi, dword [edx + 4]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov ecx, edx
mov eax, pe_nt_image_headers32
sar eax, cl
mov ebx, 0xf
sar ebx, cl
and al, 0xf0
or al, bl
test edi, edi
jbe case.0x473036.3
mov edi, edi
mov bl, byte [esi]
mov cl, dl
shr bl, cl
inc esi
and bl, al
sub edi, 1
mov byte [esi - 1], bl
jne 0x473090
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x473036.3
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [esp + edx*4 + 0x10]
shr byte [esi - 1], cl
cmp ebx, ebp
jb 0x4730b6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x473036.3
mov edi, edi
xor edx, edx
mov eax, ebx
div edi
movzx ax, byte [esi]
mov ecx, 0x100
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc esi
inc ebx
inc esi
movzx ecx, word [esp + edx*4 + 0x10]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, ebp
jb 0x4730e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4818e0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2c14
call fcn.0043f640
mov eax, dword [0x4a9150]
xor eax, esp
mov dword [esp + 0x2c10], eax
mov eax, dword [esp + 0x2c18]
push edi
xor edi, edi
mov dword [esp + 0xc], eax
cmp eax, edi
je 0x481a4b
cmp dword [esp + 0x2c20], edi
je 0x481a4b
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov dword [esp + 0x10], edi
xor ebx, ebx
lea ebx, [ebx]
push ebx
push str..PhysicalDrive_d
lea eax, [esp + 0x30]
push 0x100
push eax
call fcn.004812c0
add esp, 0x10
push edi
push edi
push 3
push edi
push 3
push edi
lea ecx, [esp + 0x40]
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x481a24
xor eax, eax
push 0x2710
lea edx, [esp + 0x514]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.0043f2b0
add esp, 0xc
push edi
lea eax, [esp + 0x18]
push eax
push 0x2710
lea ecx, [esp + 0x51c]
push ecx
push 0xc
lea edx, [esp + 0x30]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x481a17
push 0x3e8
lea eax, [esp + 0x12c]
push edi
push eax
call fcn.0043f2b0
mov edx, dword [esp + 0x534]
lea ecx, [esp + 0x134]
push ecx
push 1
push edx
lea eax, [esp + 0x528]
push eax
call fcn.004834b0
mov edx, dword [esp + 0x2c48]
mov eax, dword [esp + 0x34]
add esp, 0x1c
lea ecx, [esp + 0x128]
push ecx
push edx
push eax
call fcn.00481080
test eax, eax
jne 0x481a17
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
jne 0x481a2e
inc ebx
cmp ebx, 0x10
jl 0x481930
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x2c10]
xor ecx, esp
call fcn.0043f097
add esp, 0x2c14
ret
mov ecx, dword [esp + 0x2c14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.0043f097
add esp, 0x2c14
ret