joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413d75
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x14]
push 0
mov dword [ebp - 4], ecx
add ebx, 0x15
push ebx
mov ecx, esi
call fcn.00413afa
mov esi, dword [esi + 4]
push 0x14
push 0
push esi
call fcn.0044f4a0
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
push 0x14
pop edx
mov dword [esi + 4], edx
mov dword [esi], ebx
mov al, byte [eax + 0x60]
mov byte [esi + 0x10], al
cmp dword [edi + 0x18], 0x10
mov ecx, dword [edi + 0x14]
lea eax, [edi + 4]
mov dword [ebp + 8], eax
jb 0x413dcd
mov eax, dword [eax]
mov ebx, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 4]
add eax, edx
inc ecx
push ecx
push dword [ebp + 0xc]
push eax
call fcn.0044f0d0
add esp, 0xc
xor ecx, ecx
mov eax, dword [ebx + 4]
mov dl, byte [esi + 0x10]
lea eax, [ecx + eax + 0x14]
xor byte [eax], dl
inc ecx
cmp ecx, dword [edi + 0x14]
jbe 0x413de8
cmp dword [edi + 0x18], 0x10
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp + 8]
jb 0x413e08
mov ecx, dword [ecx]
lea edx, [eax + 1]
call fcn.00412b7b
pop edi
mov dword [esi + 8], eax
pop esi
pop ebx
leave
ret 0xc

Function at 0x4140a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov esi, ecx
call ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00413477
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.004010e0
and dword [ebp - 4], 0
call fcn.0041714e
test al, al
je 0x4140ef
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.00413e1a
test al, al
je 0x414143
cmp dword [ebp - 4], 0
jne 0x4140f8
cmp byte [esi + 0x85], 0
jne 0x414143
lea edi, [esi + 0x90]
cmp dword [edi], 0xffffffff
je 0x41410c
call ebx
sub eax, dword [ebp - 8]
cmp eax, dword [edi]
jae 0x414143
cmp byte [esi + 0x84], 0
je 0x414143
cmp dword [ebp - 4], 0
je 0x414123
mov eax, dword [esi + 0x88]
jmp 0x414129
mov eax, dword [esi + 0x8c]
push eax
push dword [esi + 0x94]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x414143
cmp byte [esi + 0x84], 0
jne 0x4140cd
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x41415f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x40], 0
push edi
mov byte [esi + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x416dec
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov esi, ecx
xor ebx, ebx
push edi
push str.SENSAPI.DLL
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 8], ebx
call ebp
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi], eax
je 0x416e26
push str.IsNetworkAlive
push eax
call edi
mov dword [esi + 8], eax
push str.WININET.DLL
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
call ebp
cmp eax, ebx
mov dword [esi + 4], eax
je 0x416e72
push str.InternetGetConnectedStateExA
push eax
call edi
push 0x4963dc
push dword [esi + 4]
mov dword [esi + 0xc], eax
call edi
push 0x4963c8
push dword [esi + 4]
mov dword [esi + 0x10], eax
call edi
push str.InternetGetConnectedStateA
push dword [esi + 4]
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x416e79
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareWildTangent
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x416ea7
push 2
pop eax
leave
ret
push ebx
mov ebx, dword [ebp - 4]
push esi
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.ConnectionStatusOverride
push ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 8], esi
jne 0x416ee0
test eax, eax
jne 0x416ee0
mov esi, dword [ebp - 0x10]
cmp esi, 3
jb 0x416ee3
push 2
pop esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x416ff5
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
push ebx
lea eax, [ebp - 0x290]
push eax
push 0x101
xor bl, bl
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x41701a
xor al, al
jmp 0x417081
push 0x100
lea eax, [ebp - 0x100]
push eax
call sub.WS2_32.dll_gethostname
test eax, eax
jne 0x41707a
push esi
lea eax, [ebp - 0x100]
push eax
call sub.WS2_32.dll_gethostbyname
mov esi, eax
test esi, esi
je 0x417079
cmp word [esi + 0xa], 4
jne 0x417079
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x417079
push edi
xor edi, edi
push dword [eax]
call sub.WS2_32.dll_ntohl
test eax, eax
je 0x417067
cmp eax, 0x7f000001
jne 0x417076
mov eax, dword [esi + 0xc]
add edi, 4
mov eax, dword [edi + eax]
test eax, eax
jne 0x417055
jmp 0x417078
mov bl, 1
pop edi
pop esi
call sub.WS2_32.dll_WSACleanup
mov al, bl
pop ebx
leave
ret
Function at 0x4171ae
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, edx
mov edi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41720c
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
push str.ProgramFilesDir
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41720c
cmp esi, ebx
je 0x417205
mov byte [edi + esi - 1], bl
mov dword [ebp - 8], 1
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x41721d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

Function at 0x41742a
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, 0x478439
call fcn.0044f588
sub esp, 0x124
push esi
push edi
xor esi, esi
mov edi, ecx
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x10], 0xf
call fcn.004010c0
push 1
push 0x26
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x417496
mov edx, 0x104
lea ecx, [ebp - 0x130]
call fcn.004171ae
test eax, eax
lea eax, [ebp - 0x130]
jne 0x41749c
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x41749f
lea eax, [ebp - 0x130]
push eax
jmp 0x4174a4
push 0x496540
lea ecx, [ebp - 0x28]
call fcn.00402190
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.004020e0
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.004010e0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x41763e
Capabilities:
Create directory

Disassembly:
mov eax, 0x478439
call fcn.0044f588
sub esp, 0x1c
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41765e
call fcn.004175db
test al, al
je 0x417662
mov al, 1
jmp 0x4176b4
push ebx
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.00401ae0
mov eax, dword [ebp - 0x14]
and dword [ebp - 4], 0
cmp eax, dword [esi + 0x14]
jne 0x417684
cmp dword [esi + 0x18], 0x10
jb 0x417694
mov esi, dword [esi + 4]
jmp 0x417697
lea ecx, [ebp - 0x28]
call fcn.0041763e
test al, al
jne 0x417679
xor bl, bl
jmp 0x4176a5
add esi, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne bl
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004010e0
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4197ff
Capabilities:
Terminate thread

Disassembly:
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x3b0]
mov edi, 0xac
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x3a0]
test eax, eax
jne 0x41959d
mov eax, dword [esi + 0x3b0]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4195c9
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x3b0]
and dword [esi + 0x3a0], 0
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi + 0x3b0]
mov ecx, esi
call fcn.004191df
pop edi
pop esi
ret
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x3b0]
mov edi, 0xac
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x3b0]
add eax, edi
cmp dword [esi + 0x3a0], 0
push eax
jne 0x419839
mov byte [esi + 0x390], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
ret
mov dword [esi + 0x3a8], 4
mov dword [esi + 0x3ac], 2
mov byte [esi + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x7d0
mov ecx, esi
call fcn.00417bf3
lea eax, [esi + 0x390]
cmp byte [eax], 0
jne 0x419836
pop edi
mov ecx, esi
mov byte [eax], 1
pop esi
jmp 0x41956a
Function at 0x421be0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x18], 0x10
jb 0x421beb
mov ecx, dword [ecx + 4]
jmp 0x421bee
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x421c01
test al, 0x10
je 0x421c01
mov al, 1
ret
xor al, al
ret
Function at 0x427310
Capabilities:
Parse pe header

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push 0xffffffffffffffff
mov esi, ecx
push 0
push ebx
lea ecx, [esi + 0x18]
call fcn.004014d0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edi, [esi + 8]
push edi
push ebx
call fcn.00427140
add esp, 0x10
test al, al
mov byte [esi + 4], al
je 0x427382
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x42734f
xor eax, eax
jmp 0x427354
mov eax, dword [edi + 8]
sub eax, ecx
cmp eax, 0x40
mov ecx, dword [esi + 0xc]
jb 0x427382
cmp word [ecx], 0x5a4d
jne 0x427382
mov edx, dword [ecx + 0x3c]
lea edi, [edx + 0xf8]
cmp eax, edi
jb 0x427382
cmp dword [edx + ecx], 0x4550
jne 0x427382
push ecx
lea ecx, [esi + 0x34]
call fcn.00427060
mov al, byte [esi + 4]
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x427390
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x479ca6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [esi], 0x497be4
mov dword [esp + 4], esi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov dword [esp + 0x10], eax
mov byte [esi + 0x1c], al
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0x20]
push eax
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x1c], 1
call fcn.00427310
mov ecx, dword [esp + 8]
mov byte [esi + 4], al
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x4297b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x47a760
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
mov eax, dword [0x4b9314]
push ebx
push esi
mov dword [esp + 0x78], eax
lea eax, [esp + 0x24]
push edi
push eax
call fcn.00429680
push 0x494a70
push eax
lea ecx, [esp + 0x18]
xor ebx, ebx
push ecx
mov dword [esp + 0x98], ebx
call fcn.00402270
mov edx, dword [esp + 0xa0]
push edx
push eax
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0xa4], 1
call fcn.004028f0
add esp, 0x1c
mov eax, dword [esp + 0x24]
mov edi, 0x10
cmp eax, edi
jb 0x42982f
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004683c8
add esp, 4
cmp dword [esp + 0x40], edi
mov esi, 0xf
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
mov byte [esp + 0x88], 3
jb 0x42985b
mov edx, dword [esp + 0x2c]
push edx
call fcn.004683c8
add esp, 4
cmp dword [esp + 0x78], edi
mov eax, dword [esp + 0x64]
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
jae 0x429875
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4298f9
lea edx, [esp + 0x60]
lea ecx, [esp + 0x44]
call fcn.00401ae0
mov ecx, eax
mov byte [esp + 0x88], 5
call fcn.0041763e
cmp dword [esp + 0x5c], edi
mov byte [esp + 0x88], 3
jb 0x4298b8
mov eax, dword [esp + 0x48]
push eax
call fcn.004683c8
add esp, 4
cmp dword [esp + 0x78], edi
mov ecx, dword [esp + 0x64]
jae 0x4298c6
lea ecx, [esp + 0x64]
push 0x20
push 1
push 3
mov edx, 0xc0000000
call fcn.004173c4
cmp eax, 0xffffffff
jne 0x4298f2
cmp dword [esp + 0x78], edi
jb 0x4298ee
mov ecx, dword [esp + 0x64]
push ecx
call fcn.004683c8
add esp, 4
xor al, al
jmp 0x429969
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x78], edi
mov esi, dword [esp + 0x64]
jae 0x429907
lea esi, [esp + 0x64]
mov eax, dword [esp + 0x9c]
cmp dword [eax + 0x18], edi
jb 0x429918
mov edx, dword [eax + 4]
jmp 0x42991b
lea edx, [eax + 4]
mov eax, dword [esp + 0x98]
cmp dword [eax + 0x18], edi
jb 0x42992c
mov ecx, dword [eax + 4]
jmp 0x42992f
lea ecx, [eax + 4]
mov eax, dword [esp + 0x94]
cmp dword [eax + 0x18], edi
jb 0x429940
mov eax, dword [eax + 4]
jmp 0x429943
add eax, 4
push esi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
mov eax, dword [esp + 0x78]
setne bl
cmp eax, edi
jb 0x429967
mov edx, dword [esp + 0x64]
push edx
call fcn.004683c8
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x80]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x74]
pop ebx
call fcn.0044da14
add esp, 0x80
ret
Function at 0x429c90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47a7b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [0x4b9314]
push edi
push 0
push 0x494870
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], eax
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
call fcn.004015c0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x54]
push ecx
push edx
push eax
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x5c], 0
call fcn.00429990
mov eax, dword [esp + 0x30]
mov edi, 0x10
add esp, 0x14
cmp eax, edi
jb 0x429d1a
mov edx, dword [esp + 8]
push edx
call fcn.004683c8
add esp, 4
mov eax, dword [esp + 0x34]
test eax, eax
mov eax, dword [esp + 0x38]
jne 0x429d3d
cmp eax, edi
jb 0x429d37
mov eax, dword [esp + 0x24]
push eax
call fcn.004683c8
add esp, 4
mov eax, dword [esp + 0x5c]
jmp 0x429d6d
cmp eax, edi
mov eax, dword [esp + 0x24]
jae 0x429d49
lea eax, [esp + 0x24]
push esi
push eax
call fcn.0044ddfb
mov esi, eax
mov eax, dword [esp + 0x40]
add esp, 4
cmp eax, edi
jb 0x429d6a
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004683c8
add esp, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x3c]
pop edi
call fcn.0044da14
add esp, 0x48
ret

Function at 0x42ad30
Capabilities:
Resume thread

Disassembly:
mov dl, byte [ecx + 0x9d9]
xor al, al
test dl, dl
je 0x42ad4e
mov dl, byte [ecx + 0x900]
test dl, dl
jne 0x42ad4e
push 5
call fcn.00431470
ret
mov ecx, dword [ecx + 0xa1c]
test ecx, ecx
je 0x42ad65
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne al
ret

Function at 0x42b710
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov al, byte [ecx + 0x900]
push edi
xor edi, edi
test al, al
jne 0x42b74b
call fcn.0042ee30
cmp dword [eax + 0x18], 0x10
jb 0x42b72e
mov eax, dword [eax + 4]
jmp 0x42b731
add eax, 4
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
test edi, edi
setne al
test al, al
je 0x42b7cf
push ebx
push esi
push 0x1af
push 0xf618
push edi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x42b7c0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42b7c0
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test ebp, ebp
mov dword [esp + 0x10], eax
je 0x42b7bf
lea ebx, [eax + 1]
push ebx
call fcn.004683cd
push ebx
mov esi, eax
push ebp
push esi
call fcn.004500a0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
add esp, 0x10
push esi
mov byte [esi + eax], 0
call fcn.00402190
push esi
call fcn.004683c8
add esp, 4
mov bl, 1
pop ebp
test edi, edi
je 0x42b7cb
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov al, bl
pop ebx
pop edi
pop ecx
ret 4
Function at 0x42cb60
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x47aae0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov eax, dword [0x4b9314]
push ebx
push esi
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x70], eax
push edi
mov byte [esp + 0xf], bl
mov dword [esp + 0x18], esi
push 0x4a
push str.SoftwareMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options_
lea ecx, [esp + 0x44]
mov dword [esp + 0x88], ebx
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.004015c0
push ebx
lea eax, [esp + 0x5c]
push ebx
push eax
mov byte [esp + 0x8c], 1
call fcn.0042ca60
add esp, 0xc
push 1
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x64]
mov byte [esp + 0x8c], 2
mov byte [esp + 0x1c], 0x5c
call fcn.0041c5d8
cmp eax, 0xffffffff
mov edi, 0x10
je 0x42cca3
mov edx, dword [esp + 0x6c]
inc eax
sub edx, eax
push edx
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x64]
call fcn.004016f0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x8c], 3
call fcn.00401ee0
cmp dword [esp + 0x38], edi
jb 0x42cc3a
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004683c8
add esp, 4
cmp dword [esp + 0x54], edi
mov eax, dword [esp + 0x40]
jae 0x42cc48
lea eax, [esp + 0x40]
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x42cca3
mov esi, dword [esp + 0x14]
mov eax, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push str.BreakOnDllLoad
push esi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [esp + 0x14], ebx
je 0x42cca3
mov byte [esp + 0xf], 1
cmp dword [esp + 0x70], edi
jb 0x42ccb6
mov eax, dword [esp + 0x5c]
push eax
call fcn.004683c8
add esp, 4
cmp dword [esp + 0x54], edi
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
jb 0x42ccd9
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004683c8
add esp, 4
cmp esi, ebx
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
je 0x42ccf4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x78]
mov al, byte [esp + 0xf]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x6c]
pop ebx
call fcn.0044da14
add esp, 0x78
ret
Function at 0x42d750
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x47acf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x4b9314]
push ebx
xor ebx, ebx
push ebp
mov dword [esp + 8], ebx
push esi
mov esi, dword [esp + 0x58]
mov dword [esp + 0x40], eax
cmp dword [esi + 0x18], 0x10
push edi
mov dword [esp + 0x14], ebx
lea edi, [esi + 4]
jb 0x42d790
mov eax, dword [edi]
jmp 0x42d792
mov eax, edi
lea ecx, [esp + 0x14]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
push ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x54], ebx
call fcn.00428e10
cmp dword [esi + 0x18], 0x10
jb 0x42d7c3
mov eax, dword [edi]
jmp 0x42d7c5
mov eax, edi
mov edi, dword [esp + 0x1c]
push edi
push ebp
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x42d7f9
mov esi, dword [esp + 0x58]
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x494870
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004015c0
jmp 0x42d8be
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0x18]
mov ebp, 0x10
cmp ecx, ebp
jb 0x42d80e
mov eax, dword [eax + 4]
jmp 0x42d811
add eax, 4
push eax
push 0x4e4
push 0x409
lea edx, [esp + 0x34]
push str.StringFileInfo_04x_04x_s
push edx
call fcn.00416c49
add esp, 0x14
cmp dword [esp + 0x40], ebp
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x50], 1
jae 0x42d841
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
mov esi, dword [esp + 0x58]
jne 0x42d88f
push ebx
mov ebp, 0xf
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push 0x494870
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004015c0
cmp dword [esp + 0x40], 0x10
jb 0x42d889
mov eax, dword [esp + 0x2c]
push eax
call fcn.004683c8
add esp, 4
mov dword [esp + 0x40], ebp
jmp 0x42d8b6
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004016b0
cmp dword [esp + 0x40], ebp
jb 0x42d8ae
mov edx, dword [esp + 0x2c]
push edx
call fcn.004683c8
add esp, 4
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
cmp edi, ebx
je 0x42d8cb
push edi
call fcn.004683c8
add esp, 4
mov ecx, dword [esp + 0x48]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x38]
pop ebx
call fcn.0044da14
add esp, 0x44
ret
Function at 0x42e9a0
Capabilities:
Enumerate gui resources

Disassembly:
push 0xffffffffffffffff
push 0x47af18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
xor edi, edi
push edi
push str.WTFULLSCREENWND
mov ebx, ecx
xor ebp, ebp
mov dword [esp + 0x18], edi
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
cmp esi, edi
je 0x42ea11
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, ebx
call fcn.0042eed0
cmp eax, dword [esp + 0x10]
jne 0x42ea11
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x42ea11
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
mov dword [esp + 0x3c], edi
call fcn.0042e3e0
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
cmp ecx, eax
mov esi, ecx
je 0x42ea88
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ebp, dword [sym.imp.USER32.dll_EnumWindows]
mov edx, dword [esi - 4]
push edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call ebx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 0x42a8d0
call ebp
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x14], eax
jne 0x42ea7c
mov eax, dword [esp + 0x24]
add esi, 0xfffffffc
cmp esi, eax
jne 0x42ea47
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
mov esi, eax
je 0x42eaa8
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi]
push ecx
call ebx
mov eax, dword [esp + 0x28]
add esi, 4
cmp esi, eax
jne 0x42ea94
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x42eab5
push eax
call fcn.004683c8
add esp, 4
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret