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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
push esi
push edi
lea edi, [ebp - 0x258]
mov ecx, 0x96
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp esi, esp
call fcn.00403ab0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4015dc
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.00403ab0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0x200
mov esi, esp
lea ecx, [ebp - 0x218]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp esi, esp
call fcn.00403ab0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401637
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00401580
add esp, 8
jmp 0x4015ea
mov esi, esp
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.00403ab0
mov esi, esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp esi, esp
call fcn.00403ab0
mov dword [ebp - 4], eax
pop edi
pop esi
pop ebx
add esp, 0x258
cmp ebp, esp
call fcn.00403ab0
mov esp, ebp
pop ebp
ret
Function at 0x436d2d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
call fcn.0047f3b2
mov dword [ebp - 4], eax
push 5
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x436d86
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x436da0
push 0xeb
push 0x4a428c
call fcn.004783b0
test eax, eax
je 0x436da0
int3
xor edx, edx
test edx, edx
jne 0x436d86
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.00436dfb
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.00402af0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x437e0f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x437e32
push 0x33c
push 0x4a428c
call fcn.004783b0
test eax, eax
je 0x437e32
int3
xor eax, eax
test eax, eax
jne 0x437e18
call fcn.0047f3b2
mov dword [ebp - 8], eax
push 5
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x437e9e
mov eax, dword [ebp + 8]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
test eax, eax
je 0x437e80
mov ecx, dword [ebp + 8]
push ecx
push 0x4a460c
call fcn.0041b995
add esp, 8
jmp 0x437e97
mov edx, dword [ebp + 8]
and edx, 0xffff
push edx
push 0x4a463c
call fcn.0041b995
add esp, 8
xor eax, eax
jmp 0x437fc8
cmp dword [ebp + 0xc], 0
jne 0x437eae
mov eax, 1
jmp 0x437fc8
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x437ee1
push 0x4a4674
push 0x4a46a8
call fcn.0041b995
add esp, 8
mov eax, 1
jmp 0x437fc8
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax + 2]
cmp ecx, 0xffff
jne 0x437f0a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x14], eax
jmp 0x437f12
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00402af0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edx, dword [ebp - 0x14]
and edx, 0x10000000
test edx, edx
je 0x437f74
mov eax, dword [ebp + 8]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
test eax, eax
je 0x437f59
mov ecx, dword [ebp + 8]
push ecx
push 0x4a46ac
call fcn.0041b995
add esp, 8
jmp 0x437f70
mov edx, dword [ebp + 8]
and edx, 0xffff
push edx
push 0x4a46dc
call fcn.0041b995
add esp, 8
xor eax, eax
jmp 0x437fc8
mov eax, dword [ebp - 0x14]
and eax, 0x40000000
test eax, eax
jne 0x437fc3
mov ecx, dword [ebp + 8]
shr ecx, 0x10
and ecx, 0xffff
and ecx, 0xffff
test ecx, ecx
je 0x437fa9
mov edx, dword [ebp + 8]
push edx
push 0x4a4710
call fcn.0041b995
add esp, 8
jmp 0x437fbf
mov eax, dword [ebp + 8]
and eax, 0xffff
push eax
push 0x4a4748
call fcn.0041b995
add esp, 8
xor eax, eax
jmp 0x437fc8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x439fa1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x439fd2
push 0x43d
push 0x4a4840
call fcn.004783b0
test eax, eax
je 0x439fd2
int3
xor edx, edx
test edx, edx
jne 0x439fad
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
jne 0x43a01e
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 1
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00434a27
push eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.004349b3
jmp 0x43a036
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x38]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x38]
mov eax, dword [edx]
call dword [eax + 0x90]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43d890
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x43d91c
call fcn.0047f3b2
mov dword [ebp - 0x10], eax
push 0xf0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43d91c
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x43d8ef
xor eax, eax
jmp 0x43d94d
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x43d916
push 0xcc5
push 0x4a4840
call fcn.004783b0
test eax, eax
je 0x43d916
int3
xor edx, edx
test edx, edx
jne 0x43d8fc
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0043d956
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x43d94a
cmp dword [ebp - 8], 0
je 0x43d94a
mov ecx, dword [ebp - 8]
push ecx
call fcn.00402af0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x441684
Capabilities:
Create thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x28], 0
je 0x4416ad
push 0x18b
push 0x4a6b48
call fcn.004783b0
test eax, eax
je 0x4416ad
int3
xor ecx, ecx
test ecx, ecx
jne 0x441690
push 0x1c
push 0
lea edx, [ebp - 0x1c]
push edx
call fcn.00404f20
add esp, 0xc
call fcn.00488475
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0xc], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0xc], 0
je 0x441705
cmp dword [ebp - 8], 0
jne 0x44173e
push 0x4a6bc8
push 0x4a6c04
call fcn.0041b995
add esp, 8
cmp dword [ebp - 0xc], 0
je 0x441727
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x441737
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x441873
mov ecx, dword [ebp - 0x20]
add ecx, 0x2c
push ecx
mov edx, dword [ebp + 8]
or edx, 4
push edx
lea eax, [ebp - 0x1c]
push eax
push 0x440e40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.0040ac00
add esp, 0x18
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x28], 0
jne 0x44177b
xor eax, eax
jmp 0x441873
mov ecx, dword [ebp - 0x20]
call fcn.0047ef5c
cmp eax, 0xffffffff
jne 0x44179c
push 0x1a5
push 0x4a6b48
call fcn.004783b0
test eax, eax
je 0x44179c
int3
xor eax, eax
test eax, eax
jne 0x44177b
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4417c6
push 0x1a6
push 0x4a6b48
call fcn.004783b0
test eax, eax
je 0x4417c6
int3
xor edx, edx
test edx, edx
jne 0x4417a2
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
and ecx, 4
test ecx, ecx
je 0x44180c
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x441806
push 0x1ab
push 0x4a6b48
call fcn.004783b0
test eax, eax
je 0x441806
int3
xor ecx, ecx
test ecx, ecx
jne 0x4417e0
cmp dword [ebp - 4], 0
je 0x441864
push 0xffffffffffffffff
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x441839
push 0x1b0
push 0x4a6b48
call fcn.004783b0
test eax, eax
je 0x441839
int3
xor ecx, ecx
test ecx, ecx
jne 0x441812
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x28], 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x441873
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x445c97
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
push 0xed
push 0x4a9314
mov eax, dword [ebp - 8]
push eax
call fcn.004350e0
mov ecx, dword [ebp - 8]
cmp dword [ecx + 4], 0xffffffff
jne 0x445cd3
push 0xee
push 0x4a9314
call fcn.004783b0
test eax, eax
je 0x445cd3
int3
xor edx, edx
test edx, edx
jne 0x445cb6
cmp dword [ebp + 0xc], 0
jne 0x445ce4
jmp 0x445d85
cmp dword [ebp + 8], 0
jne 0x445cfe
push 0xf3
push 0x4a9314
call fcn.004783b0
test eax, eax
je 0x445cfe
int3
xor eax, eax
test eax, eax
jne 0x445ce4
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041bac6
test eax, eax
jne 0x445d2b
push 0xf4
push 0x4a9314
call fcn.004783b0
test eax, eax
je 0x445d2b
int3
xor eax, eax
test eax, eax
jne 0x445d04
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x445d68
mov ecx, dword [ebp - 8]
add ecx, 0xc
call fcn.004749da
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00435e90
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x445d85
mov ecx, dword [ebp - 8]
add ecx, 0xc
call fcn.004749da
push eax
push 0xffffffffffffffff
push 0xd
call fcn.00436070
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4464cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push 0x4a9374
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4465a2
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x446598
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push 0x4a937c
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x44658e
push 0x104
mov ecx, dword [ebp + 0xc]
call fcn.00434878
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], 0x104
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0
push 0x4ae6ec
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x18], eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
call fcn.004349b3
xor ecx, ecx
cmp dword [ebp - 0x18], 0
sete cl
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x44674f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49011d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
push ebx
push esi
push edi
push 1
push 0x104
mov eax, dword [ebp + 8]
push eax
call fcn.0041bac6
test eax, eax
jne 0x446798
push 0x216
push 0x4a9314
call fcn.004783b0
test eax, eax
je 0x446798
int3
xor ecx, ecx
test ecx, ecx
jne 0x446770
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x4467ee
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx]
test eax, eax
je 0x4467d4
mov ecx, dword [ebp + 0xc]
push ecx
push 0x4a938c
call fcn.0041b995
add esp, 8
push 0x104
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
jmp 0x4468e1
lea ecx, [ebp - 0x1c]
call fcn.00474937
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004468f4
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.004749da
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x446866
lea ecx, [ebp - 0x1c]
call fcn.004749da
push eax
push 0x4a93b8
call fcn.0041b995
add esp, 8
mov dword [ebp - 0x164], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004340cc
mov eax, dword [ebp - 0x164]
jmp 0x4468e1
mov edx, dword [ebp - 0x18]
and edx, 2
test edx, edx
jne 0x44687a
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
mov ecx, dword [ebp - 0x18]
and ecx, 4
test ecx, ecx
jne 0x4468c2
lea edx, [ebp - 0x15c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0xffffffff
je 0x4468c2
mov ecx, dword [ebp - 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [ebp - 0x130]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x168], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004340cc
mov eax, dword [ebp - 0x168]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x447219
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
push 0x5e
push 0x4a9630
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004350e0
push 0x118
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404f20
add esp, 0xc
push 0x104
mov ecx, dword [ebp - 0x2c]
add ecx, 0xc
call fcn.004749da
push eax
mov edx, dword [ebp + 8]
add edx, 0x12
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 4], 0xffffffff
je 0x4473a1
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x447294
xor eax, eax
jmp 0x4473a6
push 0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0xffffffff
jne 0x4472b9
xor eax, eax
jmp 0x4473a6
mov ecx, dword [ebp - 0x2c]
add ecx, 0xc
call fcn.004749bc
test eax, eax
je 0x4472d1
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x10], 0
jmp 0x44731a
mov ecx, dword [ebp - 0x2c]
add ecx, 0xc
call fcn.004749da
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x4472f5
mov edx, dword [ebp + 8]
mov byte [edx + 0x10], 0
jmp 0x44731a
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 0x1c]
mov byte [eax + 0x10], cl
mov edx, dword [ebp - 0x1c]
and dl, 0
test edx, edx
je 0x44731a
push 0x4a96a8
push 0x4a96f4
call fcn.0041b995
add esp, 8
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0041b0bf
push eax
mov ecx, dword [ebp + 8]
call fcn.004750c8
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x24]
call fcn.0041b0bf
push eax
mov ecx, dword [ebp + 8]
add ecx, 8
call fcn.004750c8
push 0xffffffffffffffff
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x28]
call fcn.0041b0bf
push eax
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.004750c8
mov ecx, dword [ebp + 8]
call fcn.004750fa
test eax, eax
jne 0x447380
mov eax, dword [ebp + 8]
add eax, 4
push eax
mov ecx, dword [ebp + 8]
call fcn.004750c8
mov ecx, dword [ebp + 8]
add ecx, 8
call fcn.004750fa
test eax, eax
jne 0x4473a1
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
mov ecx, dword [ebp + 8]
add ecx, 8
call fcn.004750c8
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x44ec40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
cmp dword [0x4ac8c0], 0
je 0x44ec5c
mov eax, dword [0x4ae6d0]
jmp 0x44eda0
mov dword [0x4ac8c0], 1
xor eax, eax
mov ax, word [0x4ae6cc]
test eax, eax
jne 0x44ec9f
push 0x4a886c
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x4ae6c8], eax
cmp dword [0x4ae6c8], 0
jne 0x44ec96
mov word [0x4ae6cc], 1
jmp 0x44ec9f
mov word [0x4ae6cc], 2
xor ecx, ecx
mov cx, word [0x4ae6cc]
cmp ecx, 2
jne 0x44ecfa
mov dword [ebp - 4], 0
push 0x4a8884
push 0x4a8898
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x44ecfa
cmp dword [0x4ae6c8], 0
je 0x44ecfa
push 0
push 0
mov edx, dword [0x4ae6c8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x4ae6d0], eax
mov eax, dword [0x4ae6d0]
jmp 0x44eda0
mov dword [0x4ae6d0], 3
cmp dword [0x4ae674], 0
jne 0x44ed81
lea ecx, [ebp - 8]
push ecx
push 1
push 0
push 0x4a88a0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44ed7f
mov dword [ebp - 0x90], 0x80
lea edx, [ebp - 0x90]
push edx
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x8c]
push ecx
push 0
push 0x4a88b8
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44ed75
push 0xa
push 0
lea eax, [ebp - 0x88]
push eax
call fcn.0040b380
add esp, 0xc
mov dword [0x4ae6d0], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x44ed9b
cmp dword [0x4ae670], 0
jne 0x44ed9b
push 0
push 0x4ae6d0
push 0
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x4ae6d0]
mov esp, ebp
pop ebp
ret

Function at 0x452250
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
add ecx, 0x20
call fcn.004749da
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 1
test eax, eax
je 0x4522a6
push 1
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 8]
call dword [edx + 0xa0]
test eax, eax
jne 0x4522a4
push 0x4a8f84
push 0x4a8fb0
call fcn.0041b995
add esp, 8
xor eax, eax
jmp 0x4522e1
jmp 0x4522dc
push 1
mov ecx, dword [ebp - 8]
add ecx, 0x20
call fcn.004749da
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
call dword [edx + 0xa0]
test eax, eax
jne 0x4522dc
push 0x4a8fb4
push 0x4a8fd0
call fcn.0041b995
add esp, 8
xor eax, eax
jmp 0x4522e1
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x465e1e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
and ecx, 1
test ecx, ecx
je 0x465e42
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 4], eax
jmp 0x465e7c
push 5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x465e96
push 0xc9
push 0x4a52a4
call fcn.004783b0
test eax, eax
je 0x465e96
int3
xor eax, eax
test eax, eax
jne 0x465e7c
mov ecx, dword [ebp - 4]
xor edx, edx
mov dx, word [ecx + 2]
cmp edx, 0xffff
jne 0x465f71
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
and eax, 0x80000000
test eax, eax
je 0x465f41
push 0x4a52f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x465eee
push 0xe1
push 0x4a52a4
call fcn.004783b0
test eax, eax
je 0x465eee
int3
xor ecx, ecx
test ecx, ecx
jne 0x465ed4
cmp dword [ebp - 0x18], 0
je 0x465f3f
push 0x4a5304
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x465f35
mov eax, 1
test eax, eax
je 0x465f2f
push 0xe6
push 0x4a52a4
call fcn.004783b0
test eax, eax
je 0x465f2f
int3
xor ecx, ecx
test ecx, ecx
jne 0x465f12
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x465f71
mov eax, dword [ebp - 0x14]
and eax, 0xff
cmp eax, 3
jne 0x465f71
mov ecx, 1
test ecx, ecx
je 0x465f6b
push 0xed
push 0x4a52a4
call fcn.004783b0
test eax, eax
je 0x465f6b
int3
xor edx, edx
test edx, edx
jne 0x465f4e
call fcn.00488963
cmp dword [eax + 0x1038], 0
je 0x465f8e
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.00465dd3
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00465c95
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x44], 0
je 0x465fbe
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x44], 0
cmp dword [ebp - 8], 0
je 0x465fd3
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
mov dword [edx + 0x44], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
or ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8