joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44125d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x480c00
cmp edx, dword [eax]
je 0x44127f
add eax, 8
inc ecx
cmp eax, str.__t__r_
jl 0x441270
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x480c00]
jne 0x4413ad
mov eax, dword [0x4845ac]
cmp eax, 1
je 0x441387
test eax, eax
jne 0x4412b0
cmp dword [0x47e3c4], 1
je 0x441387
cmp edx, 0xfc
je 0x4413ad
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4412e7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00440970
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0043ab40
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x44132a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0043ab40
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x46b35c
push edi
call fcn.00439e80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00440970
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00440980
lea eax, [ebp - 0xa0]
push 0x46b33c
push eax
call fcn.00440980
push dword [esi + 0x480c04]
lea eax, [ebp - 0xa0]
push eax
call fcn.00440980
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00444132
add esp, 0x2c
pop edi
jmp 0x4413ad
lea eax, [ebp + 8]
lea esi, [esi + 0x480c04]
push 0
push eax
push dword [esi]
call fcn.0043ab40
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 0x44978e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x464220
call fcn.0043a0a4
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0045e4cc
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x4497cd
call fcn.0045e4cc
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4497db
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4497e9
or eax, 0xffffffff
jmp 0x4498d1
mov ecx, esi
call fcn.00449704
mov dword [ebp - 0x14], eax
call fcn.0044a599
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x449820
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x449820
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0044a54d
push dword [ebp - 0x14]
call fcn.0044a09b
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0044949c
cmp eax, edi
je 0x449893
test byte [esi + 0x24], 0x10
je 0x449861
push 4
mov ecx, esi
pop ebx
call fcn.004490c3
test ah, 1
je 0x449859
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0044c5f5
cmp dword [esi + 0x1c], edi
je 0x449893
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004491af
jmp 0x449893
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x4498a7
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4498c0
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4498c0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0044973e
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x44aa4a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x44aa82
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004483b3
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0044838b
jmp 0x44aa8e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x44c39e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x44c3e0
call fcn.0045e4cc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x44c3e0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x44c3d7
xor eax, eax
jmp 0x44c3e8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0044c3ee
pop edi
pop esi
pop ebx
ret 4

Function at 0x45d579
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.0045e4cc
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x45d5b6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45d5b6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x45d5ba
xor eax, eax
jmp 0x45d638
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.0044863c
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x45d5f2
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x45d5dc
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.0045d729
push ebx
mov edi, eax
call fcn.00448665
test edi, edi
pop ecx
je 0x45d634
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.0045d4f2
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0045d63d
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x40563b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42630c]
jne 0x405645
repz ret
jmp fcn.0040a41c

Function at 0x40d83c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00409b4c
and dword [ebp - 4], 0
cmp dword [0x4290ec], 0
mov ebx, eax
jne 0x40d8ed
push 0x402234
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d99e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402228
push edi
call esi
test eax, eax
je 0x40d99e
push eax
call fcn.00409ada
mov dword [esp], 0x402218
push edi
mov dword [0x4290ec], eax
call esi
push eax
call fcn.00409ada
mov dword [esp], 0x402204
push edi
mov dword [0x4290f0], eax
call esi
push eax
call fcn.00409ada
mov dword [esp], 0x4021e8
push edi
mov dword [0x4290f4], eax
call esi
push eax
call fcn.00409ada
pop ecx
mov dword [0x4290fc], eax
test eax, eax
je 0x40d8ed
push 0x4021d0
push edi
call esi
push eax
call fcn.00409ada
pop ecx
mov dword [0x4290f8], eax
mov eax, dword [0x4290f8]
cmp eax, ebx
je 0x40d945
cmp dword [0x4290fc], ebx
je 0x40d945
push eax
call fcn.00409b55
push dword [0x4290fc]
mov esi, eax
call fcn.00409b55
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d945
test edi, edi
je 0x40d945
call esi
test eax, eax
je 0x40d93c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d93c
test byte [ebp - 0xc], 1
jne 0x40d945
or dword [ebp + 0x10], 0x200000
jmp 0x40d97e
mov eax, dword [0x4290f0]
cmp eax, ebx
je 0x40d97e
push eax
call fcn.00409b55
pop ecx
test eax, eax
je 0x40d97e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d97e
mov eax, dword [0x4290f4]
cmp eax, ebx
je 0x40d97e
push eax
call fcn.00409b55
pop ecx
test eax, eax
je 0x40d97e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4290ec]
call fcn.00409b55
pop ecx
test eax, eax
je 0x40d99e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d9a0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100091cb
Capabilities:
Contain obfuscated stackstrings

Disassembly:
movsb byte es:[edi], byte [esi]
and al, dh
inc ebp
movsd dword es:[edi], dword [esi]
xor eax, 0x41a645c6
call fcn.10008dde
push eax
push esi
push dword [ebp + 8]
call fcn.10008d93
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.10008dde
push eax
push esi
push dword [ebp + 8]
call fcn.10008d93
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.10008dce
xor ebp, dword [edx]
jge 0x1000925c
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.10008dce
outsb dx, byte [esi]
mov edi, dword gs:[esi - 0x73]
test dword [edi + edi*8 - 1], edi
call dword [eax - 0x18]
sbb al, 0xfb
invalid
Function at 0x1000965a
Capabilities:
Authenticate hmac
Contain obfuscated stackstrings

Disassembly:
mov ebp, 0x55fffffc
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.10008dde
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10008d93
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.10008dde
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10008d93
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.10008dde
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10008d93
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.10008dce
invalid
Function at 0x10009a39
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
mov byte [ebp - 0x505], 0x1c
lea eax, [ebp - 0x514]
push eax
call fcn.10008dde
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10008d93
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.10008dce
stc
cmpsd dword [esi], dword es:[edi]
cwde
loopne 0x10009ae9
add al, 1
add byte [eax], al
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x10009ac2
cmp dword [ebp - 0x398], 0
je 0x10009c8c
cmp dword [ebp + 0xc], 1
je 0x10009c8c
cmp dword [ebp + 0xc], 8
jne 0x10009c54
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
test dword [ecx + edi*8 - 1], ecx
push dword [ebx]
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
invalid

Function at 0x401005
Capabilities:
Packed with generic packer

Disassembly:
push ds
jmp 0x40100a
pushfd
jmp 0x40100f
jmp 0x401013
pushal
popal
popfd
pop ds
jmp fcn.004b932d
Function at 0x416d27
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x4a1d78]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], eax
push ecx
mov esi, 0x104
mov dword [eax], edi
mov edx, esi
mov dword [eax + 4], edi
lea ecx, [esp + 0x1c]
call fcn.004158fd
push 0x40e970
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.00415937
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x416dad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x416de7
mov ecx, dword [ebp + 4]
mov edx, 0xc9
push 0x40e900
call fcn.00416a7e
mov edi, eax
jmp 0x416de7
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.00416c03
mov ebx, eax
test ebx, ebx
jns 0x416dd9
mov ecx, dword [ebp + 4]
mov edx, 0xcf
push ebx
push 0x40e900
call fcn.00416a5c
mov edi, ebx
jmp 0x416de7
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
test esi, esi
je 0x416df1
push esi
call fcn.00416aee
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048e170
mov esp, ebp
pop ebp
ret 8
Function at 0x41797d
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xcc
mov eax, 0x48f5cd
call fcn.0048e6b2
mov ebx, ecx
mov dword [ebp - 0x40], ebx
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x44], ecx
mov edx, dword [eax]
mov dword [ebp - 0x38], edx
cmp edx, eax
je 0x417af2
lea esi, [edx + 0x10]
lea edi, [ebp - 0x54]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x417adb
cmp dword [esi + 0x18], 8
jb 0x4179c6
mov eax, dword [esi + 4]
jmp 0x4179c9
lea eax, [esi + 4]
lea edx, [ebp - 0x30]
xor edi, edi
push edx
lea edx, [ebp - 0x34]
push edx
push edi
push 0x20019
push edi
push edi
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x417ad2
cmp dword [esi + 0x34], 8
jb 0x4179f7
mov eax, dword [esi + 0x20]
jmp 0x4179fa
lea eax, [esi + 0x20]
lea ecx, [ebp - 0x30]
push ecx
push edi
lea ecx, [ebp - 0x3c]
push ecx
push edi
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x417ad2
mov eax, dword [ebp - 0x30]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048baa8
cmp dword [esi + 0x34], 8
mov ebx, eax
pop ecx
jb 0x417a3b
mov esi, dword [esi + 0x20]
jmp 0x417a3e
add esi, 0x20
lea eax, [ebp - 0x30]
push eax
push ebx
lea eax, [ebp - 0x3c]
push eax
push edi
push esi
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x417ac8
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004180ac
push ecx
push ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp - 0xd8]
call fcn.004181cc
push 2
pop eax
push edi
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], al
call fcn.0041ab08
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0xd8]
push ecx
mov edi, dword [eax + 0x10]
mov eax, dword [edi]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x4a60bc]
mov ecx, edi
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.00418188
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 0x4011d8
push eax
call fcn.0048bbf0
pop ecx
push ebx
call sub.msvcrt.dll_free
mov ebx, dword [ebp - 0x40]
pop ecx
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x38]
call fcn.00418867
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x44]
cmp edx, dword [ebx + 4]
jne 0x4179a7
call fcn.0048e652
ret 4
Function at 0x417b2a
Capabilities:
Set registry value

Disassembly:
push 0xc8
mov eax, 0x48f634
call fcn.0048e6b2
mov eax, ecx
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x3c], ecx
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov dword [ebp - 0x34], edx
cmp edx, eax
je 0x417ccf
lea esi, [edx + 0x10]
lea edi, [ebp - 0x54]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x417cb5
mov dword [ebp - 0xd4], 0x41257c
and dword [ebp - 4], 0
lea eax, [ebp - 0xd0]
or ecx, 1
mov dword [ebp - 0x88], 0x4011a0
push ecx
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x88]
push eax
call fcn.0041902d
push 2
pop esi
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xd4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd4], 0x4011a8
lea eax, [ebp - 0xd0]
mov ecx, eax
mov dword [ebp - 0x44], eax
call fcn.00418f94
push esi
mov dword [ebp - 0xd0], 0x401158
call fcn.00418ec1
and dword [ebp - 0x94], 0
mov dword [ebp - 0x90], eax
mov dword [ebp - 4], 4
lea ecx, [ebp - 0xd4]
mov eax, dword [ebp - 0x54]
push ecx
mov edi, dword [eax + 0x10]
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x4a60bc]
mov ecx, edi
call esi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xd4]
call fcn.00418121
cmp dword [ebx + 0x18], 8
jb 0x417c24
mov eax, dword [ebx + 4]
jmp 0x417c27
lea eax, [ebx + 4]
lea ecx, [ebp - 0x48]
xor esi, esi
push ecx
lea ecx, [ebp - 0x30]
push ecx
push esi
push 0x20006
push esi
push esi
push esi
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x417c84
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x417c54
lea ecx, [ebp - 0x28]
cmp dword [ebx + 0x34], 8
jb 0x417c5f
mov ebx, dword [ebx + 0x20]
jmp 0x417c62
add ebx, 0x20
mov eax, dword [ebp - 0x18]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push esi
push ebx
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0041ab08
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.00418144
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 0x4011d8
push eax
call fcn.0048bbf0
pop ecx
lea ecx, [ebp - 0x34]
call fcn.00418867
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
cmp edx, dword [eax + 4]
jne 0x417b59
call fcn.0048e652
ret 4
Function at 0x41b925
Capabilities:
Get file size

Disassembly:
push 0x14
mov eax, 0x48fbf7
call fcn.0048e67a
mov edi, ecx
test edi, edi
je 0x41ba3e
cmp dword [edi + 0x20], 0
je 0x41ba3e
push 0x4a3d78
lea ecx, [ebp - 0x10]
call dword [0x4a53dc]
and dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41b9f2
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x41b9f2
cmp dword [ebp - 0x1c], 0
jne 0x41b9f2
push 3
pop ebx
push ebx
mov ecx, edi
call fcn.00467f20
test eax, eax
je 0x41b9bb
push dword [edi + 0x37c]
push ebx
push 0x40f
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
push ecx
push dword [ebp - 0x20]
mov edx, 0xc3cf
lea ecx, [ebp - 0x14]
call fcn.0043bfe8
mov byte [ebp - 4], 1
mov ecx, edi
mov esi, dword [eax]
push ebx
call fcn.00467f20
push eax
push esi
push ebx
call dword [sym.imp.MFC42u.dll_CStatusBar::SetPaneText]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call dword [sym.imp.MFC42u.dll_CString::CString]
jmp 0x41ba31
push 3
mov ecx, edi
call fcn.00467f20
test eax, eax
je 0x41ba22
push 1
push 0x40efc8
push 3
call dword [sym.imp.MFC42u.dll_CStatusBar::SetPaneText]
push 0
push 3
push 0x40f
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x41ba31
push 0
push 0x40efc8
push 3
call dword [sym.imp.MFC42u.dll_CStatusBar::SetPaneText]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC42u.dll_CString::CString]
call fcn.0048e639
ret
Function at 0x41ee53
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov byte [esi + 0xc], bl
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x41eeae
lea ecx, [ebp - 0x10]
call dword [0x4a5520]
push ebx
push 0x20
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC42u.dll_CFile::Open]
test eax, eax
je 0x41eea5
push ebx
push ebx
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x41eea5
mov byte [esi + 0xc], 1
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC42u.dll_CFile::CFile]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41eebb
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push 0x20
mov eax, 0x48ffbd
call fcn.0048e6ed
mov edi, ecx
and dword [ebp - 4], 0
cmp byte [edi + 0xc], 0
je 0x41efe6
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x41efe6
mov ebx, dword [edi + 8]
and dword [ebp - 0x14], 0
test bl, 0x10
je 0x41ef0d
test al, 0x10
jne 0x41ef0d
and ebx, 0xffffffef
mov dword [ebp - 0x14], 1
or ebx, 0x80
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x41ef32
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x41ef2b
movzx eax, ax
or eax, 0x80070000
push eax
call dword [sym.imp.MFC42u.dll_AfxThrowOleException]
mov eax, ebx
mov ecx, 0x4000
xor eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
test ecx, eax
je 0x41ef59
test ecx, ebx
je 0x41ef50
push esi
call dword [sym.imp.ADVAPI32.dll_EncryptFileW]
jmp 0x41ef59
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_DecryptFileW]
lea ecx, [ebp - 0x2c]
call dword [0x4a5520]
push 0
push 0x12
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call dword [sym.imp.MFC42u.dll_CFile::Open]
test eax, eax
je 0x41efd9
cmp dword [ebp - 0x14], 0
jne 0x41efa9
push 0
push 0
push edi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x41efa9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x41efa2
movzx eax, ax
or eax, 0x80070000
push eax
call dword [sym.imp.MFC42u.dll_AfxThrowOleException]
test dword [ebp - 0x18], 0x800
je 0x41efd9
xor ecx, ecx
shr ebx, 0xb
push ecx
lea eax, [ebp - 0x18]
and ebx, 1
push eax
push ecx
push ecx
push 2
lea eax, [ebp - 0x14]
mov word [ebp - 0x14], bx
push eax
push 0x9c040
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call dword [sym.imp.MFC42u.dll_CFile::CFile]
call fcn.0048e639
ret 4