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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4111b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov ebx, ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x40b5c8
push 0x40b5b4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
push eax
mov ecx, ebx
call fcn.0040299d
mov ecx, ebx
test eax, eax
jne 0x402f43
lea eax, [ebp - 0x20c]
push eax
call fcn.00402972
push dword [ebp + 0x10]
test eax, eax
push edi
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
je 0x402f3c
push esi
call fcn.00402d95
jmp 0x402f4d
call fcn.00402ea8
jmp 0x402f4d
push esi
push dword [ebp + 0x10]
push edi
call fcn.00402c2f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409ade
leave
ret 0xc

Function at 0x40301d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x4111b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0x42c], eax
xor eax, eax
mov ebx, dword [ebp + 8]
mov word [ebp - 0x18], ax
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xa
stosw word es:[edi], ax
lea eax, [ebp - 0x18]
push eax
push 0x40b648
push 0x40b61c
push 0x40b614
push ebx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], esi
call fcn.00402e0c
cmp word [ebp - 0x18], 0x31
jne 0x403094
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x430]
push dword [ebp - 0x42c]
push esi
jmp 0x403133
xor eax, eax
mov edi, 0x206
push edi
push eax
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x426]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
mov esi, 0x104
push esi
lea eax, [ebp - 0x428]
push eax
push 0
push 0x40b604
push 0x40b5e8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
push edi
push eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push esi
mov esi, dword [ebp - 0x430]
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x434]
lea eax, [ebp - 0x428]
push eax
mov ecx, esi
call fcn.00402cb7
lea eax, [ebp - 0x220]
push eax
mov ecx, esi
call fcn.00402972
test eax, eax
mov ecx, esi
lea eax, [ebp - 0x220]
je 0x40313b
push dword [ebp + 0x14]
push dword [ebp - 0x42c]
push eax
push ebx
call fcn.00402d95
jmp 0x40314a
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x42c]
call fcn.00402c2f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409ade
leave
ret 0x10
Function at 0x403340
Capabilities:
Enumerate process modules

Disassembly:
push ebp
sub esp, 0x428
lea ebp, [esp - 4]
mov eax, dword [0x4111b4]
xor eax, ebp
mov dword [ebp + 0x428], eax
push 0xc
mov eax, 0x40a5f8
call fcn.00409b4c
lea ecx, [ebp - 0x18]
call fcn.004032fd
xor edi, edi
push edi
push 8
mov dword [ebp - 4], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40341b
cmp dword [ebp - 0x14], edi
je 0x40341b
push 0x424
lea eax, [ebp + 4]
push edi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp]
push eax
push ebx
mov dword [ebp], 0x428
call sub.KERNEL32.dll_Module32FirstW
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x4033d2
push 0x40b78c
push dword [ebp + 0x1c]
call esi
cmp eax, edi
je 0x4033c8
call eax
lea eax, [ebp]
push eax
push ebx
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x4033b8
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
push 1
call dword [eax + 8]
lea eax, [ebp]
push eax
push ebx
call sub.KERNEL32.dll_Module32FirstW
jmp 0x403410
push 0x40b77c
push dword [ebp + 0x1c]
call esi
cmp eax, edi
je 0x403406
push edi
call eax
pop ecx
lea eax, [ebp]
push eax
push ebx
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x4033f4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x428]
xor ecx, ebp
call fcn.00409ade
add ebp, 0x42c
leave
ret

Function at 0x40343e
Capabilities:
Print debug messages

Disassembly:
push 8
mov eax, 0x40a62a
call fcn.00409b4c
mov dword [ebp - 0x10], ecx
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x40b758
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x10]
call fcn.004028b1
mov ecx, dword [ebp - 0x10]
call fcn.00402880
push 0x14
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
cmp eax, ebx
je 0x403498
push 0x40b7b4
mov ecx, eax
call fcn.00402af0
mov dword [ebp - 0x14], eax
jmp 0x40349b
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x403504
push 2
call eax
mov esi, eax
pop ecx
cmp esi, ebx
je 0x403504
mov eax, dword [esi]
push 0x2e00c
push 0x40b79c
push ebx
mov ecx, esi
call dword [eax + 8]
mov edi, eax
cmp edi, ebx
je 0x4034f3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x4c]
test eax, eax
je 0x4034ea
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.004027a9
push dword [ebp + 0x14]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x50]
mov eax, dword [esi]
push ebx
push edi
mov ecx, esi
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x14]
call fcn.004026ad
push dword [ebp - 0x14]
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
pop ecx
call fcn.00403340
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0x10]
call fcn.004028de
mov ecx, dword [ebp - 0x10]
call fcn.004028a8
xor eax, eax
call fcn.00409beb
ret 0x10
Function at 0x40367f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0c
mov eax, dword [0x4111b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0xa0c], ax
lea eax, [ebp - 0xa0a]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403781
mov esi, 0x400
push esi
lea ecx, [ebp - 0xa0c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4036f4
lea eax, [ebp - 0xa0c]
push 0x5c
push eax
call dword [sym.imp.MSVCR90.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x4036f4
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0xa0c]
push eax
call dword [sym.imp.MSVCR90.dll_wcslen]
pop ecx
test eax, eax
jbe 0x403781
push esi
lea eax, [ebp - 0xa0c]
push 0x40b868
push eax
call dword [sym.imp.MSVCR90.dll_wcsncat]
add esp, 0xc
test eax, eax
je 0x403781
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa0c]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x40b85c
push 0x40b84c
push 0x40b838
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
push 0x40b82c
push eax
call dword [sym.imp.MSVCR90.dll__wcsicmp]
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x403783
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00409ade
leave
ret
Function at 0x40420f
Capabilities:
Print debug messages

Disassembly:
push 0x1c
mov eax, 0x40a78c
call fcn.00409b4c
cmp dword [ebp + 0x10], 1
jne 0x404254
push dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push dword [ebp + 8]
push eax
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
call fcn.00409beb
ret
Function at 0x40434d
Capabilities:
Get file version info

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x4111b4]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 0x14
mov eax, 0x40a7ca
call fcn.00409b4c
mov ecx, dword [ebp + 0x234]
mov edi, dword [ebp + 0x230]
xor ebx, ebx
push ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
jne 0x4043af
push 0x40c360
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov eax, edi
jmp 0x40448d
lea ecx, [ebp]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push esi
mov dword [ebp - 4], 1
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
push esi
mov edi, eax
push ebx
push edi
call sub.MSVCR90.dll_memset
mov ecx, dword [ebp - 0x10]
add esp, 0x10
push edi
push esi
push ebx
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x404463
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x40bd84
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
call sub.VERSION.dll_VerQueryValueW
xor eax, eax
push 0x206
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push ebx
push eax
call sub.MSVCR90.dll_memset
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push 0x40bd30
lea eax, [ebp + 0x1c]
push 0x104
push eax
call dword [sym.imp.MSVCR90.dll__snwprintf]
add esp, 0x20
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x1c]
push eax
push edi
mov dword [ebp - 0x14], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x404463
cmp dword [ebp - 0x14], ebx
je 0x404463
push dword [ebp - 0x14]
lea ecx, [ebp]
call dword [0x40b15c]
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
pop ecx
mov ecx, dword [ebp - 0x18]
lea eax, [ebp]
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [ebp]
mov dword [ebp - 0x20], 1
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.00409ade
add ebp, 0x228
leave
ret
Function at 0x408521
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x144
mov eax, dword [0x4111b4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push 0x118
xor ebx, ebx
lea eax, [ebp - 0xa4]
push ebx
push eax
call sub.MSVCR90.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x11c
call esi
test eax, eax
jne 0x408587
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x114
call esi
test eax, eax
je 0x40869c
push edi
push 8
pop ecx
push 0x40c1a0
xor eax, eax
mov dword [ebp - 0xcc], ebx
lea edi, [ebp - 0xc8]
push 0x40c184
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop edi
cmp eax, ebx
je 0x4085c2
lea ecx, [ebp - 0xcc]
push ecx
call eax
jmp 0x4085cf
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x98], 2
jne 0x40864e
cmp dword [ebp - 0xa4], 4
ja 0x4085e5
push 5
jmp 0x40864b
cmp dword [ebp - 0xa4], 5
jne 0x408627
cmp dword [ebp - 0xa0], ebx
jne 0x4085fa
push 6
jmp 0x40864b
xor eax, eax
inc eax
cmp dword [ebp - 0xa0], eax
jne 0x408609
push 7
jmp 0x40864b
cmp dword [ebp - 0xa0], 2
jne 0x408649
cmp byte [ebp + 0x72], al
jne 0x408623
push 9
pop eax
cmp word [ebp - 0xcc], ax
je 0x40869e
push 8
jmp 0x40864b
cmp dword [ebp - 0xa4], 6
jne 0x408649
cmp dword [ebp - 0xa0], ebx
jne 0x40863c
push 0xa
jmp 0x40864b
cmp dword [ebp - 0xa0], 1
jne 0x408649
push 0xb
jmp 0x40864b
push 0x14
pop eax
jmp 0x40869e
xor eax, eax
inc eax
cmp dword [ebp - 0x98], eax
jne 0x40869c
cmp dword [ebp - 0xa4], 4
jne 0x40869c
cmp dword [ebp - 0xa0], ebx
je 0x40869e
cmp dword [ebp - 0xa0], 0xa
jne 0x40868f
cmp word [ebp - 0x92], 0x41
je 0x40868b
cmp word [ebp - 0x92], 0x42
je 0x40868b
push 2
jmp 0x40864b
push 3
jmp 0x40864b
cmp dword [ebp - 0xa0], 0x5a
jne 0x40869c
push 4
jmp 0x40864b
xor eax, eax
mov ecx, dword [ebp + 0x74]
pop esi
xor ecx, ebp
pop ebx
call fcn.00409ade
add ebp, 0x78
leave
ret

Function at 0x408703
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jbe 0x40873b
push dword [ebp + 8]
call dword [sym.imp.MSVCR90.dll_wcslen]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCR90.dll__wcsnicmp]
add esp, 0x10
test eax, eax
je 0x40873b
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x408a6b
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi]
call sub.WS2_32.dll_ntohl
push dword [esi + 4]
mov edi, eax
call sub.WS2_32.dll_ntohl
mov ebx, dword [ebp + 0xc]
and dword [ebp + 8], 0
mov esi, eax
lea eax, [ebp - 0x10]
sub ebx, eax
mov eax, dword [ebp + 8]
lea eax, [ebx + eax*4]
push dword [ebp + eax - 0x10]
call sub.WS2_32.dll_ntohl
mov ecx, dword [ebp + 8]
inc dword [ebp + 8]
cmp dword [ebp + 8], 4
mov dword [ebp + ecx*4 - 0x10], eax
jl 0x408a96
push 0x10
mov eax, 0xe3779b90
pop ecx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 4]
mov ebx, edi
shl ebx, 4
add ebx, dword [ebp - 8]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
sub esi, edx
mov edx, esi
shr edx, 5
add edx, dword [ebp - 0xc]
mov ebx, esi
shl ebx, 4
add ebx, dword [ebp - 0x10]
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
sub edi, edx
add eax, 0x61c88647
dec ecx
jne 0x408abd
push edi
call sub.WS2_32.dll_htonl
mov edi, dword [ebp + 0x10]
push esi
mov dword [edi], eax
call sub.WS2_32.dll_htonl
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408da6
Capabilities:
Enumerate pe sections
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
mov esi, ecx
mov ecx, dword [ebp + 8]
push 0x80000000
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408e55
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 4], eax
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
push ebx
lea ecx, [ebp + 8]
push ecx
push dword [ebp - 4]
mov dword [esi + 4], eax
push eax
push edi
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 4]
mov dword [esi + 0xc], eax
cmp eax, ebx
je 0x408e55
mov ecx, 0x5a4d
cmp cx, word [eax]
jne 0x408e55
mov ecx, dword [eax + 0x3c]
add eax, ecx
mov dword [esi + 0x10], eax
cmp eax, ebx
je 0x408e55
cmp dword [eax], 0x4550
jne 0x408e55
movzx eax, word [eax + 6]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x10]
add eax, 0x18
mov dword [esi + 0x14], eax
mov eax, dword [eax + 0x10]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x14]
add eax, 0xe0
mov dword [esi + 0x1c], eax
xor eax, eax
inc eax
jmp 0x408e57
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x408efa
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call sub.MSVCR90.dll_memset
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
and dword [esi + 0x58], 0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
ret
Function at 0x409ade
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4111b4]
jne 0x409ae8
repz ret
jmp fcn.0040a07b
Function at 0x1035d28
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x34], eax
xor edx, edx
lea eax, [ecx + 0x5e0]
cmp dword [eax + 0x18], 8
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x30], 0x1002858
jb 0x1035d5a
mov eax, dword [eax + 4]
jmp 0x1035d5d
add eax, 4
mov dword [ebp - 0x2c], eax
push edi
xor eax, eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
lea edi, [ebp - 4]
stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
leave
ret

Function at 0x103af2a
Capabilities:
Get graphical window text

Disassembly:
push 0x10
mov eax, 0x11bf6e5
call fcn.010b13ca
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.01036917
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
je 0x103afb2
push esi
mov ecx, edi
call fcn.010374fb
inc esi
push esi
lea ecx, [ebp - 0x1c]
call fcn.0103a945
and dword [ebp - 4], 0
push esi
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x103af89
mov eax, dword [ebp - 0x14]
add eax, 0xfffffffe
push eax
push dword [ebp - 0x18]
mov ecx, edi
call fcn.0103aa77
jmp 0x103afaa
push 1
call fcn.011565b2
push eax
push 0x4c4
push 0x186
push 0x1002ba0
push 0x1002780
call fcn.010ae68e
lea ecx, [ebp - 0x1c]
call fcn.0112c1e2
mov eax, edi
call fcn.010b14b6
ret 8

Function at 0x103cb99
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0xf0000000
push 0x18
mov esi, ecx
xor ebx, ebx
push 0x1002cc8
push ebx
lea edi, [esi + 4]
push esi
mov dword [esi], ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x103cbf7
call fcn.011565b2
mov esi, eax
cmp esi, ebx
jge 0x103cbf1
mov eax, dword [0x11f200c]
cmp eax, 0x11f200c
je 0x103cbf1
test byte [eax + 0x5c], 1
je 0x103cbf1
push esi
push 0x1002c70
push 0x11
push dword [eax + 0x54]
push dword [eax + 0x50]
call fcn.01034bae
push esi
call fcn.0103cae0
push edi
push ebx
push 0x660e
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
jne 0x103cc46
call fcn.011565b2
mov edi, eax
cmp edi, ebx
jge 0x103cc3a
mov eax, dword [0x11f200c]
cmp eax, 0x11f200c
je 0x103cc3a
test byte [eax + 0x5c], 1
je 0x103cc3a
push edi
push 0x1002c70
push 0x12
push dword [eax + 0x54]
push dword [eax + 0x50]
call fcn.01034bae
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push edi
jmp 0x103cbf2
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x103e350
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x103e369
xor al, al
jmp 0x103e3b6
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
push ebx
mov ebx, dword [eax + 0x18]
push edi
add edx, esi
add ecx, esi
xor edi, edi
mov dword [ebp + 0xc], ebx
test ebx, ebx
jbe 0x103e39e
mov eax, dword [eax + 0x10]
movzx ebx, word [ecx + edi*2]
add ebx, eax
cmp dword [ebp + 0x10], ebx
je 0x103e3bb
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x103e38d
push 0x1002d64
mov ecx, dword [ebp + 8]
call fcn.010386a7
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov al, 1
pop ebx
pop esi
pop ebp
ret 0xc
mov eax, dword [edx + edi*4]
add eax, esi
push eax
jmp 0x103e3a3
Function at 0x10416a4
Capabilities:
Read file on windows

Disassembly:
push 8
mov eax, 0x11a9b44
call fcn.010b13ca
xor esi, esi
cmp dword [0x11fc3b4], esi
je 0x104179c
mov eax, dword [0x11f200c]
cmp eax, 0x11f200c
je 0x10416fe
test dword [eax + 0x5c], 0x4000
je 0x10416fe
mov ecx, 0x1002db4
cmp dword [ebp + 0x14], esi
jne 0x10416e2
mov ecx, 0x1002da8
push dword [ebp + 0x18]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 8]
push 0x1002c80
push 0x1a
push dword [eax + 0x54]
push dword [eax + 0x50]
call fcn.0103c36c
cmp dword [ebp + 0x18], esi
je 0x1041712
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10417b1
mov edi, 0x11fc3b8
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0115214a
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], esi
call fcn.0103e92e
mov ebx, eax
cmp ebx, esi
je 0x1041795
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp + 0xc]
call fcn.01041009
mov esi, eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x104174e
mov dword [eax], esi
mov eax, dword [ebp - 0x10]
add dword [eax], esi
mov ecx, ebx
adc dword [eax + 4], 0
call fcn.0103cb1e
mov eax, dword [0x11f200c]
cmp eax, 0x11f200c
je 0x1041789
test dword [eax + 0x5c], 0x4000
je 0x1041789
push esi
push dword [ebp + 8]
push 0x1002c80
push 0x1b
push dword [eax + 0x54]
push dword [eax + 0x50]
call fcn.01043f86
mov ecx, edi
call fcn.01152173
xor eax, eax
inc eax
jmp 0x10417b1
mov ecx, edi
call fcn.01152173
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
call fcn.010b14b6
ret 0x14