joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462edf
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x462f17
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00460f96
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00460f6e
jmp 0x462f23
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4645cd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46460f
call fcn.0046a191
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46460f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x464606
xor eax, eax
jmp 0x464617
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046461d
pop edi
pop esi
pop ebx
ret 4

Function at 0x46a6c1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46a6ef
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46a70d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046a627
jmp 0x46a70d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46a70d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046a627
test edi, edi
mov eax, edi
jne 0x46a6f7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40daa0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 1]
mov byte [ebp - 1], 1
push eax
mov esi, ecx
call fcn.00409b00
test al, al
jne 0x40daf2
push str.InitializeSetup___failed
push 0x43
push str.c:_rhub2code_setuphandler_setuphandler.cpp
push 0
push str.SetupHandler::Run
push dword [0x4a9068]
call fcn.0040eee0
mov ecx, dword [esi + 0x2e24]
add esp, 0x18
mov eax, dword [ecx]
push 0
push 0
push 0x179b
call dword [eax + 4]
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x4829], 0
jne 0x40db02
mov ecx, esi
call fcn.00408ac0
cmp byte [esi + 0x482b], 0
je 0x40db16
mov ecx, esi
call fcn.00409fa0
test al, al
jne 0x40daed
mov ecx, esi
call fcn.00409040
test al, al
je 0x40daed
cmp byte [esi + 0x482e], 0
jne 0x40db36
mov ecx, esi
call fcn.004082a0
pop esi
mov esp, ebp
pop ebp
ret
push 0
call fcn.0044ff23
int3

Function at 0x40e580
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x14]
push eax
push 0
push esi
push 0x40e5a0
push 0
push 0
call fcn.00454e2c
add esp, 0x18
mov dword [esi + 0x10], eax
pop esi
ret

Function at 0x40e840
Capabilities:
Copy file

Disassembly:
sub esp, 0x834
mov eax, dword [0x4a6c44]
xor eax, esp
mov dword [esp + 0x830], eax
push ebx
push esi
mov esi, dword [esp + 0x840]
mov ebx, ecx
push edi
mov edi, dword [esp + 0x848]
test esi, esi
je 0x40e8c4
test edi, edi
je 0x40e8c4
lea eax, [esp + 0xc]
push eax
push esi
call fcn.00455621
add esp, 8
test eax, eax
js 0x40e8c4
push 0x200
lea eax, [esp + 0x440]
mov ecx, ebx
push eax
push esi
call fcn.0040eec0
push 0x200
lea eax, [esp + 0x40]
mov ecx, ebx
push eax
push edi
call fcn.0040eec0
push 0
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne al
jmp 0x40e8c6
xor al, al
mov ecx, dword [esp + 0x83c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00444138
add esp, 0x834
ret 8
Function at 0x4119a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x84
mov eax, dword [0x4a6c44]
xor eax, esp
mov dword [esp + 0x80], eax
push esi
mov esi, dword [esp + 0x8c]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push 0
push 0x80
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x84]
pop esi
xor ecx, esp
call fcn.00444138
add esp, 0x84
ret

Function at 0x411a00
Capabilities:
Copy file

Disassembly:
sub esp, 0x834
mov eax, dword [0x4a6c44]
xor eax, esp
mov dword [esp + 0x830], eax
push esi
mov esi, dword [esp + 0x83c]
push edi
mov edi, dword [esp + 0x844]
test esi, esi
je 0x411a63
test edi, edi
je 0x411a63
lea eax, [esp + 8]
push eax
push esi
call fcn.00455621
add esp, 8
test eax, eax
jns 0x411a7c
push esi
push str.sSourceFile___s__does_not_exist
push 0x157b
push 0x47eb88
push 0
push str.Utility::CopyMyFile__
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x1c
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x830]
xor ecx, esp
call fcn.00444138
add esp, 0x834
ret
push 0x200
lea eax, [esp + 0x43c]
push eax
push esi
call fcn.00416680
push 0x200
lea eax, [esp + 0x48]
push eax
push edi
call fcn.00416680
add esp, 0x18
lea eax, [esp + 0x38]
push 0
push eax
lea eax, [esp + 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [esp + 0x838]
test eax, eax
pop edi
setne al
pop esi
xor ecx, esp
call fcn.00444138
add esp, 0x834
ret

Function at 0x412230
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x434
mov eax, dword [0x4a6c44]
xor eax, esp
mov dword [esp + 0x430], eax
push ebp
mov ebp, dword [esp + 0x444]
push esi
mov esi, dword [esp + 0x440]
push edi
mov edi, dword [esp + 0x448]
mov dword [edi], 0
test esi, esi
je 0x412304
cmp byte [esi], 0
je 0x412304
push ebx
push 0x200
lea eax, [esp + 0x44]
push eax
push esi
call fcn.00416680
lea eax, [esp + 0x4c]
push 0x47e2e8
push eax
call fcn.0044fa5e
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x4122de
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.00455681
mov eax, dword [esp + 0x2c]
mov dword [edi], eax
inc eax
push eax
call fcn.0041d9bf
push ebx
push 1
push dword [esp + 0x38]
mov dword [ebp], eax
push eax
call fcn.00455c28
mov ecx, dword [ebp]
mov eax, dword [esp + 0x40]
push ebx
mov byte [eax + ecx], 0
call fcn.0044f88c
add esp, 0x20
jmp 0x412303
push esi
push str.Failed_to_open_sFileName__s
push 0x148b
push 0x47eb88
push 0
push str.Utility::GetFileData__
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x1c
pop ebx
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00444138
add esp, 0x434
ret
Function at 0x413a80
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x630
mov eax, dword [0x4a6c44]
xor eax, esp
mov dword [esp + 0x62c], eax
mov eax, dword [esp + 0x634]
lea ecx, [esp + 0x22c]
push ebx
push esi
push 0x200
push ecx
push eax
xor bl, bl
call fcn.00416680
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x413b14
lea eax, [esp + 8]
mov dword [esp + 8], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x413b14
nop dword [eax]
lea eax, [esp + 0x234]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00456db7
add esp, 8
test eax, eax
je 0x413b12
lea eax, [esp + 8]
mov dword [esp + 8], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x413ae0
jmp 0x413b14
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x634]
mov al, bl
pop esi
pop ebx
xor ecx, esp
call fcn.00444138
add esp, 0x630
ret

Function at 0x413b40
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4a6c44]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x118
lea eax, [esp + 8]
push 0
push eax
call fcn.00447160
add esp, 0xc
mov dword [esp], 0x11c
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x413b92
lea eax, [esp]
mov dword [esp], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x413bb7
cmp dword [esp + 0x10], 2
jne 0x413bb7
cmp dword [esp + 4], 5
jbe 0x413bb7
mov al, 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00444138
add esp, 0x120
ret
mov ecx, dword [esp + 0x11c]
xor al, al
xor ecx, esp
call fcn.00444138
add esp, 0x120
ret

Function at 0x413bd0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4a6c44]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x118
lea eax, [esp + 8]
push 0
push eax
call fcn.00447160
add esp, 0xc
mov dword [esp], 0x11c
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x413c22
lea eax, [esp]
mov dword [esp], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x413c4e
cmp dword [esp + 0x10], 2
jne 0x413c4e
cmp dword [esp + 4], 5
jne 0x413c4e
cmp dword [esp + 8], 1
jne 0x413c4e
mov al, 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00444138
add esp, 0x120
ret
mov ecx, dword [esp + 0x11c]
xor al, al
xor ecx, esp
call fcn.00444138
add esp, 0x120
ret
Function at 0x413c70
Capabilities:
Get session user name

Disassembly:
sub esp, 0x608
mov eax, dword [0x4a6c44]
xor eax, esp
mov dword [esp + 0x604], eax
lea eax, [esp]
mov dword [esp], 0x200
push eax
lea eax, [esp + 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0x200
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x20c]
push eax
call fcn.00416610
lea ecx, [esp + 0x10]
add esp, 0xc
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413cc0
sub ecx, edx
lea eax, [esp + 4]
push ecx
push eax
call fcn.004154b0
add esp, 8
lea eax, [esp + 4]
mov ecx, str.SYSTEM
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x413d00
test dl, dl
je 0x413cfc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x413d00
add eax, 2
add ecx, 2
test dl, dl
jne 0x413ce0
xor eax, eax
jmp 0x413d05
sbb eax, eax
or eax, 1
mov ecx, dword [esp + 0x604]
test eax, eax
sete al
xor ecx, esp
call fcn.00444138
add esp, 0x608
ret
Function at 0x413d20
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x418
mov eax, dword [0x4a6c44]
xor eax, esp
mov dword [esp + 0x414], eax
lea eax, [esp + 0x14]
mov dword [esp], 0
mov dword [esp + 4], eax
lea eax, [esp + 8]
push eax
push 8
mov dword [esp + 0x14], 0
mov word [esp + 0x18], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x413dac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcessToken_Error__u_n
push 0x12c8
push 0x47eb88
push 0
push str.Utility::IsUserAdmin__
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x1c
xor al, al
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.00444138
add esp, 0x418
ret
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [esp + 8]
push eax
push dword [esp + 0xc]
push 0
push 2
push dword [esp + 0x20]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x413e16
call esi
cmp eax, 0x7a
je 0x413e16
push eax
push str.GetTokenInformation_Error__u_n
push 0x12d4
push 0x47eb88
push 0
push str.Utility::IsUserAdmin__
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x1c
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.00444138
add esp, 0x418
ret
push ebp
push dword [esp + 0xc]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push ebp
push 2
push dword [esp + 0x24]
call edi
test eax, eax
jne 0x413e4a
call esi
push eax
push str.GetTokenInformation_Error__u_n
push 0x12e4
jmp 0x413e80
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x413eb4
call esi
push eax
push str.AllocateAndInitializeSid_Error__u_n
push 0x12f2
push 0x47eb88
push 0
push str.Utility::IsUserAdmin__
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x1c
xor al, al
pop ebp
pop edi
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.00444138
add esp, 0x418
ret
push ebx
xor edi, edi
xor bl, bl
cmp dword [ebp], edi
jbe 0x413f3a
lea esi, [ebp + 8]
push dword [esi - 4]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x413f31
mov eax, dword [esi]
test al, 4
je 0x413efd
push str.The_group_SID_is_enabled._n
push 0x1301
push 0x47eb88
push 0
push str.Utility::IsUserAdmin__
push dword [0x4a9068]
call fcn.0040eee0
mov bl, 1
jmp 0x413f2e
test al, 0x10
je 0x413f0d
push str.The_group_SID_is_a_deny_only_SID._n
push 0x1308
jmp 0x413ee2
push str.The_group_SID_is_not_enabled._n
push 0x130f
push 0x47eb88
push 0
push str.Utility::IsUserAdmin__
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x18
inc edi
add esi, 8
cmp edi, dword [ebp]
jb 0x413ec1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x413f49
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x424]
mov al, bl
pop ebx
pop ebp
pop edi
pop esi
xor ecx, esp
call fcn.00444138
add esp, 0x418
ret
Function at 0x414040
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [0x4a6c44]
xor eax, esp
mov dword [esp + 0x400], eax
mov edx, dword [esp + 0x408]
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x418]
mov ecx, 0x200
cmp dword [esp + 0x410], ecx
push esi
cmovle ecx, dword [esp + 0x414]
push edi
mov edi, dword [esp + 0x41c]
push ecx
push eax
push edx
call fcn.00416680
lea eax, [esp + 0x18]
push 0x47f5a0
push eax
call fcn.0044fa5e
mov esi, eax
mov dword [ebx], 0
add esp, 0x14
mov dword [edi], 0
test esi, esi
je 0x414108
push 2
push 0
push esi
call fcn.00455f8c
push esi
call fcn.004574fb
push 0
push 0
push esi
mov dword [edi], eax
call fcn.00455f8c
mov eax, dword [edi]
add eax, 0xc00
push eax
call fcn.0041d9bf
push esi
mov dword [ebx], eax
push dword [edi]
push 1
push eax
call fcn.00455c28
push esi
call fcn.0044f88c
add esp, 0x34
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.00444138
add esp, 0x404
ret
mov ecx, dword [esp + 0x40c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00444138
add esp, 0x404
ret
Function at 0x416c30
Capabilities:
Check mutex on windows
Read file on windows

Disassembly:
sub esp, 0x440
mov eax, dword [0x4a6c44]
xor eax, esp
mov dword [esp + 0x43c], eax
mov eax, dword [esp + 0x444]
push ebx
mov dword [esp + 0xc], eax
mov ebx, ecx
mov eax, dword [esp + 0x44c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x450]
push ebp
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x400]
push esi
push edi
test eax, eax
je 0x416c7e
cmp eax, 2
jne 0x416db0
push 0x4a97fc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x200
lea eax, [esp + 0x50]
push eax
push str.TMCacheFileMutex
call fcn.00416680
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x416cf2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.00470f20
push eax
push esi
push str.failed_to_WaitForSingleObject_CACHE_FILE_MUTEX__error_code:__d__error:__s
push 0x40
push str.c:_rhub2codeutilitymyconfigure.cpp
push 3
push str.MyConfigure::ReadConfigure
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x24
lea esi, [ebx + 0x604]
push 0x47e2e8
push esi
call fcn.0044fa5e
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x416d4a
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x4a97fc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebx + 0x404]
push eax
push str.failed_to_open__s
push 0x4d
push str.c:_rhub2codeutilitymyconfigure.cpp
push 3
push str.MyConfigure::ReadConfigure
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x1c
xor al, al
jmp 0x416db2
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.00455681
mov eax, dword [esp + 0x38]
inc eax
push eax
call fcn.0041d9bf
push ebp
push 1
push dword [esp + 0x44]
mov esi, eax
push esi
call fcn.00455c28
push ebp
call fcn.0044f88c
push dword [esp + 0x30]
mov eax, dword [esp + 0x54]
push dword [esp + 0x38]
push dword [esp + 0x40]
mov byte [eax + esi], 0
push esi
call fcn.00413080
push esi
mov bl, al
call fcn.0041d9ba
add esp, 0x34
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x4a97fc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x416d46
mov al, 1
mov ecx, dword [esp + 0x44c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00444138
add esp, 0x440
ret 0xc
Function at 0x4170b0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x104
mov eax, dword [0x4a6c44]
xor eax, esp
mov dword [esp + 0x100], eax
push 0x100
lea eax, [esp + 4]
push eax
call sub.WS2_32.dll_gethostname
cmp eax, 0xffffffff
je 0x417144
lea eax, [esp]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x417144
mov edx, dword [eax]
push esi
mov esi, 0x4ad828
nop dword [eax]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [esi], cl
lea esi, [esi + 1]
test cl, cl
jne 0x4170f0
mov eax, dword [eax + 0xc]
pop esi
test eax, eax
je 0x41712d
mov eax, dword [eax]
test eax, eax
je 0x41712d
push dword [eax]
call sub.WS2_32.dll_inet_ntoa
mov ecx, eax
test ecx, ecx
je 0x41712d
mov edx, 0x4adaa8
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x417120
mov al, 1
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.00444138
add esp, 0x104
ret
mov ecx, dword [esp + 0x100]
xor al, al
xor ecx, esp
call fcn.00444138
add esp, 0x104
ret

Function at 0x417160
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x5c
mov eax, dword [0x4a6c44]
xor eax, esp
mov dword [esp + 0x58], eax
push esi
lea eax, [esp + 4]
push eax
push 1
push 0
push str.SoftwareMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41724e
lea eax, [esp + 8]
mov dword [esp + 8], 0x50
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push str.Build
push dword [esp + 0x18]
call esi
test eax, eax
je 0x4171d9
movq xmm0, qword [str.Not_found]
mov ax, word [0x47fc68]
movq qword [0x4ada48], xmm0
mov word [0x4ada50], ax
jmp 0x4171ed
push 0x20
lea eax, [esp + 0x10]
push 0x4ada48
push eax
call fcn.00419b10
add esp, 0xc
lea eax, [esp + 8]
mov dword [esp + 8], 0x50
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push str.Version
push dword [esp + 0x18]
call esi
test eax, eax
je 0x417230
movq xmm0, qword [str.Not_found]
mov ax, word [0x47fc68]
movq qword [0x4ada68], xmm0
mov word [0x4ada70], ax
jmp 0x417244
push 0x20
lea eax, [esp + 0x10]
push 0x4ada68
push eax
call fcn.00419b10
add esp, 0xc
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 4]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4172cc
lea eax, [esp + 8]
mov dword [esp + 8], 0x50
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push str.MinorVersion
push dword [esp + 0x18]
call esi
test eax, eax
je 0x4172ae
movq xmm0, qword [str.Not_Found]
mov ax, word [0x47fd1c]
movq qword [0x4ada88], xmm0
mov word [0x4ada90], ax
jmp 0x4172c2
push 0x20
lea eax, [esp + 0x10]
push 0x4ada88
push eax
call fcn.00419b10
add esp, 0xc
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x5c]
mov al, 1
pop esi
xor ecx, esp
call fcn.00444138
add esp, 0x5c
ret
Function at 0x417d50
Capabilities:
Get file size
Parse pe header

Disassembly:
push ebp
lea ebp, [esp - 0x4dc]
sub esp, 0x4dc
push 0xfffffffffffffffe
push 0x49a808
push 0x447b20
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4a6c44]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x4d8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0x4e4]
mov dword [ebp - 0x24], eax
mov esi, dword [ebp + 0x4e8]
xor bl, bl
mov byte [ebp - 0x19], bl
push 0x410
push 0
lea eax, [ebp]
push eax
call fcn.00447160
add esp, 0xc
mov dword [ebp - 4], 0
push 0x40e
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x417ed9
mov eax, 0x5a4d
cmp ax, word [esi]
je 0x417df2
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x417ef7
mov eax, dword [esi + 0x3c]
lea edi, [esi + eax*2]
cmp dword [edi], 0x4550
jne 0x417de4
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor eax, eax
mov word [ebp + 0x410], ax
mov dword [ebp - 0x20], eax
cmp esi, 0xffffffff
je 0x417e69
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x417e62
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
lea eax, [ebp + 0x410]
push eax
call fcn.00417fc0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x4ec]
push str.Module__d_r_n
mov ebx, dword [ebp - 0x24]
push ebx
call fcn.00419bc0
lea eax, [ebp]
push eax
push str._s_r_n
push ebx
call fcn.00419bc0
push dword [edi + 0x50]
push dword [edi + 0x34]
push str.Image_Base:_0x_08x__Image_Size:_0x_08x_r_n
push ebx
call fcn.00419bc0
push dword [edi + 8]
push dword [edi + 0x58]
push str.Checksum:___0x_08x__Time_Stamp:_0x_08x_r_n
push ebx
call fcn.00419bc0
lea eax, [ebp + 0x410]
push eax
push dword [ebp - 0x20]
push str.File_Size:____10d__File_Time:___s_r_n
push ebx
call fcn.00419bc0
add esp, 0x48
push str.Version_Information:_r_n
push ebx
call fcn.00419bc0
add esp, 8
mov bl, 1
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x417ef5
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4d8]
xor ecx, ebp
call fcn.00444138
lea esp, [ebp + 0x4dc]
pop ebp
ret