joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b5168
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4b51e4
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x4b43a4]
mov eax, 0x10
call fcn.00405404
mov ebx, eax
mov dword [ebx + 0xc], esi
lea edx, [ebp - 8]
mov eax, esi
call dword [eax + 0x34]
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00408ba8
mov edx, dword [ebp - 4]
lea eax, [ebx + 4]
call fcn.004042f0
mov eax, esi
call dword [eax + 0x30]
mov dword [ebx + 8], eax
mov eax, dword [0x4f4274]
mov dword [ebx], eax
mov dword [0x4f4274], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b51eb
lea eax, [ebp - 8]
mov edx, 2
call fcn.004042c0
ret

Function at 0x4b5240
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jle 0x4b5260
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
mov bl, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x4b524e
pop edi
pop esi
pop ebx
ret

Function at 0x4bb8a4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4bb8d2
mov eax, ebx
call fcn.004bc358
cmp dword [ebx + 0x40], 0
je 0x4bb8cb
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4bb943
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4bb935
cmp dword [ebx + 8], 0
je 0x4bb8f4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4bb906
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4bb935
cmp dword [ebx + 8], 0
je 0x4bb8e7
cmp eax, 3
je 0x4bb919
dec eax
jne 0x4bb8e7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4bb8e7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4bb8e7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4bb961
cmp dword [ebx + 0x14], 0xcc
je 0x4bb961
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004bb96c
pop ebx
ret
Function at 0x4cc23c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
mov byte [ebp - 1], cl
mov esi, edx
mov ebx, eax
cmp bl, 0x90
jne 0x4cc291
push 0x90
call sub.user32.dll_GetKeyState
and ax, 1
cmp al, 1
sbb ebx, ebx
inc ebx
lea eax, [ebp - 0x102]
push eax
call sub.user32.dll_GetKeyboardState
test bl, bl
je 0x4cc27c
and byte [ebp - 0x72], 0xfe
jmp 0x4cc280
or byte [ebp - 0x72], 1
lea eax, [ebp - 0x102]
push eax
call sub.user32.dll_SetKeyboardState
jmp 0x4cc317
push 0
xor eax, eax
mov al, bl
push eax
call sub.user32.dll_MapVirtualKeyA
and al, 0xff
mov byte [ebp - 2], al
test si, si
jbe 0x4cc317
mov eax, ebx
and eax, 0xff
bt dword [0x4f27f8], eax
jae 0x4cc2e7
mov eax, dword [ebp + 8]
push eax
mov ecx, 1
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.004cc1f0
pop ecx
cmp byte [ebp - 1], 0
je 0x4cc312
mov eax, dword [ebp + 8]
push eax
mov ecx, 3
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.004cc1f0
pop ecx
jmp 0x4cc312
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.004cc1f0
pop ecx
cmp byte [ebp - 1], 0
je 0x4cc312
mov eax, dword [ebp + 8]
push eax
mov ecx, 2
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.004cc1f0
pop ecx
dec si
jne 0x4cc2a7
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4cc320
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
push 0
xor eax, eax
mov al, bl
push eax
call sub.user32.dll_MapVirtualKeyA
and al, 0xff
mov edx, ebx
and edx, 0xff
bt dword [0x4f27f8], edx
jae 0x4cc358
mov edx, dword [ebp + 8]
push edx
xor ecx, ecx
mov edx, eax
mov eax, ebx
call fcn.004cc1f0
pop ecx
pop ebx
pop ebp
ret
mov edx, dword [ebp + 8]
push edx
mov ecx, 2
mov edx, eax
mov eax, ebx
call fcn.004cc1f0
pop ecx
pop ebx
pop ebp
ret
Function at 0x4ce47c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x21
mov eax, dword [0x4f2bc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov edx, ebx
lea eax, [esp + 4]
call fcn.00409f08
add esp, 0x104
pop ebx
ret

Function at 0x4ce4bc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040475c
xor eax, eax
push ebp
push 0x4ce527
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x22]
xor ecx, ecx
mov edx, 0x1e
call fcn.00402dec
mov dword [ebp - 0x1e], 3
mov eax, dword [ebp - 4]
call fcn.0040476c
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x12], 0x10
lea eax, [ebp - 0x22]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ce52e
lea eax, [ebp - 4]
call fcn.0040429c
ret

Function at 0x4ce8b4
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040475c
mov eax, dword [ebp - 8]
call fcn.0040475c
xor eax, eax
push ebp
push 0x4ce96f
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x4ce8fc
lea eax, [ebp - 0xc]
mov edx, 0x4ce984
call fcn.00404334
jmp 0x4ce904
lea eax, [ebp - 0xc]
call fcn.0040429c
xor ecx, ecx
mov dl, 1
mov eax, dword [0x43d05c]
call fcn.0043da0c
mov ebx, eax
mov edx, 0x80000002
mov eax, ebx
call fcn.0043d23c
mov eax, dword [ebp - 8]
push eax
push 0x4ce994
push dword [ebp - 0xc]
push 0x4ce9cc
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040462c
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov eax, ebx
call fcn.0043db6c
mov dl, 1
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ce976
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004042c0
ret
Function at 0x4ce9f4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push esi
push edi
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x4ceb70
mov eax, dword [ebp - 0x84]
sub eax, 1
jb 0x4cea2f
je 0x4cea40
dec eax
je 0x4cea51
jmp 0x4cea60
mov esi, 0x4ceb78
lea edi, [ebp - 0x194]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x4cea60
mov esi, 0x4ceb80
lea edi, [ebp - 0x194]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x4cea60
mov esi, 0x4ceb90
lea edi, [ebp - 0x194]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x194]
mov edx, 0x4ceb80
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.00402d7c
jne 0x4cea89
mov eax, dword [ebp + 8]
mov edx, 0x4ceba8
call fcn.004042f0
jmp 0x4ceb70
lea eax, [ebp - 0x194]
mov edx, 0x4ceb90
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.00402d7c
jne 0x4ceabb
cmp dword [ebp - 0x90], 5
jae 0x4ceabb
mov eax, dword [ebp + 8]
mov edx, 0x4ceba8
call fcn.004042f0
jmp 0x4ceb70
lea eax, [ebp - 0x194]
mov edx, 0x4ceb90
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.00402d7c
jne 0x4ceaf3
cmp dword [ebp - 0x90], 5
jne 0x4ceaf3
cmp dword [ebp - 0x8c], 1
jae 0x4ceaf3
mov eax, dword [ebp + 8]
mov edx, 0x4ceba8
call fcn.004042f0
jmp 0x4ceb70
lea eax, [ebp - 0x194]
mov edx, 0x4ceb90
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.00402d7c
jne 0x4ceb2b
cmp dword [ebp - 0x90], 5
jne 0x4ceb2b
cmp dword [ebp - 0x8c], 0
jbe 0x4ceb2b
mov eax, dword [ebp + 8]
mov edx, 0x4ceba8
call fcn.004042f0
jmp 0x4ceb70
lea eax, [ebp - 0x194]
mov edx, 0x4ceb90
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.00402d7c
jne 0x4ceb63
cmp dword [ebp - 0x90], 6
jne 0x4ceb63
cmp dword [ebp - 0x8c], 0
jbe 0x4ceb63
mov eax, dword [ebp + 8]
mov edx, 0x4cebb4
call fcn.004042f0
jmp 0x4ceb70
mov eax, dword [ebp + 8]
mov edx, 0x4cebb4
call fcn.004042f0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4cec74
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ced21
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x5e8]
mov eax, dword [eax + 0x220]
mov edx, dword [eax]
call dword [edx + 0x44]
mov dword [ebp - 8], 0x1400
mov eax, dword [ebp - 8]
call fcn.00402794
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x4cecd0
push eax
call sub.kernel32.dll_SetLastError
call fcn.0040eb34
mov eax, dword [ebx + 0x5e8]
mov esi, dword [eax + 0x220]
mov ebx, dword [ebp - 4]
lea ecx, [ebp - 0xc]
lea eax, [ebx + 0x194]
mov edx, dword [ebx + 0x190]
call fcn.004cebe0
mov edx, dword [ebp - 0xc]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov ebx, dword [ebx]
test ebx, ebx
jne 0x4cecdf
mov eax, dword [ebp - 4]
call fcn.004027b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ced28
lea eax, [ebp - 0xc]
call fcn.0040429c
ret
Function at 0x4de890
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe24
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4de996
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4f2d78]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.004837f8
xor edx, edx
push ebp
push 0x4de967
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x1dc]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
lea eax, [ebp - 0xc]
mov edx, 0x4de9ac
call fcn.00404334
push 0x40
lea eax, [ebp - 0x4c]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x4c]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x4de91b
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.004042f0
call fcn.00403cc4
jmp 0x4de980
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x4de934
push dword [edi]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.004044a4
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x4de922
call sub.wsock32.dll_WSACleanup
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.004042f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4de96e
mov eax, dword [0x4f2d78]
mov eax, dword [eax]
xor edx, edx
call fcn.004837f8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4de99d
lea eax, [ebp - 0xc]
call fcn.0040429c
ret

Function at 0x4e01f4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, edx
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040438c
add esp, 0x104
pop ebx
ret

Function at 0x4e05d4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.0040475c
xor eax, eax
push ebp
push 0x4e0657
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040476c
push eax
push 0
call sub.user32.dll_FindWindowA
test eax, eax
jbe 0x4e063f
lea edx, [ebp - 8]
push edx
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [ebp - 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
push ebx
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0xc]
push eax
push ebx
call sub.kernel32.dll_TerminateProcess
push ebx
call sub.kernel32.dll_CloseHandle
mov bl, 1
jmp 0x4e0641
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e065e
lea eax, [ebp - 4]
call fcn.0040429c
ret
Function at 0x4e902c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.0040475c
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4e91a6
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.004cc14c
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.004cc16c
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x4e9172
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.0040451c
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00409bd0
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408b6c
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00408b6c
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.004046b8
je 0x4e914c
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.0040451c
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408b6c
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408b6c
mov edx, dword [ebp - 0x148]
pop eax
call fcn.004046b8
jne 0x4e9163
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.004cc18c
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4e90ad
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e91ad
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.004042c0
lea eax, [ebp - 4]
call fcn.0040429c
ret
Function at 0x4022a5
Capabilities:
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
push 8
xor eax, eax
shl ecx, 1
pop esi
sar ecx, 1
mov edx, eax
xor edx, ecx
test dl, 1
je 0x4022c5
shr eax, 1
xor eax, 0xedb88320
jmp 0x4022c7
shr eax, 1
dec esi
jne 0x4022b1
pop esi
ret 4

Function at 0x4022ee
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [0x4085c0]
mov edx, ecx
dec ecx
test edx, edx
je 0x402321
push edi
lea edx, [ecx + 1]
mov ecx, dword [esp + 8]
push esi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4081c0]
xor eax, esi
inc ecx
dec edx
jne 0x402307
pop esi
pop edi
mov dword [0x4085c0], eax
ret

Function at 0x4046b1
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x40870e]
test eax, eax
ja 0x4046c4
and dword [0x4086ec], 0
xor eax, eax
ret
push edi
push esi
mov esi, 0x800
cmp eax, esi
ja 0x4046d1
mov esi, eax
mov edi, dword [0x4060ac]
push esi
push dword [0x4086e8]
push dword [0x408110]
call edi
cmp dword [0x408120], 0
mov ecx, eax
mov dword [0x4086ec], ecx
je 0x404740
cmp ecx, 0xffffffff
je 0x404740
cmp ecx, esi
je 0x404751
test ecx, ecx
jl 0x404740
mov ax, word [0x407ab0]
push dword [0x408124]
inc ax
push eax
call fcn.00401f2a
mov ecx, dword [0x4086ec]
test ecx, ecx
jne 0x404739
push esi
push dword [0x4086e8]
push dword [0x408110]
call edi
mov ecx, eax
mov dword [0x4086ec], ecx
cmp ecx, 0xffffffff
je 0x404740
mov esi, ecx
cmp ecx, esi
je 0x404751
push 2
call fcn.0040289a
mov ecx, dword [0x4086ec]
sub dword [0x40870e], ecx
mov esi, dword [0x4086e8]
cmp dword [0x408114], 0
mov dword [0x40871c], esi
je 0x404793
mov eax, ecx
mov edx, eax
dec eax
test edx, edx
je 0x404793
lea edi, [eax + 1]
call fcn.00405f08
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.00405f1e
inc esi
dec edi
pop ecx
jne 0x404778
mov ecx, dword [0x4086ec]
mov eax, ecx
dec ecx
pop esi
mov dword [0x4086ec], ecx
pop edi
ret
Function at 0x401f2c
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
xor ebx, ebx
inc ebx
push ebx
push 0
mov esi, ecx
push 0
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push str.open
push dword [esi + 0x20]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jae 0x401f58
xor bl, bl
lea ecx, [esp + 0xc]
call dword [0x40c124]
pop esi
mov al, bl
pop ebx
ret 4

Function at 0x40459f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov esi, ecx
push 1
xor edi, edi
push edi
lea ecx, [esi + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
mov dword [esi], eax
jne 0x4045fd
push edi
push edi
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp + 8]
mov dword [ebp - 8], 1
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi], edi
jne 0x4045fd
mov edi, dword [ebp - 8]
lea ecx, [ebp + 8]
call dword [0x40c124]
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x404719
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x40b248
call fcn.0040a100
sub esp, 0x110
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [ebp - 0x18], ebx
push ecx
xor edi, edi
inc edi
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0xff
mov dword [ebp - 0x14], edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov ecx, esi
call fcn.0040459f
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x404769
cmp eax, 2
jne 0x40478c
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
lea ecx, [esi + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov dword [esi], eax
je 0x404791
mov ecx, dword [ebp + 8]
jmp 0x4047ce
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
mov dword [esi], eax
je 0x4047bd
mov dword [ebp - 0x14], ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], ebx
mov ecx, dword [ebp + 8]
jne 0x4047da
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
jmp 0x4047e7
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [ebp + 0xc]
call dword [0x40c124]
lea ecx, [ebp + 0x10]
call dword [0x40c124]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
Function at 0x40480d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
mov esi, ecx
push 0x20019
push 0
lea ecx, [esi + 0xc]
mov dword [ebp - 0x10], 3
mov dword [ebp - 0xc], 4
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40484b
mov esi, dword [ebp + 0xc]
jmp 0x404882
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x404876
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 8]
lea ecx, [ebp + 8]
call dword [0x40c124]
mov eax, esi
pop esi
leave
ret 8

Function at 0x404892
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov esi, ecx
push 0x20006
xor edi, edi
xor ebx, ebx
push edi
lea ecx, [esi + 0xc]
inc ebx
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4048fc
push 4
lea eax, [ebp + 0xc]
push eax
push 3
push edi
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4048e3
xor ebx, ebx
cmp dword [esi + 8], edi
jne 0x4048f1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, ebx
lea ecx, [ebp + 8]
call dword [0x40c124]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40490e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp + 0xc]
inc ebx
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
cmp eax, 0xfe
jle 0x404935
xor esi, esi
jmp 0x4049bc
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.MSVCR71.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
lea ecx, [esi + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40492e
lea eax, [ebp - 0x104]
push eax
call sub.MSVCR71.dll_strlen
pop ecx
inc eax
push eax
lea eax, [ebp - 0x104]
push eax
push 1
push 0
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4049a2
xor ebx, ebx
cmp dword [esi + 8], 0
jne 0x4049b1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, ebx
lea ecx, [ebp + 8]
call dword [0x40c124]
lea ecx, [ebp + 0xc]
call dword [0x40c124]
mov eax, esi
pop esi
pop ebx
leave
ret 8