joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b9a5
Capabilities:
Read .ini file

Disassembly:
push 0x3c
mov eax, 0x47aebf
call fcn.00478470
mov edi, ecx
mov esi, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], ecx
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
push ecx
xor ebx, ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x18], ecx
xor eax, eax
inc ebx
mov dword [ebp - 0x14], 7
push 0xa000
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], ebx
mov word [ebp - 0x28], ax
call fcn.0040b95a
cmp dword [edi + 0x14], 8
mov dword [ebp - 4], ebx
jb 0x40b9f8
mov edi, dword [edi]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
push 0x48090c
lea ecx, [ebp - 0x40]
mov ebx, eax
call fcn.004019d1
xor eax, eax
mov byte [ebp - 4], 2
mov edi, eax
test ebx, ebx
je 0x40ba94
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x40]
cmovae eax, dword [ebp - 0x28]
movzx eax, word [eax + edi*2]
push eax
call fcn.0040bb8c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
cmp word [eax + edi*2], cx
jne 0x40ba8f
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x40ba69
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.0040558f
jmp 0x40ba75
lea ecx, [ebp - 0x40]
push ecx
push eax
mov ecx, esi
call fcn.004055b1
push 0x48090c
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push eax
push 0x48090c
lea ecx, [ebp - 0x40]
call fcn.00401f9a
inc edi
cmp edi, ebx
jb 0x40ba29
lea ecx, [ebp - 0x40]
call fcn.00401ef9
lea ecx, [ebp - 0x28]
call fcn.00401ef9
mov eax, esi
call fcn.0047842b
ret 4

Function at 0x40baae
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47aefa
mov eax, dword fs:[0]
push eax
mov eax, 0x4038
call fcn.00478630
mov eax, dword [0x4dbf24]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0x14], 8
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x4044], esi
jb 0x40baf5
mov ecx, dword [ecx]
cmp dword [edx + 0x14], 8
jb 0x40bafd
mov edx, dword [edx]
cmp dword [eax + 0x14], 8
jb 0x40bb05
mov eax, dword [eax]
push ecx
push 0x2000
lea ecx, [ebp - 0x4010]
push ecx
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x4010]
push eax
lea ecx, [ebp - 0x4028]
call fcn.004019d1
and dword [ebp - 4], 0
lea eax, [ebp - 0x4028]
push eax
lea eax, [ebp - 0x4040]
push eax
call fcn.0040dcac
pop ecx
pop ecx
lea ecx, [ebp - 0x4028]
mov byte [ebp - 4], 2
call fcn.00401ef9
lea eax, [ebp - 0x4040]
push eax
push esi
call fcn.00405478
pop ecx
pop ecx
lea ecx, [ebp - 0x4040]
call fcn.00401ed3
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00478405
leave
ret 0xc
Function at 0x40be44
Capabilities:
Print debug messages

Disassembly:
push 0xec
mov eax, 0x47af68
call fcn.00478470
mov ebx, ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
test eax, eax
jle 0x40be90
lea ecx, [edi + eax*2]
movzx edx, word [ecx]
cmp edx, 0x2f
je 0x40be8d
cmp edx, 0x5c
je 0x40be8d
dec eax
sub ecx, 2
test eax, eax
jg 0x40be76
jmp 0x40be90
lea edi, [ecx + 2]
push 1
push 3
lea ecx, [ebp - 0xf8]
call fcn.00403264
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x18]
call fcn.0040b783
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.0040bda6
mov esi, eax
mov dword [esp], 0x4814f4
lea eax, [ebp - 0x28]
push eax
push 0x4819cc
push dword [ebp - 0x44]
mov ecx, ebx
mov byte [ebp - 4], 2
push 0x481284
push edi
push 0x480d04
push dword [ebp - 0x48]
call fcn.0040be1c
movzx eax, ax
push eax
push 0x4819d0
push esi
lea eax, [ebp - 0xe8]
push 0x4819d8
push eax
call fcn.004028fc
pop ecx
pop ecx
push eax
call fcn.0040556f
pop ecx
pop ecx
push eax
call fcn.004028fc
pop ecx
pop ecx
push eax
call fcn.0040bbf6
pop ecx
pop ecx
push eax
call fcn.004028fc
pop ecx
pop ecx
push eax
call fcn.004028fc
pop ecx
pop ecx
push eax
call fcn.004028fc
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int_]
push eax
call fcn.004028fc
pop ecx
pop ecx
push eax
call fcn.0040556f
pop ecx
pop ecx
push eax
call fcn.004028fc
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
call fcn.00401ef9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00401ef9
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xe0]
call fcn.0040b783
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x28]
call fcn.00401ef9
lea esi, [ebx + 0x24]
cmp dword [esi], 0
je 0x40bff7
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xe0]
call fcn.0040b783
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040545a
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
call fcn.00401ef9
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00407ab0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x40bfef
call fcn.00406e4f
lea ecx, [ebp - 0x28]
call fcn.00401ed3
lea ecx, [ebp - 0x90]
call fcn.004033bd
lea ecx, [ebp - 0x90]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
call fcn.0047842b
ret 0x14
Function at 0x41482f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4dbf24]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x4148b3
cmp byte [esi + 0x3d], 0
je 0x4148b3
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x414884
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x414888
sub eax, 1
je 0x41488c
dec eax
sub eax, 1
je 0x4148b3
xor al, al
jmp 0x4148b5
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4148aa
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x414884
cmp byte [esi + 0x3d], 0
sete al
jmp 0x4148b5
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00478405
leave
ret
Function at 0x414a84
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x6c
mov eax, 0x47c3ee
call fcn.00478470
mov esi, ecx
push 0x480904
lea ecx, [ebp - 0x44]
call fcn.004019a2
xor edi, edi
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.00403c2e
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [esi + 4]
mov dword [esi], eax
call fcn.00401b07
lea ecx, [ebp - 0x28]
call fcn.00401ed3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00401ed3
lea ebx, [esi + 0x1c]
cmp dword [ebx], edi
lea edi, [esi + 0x20]
je 0x414b40
cmp dword [edi], 0
je 0x414b40
push str.Cryptographic_provider_already_acquired_
lea ecx, [ebp - 0x44]
call fcn.004019a2
xor eax, eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x44]
push eax
call fcn.00403c2e
mov eax, dword [ebp - 0x2c]
lea ecx, [esi + 4]
mov dword [esi], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00401b07
lea ecx, [ebp - 0x28]
call fcn.00401ed3
lea ecx, [ebp - 0x44]
call fcn.00401ed3
xor al, al
jmp 0x414bf8
mov eax, dword [esi + 0x24]
push 0xf0000020
push 1
push 0
push 0
push ebx
mov dword [esi + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x414b80
push str.Failed_to_acquire_cryptographic_context.
lea ecx, [ebp - 0x44]
call fcn.004019a2
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
jmp 0x414b09
push edi
xor edi, edi
push edi
push edi
push 0x8003
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x414bf6
push str.Failed_to_acquire_cryptographic_context.
lea ecx, [ebp - 0x78]
call fcn.004019a2
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x5c]
lea eax, [ebp - 0x78]
mov dword [ebp - 0x4c], edi
push eax
mov dword [ebp - 0x48], edi
call fcn.00403c2e
mov eax, dword [ebp - 0x60]
lea ecx, [esi + 4]
mov dword [esi], eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00401b07
lea ecx, [ebp - 0x5c]
call fcn.00401ed3
lea ecx, [ebp - 0x78]
call fcn.00401ed3
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebx], edi
jmp 0x414b39
mov al, 1
call fcn.0047842b
ret
Function at 0x415d53
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4dbf24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x415d79
xor eax, eax
jmp 0x415e34
mov eax, dword [esi + 0x20]
cmp dword [eax], 0
je 0x415d9b
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, dword [eax]
cmp dword [eax], edx
jae 0x415d9b
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov byte [eax], bl
mov eax, ebx
jmp 0x415e34
cmp dword [esi + 0x4c], 0
je 0x415e32
call fcn.0041497d
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x415dc5
push dword [esi + 0x4c]
push eax
call fcn.00413208
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x415e32
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x415e32
cmp eax, 1
jle 0x415e00
cmp eax, 3
jne 0x415e32
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x415db7
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x415e24
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x30], eax
jne 0x415e32
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, ebx
jne 0x415e34
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00478405
leave
ret 4
Function at 0x416e84
Capabilities:
Hash data via wincrypt

Disassembly:
push 0x6c
mov eax, 0x47ca5d
call fcn.00478470
mov esi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x44]
push 0x480904
call fcn.004019a2
xor eax, eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x44]
push eax
call fcn.00403c2e
mov eax, dword [ebp - 0x2c]
lea edi, [esi + 4]
mov dword [esi], eax
mov ecx, edi
lea eax, [ebp - 0x28]
push eax
call fcn.00401b07
lea ecx, [ebp - 0x28]
call fcn.00401ed3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00401ed3
cmp dword [esi + 0x1c], 0
je 0x416f54
cmp dword [esi + 0x20], 0
je 0x416f54
push 0
push dword [ebp + 0xc]
push ebx
push dword [esi + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x416f50
push str.Updating_hash_failed_
lea ecx, [ebp - 0x78]
call fcn.004019a2
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x5c]
and dword [ebp - 0x48], 0
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x78]
push eax
call fcn.00403c2e
mov eax, dword [ebp - 0x60]
mov ecx, edi
mov dword [esi], eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00401b07
lea ecx, [ebp - 0x5c]
call fcn.00401ed3
lea ecx, [ebp - 0x78]
jmp 0x416f9a
mov al, 1
jmp 0x416fa1
push str.Cryptographic_provider_not_acquired_
lea ecx, [ebp - 0x44]
call fcn.004019a2
xor eax, eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x44]
push eax
call fcn.00403c2e
mov eax, dword [ebp - 0x2c]
mov ecx, edi
mov dword [esi], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00401b07
lea ecx, [ebp - 0x28]
call fcn.00401ed3
lea ecx, [ebp - 0x44]
call fcn.00401ed3
xor al, al
call fcn.0047842b
ret 8
Function at 0x4170cf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x4170f2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
jmp 0x4171aa
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x417113
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x417115
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x41719e
jg 0x417128
test esi, esi
je 0x41719e
test ecx, ecx
jl 0x41716a
jg 0x417132
test eax, eax
je 0x41716a
cmp ebx, ecx
jg 0x417144
jl 0x41713c
cmp esi, eax
jae 0x417144
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x417170
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x41719e
jg 0x41717a
test esi, esi
je 0x41719e
cmp dword [edi + 0x4c], 0
je 0x41719e
mov ecx, edi
call fcn.0041497d
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
leave
ret 0xc
Function at 0x4171af
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4171d2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
jmp 0x417280
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x4171f3
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x4171f5
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x417274
jg 0x417208
test esi, esi
je 0x417274
test ecx, ecx
jl 0x41724c
jg 0x417212
test eax, eax
je 0x41724c
cmp edi, ecx
jg 0x417224
jl 0x41721c
cmp esi, eax
jae 0x417224
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x41724f
mov edx, dword [ebp + 8]
test edi, edi
jl 0x417274
jg 0x417259
test esi, esi
je 0x417274
cmp dword [ebx + 0x4c], 0
je 0x417274
push dword [ebx + 0x4c]
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41adf5
Capabilities:
Create directory

Disassembly:
push 0xac
mov eax, 0x47d5aa
call fcn.00478470
lea edi, [ecx + 0x80]
push 0x480c70
lea eax, [ebp - 0xb8]
push edi
push eax
call fcn.00402ae9
and dword [ebp - 4], 0
push 0x4826d4
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00402ac2
add esp, 0x18
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 2
call fcn.00401ef9
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, str.operaprefs.ini
lea eax, [ebp - 0x28]
push ebx
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00402ae9
add esp, 0xc
push eax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 3
call fcn.00405963
mov esi, eax
push ebx
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push edi
push eax
call fcn.00402ae9
add esp, 0xc
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 5
call fcn.00405963
push 1
push esi
push eax
mov byte [ebp - 4], 6
call fcn.00407cc2
add esp, 0xc
lea ecx, [ebp - 0x64]
call fcn.00403e8f
lea ecx, [ebp - 0x7c]
call fcn.00401ef9
lea ecx, [ebp - 0x40]
call fcn.00401ef9
lea ecx, [ebp - 0x88]
call fcn.00403e8f
lea ecx, [ebp - 0xa0]
call fcn.00401ef9
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.00401ef9
mov ebx, str._search.ini
lea eax, [ebp - 0x28]
push ebx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00402ae9
add esp, 0xc
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 7
call fcn.00405963
mov esi, eax
push ebx
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 8
push edi
push eax
call fcn.00402ae9
add esp, 0xc
push eax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 9
call fcn.00405963
push 1
push esi
push eax
mov byte [ebp - 4], 0xa
call fcn.00407cc2
add esp, 0xc
lea ecx, [ebp - 0x88]
call fcn.00403e8f
lea ecx, [ebp - 0xa0]
call fcn.00401ef9
lea ecx, [ebp - 0x58]
call fcn.00401ef9
lea ecx, [ebp - 0x64]
call fcn.00403e8f
lea ecx, [ebp - 0x7c]
call fcn.00401ef9
lea ecx, [ebp - 0x40]
call fcn.00401ef9
lea ecx, [ebp - 0x28]
call fcn.00401ef9
call fcn.0047842b
ret
Function at 0x41b780
Capabilities:
Enumerate processes
Get process image filename

Disassembly:
push 0x4b8
mov eax, 0x47d7a9
call fcn.00478470
mov dword [ebp - 0x4b8], ecx
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 0x4b4], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x41b96a
lea eax, [ebp - 0x4b0]
mov dword [ebp - 0x4b0], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x41b95b
push dword [ebp - 0x4a8]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x41b94e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameW
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.004019d1
mov ecx, dword [ebp - 0x4b8]
lea eax, [ebp - 0x248]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.0041bf72
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
call fcn.00405963
lea ecx, [ebp - 0x284]
call fcn.00401ef9
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 4
call fcn.00401ef9
push 0x40
call fcn.00478137
pop ecx
mov dword [ebp - 0x4c4], eax
test eax, eax
je 0x41b8c0
and dword [ebp - 0x220], 0
xor ecx, ecx
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], cx
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 6
push ecx
lea ecx, [ebp - 0x26c]
or ebx, 1
push ecx
push dword [ebp - 0x4a8]
mov ecx, eax
mov dword [ebp - 0x4b4], ebx
call fcn.0041b67d
jmp 0x41b8c2
xor eax, eax
push dword [ebp - 0x4c4]
and dword [ebp - 0x4c0], 0
lea ecx, [ebp - 0x4c0]
and dword [ebp - 0x4bc], 0
push eax
mov dword [ebp - 4], 7
call fcn.0041b61e
mov dword [ebp - 4], 9
test bl, 1
je 0x41b909
and ebx, 0xfffffffe
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x4b4], ebx
call fcn.00401ef9
mov ecx, dword [ebp - 0x4b8]
lea eax, [ebp - 0x4c0]
push eax
lea ecx, [ecx + 4]
call fcn.0040fceb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x4bc]
test ecx, ecx
je 0x41b934
call fcn.00403d1b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x254]
call fcn.00403e8f
lea ecx, [ebp - 0x26c]
call fcn.00401ef9
lea eax, [ebp - 0x4b0]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41b7cc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0047842b
ret
Function at 0x41b970
Capabilities:
Get process image filename

Disassembly:
push 0x290
mov eax, 0x47d82f
call fcn.00478470
mov esi, ecx
mov dword [ebp - 0x288], esi
xor ebx, ebx
mov dword [ebp - 0x28c], ebx
cmp dword [esi + 0x10], ebx
jne 0x41b9b6
push str.NtQuerySystemInformation
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x10], eax
test eax, eax
je 0x41bba4
push 4
push 0x3000
push 0x100000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov dword [ebp - 0x298], esi
test esi, esi
je 0x41bba4
mov eax, dword [ebp - 0x288]
mov edi, esi
push 0
push 0x100000
push esi
push 5
call dword [eax + 0x10]
test eax, eax
js 0x41bb96
cmp dword [esi], ebx
je 0x41bb96
mov esi, dword [ebp - 0x288]
push dword [edi + 0x44]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x288], eax
test eax, eax
je 0x41bb85
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [ebp - 0x288]
call sub.PSAPI.DLL_GetProcessImageFileNameW
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.004019d1
and dword [ebp - 4], 0
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x284]
mov ecx, esi
push eax
call fcn.0041bf72
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
call fcn.00405963
lea ecx, [ebp - 0x284]
call fcn.00401ef9
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 4
call fcn.00401ef9
push 0x40
call fcn.00478137
pop ecx
mov dword [ebp - 0x29c], eax
test eax, eax
je 0x41baf8
and dword [ebp - 0x220], 0
xor ecx, ecx
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], cx
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 6
push ecx
lea ecx, [ebp - 0x26c]
or ebx, 1
push ecx
push dword [edi + 0x44]
mov ecx, eax
mov dword [ebp - 0x28c], ebx
call fcn.0041b67d
jmp 0x41bafa
xor eax, eax
push dword [ebp - 0x29c]
and dword [ebp - 0x294], 0
lea ecx, [ebp - 0x294]
and dword [ebp - 0x290], 0
push eax
mov dword [ebp - 4], 7
call fcn.0041b61e
mov dword [ebp - 4], 9
test bl, 1
je 0x41bb41
and ebx, 0xfffffffe
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x28c], ebx
call fcn.00401ef9
lea eax, [ebp - 0x294]
push eax
lea ecx, [esi + 4]
call fcn.0040fceb
push dword [ebp - 0x288]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x290]
test ecx, ecx
je 0x41bb6b
call fcn.00403d1b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x254]
call fcn.00403e8f
lea ecx, [ebp - 0x26c]
call fcn.00401ef9
add edi, dword [edi]
cmp dword [edi], 0
jne 0x41ba05
mov esi, dword [ebp - 0x298]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
call fcn.0047842b
ret