joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1023447
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x1001f106
call fcn.0102b38d
push 0x10022d34
push 0x10022d54
call dword [0x1002023c]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x102353c
or dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x14]
push eax
push esi
call dword [0x10020224]
call dword [0x10020098]
cmp dword [ebp - 0x14], eax
jne 0x102353c
push ebx
push ebx
push 0x407
push esi
call dword [0x1002022c]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, ebx
je 0x10234aa
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x1023515
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x10]
push ecx
mov byte [ebp - 4], 1
mov eax, dword [esi]
push esi
call dword [eax + 0x3c]
mov eax, dword [0x10028cd8]
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
je 0x10234ef
mov edi, ecx
cmp ecx, ebx
je 0x10234df
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov eax, dword [0x10028cd8]
cmp eax, ebx
je 0x10234e9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [0x10028cd8], edi
push ebx
push ebx
push 0x1000b43b
call fcn.01029c8f
mov dword [0x10028cb0], eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
add esp, 0xc
cmp eax, ebx
je 0x102352e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x102352e
call fcn.01023376
push ebx
push ebx
push 0x1000b43b
call fcn.01029c8f
add esp, 0xc
mov dword [0x10028cb0], eax
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x102353c
mov eax, dword [esi]
push esi
call dword [eax + 8]
call fcn.0102b42c
ret

Function at 0x108dfa0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x40da30
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 0x40da82
push str.InitializeSetup___failed
push 0x43
push str.c:_rhub2code_setuphandler_setuphandler.cpp
push 0
push str.SetupHandler::Run
push dword [0x4a9068]
call fcn.0040ee70
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 0x40da92
mov ecx, esi
call fcn.00408ac0
cmp byte [esi + 0x482b], 0
je 0x40daa6
mov ecx, esi
call fcn.00409fa0
test al, al
jne 0x40da7d
mov ecx, esi
call fcn.00409040
test al, al
je 0x40da7d
cmp byte [esi + 0x482e], 0
jne 0x40dac6
mov ecx, esi
call fcn.004082a0
pop esi
mov esp, ebp
pop ebp
ret
push 0
call fcn.0044fec3
int3

Function at 0x40e510
Capabilities:
Create thread

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

Function at 0x40e7d0
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 0x40e854
test edi, edi
je 0x40e854
lea eax, [esp + 0xc]
push eax
push esi
call fcn.004555c1
add esp, 8
test eax, eax
js 0x40e854
push 0x200
lea eax, [esp + 0x440]
mov ecx, ebx
push eax
push esi
call fcn.0040ee50
push 0x200
lea eax, [esp + 0x40]
mov ecx, ebx
push eax
push edi
call fcn.0040ee50
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 0x40e856
xor al, al
mov ecx, dword [esp + 0x83c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004440d2
add esp, 0x834
ret 8
Function at 0x411930
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.004440d2
add esp, 0x84
ret

Function at 0x411990
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 0x4119f3
test edi, edi
je 0x4119f3
lea eax, [esp + 8]
push eax
push esi
call fcn.004555c1
add esp, 8
test eax, eax
jns 0x411a0c
push esi
push str.sSourceFile___s__does_not_exist
push 0x1576
push 0x47eb50
push 0
push str.Utility::CopyMyFile__
push dword [0x4a9068]
call fcn.0040ee70
add esp, 0x1c
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x830]
xor ecx, esp
call fcn.004440d2
add esp, 0x834
ret
push 0x200
lea eax, [esp + 0x43c]
push eax
push esi
call fcn.00416610
push 0x200
lea eax, [esp + 0x48]
push eax
push edi
call fcn.00416610
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.004440d2
add esp, 0x834
ret

Function at 0x4121c0
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 0x412294
cmp byte [esi], 0
je 0x412294
push ebx
push 0x200
lea eax, [esp + 0x44]
push eax
push esi
call fcn.00416610
lea eax, [esp + 0x4c]
push 0x47e2b0
push eax
call fcn.0044f9fe
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x41226e
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.00455621
mov eax, dword [esp + 0x2c]
mov dword [edi], eax
inc eax
push eax
call fcn.0041d95f
push ebx
push 1
push dword [esp + 0x38]
mov dword [ebp], eax
push eax
call fcn.00455bc8
mov ecx, dword [ebp]
mov eax, dword [esp + 0x40]
push ebx
mov byte [eax + ecx], 0
call fcn.0044f82c
add esp, 0x20
jmp 0x412293
push esi
push str.Failed_to_open_sFileName__s
push 0x1486
push 0x47eb50
push 0
push str.Utility::GetFileData__
push dword [0x4a9068]
call fcn.0040ee70
add esp, 0x1c
pop ebx
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004440d2
add esp, 0x434
ret
Function at 0x413a10
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.00416610
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x413aa4
lea eax, [esp + 8]
mov dword [esp + 8], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x413aa4
nop dword [eax]
lea eax, [esp + 0x234]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00456d57
add esp, 8
test eax, eax
je 0x413aa2
lea eax, [esp + 8]
mov dword [esp + 8], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x413a70
jmp 0x413aa4
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.004440d2
add esp, 0x630
ret

Function at 0x413ad0
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.00447100
add esp, 0xc
mov dword [esp], 0x11c
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x413b22
lea eax, [esp]
mov dword [esp], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x413b47
cmp dword [esp + 0x10], 2
jne 0x413b47
cmp dword [esp + 4], 5
jbe 0x413b47
mov al, 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004440d2
add esp, 0x120
ret
mov ecx, dword [esp + 0x11c]
xor al, al
xor ecx, esp
call fcn.004440d2
add esp, 0x120
ret

Function at 0x413b60
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.00447100
add esp, 0xc
mov dword [esp], 0x11c
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x413bb2
lea eax, [esp]
mov dword [esp], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x413bde
cmp dword [esp + 0x10], 2
jne 0x413bde
cmp dword [esp + 4], 5
jne 0x413bde
cmp dword [esp + 8], 1
jne 0x413bde
mov al, 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004440d2
add esp, 0x120
ret
mov ecx, dword [esp + 0x11c]
xor al, al
xor ecx, esp
call fcn.004440d2
add esp, 0x120
ret
Function at 0x413c00
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.004165a0
lea ecx, [esp + 0x10]
add esp, 0xc
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413c50
sub ecx, edx
lea eax, [esp + 4]
push ecx
push eax
call fcn.00415440
add esp, 8
lea eax, [esp + 4]
mov ecx, str.SYSTEM
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x413c90
test dl, dl
je 0x413c8c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x413c90
add eax, 2
add ecx, 2
test dl, dl
jne 0x413c70
xor eax, eax
jmp 0x413c95
sbb eax, eax
or eax, 1
mov ecx, dword [esp + 0x604]
test eax, eax
sete al
xor ecx, esp
call fcn.004440d2
add esp, 0x608
ret
Function at 0x413cb0
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 0x413d3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcessToken_Error__u_n
push 0x12c8
push 0x47eb50
push 0
push str.Utility::IsUserAdmin__
push dword [0x4a9068]
call fcn.0040ee70
add esp, 0x1c
xor al, al
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004440d2
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 0x413da6
call esi
cmp eax, 0x7a
je 0x413da6
push eax
push str.GetTokenInformation_Error__u_n
push 0x12d4
push 0x47eb50
push 0
push str.Utility::IsUserAdmin__
push dword [0x4a9068]
call fcn.0040ee70
add esp, 0x1c
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004440d2
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 0x413dda
call esi
push eax
push str.GetTokenInformation_Error__u_n
push 0x12e4
jmp 0x413e10
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 0x413e44
call esi
push eax
push str.AllocateAndInitializeSid_Error__u_n
push 0x12f2
push 0x47eb50
push 0
push str.Utility::IsUserAdmin__
push dword [0x4a9068]
call fcn.0040ee70
add esp, 0x1c
xor al, al
pop ebp
pop edi
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004440d2
add esp, 0x418
ret
push ebx
xor edi, edi
xor bl, bl
cmp dword [ebp], edi
jbe 0x413eca
lea esi, [ebp + 8]
push dword [esi - 4]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x413ec1
mov eax, dword [esi]
test al, 4
je 0x413e8d
push str.The_group_SID_is_enabled._n
push 0x1301
push 0x47eb50
push 0
push str.Utility::IsUserAdmin__
push dword [0x4a9068]
call fcn.0040ee70
mov bl, 1
jmp 0x413ebe
test al, 0x10
je 0x413e9d
push str.The_group_SID_is_a_deny_only_SID._n
push 0x1308
jmp 0x413e72
push str.The_group_SID_is_not_enabled._n
push 0x130f
push 0x47eb50
push 0
push str.Utility::IsUserAdmin__
push dword [0x4a9068]
call fcn.0040ee70
add esp, 0x18
inc edi
add esi, 8
cmp edi, dword [ebp]
jb 0x413e51
mov eax, dword [esp + 0x14]
test eax, eax
je 0x413ed9
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.004440d2
add esp, 0x418
ret
Function at 0x413fd0
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.00416610
lea eax, [esp + 0x18]
push 0x47f568
push eax
call fcn.0044f9fe
mov esi, eax
mov dword [ebx], 0
add esp, 0x14
mov dword [edi], 0
test esi, esi
je 0x414098
push 2
push 0
push esi
call fcn.00455f2c
push esi
call fcn.0045749b
push 0
push 0
push esi
mov dword [edi], eax
call fcn.00455f2c
mov eax, dword [edi]
add eax, 0xc00
push eax
call fcn.0041d95f
push esi
mov dword [ebx], eax
push dword [edi]
push 1
push eax
call fcn.00455bc8
push esi
call fcn.0044f82c
add esp, 0x34
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.004440d2
add esp, 0x404
ret
mov ecx, dword [esp + 0x40c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004440d2
add esp, 0x404
ret
Function at 0x416bc0
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 0x416c0e
cmp eax, 2
jne 0x416d40
push 0x4a97fc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x200
lea eax, [esp + 0x50]
push eax
push str.TMCacheFileMutex
call fcn.00416610
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 0x416c82
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.00470ed0
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.0040ee70
add esp, 0x24
lea esi, [ebx + 0x604]
push 0x47e2b0
push esi
call fcn.0044f9fe
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x416cda
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.0040ee70
add esp, 0x1c
xor al, al
jmp 0x416d42
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.00455621
mov eax, dword [esp + 0x38]
inc eax
push eax
call fcn.0041d95f
push ebp
push 1
push dword [esp + 0x44]
mov esi, eax
push esi
call fcn.00455bc8
push ebp
call fcn.0044f82c
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.00413010
push esi
mov bl, al
call fcn.0041d95a
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 0x416cd6
mov al, 1
mov ecx, dword [esp + 0x44c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004440d2
add esp, 0x440
ret 0xc
Function at 0x417040
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 0x4170d4
lea eax, [esp]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4170d4
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 0x417080
mov eax, dword [eax + 0xc]
pop esi
test eax, eax
je 0x4170bd
mov eax, dword [eax]
test eax, eax
je 0x4170bd
push dword [eax]
call sub.WS2_32.dll_inet_ntoa
mov ecx, eax
test ecx, ecx
je 0x4170bd
mov edx, 0x4adaa8
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4170b0
mov al, 1
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.004440d2
add esp, 0x104
ret
mov ecx, dword [esp + 0x100]
xor al, al
xor ecx, esp
call fcn.004440d2
add esp, 0x104
ret

Function at 0x4170f0
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 0x4171de
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 0x417169
movq xmm0, qword [str.Not_found]
mov ax, word [0x47fc30]
movq qword [0x4ada48], xmm0
mov word [0x4ada50], ax
jmp 0x41717d
push 0x20
lea eax, [esp + 0x10]
push 0x4ada48
push eax
call fcn.00419ab0
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 0x4171c0
movq xmm0, qword [str.Not_found]
mov ax, word [0x47fc30]
movq qword [0x4ada68], xmm0
mov word [0x4ada70], ax
jmp 0x4171d4
push 0x20
lea eax, [esp + 0x10]
push 0x4ada68
push eax
call fcn.00419ab0
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 0x41725c
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 0x41723e
movq xmm0, qword [str.Not_Found]
mov ax, word [0x47fce4]
movq qword [0x4ada88], xmm0
mov word [0x4ada90], ax
jmp 0x417252
push 0x20
lea eax, [esp + 0x10]
push 0x4ada88
push eax
call fcn.00419ab0
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.004440d2
add esp, 0x5c
ret
Function at 0x417ce0
Capabilities:
Get file size
Parse pe header

Disassembly:
push ebp
lea ebp, [esp - 0x4dc]
sub esp, 0x4dc
push 0xfffffffffffffffe
push 0x49a7c0
push 0x447ac0
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.00447100
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 0x417e69
mov eax, 0x5a4d
cmp ax, word [esi]
je 0x417d82
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x417e87
mov eax, dword [esi + 0x3c]
lea edi, [esi + eax*2]
cmp dword [edi], 0x4550
jne 0x417d74
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 0x417df9
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 0x417df2
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
lea eax, [ebp + 0x410]
push eax
call fcn.00417f50
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.00419b60
lea eax, [ebp]
push eax
push str._s_r_n
push ebx
call fcn.00419b60
push dword [edi + 0x50]
push dword [edi + 0x34]
push str.Image_Base:_0x_08x__Image_Size:_0x_08x_r_n
push ebx
call fcn.00419b60
push dword [edi + 8]
push dword [edi + 0x58]
push str.Checksum:___0x_08x__Time_Stamp:_0x_08x_r_n
push ebx
call fcn.00419b60
lea eax, [ebp + 0x410]
push eax
push dword [ebp - 0x20]
push str.File_Size:____10d__File_Time:___s_r_n
push ebx
call fcn.00419b60
add esp, 0x48
push str.Version_Information:_r_n
push ebx
call fcn.00419b60
add esp, 8
mov bl, 1
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x417e85
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.004440d2
lea esp, [ebp + 0x4dc]
pop ebp
ret