joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451bfb
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea4
push ebx
xor ecx, ecx
mov dword [ebp - 0x15c], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x451c4e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
mov edx, 2
mov eax, 0x451c68
call fcn.004519b4
xor edx, edx
mov eax, 2
call fcn.00450d10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x451c35
xor eax, eax
push ebp
push 0x451c2e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x13c], 0x128
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 0x10]
call fcn.00450d30
test eax, eax
je 0x451c17
lea eax, [ebp - 0x15c]
lea edx, [ebp - 0x118]
mov ecx, 0x104
call fcn.00404b28
mov eax, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.0040aaa8
test al, al
je 0x451bfb
xor edx, edx
mov eax, 4
call fcn.00450d10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x451bfb
xor eax, eax
push ebp
push 0x451bf4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x158], 0x1c
lea eax, [ebp - 0x158]
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.00450d70
test eax, eax
je 0x451bdd
mov eax, dword [ebp - 0x134]
cmp eax, dword [ebp - 0x14c]
jne 0x451bc3
mov eax, 0x4672a8
mov ecx, 0x451c84
mov edx, 0x451c98
call fcn.00450e88
mov eax, dword [ebp - 0x150]
push eax
push 0
push 2
call dword [0x4672a8]
mov ebx, eax
test ebx, ebx
je 0x451bc3
cmp byte [ebp - 5], 0
je 0x451bb5
push ebx
call sub.kernel32.dll_SuspendThread
cmp eax, 0xffffffff
je 0x451bc3
inc dword [ebp - 0xc]
jmp 0x451bc3
push ebx
call sub.kernel32.dll_ResumeThread
cmp eax, 0xffffffff
je 0x451bc3
inc dword [ebp - 0xc]
lea eax, [ebp - 0x158]
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.00450d94
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x451b66
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451bfb
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
ret
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 0x10]
call fcn.00450d50
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x451af5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451c35
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451c55
lea eax, [ebp - 0x15c]
call fcn.004048b8
ret
Function at 0x451d0c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404d84
xor eax, eax
push ebp
push 0x451e59
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [0x462080]
cmp dword [eax], 2
jne 0x451e43
mov eax, esi
call fcn.00451ca8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x451e43
push 2
call sub.advapi32.dll_ImpersonateSelf
test eax, eax
je 0x451e43
lea eax, [ebp - 8]
push eax
push 0
push 0x1ab
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
test eax, eax
je 0x451e3e
mov edx, 2
mov eax, 0x451e74
call fcn.004519b4
test eax, eax
jne 0x451e35
push 4
lea eax, [ebp - 0x10]
push eax
push 0xc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_SetTokenInformation
test eax, eax
je 0x451e35
mov eax, 0x467288
mov ecx, 0x451e8c
mov edx, 0x451ea8
call fcn.00450e88
lea eax, [ebp - 0xc]
push eax
push 1
push 2
push 0
push 0xb
mov eax, dword [ebp - 8]
push eax
call dword [0x467288]
test eax, eax
je 0x451e2c
lea eax, [ebp - 0x64]
xor ecx, ecx
mov edx, 0x44
call fcn.004034cc
mov dword [ebp - 0x64], 0x44
mov eax, 0x451eb8
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push edi
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404d94
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CreateProcessAsUserA
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
call sub.advapi32.dll_RevertToSelf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451e60
lea eax, [ebp - 4]
call fcn.004048b8
ret

Function at 0x451ec8
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x451f81
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x462080]
cmp dword [eax], 2
jne 0x451f0c
push 4
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_MoveFileExA
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x451f66
push 0x451f90
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040bb94
mov eax, dword [ebp - 0xc]
call fcn.00404d94
push eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0040bb94
lea eax, [ebp - 0x10]
mov edx, 0x451fa4
call fcn.00404b9c
mov eax, dword [ebp - 0x10]
call fcn.00404d94
push eax
push 0x451fa8
call sub.kernel32.dll_WritePrivateProfileStringA
cmp eax, 1
sbb ebx, ebx
inc ebx
push 0x451f90
push 0
push 0
push 0
call sub.kernel32.dll_WritePrivateProfileStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451f88
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004048dc
ret
Function at 0x45236c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x45245c
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004227d0
mov dword [edi + 0x100], eax
xor esi, esi
mov edx, dword [edi + 0xa8]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
sub eax, esi
call fcn.00422678
mov ebx, eax
test ebx, ebx
je 0x4523c6
push 1
mov edx, dword [ebp - 4]
add edx, esi
mov ecx, ebx
mov eax, edi
call fcn.004275bc
add esi, ebx
jmp 0x45239a
call fcn.004227d0
mov ebx, eax
sub ebx, dword [edi + 0x100]
cmp ebx, 0x15f90
jbe 0x452446
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0x320
je 0x452446
lea eax, [ebp - 8]
push eax
mov eax, ebx
mov ecx, 0x3e8
xor edx, edx
div ecx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cdq
call fcn.00405a38
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x10
mov eax, dword [edi + 0xa8]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x18]
mov ecx, 1
mov eax, 0x452474
call fcn.0040c3d0
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov edx, 0xbb8
mov eax, edi
call fcn.00452564
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452463
lea eax, [ebp - 8]
call fcn.004048b8
ret
Function at 0x45389c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x3c], edx
mov esi, eax
xor eax, eax
push ebp
push 0x453acc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x462080]
cmp dword [eax], 2
jne 0x453a1c
mov edx, 0x453adc
mov cl, 1
mov eax, 0x453b04
call fcn.00410894
test al, al
je 0x4539d9
call sub.kernel32.dll_GetCurrentThreadId_1
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x452d40
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x4539d2
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
push 0x1f4
push 0
lea eax, [ebp - 0x14]
push eax
push 2
call sub.kernel32.dll_WaitForMultipleObjects
mov ebx, eax
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x4539af
mov eax, dword [ebp - 0x2c]
sub eax, 0x1e
je 0x453959
sub eax, 0x43a
je 0x453967
sub eax, 3
je 0x45399a
jmp 0x4539af
mov eax, dword [0x4672c4]
call dword [0x4672c0]
jmp 0x4539af
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x28]
call fcn.0040ea48
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0xb
lea eax, [ebp - 0x38]
push eax
push 0
mov ecx, 0x453b14
mov dl, 1
mov eax, dword [0x409d2c]
call fcn.0040f29c
call fcn.0040426c
jmp 0x4539af
mov byte [0x461c08], 0
push 0x2710
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp ebx, 0x102
je 0x45391a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453ab6
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
ret
push 0x1f4
push esi
call sub.kernel32.dll_WaitForSingleObject
mov ebx, eax
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x453a0f
mov eax, dword [ebp - 0x2c]
sub eax, 0x1e
jne 0x453a0f
mov eax, dword [0x4672c4]
call dword [0x4672c0]
cmp ebx, 0x102
je 0x4539d9
jmp 0x453ab6
push 0x453b2c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4672cc], eax
cmp dword [0x4672cc], 0
jne 0x453a39
call fcn.004109ac
push 0x453b3c
mov eax, dword [0x4672cc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
mov dword [0x4672d4], ebx
test ebx, ebx
jne 0x453a5a
call fcn.004109ac
push 1
push 0
call dword [0x4672d4]
test eax, eax
jne 0x453a6d
call fcn.004109ac
call fcn.00452978
push 0x1f4
push esi
call sub.kernel32.dll_WaitForSingleObject
mov ebx, eax
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x453aae
mov eax, dword [ebp - 0x2c]
sub eax, 0x12
je 0x453ab6
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_DispatchMessageA
cmp ebx, 0x102
je 0x453a72
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453ad3
lea eax, [ebp - 0x3c]
call fcn.004048b8
ret
Function at 0x45628c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
add esi, 0xfffffffc
push esi
mov esi, 0x456378
lea edi, [ebp - 0x210]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop esi
push esi
mov esi, 0x456398
lea edi, [ebp - 0x110]
mov ecx, 0x2b
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop esi
mov eax, dword [esi]
mov eax, dword [eax + 0x48]
mov edx, dword [eax + 0x408c]
mov dword [ebp - 0x10], edx
mov al, byte [eax + 0x55]
mov byte [ebp - 0xc], al
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0x210]
push eax
push 0x456008
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x456371
xor eax, eax
push ebp
push 0x45636a
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x456332
mov eax, dword [esi]
mov ebx, dword [eax + 0x48]
cmp byte [ebx + 0x409e], 0
jne 0x456347
cmp byte [ebx + 0xd], 0
jne 0x456347
mov eax, dword [esi]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x54]
test al, al
je 0x456347
push 0x3e8
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x456310
mov eax, dword [esi]
mov eax, dword [eax + 0x48]
mov byte [eax + 0x409e], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456371
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4564d4
Capabilities:
Check for time delay via gettickcount
Enumerate gui resources

Disassembly:
push ebx
call fcn.004227d0
mov ebx, eax
jmp 0x4564f4
push 0
push 0x455f44
call sub.user32.dll_EnumWindows
mov eax, 0x64
call fcn.00422970
call fcn.004227d0
sub eax, ebx
cmp eax, 0x1388
jb 0x4564de
pop ebx
ret

Function at 0x459b78
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov edx, dword [0x462080]
cmp dword [edx], 2
jne 0x459b93
call fcn.00459b04
jmp 0x459c17
mov byte [eax + 0x409f], 0
mov byte [eax + 0x54], 0
lea edx, [ebp - 4]
mov eax, 0x459c24
call fcn.0045151c
test al, al
jne 0x459c0d
lea edx, [ebp - 8]
mov eax, 0x459c3c
call fcn.0045151c
test al, al
je 0x459c0d
mov eax, dword [ebp - 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x459c0d
xor edx, edx
push ebp
push 0x459c06
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459c0d
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
mov eax, 0x7530
call fcn.00459b40
mov esp, ebp
pop ebp
ret
Function at 0x45aa00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x45aaf2
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetCommandLineA_1
mov edx, eax
lea eax, [ebp - 0x14]
call fcn.00404ab0
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0xc]
call fcn.0040a994
lea eax, [ebp - 0x10]
call fcn.004048b8
mov edx, dword [ebp - 0xc]
mov eax, 0x45ab08
call fcn.00404ed8
mov ebx, eax
test ebx, ebx
jle 0x45aaa1
add ebx, 9
mov dword [ebp - 8], ebx
mov esi, ebx
mov eax, dword [ebp - 0xc]
call fcn.00404b94
sub eax, esi
jl 0x45aa89
inc eax
mov edx, dword [ebp - 0xc]
mov dl, byte [edx + esi - 1]
add dl, 0xe0
cmp dl, 0x5f
ja 0x45aa80
and edx, 0x7f
bt dword [0x45ab14], edx
jb 0x45aa89
inc dword [ebp - 8]
inc esi
dec eax
jne 0x45aa67
cmp ebx, dword [ebp - 8]
jge 0x45aaa1
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
sub ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00404df4
cmp byte [ebp - 1], 0
je 0x45aac1
cmp dword [ebp - 0x10], 0
je 0x45aac1
mov ecx, 0x45ab28
mov edx, 0x45ab3c
mov eax, dword [ebp - 0x10]
call fcn.0041e418
jmp 0x45aad7
cmp byte [ebp - 1], 0
jne 0x45aad7
test ebx, ebx
jle 0x45aad7
mov eax, dword [0x461cfc]
mov eax, dword [eax]
call fcn.0040b70c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45aaf9
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004048dc
ret
Function at 0x1000565a
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
push edi
test edx, edx
je 0x1000569f
mov ecx, edx
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10005672
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
mov ecx, 0x80004005
call fcn.10005aee
int3

Function at 0x100056aa
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
test edx, edx
je 0x10005706
xor eax, eax
mov edi, edx
mov dword [ebp - 4], eax
mov esi, eax
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 8], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x100056ce
sub ecx, dword [ebp - 8]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x100056c6
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, 0x80004005
call fcn.10005aee
int3
Function at 0x10005bd7
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x1002f538]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x14]
push esi
push edi
push eax
mov edi, ecx
xor ecx, ecx
push 0x2001f
push ecx
push ebx
push dword [edi]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x10005cbb
cmp dword [esp + 0xc], esi
je 0x10005c3d
push dword [esp + 0xc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov esi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
test esi, esi
jne 0x10005cbb
lea ecx, [esp + 0x20]
push ecx
push esi
push esi
push esi
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x3c]
push ecx
push esi
push eax
jmp 0x10005c8a
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.10005bd7
mov esi, eax
test esi, esi
jne 0x10005cbb
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
mov dword [esp + 0x38], 0x100
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
je 0x10005c5f
cmp dword [esp + 0xc], 0
je 0x10005cb1
push dword [esp + 0xc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov dword [esp + 0xc], esi
push ebx
mov ecx, edi
call fcn.10005d35
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x10005ccc
push dword [esp + 0xc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10029f60
mov esp, ebp
pop ebp
ret 4
Function at 0x1000d1a5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000d201
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000d1f3
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x1000d1ef
cmp esi, ecx
jae 0x1000d1f3
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x1000d1dd
cmp esi, ecx
jb 0x1000d1f7
xor eax, eax
jmp 0x1000d200
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x10011099
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov bl, 1
mov ecx, dword [edi + 0x54]
mov eax, ecx
and eax, 0xc
cmp al, 0xc
jne 0x100110e9
mov eax, dword [edi + 4]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [edi + 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0xfffffffe
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0xc]
push ecx
push esi
push 0x4e
push eax
jmp 0x10011114
shr ecx, 2
test cl, 1
je 0x1001111c
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [edi + 4]
mov ecx, eax
movzx eax, si
push eax
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x10011149
push 1
xor esi, esi
push esi
push esi
push dword [edi + 0x28]
push 0x10002bbc
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta bl
jbe 0x10011149
or byte [edi + 0x58], 2
push 1
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100114bf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1001152c
cmp dword [ebp - 4], 1
je 0x10011504
cmp dword [ebp - 4], 2
je 0x10011504
push 0xd
pop eax
jmp 0x1001152c
mov ecx, dword [ebp - 8]
test esi, esi
je 0x10011526
test ecx, ecx
je 0x10011521
test cl, 1
jne 0x100114ff
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x10011526
jmp 0x100114ff
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001e232
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 8], ebx
je 0x1001e24a
mov eax, 0x8000ffff
jmp 0x1001e349
lea edi, [esi + 0x24]
mov ecx, edi
call fcn.10004ff3
test eax, eax
js 0x1001e349
push ebx
push ebx
push ebx
push ebx
mov byte [edi + 0x18], 1
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x40], eax
test eax, eax
jne 0x1001e288
cmp byte [edi + 0x18], bl
je 0x1001e280
push edi
mov byte [edi + 0x18], bl
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop esi
pop ebx
jmp fcn.100052d9
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
test edi, edi
jne 0x1001e2bc
call fcn.100052d9
push ecx
mov ecx, esi
mov edi, eax
call fcn.1001e87b
test eax, eax
jns 0x1001e347
test edi, edi
js 0x1001e347
jmp 0x1001e345
push ebx
push ebx
push edi
mov ecx, esi
call fcn.1001e19c
mov ebx, eax
test ebx, ebx
jns 0x1001e2df
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov ecx, esi
call fcn.1001e87b
mov eax, ebx
jmp 0x1001e349
xor edi, edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
test ebx, ebx
je 0x1001e298
push edi
push edi
push ebx
mov ecx, esi
call fcn.1001e19c
mov edi, eax
test edi, edi
jns 0x1001e312
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov ecx, esi
call fcn.1001e87b
jmp 0x1001e347
lea eax, [esi + 4]
push eax
xor eax, eax
push eax
push esi
push 0x1001e850
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
test eax, eax
je 0x1001e298
push 0xffffffffffffffff
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1001e347
call fcn.100052d9
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x1001f95a
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x1002fa68]
push esi
push edi
test eax, eax
jne 0x1001f973
call fcn.1001fa2f
test eax, eax
je 0x1001f9bf
mov eax, dword [0x1002fa68]
cmp eax, 1
jne 0x1001f98f
push 0xd
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1001f9bf
jmp 0x1001fa05
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov ecx, eax
test ecx, ecx
je 0x1001f9a8
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, ecx
jmp 0x1001fa05
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 0x1001f9c3
xor eax, eax
jmp 0x1001fa05
mov eax, dword [esi]
push dword [0x1002fa68]
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov edi, eax
test edi, edi
je 0x1001f9e9
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x1001fa05
lea edi, [esi + 0xff0]
push esi
push dword [0x1002fa68]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1001f9ef
mov eax, esi
pop edi
pop esi
ret