joyce8/EMBER2024-capa huggingface dataset:
Function at 0xbed843
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0xc940a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x24]
push esi
push edi
push 6
mov dword [ebp - 0x220], eax
lea edi, [ebp - 0x244]
xor eax, eax
mov dword [ebp - 0x224], edx
mov edx, ecx
mov word [ebp - 0x20c], ax
pop ecx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x218]
xor esi, esi
stosd dword es:[edi], eax
push edx
push 0xa1dd44
push 0x104
stosd dword es:[edi], eax
mov dword [ebx], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], esi
stosd dword es:[edi], eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x21c], esi
call fcn.00beccef
add esp, 0x10
test eax, eax
jns 0xbed8de
push 0xa1dd70
push 0x4e4
push 0xa1dd94
push 1
call fcn.00a32ac8
add esp, 0x10
jmp 0xbed9cb
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x244], 0x18
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x244]
push eax
push 0x20019
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x240], esi
push eax
mov dword [ebp - 0x238], 0x40
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], esi
call dword [sym.imp.ntdll.dll_ZwOpenKey]
test eax, eax
jns 0xbed99f
push esi
push 0xc
lea eax, [ebp - 0x218]
xor edi, edi
push eax
inc edi
push edi
call dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
test eax, eax
jns 0xbed974
push eax
push 0xa1dfd4
push 0x507
push 0xa1dd94
push edi
call fcn.00a32ac8
add esp, 0x14
jmp 0xbed9cb
cmp word [ebp - 0x218], 9
je 0xbed982
mov esi, edi
jmp 0xbed9cb
lea eax, [ebp - 0x244]
push eax
push 0x20119
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.ntdll.dll_ZwOpenKey]
test eax, eax
js 0xbed97e
mov edx, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x21c]
push ebx
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x220]
push dword [ebp + 8]
call fcn.00bed9f3
mov esi, eax
cmp dword [ebp - 0x21c], 0
je 0xbed9e0
push dword [ebp - 0x21c]
call dword [sym.imp.ntdll.dll_ZwClose]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00ab3c50
leave
ret 0x20
Function at 0xbeea34
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov ecx, dword [ebp + 8]
mov eax, edx
push 0x6001
mov dword [ebp - 4], eax
mov ebx, esi
mov dword [ecx], esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], esi
mov ecx, dword [ebp + 0x10]
mov dword [ecx], esi
mov ecx, dword [ebp + 0x14]
mov dword [ecx], esi
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0x2000
mov ecx, edi
call fcn.00a31958
test eax, eax
jne 0xbeea95
push 0xa1e0ec
push 0x61a
push 0xa1debc
push 1
call fcn.00a32ac8
add esp, 0x10
jmp 0xbeebf6
mov edx, eax
mov ecx, edi
call fcn.00a31767
mov dword [ebp - 0x10], eax
test eax, eax
je 0xbeebc5
cmp word [eax], si
je 0xbeebc5
mov edx, dword [ebp - 4]
mov ecx, edi
push 0x9013
call fcn.00a31958
mov dword [ebp - 0xc], eax
test eax, eax
jne 0xbeead4
push 0xa1df04
push 0x629
jmp 0xbeea81
mov edx, eax
mov ecx, edi
call fcn.00a31c00
mov edx, eax
mov dword [ebp - 8], edx
test edx, edx
jne 0xbeeaf2
push 0xa1df24
push 0x62f
jmp 0xbeea81
mov eax, dword fs:[0x30]
mov ecx, dword [eax + 0x18]
lea eax, [edx + 2]
push eax
push 8
push ecx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
jne 0xbeeb1d
push 0xa1df48
push 0x635
jmp 0xbeea81
push dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ecx, edi
push ebx
call fcn.00a3118a
test eax, eax
jne 0xbeeb3e
mov eax, 0x63a
mov ecx, 0xa1df70
jmp 0xbeebcf
mov edx, dword [ebp - 4]
mov ecx, edi
push 0x4053
call fcn.00a31958
test eax, eax
jne 0xbeeb5d
mov eax, 0x643
mov ecx, 0xa1df94
jmp 0xbeebcf
push esi
mov edx, eax
mov ecx, edi
call fcn.00a3142f
mov dword [ebp - 0xc], eax
test eax, eax
jne 0xbeeb7a
mov eax, 0x649
mov ecx, 0xa1dfb4
jmp 0xbeebcf
mov edx, dword [ebp - 4]
mov ecx, edi
push 0x4001
call fcn.00a31958
mov ecx, 0x2000
test eax, eax
je 0xbeeb9e
push ecx
mov edx, eax
mov ecx, edi
call fcn.00a3142f
mov ecx, eax
mov edx, dword [ebp + 8]
xor esi, esi
mov eax, dword [ebp - 0x10]
inc esi
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0x18]
mov dword [eax], ecx
jmp 0xbeebf6
mov eax, 0x620
mov ecx, 0xa1dedc
push ecx
push eax
push 0xa1debc
push 1
call fcn.00a32ac8
add esp, 0x10
test ebx, ebx
je 0xbeebf6
mov ecx, dword fs:[0x30]
push ebx
push esi
push dword [ecx + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x14
Function at 0xbeeea1
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, ecx
xor edx, edx
cmp dword [edi + 0x24], edx
je 0xbeeebb
xor eax, eax
inc eax
jmp 0xbeefa3
mov ebx, dword [edi + 0x20]
push esi
test ebx, ebx
jne 0xbeef8e
test byte [edi], 2
jne 0xbeeef4
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0xbeeef4
push dword [edi + 0x14]
mov edx, dword [edi + 0x10]
call fcn.00bf0647
mov ebx, eax
test ebx, ebx
jne 0xbeef8e
push 0xa1dbb8
push 0x161
jmp 0xbeef51
mov esi, dword [edi + 0x10]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0xbeeefa
mov edx, dword [edi + 0x14]
sub esi, ecx
sar esi, 1
xor ebx, ebx
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0xbeef11
mov eax, dword fs:[0x30]
sub edx, ecx
sar edx, 1
mov dword [ebp - 4], edx
mov ecx, dword [eax + 0x18]
lea eax, [edx + esi]
add eax, eax
mov dword [ebp - 8], eax
add eax, 2
push eax
push 8
push ecx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
jne 0xbeef64
push 0xa1da78
push 0x152
push 0xa1daa4
push 1
call fcn.00a32ac8
add esp, 0x10
xor eax, eax
jmp 0xbeefa2
add esi, esi
push esi
push dword [edi + 0x10]
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
mov eax, dword [ebp - 4]
add eax, eax
push eax
push dword [edi + 0x14]
lea eax, [esi + ebx]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
mov eax, dword [ebp - 8]
add esp, 0x18
xor ecx, ecx
mov word [eax + ebx], cx
lea edx, [edi + 0x24]
mov dword [edi + 0x20], ebx
mov ecx, ebx
call fcn.00bef4d9
test eax, eax
je 0xbeefa2
or dword [edi], 1
pop esi
pop edi
pop ebx
leave
ret

Function at 0xbf1221
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov ebx, ecx
lea eax, [ebp - 4]
push eax
xor ecx, ecx
mov edi, edx
push ecx
push ecx
push 2
push edi
push ecx
push ebx
mov dword [ebp - 4], ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
je 0xbf1253
jle 0xbf12bb
movzx eax, ax
or eax, 0x80070000
jmp 0xbf12bb
push esi
push dword [ebp - 4]
push 8
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0xbf1273
mov edi, 0x8007000e
jmp 0xbf12a4
lea eax, [ebp - 4]
push eax
push esi
push 0
push 2
push edi
push 0
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov edi, eax
test edi, edi
je 0xbf1299
jle 0xbf12a4
movzx edi, di
or edi, 0x80070000
jmp 0xbf12a4
mov eax, dword [ebp + 8]
mov ecx, esi
xor esi, esi
xor edi, edi
mov dword [eax], ecx
test esi, esi
je 0xbf12b8
push esi
push 0
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0xbf20f5
Capabilities:
Set registry value

Disassembly:
push 0xb0
mov eax, 0xb05703
call fcn.00af8e2b
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xbc], 0x3f
mov esi, edi
xor ecx, ecx
mov dword [ebp - 4], edi
mov word [ebp - 0x60], cx
lea eax, [ebx + 0x14]
mov word [ebp - 0xb0], cx
lea ecx, [ebp - 0xb0]
push 0x27
push ecx
push eax
mov dword [ebp - 0xb8], edi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_StringFromGUID2]
cmp eax, 0x27
je 0xbf214d
mov edi, 0x8000ffff
jmp 0xbf2254
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb4], edi
push eax
push 0x27
pop edx
lea ecx, [ebp - 0xb0]
call fcn.00a504bc
mov edi, eax
test edi, edi
js 0xbf2254
mov eax, dword [ebp - 0xb4]
add eax, 0xfffffffe
cmp eax, 0x24
ja 0xbf21d3
lea eax, [ebp - 0xae]
push eax
push 0x27
pop edx
lea ecx, [ebp - 0x60]
call fcn.00a535e0
mov edi, eax
test edi, edi
js 0xbf2254
lea eax, [ebp - 0xb4]
push eax
push 0x27
pop edx
lea ecx, [ebp - 0x60]
call fcn.00a504bc
mov edi, eax
test edi, edi
js 0xbf2254
mov ecx, dword [ebp - 0xb4]
lea eax, [ecx - 2]
cmp eax, 0x24
ja 0xbf2143
xor eax, eax
mov word [ebp + ecx*2 - 0x62], ax
jmp 0xbf21d8
mov edi, 0x8000ffff
test edi, edi
js 0xbf2254
push 0
push 0
lea eax, [ebp - 0xb8]
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
push eax
push 0x20006
lea edx, [ebp - 0x60]
call fcn.00bf1e41
mov edi, eax
test edi, edi
js 0xbf2254
mov eax, dword [ebx]
lea ecx, [ebp - 0xbc]
mov esi, dword [ebp - 0xb8]
push ecx
push ebx
mov edi, dword [eax + 0x1c]
mov ecx, edi
mov dword [ebp - 0xb4], esi
call dword [0xc99200]
call edi
mov edi, eax
test edi, edi
js 0xbf2254
push 4
lea eax, [ebp - 0xbc]
push eax
push 4
push 0
push 0x9f3a04
push esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
je 0xbf2254
jg 0xbf224b
mov edi, eax
jmp 0xbf2254
movzx edi, ax
or edi, 0x80070000
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0xbf2263
push esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, edi
call fcn.00af8dd5
ret 4

Function at 0xbf226d
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push ebx
mov ebx, edx
mov dword [ebp - 8], ecx
jne 0xbf2284
xor eax, eax
jmp 0xbf22da
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push esi
push eax
push 0xfffffffffffffffe
pop edx
call fcn.00bf20b5
mov esi, eax
test esi, esi
js 0xbf22d7
mov ecx, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push 2
pop edx
call fcn.00a4a0c1
mov esi, eax
test esi, esi
js 0xbf22d7
push dword [ebp - 4]
xor esi, esi
push dword [ebp + 8]
push 1
push esi
push ebx
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
je 0xbf22d7
jg 0xbf22ce
mov esi, eax
jmp 0xbf22d7
movzx esi, ax
or esi, 0x80070000
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0xbf33cb
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0xc940a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov edx, dword [ebp + 8]
lea ebx, [ecx + 0x2e0]
push esi
push edi
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x210], 0x208
push ecx
lea ecx, [ebp - 0x20c]
xor esi, esi
push ecx
push esi
push 2
pop edi
push edi
push 0xa1fc98
push eax
push edx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
je 0xbf3426
mov eax, 0x9f0a04
jmp 0xbf3431
lea eax, [ebp - 0x20c]
mov edi, 0x208
push edi
push eax
mov edx, 0x208
mov ecx, ebx
call fcn.00bf39e1
pop ecx
pop ecx
test eax, eax
je 0xbf344a
mov esi, 0x8007007a
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00ab3c50
leave
ret 8

Function at 0xbf345d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], ecx
push eax
xor esi, esi
mov edi, 0xa1fba8
push esi
push esi
push 2
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
cmp eax, 2
jne 0xbf3494
xor eax, eax
jmp 0xbf3523
test eax, eax
je 0xbf34ac
jg 0xbf34a1
mov esi, eax
jmp 0xbf3521
movzx esi, ax
or esi, 0x80070000
jmp 0xbf3521
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0xbf34cb
mov esi, 0x8007000e
jmp 0xbf3520
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 2
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov edi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x6fc]
mov dword [eax + 0x6fc], esi
test ecx, ecx
je 0xbf3507
push ecx
push esi
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov eax, dword [ebp - 8]
mov dword [eax + 0x6fc], ebx
test edi, edi
je 0xbf3520
jg 0xbf3517
mov esi, edi
jmp 0xbf3520
movzx esi, di
or esi, 0x80070000
pop ebx
mov eax, esi
pop edi
pop esi
leave
ret 8
Function at 0xbf3529
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0xc940a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov edx, dword [ebp + 8]
lea ebx, [ecx + 0x4e8]
push esi
push edi
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x210], 0x208
push ecx
lea ecx, [ebp - 0x20c]
xor esi, esi
push ecx
push esi
push 2
pop edi
push edi
push 0xa1fc60
push eax
push edx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
je 0xbf3584
mov eax, 0x9f0a04
jmp 0xbf358f
lea eax, [ebp - 0x20c]
mov edi, 0x208
push edi
push eax
mov edx, 0x208
mov ecx, ebx
call fcn.00bf39e1
pop ecx
pop ecx
test eax, eax
je 0xbf35a8
mov esi, 0x8007007a
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00ab3c50
leave
ret 8

Function at 0xbf3661
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0xc940a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov edx, dword [ebp + 8]
lea ebx, [ecx + 0xd8]
push esi
push edi
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x210], 0x208
push ecx
lea ecx, [ebp - 0x20c]
xor esi, esi
push ecx
push esi
push 2
pop edi
push edi
push 0xa1fc38
push eax
push edx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
je 0xbf36bc
mov eax, 0x9f0a04
jmp 0xbf36c7
lea eax, [ebp - 0x20c]
mov edi, 0x208
push edi
push eax
mov edx, 0x208
mov ecx, ebx
call fcn.00bf39e1
pop ecx
pop ecx
test eax, eax
je 0xbf36e0
mov esi, 0x8007007a
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00ab3c50
leave
ret 8
Function at 0xbf36f3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], ecx
push eax
xor esi, esi
mov edi, 0xa1fba0
push esi
push esi
push 2
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
cmp eax, 2
jne 0xbf372a
xor eax, eax
jmp 0xbf37b9
test eax, eax
je 0xbf3742
jg 0xbf3737
mov esi, eax
jmp 0xbf37b7
movzx esi, ax
or esi, 0x80070000
jmp 0xbf37b7
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0xbf3761
mov esi, 0x8007000e
jmp 0xbf37b6
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 2
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov edi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x6f4]
mov dword [eax + 0x6f4], esi
test ecx, ecx
je 0xbf379d
push ecx
push esi
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov eax, dword [ebp - 8]
mov dword [eax + 0x6f4], ebx
test edi, edi
je 0xbf37b6
jg 0xbf37ad
mov esi, edi
jmp 0xbf37b6
movzx esi, di
or esi, 0x80070000
pop ebx
mov eax, esi
pop edi
pop esi
leave
ret 8

Function at 0xbf37bf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push esi
push 2
mov ebx, 0xa1fcbc
mov dword [ebp - 4], esi
push ebx
push dword [ebp + 0xc]
mov edi, ecx
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
cmp eax, 2
jne 0xbf37f8
mov dword [edi + 0x704], esi
xor eax, eax
jmp 0xbf3848
test eax, eax
jne 0xbf3837
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov dword [edi + 0x704], eax
test eax, eax
jne 0xbf381e
mov esi, 0x8007000e
jmp 0xbf3846
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push 2
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
je 0xbf3846
jg 0xbf383d
mov esi, eax
jmp 0xbf3846
movzx esi, ax
or esi, 0x80070000
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0xbf384f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], ecx
push eax
xor esi, esi
mov edi, 0xa1fbf0
push esi
push esi
push 2
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
cmp eax, 2
jne 0xbf3886
xor eax, eax
jmp 0xbf3915
test eax, eax
je 0xbf389e
jg 0xbf3893
mov esi, eax
jmp 0xbf3913
movzx esi, ax
or esi, 0x80070000
jmp 0xbf3913
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0xbf38bd
mov esi, 0x8007000e
jmp 0xbf3912
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 2
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov edi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x700]
mov dword [eax + 0x700], esi
test ecx, ecx
je 0xbf38f9
push ecx
push esi
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov eax, dword [ebp - 8]
mov dword [eax + 0x700], ebx
test edi, edi
je 0xbf3912
jg 0xbf3909
mov esi, edi
jmp 0xbf3912
movzx esi, di
or esi, 0x80070000
pop ebx
mov eax, esi
pop edi
pop esi
leave
ret 8

Function at 0xbf391b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push esi
push 2
mov edi, 0xa1fb98
mov dword [ebp - 4], esi
push edi
push dword [ebp + 0xc]
mov ebx, ecx
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
cmp eax, 2
jne 0xbf3958
mov dword [ebx + 0x704], esi
xor eax, eax
jmp 0xbf39da
test eax, eax
je 0xbf3967
jg 0xbf3962
mov esi, eax
jmp 0xbf39d8
movzx esi, ax
jmp 0xbf39d2
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov dword [ebp - 8], eax
test eax, eax
jne 0xbf3986
mov esi, 0x8007000e
jmp 0xbf39d8
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push 2
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov edi, eax
mov eax, dword [ebx + 0x6f8]
mov dword [ebx + 0x6f8], esi
test eax, eax
je 0xbf39bc
push eax
push esi
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov eax, dword [ebp - 8]
mov dword [ebx + 0x6f8], eax
test edi, edi
je 0xbf39d8
jg 0xbf39cf
mov esi, edi
jmp 0xbf39d8
movzx esi, di
or esi, 0x80070000
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0xbfc038
Capabilities:
Parse credit card information

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
xor cl, cl
push edi
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0xbfc192
mov edi, 0x10000000
cmp eax, 0x7c
je 0xbfc192
cmp eax, 0x29
jne 0xbfc073
cmp dword [esi + 0x10], 0
jne 0xbfc192
test dword [esi + 0x50], edi
je 0xbfc11b
cmp eax, 0x2e
jne 0xbfc08e
push 5
lea ecx, [esi + 0x24]
call fcn.00bfdd12
mov ecx, esi
call fcn.00bfdd57
jmp 0xbfc17d
cmp eax, 0x5c
jne 0xbfc0e3
mov ecx, esi
call fcn.00bfdd57
test byte [esi + 0x50], 0x80
je 0xbfc0d7
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0xbfc0bf
push 4
lea ecx, [esi + 0x24]
call fcn.00bfdd12
mov ecx, esi
call fcn.00bfdd57
jmp 0xbfc184
cmp eax, 0x42
jne 0xbfc0d7
push 4
lea ecx, [esi + 0x24]
call fcn.00bfdd12
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0xbfc0b3
mov ecx, esi
call fcn.00bfc1a3
jmp 0xbfc17d
cmp eax, 0x5b
jne 0xbfc100
mov ecx, esi
call fcn.00bfdd57
mov ecx, esi
call fcn.00bfc722
cmp dword [esi + 0x4c], 0x5d
je 0xbfc082
push 4
jmp 0xbfc11d
cmp eax, 0x28
jne 0xbfc123
mov ecx, esi
call fcn.00bfdd57
mov ecx, esi
call fcn.00bfe10e
cmp dword [esi + 0x4c], 0x29
mov bl, al
je 0xbfc172
push 5
call dword [sym.imp.msvcp_win.dll_void___cdecl_std::_Xregex_error_enum_std::regex_constants::error_type_]
cmp eax, 0x5e
jne 0xbfc12f
push 2
jmp 0xbfc0ab
cmp eax, 0x24
jne 0xbfc13b
push 3
jmp 0xbfc0ab
cmp eax, 0x2a
je 0xbfc19c
cmp eax, 0x2b
je 0xbfc19c
cmp eax, 0x3f
je 0xbfc19c
cmp eax, 0x7b
je 0xbfc19c
cmp eax, 0x7d
jne 0xbfc159
test dword [esi + 0x50], edi
je 0xbfc198
cmp eax, 0x5d
jne 0xbfc163
test dword [esi + 0x50], edi
je 0xbfc0fc
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.00bfb996
mov bl, 1
mov ecx, esi
call fcn.00bfdd57
test bl, bl
je 0xbfc184
mov ecx, esi
call fcn.00bfdd82
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0xbfc052
pop edi
pop esi
mov al, cl
pop ebx
ret
push 6
jmp 0xbfc11d
push 0xa
jmp 0xbfc11d
Function at 0xbff352
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0xc940a0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0xc97ac4], 0
jne 0xbff3f7
push esi
push edi
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov esi, eax
mov edi, 0x104
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], edi
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push esi
call dword [sym.imp.api_ms_win_core_psapi_l1_1_0.dll_QueryFullProcessImageNameW]
test eax, eax
jne 0xbff3ac
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
jmp 0xbff3ee
push edi
lea eax, [ebp - 0x20c]
push eax
push 0xa227b0
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0xbff3ee
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_CompareStringOrdinal]
cmp eax, 2
jne 0xbff3ee
push esi
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetProcessId]
mov dword [0xc952d0], eax
pop edi
mov byte [0xc97ac4], 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00ab3c50
leave
ret

Function at 0xc007ae
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0xc940a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
lea eax, [ebp - 0x54]
mov esi, 0x9f752c
mov edi, ebx
push 0x4e
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
push esi
push 0
push eax
call fcn.00ab4bf6
add esp, 0xc
mov dword [ebp - 0x58], esi
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0xffff
push 0xa229a4
push 0x9f2cd0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jle 0xc00817
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0xc00824
push ebx
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CLSIDFromString]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00ab3c50
leave
ret