joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402190
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x436018
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x443574]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push 0x200
call fcn.0043530f
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [esp + 0x10]
push eax
push str.SoftwareAdobeAdobe_Acrobat10.0LanguageNext
push SysReAllocString
mov dword [esp + 0x34], 0
call esi
test eax, eax
je 0x402244
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareAdobeAdobe_Acrobat10.0LanguageNext
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x402244
lea edx, [esp + 0x10]
push edx
push str.SoftwareAdobeAcrobat_Reader10.0LanguageNext
push SysReAllocString
call esi
test eax, eax
je 0x402244
lea eax, [esp + 0x10]
push eax
push str.SoftwareAdobeAcrobat_Reader10.0LanguageNext
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x402244
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareAdobeAcrobat_Reader10.0LanguageCurrent
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x40233b
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push ebx
lea eax, [esp + 0x20]
push eax
push 0
push 0
push ecx
mov dword [esp + 0x2c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x10]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
shr eax, 1
test esi, esi
jne 0x40233b
cmp dword [esp + 0x18], 1
jne 0x40233b
cmp eax, 4
jb 0x40233b
mov edi, dword [sym.imp.MSVCR90.dll__wcsicmp]
lea esi, [ebx + eax*2 - 8]
push 0x4389bc
push esi
call edi
add esp, 8
test eax, eax
je 0x40231d
push 0x4389b4
push esi
call edi
add esp, 8
test eax, eax
je 0x40231d
mov eax, dword [esp + 0x30]
mov edx, 4
sub esi, eax
jmp 0x4022d0
lea ecx, [edx + 0x7ffffffa]
test ecx, ecx
je 0x4022f0
movzx ecx, word [esi + eax]
test cx, cx
je 0x4022f0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4022d0
jmp 0x4022f4
test edx, edx
jne 0x4022f7
sub eax, 2
xor edx, edx
push ebx
mov word [eax], dx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x402390
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x443574]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ecx]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ecx + 4]
push edi
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x1c]
push ecx
xor ebx, ebx
or esi, 0x2001f
push esi
push ebx
push edx
push eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x10]
mov edi, eax
cmp edi, ebx
jne 0x40240f
xor eax, eax
cmp ecx, ebx
je 0x4023f7
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
and esi, 0x300
mov edi, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
cmp eax, ebx
je 0x402433
cmp ecx, ebx
je 0x40241a
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0043539d
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x44]
push edx
push ebx
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
jne 0x40249a
jmp 0x402460
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.00402390
mov edi, eax
cmp edi, ebx
jne 0x4024e9
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x44]
push eax
push ebx
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
je 0x402460
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4024ad
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edx
mov dword [esp + 0x18], ebx
call fcn.00401540
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4024d0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0043539d
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4024f8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x234]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043539d
mov esp, ebp
pop ebp
ret 4

Function at 0x4031b0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x4031cc
pop esi
pop ecx
ret
push edi
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x402360
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x4031f4
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x404d90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x436260
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x443574]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov edi, dword [ebp + 0x414]
mov ebx, dword [ebp + 0x418]
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call fcn.004027c0
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x404e11
call fcn.00401320
mov edi, eax
jmp 0x404efa
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x404e2a
call fcn.00401320
jmp 0x404ef1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x404e45
call fcn.00401320
jmp 0x404ef1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x18], edi
cmp eax, edi
jae 0x404e82
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x404e69
lea ecx, [ebp]
call fcn.00401dd0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.00401d60
mov eax, 0x8007000e
jmp 0x404f0c
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00403880
mov dword [ebp - 4], 1
jmp 0x404eae
mov eax, dword [ebp]
test eax, eax
jne 0x404ebc
mov edi, 0x8007000e
jmp 0x404ef3
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x404ed5
call fcn.00401320
jmp 0x404ef1
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00404b80
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x404f0a
lea ecx, [ebp]
call fcn.00401dd0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0043539d
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4053d0
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405446
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x405415
cmp eax, 2
jne 0x405431
mov eax, dword [esp + 0x14]
test esi, esi
je 0x405440
test eax, eax
je 0x40543b
test al, 1
jne 0x405431
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x405440
pop edi
mov eax, 0xd
pop esi
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc
Function at 0x405690
Capabilities:
Query or enumerate registry key

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x18
lea eax, [esp]
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4057af
push ebp
push esi
mov ebp, 0xff
push 0x1fe
mov dword [esp + 0x10], ebp
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x4057a2
mov edx, dword [esp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push esi
push 0
push edx
mov dword [esp + 0x30], ebp
call edi
test eax, eax
jne 0x405797
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
lea ecx, [ecx]
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 0
push ecx
call ebx
test eax, eax
jne 0x405796
mov edx, dword [esp + 0x10]
push esi
push edx
call fcn.00405690
add esp, 8
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
push 0
push 0
push 0
push ecx
call ebx
test eax, eax
jne 0x405796
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x1c]
je 0x405796
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
push esi
push 0
push edx
mov dword [esp + 0x34], ebp
call edi
test eax, eax
je 0x405710
pop ebx
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
pop edi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add esp, 0x18
ret
Function at 0x4057d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x443574]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
push eax
push ecx
call fcn.0040c920
add esp, 8
test eax, eax
jne 0x405801
mov eax, 0x80004005
jmp 0x4058e7
mov edx, dword [ebp + 0x14]
push edx
call fcn.00405490
mov edi, eax
add esp, 4
lea ecx, [ebp - 0x24]
mov dword [ebp - 0xc], edi
call fcn.0040d680
mov esi, dword [ebp + 0x18]
push esi
push edi
lea ecx, [ebp - 0x24]
call fcn.0040d0b0
test al, al
jne 0x40583d
lea ecx, [ebp - 0x24]
call fcn.0040d210
mov eax, 1
jmp 0x4058e7
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
test esi, esi
jne 0x40584b
xor eax, eax
jmp 0x405873
push esi
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x40585a
xor eax, eax
jmp 0x405873
lea edi, [eax + eax]
mov eax, edi
call fcn.004354c0
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.00405220
mov edi, dword [ebp - 0xc]
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4058dd
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x4058a4
push edi
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x4058a8
xor eax, eax
jmp 0x4058be
lea esi, [eax + eax]
mov eax, esi
call fcn.004354c0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00405220
push 4
lea edx, [ebp + 0x20]
push edx
push 4
push 0
push eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x24]
call fcn.0040d210
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043539d
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x405900
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x443574]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
push eax
push ecx
call fcn.0040c920
add esp, 8
test eax, eax
jne 0x405931
mov eax, 0x80004005
jmp 0x4059fd
mov edx, dword [ebp + 0x14]
push edx
call fcn.00405490
add esp, 4
lea ecx, [ebp - 0x20]
mov ebx, eax
call fcn.0040d680
mov edi, dword [ebp + 0x18]
push edi
push ebx
lea ecx, [ebp - 0x20]
call fcn.0040d0b0
test al, al
jne 0x40596a
lea ecx, [ebp - 0x20]
call fcn.0040d210
mov eax, 1
jmp 0x4059fd
test edi, edi
jne 0x405972
xor eax, eax
jmp 0x40599b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x405985
xor eax, eax
jmp 0x40599b
lea esi, [eax + eax]
mov eax, esi
call fcn.004354c0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00405220
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4059f3
mov edx, dword [ebp + 0x20]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4059c2
mov ecx, dword [ebp + 0x1c]
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edx
mov edx, dword [ebp - 8]
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x20]
call fcn.0040d210
xor eax, eax
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043539d
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x405a20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x443574]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
push eax
push ecx
call fcn.0040c920
add esp, 8
test eax, eax
je 0x405ba1
mov edx, dword [ebp + 0x14]
push edx
call fcn.00405490
mov esi, eax
add esp, 4
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xc], esi
call fcn.0040d680
mov edi, dword [ebp + 0x18]
push edi
push esi
lea ecx, [ebp - 0x28]
call fcn.0040d0b0
test al, al
jne 0x405a87
lea ecx, [ebp - 0x28]
call fcn.0040d210
mov eax, 1
jmp 0x405ba6
mov eax, dword [ebp + 0x20]
test eax, eax
jne 0x405aa0
lea ecx, [ebp - 0x28]
call fcn.0040d210
mov eax, 0x57
jmp 0x405ba6
cmp word [eax], 1
jne 0x405b99
cmp dword [eax + 4], 1
jne 0x405b99
cmp dword [eax + 0x14], 0
jne 0x405b99
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov esi, eax
test esi, esi
je 0x405ade
lea ecx, [ebp - 0x28]
call fcn.0040d210
mov eax, esi
jmp 0x405ba6
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
test edi, edi
jne 0x405aec
xor eax, eax
jmp 0x405b11
push edi
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x405afb
xor eax, eax
jmp 0x405b11
lea esi, [eax + eax]
mov eax, esi
call fcn.004354c0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00405220
push 0
lea edx, [ebp - 8]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x405b83
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x405b45
push edi
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x405b49
xor eax, eax
jmp 0x405b5f
lea esi, [eax + eax]
mov eax, esi
call fcn.004354c0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00405220
mov ecx, dword [ebp + 0x20]
mov edx, dword [ecx + 0x10]
mov ecx, dword [ebp - 0x10]
push edx
mov edx, dword [ebp - 8]
push ecx
push 3
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x20]
push ecx
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
lea ecx, [ebp - 0x28]
call fcn.0040d210
xor eax, eax
jmp 0x405ba6
lea ecx, [ebp - 0x28]
call fcn.0040d210
mov eax, 0x80004005
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043539d
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x407340
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x874
mov eax, dword [0x443574]
xor eax, esp
mov dword [esp + 0x870], eax
push ebx
push ebp
mov ebp, dword [esp + 0x884]
push esi
mov esi, dword [sym.imp.MSVCR90.dll_wcscat_s]
push edi
mov edi, dword [esp + 0x888]
push 0x438f6c
push 0x104
push edi
mov dword [esp + 0x20], ebp
mov ebx, 1
call esi
push 0x438f6c
push 0x104
push ebp
call esi
mov ebp, dword [sym.imp.MSVCR90.dll_wcscpy_s]
push edi
lea eax, [esp + 0x694]
push 0x104
push eax
call ebp
push 0x438f64
lea ecx, [esp + 0x6a0]
push 0x104
push ecx
call esi
add esp, 0x30
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x67c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x4073df
xor eax, eax
jmp 0x407583
test eax, eax
je 0x407576
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x407576
push edi
lea eax, [esp + 0x474]
push 0x104
push eax
call ebp
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x480]
push 0x104
push edx
call esi
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x284]
push 0x104
push ecx
call ebp
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x290]
push 0x104
push eax
call esi
add esp, 0x30
lea ecx, [esp + 0x268]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407473
and eax, 0xfffffffe
push eax
lea edx, [esp + 0x26c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [esp + 0x18], 0x10
jne 0x4074a1
push 0
lea eax, [esp + 0x26c]
push eax
lea ecx, [esp + 0x478]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4073e7
xor ebx, ebx
jmp 0x4073e7
mov ecx, 0x438f60
lea eax, [esp + 0x44]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4074d6
test dx, dx
je 0x4074d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4074d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4074b0
xor eax, eax
jmp 0x4074db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4073e7
mov ecx, 0x438f58
lea eax, [esp + 0x44]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407516
test dx, dx
je 0x407512
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407516
add eax, 4
add ecx, 4
test dx, dx
jne 0x4074f0
xor eax, eax
jmp 0x40751b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4073e7
push 0
lea edx, [esp + 0x26c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test ebx, ebx
jne 0x40754f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4073e7
mov ebx, 1
lea eax, [esp + 0x268]
push eax
lea ecx, [esp + 0x474]
push ecx
call fcn.00407340
add esp, 8
test eax, eax
jne 0x4073e7
xor ebx, ebx
jmp 0x4073e7
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov ecx, dword [esp + 0x880]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043539d
add esp, 0x874
ret
Function at 0x407a80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x443574]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
push eax
push ecx
call fcn.0040c920
add esp, 8
test eax, eax
jne 0x407ab1
mov eax, 0x80004005
jmp 0x407bd7
mov edi, dword [ebp + 0x20]
test edi, edi
jne 0x407abc
xor ebx, ebx
jmp 0x407ae7
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x407acf
xor ebx, ebx
jmp 0x407ae7
lea esi, [eax + eax]
mov eax, esi
call fcn.004354c0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00405220
mov ebx, eax
mov edx, dword [ebp + 0x14]
push edx
call fcn.00405490
mov esi, eax
add esp, 4
lea ecx, [ebp - 0x24]
mov dword [ebp - 0xc], esi
call fcn.0040d680
mov edi, dword [ebp + 0x18]
push edi
push esi
lea ecx, [ebp - 0x24]
call fcn.0040d0b0
test al, al
jne 0x407b23
lea ecx, [ebp - 0x24]
call fcn.0040d210
mov eax, 1
jmp 0x407bd7
test edi, edi
jne 0x407b2b
xor eax, eax
jmp 0x407b57
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x407b3e
xor eax, eax
jmp 0x407b57
lea esi, [eax + eax]
mov eax, esi
call fcn.004354c0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00405220
mov esi, dword [ebp - 0xc]
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x407bcd
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x407b8c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x407b90
xor esi, esi
jmp 0x407ba8
lea esi, [eax + eax]
mov eax, esi
call fcn.004354c0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00405220
mov esi, eax
push ebx
call fcn.00407930
mov edx, dword [ebp - 8]
add esp, 4
inc eax
push eax
push ebx
push 3
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x24]
call fcn.0040d210
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043539d
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x40d4f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x818
mov eax, dword [0x443574]
xor eax, esp
mov dword [esp + 0x814], eax
mov eax, dword [esp + 0x81c]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x40d664
push esi
lea edx, [esp + 0x18]
push edx
push 0x20019
push eax
mov eax, dword [esp + 0x20]
push str.cAllowedRegistryPaths
push eax
mov dword [esp + 0x24], 0x400
call ebx
mov esi, dword [sym.imp.MSVCR90.dll_wcstok_s]
test eax, eax
jne 0x40d5c8
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 0x439484
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d5bd
mov edx, dword [esp + 0x10]
xor ecx, ecx
lea eax, [esp + 0xc]
push eax
mov word [esp + edx*2 + 0x24], cx
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x24]
push 0x439480
push ecx
call esi
add esp, 0xc
push eax
mov ecx, edi
call fcn.0040d370
lea edx, [esp + 0xc]
push edx
push 0x439480
push 0
call esi
add esp, 0xc
test eax, eax
jne 0x40d5a0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push 0
push str.cAllowedFolderPaths
push edx
call ebx
test eax, eax
jne 0x40d658
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0x439484
push edx
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d64d
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
mov word [esp + ecx*2 + 0x24], ax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x24]
push 0x439480
push eax
call esi
add esp, 0xc
nop
push eax
mov ecx, edi
call fcn.0040d430
lea ecx, [esp + 0xc]
push ecx
push 0x439480
push 0
call esi
add esp, 0xc
test eax, eax
jne 0x40d630
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [esp + 0x81c]
pop edi
pop ebx
xor ecx, esp
call fcn.0043539d
add esp, 0x818
ret 4