joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6b3f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x6c89fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x6b4002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.006b7dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x6b4002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.006af6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.006b820b
push 0x10
call fcn.006b81d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x6b3fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.006a41c0
jmp 0x6b3fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.006b3b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x6b3ff0
mov ecx, edi
call fcn.006a42c0
push edi
call fcn.006b81c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x6b4021
inc ebx
cmp ebx, 0x20
jb 0x6b3f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x6b5250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c9808
push 0x6b9288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x6b5329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x6b5329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.006b81d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x6b5329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x6b5329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x6b532c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.006b5351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6b5d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x6b5d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x6b5d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x6b5d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x6b5d94
push eax
push esi
call fcn.006b820b
add esp, 8
pop esi
ret 0x10

Function at 0x6b5da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6b5e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x6b5e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x6ce320
push ecx
mov dword [esp + 0x1c], 4
call fcn.006b7dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x6b5dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x6b5e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6b5ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x6b5eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x6ce320
push ecx
mov dword [esp + 0x1c], 4
call fcn.006b7dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x6b5eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x6b5e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x6b6000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x6b6131
push esi
call fcn.006b9145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.006a8080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x6b6131
push 0
push ebp
call fcn.006a83a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.006a8260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x6b608b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.006a82f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x6b6121
push 0x6ce918
push edi
call fcn.006b73f0
push eax
push ebx
push esi
call fcn.006b5f60
push 0x6ce8f8
push edi
call fcn.006b73f0
push eax
push ebx
push esi
call fcn.006b5f60
push 0x6ce8d8
push edi
call fcn.006b73f0
push eax
push ebx
push esi
call fcn.006b5f60
push 0x6ce8c0
push edi
call fcn.006b73f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.006b5f60
push 0x6ce8a0
push edi
call fcn.006b73f0
push eax
push ebx
push esi
call fcn.006b5f60
push 0x6ce888
push edi
call fcn.006b73f0
push eax
push ebx
push esi
call fcn.006b5f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x6b71b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.006b7140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.006b7140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.006b7140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.006b7140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x6b7bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6b7c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x6c987c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6b7c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x6b7c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x403fc2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45482c
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x46f570]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x46f570]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
mov esi, ecx
jne 0x404025
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0043526a
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor edi, edi
cmp ecx, edi
je 0x40404d
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x40404d
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x404005
mov eax, dword [esi + 0x4c]
cmp eax, edi
jne 0x404059
or eax, 0xffffffff
jmp 0x404005
cmp dword [esi + 0x3c], edi
jne 0x40406d
push eax
push ebx
call fcn.0040427e
test al, al
pop ecx
pop ecx
je 0x404054
jmp 0x404049
push edi
push 8
lea ecx, [esp + 0x4c]
mov byte [esp + 0x18], bl
call fcn.00402fdf
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x74], edi
call fcn.0040420f
mov ecx, eax
call fcn.004041d8
mov edi, dword [esp + 0x58]
mov ebx, eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0040420f
mov ecx, eax
call fcn.004041d8
lea edx, [esp + 0x18]
add edi, ebx
push edx
lea ebx, [esi + 0x44]
jmp 0x40417d
cmp eax, 1
jg 0x4041a5
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x48]
call fcn.0040420f
mov ecx, eax
call fcn.004041d8
mov edi, dword [esp + 0x18]
sub edi, eax
je 0x404112
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
call fcn.0040420f
mov ecx, eax
call fcn.004041d8
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00438667
add esp, 0x10
cmp edi, eax
jne 0x4041bc
lea eax, [esp + 0x10]
cmp dword [esp + 0x1c], eax
mov byte [esi + 0x41], 1
jne 0x4041d3
test edi, edi
ja 0x404140
cmp dword [esp + 0x58], 0x20
jae 0x4041bc
push 0
push 8
lea ecx, [esp + 0x4c]
call fcn.00404abe
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
call fcn.0040420f
mov ecx, eax
call fcn.004041d8
mov edi, dword [esp + 0x58]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0040420f
mov ecx, eax
call fcn.004041d8
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
add edi, edx
mov ecx, dword [esi + 0x3c]
push edi
push eax
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x21]
push edx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
test eax, eax
jge 0x4040c0
jmp 0x4041bc
cmp eax, 3
jne 0x4041bc
push dword [esi + 0x4c]
push dword [esp + 0x14]
call fcn.0040427e
test al, al
pop ecx
pop ecx
jne 0x4041d3
or esi, 0xffffffff
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.0040499e
mov eax, esi
jmp 0x404005
mov esi, dword [ebp + 8]
jmp 0x4041bf
Function at 0x4045db
Capabilities:
Write file on windows

Disassembly:
push 0x4c
mov eax, 0x4547d2
call fcn.0043bbce
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x3c], edi
je 0x4046e7
cmp byte [esi + 0x41], 0
je 0x4046e7
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x404611
xor al, al
jmp 0x4046e9
push edi
push 8
lea ecx, [ebp - 0x30]
call fcn.00402fdf
mov dword [ebp - 4], edi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040420f
mov ecx, eax
call fcn.004041d8
mov edi, dword [ebp - 0x1c]
mov ebx, eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040420f
mov ecx, eax
call fcn.004041d8
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34]
push eax
add edi, ebx
push edi
push dword [ebp - 0x38]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x404681
dec eax
je 0x404685
dec eax
dec eax
je 0x4046e3
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.0040499e
mov al, bl
jmp 0x4046e9
mov byte [esi + 0x41], 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040420f
mov ecx, eax
call fcn.004041d8
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x4046c5
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040420f
mov ecx, eax
call fcn.004041d8
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00438667
add esp, 0x10
cmp edi, eax
jne 0x40466f
cmp byte [esi + 0x41], 0
je 0x4046e3
test edi, edi
jne 0x40461f
push edi
push 8
lea ecx, [ebp - 0x30]
call fcn.00404abe
jmp 0x40461f
mov bl, 1
jmp 0x404671
mov al, 1
call fcn.0043bc51
ret

Function at 0x40513b
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x46f570]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x405171
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0043526a
leave
ret
lea eax, [ebp - 0x130]
push eax
push edi
mov dword [ebp - 0x130], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x405197
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x405163
push dword [esi]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4051b9
lea eax, [ebp - 0x130]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
jmp 0x405188
mov bl, 1
jmp 0x40518c
Function at 0x4051bd
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
lea ebp, [esp - 0x29c]
sub esp, 0x31c
mov eax, dword [0x46f570]
xor eax, ebp
mov dword [ebp + 0x298], eax
mov eax, dword [ebp + 0x2a4]
push ebx
push esi
xor ebx, ebx
push ebx
mov dword [ebp - 0x80], eax
mov esi, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x78]
push eax
push 0x45d798
push 1
push ebx
push 0x45d7a8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x405228
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [ebp + 0x298]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043526a
add ebp, 0x29c
leave
ret
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x50]
cmp esi, ebx
je 0x405245
push esi
call fcn.004353b0
test eax, eax
pop ecx
je 0x405245
push ebx
push esi
jmp 0x405247
push ebx
push edi
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
push edi
mov esi, 0x104
lea eax, [ebp + 0x194]
push esi
push eax
call fcn.00435205
lea eax, [ebp + 0x194]
push eax
call fcn.004353b0
add esp, 0x10
lea ecx, [ebp + 0x194]
dec ecx
add eax, ecx
jmp 0x40527e
dec eax
cmp byte [eax], 0x5c
jne 0x40527d
mov byte [eax], bl
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
lea edx, [ebp + 0x194]
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
lea edx, [ebp - 0x7c]
push edx
push 0x45d7e8
push eax
call dword [ecx]
test eax, eax
jge 0x4052b7
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
jmp 0x405211
push esi
lea eax, [ebp - 0x74]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x80]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push 2
lea edx, [ebp - 0x74]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor ebx, ebx
inc ebx
jmp 0x4052aa
Function at 0x40532b
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push 0x18
mov eax, 0x454e81
call fcn.0043bb65
call fcn.00419691
push eax
lea ecx, [ebp - 0x10]
call fcn.00401445
xor esi, esi
mov dword [ebp - 4], esi
call fcn.00419691
push eax
lea ecx, [ebp - 0x18]
call fcn.00401445
mov byte [ebp - 4], 1
call fcn.00419691
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401445
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 2
call fcn.0040bf5e
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004056ef
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401212
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
jne 0x4053c5
mov ebx, dword [ebp - 0x1c]
lea ecx, [ebx - 0x10]
call fcn.00401212
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401212
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401212
mov eax, esi
call fcn.0043bc3d
ret
push 0x45e608
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004055a8
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.004056ef
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401212
push dword [ebp - 0x18]
xor edi, edi
inc edi
push edi
push str.RunBoot
push str.PUBLIC
call fcn.0040c5d6
push str.RuijieSupplicant.exe__tip
push dword [ebp + 8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
call fcn.004055a8
add esp, 0x1c
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.004056ef
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401212
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
mov ebx, dword [ebp - 0x1c]
jne 0x40549f
mov edi, str.Supplicant
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp dword [ebp - 0x24], esi
je 0x405494
mov eax, dword [ebx - 0xc]
inc eax
push eax
push ebx
push 1
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x405494
mov dword [ebp - 0x20], esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4054a2
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x20]
jmp 0x40539f

Function at 0x40b6a2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
push str.SOFTWARERuijie_NetworksRuijie_Supplicant
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40b6ca
push 4
pop eax
jmp 0x40b6fa
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 4
push esi
push esi
push str.IsOnlineUpgrade
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40b6ef
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x40b6fd
Capabilities:
Check os version

Disassembly:
push 0x28
mov eax, 0x454924
call fcn.0043bb65
mov ebx, 0x47d648
mov edi, 0x47d640
mov ecx, ebx
mov dword [ebp - 0x10], edi
mov dword [0x47d640], 5
mov dword [0x47d644], 1
call fcn.00401431
xor esi, esi
mov dword [ebp - 4], esi
mov ecx, 0x47d654
mov dword [0x47d64c], 0x20
mov dword [0x47d650], esi
call fcn.00401431
push 0x9c
push esi
mov esi, 0x47d658
push esi
mov byte [ebp - 4], 1
call fcn.00435440
add esp, 0xc
push esi
mov dword [0x47d658], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40b78a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x47d650], eax
jmp 0x40b7aa
mov eax, dword [0x47d65c]
mov dword [0x47d640], eax
mov eax, dword [0x47d660]
push 0x47d66c
mov ecx, ebx
mov dword [0x47d644], eax
call fcn.0040135e
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40b7d1
mov dword [0x47d64c], 0x20
jmp 0x40b7f9
lea ecx, [ebp - 0x34]
push ecx
call eax
cmp word [ebp - 0x34], 9
je 0x40b7ef
cmp word [ebp - 0x34], 6
mov dword [0x47d64c], 0x20
jne 0x40b7f9
mov dword [0x47d64c], 0x40
call fcn.0040b842
mov eax, edi
call fcn.0043bc3d
ret