joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404230
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x40425c
jl 0x404250
test ecx, ecx
jne 0x40425c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x404275
push eax
push ecx
push esi
mov ecx, ebx
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__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x4042c3
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x4042c9
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x4042c9
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x404336
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4042f2
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x404324
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x404336
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x404300
test edi, edi
je 0x404336
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4046b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x415040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4046e0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d71a
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40471c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40471c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d71a
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4047f3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x404744
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x404750
movsx eax, bl
jmp 0x404788
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
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]
sub eax, 0
je 0x4047b2
sub eax, 1
je 0x4047b2
sub eax, 2
jne 0x4047f3
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d71a
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4047d0
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 0x4047f3
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d71a
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d71a
mov esp, ebp
pop ebp
ret 4

Function at 0x404a40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x404a71
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x404a60
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x404fa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x415040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40505c
cmp byte [esi + 0x3d], 0
je 0x40505c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40504a
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 0x405011
sub eax, 1
je 0x405015
sub eax, 2
jne 0x40504a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d71a
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x405033
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 0x40504a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d71a
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d71a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0040d71a
mov esp, ebp
pop ebp
ret
Function at 0x406cb0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov eax, 0x1fffffff
mov esi, 1
push edi
mov edi, ecx
bsr ecx, eax
mov eax, esi
mov dword [ebp - 0x10], edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
jbe 0x406ce1
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ecx - 1]
mov ebx, dword [edi + 4]
or eax, 1
mov dword [ebp - 8], ebx
bsr ecx, eax
push ebx
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [edi + 0xc]
lea eax, [esi + esi]
push eax
call fcn.00405470
lea eax, [esi - 1]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x18], eax
mov edi, dword [edi + 4]
mov edi, dword [edi]
cmp edi, ebx
je 0x406df7
mov esi, edi
nop word [eax + eax]
cmp dword [esi + 0x1c], 0xf
lea ebx, [esi + 8]
mov edi, dword [edi]
mov dword [ebp - 0xc], edi
jbe 0x406d31
mov ebx, dword [esi + 8]
mov eax, dword [esi + 0x18]
xor ecx, ecx
mov dword [ebp - 4], eax
mov edx, 0x811c9dc5
test eax, eax
je 0x406d58
mov edi, eax
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x406d44
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
and ecx, edx
lea eax, [eax + ecx*8]
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], eax
cmp dword [eax], ecx
jne 0x406d77
mov dword [eax], esi
mov dword [eax + 4], esi
jmp 0x406dec
mov ebx, dword [eax + 4]
lea ecx, [esi + 8]
lea edx, [ebx + 8]
call fcn.00407da0
test al, al
je 0x406daf
mov ebx, dword [ebx]
cmp ebx, esi
je 0x406da7
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], esi
jmp 0x406dec
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
je 0x406dcf
mov ebx, dword [ebx + 4]
lea ecx, [esi + 8]
lea edx, [ebx + 8]
call fcn.00407da0
test al, al
jne 0x406e00
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
jne 0x406db6
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], esi
mov esi, edi
cmp edi, dword [ebp - 8]
jne 0x406d20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 4]
mov ebx, dword [ebx]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
jmp 0x406dec
Function at 0x40e086
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40e0c5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e0c5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e0c5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40e0c5
cmp dword [ecx + 0x74], 0xe
jbe 0x40e0c5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x432000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x3be7570
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4e842c6e
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401fbf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d110]
jne 0x401fc9
repz ret
jmp fcn.00402ef6

Function at 0x40ff90
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404e96
and dword [ebp - 4], 0
cmp dword [0x42e91c], 0
mov ebx, eax
jne 0x410041
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4100f2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4100f2
push eax
call fcn.00404e24
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42e91c], eax
call esi
push eax
call fcn.00404e24
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42e920], eax
call esi
push eax
call fcn.00404e24
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42e924], eax
call esi
push eax
call fcn.00404e24
pop ecx
mov dword [0x42e92c], eax
test eax, eax
je 0x410041
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404e24
pop ecx
mov dword [0x42e928], eax
mov eax, dword [0x42e928]
cmp eax, ebx
je 0x410099
cmp dword [0x42e92c], ebx
je 0x410099
push eax
call fcn.00404e9f
push dword [0x42e92c]
mov esi, eax
call fcn.00404e9f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x410099
test edi, edi
je 0x410099
call esi
test eax, eax
je 0x410090
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x410090
test byte [ebp - 0xc], 1
jne 0x410099
or dword [ebp + 0x10], 0x200000
jmp 0x4100d2
mov eax, dword [0x42e920]
cmp eax, ebx
je 0x4100d2
push eax
call fcn.00404e9f
pop ecx
test eax, eax
je 0x4100d2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4100d2
mov eax, dword [0x42e924]
cmp eax, ebx
je 0x4100d2
push eax
call fcn.00404e9f
pop ecx
test eax, eax
je 0x4100d2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42e91c]
call fcn.00404e9f
pop ecx
test eax, eax
je 0x4100f2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4100f4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100019a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100019b8
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100019ea
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x100019e6
cmp esi, eax
jae 0x100019ea
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x100019d8
cmp esi, eax
jb 0x100019f0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x10004ac0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002f7d0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10040150]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, dword [ebp + 8]
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [edx], 0xffffffff
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
cmp dword [esi + 0x14], 0x10
jb 0x10004b09
mov esi, dword [esi]
mov dword [ebp - 4], edi
lea esp, [esp]
cmp edi, dword [ebp - 0x18]
jae 0x10004b39
mov ecx, dword [edx]
mov eax, ecx
and eax, 0xff
movzx ebx, byte [esi]
xor eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x100412d0]
mov dword [edx], ecx
inc edi
mov dword [ebp - 0x1c], edi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10004b10
mov dword [ebp - 4], 0xffffffff
jmp 0x10004b59
mov ecx, dword [edx]
not ecx
mov dword [edx], ecx
mov eax, dword [ebp - 0x14]
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 0x10004f70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10030114
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10040150]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x30], 3
mov eax, dword [ecx]
mov eax, dword [eax + 8]
lea edx, [esp + 0xc]
push edx
mov edx, dword [ebp + 8]
push edx
lea edx, [esp + 0x10]
push edx
call eax
mov byte [esp + 0x30], 4
cmp dword [esp + 8], 0
je 0x1000509c
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [esp + 0x30], 5
mov eax, dword [esp + 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x28]
lea ecx, [esp + 0x14]
push ecx
push 0x7533
push eax
call edx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x10038124
push 0x2722
push eax
mov eax, dword [ecx + 0x38]
call eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000508c
cmp dword [esp + 0x1c], 0xc354
jne 0x10005033
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x14]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x30], 4
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [esp + 0x30], 3
mov eax, dword [esp + 8]
test eax, eax
je 0x10005060
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10005078
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
mov byte [esp + 0x30], 4
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [esp + 0x30], 3
mov eax, dword [esp + 8]
test eax, eax
je 0x100050b1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0xc]
test eax, eax
je 0x100050c9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 0x80004005
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x10005750
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10031c88
mov eax, dword fs:[0]
push eax
mov eax, 0x1020
call fcn.10028620
mov eax, dword [0x10040150]
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 eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x1018], eax
mov esi, ecx
mov dword [ebp - 0x1028], ebx
mov dword [ebp - 4], 1
xor edi, edi
mov dword [ebp - 0x1024], edi
mov dword [ebp - 0x1020], ebx
mov dword [ebp - 0x101c], ebx
mov byte [ebp - 4], 2
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x1014]
push ecx
push 0x20019
push ebx
push edx
push 0x80000002
mov dword [ebp - 0x1014], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x1000584b
mov edi, dword [ebp - 0x1014]
lea eax, [ebp - 0x1014]
push eax
lea ecx, [ebp - 0x1010]
push ecx
lea edx, [ebp - 0x102c]
push edx
mov dword [ebp - 0x1024], edi
mov esi, dword [esi]
push ebx
push esi
mov dword [ebp - 0x1020], ebx
push edi
mov dword [ebp - 0x1020], ebx
mov dword [ebp - 0x1014], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x1000584b
mov eax, dword [ebp - 0x102c]
cmp eax, 1
je 0x10005830
cmp eax, 2
jne 0x1000584b
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x100058c5
cmp byte [ebp + eax - 0x1011], bl
je 0x100058cb
mov ecx, dword [ebp - 0x1018]
push ecx
mov esi, 0x10038080
call section..text
mov dword [ebp - 0x1028], 1
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x1000587b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1024], ebx
mov dword [ebp - 0x1020], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100058a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1018]
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.1001d07f
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x1010], bl
mov eax, dword [ebp - 0x1018]
push eax
lea esi, [ebp - 0x1010]
call section..text
mov dword [ebp - 0x1028], 1
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x100058fc
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1024], ebx
mov dword [ebp - 0x1020], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x10005897
Function at 0x10005920
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10032f76
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x10040150]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
push eax
mov esi, 0x10038080
call section..text
xor ebx, ebx
mov dword [ebp - 4], ebx
push ecx
mov edi, esp
mov dword [ebp - 0x18], esp
push 0x10038134
lea esi, [ebp - 0x14]
call fcn.10001ea0
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.10001350
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
push ecx
mov byte [ebp - 4], bl
mov ecx, esi
call fcn.10005750
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
or edi, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100059b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 5
jle 0x10005a3d
push 0x3c
lea ecx, [ebp - 0x54]
push ebx
push ecx
call fcn.10020910
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
add esp, 0xc
lea ecx, [ebp - 0x54]
push ecx
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], 0x40
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], str.open
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], 5
mov dword [ebp - 0x34], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x10005a29
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10005a5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
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 0x10005b80
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003175e
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x10040150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x400
lea eax, [ebp - 0x410]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x428], ebx
call fcn.10020910
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, section..data
mov dword [ebp - 0x424], ebx
call eax
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x420]
push ecx
push esi
mov dword [ebp - 0x428], 1
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x414], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0x400
lea edx, [ebp - 0x410]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x414]
mov edx, dword [ebp - 0x418]
sub ecx, eax
push ecx
mov ecx, dword [ebp - 0x420]
sub edx, ecx
push edx
push eax
push ecx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x424]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
push esi
push str._hwnd_:_d__thrd_:_d__t_:__s___rc_:_x_:_d__y_:_d__w_:_d__h_:_d
call fcn.100061f0
add esp, 0x20
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001d07f
mov esp, ebp
pop ebp
ret