joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48be60
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 0x48beb2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x48beb2
push ebp
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x48bea6
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 0x48bec0
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.0048be60
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x48bee5
pop edi
ret
mov ecx, dword [esp + 0xc]
push esi
push 0x52b630
push ecx
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x48bf18
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 0x48c260
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1664
call fcn.004f3f00
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 [0x53ada0]
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 0x48da80
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
test ebx, ebx
je 0x48dada
mov eax, dword [esp + 0x18]
test eax, eax
je 0x48dada
push 0
push 0x80000080
push 2
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x48dada
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x10]
push 0
push eax
push edi
push ebx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x48dae0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, edi
pop edi
pop esi
pop ebx
sete al
ret

Function at 0x48e540
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 0x48e5c7
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x48e5c7
mov edx, eax
shr edx, 0x10
jne 0x48e569
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 0x48e5c7
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 0x48e5be
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
je 0x48e5be
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 0x48e542
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 0x48e5c7
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x48e5c7
mov edx, eax
shr edx, 0x10
jne 0x48e569
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 0x48e5c7
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 0x48e5be
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
je 0x48e5be
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 0x48e710
Capabilities:
Check if file exists

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
test edi, edi
jne 0x48e723
pop edi
xor eax, eax
pop esi
ret 4
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48e733
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 0x48e74b
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 0x491020
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
cmp eax, 0x104
push esi
ja 0x49112a
je 0x49107d
sub eax, 0x100
je 0x49107d
sub eax, 2
jne case.0x491097.12
mov eax, dword [esp + 0x18]
cmp eax, 0xd
jne 0x491061
mov eax, dword [esp + 0x20]
pop esi
mov dword [eax], 1
xor eax, eax
add esp, 8
ret 0x14
cmp eax, 9
jne case.0x491097.12
mov ecx, dword [esp + 0x20]
xor eax, eax
pop esi
mov dword [ecx], 1
add esp, 8
ret 0x14
mov esi, dword [esp + 0x18]
lea eax, [esi - 9]
cmp eax, 0xb2
ja case.0x491097.12
xor edx, edx
mov dl, byte [eax + 0x49117c]
jmp dword [edx*4 + 0x49116c]
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je case.0x491097.12
mov eax, dword [esp + 0x20]
pop esi
mov dword [eax], 1
xor eax, eax
add esp, 8
ret 0x14
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je case.0x491097.12
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00491230
mov edx, dword [esp + 0x24]
add esp, 4
xor eax, eax
mov dword [edx], 1
pop esi
add esp, 8
ret 0x14
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
jne case.0x491097.12
mov eax, dword [esp + 0x10]
push eax
push esi
push 0x4401
push 2
push eax
call dword [sym.imp.USER32.dll_GetAncestor]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
pop esi
add esp, 8
ret 0x14
cmp eax, 0x205
jne case.0x491097.12
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
je case.0x491097.12
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push 0x437
push ecx
mov dword [esp + 0x18], 0xffffffff
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
pop esi
add esp, 8
ret 0x14
Function at 0x4916b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4f7031
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.004edfd0
lea edi, [esi + 0x24]
xor ebp, ebp
mov ecx, edi
mov dword [esp + 0x18], ebp
call fcn.004de0e0
push ebp
lea ecx, [esi + 0x12ec]
mov byte [esp + 0x1c], 1
mov dword [esi + 0x28], 0x4f9be8
call fcn.004c8630
lea ecx, [esi + 0x1324]
mov byte [esp + 0x18], 2
call fcn.004ce060
mov eax, 3
mov dword [edi], 0x4fd28c
mov dword [esi + 0x294], eax
mov dword [esi + 0x274], eax
mov ecx, 0x82
xor eax, eax
lea edi, [esi + 0x30]
mov dword [esi], 0x4fd270
mov dword [esi + 0x28], 0x4fd260
mov dword [esi + 0x280], ebp
mov dword [esi + 0x248], ebp
mov dword [esi + 0x25c], ebp
mov dword [esi + 0x260], ebp
mov dword [esi + 0x288], ebp
mov dword [esi + 0x284], ebp
mov dword [esi + 0x24c], ebp
mov dword [esi + 0x26c], ebp
mov dword [esi + 0x270], 0x878787
mov dword [esi + 0x264], ebp
mov dword [esi + 0x28c], 5
mov dword [esi + 0x290], ebp
mov dword [esi + 0x23c], ebp
mov dword [esi + 0x238], ebp
mov dword [esi + 0x254], 0x12
mov dword [esi + 0x12e4], ebp
mov dword [esi + 0x12e8], 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 + 0x298]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x278], ebp
mov dword [esi + 0x27c], ebp
mov dword [esi + 0x12e0], ebp
mov dword [esi + 0x1350], ebp
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4916c7
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4f7031
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.004edfd0
lea edi, [esi + 0x24]
xor ebp, ebp
mov ecx, edi
mov dword [esp + 0x18], ebp
call fcn.004de0e0
push ebp
lea ecx, [esi + 0x12ec]
mov byte [esp + 0x1c], 1
mov dword [esi + 0x28], 0x4f9be8
call fcn.004c8630
lea ecx, [esi + 0x1324]
mov byte [esp + 0x18], 2
call fcn.004ce060
mov eax, 3
mov dword [edi], 0x4fd28c
mov dword [esi + 0x294], eax
mov dword [esi + 0x274], eax
mov ecx, 0x82
xor eax, eax
lea edi, [esi + 0x30]
mov dword [esi], 0x4fd270
mov dword [esi + 0x28], 0x4fd260
mov dword [esi + 0x280], ebp
mov dword [esi + 0x248], ebp
mov dword [esi + 0x25c], ebp
mov dword [esi + 0x260], ebp
mov dword [esi + 0x288], ebp
mov dword [esi + 0x284], ebp
mov dword [esi + 0x24c], ebp
mov dword [esi + 0x26c], ebp
mov dword [esi + 0x270], 0x878787
mov dword [esi + 0x264], ebp
mov dword [esi + 0x28c], 5
mov dword [esi + 0x290], ebp
mov dword [esi + 0x23c], ebp
mov dword [esi + 0x238], ebp
mov dword [esi + 0x254], 0x12
mov dword [esi + 0x12e4], ebp
mov dword [esi + 0x12e8], 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 + 0x298]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x278], ebp
mov dword [esi + 0x27c], ebp
mov dword [esi + 0x12e0], ebp
mov dword [esi + 0x1350], ebp
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x492550
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x218
push esi
mov esi, ecx
cmp word [esi + 0x30], 0
je 0x4925e4
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4925e4
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 0x4925a5
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 0x4925c5
mov edx, dword [esi + 4]
push 0
push edx
call fcn.004ee520
add esp, 0xc
pop esi
add esp, 0x218
ret
lea eax, [esp + 8]
mov ecx, esi
push eax
call fcn.004918f0
mov edx, dword [esi + 4]
lea ecx, [esp + 4]
push 1
push ecx
push edx
call fcn.004ee520
add esp, 0xc
pop esi
add esp, 0x218
ret
Function at 0x4928f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x26c
push ebx
push esi
mov ebx, ecx
call fcn.00493ac0
mov esi, eax
test esi, esi
mov dword [esp + 8], esi
je 0x492b15
push ebp
push edi
mov ecx, ebx
call fcn.004928a0
push 0
push 0
push 0x21
push 0x10
push 0x10
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov dword [ebx + 0x12e4], eax
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push 1
mov ecx, esi
mov dword [ebx + 0x12e8], eax
call fcn.004941a0
mov ebp, eax
xor esi, esi
test ebp, ebp
jle 0x4929ee
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.00494130
test eax, eax
je 0x4929ee
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.00492b20
mov ecx, dword [ebx + 0x12e8]
push 0
push 0
push esi
lea eax, [esp + 0x50]
push 0
push eax
push 1
push esi
push ecx
lea ecx, [ebx + 0x1324]
call fcn.004ce6e0
mov esi, edi
cmp esi, ebp
jl 0x49294d
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 + 0x12e8]
push edx
lea ebp, [ebx + 0x1324]
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.004ce6e0
push 0x98
call fcn.0048bf20
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 [0x5ef784]
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 + 0x12e8]
push edx
lea eax, [esi + 1]
push 1
push eax
push ecx
mov ecx, ebp
call fcn.004ce6e0
push 0x8c
call fcn.0048bf20
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 + 0x12e8]
push 0
push 0
push 0xffffffffffffffff
push 0
push edx
add esi, 2
push 1
push esi
push eax
mov ecx, ebp
call fcn.004ce6e0
mov ecx, ebx
call fcn.00492660
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x26c
ret
Function at 0x492f60
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x208
push ebx
push esi
mov esi, ecx
xor ebx, ebx
call fcn.00493ac0
mov eax, dword [esp + 0x214]
mov ecx, dword [0x5cf7b0]
cmp ecx, eax
je 0x492f87
mov ebx, 1
push edi
push eax
call fcn.00493ac0
mov ecx, eax
call fcn.00493cf0
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 0x492fc7
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 0x492fd8
call fcn.00491be0
jmp 0x492fdd
call fcn.00492610
test ebx, ebx
je 0x49300a
xor edx, edx
cmp word [esp + 8], dx
setne dl
add edx, 0x7613
mov esi, edx
call fcn.0041bda0
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 0x4960e0
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 0x4960f7
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 0x534b94
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
je 0x496188
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ecx + 4]
test ebx, ebx
jne 0x496125
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 0x496125
xor esi, esi
jmp 0x496157
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.004f3f00
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 0x496910
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
cmp word [eax], 0
push edi
je 0x4969b9
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ebp, eax
add esp, 4
inc ebp
je 0x4969b9
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x4969b9
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 0x4969b9
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 0x496810
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 0x4969d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x5b7110]
sub esp, 0xc
test eax, eax
push esi
mov esi, ecx
jne 0x496a2c
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 0x50be34
push str.Software360360se3
push SysReAllocStringLen
mov dword [0x5b7110], 1
mov dword [esp + 0x1c], 0
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x496a2c
mov eax, dword [esp + 4]
mov dword [esi], eax
pop esi
add esp, 0xc
ret
Function at 0x496d60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push esi
mov esi, ecx
call fcn.004969d0
mov eax, dword [esi]
pop esi
cmp eax, 0xff
jne 0x496ad2
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 0x496ad2
cmp word [esp + 8], ax
je 0x496ad2
lea eax, [esp + 8]
push str.windbg.exe
push eax
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
je 0x496ad2
mov eax, 1
add esp, 0x210
ret
xor eax, eax
add esp, 0x210
ret
mov ecx, 0x5b6cf8
jmp 0x496a40
Function at 0x497110
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x12a4
call fcn.004f3f00
mov ax, word [0x53ada0]
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, dword [esp + 0x12c8]
push edi
mov word [esp + 0x64], ax
mov ecx, 0x493
xor eax, eax
lea edi, [esp + 0x66]
lea edx, [esi + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esi + 0x21c]
mov ebx, ebp
push ecx
push str._tmp:
push edx
push 0x52b9ec
mov ecx, 0x53adc0
and ebx, 0x20
stosw word es:[edi], ax
call fcn.00409d20
xor ecx, ecx
mov edx, dword [esp + 0x12d8]
mov ch, byte [esi + 0x10]
push eax
mov eax, dword [0x5b89c8]
mov cl, byte [esi + 0xc]
push str._gw:
push eax
mov eax, dword [esp + 0x12d8]
push str._mw:
push ecx
push 0x50c634
push ebp
push 0x50c464
push edx
push 0x50c614
mov ecx, dword [esp + 0x12f8]
push eax
mov edx, dword [esp + 0x12f4]
mov eax, ebp
and al, 2
push 0x50c624
neg al
sbb eax, eax
push ecx
and eax, 5
push 0x50c61c
push edx
inc eax
push 0x50c62c
push eax
push str._tp:
push 0x53ae24
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 ecx, [esp + 0xc4]
push 0x927
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x68
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
xor ebp, ebp
xor edx, edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], edx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], edx
push eax
push ecx
mov dword [esp + 0x28], 0x44
mov dword [esp + 0x54], 0x80
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], edx
push ebp
mov edx, ebx
push ebp
neg edx
sbb edx, edx
lea eax, [esp + 0x74]
and edx, 0x40
push edx
push 1
push ebp
push ebp
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
cmp edi, ebp
je 0x497260
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x497260
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x12c8]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
cmp eax, 1
jne 0x497297
xor eax, eax
mov dword [esi + 0x424], edx
test ebx, ebx
sete al
mov dword [esi + 0x430], eax
mov dword [esi + 0x428], ebp
mov dword [esi + 0x42c], ecx
mov eax, dword [esp + 0x12c4]
test eax, eax
je 0x4972b1
mov dword [eax], edx
mov edx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12a4
ret 0x18

Function at 0x497c90
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x2090
call fcn.004f3f00
push esi
mov esi, ecx
push 0x445
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, eax
test edx, edx
je 0x497cf8
push edi
mov ecx, 0x823
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
push 0x1047
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
push edx
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [esp + 8]
push edx
push 0x50c180
push 0x1047
push 0x5cf7fc
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
pop edi
call fcn.0049b6f0
mov eax, dword [esi + 4]
push 1
push eax
call dword [sym.imp.USER32.dll_EndDialog]
pop esi
add esp, 0x2090
ret