joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push ebx
push esi
push edi
mov edi, dword [esp + 0x1c]
and ecx, 0xffff
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x49b5d2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x49b5d2
push ebp
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x49b5c6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
pop ebp
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x49b5e0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push edi
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
call fcn.0049b580
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x49b605
pop edi
ret
mov ecx, dword [esp + 0xc]
push esi
push 0x5590ec
push ecx
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x49b638
mov edx, dword [esp + 0x18]
push esi
push 1
push edx
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop esi
mov eax, 1
pop edi
ret

Function at 0x49bca0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1664
call fcn.0051d1f0
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x41e]
mov word [esp + 0x41c], si
mov word [esp + 0xc], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x41c]
push eax
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [esp + 0xc]
push 0x104
lea edx, [esp + 0x420]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x216]
mov word [esp + 0x214], si
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
lea ecx, [esp + 0x214]
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push str._s360se_
push 0x103
push ecx
call esi
mov dx, word [0x56d150]
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x636]
mov word [esp + 0x634], dx
add esp, 0x10
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push 0x2000
lea ecx, [esp + 0x628]
push eax
lea edx, [esp + 0x21c]
push ecx
push edx
mov dword [esp + 0x18], 0x823
call dword [sym.imp.SHLWAPI.dll_UrlEscapeW]
mov ecx, dword [esp + 0x1674]
mov edx, dword [esp + 0x1670]
lea eax, [esp + 0x624]
dec ecx
push eax
push str.res:___s
push ecx
push edx
call esi
add esp, 0x10
pop edi
pop esi
add esp, 0x1664
ret
Function at 0x49df30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi]
call dword [eax + 4]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x49dfb7
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x49dfb7
mov edx, eax
shr edx, 0x10
jne 0x49df59
and eax, 0xffff
mov ebp, dword [esp + 0x14]
push ecx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x49dfb7
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor edi, edi
cmp eax, edi
je 0x49dfae
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
je 0x49dfae
mov dword [esi + 8], eax
mov eax, 1
mov dword [esi + 0x10], edi
mov dword [esi + 0x1c], edi
mov byte [esi + 4], 0
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], eax
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret 0xc

Function at 0x49df32
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi]
call dword [eax + 4]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x49dfb7
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x49dfb7
mov edx, eax
shr edx, 0x10
jne 0x49df59
and eax, 0xffff
mov ebp, dword [esp + 0x14]
push ecx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x49dfb7
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor edi, edi
cmp eax, edi
je 0x49dfae
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
je 0x49dfae
mov dword [esi + 8], eax
mov eax, 1
mov dword [esi + 0x10], edi
mov dword [esi + 0x1c], edi
mov byte [esi + 4], 0
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], eax
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret 0xc

Function at 0x49e100
Capabilities:
Check if file exists

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
test edi, edi
jne 0x49e113
pop edi
xor eax, eax
pop esi
ret 4
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49e123
pop edi
pop esi
ret 4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x10]
test eax, eax
jne 0x49e13b
pop edi
pop esi
ret 4
mov eax, 1
mov dword [esi + 0x10], 0
mov byte [esi + 4], al
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
pop edi
pop esi
ret 4
Function at 0x4a1d40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5209c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0050ae80
lea edi, [esi + 0x24]
xor ebp, ebp
mov ecx, edi
mov dword [esp + 0x18], ebp
call fcn.004f8480
push ebp
lea ecx, [esi + 0x12f0]
mov byte [esp + 0x1c], 1
mov dword [esi + 0x28], 0x524ce0
call fcn.004e7580
lea ecx, [esi + 0x1328]
mov byte [esp + 0x18], 2
call fcn.004edf00
mov dword [esi + 0x135c], ebp
mov dword [esi + 0x1360], ebp
mov eax, 3
mov dword [esi], 0x52862c
mov dword [edi], 0x528628
mov dword [esi + 0x298], eax
mov dword [esi + 0x278], eax
mov dword [esi + 0x28], 0x528618
mov ecx, 0x82
xor eax, eax
lea edi, [esi + 0x30]
mov dword [esi + 0x284], ebp
mov dword [esi + 0x248], ebp
mov dword [esi + 0x25c], ebp
mov dword [esi + 0x260], ebp
mov dword [esi + 0x28c], ebp
mov dword [esi + 0x288], ebp
mov dword [esi + 0x24c], ebp
mov dword [esi + 0x270], ebp
mov dword [esi + 0x274], 0x878787
mov dword [esi + 0x264], ebp
mov dword [esi + 0x290], 5
mov dword [esi + 0x294], ebp
mov dword [esi + 0x23c], ebp
mov dword [esi + 0x238], ebp
mov dword [esi + 0x254], 0x12
mov dword [esi + 0x12e8], ebp
mov dword [esi + 0x12ec], ebp
mov dword [esi + 0x244], ebp
mov dword [esi + 0x258], 1
mov dword [esi + 0x240], ebp
rep stosd dword es:[edi], eax
mov ecx, 0x412
lea edi, [esi + 0x29c]
rep stosd dword es:[edi], eax
lea eax, [esi + 0x1368]
xor ecx, ecx
mov edx, eax
mov dword [esi + 0x27c], ebp
mov dword [esi + 0x280], ebp
mov dword [esi + 0x12e4], ebp
mov dword [esi + 0x1354], ebp
mov dword [esi + 0x268], ebp
mov dword [esi + 0x26c], 0xffffffff
mov dword [esi + 0x1358], ebp
mov dword [esi + 0x1364], 2
mov dword [edx], ecx
pop edi
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax], 0x10
mov dword [esi + 0x1378], ebp
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4a1d57
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5209c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0050ae80
lea edi, [esi + 0x24]
xor ebp, ebp
mov ecx, edi
mov dword [esp + 0x18], ebp
call fcn.004f8480
push ebp
lea ecx, [esi + 0x12f0]
mov byte [esp + 0x1c], 1
mov dword [esi + 0x28], 0x524ce0
call fcn.004e7580
lea ecx, [esi + 0x1328]
mov byte [esp + 0x18], 2
call fcn.004edf00
mov dword [esi + 0x135c], ebp
mov dword [esi + 0x1360], ebp
mov eax, 3
mov dword [esi], 0x52862c
mov dword [edi], 0x528628
mov dword [esi + 0x298], eax
mov dword [esi + 0x278], eax
mov dword [esi + 0x28], 0x528618
mov ecx, 0x82
xor eax, eax
lea edi, [esi + 0x30]
mov dword [esi + 0x284], ebp
mov dword [esi + 0x248], ebp
mov dword [esi + 0x25c], ebp
mov dword [esi + 0x260], ebp
mov dword [esi + 0x28c], ebp
mov dword [esi + 0x288], ebp
mov dword [esi + 0x24c], ebp
mov dword [esi + 0x270], ebp
mov dword [esi + 0x274], 0x878787
mov dword [esi + 0x264], ebp
mov dword [esi + 0x290], 5
mov dword [esi + 0x294], ebp
mov dword [esi + 0x23c], ebp
mov dword [esi + 0x238], ebp
mov dword [esi + 0x254], 0x12
mov dword [esi + 0x12e8], ebp
mov dword [esi + 0x12ec], ebp
mov dword [esi + 0x244], ebp
mov dword [esi + 0x258], 1
mov dword [esi + 0x240], ebp
rep stosd dword es:[edi], eax
mov ecx, 0x412
lea edi, [esi + 0x29c]
rep stosd dword es:[edi], eax
lea eax, [esi + 0x1368]
xor ecx, ecx
mov edx, eax
mov dword [esi + 0x27c], ebp
mov dword [esi + 0x280], ebp
mov dword [esi + 0x12e4], ebp
mov dword [esi + 0x1354], ebp
mov dword [esi + 0x268], ebp
mov dword [esi + 0x26c], 0xffffffff
mov dword [esi + 0x1358], ebp
mov dword [esi + 0x1364], 2
mov dword [edx], ecx
pop edi
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax], 0x10
mov dword [esi + 0x1378], ebp
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4a2310
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 0x24c]
test eax, eax
jne 0x4a23bd
lea eax, [esp + 4]
push 0
push eax
call fcn.004a1fd0
mov edx, dword [0x58d1a4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
push 0
push edx
mov edx, dword [esi + 4]
sub eax, ecx
push 0
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
sub edx, eax
push edx
push ecx
push eax
push 0x44000080
push 0x56d150
push str.edit
push 0x20
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0xfffffffffffffffc
push eax
mov dword [esi + 0x24c], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x24c]
push esi
push str.CLASSPROC
push eax
call dword [sym.imp.USER32.dll_SetPropW]
mov ecx, dword [esi + 0x24c]
push 0x4a1d00
push 0xfffffffffffffffc
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
call fcn.004a2440
mov edx, dword [esi + 0x24c]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
add esp, 0x10
ret
Function at 0x4a2fa6
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x218
push esi
mov esi, ecx
cmp word [esi + 0x30], 0
je 0x4a3034
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a3034
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x24c]
pop edi
test eax, eax
je 0x4a2ff5
lea ecx, [esp + 0x14]
push 0x103
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [esp + 0x14], 0
push 1
jne 0x4a3015
mov edx, dword [esi + 4]
push 0
push edx
call fcn.0050b3e0
add esp, 0xc
pop esi
add esp, 0x218
ret
lea eax, [esp + 8]
mov ecx, esi
push eax
call fcn.004a1fd0
mov edx, dword [esi + 4]
lea ecx, [esp + 4]
push 1
push ecx
push edx
call fcn.0050b3e0
add esp, 0xc
pop esi
add esp, 0x218
ret
Function at 0x4a3340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x26c
push ebx
push esi
mov ebx, ecx
call fcn.004a48a0
mov esi, eax
test esi, esi
mov dword [esp + 8], esi
je 0x4a3565
push ebp
push edi
mov ecx, ebx
call fcn.004a32f0
push 0
push 0
push 0x21
push 0x10
push 0x10
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov dword [ebx + 0x12e8], eax
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push 1
mov ecx, esi
mov dword [ebx + 0x12ec], eax
call fcn.004a4f80
mov ebp, eax
xor esi, esi
test ebp, ebp
jle 0x4a343e
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x76]
mov word [esp + 0x74], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
push 1
stosw word es:[edi], ax
lea eax, [esp + 0x78]
push 0x103
push eax
push esi
call fcn.004a4f10
test eax, eax
je 0x4a343e
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x44]
lea edx, [esp + 0x74]
rep stosd dword es:[edi], eax
lea edi, [esi + 1]
lea ecx, [esp + 0x74]
push edx
mov dword [esp + 0x48], 0x30
mov dword [esp + 0x4c], 0x42
mov dword [esp + 0x58], edi
mov dword [esp + 0x6c], ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov ecx, ebx
mov dword [esp + 0x6c], eax
push esi
call fcn.004a3570
mov ecx, dword [ebx + 0x12ec]
push 0
push 0
push esi
lea eax, [esp + 0x50]
push 0
push eax
push 1
push esi
push ecx
lea ecx, [ebx + 0x1328]
call fcn.004ee580
mov esi, edi
cmp esi, ebp
jl 0x4a339d
xor eax, eax
mov ecx, 0xc
push eax
push eax
lea edi, [esp + 0x1c]
push esi
lea edx, [esp + 0x20]
push eax
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x12ec]
push edx
lea ebp, [ebx + 0x1328]
push 1
push esi
push eax
mov ecx, ebp
mov dword [esp + 0x34], 0x30
mov dword [esp + 0x38], 0x100
mov dword [esp + 0x3c], 0x800
call fcn.004ee580
push 0x98
call fcn.0049b640
mov edx, eax
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x1c], 0x30
mov dword [esp + 0x20], 0x43
mov dword [esp + 0x2c], 0x1001
mov dword [esp + 0x40], edx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, dword [0x5be78c]
add esp, 8
neg ecx
sbb ecx, ecx
push 0
push 0
and ecx, 8
push 0xffffffffffffffff
lea edx, [esp + 0x20]
mov dword [esp + 0x48], eax
push 0
mov dword [esp + 0x30], ecx
mov ecx, dword [ebx + 0x12ec]
push edx
lea eax, [esi + 1]
push 1
push eax
push ecx
mov ecx, ebp
call fcn.004ee580
push 0x8c
call fcn.0049b640
mov edx, eax
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x1c], 0x30
mov dword [esp + 0x20], 0x42
mov dword [esp + 0x2c], 0x1000
mov dword [esp + 0x40], edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 8
lea edx, [esp + 0x14]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x12ec]
push 0
push 0
push 0xffffffffffffffff
push 0
push edx
add esi, 2
push 1
push esi
push eax
mov ecx, ebp
call fcn.004ee580
mov ecx, ebx
call fcn.004a30b0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x26c
ret
Function at 0x4a39c0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x208
push ebx
push esi
mov esi, ecx
xor ebx, ebx
call fcn.004a48a0
mov eax, dword [esp + 0x214]
mov ecx, dword [0x59e7b8]
cmp ecx, eax
je 0x4a39e7
mov ebx, 1
push edi
push eax
call fcn.004a48a0
mov ecx, eax
call fcn.004a4ad0
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x24c]
pop edi
test eax, eax
je 0x4a3a27
lea ecx, [esp + 8]
push 0x103
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [esp + 8], 0
mov ecx, esi
je 0x4a3a38
call fcn.004a22d0
jmp 0x4a3a3d
call fcn.004a3060
test ebx, ebx
je 0x4a3a6a
xor edx, edx
cmp word [esp + 8], dx
setne dl
add edx, 0x7613
mov esi, edx
call fcn.00422720
mov eax, dword [eax + 4]
push 0
push esi
push 0x405
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
pop ebx
add esp, 0x208
ret 4
Function at 0x4a6eb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov eax, dword [eax + 4]
push edi
test eax, eax
jne 0x4a6ec7
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push 0x565978
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
je 0x4a6f58
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ecx + 4]
test ebx, ebx
jne 0x4a6ef5
mov ebx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
test ebx, ebx
jne 0x4a6ef5
xor esi, esi
jmp 0x4a6f27
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0051d1f0
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp + 8]
push eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
push ecx
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4a76e0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
cmp word [eax], 0
push edi
je 0x4a7789
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ebp, eax
add esp, 4
inc ebp
je 0x4a7789
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x4a7789
mov eax, dword [esp + 0x18]
lea ebx, [ebp + ebp]
mov dword [esi], 0
mov dword [esi + 4], 0
push ebx
mov dword [esi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
mov dword [esi + 4], edi
je 0x4a7789
mov ecx, ebx
xor eax, eax
mov edx, ecx
push ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
lea edx, [esp + 0x24]
mov dword [esp + 0x24], 0
push edx
push 0
push esi
push 0x4a75e0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x24
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x4a77a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x586490]
sub esp, 0xc
test eax, eax
push esi
mov esi, ecx
jne 0x4a77fc
mov eax, 4
lea ecx, [esp + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
lea edx, [esp + 0xc]
push eax
push ecx
push edx
push 0x539164
push str.Software360360se3
push SysReAllocStringLen
mov dword [0x586490], 1
mov dword [esp + 0x1c], 0
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4a77fc
mov eax, dword [esp + 4]
mov dword [esi], eax
pop esi
add esp, 0xc
ret
Function at 0x4a7ce0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push esi
mov esi, ecx
call fcn.004a77a0
mov eax, dword [esi]
pop esi
cmp eax, 0xff
jne 0x4a78a2
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push edx
push str.Debugger
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionAeDebug
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0x103
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
pop edi
jne 0x4a78a2
cmp word [esp + 8], ax
je 0x4a78a2
lea eax, [esp + 8]
push str.windbg.exe
push eax
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
je 0x4a78a2
mov eax, 1
add esp, 0x210
ret
xor eax, eax
add esp, 0x210
ret
mov ecx, 0x586078
jmp 0x4a7810

Function at 0x4a7d00
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x586494]
sub esp, 8
test eax, eax
je 0x4a78e5
mov eax, dword [0x586498]
add esp, 8
ret
mov eax, 4
lea ecx, [esp + 4]
mov dword [esp + 4], eax
mov dword [esp], eax
lea eax, [esp]
mov dword [0x586494], 1
push eax
push 0x586498
push ecx
push str.dmpType
push str.Software360360se3
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4a7939
mov eax, dword [0x586498]
cmp eax, 1
je 0x4a793b
xor eax, eax
mov dword [0x586498], eax
add esp, 8
ret
xor eax, eax
add esp, 8
ret
mov ecx, 0x586078
jmp 0x4a78d0
Function at 0x4a80a0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x12a4
call fcn.0051d1f0
mov ax, word [0x56d150]
push ebx
push ebp
push esi
mov ebx, dword [esp + 0x12c8]
mov esi, ecx
push edi
mov word [esp + 0x64], ax
mov ecx, 0x493
xor eax, eax
lea edi, [esp + 0x66]
mov ebp, ebx
rep stosd dword es:[edi], eax
and ebp, 0x20
stosw word es:[edi], ax
test bl, 2
mov edi, 1
je 0x4a80e5
mov edi, 6
mov eax, ebx
and eax, 0x40
je 0x4a80f1
mov edi, 0xf
lea ecx, [esi + 0x21c]
lea edx, [esi + 0x14]
push ecx
push str._tmp:
test eax, eax
push edx
push 0x5595a4
mov ecx, 0x56d188
je 0x4a81a1
call fcn.0040db10
xor ecx, ecx
mov edx, dword [esp + 0x12d8]
mov ch, byte [esi + 0x10]
push eax
mov eax, dword [0x587dd4]
mov cl, byte [esi + 0xc]
push str._gw:
push eax
mov eax, dword [esp + 0x12d8]
push str._mw:
push ecx
mov ecx, dword [esp + 0x12e4]
push 0x539bfc
push ebx
push 0x539a48
push edx
mov edx, dword [esp + 0x12ec]
push 0x539bdc
push eax
push 0x539bec
push ecx
push 0x539be4
push edx
push 0x539bf4
push edi
push str._tp:
push str._sandboxse
push 0x56d1ec
push str.__s___s__s_d__s_d__s_d__s_d__s_d__s_d__s_d__s_d__s_d__s__s___s__s_
lea eax, [esp + 0xc8]
push 0x927
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x6c
jmp 0x4a8225
call fcn.0040db10
xor ecx, ecx
mov edx, dword [esp + 0x12d8]
mov ch, byte [esi + 0x10]
push eax
mov eax, dword [0x587dd4]
mov cl, byte [esi + 0xc]
push str._gw:
push eax
mov eax, dword [esp + 0x12d8]
push str._mw:
push ecx
mov ecx, dword [esp + 0x12e4]
push 0x539bfc
push ebx
push 0x539a48
push edx
mov edx, dword [esp + 0x12ec]
push 0x539bdc
push eax
push 0x539bec
push ecx
push 0x539be4
push edx
push 0x539bf4
push edi
push str._tp:
push 0x56d1ec
push str.__s___s_d__s_d__s_d__s_d__s_d__s_d__s_d__s_d__s_d__s__s___s__s_
lea eax, [esp + 0xc4]
push 0x927
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x68
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x18], ecx
push edx
mov dword [esp + 0x20], ecx
mov ecx, ebp
neg ecx
sbb ecx, ecx
push eax
push edi
and ecx, 0x40
push edi
push ecx
push 1
push edi
lea edx, [esp + 0x80]
push edi
push edx
push edi
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x74], 0x80
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
cmp ebx, edi
je 0x4a8298
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x4a8298
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x12c8]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
cmp eax, 1
jne 0x4a82cf
xor eax, eax
mov dword [esi + 0x424], edi
test ebp, ebp
sete al
mov dword [esi + 0x430], eax
mov dword [esi + 0x428], edx
mov dword [esi + 0x42c], ecx
mov eax, dword [esp + 0x12c4]
test eax, eax
je 0x4a82e9
mov esi, dword [esp + 0x14]
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x12a4
ret 0x18