joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d5a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x447d70]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40d67c
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x40d691
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40d650
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x40d5e8
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x40d5f8
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x40d643
test edx, edx
jne 0x40d636
test ecx, ecx
je 0x40d5e0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call ecx
cmp eax, 6
je 0x40d6a0
cmp eax, 8
je 0x40d5e0
mov eax, 3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40d5d2
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447d70]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jns 0x40d5c4
call sym._fc_key_init_once
mov eax, dword [0x447d70]
jmp 0x40d5c4
mov dword [edi + 0xc], 0
mov eax, dword [ebp - 0x14]
mov edx, ebx
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, edi
call sym.__Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x40d63b
mov eax, dword [0x447d70]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d6f3
mov edi, dword [eax + 0x30]
test edi, edi
js 0x40d71e
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x40d6ff
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447d70]
jmp 0x40d6d1
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40d6e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d6e2
call sym._fc_key_init_once
mov eax, dword [0x447d70]
jmp 0x40d6d8
Function at 0x40d820
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov eax, dword [0x447d70]
test eax, eax
je 0x40d880
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40d8a0
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40d8c0
mov eax, dword [eax + 0x28]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
je 0x40d910
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447d70]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40d842
jmp 0x40d8a0
call sym._fc_key_init_once
mov eax, dword [0x447d70]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40d849
jmp 0x40d8c0
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
sub esp, 4
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
jne 0x40d871
lea esi, [esi]
mov eax, dword [0x447d70]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d95d
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x40d969
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40d93e
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40d92d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d92d
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447d70]
jmp 0x40d91c
call sym._fc_key_init_once
mov eax, dword [0x447d70]
jmp 0x40d923
Function at 0x40d980
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x447d70]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40da14
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40da30
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40da50
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x40da08
lea edx, [ebp - 0x14]
mov eax, edi
call sym.__Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x40dacf
mov eax, dword [0x447d70]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40daa6
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40dac0
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40da80
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
lea edx, [ebp - 0x14]
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
jmp 0x40d9c5
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447d70]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40d9a0
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x447d70]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40d9ab
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40d9ae
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40d9f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d9f7
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447d70]
mov edx, dword [eax + 0x30]
test edx, edx
jns 0x40d9e9
nop
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x447d70]
jmp 0x40d9e9
call sym._abort
lea esi, [esi]
lea edi, [edi]
Function at 0x40dae0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x40db72
mov eax, dword [0x447d70]
test eax, eax
je 0x40db66
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x40dbe1
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x40db87
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
jne 0x40dbff
mov eax, dword [0x447d70]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40dbd2
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40dbf0
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40dbb3
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447d70]
jmp 0x40db02
mov dword [esp], edi
call sym.__Unwind_SjLj_RaiseException
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40db17
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40db55
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40db55
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447d70]
jmp 0x40db40
call sym._fc_key_init_once
mov eax, dword [0x447d70]
jmp 0x40db0d
call sym._fc_key_init_once
mov eax, dword [0x447d70]
jmp 0x40db4b
call sym._abort
lea esi, [esi]
lea edi, [edi]

Function at 0x40ddb0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov edx, eax
je 0x40dde0
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym.___mingwthr_key_dtor
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
Function at 0x410ad0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init

Function at 0x411440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sym._fread
test eax, eax
mov edx, eax
jle 0x411490
movzx eax, byte [esi + eax - 1]
mov dword [ebx + 0x24], eax
mov ebx, dword [ebp - 8]
mov eax, edx
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x24], 0xffffffff
mov eax, edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x401300
Capabilities:
Get common file path

Disassembly:
sub esp, 0x234
push esi
mov esi, dword [esp + 0x23c]
mov dword [esp + 4], 0
mov dword [0x41255c], esi
call fcn.004016a0
lea eax, [esp + 8]
mov dword [esp + 8], 0x30
push eax
push 0x8002
push 0
call dword [sym.imp.USER32.dll_GetClassInfoExA]
test eax, eax
jne 0x401349
pop esi
add esp, 0x234
ret 0x10
push 0x77
push esi
mov dword [esp + 0x24], esi
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 8]
mov dword [esp + 0x30], str.GPINSClass_JH
push ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
jne 0x40137e
xor eax, eax
pop esi
add esp, 0x234
ret 0x10
mov eax, dword [0x40f268]
mov ecx, dword [0x41255c]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [esp + 0x138]
push 0x100
push edx
push eax
push ecx
call esi
mov dword [0x412564], 0
mov edx, dword [esp + 0x30]
push edx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
mov dword [0x412564], eax
jne 0x401404
mov eax, dword [esp + 0x30]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x412564], eax
push 0x412568
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [esp + 4]
push edx
call fcn.00401480
add esp, 4
test eax, eax
jne 0x40143d
pop esi
add esp, 0x234
ret 0x10
mov edx, dword [0x40f24c]
mov eax, dword [0x41255c]
lea ecx, [esp + 0x38]
push 0x100
push ecx
push edx
push eax
call esi
lea ecx, [esp + 0x38]
push ecx
push str.32770
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x4013d9
xor eax, eax
pop esi
add esp, 0x234
ret 0x10
mov ecx, dword [0x40f270]
mov edx, dword [0x41255c]
lea eax, [esp + 0x38]
push 0x100
push eax
push ecx
push edx
call esi
mov eax, dword [0x40f27c]
mov ecx, dword [0x41255c]
push 0
push 0x4010b0
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
pop esi
add esp, 0x234
ret 0x10
Function at 0x401480
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x30c
mov dl, byte [0x412674]
push ebx
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x219]
mov byte [esp + 0x218], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], 0x100
push ecx
push 1
stosb byte es:[edi], al
mov eax, dword [esp + 0x324]
push 0
push str.SOFTWAREMicrosoftCryptographyDefaultsProviderBOCOM_2010USBKey_HDE_CSP_v1.0
push 0x80000002
mov dword [esp + 0x24], 0
mov dword [eax], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40151e
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x30c
ret
mov edi, str.Image_Path
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x218]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push edx
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push 0
push ecx
push edx
call ebx
test eax, eax
je 0x401586
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x30c
ret
mov edi, str.CSP_Version
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x118]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push edx
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push 0
push ecx
push edx
call ebx
test eax, eax
je 0x4015eb
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x30c
ret
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x30c
ret
Function at 0x4018a0
Capabilities:
Create process on windows
Start service

Disassembly:
sub esp, 0x3c
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 4]
mov dword [esp + 4], 0x3c
push ecx
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x14], str.open
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], str._install
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov edx, dword [esp + 0x3c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x401927
pop edi
add esp, 0x3c
ret
push ebx
push esi
push 0xf01ff
push str.BOCOM_2010USBKey_HDE_mon_Srv
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x401954
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
mov eax, 1
pop edi
add esp, 0x3c
ret

Function at 0x401970
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x44]
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], str.open
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0x40f364
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
pop edi
add esp, 0x3c
ret

Function at 0x4019e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x44]
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], str.open
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], str._remove
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
pop edi
add esp, 0x3c
ret
Function at 0x401ef0
Capabilities:
Delete registry key

Disassembly:
push ecx
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0xf003f
push esi
push str.SOFTWAREMicrosoftCryptographyCalaisSmartCardsHSIC_MiniCard
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401f3e
mov ecx, dword [esp + 4]
push 0x412674
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401f3e
mov eax, dword [esp + 4]
test eax, eax
je 0x401f36
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
test eax, eax
je 0x401f4d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret

Function at 0x401f60
Capabilities:
Set registry value

Disassembly:
sub esp, 0x28
mov al, byte [0x412674]
push ebx
push edi
mov byte [esp + 0x10], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x11]
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
push edx
push ebx
push 0xf003f
push ebx
push 0x412674
stosw word es:[edi], ax
push ebx
push str.SOFTWAREBOCOMHUADA
push 0x80000002
mov dword [esp + 0x2c], ebx
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402019
mov edi, str.2.0.0.14
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov edx, dword [esp + 0xc]
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x18]
push ecx
push 1
push ebx
push str.Version
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
jne 0x402019
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x40200e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop ebx
add esp, 0x28
ret
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x402028
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00402b20
mov eax, ebx
pop edi
pop ebx
add esp, 0x28
ret
Function at 0x402040
Capabilities:
Persist via app paths registry key
Set registry value

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov ecx, 0x10
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsHDADM_JH.exe
lea edi, [esp + 0x18]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x2f
lea edi, [esp + 0x59]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
xor ebp, ebp
push eax
push ecx
push ebp
push 0xf003f
push ebp
push 0x412674
lea edx, [esp + 0x30]
push ebp
push edx
push 0x80000002
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402104
mov esi, dword [esp + 0x11c]
or ecx, 0xffffffff
mov edi, esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
push ecx
push esi
push 1
push ebp
push str.Paths
push eax
call ebx
test eax, eax
jne 0x402104
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x14]
push esi
push 1
push ebp
push 0x412674
push ecx
call ebx
test eax, eax
jne 0x402104
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x4020f4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x402113
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x402a50
Capabilities:
Set registry value

Disassembly:
sub esp, 0x28
mov al, byte [0x412674]
push ebx
push edi
mov byte [esp + 0x10], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x11]
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
push edx
push ebx
push 0xf003f
push ebx
push 0x412674
stosw word es:[edi], ax
push ebx
push str.SOFTWAREBOCOMHUADA
push 0x80000001
mov dword [esp + 0x2c], ebx
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402b09
mov edi, str.2.0.0.14
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov edx, dword [esp + 0xc]
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x18]
push ecx
push 1
push ebx
push str.Version
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
jne 0x402b09
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x402afe
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop ebx
add esp, 0x28
ret
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x402b18
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop ebx
add esp, 0x28
ret

Function at 0x402b20
Capabilities:
Delete registry key

Disassembly:
push ecx
lea eax, [esp]
push esi
xor esi, esi
push eax
push 1
push esi
push str.SOFTWAREBOCOMHUADA
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402b6b
mov ecx, dword [esp + 4]
push 0x412674
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402b6b
mov eax, dword [esp + 4]
test eax, eax
je 0x402b63
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
test eax, eax
je 0x402b7a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret

Function at 0x402b80
Capabilities:
Delete registry key

Disassembly:
push ecx
lea eax, [esp]
push esi
xor esi, esi
push eax
push 1
push esi
push str.SOFTWAREMicrosoftCryptographyDefaultsProviderBOCOM_2010USBKey_HDE_CSP_v1.0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402bcb
mov ecx, dword [esp + 4]
push 0x412674
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402bcb
mov eax, dword [esp + 4]
test eax, eax
je 0x402bc3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
test eax, eax
je 0x402bda
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret