joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6b52ac
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x6b5354
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x6b5370
push ebx
push 0x6b5380
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040b550
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00407760
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040b278
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x6b5332
mov eax, dword [0x6ccec0]
mov eax, dword [eax + 0x20c]
call fcn.006b5200
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
mov ebx, dword [ebp - 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6b535b
lea eax, [ebp - 4]
call fcn.0040a1c8
ret

Function at 0x6b76a0
Capabilities:
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 0x25c], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x6b77dd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x25c]
mov ecx, 0x6b77f8
mov edx, ebx
call fcn.0040b4c8
mov eax, dword [ebp - 0x25c]
call fcn.0040b278
push eax
call sub.kernel32.dll_FindFirstFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x6b77b7
xor eax, eax
push ebp
push 0x6b77b0
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x6b7814
lea eax, [ebp - 0x22c]
mov ecx, 5
call fcn.00424198
test eax, eax
jne 0x6b7781
test byte [ebp - 0x258], 0x10
jne 0x6b7781
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x22c]
mov ecx, 0x104
call fcn.0040b318
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040b4c8
mov esi, dword [ebp - 0x258]
test esi, 1
je 0x6b7779
and esi, 0xfffffffe
push esi
mov eax, dword [ebp - 4]
call fcn.0040b278
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, dword [ebp - 4]
call fcn.00423a18
lea eax, [ebp - 0x258]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x6b7711
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6b77b7
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindClose
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6b77e4
lea eax, [ebp - 0x260]
mov edx, 2
call fcn.0040a228
lea eax, [ebp - 4]
call fcn.0040a1c8
ret
Function at 0x401000
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x2c
mov eax, 0x446eb6
call fcn.00436729
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x38], edi
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.00401d55
mov dword [ebp - 4], edi
mov dword [ebp - 0x30], edi
push 0xf0000040
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.00401cd7
cmp eax, 0x80090019
jne 0x401050
push 0xf0000048
lea eax, [ebp - 0x30]
push eax
call fcn.00401cd7
cmp eax, edi
jge 0x401064
lea eax, [ebp - 0x2c]
push eax
mov ecx, ebx
call fcn.00401cb1
jmp 0x401112
mov dword [ebp - 0x34], edi
lea eax, [ebp - 0x34]
push eax
push edi
push edi
push 0x8003
mov byte [ebp - 4], 2
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40108a
call fcn.00401cfe
jmp 0x40108c
xor eax, eax
cmp eax, edi
jl 0x4010f6
cmp dword [esi + 0x18], 0x10
mov eax, dword [esi + 0x14]
jb 0x40109e
mov esi, dword [esi + 4]
jmp 0x4010a1
add esi, 4
push eax
push esi
lea eax, [ebp - 0x34]
call fcn.004019a3
test eax, eax
jl 0x4010f6
push 0x11
pop eax
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x38], eax
call fcn.00401337
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x4010c9
lea eax, [ebp - 0x28]
push edi
lea ecx, [ebp - 0x38]
push ecx
push eax
push 2
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x4010e5
call fcn.00401cfe
jmp 0x4010e7
xor eax, eax
cmp eax, edi
jl 0x4010f6
push 0x10
pop eax
lea esi, [ebp - 0x2c]
call fcn.00401337
lea eax, [ebp - 0x2c]
push eax
mov ecx, ebx
call fcn.00401cb1
cmp dword [ebp - 0x34], edi
je 0x401112
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x34], edi
cmp dword [ebp - 0x30], edi
je 0x40112f
push edi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x40112c
call fcn.00401cfe
jmp 0x40112f
mov dword [ebp - 0x30], edi
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401d71
mov eax, ebx
call fcn.004367ac
ret

Function at 0x4019a3
Capabilities:
Hash data via wincrypt

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4019c0
call fcn.00401cfe
jmp 0x4019c2
xor eax, eax
ret 8
Function at 0x403c21
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c4
mov eax, dword [0x4592c4]
xor eax, esp
mov dword [esp + 0x1c0], eax
push ebx
push esi
push edi
push 0x44c3b4
lea eax, [esp + 0x18]
call fcn.0040138b
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x114]
push eax
call fcn.004320f7
xor ebx, ebx
push ebx
push 1
lea esi, [esp + 0x1c]
call fcn.00401952
call fcn.0040b423
call fcn.00403bae
mov esi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push str.1C49D6C1_DF17_4c22_8F76_0223272B35DA
push ebx
mov edi, 0x20000
push edi
call esi
mov dword [0x45a350], eax
cmp eax, ebx
je 0x403ced
push ebx
push 2
push ecx
mov edi, esp
mov dword [esp + 0x1c], esp
push 0x44c3b8
call fcn.0040ac19
push ecx
mov edi, esp
mov dword [esp + 0x20], esp
push 0x44c3c0
call fcn.0040ac19
lea eax, [esp + 0x40]
push eax
call fcn.00406473
lea eax, [esp + 0x14]
push eax
lea ebx, [esp + 0x34]
call fcn.0040dd8e
call fcn.0040e2a4
push dword [0x45a350]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call fcn.00406838
jmp 0x403dec
push 0x44c33c
push ebx
push edi
call esi
mov dword [0x45a350], eax
cmp eax, ebx
je 0x403d21
push ebx
push 2
push ecx
mov edi, esp
mov dword [esp + 0x1c], esp
push 0x44c3b8
call fcn.0040ac19
push ecx
mov edi, esp
mov dword [esp + 0x20], esp
push 0x44c3f0
jmp 0x403cb3
push str.1C49D6C1_DF17_4c22_8F76_0223272B35DA
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x45a350], eax
call fcn.00405ad0
call fcn.00401e30
mov esi, eax
cmp dword [esi + 0x18], 0xffffffff
jne 0x403d6c
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push esi
push 0x402889
push ebx
push ebx
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x18], eax
push 0xd8
call fcn.004333fe
pop ecx
cmp eax, ebx
je 0x403d83
push eax
call fcn.004072cd
jmp 0x403d85
xor eax, eax
lea ecx, [esp + 0x14]
push ecx
mov dword [0x45d884], eax
call fcn.0040de62
mov ecx, dword [0x45d884]
mov eax, dword [ecx]
push 1
call dword [eax + 0x14]
mov ecx, dword [0x45d884]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov dword [0x45d5a0], eax
call fcn.0040b8bc
mov ecx, dword [0x45d888]
cmp ecx, ebx
je 0x403dc6
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [0x45d88c]
cmp ecx, ebx
je 0x403dd6
mov eax, dword [ecx]
push 1
call dword [eax]
call fcn.0040b4c8
call fcn.00405ad0
push dword [0x45a350]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x110]
push eax
call fcn.004322e5
mov ecx, dword [esp + 0x1cc]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00433357
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403e12
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44902c
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x4592c4]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push esi
push edi
mov eax, dword [0x4592c4]
xor eax, esp
push eax
lea eax, [esp + 0x438]
mov dword fs:[0], eax
xor eax, eax
mov esi, 0x206
push esi
mov word [esp + 0x228], ax
xor edi, edi
lea eax, [esp + 0x22a]
push edi
push eax
call fcn.00435dc0
add esp, 0xc
xor eax, eax
push esi
mov word [esp + 0x20], ax
lea eax, [esp + 0x22]
push edi
push eax
call fcn.00435dc0
add esp, 0xc
mov ebx, 0x104
push ebx
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x1c]
push 0x5c
push eax
call fcn.00433d52
pop ecx
pop ecx
xor ecx, ecx
lea edi, [esp + 0x1c]
dec edi
mov word [eax], cx
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x403eb6
push 0xa
pop ecx
mov esi, str.SHOnlineInstall.ini
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1c]
push eax
push ebx
lea eax, [esp + 0x22c]
push eax
push str.http:__photocdn.hd.sohu.com_upgrade_IFoxInfo.cfg
push str.cfgUrl
push str.UPGRADE
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
sub esp, 0x20
mov esi, esp
mov dword [esp + 0x34], esp
push dword [esp + 0x38]
mov eax, 0x403fcb
push eax
call fcn.004058c2
and dword [esp + 0x460], 0
lea eax, [esp + 0x244]
push eax
call fcn.00401e30
or dword [esp + 0x464], 0xffffffff
push eax
call fcn.00401e6c
mov ecx, dword [esp + 0x438]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.00433357
mov esp, ebp
pop ebp
ret
Function at 0x404e61
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
mov eax, 0x45a378
call fcn.00405100
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push 0x45a3f0
xor ebx, ebx
call fcn.00401865
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x45d880
call esi
push 0x40
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.00435dc0
mov ecx, dword [0x45d884]
mov dword [ebp - 0x14], ebx
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
mov dword [ebp - 0x5c], 0x44
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
cmp dword [0x45a408], 8
mov eax, dword [0x45a3f4]
jae 0x404ed4
mov eax, 0x45a3f4
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp - 0x14], 0xffffffff
je 0x404efd
push 1
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
cmp dword [ebp - 0x10], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x404f0e
push dword [ebp - 0x10]
call edi
cmp dword [ebp - 0x14], 0xffffffff
je 0x404f19
push dword [ebp - 0x14]
call edi
push ebx
push 0x45d880
call esi
push ebx
push ebx
push 0x12
push dword [0x45d5a0]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404f36
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x4592c4]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call fcn.00435dc0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x7c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x404f82
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x7e], 0x5c
jne 0x404fb3
lea eax, [ebp - 0x7c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x404f9e
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x7e], cx
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00433e07
pop ecx
pop ecx
test eax, eax
je 0x404fd0
push 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x7c]
push eax
mov eax, edi
call fcn.0040138b
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
mov eax, edi
call fcn.00433357
add ebp, 0x190
leave
ret

Function at 0x404ff2
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
push 0x44c60c
push dword [esp + 0x10]
mov esi, eax
call fcn.00433ee5
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x405010
xor al, al
jmp 0x405036
cmp dword [esi + 0x18], 0x10
mov eax, dword [esi + 0x14]
jb 0x40501e
mov esi, dword [esi + 4]
jmp 0x405021
add esi, 4
push edi
push eax
push 1
push esi
call fcn.00434772
push edi
call fcn.0043454a
add esp, 0x14
mov al, 1
pop edi
pop esi
ret
Function at 0x405c1d
Capabilities:
Check http status code
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor edi, edi
push edi
push edi
push edi
push edi
push edi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
cmp ebx, edi
jne 0x405c3f
xor eax, eax
jmp 0x405cd4
push esi
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [ebp - 4]
push eax
push 5
push ebx
mov dword [ebp - 4], 0x3e8
call esi
push 4
lea eax, [ebp - 4]
push eax
push 2
push ebx
call esi
push 4
lea eax, [ebp - 4]
push eax
push 6
push ebx
call esi
push edi
push 0x84400000
push edi
push edi
push dword [ebp + 8]
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
cmp esi, edi
jne 0x405c8f
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x405cbe
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x20000013
push esi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
test eax, eax
jne 0x405cc2
call edi
push esi
call edi
xor eax, eax
jmp 0x405cd3
call edi
push esi
call edi
xor eax, eax
cmp dword [ebp - 8], 0xc8
sete al
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x405cda
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
sub esp, 0x240
lea ebp, [esp - 4]
mov eax, dword [0x4592c4]
xor eax, ebp
mov dword [ebp + 0x240], eax
push 0x10
mov eax, 0x4473b9
call fcn.004366c0
mov ebx, ecx
xor edi, edi
lea ecx, [ebp + 0x1c]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edi
call fcn.00405e73
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push edi
push str.SOFTWARESOHUSoHuVA
push 0x80000001
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405d57
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0x1c]
push eax
mov esi, ebx
call fcn.00403b88
push edi
push 1
lea esi, [ebp + 0x1c]
call fcn.00401952
mov eax, ebx
jmp 0x405e50
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x1c]
push eax
push edi
push edi
push edi
mov esi, str.GUID
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], edi
call ebx
test eax, eax
je 0x405dd9
xor eax, eax
push 0x206
mov word [ebp + 0x38], ax
lea eax, [ebp + 0x3a]
push edi
push eax
call fcn.00435dc0
mov ecx, dword [ebp + 0x20]
add esp, 0xc
cmp dword [ebp + 0x34], 8
jae 0x405d9a
lea ecx, [ebp + 0x20]
lea edx, [ebp + 0x38]
movzx eax, word [ecx]
inc ecx
mov word [edx], ax
inc ecx
inc edx
inc edx
cmp ax, di
jne 0x405d9d
push 0x208
lea eax, [ebp + 0x38]
push eax
push 1
push edi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x14]
lea eax, [ebp + 0x1c]
push eax
call fcn.00403b88
jmp 0x405e42
push dword [ebp - 0x1c]
call fcn.00432d0e
pop ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
push edi
push edi
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
call ebx
cmp eax, edi
je 0x405e0a
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x18]
call fcn.0043334c
pop ecx
jmp 0x405dcb
push dword [ebp - 0x18]
lea eax, [ebp]
call fcn.0040138b
push dword [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004347f4
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x14]
lea eax, [ebp]
push eax
call fcn.00403b88
push edi
push 1
lea esi, [ebp]
call fcn.00401952
push edi
push 1
lea esi, [ebp + 0x1c]
call fcn.00401952
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x240]
xor ecx, ebp
call fcn.00433357
add ebp, 0x244
leave
ret
Function at 0x4062ea
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406301
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x406336
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x406332
cmp edi, eax
jae 0x406336
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x406324
cmp edi, eax
jb 0x40633a
xor eax, eax
jmp 0x406343
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x4068c7
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xd8]
mov eax, dword [eax]
push edi
xor edi, edi
cmp dword [eax - 0xc], edi
je 0x4068eb
push 1
push edi
push edi
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x7c]
pop edi
pop esi
ret 8

Function at 0x407ce4
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi + 4]
mov esi, ecx
cmp eax, 0x100
je 0x407d01
cmp eax, 0x104
jne 0x407d9b
push dword [edi]
mov eax, dword [esi]
call dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
jne 0x407d1e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp dword [edi], eax
jne 0x407d63
cmp dword [edi + 8], 0x1b
jne 0x407d32
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x7c]
xor eax, eax
inc eax
jmp 0x407d9d
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push ebp
push 0xa4
call ebx
push 0xa5
movzx ebp, ax
call ebx
movzx ecx, ax
mov eax, 0x8000
test eax, ebp
pop ebp
pop ebx
jne 0x407d5d
test eax, ecx
je 0x407d63
cmp dword [edi + 8], 0x73
je 0x407d24
push dword [edi]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x407d9b
push edi
push dword [edi + 8]
push 0x87
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x407d9b
cmp dword [edi + 8], 9
jne 0x407d9b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 4

Function at 0x40c525
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x40c533
push 0xd
pop eax
jmp 0x40c566
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40c53a
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40c9e8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4592c4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 4]
push edi
push ecx
push dword [esi]
mov dword [ebp - 0x21c], ecx
xor edi, edi
or eax, 0x2001f
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edi
call fcn.0040c9aa
mov ebx, eax
cmp ebx, edi
je 0x40ca4e
cmp dword [ebp - 0x214], edi
je 0x40ca47
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40cae6
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40ca76
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.0040c9e8
mov dword [ebp - 0x220], eax
cmp eax, edi
jne 0x40caf7
lea eax, [ebp - 0x228]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call ebx
test eax, eax
je 0x40ca56
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], edi
je 0x40cac1
push dword [ebp - 0x214]
call ebx
mov dword [ebp - 0x214], edi
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], edi
call fcn.0040cb64
mov esi, eax
cmp dword [ebp - 0x214], edi
je 0x40cae4
push dword [ebp - 0x214]
call ebx
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00433357
leave
ret 4
cmp dword [ebp - 0x214], edi
je 0x40cb0b
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
jmp 0x40cae6

Function at 0x40cb64
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x45da1c], 0
jne 0x40cb94
push 0x44d4ac
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40cb8d
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x45da20], eax
mov byte [0x45da1c], 1
mov eax, dword [0x45da20]
test eax, eax
je 0x40cbac
push 0
push dword [esi + 4]
push dword [esp + 0xc]
push dword [esi]
call eax
jmp 0x40cbb8
push dword [esp + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
ret 4
Function at 0x418ba3
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x446296
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x4592c4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, esi
call fcn.00412645
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov dword [esp + 0xc], vtable.shui::CSHSignalArgs.0
and dword [esp + 0x38], 0
lea eax, [esp + 0xc]
push eax
push esi
add esi, 0x98
push esi
call fcn.00405182
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret