joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4136bf
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
push 0xffffffffffffffff
push dword [edi]
mov dword [ebp - 8], edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.00413635
mov esi, eax
cmp esi, 0xffffffff
je 0x4137b3
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
sub dword [ebp - 0x18], eax
cmp edi, 0x100000
jbe 0x41379a
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
jbe 0x41378e
sub eax, edi
mov edi, eax
push edi
call fcn.0046945d
cmp eax, ebx
pop ecx
mov dword [ebp + 0xc], eax
je 0x413774
push ebx
push ebx
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413774
cmp dword [ebp - 4], edi
jne 0x413774
lea edx, [ebp - 0x1c]
mov ecx, esi
mov dword [ebp - 0x14], 0x14
call fcn.00413524
push ebx
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x41377e
lea edx, [ebp - 0x1c]
mov ecx, esi
call fcn.004135f0
cmp dword [ebp + 0xc], ebx
je 0x4137a7
push dword [ebp + 0xc]
call fcn.00469458
pop ecx
jmp 0x4137a7
lea edx, [ebp - 0x1c]
mov ecx, esi
call fcn.004135f0
jmp 0x4137a7
lea edx, [ebp - 0x1c]
mov ecx, esi
mov dword [ebp - 0x14], edi
call fcn.00413524
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 8
Function at 0x4145a6
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.0041432b
mov esi, dword [esi + 4]
push 0x14
push 0
push esi
call fcn.004504b0
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 0x4145fe
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.004500e0
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 0x414619
cmp dword [edi + 0x18], 0x10
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp + 8]
jb 0x414639
mov ecx, dword [ecx]
lea edx, [eax + 1]
call fcn.004133cb
pop edi
mov dword [esi + 8], eax
pop esi
pop ebx
leave
ret 0xc

Function at 0x4148d1
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.00413ca8
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.004010e0
and dword [ebp - 4], 0
call fcn.0041797f
test al, al
je 0x414920
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.0041464b
test al, al
je 0x414974
cmp dword [ebp - 4], 0
jne 0x414929
cmp byte [esi + 0x85], 0
jne 0x414974
lea edi, [esi + 0x90]
cmp dword [edi], 0xffffffff
je 0x41493d
call ebx
sub eax, dword [ebp - 8]
cmp eax, dword [edi]
jae 0x414974
cmp byte [esi + 0x84], 0
je 0x414974
cmp dword [ebp - 4], 0
je 0x414954
mov eax, dword [esi + 0x88]
jmp 0x41495a
mov eax, dword [esi + 0x8c]
push eax
push dword [esi + 0x94]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x414974
cmp byte [esi + 0x84], 0
jne 0x4148fe
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x414990
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 0x41761d
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 0x417657
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 0x4176a3
push str.InternetGetConnectedStateExA
push eax
call edi
push 0x4995bc
push dword [esi + 4]
mov dword [esi + 0xc], eax
call edi
push 0x4995a8
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 0x4176aa
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 0x4176d8
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 0x417711
test eax, eax
jne 0x417711
mov esi, dword [ebp - 0x10]
cmp esi, 3
jb 0x417714
push 2
pop esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x417826
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 0x41784b
xor al, al
jmp 0x4178b2
push 0x100
lea eax, [ebp - 0x100]
push eax
call sub.WS2_32.dll_gethostname
test eax, eax
jne 0x4178ab
push esi
lea eax, [ebp - 0x100]
push eax
call sub.WS2_32.dll_gethostbyname
mov esi, eax
test esi, esi
je 0x4178aa
cmp word [esi + 0xa], 4
jne 0x4178aa
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x4178aa
push edi
xor edi, edi
push dword [eax]
call sub.WS2_32.dll_ntohl
test eax, eax
je 0x417898
cmp eax, 0x7f000001
jne 0x4178a7
mov eax, dword [esi + 0xc]
add edi, 4
mov eax, dword [edi + eax]
test eax, eax
jne 0x417886
jmp 0x4178a9
mov bl, 1
pop edi
pop esi
call sub.WS2_32.dll_WSACleanup
mov al, bl
pop ebx
leave
ret
Function at 0x4179df
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 0x417a3d
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 0x417a3d
cmp esi, ebx
je 0x417a36
mov byte [edi + esi - 1], bl
mov dword [ebp - 8], 1
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x417a4e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

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

Disassembly:
mov eax, 0x479539
call fcn.00450598
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 0x417cc7
mov edx, 0x104
lea ecx, [ebp - 0x130]
call fcn.004179df
test eax, eax
lea eax, [ebp - 0x130]
jne 0x417ccd
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x417cd0
lea eax, [ebp - 0x130]
push eax
jmp 0x417cd5
push 0x499720
lea ecx, [ebp - 0x28]
call fcn.004021d0
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.00402120
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 0x417e6f
Capabilities:
Create directory

Disassembly:
mov eax, 0x479539
call fcn.00450598
sub esp, 0x1c
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x417e8f
call fcn.00417e0c
test al, al
je 0x417e93
mov al, 1
jmp 0x417ee5
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 0x417eb5
cmp dword [esi + 0x18], 0x10
jb 0x417ec5
mov esi, dword [esi + 4]
jmp 0x417ec8
lea ecx, [ebp - 0x28]
call fcn.00417e6f
test al, al
jne 0x417eaa
xor bl, bl
jmp 0x417ed6
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 0x41a00e
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 0x419dac
mov eax, dword [esi + 0x3b0]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x419dd8
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.004199ee
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 0x41a048
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.00418424
lea eax, [esi + 0x390]
cmp byte [eax], 0
jne 0x41a045
pop edi
mov ecx, esi
mov byte [eax], 1
pop esi
jmp 0x419d79
Function at 0x422392
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x18], 0x10
jb 0x42239d
mov ecx, dword [ecx + 4]
jmp 0x4223a0
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4223b3
test al, 0x10
je 0x4223b3
mov al, 1
ret
xor al, al
ret
Function at 0x427b90
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.004279c0
add esp, 0x10
test al, al
mov byte [esi + 4], al
je 0x427c02
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x427bcf
xor eax, eax
jmp 0x427bd4
mov eax, dword [edi + 8]
sub eax, ecx
cmp eax, 0x40
mov ecx, dword [esi + 0xc]
jb 0x427c02
cmp word [ecx], 0x5a4d
jne 0x427c02
mov edx, dword [ecx + 0x3c]
lea edi, [edx + 0xf8]
cmp eax, edi
jb 0x427c02
cmp dword [edx + ecx], 0x4550
jne 0x427c02
push ecx
lea ecx, [esi + 0x34]
call fcn.004278e0
mov al, byte [esi + 4]
pop edi
pop esi
pop ebx
ret 0xc

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

Disassembly:
push 0xffffffffffffffff
push 0x47ada6
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], 0x49add4
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.00427b90
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 0x429f90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x47b860
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
mov eax, dword [0x4bc364]
push ebx
push esi
mov dword [esp + 0x78], eax
lea eax, [esp + 0x24]
push edi
push eax
call fcn.00429e60
push 0x497b3c
push eax
lea ecx, [esp + 0x18]
xor ebx, ebx
push ecx
mov dword [esp + 0x98], ebx
call fcn.004022b0
mov edx, dword [esp + 0xa0]
push edx
push eax
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0xa4], 1
call fcn.00402900
add esp, 0x1c
mov eax, dword [esp + 0x24]
mov edi, 0x10
cmp eax, edi
jb 0x42a00f
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00469458
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 0x42a03b
mov edx, dword [esp + 0x2c]
push edx
call fcn.00469458
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 0x42a055
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42a0d9
lea edx, [esp + 0x60]
lea ecx, [esp + 0x44]
call fcn.00401ae0
mov ecx, eax
mov byte [esp + 0x88], 5
call fcn.00417e6f
cmp dword [esp + 0x5c], edi
mov byte [esp + 0x88], 3
jb 0x42a098
mov eax, dword [esp + 0x48]
push eax
call fcn.00469458
add esp, 4
cmp dword [esp + 0x78], edi
mov ecx, dword [esp + 0x64]
jae 0x42a0a6
lea ecx, [esp + 0x64]
push 0x20
push 1
push 3
mov edx, 0xc0000000
call fcn.00417bf5
cmp eax, 0xffffffff
jne 0x42a0d2
cmp dword [esp + 0x78], edi
jb 0x42a0ce
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00469458
add esp, 4
xor al, al
jmp 0x42a149
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x78], edi
mov esi, dword [esp + 0x64]
jae 0x42a0e7
lea esi, [esp + 0x64]
mov eax, dword [esp + 0x9c]
cmp dword [eax + 0x18], edi
jb 0x42a0f8
mov edx, dword [eax + 4]
jmp 0x42a0fb
lea edx, [eax + 4]
mov eax, dword [esp + 0x98]
cmp dword [eax + 0x18], edi
jb 0x42a10c
mov ecx, dword [eax + 4]
jmp 0x42a10f
lea ecx, [eax + 4]
mov eax, dword [esp + 0x94]
cmp dword [eax + 0x18], edi
jb 0x42a120
mov eax, dword [eax + 4]
jmp 0x42a123
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 0x42a147
mov edx, dword [esp + 0x64]
push edx
call fcn.00469458
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.0044ea24
add esp, 0x80
ret
Function at 0x42a470
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47b8b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [0x4bc364]
push edi
push 0
push 0x497880
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.0042a170
mov eax, dword [esp + 0x30]
mov edi, 0x10
add esp, 0x14
cmp eax, edi
jb 0x42a4fa
mov edx, dword [esp + 8]
push edx
call fcn.00469458
add esp, 4
mov eax, dword [esp + 0x34]
test eax, eax
mov eax, dword [esp + 0x38]
jne 0x42a51d
cmp eax, edi
jb 0x42a517
mov eax, dword [esp + 0x24]
push eax
call fcn.00469458
add esp, 4
mov eax, dword [esp + 0x5c]
jmp 0x42a54d
cmp eax, edi
mov eax, dword [esp + 0x24]
jae 0x42a529
lea eax, [esp + 0x24]
push esi
push eax
call fcn.0044ee0b
mov esi, eax
mov eax, dword [esp + 0x40]
add esp, 4
cmp eax, edi
jb 0x42a54a
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00469458
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.0044ea24
add esp, 0x48
ret

Function at 0x42b3c0
Capabilities:
Resume thread

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

Function at 0x42bb30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov al, byte [ecx + 0x900]
push edi
xor edi, edi
test al, al
jne 0x42bb6b
call fcn.0042f080
cmp dword [eax + 0x18], 0x10
jb 0x42bb4e
mov eax, dword [eax + 4]
jmp 0x42bb51
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 0x42bbef
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 0x42bbe0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42bbe0
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 0x42bbdf
lea ebx, [eax + 1]
push ebx
call fcn.0046945d
push ebx
mov esi, eax
push ebp
push esi
call fcn.004510b0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
add esp, 0x10
push esi
mov byte [esi + eax], 0
call fcn.004021d0
push esi
call fcn.00469458
add esp, 4
mov bl, 1
pop ebp
test edi, edi
je 0x42bbeb
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov al, bl
pop ebx
pop edi
pop ecx
ret 4
Function at 0x42cf90
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x47bb60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov eax, dword [0x4bc364]
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.0042ce90
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.0041cdea
cmp eax, 0xffffffff
mov edi, 0x10
je 0x42d0d3
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.00401f20
cmp dword [esp + 0x38], edi
jb 0x42d06a
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00469458
add esp, 4
cmp dword [esp + 0x54], edi
mov eax, dword [esp + 0x40]
jae 0x42d078
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 0x42d0d3
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 0x42d0d3
mov byte [esp + 0xf], 1
cmp dword [esp + 0x70], edi
jb 0x42d0e6
mov eax, dword [esp + 0x5c]
push eax
call fcn.00469458
add esp, 4
cmp dword [esp + 0x54], edi
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
jb 0x42d109
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00469458
add esp, 4
cmp esi, ebx
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
je 0x42d124
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.0044ea24
add esp, 0x78
ret
Function at 0x42da90
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x47bd40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x4bc364]
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 0x42dad0
mov eax, dword [edi]
jmp 0x42dad2
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.00429630
cmp dword [esi + 0x18], 0x10
jb 0x42db03
mov eax, dword [edi]
jmp 0x42db05
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 0x42db39
mov esi, dword [esp + 0x58]
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x497880
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004015c0
jmp 0x42dbfe
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0x18]
mov ebp, 0x10
cmp ecx, ebp
jb 0x42db4e
mov eax, dword [eax + 4]
jmp 0x42db51
add eax, 4
push eax
push 0x4e4
push 0x409
lea edx, [esp + 0x34]
push str.StringFileInfo_04x_04x_s
push edx
call fcn.0041747a
add esp, 0x14
cmp dword [esp + 0x40], ebp
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x50], 1
jae 0x42db81
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 0x42dbcf
push ebx
mov ebp, 0xf
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push 0x497880
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004015c0
cmp dword [esp + 0x40], 0x10
jb 0x42dbc9
mov eax, dword [esp + 0x2c]
push eax
call fcn.00469458
add esp, 4
mov dword [esp + 0x40], ebp
jmp 0x42dbf6
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004016b0
cmp dword [esp + 0x40], ebp
jb 0x42dbee
mov edx, dword [esp + 0x2c]
push edx
call fcn.00469458
add esp, 4
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
cmp edi, ebx
je 0x42dc0b
push edi
call fcn.00469458
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.0044ea24
add esp, 0x44
ret