joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401300
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494c9d
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4af480]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4a4e60
lea ecx, [ebp - 0x60]
call fcn.00476c10
push 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0
call fcn.00477270
xor edi, edi
cmp dword [str.Options], edi
je 0x40140f
mov ecx, 0x4b0198
xor esi, esi
nop dword [eax]
mov eax, dword [esi + 0x4b01a8]
dec eax
cmp eax, 5
ja case.0x401370.4
jmp dword [eax*4 + 0x4014dc]
push dword [esi + 0x4b01ac]
push dword [esi + 0x4b01a0]
push dword [esi + 0x4b019c]
push dword [ecx]
lea ecx, [ebp - 0x60]
call fcn.00477780
jmp case.0x401370.4
push dword [esi + 0x4b01ac]
push dword [esi + 0x4b01a0]
push dword [esi + 0x4b019c]
push dword [ecx]
lea ecx, [ebp - 0x60]
call fcn.004777c0
jmp case.0x401370.4
push dword [esi + 0x4b01a4]
push dword [esi + 0x4b01ac]
push dword [esi + 0x4b01a0]
push dword [esi + 0x4b019c]
push dword [ecx]
lea ecx, [ebp - 0x60]
call fcn.00477800
jmp case.0x401370.4
push dword [esi + 0x4b01ac]
push dword [esi + 0x4b019c]
push dword [ecx]
lea ecx, [ebp - 0x60]
call fcn.00476fd0
mov ecx, dword [esi + 0x4b01a0]
mov dword [ecx], eax
inc edi
lea esi, [edi + edi*2]
shl esi, 3
cmp dword [esi + 0x4b0198], 0
lea ecx, [esi + 0x4b0198]
jne 0x401360
mov eax, dword [0x4b4ddc]
cmp eax, 0x80000000
jne 0x401420
mov eax, 0xa0
push 0
push 0x14
and eax, 0x1a0
lea ecx, [ebp - 0x60]
or eax, 0x40
mov edx, 0x4b4e2c
push str.File_u
push str.RecentFileList
mov dword [0x4b4ddc], eax
call fcn.00401230
push 0x4a4e84
push 0xa
push 0x4a4e88
push str.RecentFileMasks
mov edx, 0x4b4e34
lea ecx, [ebp - 0x60]
call fcn.00401230
mov eax, dword [0x4b4e3c]
add esp, 0x20
cmp eax, 0xe
ja 0x40147d
cmp dword [eax*8 + 0x4b0d34], 0
jne 0x401487
mov dword [0x4b4e3c], 6
push 0x20
lea eax, [ebp - 0x50]
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp dword [0x4b4e10], 0
mov ax, word [ebp - 0x50]
mov word [0x4b4de0], ax
jne 0x4014b7
mov dword [0x4b4e10], 0x12c
lea ecx, [ebp - 0x60]
call fcn.00476c50
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret

Function at 0x402b50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, ecx
push esi
mov bl, 1
call edi
cmp eax, 0xffffffff
je 0x402b87
test al, 0x10
jne 0x402b8d
test bl, bl
je 0x402b87
push esi
call fcn.00401a80
cmp eax, esi
jbe 0x402b87
xor ecx, ecx
xor bl, bl
push esi
mov word [eax - 2], cx
call edi
cmp eax, 0xffffffff
jne 0x402b65
pop edi
pop esi
xor al, al
pop ebx
ret
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x407040
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, ecx
mov byte [ebp - 1], 0
push edi
mov edi, dword [ebx]
mov dword [ebp - 0xc], edi
mov eax, dword [edi + 8]
add eax, 0x10
push eax
push 0
push dword [0x4b3a28]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x4071ef
push 0x1f4
push dword [ebx + 0x101c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4071e0
nop word [eax + eax]
mov eax, dword [0x4b4f9c]
test eax, eax
je 0x4071f8
test byte [eax + 0x40], 1
je 0x4071f8
test dword [ebx + 0x124c], 0x100
lea esi, [ebx + 0x124c]
mov eax, dword [ebx + 0x1230]
mov dword [ebp - 0x10], esi
jne 0x4070ef
push 0x203
push 3
push eax
call fcn.00416020
add esp, 0xc
cmp eax, 6
je 0x407102
cmp byte [ebp - 1], 0
je 0x407114
jmp 0x407106
push dword [ebx + 0x1248]
push 0x76
push 1
push eax
call fcn.00416020
add esp, 0x10
mov byte [ebp - 1], 1
push 3
push dword [ebx + 0x101c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [0x4b4f9c]
test eax, eax
je 0x407124
and dword [eax + 0x40], 0xfffffffe
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 8]
push 0x1f4
push dword [ebx + 0x1020]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40715c
push dword [ebp - 0x18]
push edi
push esi
call fcn.0047efe0
add esp, 0xc
mov dword [edi + 0xc], 0
push dword [ebx + 0x1020]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4071c4
add esi, 0x10
mov dword [ebp - 0x14], 0
lea edi, [eax + esi]
cmp esi, edi
jae 0x4071be
push 6
push str.ERROR:
push esi
call fcn.00485d60
add esp, 0xc
test eax, eax
je 0x407217
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push dword [ebx + 0x1024]
call fcn.00437ad0
test al, al
je 0x4071b3
mov edx, esi
mov ecx, ebx
call fcn.00405890
push dword [ebp - 0x14]
call fcn.00437a70
mov al, byte [esi]
test al, al
je 0x40720e
inc esi
cmp esi, edi
jb 0x4071b3
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
push 0x1f4
push dword [ebx + 0x101c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4070a0
push esi
push 0
push dword [0x4b3a28]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x124c]
mov dword [ebp - 0x10], eax
jmp 0x407127
test al, al
jne 0x407174
inc esi
cmp esi, edi
jae 0x4071be
mov al, byte [esi]
jmp 0x407206
add esi, 6
push esi
call fcn.00486684
mov esi, dword [ebp - 8]
add esp, 4
mov edi, dword [ebp - 0xc]
mov dword [ebx + 0x1248], eax
mov eax, dword [ebp - 0x10]
or dword [eax], 0x100
mov eax, dword [0x4b4f9c]
test eax, eax
je 0x4071c4
or dword [eax + 0x40], 1
jmp 0x4071c4
Function at 0x4085b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4af480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push 8
push edi
mov dword [ebp - 0x220], edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, eax
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
mov dword [ebp - 0x21c], ebx
call fcn.0047ee80
add esp, 0xc
push 0
push 0
push 0x1004
push dword [ebx + 0x1238]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [ebx + 0x1014]
mov dword [ebp - 0x218], eax
test esi, esi
je 0x40865d
mov edx, 0x105
lea ecx, [ebp - 0x210]
nop dword [eax]
lea eax, [edx + 0x7ffffef9]
test eax, eax
je 0x408650
movzx eax, word [esi]
test ax, ax
je 0x408650
mov word [ecx], ax
add esi, 2
add ecx, 2
sub edx, 1
jne 0x408630
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea edx, [ebp - 0x210]
mov ecx, edi
call fcn.004081f0
cmp eax, 1
jne 0x408789
push 0
push 0
push 2
push 0
push eax
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4086bd
lea eax, [ebp - 0x210]
push eax
push 0
push 0xdb
push edi
call fcn.0047ab70
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
xor edi, edi
cmp dword [ebp - 0x218], edi
jle 0x408782
nop dword [eax + eax]
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x25c], 4
push eax
mov eax, dword [ebp - 0x21c]
push 0
push 0x104b
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x23c], 0
push dword [eax + 0x1238]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x408760
lea ecx, [eax + 8]
mov esi, ecx
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x408726
push 0
lea eax, [ebp - 0x214]
sub esi, edx
push eax
push esi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
cmp dword [ebp - 0x214], esi
jne 0x40876f
lea eax, [ebp - 0x214]
push eax
push 2
push 0x4a5e98
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc edi
cmp edi, dword [ebp - 0x218]
jl 0x4086d0
jmp 0x408782
push 0xb3
push dword [ebp - 0x220]
call fcn.0047ab70
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
Function at 0x40a9a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4af480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
push 0x406
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x40aa21
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call esi
mov ecx, 0x4b47c0
lea esi, [ebp - 0x20c]
mov edx, 0x104
sub esi, ecx
nop
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x40aa0e
movzx eax, word [esi + ecx]
test ax, ax
je 0x40aa0e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x40a9f0
mov esi, dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
push 0x408
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x40aa7d
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call esi
mov ecx, 0x4b45b8
lea esi, [ebp - 0x20c]
mov edx, 0x104
sub esi, ecx
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x40aa70
movzx eax, word [esi + ecx]
test ax, ax
je 0x40aa70
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x40aa52
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov esi, dword [sym.imp.USER32.dll_IsDlgButtonChecked]
push 0x41e
push edi
call esi
dec eax
neg eax
push 0x41f
sbb eax, eax
inc eax
push edi
mov dword [0x4b4de8], eax
call esi
dec eax
neg eax
push 0x411
sbb eax, eax
inc eax
push edi
mov dword [0x4b4df4], eax
call esi
cmp eax, 1
jne 0x40aabf
or dword [0x4b4ddc], 0x20
jmp 0x40aac6
and dword [0x4b4ddc], 0xffffffdf
push 0x412
push edi
call esi
cmp eax, 1
jne 0x40aadf
or dword [0x4b4ddc], 0x80
jmp 0x40aae9
and dword [0x4b4ddc], 0xffffff7f
push 0x413
push edi
call esi
cmp eax, 1
jne 0x40ab02
or dword [0x4b4ddc], 0x100
jmp 0x40ab0c
and dword [0x4b4ddc], 0xfffffeff
push 0x414
push edi
call esi
pop edi
pop esi
cmp eax, 1
jne 0x40ab24
or dword [0x4b4ddc], 0x40
jmp 0x40ab2b
and dword [0x4b4ddc], 0xffffffbf
call fcn.00401500
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
Function at 0x40c430
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
mov eax, dword [0x4af480]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push esi
push edi
push 8
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 2
mov ebx, eax
push 0xffffffffffffffff
push 0x100c
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
mov dword [esp + 0x24], esi
cmp esi, 0xffffffff
jne 0x40c4ca
push dword [ebx + 0xc]
mov edi, dword [sym.imp.USER32.dll_IsWindowVisible]
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x40c491
push 0
push dword [ebx + 0xc]
call esi
push dword [ebx + 0x10]
call edi
test eax, eax
je 0x40c4a1
push 0
push dword [ebx + 0x10]
call esi
push dword [ebx + 0x14]
call edi
test eax, eax
je 0x40c5bd
push 0
push dword [ebx + 0x14]
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
push esi
push dword [ebx + 8]
call fcn.00478eb0
mov dword [esp + 0x10], eax
test eax, eax
je 0x40c5bd
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x14]
push eax
push 1
mov edx, esi
call fcn.0040bdb0
mov edx, dword [esp + 0x20]
add esp, 8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
sub eax, edx
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
push 0x14
push eax
mov eax, dword [esp + 0x24]
sub eax, ecx
push eax
push edx
push ecx
push 0
push dword [ebx + 0xc]
call edi
push 1
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x30]
call fcn.0040bc30
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [esp + 0x30]
add esp, 8
push eax
push dword [ebx + 0xc]
call esi
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 8]
push eax
push 2
call fcn.0040bdb0
mov edx, dword [esp + 0x20]
add esp, 8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
sub eax, edx
push 0x14
push eax
mov eax, dword [esp + 0x24]
sub eax, ecx
push eax
push edx
push ecx
push 0
push dword [ebx + 0x10]
call edi
push 2
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x30]
call fcn.0040bc30
add esp, 8
lea eax, [esp + 0x28]
push eax
push dword [ebx + 0x10]
call esi
push dword [ebx + 0xc]
mov edi, dword [sym.imp.USER32.dll_IsWindowVisible]
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
jne 0x40c5ad
push 5
push dword [ebx + 0xc]
call esi
push dword [ebx + 0x10]
call edi
test eax, eax
jne 0x40c5bd
push 5
push dword [ebx + 0x10]
call esi
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
Function at 0x40d4c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x435
push ecx
mov dword [ebp - 8], 0x200
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
xor ecx, ecx
mov edx, 2
lea edi, [eax + 1]
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047d5a7
add esp, 4
mov dword [ebp - 0xc], eax
mov esi, eax
push edi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, esi
movzx eax, word [ecx]
mov ecx, eax
test ax, ax
je 0x40d61c
mov edi, dword [ebp + 8]
nop dword [eax]
movzx eax, cx
xor ecx, ecx
cmp cx, ax
jae 0x40d554
nop word [eax + eax]
cmp ax, 0x20
ja 0x40d554
movzx eax, word [esi + 2]
add esi, 2
xor ecx, ecx
cmp cx, ax
jb 0x40d540
movzx eax, word [esi]
mov ecx, eax
test ax, ax
je 0x40d61c
cmp ecx, 0x30
jne 0x40d580
movzx eax, word [esi + 2]
mov edx, eax
cmp eax, 0x78
je 0x40d579
mov eax, ecx
cmp edx, 0x58
jne 0x40d580
movzx eax, word [esi + 4]
add esi, 4
movzx eax, ax
push eax
call fcn.00485240
add esp, 4
test eax, eax
je 0x40d615
movzx eax, word [esi]
push eax
call fcn.00485bee
mov ebx, eax
mov ecx, 5
add esi, 2
lea eax, [ebx - 0x41]
cmp ecx, eax
sbb eax, eax
and eax, 0xfffffff9
add eax, 0x37
sub ebx, eax
movzx eax, word [esi]
push eax
call fcn.00485240
add esp, 8
test eax, eax
je 0x40d5ea
movzx eax, word [esi]
push eax
shl ebx, 4
call fcn.00485bee
add ebx, eax
add esp, 4
add eax, 0xffffffbf
add esi, 2
cmp eax, 5
ja 0x40d5e7
add ebx, 0xffffffc9
jmp 0x40d5ea
add ebx, 0xffffffd0
cmp word [esi], 0x20
ja 0x40d615
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x40d615
mov eax, dword [ebp - 4]
dec ecx
mov dword [ebp - 8], ecx
mov byte [eax + edi], bl
inc eax
mov dword [ebp - 4], eax
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x40d530
jmp 0x40d61c
mov dword [ebp - 4], 0
push dword [ebp - 0xc]
call fcn.00457d90
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40dca0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
cmp byte [ebp + 0x10], 0
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, dword [eax]
mov dword [ebp + 8], ebx
je 0x40dcc3
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push dword [eax + 4]
xor edx, edx
mov ecx, ebx
push 0
call fcn.004171f0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x40deb3
push 0x4b47c0
push 0
lea ecx, [edi + 0x18]
call fcn.00416700
mov esi, dword [ebp + 0xc]
add esp, 8
mov dword [edi + 0x23c], 0x1100
cmp esi, 0x9c49
je 0x40dd17
cmp esi, 0x9c4a
je 0x40dd17
cmp esi, 0x9c4c
jne 0x40dd21
mov dword [edi + 0x23c], 0x1900
push edi
push 0x4367c0
mov edx, 0xaf
mov dword [edi + 0x244], 0xaf
mov ecx, ebx
call fcn.00416140
mov ebx, dword [edi + 0x10]
lea eax, [edi + 0x10]
add esp, 8
cmp ebx, eax
je 0x40dea5
sub esi, 0x9c49
je 0x40de18
sub esi, 1
je 0x40ddaf
sub esi, 2
jne 0x40de92
push 0x38
lea eax, [ebp - 0x78]
mov dword [ebp - 0x7c], 0x3c
push esi
push eax
call fcn.0047ee80
mov eax, dword [ebx + 0x1c]
add esp, 0xc
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x6c], 0x4b4bd0
mov dword [ebp - 0x60], 1
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40de92
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40de92
mov esi, dword [ebx + 0x1c]
mov ecx, esi
call fcn.00419300
test eax, eax
je 0x40dde7
push 0x4a6dac
push eax
call fcn.00480a05
add esp, 8
test eax, eax
jne 0x40dde7
mov eax, dword [ebp + 8]
push 0x1a0
push 1
push eax
call fcn.0047af20
add esp, 0xc
jmp 0x40de92
push 0x4b5270
push str.OpenAs_RunDLLW
push str.Shell32.dll
call fcn.00478910
test eax, eax
jne 0x40de92
mov eax, dword [ebp + 8]
push 1
push esi
push dword [0x4b3a24]
push eax
call dword [0x4b5270]
jmp 0x40de92
mov eax, dword [ebx + 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x3c], 0x400
mov dword [ebp - 0x34], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40de92
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x483
jne 0x40de92
lea eax, [ebp - 0x40]
mov dword [ebp - 0x34], str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40de92
call esi
test ebx, ebx
je 0x40dea5
push ebx
push 0
push dword [0x4b3a28]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x250
push edi
call fcn.0047d599
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414100
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4af480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 8
push ecx
mov edi, edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test byte [edi + 0xc], 0x40
xorps xmm0, xmm0
mov esi, eax
mov dword [ebp - 0x30], 0x2c
movups xmmword [ebp - 0x2c], xmm0
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
je 0x41417c
lea eax, [ebp - 0x30]
push eax
push dword [esi + 0x1035c]
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x10360], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x10364], eax
and dword [edi + 0xc], 0xffffffbf
pop edi
mov dword [esi + 0x1035c], 0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x1035c]
test eax, eax
je 0x41419f
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41419f
push 0
push dword [esi + 0x1035c]
call dword [sym.imp.USER32.dll_ShowWindow]
test byte [edi + 0xc], 8
je 0x4141b6
mov ecx, dword [esi + 0xbc]
test ecx, ecx
je 0x4141b6
mov edx, edi
call fcn.00417a70
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
Function at 0x4141d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4af480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongW]
push esi
mov esi, edx
push edi
mov edi, ecx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x5c], edi
movzx eax, word [esi + 0xc]
cmp eax, 0x66
je 0x414205
cmp eax, 0x46
jne 0x414358
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x414358
push 8
push edi
call ebx
mov edi, eax
mov ebx, 0x15
mov eax, dword [edi + 0x1035c]
lea ecx, [edi + 0x10131]
test eax, eax
jne 0x41427b
mov eax, dword [0x4b3a24]
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
push ecx
movups xmmword [ecx + 0x10], xmm0
movq qword [ecx + 0x20], xmm0
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x5c]
mov dword [ecx + 4], eax
lea eax, [edi + 0x1015a]
mov dword [ecx + 0x10], eax
mov eax, 0x100
mov dword [ecx], 0x28
mov word [ecx + 0x18], ax
mov dword [ecx + 0xc], 0x10001
call dword [sym.imp.COMDLG32.dll_FindTextW]
mov dword [edi + 0x1035c], eax
cmp dword [edi + 0x10360], 0
jne 0x414293
cmp dword [edi + 0x10364], 0
mov ecx, 0x17
cmove ebx, ecx
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4142a4
and ebx, 0xffffffef
or ebx, 0x40
push ebx
push 0
push 0
push dword [edi + 0x10364]
push dword [edi + 0x10360]
push 0
push dword [edi + 0x1035c]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [edi + 0x1035c]
test eax, eax
je 0x414347
test bl, 0x40
je 0x414347
push eax
call dword [sym.imp.USER32.dll_GetTopWindow]
mov esi, eax
test esi, esi
je 0x414344
mov ebx, dword [sym.imp.USER32.dll_SetFocus]
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x414335
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x8000000
jne 0x414335
push 0x28
lea eax, [ebp - 0x54]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [ebp - 0x54]
push 0x4a6158
push eax
call fcn.00480a05
add esp, 8
test eax, eax
jne 0x414335
push esi
call ebx
push 0xffffffffffffffff
push 0
push 0xb1
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x4142e5
mov esi, dword [ebp - 0x58]
mov eax, dword [esi]
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [edi + 0xbc], eax
mov edi, dword [ebp - 0x5c]
cmp word [esi + 0xc], 0x72
jne 0x414380
push 8
push edi
call ebx
mov ecx, edi
or dword [eax + 0x1013d], 8
mov edx, dword [esi]
mov dword [eax + 0xbc], edx
lea edx, [eax + 0x10131]
call fcn.00414100
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
Function at 0x4163c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4af480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, edx
mov dword [ebp - 0x420], 0
push esi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4163ff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x420]
push eax
push 0xf003f
push 0
push esi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41649c
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea eax, [ebp - 0x210]
push 0x105
push eax
push 0
push dword [ebp - 0x420]
call edi
test eax, eax
jne 0x41648f
nop
lea eax, [ebp - 0x210]
push eax
push esi
push 0x4a54c0
lea eax, [ebp - 0x41c]
push 0x105
push eax
call fcn.00401040
add esp, 0x14
lea edx, [ebp - 0x41c]
mov ecx, 0x80000000
call fcn.004163c0
test eax, eax
jne 0x41648f
push 0x105
lea eax, [ebp - 0x210]
push eax
push 0
push dword [ebp - 0x420]
call edi
test eax, eax
je 0x416440
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push esi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0047d33b
mov esp, ebp
pop ebp
ret