joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f504
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x1e319f2
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f553
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
jmp 0x41f572
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f5e4
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f5cd
test esi, esi
jbe 0x41f5e4
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f5bf
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f5e4
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f59c
jmp 0x41f5e4
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f5e4
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1e319f9
ret
Function at 0x420750
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x1e32d6b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x42078b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4207a4
lea eax, [ebp - 0x10]
mov edx, dword [0x1e5073c]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x4207b7
lea eax, [ebp - 0x10]
mov edx, dword [0x1e5073c]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4207c3
adc edx, 0
mov edx, dword [edx*4 + 0x1e4f538]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x42093d
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420930
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420930
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x4208ce
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x4208ce
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4208ce
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4208ce
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420930
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420930
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420955
inc ebx
cmp ebx, 0x19
jne 0x42077d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1e32d72
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x420b5b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x420b9a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420b9a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420b9a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x420b9a
cmp dword [ecx + 0x74], 0xe
jbe 0x420b9a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433310
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43333d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43333d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10011c5
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80
push esi
xor esi, esi
push 0x38
lea eax, [ebp - 0x38]
push esi
push eax
mov dword [ebp - 0x3c], esi
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x54], esi
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
push 6
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test byte [ebp - 0x54], 1
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x600
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 0x10010e8
je 0x100122d
movzx eax, word [ebp - 0x50]
mov dword [ebp - 0x20], eax
jmp 0x1001234
mov dword [ebp - 0x20], 0xa
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x28], 0x10010dc
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop esi
leave
ret 0x10
Function at 0x4010bc
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4010ce
mov eax, dword [0x45208b]
shl eax, 2
mov dword [0x45208f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004440c8
pop edx
call fcn.00443464
call fcn.004440cc
push 0
call fcn.00445118
pop ecx
push 0x452034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x452093], eax
push 0
jmp fcn.0044ea60

Function at 0x40120c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 4], eax
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004190f8
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x401237
xor eax, eax
jmp 0x40126a
cmp dword [ebp - 8], 0
jg 0x401250
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebp - 4]
cmp eax, 0x3e8
jbe 0x40121a
xor eax, eax
jmp 0x40126a
mov edx, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [edx]
push ecx
push 0x456aad
call fcn.00403934
add esp, 8
mov eax, 1
pop ecx
pop ecx
pop ebp
ret

Function at 0x40126e
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x4012b1
lea edx, [ebp - 9]
push edx
push dword [ebp + 8]
call fcn.0040120c
add esp, 8
test eax, eax
je 0x4012b1
cmp byte [ebp - 9], 0xd
je 0x4012c9
cmp byte [ebp - 9], 0x20
jb 0x4012b1
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov dl, byte [ebp - 9]
mov byte [ecx + eax], dl
inc dword [ebp - 8]
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebp - 4]
cmp eax, 0x7d0
jae 0x4012c9
mov ecx, dword [ebp + 0x10]
dec ecx
cmp ecx, dword [ebp - 8]
jg 0x401283
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov byte [eax + edx], 0
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 4], eax
jmp 0x4012f0
lea ecx, [ebp - 9]
push ecx
push dword [ebp + 8]
call fcn.0040120c
add esp, 8
test eax, eax
je 0x4012ff
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebp - 4]
cmp eax, 0xc8
jb 0x4012dd
mov esp, ebp
pop ebp
ret
Function at 0x401334
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
cmp dword [ebp + 0x10], 0
je 0x401357
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 0x10], eax
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebp - 0x10]
cmp eax, 0x1f4
jb 0x401348
push 0x456abf
call fcn.00403934
pop ecx
mov byte [ebp - 1], 0
jmp 0x401397
mov eax, dword [ebp + 0xc]
mov dl, byte [eax]
add byte [ebp - 1], dl
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041929c
add esp, 0xc
mov ecx, dword [ebp + 0xc]
movsx eax, byte [ecx]
push eax
push 0x456ac3
call fcn.00403934
add esp, 8
inc dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
cmp byte [edx], 0
jne 0x401368
add byte [ebp - 1], 0x24
push 1
push 0x456ac7
push dword [ebp + 8]
call fcn.0041929c
add esp, 0xc
xor ecx, ecx
mov cl, byte [ebp - 1]
push ecx
push str._02X_r
lea eax, [ebp - 0xc]
push eax
call fcn.00447d04
add esp, 0xc
push 3
lea edx, [ebp - 0xc]
push edx
push dword [ebp + 8]
call fcn.0041929c
add esp, 0xc
lea ecx, [ebp - 0xc]
push ecx
push str.___s_n
call fcn.00403934
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x4016d4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
mov byte [0x468448], 0
cmp dword [ebp + 8], 0
jl 0x4016f0
cmp dword [ebp + 8], 0x100
jl 0x4016f7
xor eax, eax
jmp 0x4018b2
push 0x456a3b
lea edx, [ebp - 0x20]
push edx
call fcn.0044435c
add esp, 8
mov ecx, dword [ebp + 8]
inc ecx
push ecx
push 0x456a40
lea eax, [ebp - 0x20]
push eax
call fcn.0044438c
pop ecx
lea edx, [ebp - 0x20]
add eax, edx
push eax
call fcn.00447d04
add esp, 0xc
lea ecx, [ebp - 0x20]
push ecx
call fcn.00418f40
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x401742
xor eax, eax
jmp 0x4018b2
lea edx, [ebp - 0x3c]
push edx
mov ecx, dword [ebp - 4]
push dword [ecx]
call sub.KERNEL32.DLL_GetCommState
mov dword [ebp - 0x38], 0x2580
mov byte [ebp - 0x2a], 8
mov byte [ebp - 0x29], 0
and byte [ebp - 0x34], 0xfd
mov byte [ebp - 0x28], 0
and byte [ebp - 0x33], 0xfd
and byte [ebp - 0x33], 0xfe
mov word [ebp - 0x2e], 0xc8
mov word [ebp - 0x2c], 0xc8
mov byte [ebp - 0x27], 0
mov byte [ebp - 0x26], 0
or byte [ebp - 0x34], 1
and byte [ebp - 0x33], 0xf7
lea eax, [ebp - 0x3c]
push eax
mov edx, dword [ebp - 4]
push dword [edx]
call sub.KERNEL32.DLL_SetCommState
push 0xf
mov ecx, dword [ebp - 4]
push dword [ecx]
call sub.KERNEL32.DLL_PurgeComm
xor eax, eax
mov dword [ebp - 0xc], eax
push 1
push 0x456a46
push dword [ebp - 4]
call fcn.00401334
add esp, 0xc
push 0xfb
push 0x468448
push dword [ebp - 4]
call fcn.0040126e
add esp, 0xc
push 0x456a4c
push 0x468448
call fcn.0044449d
add esp, 8
test eax, eax
jne 0x4017fb
push 0xc8
call fcn.00404c08
pop ecx
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 2
jl 0x4017aa
push 1
push 0x456a59
push dword [ebp - 4]
call fcn.00401334
add esp, 0xc
push 1
push 0x456a64
push dword [ebp - 4]
call fcn.00401334
add esp, 0xc
push 1
push 0x456a70
push dword [ebp - 4]
call fcn.00401334
add esp, 0xc
push 1
push 0x456a7c
push dword [ebp - 4]
call fcn.00401334
add esp, 0xc
push 1
push 0x456a88
push dword [ebp - 4]
call fcn.00401334
add esp, 0xc
push 1
push 0x456a94
push dword [ebp - 4]
call fcn.00401334
add esp, 0xc
push 1
push 0x456aa1
push dword [ebp - 4]
call fcn.00401334
add esp, 0xc
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 8], eax
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebp - 8]
cmp eax, 0x64
jb 0x401881
mov dword [ebp - 0x38], 0x7080
lea edx, [ebp - 0x3c]
push edx
mov ecx, dword [ebp - 4]
push dword [ecx]
call sub.KERNEL32.DLL_SetCommState
push 0xf
mov eax, dword [ebp - 4]
push dword [eax]
call sub.KERNEL32.DLL_PurgeComm
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4018b8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push str._____exist___r_n
call fcn.00403934
pop ecx
xor eax, eax
mov dword [0x4528a0], eax
push 0
push sym.PCDOCW.exe__MemInfPrcDlg_qqsp6HWND__uiuil
push dword [ebp + 8]
push 0x1771
push dword [0x4528e0]
call sub.USER32.DLL_CreateDialogParamA
mov dword [0x45289c], eax
cmp dword [0x45289c], 0
je 0x401910
push 5
push dword [0x45289c]
call sub.USER32.DLL_ShowWindow
push dword [0x45289c]
call sub.USER32.DLL_UpdateWindow
push 0
push dword [0x4528dc]
call sub.USER32.DLL_EnableWindow
push 0
push dword [ebp + 8]
call sub.USER32.DLL_EnableWindow
push 0xf
mov edx, dword [ebp + 0xc]
push dword [edx]
call sub.KERNEL32.DLL_PurgeComm
push 0
push dword [ebp + 0xc]
call fcn.00401303
add esp, 8
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 8], eax
xor ecx, ecx
mov dword [ebp - 0xc], ecx
jmp 0x4019a4
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_TranslateMessage
lea edx, [ebp - 0x28]
push edx
call sub.USER32.DLL_DispatchMessageA
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x28]
push ecx
call sub.USER32.DLL_PeekMessageA
test eax, eax
jne 0x401951
cmp dword [0x4528a0], 0
jne 0x4019b9
lea eax, [ebp - 1]
push eax
push dword [ebp + 0xc]
call fcn.0040120c
add esp, 8
test eax, eax
je 0x4019a4
cmp byte [ebp - 1], 0x11
jne 0x40199f
inc dword [ebp - 0xc]
jmp 0x4019a4
xor edx, edx
mov dword [ebp - 0xc], edx
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebp - 8]
cmp eax, 0x3a98
jae 0x4019b9
cmp dword [ebp - 0xc], 0xc
jl 0x401963
push 1
push dword [0x4528dc]
call sub.USER32.DLL_EnableWindow
push 1
push dword [ebp + 8]
call sub.USER32.DLL_EnableWindow
cmp dword [0x45289c], 0
je 0x4019ec
push dword [0x45289c]
call sub.USER32.DLL_DestroyWindow
xor ecx, ecx
mov dword [0x45289c], ecx
cmp dword [ebp - 0xc], 0xc
jl 0x401a04
push str.___YES_11_______r_n
call fcn.00403934
pop ecx
mov eax, 1
jmp 0x401a11
push str.___NO_11_______r_n
call fcn.00403934
pop ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402820
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, dword [0x454913]
mov dword [ebp - 0xc], eax
mov ax, word [0x454917]
mov word [ebp - 8], ax
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
call sub.ADVAPI32.DLL_AllocateAndInitializeSid
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402884
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
push 0
call sub.ADVAPI32.DLL_CheckTokenMembership
test eax, eax
jne 0x40287c
xor edx, edx
mov dword [ebp - 4], edx
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_FreeSid
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4028ec
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push 0x104
lea eax, [ebp - 0x21c]
push eax
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 8]
push ecx
lea eax, [ebp - 4]
push eax
push 0x104
lea edx, [ebp - 0x114]
push edx
push 0x458798
call sub.KERNEL32.DLL_GetVolumeInformationA
test eax, eax
jne 0x40292d
mov ax, 1
jmp 0x40293e
cmp word [ebp - 4], 0
jne 0x40293a
mov ax, 1
jmp 0x40293e
mov ax, word [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40334c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x18], 0
je 0x4033aa
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
mov edx, dword [ebp + 0x10]
cmp byte [edx], 0
jne 0x40337e
push 0x468d05
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x4588e2
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.KERNEL32.DLL_GetPrivateProfileStringA
push 0x4588e3
push dword [ebp + 0xc]
call fcn.00444310
add esp, 8
test eax, eax
je 0x4033dd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.MyReadProfileStr_INI___s__s___s__r_n
call fcn.00403934
add esp, 0x10
pop ebp
ret
push 1
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x80000001
call fcn.00403578
add esp, 0x1c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.MyReadProfileStr_REG___s__s___s__r_n
call fcn.00403934
add esp, 0x10
pop ebp
ret

Function at 0x403474
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff28
cmp dword [ebp + 0x18], 0
je 0x4034aa
push dword [ebp + 0xc]
push str.SoftwarePCD_PCD
push 0x458982
lea eax, [ebp - 0xd8]
push eax
call fcn.00447d04
add esp, 0x10
lea edx, [ebp - 0xd8]
mov dword [ebp - 4], edx
jmp 0x4034b0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0040341c
pop ecx
push eax
push str.MyWriteReg_hKey_s_keyName_s_valName_s_valStr_s__r_n
call fcn.00403934
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 8]
push edx
push 0
push 0x20006
push 0
push 0
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegCreateKeyExA
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x40355d
cmp dword [ebp - 8], 0
je 0x40355d
push dword [ebp + 0x14]
call fcn.0044438c
pop ecx
push eax
push dword [ebp + 0x14]
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegSetValueExA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40353c
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
push str.MyWriteReg_RegCreateKey_OK_r_n
call fcn.00403934
pop ecx
mov eax, 1
jmp 0x403574
call fcn.00403298
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
push dword [ebp - 0xc]
push str.MyWriteReg_RegSetValueEx_ERR___ld_r_n
call fcn.00403934
add esp, 8
xor eax, eax
jmp 0x403574
call fcn.00403298
push dword [ebp - 0xc]
push str.MyWriteReg_RegCreateKey_ERR___ld_r_n
call fcn.00403934
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x403578
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff24
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
cmp dword [ebp + 0x20], 0
je 0x4035b4
push dword [ebp + 0xc]
push str.SoftwarePCD_PCD
push 0x458a24
lea edx, [ebp - 0xdc]
push edx
call fcn.00447d04
add esp, 0x10
lea ecx, [ebp - 0xdc]
mov dword [ebp - 4], ecx
jmp 0x4035ba
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0040341c
pop ecx
push eax
push str.MyReadReg_hKey_s_keyName_s_valName_s__r_n
call fcn.00403934
add esp, 0x10
lea edx, [ebp - 0x10]
push edx
push 1
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4035fb
cmp dword [ebp - 0x10], 0
jne 0x40368b
call fcn.00403298
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x458a55
call fcn.00403934
add esp, 0xc
cmp dword [ebp + 0x1c], 0
je 0x4036f0
push dword [ebp + 0xc]
push str.SoftwarePcdocw
push str._s_s
lea edx, [ebp - 0xdc]
push edx
call fcn.00447d04
add esp, 0x10
lea ecx, [ebp - 0xdc]
push ecx
push str.MyReadReg_tryOldKey__keyName_s__r_n
call fcn.00403934
add esp, 8
lea eax, [ebp - 0x10]
push eax
push 1
push 0
lea edx, [ebp - 0xdc]
push edx
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x403671
cmp dword [ebp - 0x10], 0
jne 0x40368b
call fcn.00403298
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push str.MyReadReg_RegOpenKeyEx_ERR_lret_ld__hKey2_ld_r_n
call fcn.00403934
add esp, 0xc
jmp 0x4036f0
mov edx, dword [ebp + 0x18]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4036b8
cmp dword [ebp - 0xc], 1
je 0x4036d8
mov edx, dword [ebp + 0x14]
mov byte [edx], 0
call fcn.00403298
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push str.MyReadReg_RegQueryValueEx_ERR_lret_ld__valType_ld_r_n
call fcn.00403934
add esp, 0xc
jmp 0x4036e8
push dword [ebp + 0x14]
push str.MyReadReg_RegQueryValueEx_OK____s__r_n
call fcn.00403934
add esp, 8
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegCloseKey
mov esp, ebp
pop ebp
ret
Function at 0x4036f4
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe68
cmp dword [ebp + 0x10], 5
jg 0x40388f
lea eax, [ebp - 0x14]
push eax
push 9
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x40388f
cmp dword [ebp - 0x14], 0
je 0x40388f
push 0xf
push 0x20
lea edx, [ebp - 0x198]
push edx
call fcn.004441dc
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov byte [ebp + ecx*2 - 0x196], 0
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0x63
push 0
push 0
push 0
push 0
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call sub.ADVAPI32.DLL_RegEnumValueA
test eax, eax
jne 0x40381f
inc dword [ebp - 0x10]
mov dword [ebp - 4], 0x10d
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0x188]
push edx
lea ecx, [ebp - 0xc]
push ecx
push 0
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x14]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x403802
cmp byte [ebp - 0x78], 0
jne 0x4037bb
push 0x458cce
lea edx, [ebp - 0x78]
push edx
call fcn.0044435c
add esp, 8
cmp dword [ebp - 0xc], 1
jne 0x4037e5
lea ecx, [ebp - 0x188]
push ecx
lea eax, [ebp - 0x78]
push eax
lea edx, [ebp - 0x198]
push edx
push str._s__s___s__r_n
call fcn.00403934
add esp, 0x10
jmp 0x40374f
lea ecx, [ebp - 0x78]
push ecx
lea eax, [ebp - 0x198]
push eax
push str._s__s__no_SZ__r_n
call fcn.00403934
add esp, 0xc
jmp 0x40374f
lea edx, [ebp - 0x78]
push edx
lea ecx, [ebp - 0x198]
push ecx
push str._s__s_______r_n
call fcn.00403934
add esp, 0xc
jmp 0x40374f
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0x63
push 0
push 0
push 0
push 0
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call sub.ADVAPI32.DLL_RegEnumKeyExA
test eax, eax
jne 0x403887
inc dword [ebp - 0x10]
lea eax, [ebp - 0x78]
push eax
lea edx, [ebp - 0x198]
push edx
push str._s__s_:_r_n
call fcn.00403934
add esp, 0xc
cmp byte [ebp - 0x78], 0
je 0x403824
cmp dword [ebp + 0x10], 5
jge 0x403824
mov ecx, dword [ebp + 0x10]
inc ecx
push ecx
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x14]
call fcn.004036f4
add esp, 0xc
jmp 0x403824
push dword [ebp - 0x14]
call sub.ADVAPI32.DLL_RegCloseKey
mov esp, ebp
pop ebp
ret