joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51c140
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x582a88]
mov edi, eax
add esp, 4
test edi, edi
jne 0x51c165
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x51c1ac
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x51c1b0
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
jbe 0x51c20e
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
sub ebp, 1
jne 0x51c1d3
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x51c251
lea esp, [esp]
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x548307
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x548308
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x51c220
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x51ec10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.0051ea10
movzx eax, al
test eax, eax
jne 0x51ec2a
xor al, al
jmp 0x51ec63
mov ecx, dword [ebp + 0xc]
call fcn.004034e0
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00402b70
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
call fcn.00402b70
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x51ec61
xor al, al
jmp 0x51ec63
mov al, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x51ee20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 8]
test eax, eax
jne 0x51ee5e
mov ecx, dword [ebp - 4]
mov byte [ecx + 8], 1
push 0
push 0
mov edx, dword [ebp - 4]
push edx
push 0x51ed70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x520960
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx ecx, word [ebp - 0x24]
cmp ecx, 9
je 0x520982
movzx edx, word [ebp - 0x24]
cmp edx, 6
jne 0x520986
mov al, 1
jmp 0x520988
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x520ce0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52952a
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x580ca0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x2c]
call fcn.00402b90
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x520d84
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004011a0
lea edx, [ebp + 0x18]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00401180
push eax
lea eax, [ebp - 0x38]
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x2c]
call fcn.00401180
push eax
mov ecx, dword [ebp + 8]
call fcn.00403470
mov ecx, dword [ebp - 0x3c]
or ecx, 1
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402c20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba1db
mov esp, ebp
pop ebp
ret
Function at 0x520dd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52956f
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x580ca0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x2c]
call fcn.00402b90
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x520ec6
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.00403470
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x88], ecx
mov byte [ebp - 4], 1
push 0x550a58
mov edx, dword [ebp - 0x88]
push edx
lea eax, [ebp - 0x64]
push eax
call fcn.00402360
add esp, 0xc
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x90], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x90]
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.00402360
add esp, 0xc
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x98], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x98]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401000
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x80]
call fcn.00402c20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00402c20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00402c20
jmp 0x520ed2
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00402b50
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00402b70
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402c20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba1db
mov esp, ebp
pop ebp
ret
Function at 0x521180
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5295cf
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x580ca0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x244], 0
push 0x228
push 0
lea eax, [ebp - 0x240]
push eax
call fcn.004ba280
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x5211e4
xor al, al
jmp 0x52128b
mov dword [ebp - 0x244], 0x22c
lea ecx, [ebp - 0x244]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x52127f
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x260]
push ecx
call fcn.00520ab0
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.00402b70
push eax
lea ecx, [ebp - 0x260]
call fcn.00402b70
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x521259
mov edx, dword [ebp - 0x23c]
mov dword [ebp - 0x264], edx
lea eax, [ebp - 0x264]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004013f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x260]
call fcn.00402c20
lea ecx, [ebp - 0x244]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x521202
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ba1db
mov esp, ebp
pop ebp
ret

Function at 0x5212b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x580ca0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], 0
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.004ba280
add esp, 0xc
push 0
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x110]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403470
mov ecx, dword [ebp - 0x114]
or ecx, 1
mov dword [ebp - 0x114], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba1db
mov esp, ebp
pop ebp
ret

Function at 0x521460
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
je 0x5214c6
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
add eax, 1
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
cmp ecx, 0x186a0
jl 0x5214ad
push 0
mov ecx, dword [ebp - 4]
call fcn.0051e6e0
mov ecx, dword [ebp - 4]
call fcn.0051e710
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ba1f0
add esp, 4
push eax
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call fcn.0051e740
mov esp, ebp
pop ebp
ret 4
Function at 0x100296c
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100b158]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
xor edi, edi
test byte [0x100b9f4], 0xc1
je 0x10029f3
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x210], ebx
call fcn.010087e8
cmp dword [ebp - 0x210], ebx
jne 0x10029f3
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.API_MS_Win_Core_LibraryLoader_L1_1_0.dll_GetModuleFileNameW]
test eax, eax
jbe 0x10029f3
inc edi
push edi
push ebx
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x10014ac
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
test byte [0x100b9f4], 0xc0
je 0x10029f3
cmp eax, 0x20
jge 0x10029f3
and dword [0x100b9f4], 0xffffffbf
xor edi, edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100803e
leave
ret 4

Function at 0x1002c02
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
and dword [ebp - 4], esi
test ebx, ebx
je 0x1002c2e
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov esi, eax
jmp 0x1002c34
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
test esi, esi
jne 0x1002cf3
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x18]
lea eax, [ebp + 8]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x1002cb8
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x1002caa
cmp ecx, dword [ebp + 8]
je 0x1002caa
push 0xd
pop esi
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002c91
test byte [eax + 0x1c], 4
je 0x1002c91
push ecx
push dword [ebp + 8]
push 0x1001480
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010025bb
test ebx, ebx
je 0x1002d19
cmp dword [ebp - 4], 0
je 0x1002d19
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x1002d19
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x1002ce1
mov ecx, dword [ebp + 0x1c]
mov dword [eax], ecx
jmp 0x1002ce1
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002ce1
test byte [eax + 0x1c], 4
je 0x1002ce1
push esi
push ebx
push dword [ebp + 0x10]
push 0x1001480
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100265a
test esi, esi
jne 0x1002c91
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x1002c91
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
jmp 0x1002d19
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002d19
test byte [eax + 0x1c], 4
je 0x1002d19
push esi
push ebx
push 0x1001480
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002727
mov eax, esi
pop esi
pop ebx
leave
ret 0x20
Function at 0x1002e53
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [ebp - 4], esi
cmp ebx, esi
je 0x1002e86
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCreateKeyExW]
mov edi, eax
jmp 0x1002e8c
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp edi, esi
jne 0x1002ef7
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov edi, eax
cmp edi, esi
je 0x1002ee9
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002ed5
test byte [eax + 0x1c], 4
je 0x1002ed5
push edi
push ebx
push dword [ebp + 0x10]
push 0x1001480
push 0x23
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100265a
cmp ebx, esi
je 0x1002f1d
cmp dword [ebp - 4], esi
je 0x1002f1d
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x1002f1d
mov eax, dword [ebp + 0x20]
cmp eax, esi
je 0x1002ed5
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
jmp 0x1002f1d
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002f1d
test byte [eax + 0x1c], 4
je 0x1002f1d
push edi
push ebx
push 0x1001480
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002727
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x1003636
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp + 8], edi
je 0x1003736
cmp dword [ebp + 0xc], edi
je 0x1003736
cmp dword [ebp + 0x10], 0xffffffff
je 0x1003736
push esi
push dword [ebp + 0x10]
call fcn.01005dfe
push dword [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyValueW]
push edi
push eax
call esi
test eax, eax
je 0x100369d
mov eax, dword [section..data]
cmp eax, section..data
je 0x100369d
test byte [eax + 0x1c], 2
je 0x100369d
push 0x1001480
push 0x41
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002595
push ebx
push dword [ebp + 0x10]
call fcn.01005e15
mov ebx, eax
cmp ebx, edi
je 0x1003734
push 0x10014c0
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x1003734
lea eax, [ebp - 8]
push eax
push 0x2001f
push edi
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x1003728
push ebx
push edi
push dword [ebp - 8]
call esi
cmp eax, edi
je 0x1003716
cmp eax, 2
je 0x1003716
mov eax, dword [section..data]
cmp eax, section..data
je 0x100371d
test byte [eax + 0x1c], 2
je 0x100371d
push 0x1001480
push 0x42
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002595
jmp 0x100371d
mov dword [ebp - 4], 1
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x1003734
cmp eax, 2
jne 0x1003734
mov dword [ebp - 4], 1
pop ebx
pop esi
mov eax, dword [ebp - 4]
pop edi
leave
ret 0xc
Function at 0x1003743
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
push dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], edi
call fcn.01005e15
mov dword [ebp - 0x20], eax
cmp dword [ebp + 8], edi
je 0x1003779
cmp eax, edi
jne 0x100377c
mov dword [ebp - 0xc], edi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
push 4
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x10038f1
cmp dword [ebp - 0xc], edi
je 0x10038f1
push ebx
mov ecx, esi
shl ecx, 2
push ecx
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp esi, edi
jbe 0x1003882
mov ebx, dword [ebp + 0x14]
inc ebx
xor ecx, ecx
push 2
pop edx
mov eax, ebx
mul edx
seto cl
mov dword [ebp - 0x14], ebx
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov edx, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp - 8]
lea esi, [edx + ecx*4]
mov dword [esi], eax
cmp eax, edi
je 0x1003879
push edi
push edi
lea edx, [ebp - 0x18]
push edx
push edi
lea edx, [ebp - 0x14]
push edx
push eax
push ecx
push dword [ebp + 0x18]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumValueW]
test eax, eax
jne 0x1003873
cmp dword [ebp - 0x18], 3
jne 0x1003873
push dword [esi]
push dword [ebp - 0x20]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x100384b
push 0x1001600
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
jne 0x1003873
push 0x10015ec
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
jne 0x1003873
mov edx, dword [ebp - 4]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x10]
inc dword [ebp - 4]
mov dword [ecx + edx*4], eax
cmp dword [ebp - 0x1c], edi
jne 0x1003873
push dword [ebp + 0xc]
push 0x10015d0
push 0x1001560
call fcn.01003636
mov dword [ebp - 0x1c], eax
inc dword [ebp - 8]
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x10]
jb 0x10037c7
xor esi, esi
cmp dword [ebp - 4], edi
jbe 0x10038ca
mov eax, dword [ebp - 0x10]
push dword [eax + esi*4]
push edi
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyValueW]
test eax, eax
je 0x10038c4
mov eax, dword [section..data]
cmp eax, section..data
je 0x10038c1
test byte [eax + 0x1c], 2
je 0x10038c1
push 0x1001480
push 0x45
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002595
mov dword [ebp - 0xc], edi
inc esi
cmp esi, dword [ebp - 4]
jb 0x1003889
xor esi, esi
cmp dword [ebp + 0x10], edi
jbe 0x10038e7
mov eax, dword [ebp + 8]
lea ebx, [eax + esi*4]
push dword [ebx]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
inc esi
pop ecx
mov dword [ebx], edi
cmp esi, dword [ebp + 0x10]
jb 0x10038d1
push dword [ebp - 0x10]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
pop ebx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret 0x14
Function at 0x10042aa
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push dword [0x100b008]
call fcn.01005dfe
push 0xf4
mov ebx, eax
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
xor esi, esi
pop ecx
mov dword [ebp - 4], eax
cmp eax, esi
je 0x10043f3
push edi
mov edi, dword [ebp + 8]
cmp ebx, 0xffffffff
je 0x100430e
mov eax, 0x1001538
cmp dword [ebp + 0xc], esi
jne 0x10042ef
mov eax, 0x10015d0
push eax
push 0x7a
push dword [ebp - 4]
call fcn.010038ff
test eax, eax
jl 0x100430e
push esi
push dword [edi]
push edi
push 3
push dword [ebp - 4]
push esi
push ebx
call fcn.01002e53
push dword [0x100b008]
call fcn.01005e15
mov ebx, eax
cmp ebx, esi
je 0x10043f2
push 0x7a
push esi
push dword [ebp - 4]
mov dword [ebp + 8], esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 0x10014c0
cmp dword [ebp + 0xc], esi
jne 0x1004343
mov eax, 0x1001560
push eax
push 0x7a
push dword [ebp - 4]
call fcn.010038ff
test eax, eax
jl 0x10043ce
push esi
lea eax, [ebp + 8]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push dword [ebp - 4]
push 0x80000002
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x10043a5
push esi
push esi
lea eax, [ebp + 0xc]
push eax
push esi
push ebx
push dword [ebp + 8]
mov dword [ebp + 0xc], esi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x100439a
push esi
push dword [edi]
push edi
push 3
push ebx
push esi
push dword [ebp + 8]
call fcn.01002e53
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x10043f2
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x10043f2
test byte [ecx + 0x1c], 2
je 0x10043f2
push eax
push 0x1001480
push 0x36
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0100279a
jmp 0x10043f2
mov eax, dword [section..data]
cmp eax, section..data
je 0x10043f2
test byte [eax + 0x1c], 2
je 0x10043f2
push 0x1001480
push 0x37
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002595
pop edi
push 0x1001618
push 0xc8
call fcn.01008759
cmp dword [ebp - 4], esi
pop esi
pop ebx
je 0x1004412
push dword [ebp - 4]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
xor eax, eax
inc eax
leave
ret 8
Function at 0x10047aa
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push edi
inc ebx
call dword [sym.imp.API_MS_Win_Core_ProcessEnvironment_L1_1_0.dll_GetCommandLineW]
test eax, eax
je 0x10047fa
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x1004820
cmp dword [ebp - 4], ebx
push esi
mov esi, ebx
jle 0x10047f0
test ebx, ebx
jle 0x10047f0
push dword [edi + esi*4]
call fcn.01003a2d
inc esi
cmp esi, dword [ebp - 4]
mov ebx, eax
jl 0x10047dc
push edi
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalFree]
pop esi
jmp 0x1004820
xor ebx, ebx
mov eax, dword [section..data]
cmp eax, section..data
je 0x1004820
test byte [eax + 0x1c], 2
je 0x1004820
push 0x1001480
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002595
pop edi
mov eax, ebx
pop ebx
leave
ret