joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41593c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x819354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040c00a
and dword [ebp - 0x14], 0
cmp dword [0x81b904], 0
mov dword [ebp - 0x18], eax
jne 0x4159ef
push 0x403adc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x415a97
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403ad0
push ebx
call edi
test eax, eax
je 0x415a97
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403ac0
push ebx
mov dword [0x81b904], eax
call edi
push eax
call esi
push 0x403aac
push ebx
mov dword [0x81b908], eax
call edi
push eax
call esi
push 0x403a90
push ebx
mov dword [0x81b90c], eax
call edi
push eax
call esi
mov dword [0x81b914], eax
test eax, eax
je 0x4159ef
push 0x403a78
push ebx
call edi
push eax
call esi
mov dword [0x81b910], eax
mov eax, dword [0x81b910]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x415a48
cmp dword [0x81b914], ecx
je 0x415a48
push eax
call esi
push dword [0x81b914]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x415a48
test ebx, ebx
je 0x415a48
call edi
test eax, eax
je 0x415a3f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x415a3f
test byte [ebp - 8], 1
jne 0x415a48
or dword [ebp + 0x10], 0x200000
jmp 0x415a7b
mov eax, dword [0x81b908]
cmp eax, dword [ebp - 0x18]
je 0x415a7b
push eax
call esi
test eax, eax
je 0x415a7b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x415a7b
mov eax, dword [0x81b90c]
cmp eax, dword [ebp - 0x18]
je 0x415a7b
push eax
call esi
test eax, eax
je 0x415a7b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x81b904]
call esi
test eax, eax
je 0x415a97
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x415a99
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409f7b
leave
ret
Function at 0x404610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfe06
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x508274]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x4046bc
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x4046bc
call fcn.004037e0
mov edi, eax
jmp 0x4047db
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4046df
call fcn.004037e0
jmp 0x4047ce
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x4046fd
call fcn.004037e0
jmp 0x4047ce
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x40471e
mov edi, 0x8007000e
jmp 0x4047d0
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x404814
jb 0x40473c
cmp eax, 0xffffffff
ja 0x404814
cmp eax, 0x400
jbe 0x404751
push eax
lea ecx, [ebp - 0x418]
call fcn.00403660
jmp 0x404777
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x404777
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x40478e
mov edi, 0x8007000e
jmp 0x4047d0
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4047ae
call fcn.004037e0
jmp 0x4047ce
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00404470
mov edi, eax
test esi, esi
je 0x4047db
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4047f4
lea ecx, [ebp - 0x418]
call fcn.00403b20
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00473600
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00403820
int3
Function at 0x407490
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0117
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x508274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x4dddc0
mov dword [ebp - 0x14], edi
mov dword [edi + 0x50], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
push 0
push 0
lea esi, [edi + 4]
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x10], 1
call fcn.00407010
mov eax, dword [edi]
push 8
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + edi - 4], eax
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00472ea3
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40753a
push 1
mov byte [ebp - 4], 2
call fcn.0041f353
add esp, 4
mov dword [ebx + 4], eax
jmp 0x40753c
xor ebx, ebx
lea eax, [esi + 4]
mov dword [esi + 0x34], ebx
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov dword [esi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b070
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0856
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x508274]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push 0x20a
push 0
push eax
call fcn.0047c870
push esi
push 0x4ddf14
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x21c]
push str.curlnet.dll
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.0040a750
mov ecx, eax
test ecx, ecx
je 0x40b23c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x40b123
movzx eax, ax
lea ecx, [ebp - 0x220]
push eax
call fcn.0040b680
jmp 0x40b152
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b130
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.0040d470
mov dword [ebp - 4], 1
call fcn.0040a620
mov esi, dword [ebp - 0x220]
mov ebx, eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b1f7
push esi
call fcn.00418b50
add esp, 4
test eax, eax
je 0x40b1f7
cmp dword [ebx], 0
jne 0x40b1e1
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx], eax
test eax, eax
je 0x40b1f7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CurlInit
push eax
call edi
push str.CurlUninit
push dword [ebx]
mov dword [ebx + 4], eax
call edi
push str.zlib_uncompress
push dword [ebx]
mov dword [ebx + 8], eax
call edi
push str.zlib_compress
push dword [ebx]
mov dword [ebx + 0x10], eax
call edi
push str.zlib_compressBound
push dword [ebx]
mov dword [ebx + 0x14], eax
call edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x40b1e1
call eax
mov dword [ebx + 0xc], eax
cmp dword [ebx + 8], 0
je 0x40b1f7
cmp dword [ebx + 4], 0
je 0x40b1f7
cmp dword [ebx + 0xc], 0
je 0x40b1f7
xor ebx, ebx
jmp 0x40b1fc
mov ebx, 1
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40b21b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00473600
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403820
int3
Function at 0x40da20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40da79
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40da79
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40da6a
cmp esi, edx
jae 0x40da79
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40da58
cmp esi, edx
jae 0x40da79
cmp word [esi], 0
je 0x40da79
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40ea50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0e98
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x508274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 0x1c], 0
jne 0x40ebf8
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x40eaba
push dword [ebp + 0x14]
mov dword [esi + 0x24], eax
call fcn.0040c220
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
cmp dword [esi + 0x24], 0
je 0x40ebf8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x113
jne 0x40eafb
push dword [ebp + 0x10]
mov dword [esi + 0x24], 1
call fcn.0040c920
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp dword [esi + 0x24], 0
je 0x40ebf8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x10
jne 0x40eb2a
mov eax, dword [esi + 0x28]
mov dword [esi + 0x24], 1
cmp dword [eax - 0xc], 0
je 0x40eb17
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x40ead0
cmp eax, 0x1417
jne 0x40eb4c
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x1417
call fcn.0040c620
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jmp 0x40eae3
cmp eax, 0x1419
jne 0x40ebf8
call fcn.0040a750
mov ecx, eax
test ecx, ecx
je 0x40ec0d
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, eax
lea ecx, [edi + 0x10]
mov dword [ebp + 0x14], ecx
push dword [esi + 0x34]
mov dword [ebp - 4], 0
call fcn.00414ff0
add esp, 4
test al, al
je 0x40eba2
mov ecx, esi
call fcn.0040ccd0
mov ecx, esi
call fcn.0040b830
mov ecx, esi
test al, al
je 0x40ebdb
call fcn.004095c0
push 0
push 0
push 0x10
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40ebcd
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
jmp 0x40eae3
call fcn.0040aaf0
push 0
test al, al
jne 0x40eba4
push 0x2710
push 0x65
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x40ebb1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
push 0x80004005
call fcn.00403820
int3
Function at 0x411530
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x508274]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x4115d1
cmp byte [esi + 0x3d], 0
je 0x4115d1
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x411587
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x411599
sub eax, 1
je 0x41159d
sub eax, 2
je 0x4115d1
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00473600
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4115ba
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0049b5fc
add esp, 0x10
cmp edi, eax
jne 0x411587
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00473600
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00473600
mov esp, ebp
pop ebp
ret
Function at 0x416f10
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d17bf
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x508274]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
push 0x180
push 0x40
push 0x8101
push ebx
push edi
mov dword [ebp - 0x2c], 0
call fcn.0049dd49
add esp, 0x14
mov dword [ebp - 0x30], eax
test eax, eax
je 0x417121
mov dword [ebp - 0xcc], 0x4dddc0
mov dword [ebp - 0x7c], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
push 0
push 0
lea eax, [ebp - 0xc8]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0x2c], 1
call fcn.00407010
mov eax, dword [ebp - 0xcc]
push 8
mov dword [ebp - 4], 1
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xcc], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xcc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xd0], eax
mov dword [ebp - 0xc8], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00472ea3
mov esi, eax
add esp, 4
test esi, esi
je 0x416ffb
push 1
mov byte [ebp - 4], 2
call fcn.0041f353
add esp, 4
mov dword [esi + 4], eax
jmp 0x416ffd
xor esi, esi
lea eax, [ebp - 0xc4]
mov dword [ebp - 0x94], esi
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xc8], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 4
push 0x4e0b80
push dword [ebp - 0x30]
lea eax, [ebp - 0xcc]
mov dword [ebp - 4], 3
push str._error.__
push ebx
push 0x4e0b9c
push eax
call fcn.00406240
add esp, 8
push eax
call fcn.00406240
add esp, 8
push eax
call fcn.00406240
add esp, 8
mov ecx, eax
call fcn.00408530
push eax
call fcn.00406240
add esp, 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xcc]
push eax
call fcn.00417210
cmp dword [eax + 0x14], 8
jb 0x417107
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x28]
call fcn.00407ea0
lea ecx, [ebp - 0xcc]
call fcn.00408b90
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x417137
push 2
push 0
push eax
call fcn.0049e3a9
add esp, 0xc
jmp 0x41713a
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00473600
mov esp, ebp
pop ebp
ret 4
Function at 0x417480
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x508274]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 8], 0
je 0x4174a7
call fcn.00417160
mov byte [esi + 8], 0
cmp dword [esi + 4], 0x40000000
jle 0x4174e3
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
je 0x4174c8
push eax
call fcn.0049defc
add esp, 4
mov dword [esi + 0x24], 0xffffffff
cmp dword [esi + 0x20], 8
lea eax, [esi + 0xc]
jb 0x4174d3
mov eax, dword [eax]
push eax
call fcn.0049cf5f
add esp, 4
mov ecx, esi
call fcn.00417160
push 0xfde9
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.004172d0
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x417500
mov eax, dword [eax]
mov ecx, dword [esi + 0x24]
cmp ecx, 0xffffffff
je 0x417517
push edx
push eax
push ecx
call fcn.0049e9e4
add esp, 0xc
mov ebx, eax
jmp 0x41751a
or ebx, 0xffffffff
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x41754a
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x417540
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417586
push edx
push ecx
call fcn.00472ed3
add esp, 8
test ebx, ebx
jle 0x417564
add dword [esi + 4], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00473600
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x14], 8
jb 0x41756c
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00473600
mov esp, ebp
pop ebp
ret 4
call fcn.004868f6
int3
Function at 0x41bba0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1fc1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x508274]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], 0
mov dword [edi], 0
call fcn.0040a750
mov ecx, eax
test ecx, ecx
je 0x41bd34
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 1
push eax
push 0xf003f
push 0
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41bcf5
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 0
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x18], xmm0
push eax
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41bce7
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x41bcf5
add eax, 0x10
push 0x50adb8
push eax
mov dword [ebp - 0x20], eax
call fcn.004735f7
mov esi, eax
add esp, 8
test esi, esi
je 0x41bcf5
push dword [ebp - 0x20]
push 0
push esi
call fcn.0047c870
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x41bcaa
push esi
call fcn.00472ee1
add esp, 4
jmp 0x41bcf5
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41bcb0
sub ecx, edx
sar ecx, 1
je 0x41bcde
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41bcc6
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.0040d470
push esi
call fcn.00472ee1
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41bcf5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41bd14
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00473600
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00403820
int3
Function at 0x41bd40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x508274]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, edi
mov dword [ebp - 0xc], eax
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41bd64
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
sub esi, edx
push ecx
sar esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x41bdc6
lea eax, [esi*2 + 2]
push eax
push edi
push 1
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb ebx, ebx
mov eax, dword [ebp - 8]
inc ebx
test eax, eax
je 0x41bdc6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x41bde1
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00473600
mov esp, ebp
pop ebp
ret 0x10