joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6240ac
Capabilities:
Create directory

Disassembly:
push 0x1c
mov eax, 0x687c78
call fcn.006285a5
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push 4
pop edi
push esi
push eax
call fcn.006269cd
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call fcn.0062446b
add esp, 0xc
test al, al
jne 0x6240f4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
neg eax
sbb eax, eax
and edi, eax
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.004485c0
mov eax, edi
call fcn.00628560
ret

Function at 0x624107
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x240
mov eax, 0x6a1b9b
call fcn.006285a5
mov esi, dword [ebp + 8]
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x21c], 7
mov bl, cl
mov dword [ebp - 0x220], ecx
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x24c]
mov dword [ebp - 4], ecx
push eax
push ecx
push ecx
push 0x2b
push ecx
mov dword [ebp - 0x24c], ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
lea eax, [ebp - 0x218]
push eax
js 0x6241ac
push dword [ebp - 0x24c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x62419c
cmp word [ebp - 0x218], 0
jne 0x62417a
xor eax, eax
jmp 0x624187
lea eax, [ebp - 0x218]
push eax
call fcn.00654e4b
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00448650
mov bl, 1
push dword [ebp - 0x24c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor edi, edi
jmp 0x6241ec
xor edi, edi
push edi
push edi
push 0x2b
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x6241ec
cmp word [ebp - 0x218], di
jne 0x6241ca
mov eax, edi
jmp 0x6241d7
lea eax, [ebp - 0x218]
push eax
call fcn.00654e4b
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00448650
mov bl, 1
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x624262
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x624222
lea eax, [ecx - 1]
push edi
push eax
lea ecx, [ebp - 0x230]
call fcn.00624616
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00626a80
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.0045f450
push edi
push 1
lea ecx, [ebp - 0x248]
call fcn.00448860
mov edi, str.Adobe
push edi
call fcn.0065a730
pop ecx
push eax
push edi
mov ecx, esi
call fcn.0044eee0
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.004485c0
mov al, bl
call fcn.00628560
ret
Function at 0x624279
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x7851cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.006269cd
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
pop ecx
cmovae eax, dword [ebp - 0x1c]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x6242b8
test al, 0x10
jbe 0x6242b8
mov bl, 1
jmp 0x6242ba
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.004485c0
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0062702c
mov esp, ebp
pop ebp
ret

Function at 0x62446b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x7851cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.006269cd
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
pop ecx
cmovae eax, dword [ebp - 0x1c]
pop ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0
push 1
lea ecx, [ebp - 0x1c]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.004485c0
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0062702c
mov esp, ebp
pop ebp
ret
Function at 0x626170
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
pop ebp
ret
Function at 0x66138e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00661204

Function at 0x668524
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00668077

Function at 0x66ecdb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x42e006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x30306bb5
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x35200e39
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x40155f
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
mov word [edi], ax
mov ax, word [esi]
lea ebx, [esi + 8]
add ax, word [ebx]
mov ecx, 0x200
add ax, cx
mov ecx, dword fs:[0x30]
mov word [edi + 2], ax
movzx eax, ax
push eax
push 0
push dword [ecx + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
cmp byte [ebp + 8], 0
mov dword [edi + 4], eax
je 0x401609
xor edx, edx
mov dword [ebp + 8], str._r_n_r_n
cmp word [ebx], dx
jne 0x4015b5
mov dword [ebp + 8], 0x404220
mov ecx, dword [0x4074c0]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0xc]
push ebx
push dword [ebp + 8]
movzx ebx, byte [esi + 0x12]
shl ebx, 7
push esi
lea ebx, [ebx + ecx + 0x1860]
push ebx
lea ebx, [esi + 0x34]
push ebx
movzx ebx, byte [esi + 0x11]
add ebx, 0x43
shl ebx, 5
add ebx, ecx
push ebx
movzx ebx, byte [esi + 0x10]
add ebx, 3
shl ebx, 5
add ebx, ecx
push ebx
push dword [esi + 0x1c]
add esi, 0x4a
push dword [esi - 0x32]
lea ecx, [ebp - 4]
push esi
push str.Date_Time:__s_r_nSource:_PID__lu__TID__lu___s_s:_s__in_function__s__r_n_wZ_s_wZ_r_n
push edx
push ecx
push edx
jmp 0x40167a
mov ecx, dword [esi + 0xc]
mov edx, 0x404220
mov dword [ebp + 8], ecx
test ecx, ecx
jne 0x40161b
mov dword [ebp + 8], edx
cmp word [ebx], 0
je 0x401626
mov edx, 0x404708
push dword [ebp + 8]
mov ecx, dword [0x4074c0]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0xc]
push edx
movzx edx, byte [esi + 0x12]
shl edx, 7
push esi
lea edx, [edx + ecx + 0x1860]
push edx
lea edx, [esi + 0x34]
push edx
movzx edx, byte [esi + 0x11]
add edx, 0x43
shl edx, 5
add edx, ecx
push edx
movzx edx, byte [esi + 0x10]
add edx, 3
shl edx, 5
add edx, ecx
push edx
push dword [esi + 0x1c]
add esi, 0x4a
push dword [esi - 0x32]
lea ecx, [ebp - 4]
push esi
push str.__s__04lx:_04lx__s_s:_s___s____wZ_s_s_r_n
push 0
push ecx
push 0
movzx ecx, word [edi + 2]
push ecx
push eax
call fcn.00401034
add esp, 0x40
pop esi
pop ebx
cmp eax, 0x8007007a
jne 0x4016a3
mov ax, word [edi + 2]
sub ax, 2
mov word [edi], ax
mov eax, 0x80000005
leave
ret
test eax, eax
jns 0x4016b3
xor eax, eax
mov word [edi], ax
mov eax, 0xc000003e
leave
ret
mov ax, word [edi + 2]
sub ax, word [ebp - 4]
mov word [edi], ax
xor eax, eax
leave
ret

Function at 0x4016c2
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push 0x407048
push 0x401a20
push eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_RtlCreateUserThread]
ret
Function at 0x4027c6
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
sub esp, 0xc
push ebx
push esi
push dword [0x4074c4]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
and dword [0x4074c4], 0
push 0x79
push dword [0x4074d8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [sym.imp.USER32.dll_IsDlgButtonChecked]
push 0x7d
push dword [0x4074d8]
lea ebx, [eax + 1]
call esi
test eax, eax
jne 0x40282f
push 0x7b
push dword [0x4074d8]
call esi
test eax, eax
je 0x40282f
add ebx, 2
mov byte [ebp - 1], 1
jmp 0x402833
mov byte [ebp - 1], 0
push 0x7a
push dword [0x4074d8]
call esi
push 0x7b
mov byte [edi + 8], al
push dword [0x4074d8]
call esi
push 0x7c
mov byte [edi + 9], al
push dword [0x4074d8]
call esi
push 0x7d
mov byte [edi + 0xa], al
push dword [0x4074d8]
call esi
push 0x7e
mov byte [edi + 0xb], al
push dword [0x4074d8]
call esi
lea ecx, [ebx + ebx]
push ecx
mov byte [edi + 0xc], al
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
mov dword [ebp - 8], ecx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [0x4074c4], eax
test eax, eax
je 0x4028ef
movzx ecx, byte [ebp - 1]
add ecx, ecx
mov edx, ebx
sub edx, ecx
push edx
add ecx, eax
push ecx
push 0x79
push dword [0x4074d8]
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
cmp byte [ebp - 1], 0
mov eax, dword [0x4074c4]
je 0x4028d1
mov edx, dword [ebp - 8]
push 0x2a
pop ecx
mov word [eax], cx
mov word [eax + ebx*2 - 4], cx
xor ecx, ecx
mov word [edx + eax - 2], cx
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
cmp byte [edi + 9], 0
je 0x4028ef
cmp byte [edi + 8], 0
jne 0x4028ef
push 0
push edi
push edi
call dword [sym.imp.ntdll.dll_RtlUpcaseUnicodeString]
push 0x6e
pop ebx
push ebx
push dword [0x4074d8]
call esi
mov byte [edi + ebx - 0x61], al
inc ebx
cmp ebx, 0x73
jbe 0x4028f2
push 0x83
push dword [0x4074d8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor ebx, ebx
push ebx
push ebx
push 0x1004
push eax
mov dword [ebp - 8], eax
call esi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40295e
push 0xf000
push 0
push ebx
push 0x10b5
push dword [ebp - 8]
call esi
push eax
push 0x102c
push dword [ebp - 8]
call esi
shr eax, 0xc
dec al
mov byte [edi + ebx + 0x13], al
inc ebx
cmp ebx, dword [ebp - 0xc]
jb 0x402932
pop esi
pop ebx
leave
ret
Function at 0x402e35
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x101f
push dword [0x4074cc]
mov esi, eax
call edi
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [esi + 4]
lea eax, [ebp - 0x18]
push dword [esi]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x402f6f
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
push dword [0x4074cc]
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x30]
push eax
push 0
push 0x1012
push dword [0x4074cc]
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x402f6f
push 0x104
push dword [0x4074cc]
mov eax, esi
call fcn.004038e1
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x402f6f
push edi
call fcn.0040188e
pop ecx
test eax, eax
je 0x402f6f
cmp esi, 0x106
sete cl
movzx ecx, cl
push ecx
lea edi, [ebp - 8]
call fcn.0040155f
pop ecx
test eax, eax
js 0x402f6f
movzx eax, word [ebp - 8]
add eax, 2
push eax
push 2
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x402f6f
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
movzx ecx, word [ebp - 8]
add ecx, 2
push ecx
push dword [ebp - 4]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
mov eax, edi
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push dword [0x4074c8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x402f6f
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push str.Text_copied_to_clipboard.
push dword [0x4074d0]
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop edi
pop esi
leave
ret
Function at 0x401000
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x108
push ebp
mov ebp, dword [esp + 0x114]
test ebp, ebp
je 0x4010d8
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4010d8
mov ecx, dword [esp + 0x110]
lea eax, [esp + 4]
push eax
push 0x10008
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4010dd
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push 0
lea eax, [esp + 0x24]
push edx
push eax
push 0
push ecx
mov dword [esp + 0x30], 0xff
call edi
mov esi, eax
cmp esi, 0x103
je 0x4010b0
test esi, esi
jne 0x4010c1
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00401000
mov esi, eax
add esp, 8
test esi, esi
je 0x401050
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x108
ret
mov ecx, dword [esp + 0x118]
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x108
ret
mov eax, 0x3f2
pop ebp
add esp, 0x108
ret

Function at 0x402725
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x406390
cmp edx, dword [eax]
je 0x402747
add eax, 8
inc ecx
cmp eax, 0x406420
jl 0x402738
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x406390]
jne 0x402875
mov eax, dword [0x4068e8]
cmp eax, 1
je 0x40284f
test eax, eax
jne 0x402778
cmp dword [0x406058], 1
je 0x40284f
cmp edx, 0xfc
je 0x402875
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4027af
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402e10
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402a20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4027f2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402a20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x405434
push edi
call fcn.00403ef0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402e10
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402e20
lea eax, [ebp - 0xa0]
push 0x405414
push eax
call fcn.00402e20
push dword [esi + 0x406394]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402e20
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00403e5e
add esp, 0x2c
pop edi
jmp 0x402875
lea eax, [ebp + 8]
lea esi, [esi + 0x406394]
push 0
push eax
push dword [esi]
call fcn.00402a20
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x99768c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x9976b3
call fcn.00939c18
mov dword [eax], esi
call fcn.00939c05
push 0x16
pop esi
mov dword [eax], esi
call fcn.0093a85a
mov eax, esi
jmp 0x997708
test dword [ebp + 0xc], 0xfffffff9
jne 0x997699
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x9976e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00939c2b
pop ecx
call fcn.00939c05
mov eax, dword [eax]
jmp 0x997708
test al, 0x10
jne 0x997706
test al, 1
je 0x997706
test byte [ebp + 0xc], 2
je 0x997706
call fcn.00939c18
mov dword [eax], 5
call fcn.00939c05
mov dword [eax], 0xd
jmp 0x9976d7
xor eax, eax
pop esi
pop ebp
ret
Function at 0x404e1b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0
push 0x5c302e30
push 0x312e305c
push 0x72656873
push 0x616c6620
push 0x434d4d5c
push 0x45524157
push 0x54464f53
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0x20]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp - 0x1c]
push 0x80000002
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
add esp, 0x20
cmp eax, 0
jne 0x404fc0
push 0x747369
push 0x4c73656c
push 0x75646f4d
mov dword [ebp - 0x18], esp
push 0
push 0x65676175
push 0x676e614c
mov dword [ebp - 0x14], esp
push 0x74
push 0x6c756166
push 0x65447942
push 0x6d75736b
push 0x63656843
mov dword [ebp - 0x10], esp
push 0x7265
push 0x74706164
push 0x41746c75
push 0x61666544
mov dword [ebp - 0xc], esp
push 0x65
push 0x6c75646f
push 0x4d746c75
push 0x61666544
mov dword [ebp - 8], esp
push 0
push 0x79726f74
push 0x63657269
push 0x44746c75
push 0x61666544
mov dword [ebp - 4], esp
lea eax, [ebx + 0x180]
push 4
push eax
push 4
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x20]
call dword [sym.imp.advapi32.dll_RegSetValueExA]
lea eax, [ebx + 0x184]
push 4
push eax
push 4
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.advapi32.dll_RegSetValueExA]
lea eax, [ebx + 0x188]
push 4
push eax
push 4
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x20]
call dword [sym.imp.advapi32.dll_RegSetValueExA]
lea ecx, [ebx + 0x190]
push ecx
call dword [sym.imp.kernel32.dll_lstrlenA]
lea ecx, [ebx + 0x190]
push eax
push ecx
push 1
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x20]
call dword [sym.imp.advapi32.dll_RegSetValueExA]
lea ecx, [ebx + 0x294]
push ecx
call dword [sym.imp.kernel32.dll_lstrlenA]
lea ecx, [ebx + 0x294]
push eax
push ecx
push 1
push 0
push dword [ebp - 8]
push dword [ebp - 0x20]
call dword [sym.imp.advapi32.dll_RegSetValueExA]
lea ecx, [ebx + 0x398]
push ecx
call dword [sym.imp.kernel32.dll_lstrlenA]
lea ecx, [ebx + 0x398]
push eax
push ecx
push 1
push 0
push dword [ebp - 4]
push dword [ebp - 0x20]
call dword [sym.imp.advapi32.dll_RegSetValueExA]
add esp, 0x14
add esp, 0x10
add esp, 0x10
add esp, 0x14
add esp, 0xc
add esp, 0xc
leave
ret
Function at 0x404fc2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 0
push 0x5c302e30
push 0x312e305c
push 0x72656873
push 0x616c6620
push 0x434d4d5c
push 0x45524157
push 0x54464f53
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0x28]
push eax
push 0x20019
push 0
push dword [ebp - 0x1c]
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
add esp, 0x20
test eax, eax
jne 0x405176
push 0x747369
push 0x4c73656c
push 0x75646f4d
mov dword [ebp - 0x18], esp
push 0
push 0x65676175
push 0x676e614c
mov dword [ebp - 0x14], esp
push 0x74
push 0x6c756166
push 0x65447942
push 0x6d75736b
push 0x63656843
mov dword [ebp - 0x10], esp
push 0x7265
push 0x74706164
push 0x41746c75
push 0x61666544
mov dword [ebp - 0xc], esp
push 0x65
push 0x6c75646f
push 0x4d746c75
push 0x61666544
mov dword [ebp - 8], esp
push 0
push 0x79726f74
push 0x63657269
push 0x44746c75
push 0x61666544
mov dword [ebp - 4], esp
mov dword [ebx + 0x180], 0
mov dword [ebp - 0x20], 4
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
push ecx
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x28]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
cmp eax, 0
jne 0x4050c9
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x184], eax
mov dword [ebp - 0x20], 4
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
push ecx
push 0
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x28]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x4050fc
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x188], eax
or dword [ebx + 0x188], 1
mov dword [ebp - 0x20], 0x104
lea eax, [ebp - 0x20]
lea ecx, [ebx + 0x190]
push eax
push ecx
push 0
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x28]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov dword [ebp - 0x20], 0x104
lea eax, [ebp - 0x20]
lea ecx, [ebx + 0x294]
push eax
push ecx
push 0
push 0
push dword [ebp - 8]
push dword [ebp - 0x28]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov dword [ebp - 0x20], 0x104
lea eax, [ebp - 0x20]
lea ecx, [ebx + 0x398]
push eax
push ecx
push 0
push 0
push dword [ebp - 4]
push dword [ebp - 0x28]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
add esp, 0x14
add esp, 0x10
add esp, 0x10
add esp, 0x14
add esp, 0xc
add esp, 0xc
jmp 0x4051ad
mov dword [ebx + 0x180], 0
call dword [sym.imp.kernel32.dll_GetSystemDefaultLCID]
cmp eax, 0x419
jne 0x405199
mov dword [ebx + 0x184], 1
jmp 0x4051a3
mov dword [ebx + 0x184], 0
mov dword [ebx + 0x188], 1
mov dword [ebx + 0x18c], 1
leave
ret
Function at 0x4051b9
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
lea eax, [ebx + 0x80]
push eax
call fcn.0040e335
push 0x3430
push 0x2e34302e
push 0x74726f70
push 0x70755375
push 0x72685473
push 0x7361505c
push 0x45524157
push 0x54464f53
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x234]
push eax
push 0x20019
push 0
push dword [ebp - 0x10]
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
add esp, 0x20
cmp eax, 0
jne 0x4053ec
push 0x797261
push 0x7262694c
push 0x6e6f6974
push 0x636e7546
mov dword [ebp - 0xc], esp
push 0x4d49
push 0x56206d61
push 0x65727473
push 0x68636554
push 0x20534954
push 0x202d204e
push 0x4f495441
push 0x524f5052
push 0x4f43204f
push 0x534e4544
mov dword [ebp - 8], esp
push 0x797261
push 0x7262694c
push 0x64616f4c
push 0x75726854
push 0x73736150
mov dword [ebp - 4], esp
mov dword [ebp - 0x22c], 0
lea eax, [ebp - 0x21c]
push 0x20c
push 0
push eax
call dword [sym.imp.ntdll.dll_memset]
add esp, 0xc
mov dword [ebp - 0x228], 0x104
lea eax, [ebp - 0x228]
lea ecx, [ebp - 0x218]
push 0
push 0
push 0
push 0
push eax
push ecx
push dword [ebp - 0x22c]
push dword [ebp - 0x234]
call dword [sym.imp.advapi32.dll_RegEnumKeyExA]
cmp eax, 0
jne 0x4053d7
lea eax, [ebp - 0x218]
push dword [ebp - 8]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiA]
cmp eax, 0
je 0x4053cc
lea eax, [ebp - 0x230]
lea ecx, [ebp - 0x218]
push eax
push 0x20019
push 0
push ecx
push dword [ebp - 0x234]
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
mov dword [ebp - 0x228], 0x104
lea eax, [ebp - 0x228]
lea ecx, [ebp - 0x114]
lea edx, [ebp - 0x224]
push eax
push ecx
push edx
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x230]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
cmp eax, 0
jne 0x4053c0
lea eax, [ebp - 0x114]
push 1
push 0
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
cmp eax, 0
je 0x4053c0
mov dword [ebp - 0x220], eax
xor eax, eax
test dword [ebx + 0x188], 2
jne 0x40538d
push dword [ebp - 4]
push dword [ebp - 0x220]
call dword [sym.imp.kernel32.dll_GetProcAddress]
cmp eax, 0
jne 0x4053b4
mov dword [ebp - 0x21c], 3
lea eax, [ebp - 0x21c]
lea ecx, [ebx + 0x80]
push 0x20c
push eax
push ecx
call fcn.0040e2d8
push dword [ebp - 0x220]
call dword [sym.imp.kernel32.dll_FreeLibrary]
push dword [ebp - 0x230]
call dword [sym.imp.advapi32.dll_RegCloseKey]
inc dword [ebp - 0x22c]
jmp 0x405293
add esp, 0x14
add esp, 0x28
add esp, 0x10
push dword [ebp - 0x234]
call dword [sym.imp.advapi32.dll_RegCloseKey]
leave
ret