joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4520b0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x210
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
push esi
push edi
mov edi, eax
mov esi, ecx
xor eax, eax
push esi
push eax
push 0x410
mov word [edi], ax
call ebx
mov ebp, eax
test ebp, ebp
jne 0x4520f2
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x4520f2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
cmp byte [esp + 0x224], 0
push 0x104
push edi
push 0
push ebp
je 0x45210d
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
jmp 0x452113
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test byte [0x4cca88], 1
mov ebx, eax
jne 0x452143
or dword [0x4cca88], 1
push 0x4ae368
push str.psapi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cca84], eax
jmp 0x452148
mov eax, dword [0x4cca84]
test ebx, ebx
jne 0x45225f
test eax, eax
je 0x45225f
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x45225f
cmp byte [esp + 0x224], 0
je 0x4521c3
push 0x5c
push edi
call fcn.00491e3e
add esp, 8
test eax, eax
je 0x45225f
mov ecx, eax
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x452190
sub ecx, esi
sar ecx, 1
add ecx, ecx
push ecx
add eax, 2
push eax
push edi
call fcn.00490ac0
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x210
ret
mov ecx, 0x41
mov dword [esp + 0x12], 0x3a
mov word [esp + 0x10], cx
push 0x104
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov esi, eax
cmp esi, 2
jbe 0x45220e
sub esi, 2
push esi
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.00491e05
add esp, 0xc
test eax, eax
jne 0x45220e
cmp word [edi + esi*2], 0x5c
je 0x452234
mov ax, word [esp + 0x10]
inc ax
mov word [esp + 0x10], ax
cmp ax, 0x5a
jbe 0x4521d5
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x210
ret
mov dx, word [esp + 0x10]
mov ax, word [esp + 0x12]
sub ebx, esi
mov word [edi], dx
lea ecx, [ebx + ebx + 2]
push ecx
lea edx, [edi + esi*2]
mov word [edi + 2], ax
push edx
add edi, 4
push edi
call fcn.00490ac0
add esp, 0xc
add ebx, 2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x210
ret
Function at 0x4556d0
Capabilities:
Get file version info

Disassembly:
mov ecx, dword [0x4ca4b0]
sub esp, 0x10c
push ebp
mov ebp, dword [esp + 0x114]
push edi
mov edi, eax
call fcn.004150b0
test edi, edi
je 0x455849
cmp word [edi], 0
je 0x455849
push esi
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x45576a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4c6a44]
test byte [ecx + 0x100], 1
mov dword [ecx + 0x30], eax
jne 0x45574b
mov ecx, dword [0x4cad6c]
push 1
push esi
push 0xffffffffffffffff
push 0x4a6334
push ecx
call fcn.004797c0
pop esi
pop edi
pop ebp
add esp, 0x10c
ret 4
push 0x4a3920
push 0
push 0x4a6334
mov ecx, ebp
call fcn.004302a0
pop esi
pop edi
pop ebp
add esp, 0x10c
ret 4
push ebx
push esi
call fcn.00490084
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x45581e
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push 0x4a7fe4
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x45581e
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
shr ecx, 0x10
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push 0x4ae6f0
mov esi, 0x80
lea edi, [esp + 0x30]
call fcn.00476740
push ebx
call fcn.00490941
mov eax, dword [0x4cad6c]
mov edx, dword [0x4c6a44]
add esp, 0x18
push 1
push 0
push 0xffffffffffffffff
push 0x4a3930
push eax
mov dword [edx + 0x30], 0
call fcn.004797c0
mov edx, dword [0x4ca4b0]
push 1
push 0
push 0xffffffffffffffff
mov ecx, edi
push ecx
push edx
call fcn.004797c0
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x10c
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4c6a44]
push ebx
mov dword [ecx + 0x30], eax
call fcn.00490941
add esp, 4
push ebp
call fcn.00432d30
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x10c
ret 4
mov eax, dword [0x4c6a44]
test byte [eax + 0x100], 1
mov dword [eax + 0x30], 0x57
jne 0x455880
mov edx, dword [0x4cad6c]
push 1
push 0
push 0xffffffffffffffff
push 0x4a6334
push edx
call fcn.004797c0
pop edi
pop ebp
add esp, 0x10c
ret 4
push 0x4a3920
push 0
push 0x4a6334
mov ecx, ebp
call fcn.004302a0
pop edi
pop ebp
add esp, 0x10c
ret 4
Function at 0x4561c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x254
push 0x2a
push esi
call fcn.00490e21
add esp, 8
test eax, eax
jne 0x4561f8
push 0x3f
push esi
call fcn.00490e21
add esp, 8
test eax, eax
jne 0x4561f8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add esp, 0x254
ret
lea eax, [esp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x456211
xor al, al
add esp, 0x254
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
add esp, 0x254
ret

Function at 0x456230
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x18
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x456251
xor al, al
add esp, 0x18
ret
lea ecx, [esp + 0xc]
push ecx
push 0x4ae714
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45624b
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
add esp, 0x18
ret

Function at 0x4562b0
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push esi
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x45630f
lea ecx, [esp + 4]
push ecx
push esi
mov dword [esp + 0xc], eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 4]
test eax, eax
je 0x45630f
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x45630f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 8
ret
Function at 0x467290
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [eax + 4]
test eax, eax
je 0x4672a0
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret

Function at 0x4672b0
Capabilities:
Hide graphical window

Disassembly:
cmp dword [eax + 0x24], 0
mov eax, dword [eax + 4]
jne 0x4672cc
test eax, eax
je 0x4672df
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret
push 0
push 0x2af80006
push 0x414
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
ret

Function at 0x467320
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x54
cmp dword [edi + 4], 0
push ebx
push ebp
push esi
je 0x467476
xor ebp, ebp
cmp dword [edi + 0x10], ebp
jbe 0x467366
xor esi, esi
mov eax, dword [edi + 0x18]
cmp dword [eax + esi + 8], 0
je 0x46735d
cmp byte [eax + esi + 4], 6
je 0x46735d
mov edx, dword [esi + eax + 8]
lea ecx, [esi + eax]
push edx
push edi
mov eax, 0x4bf2a4
call fcn.00467540
inc ebp
add esi, 0x14
cmp ebp, dword [edi + 0x10]
jb 0x467339
xor esi, esi
xor ebx, ebx
xor ebp, ebp
cmp esi, dword [edi + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
je 0x46739b
mov eax, dword [edi + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + ecx]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x20000
je 0x4673e4
cmp dword [esp + 0x10], 1
jne 0x4673d3
cmp ebx, 1
jle 0x4673d3
cmp ebp, 0xffffffff
jne 0x4673ae
xor ebp, ebp
push 0xa
lea eax, [esp + 0x24]
push eax
push ebp
call fcn.0048fd75
mov edx, dword [esp + 0x24]
add esp, 0xc
push 1
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.004797c0
cmp esi, dword [edi + 0x10]
je 0x467463
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x10], ebx
mov eax, dword [edi + 0x18]
mov ecx, dword [esp + 0x14]
cmp byte [eax + ecx + 4], 6
jne 0x46744c
mov esi, dword [eax + ecx + 8]
inc ebx
test esi, esi
je 0x467403
inc dword [esp + 0x10]
mov dword [esp + 0x18], esi
mov edx, dword [eax + ecx]
push 0
push 0
push 0xf0
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x467437
test ebp, ebp
je 0x467424
or ebp, 0xffffffff
jmp 0x467426
mov ebp, ebx
test esi, esi
je 0x46744c
push 1
push 0
push 0xffffffffffffffff
push 0x4a6334
jmp 0x467446
test esi, esi
je 0x46744c
push 1
push 0
push 0xffffffffffffffff
push 0x4a3930
push esi
call fcn.004797c0
mov esi, dword [esp + 0x1c]
add dword [esp + 0x14], 0x14
inc esi
mov dword [esp + 0x1c], esi
cmp esi, dword [edi + 0x10]
jbe 0x46737f
cmp byte [esp + 0x64], 0
je 0x467476
mov eax, dword [edi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x54
ret 4
Function at 0x46bbd0
Capabilities:
Get keyboard layout

Disassembly:
push ecx
push esi
mov esi, eax
movzx eax, word [esi]
cmp eax, 0x20
je 0x46bbe1
cmp eax, 9
jne 0x46bbe6
add esi, 2
jmp 0x46bbd4
movzx ecx, word [esi]
test cx, cx
jne 0x46bbf3
xor al, al
pop esi
pop ecx
ret
cmp word [esi + 2], 0
lea eax, [esi + 2]
jne 0x46bc0d
mov eax, dword [esp + 0xc]
mov word [eax + 2], cx
mov byte [eax], 0
mov al, 1
pop esi
pop ecx
ret
push ebx
push ebp
push edi
mov edi, dword [esp + 0x18]
push 0x2b
xor bl, bl
push eax
mov byte [edi], 1
mov byte [esp + 0x1b], bl
call fcn.00490e21
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x46bcdc
lea eax, [ebp - 2]
cmp eax, esi
jbe 0x46bc54
lea esp, [esp]
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x46bc4d
cmp ecx, 9
jne 0x46bc54
sub eax, 2
cmp eax, esi
ja 0x46bc40
sub eax, esi
sar eax, 1
lea edi, [eax + 1]
push edi
push 0x4a4224
push esi
call fcn.004901fd
add esp, 0xc
test eax, eax
jne 0x46bc73
or bl, 1
jmp 0x46bca1
push edi
push 0x4a421c
push esi
call fcn.004901fd
add esp, 0xc
test eax, eax
jne 0x46bc8b
or bl, 4
jmp 0x46bca1
push edi
push 0x4a4210
push esi
call fcn.004901fd
add esp, 0xc
test eax, eax
jne 0x46bd14
or bl, 0x10
lea esi, [ebp + 2]
movzx eax, word [esi]
cmp eax, 0x20
je 0x46bcb1
cmp eax, 9
jne 0x46bcb6
add esi, 2
jmp 0x46bca4
cmp word [esi], 0
je 0x46bd14
lea eax, [esi + 2]
push 0x2b
push eax
call fcn.00490e21
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x46bc32
mov edi, dword [esp + 0x18]
mov byte [esp + 0x13], bl
cmp word [esi + 2], 0
jne 0x46bd20
push 1
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx edx, word [esi]
push eax
lea ecx, [esp + 0x1b]
push ecx
push edx
call dword [sym.imp.USER32.dll_CharLowerW]
mov esi, eax
call fcn.00414130
mov bl, byte [esp + 0x1f]
movzx eax, al
add esp, 0xc
mov word [edi + 2], ax
jmp 0x46bd3e
pop edi
pop ebp
mov byte [esp + 0xb], bl
pop ebx
xor al, al
pop esi
pop ecx
ret
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
xor ecx, ecx
mov eax, esi
call fcn.00414040
movzx ecx, al
add esp, 8
mov word [edi + 2], cx
test bl, 1
je 0x46bd46
or byte [edi], 8
test bl, 4
je 0x46bd4e
or byte [edi], 0x10
test bl, 0x10
je 0x46bd56
or byte [edi], 4
cmp word [edi + 2], 0
pop edi
pop ebp
pop ebx
setne al
pop esi
pop ecx
ret
Function at 0x472d70
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x30008
call fcn.0049b300
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x472d8a
cmp word [esi], 0
jne 0x472d8f
mov esi, 0x4aafec
xor eax, eax
lea edx, [esp + 0xc]
push edx
mov word [esp + 0x10014], ax
xor ecx, ecx
lea eax, [esp + 0x14]
push eax
mov word [esp + 0x10], cx
mov ecx, dword [esp + 0x3001c]
push 0x8000
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp word [ebx], 0
je 0x472e0d
cmp word [edi], 0
jne 0x472dcd
lea edi, [esp + 8]
lea edx, [esp + 0x10]
push edx
push 0xffff
lea eax, [esp + 0x10018]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [0x4ca4b0]
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x1001c]
push eax
push ecx
call fcn.004797c0
pop edi
pop esi
add esp, 0x30008
ret 4
cmp word [edi], 0
je 0x472e2e
lea ecx, [esp + 0x10]
push ecx
push 0xffff
lea edx, [esp + 0x10018]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
jmp 0x472e46
lea eax, [esp + 0x10]
push eax
push 0xffff
lea ecx, [esp + 0x10018]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
test eax, eax
je 0x472de8
lea eax, [esp + 0x10010]
cmp word [eax], 0
jne 0x472e66
cmp word [eax + 2], 0
je 0x472de8
mov edx, 0xa
mov word [eax], dx
add eax, 2
jmp 0x472e51

Function at 0x472e70
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
sub esp, 0x258
push ebx
push ebp
push esi
mov esi, eax
mov ebp, 1
push edi
mov dword [esp + 0x10], ebp
test esi, esi
je 0x472eec
cmp word [esi], 0
je 0x472eec
push 4
push 0x4c0800
push esi
call fcn.00491e05
add esp, 0xc
test eax, eax
mov eax, esi
jne 0x472ea8
lea eax, [esi + 8]
mov ebx, 0x4ade40
call fcn.00409ab0
test eax, eax
je 0x472edb
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x472eec
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x258
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
test al, al
jne 0x472ece
push 0
push 0
push 1
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x472ece
mov edx, dword [esp + 0x26c]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x472f15
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, esi
sar eax, 1
mov esi, eax
mov ecx, 0x5d
push 0
mov word [edx + esi*2], cx
lea edx, [esp + 0x18]
push edx
push 4
push 0x4c0670
push edi
lea ebx, [esi + esi + 2]
call ebp
test eax, eax
je 0x472f72
cmp dword [esp + 0x14], 4
jne 0x472f72
mov ecx, dword [esp + 0x26c]
push 0
lea eax, [esp + 0x18]
push eax
push ebx
push ecx
push edi
call ebp
test eax, eax
je 0x472f72
cmp dword [esp + 0x14], ebx
je 0x472f7a
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x472f89
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x26c]
pop edi
xor edx, edx
mov word [eax + esi*2], dx
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
add esp, 0x258
ret
Function at 0x473850
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push edi
mov dword [esp + 0x30], 0xff
call ebx
cmp eax, 0x103
je 0x473917
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [0x4c6a44]
mov edx, dword [ecx + 0xd0]
lea eax, [esp + 0x14]
push eax
or edx, 0x20019
push edx
push 0
lea eax, [esp + 0x2c]
push eax
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x473924
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00473850
mov edx, dword [esp + 0x18]
add esp, 4
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x473924
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
jne 0x473924
lea ecx, [esp + 0x18]
push ecx
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push esi
push edi
mov dword [esp + 0x30], 0xff
call ebx
cmp eax, 0x103
jne 0x47389a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret

Function at 0x473940
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
push esi
test ebx, ebx
je 0x473a30
test edi, edi
je 0x473959
cmp word [edi], 0
jne 0x473961
test ebp, ebp
je 0x473a30
mov ecx, dword [0x4c6a44]
mov edx, dword [ecx + 0xd0]
lea eax, [esp + 0x14]
push eax
or edx, 0x2001f
push edx
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x473a02
mov eax, dword [esp + 0x14]
test ebp, ebp
jne 0x473a19
push eax
call fcn.00473850
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x473a02
mov eax, 1
test byte [0x4ccb7c], al
jne 0x4739e0
or dword [0x4ccb7c], eax
push 0x4c069c
push 0x4ae590
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ccb78], eax
jmp 0x4739e5
mov eax, dword [0x4ccb78]
mov edx, dword [0x4c6a44]
mov ecx, dword [edx + 0xd0]
test ecx, ecx
je 0x473a0f
test eax, eax
je 0x473a0f
push 0
push ecx
push edi
push ebx
call eax
mov esi, eax
cmp esi, 0xffffffff
jne 0x473a35
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x473a37
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x473a00
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 0x14]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x473a02
mov esi, 0x57
mov eax, esi
mov edx, dword [0x4c6a44]
mov dword [edx + 0x30], eax
mov edx, dword [esp + 0x10]
test esi, esi
setne al
movzx ecx, al
push ecx
push edx
call fcn.00430340
pop esi
pop ebp
pop ecx
ret 8
Function at 0x479600
Capabilities:
Write clipboard data

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov ecx, 0x4cc048
call fcn.004049b0
test eax, eax
jne 0x47962d
push 0x4a3920
push 0x4a3cb0
mov ecx, 0x4cb508
call fcn.00430950
pop esi
add esp, 8
ret
push ebx
push ebp
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esp + 0x1c]
add eax, esi
mov ebp, esi
add esi, 4
mov dword [esp + 0x10], eax
cmp esi, eax
jbe 0x479694
xor esi, esi
cmp dword [0x4cc060], esi
je 0x479680
cmp dword [0x4cc050], esi
je 0x47966e
mov edx, dword [0x4cc048]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4cc050], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4cc060], esi
mov dword [0x4cc048], esi
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x10]
mov ebp, dword [ebp]
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x479649
mov ecx, esi
add esi, 4
cmp esi, eax
ja 0x479649
mov ebx, dword [ecx]
mov ebp, esi
add esi, ebx
cmp esi, eax
ja 0x479649
xor ecx, ecx
test ebx, ebx
sete cl
add ecx, ebx
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x47970b
test ebx, ebx
je 0x4796f1
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x479761
push ebx
push ebp
push eax
call fcn.00497ff0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebp, esi
mov edx, dword [esp + 0x14]
push edi
push edx
call dword [sym.imp.USER32.dll_SetClipboardData]
lea esi, [ebp + 4]
cmp esi, dword [esp + 0x10]
jbe 0x479690
jmp 0x479649
cmp dword [0x4cc060], 0
je 0x479745
cmp dword [0x4cc050], 0
je 0x479733
mov eax, dword [0x4cc048]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4cc050], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
mov dword [0x4cc060], eax
mov dword [0x4cc048], eax
push 0x4a3920
push 0x4a66e0
mov ecx, 0x4cb508
call fcn.00430950
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
cmp dword [0x4cc060], esi
je 0x47979f
cmp dword [0x4cc050], esi
je 0x47978d
mov ecx, dword [0x4cc048]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4cc050], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4cc060], esi
mov dword [0x4cc048], esi
push 0x4a3920
push 0x4a3c7c
mov ecx, 0x4cb508
call fcn.00430950
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x479b90
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
movzx eax, byte [esi + 0x17]
push edi
cmp eax, 3
ja case.default.0x479ba3
jmp dword [eax*4 + 0x479d64]
mov eax, esi
call fcn.00401160
cmp dword [0x4ca6d0], 0
jne 0x479c6f
cmp dword [esi + 0xc], 0
jne 0x479c6f
mov edi, dword [esp + 0x14]
cmp dword [0x4cca60], esi
jne 0x479bd8
test edi, edi
jne 0x479c35
mov ecx, dword [esi + 0x18]
push 0
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x479c31
mov dword [0x4cca60], 0
test edi, edi
je 0x479c29
mov eax, dword [0x4ca6ac]
test eax, eax
je 0x479c1a
mov edx, dword [esi + 0x18]
push edx
push 0x4c0a38
push eax
push 0x4cb508
xor ecx, ecx
call fcn.00430ee0
mov ecx, dword [esi + 0x18]
call fcn.00477c60
pop edi
pop esi
pop ebx
pop ecx
ret 4
dec eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
test edi, edi
je 0x479c60
cmp byte [esi + 0x17], 0
jne 0x479c40
mov eax, dword [esi + 0xc]
jmp 0x479c42
mov eax, esi
test byte [eax + 0x15], 4
je 0x479c4f
mov eax, esi
call fcn.00430ff0
xor eax, eax
mov word [edi], ax
mov dword [0x4cca60], eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov dword [0x4cca60], esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esi + 0xc]
mov edi, dword [esp + 0x14]
mov ebx, eax
shr ebx, 1
test edi, edi
je 0x479cf0
test eax, eax
jne 0x479ca7
movzx eax, byte [esi + 0x17]
neg eax
sbb eax, eax
and eax, esi
test byte [eax + 0x15], 4
je 0x479c99
mov eax, esi
call fcn.00430ff0
xor ecx, ecx
mov word [edi], cx
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 8]
cmp edi, ecx
je 0x479cf0
cmp eax, 0x186a0
jae 0x479cdf
movzx eax, word [ecx]
test ax, ax
je 0x479cd1
lea ecx, [ecx]
add ecx, 2
mov word [edi], ax
movzx eax, word [ecx]
add edi, 2
test ax, ax
jne 0x479cc0
xor edx, edx
mov word [edi], dx
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
push eax
push ecx
push edi
call fcn.00497ff0
add esp, 0xc
xor eax, eax
mov word [edi + ebx*2], ax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esi + 0xc]
call fcn.00479b90
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov esi, dword [esp + 0x14]
push esi
mov ecx, 0x4cc048
call fcn.00404410
cmp eax, 0xffffffff
jne 0x479d23
xor eax, eax
test esi, esi
je 0x479d5b
xor edx, edx
mov word [esi + eax*2], dx
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x479d41
xor ecx, ecx
mov word [eax], cx
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov edx, dword [esi + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x10]
push edx
push eax
call ecx
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret 4