joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a3bbd
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x101d28ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esi - 0x60]
cmp eax, 9
ja 0x100a3bec
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x100a3c19
cmp dword [0x101e5184], 0
jne 0x100a3c19
lea eax, [esi - 0x41]
cmp eax, 0x19
jbe 0x100a3c15
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jb 0x100a3c15
push esi
call fcn.10168b43
pop ecx
jmp 0x100a3c86
mov eax, esi
jmp 0x100a3c86
xor eax, eax
mov word [ebp - 0x10c], ax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
call fcn.10020dc0
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push esi
call dword [sym.imp.USER32.dll_ToAsciiEx]
mov al, byte [ebp - 0x10c]
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 0x107], 0
call dword [sym.imp.USER32.dll_CharUpperA]
movsx eax, byte [ebp - 0x108]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10157bce
leave
ret 4
Function at 0x10108248
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x101082fc
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x101082f8
mov eax, dword [eax + 0x20]
test eax, eax
je 0x101082f8
cmp dword [ebx], eax
jne 0x101082f8
mov eax, dword [ebx + 4]
sub eax, 1
je 0x101082c7
sub eax, 1
je 0x10108295
sub eax, 1
jne 0x101082f8
mov edi, 0x428e
jmp 0x101082cc
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x101082cc
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x10183a4c]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x101082cc
add edi, 3
jmp 0x101082cc
mov edi, 0x3ea0
push edi
call fcn.1002ee1a
test eax, eax
je 0x101082fc
push edi
push eax
mov ecx, 0x101e6668
call fcn.10022853
test eax, eax
je 0x101082fc
mov eax, dword [0x101e6668]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x101082f1
call fcn.10025173
int3

Function at 0x101120fb
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.10168b73
pop ecx
test eax, eax
jne 0x1011213d
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.10024287
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10112103
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret
Function at 0x101196e7
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x10177b07
call fcn.101582e8
mov esi, ecx
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x101197c7
mov edi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x101197c7
cmp edi, 0x43
je 0x1011972c
cmp edi, 0x2d
jne 0x101197c7
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x101197c7
call dword [sym.imp.USER32.dll_EmptyClipboard]
call fcn.1002f183
push eax
lea ecx, [ebp - 0x10]
call fcn.1002160b
movzx eax, byte [esi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [esi + 0xe5]
push eax
movzx eax, byte [esi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.10022482
mov esi, dword [ebp - 0x10]
add esp, 0x14
mov eax, dword [esi - 0xc]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.10022ee9
mov esi, dword [ebp - 0x14]
push ebx
mov ecx, esi
call fcn.10116b59
call fcn.101582b1
ret 4
Function at 0x401a40
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

Function at 0x41fe40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
jmp 0x41fe5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41fe61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41fe50
mov eax, 1
add ebx, ebx
jne 0x41fe73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41fe68
jne 0x41fe84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41fe68
xor ecx, ecx
sub eax, 3
jb 0x41fe98
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41ff0a
mov ebp, eax
add ebx, ebx
jne 0x41fea3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41feb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41fed4
inc ecx
add ebx, ebx
jne 0x41fec0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41feb5
jne 0x41fed1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41feb5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41fef4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41fee5
jmp 0x41fe56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41fef4
add edi, ecx
jmp 0x41fe56
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41ff12
cmp byte [edi], 9
jne 0x41ff12
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41ff17
lea edi, [esi + 0x1d000]
mov eax, dword [edi]
or eax, eax
je 0x41ff8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x20904]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x209e4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41ff44
mov ecx, edi
jns 0x41ff73
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x209ec]
or eax, eax
je 0x41ff89
mov dword [ebx], eax
add ebx, 4
jmp 0x41ff61
call dword [esi + 0x209e8]
mov ebp, dword [esi + 0x209f0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41ffc3
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x401160
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_InitializeAcl]
xor esi, esi
nop word [eax + eax]
push 0
push 0
push 0
call edi
xor byte [esi + section..BsS], 0x2c
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x5d
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x52
push 0
push 0
push 0
call edi
xor byte [esi + section..BsS], 0x48
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x24
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x93
push 0
push 0
push 0
call edi
xor byte [esi + section..BsS], 8
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x67
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x15
push 0
push 0
push 0
call edi
xor byte [esi + section..BsS], 0x1e
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x7c
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0xf2
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x79
push 0
push 0
push 0
call edi
xor byte [esi + section..BsS], 0xe2
push 0
push 0
push 0
call edi
xor byte [esi + section..BsS], 0x4f
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0xf4
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x52
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 2
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0xc7
push 0
push 0
push 0
call edi
xor byte [esi + section..BsS], 0x5b
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 8
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x1e
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0xd5
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x66
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0xf8
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x57
push 0
push 0
push 0
call edi
xor byte [esi + section..BsS], 0xec
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x46
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x4d
inc esi
cmp esi, 0x2d200
jb 0x401170
pop edi
pop esi
ret
Function at 0x402cd6
Capabilities:
Parse pe header

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

Function at 0x407a04
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41227c
push 0x412274
push str.FlsAlloc
push 0x1e
call fcn.00407885
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407a38
push dword [ebp + 8]
mov ecx, esi
call dword [0x410140]
call esi
jmp 0x407a3e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x407a82
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41228c
push 0x412284
push str.FlsGetValue
push 0x20
call fcn.00407885
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407ab9
push dword [ebp + 8]
mov ecx, esi
call dword [0x410140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x409a4d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x409aea
push ebx
push esi
call fcn.00409a16
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040995f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x409a97
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409ae9
push edi
push eax
call fcn.0040a38a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x409ab7
call fcn.004070ef
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409ae8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040995f
add esp, 0x20
test eax, eax
jne 0x409ad6
push edi
call fcn.004070ef
jmp 0x409ade
push ebx
call fcn.004070ef
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40f310
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40f33d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f33d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x422247
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497a32
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [ebp - 0x10], esi
lea ebx, [esi + 0x318]
mov dword [esi], 0x4b7e6c
mov ecx, ebx
mov dword [esi + 4], 0x4b7e60
mov dword [esi + 8], 0x4b7e54
mov byte [esi + 0x738], 1
call fcn.004129b0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
lea edi, [esi + 0x400]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
add esi, 0x440
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x10]
call fcn.0042286b
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx + 0x720]
call fcn.004045a0
mov ecx, esi
call fcn.00411f18
mov ecx, edi
call fcn.00413eac
mov ecx, ebx
call fcn.0041293f
mov ebx, dword [ebp - 0x10]
lea ecx, [ebx + 0x170]
call fcn.004221b1
lea esi, [ebx + 0x138]
lea ecx, [esi + 8]
call fcn.0040e4ba
mov ecx, esi
call fcn.00423d28
lea ecx, [ebx + 0x38]
call fcn.004327cb
lea ecx, [ebx + 0x30]
call fcn.0040c4e7
lea ecx, [ebx + 0x14]
call fcn.004045a0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4263e6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
lea esi, [ebx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x426405
mov eax, dword [eax]
push 0
push 0x4cb444
push ecx
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0x4cb444
push 2
push 0x4b7f64
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
pop ebp
ret 4
Function at 0x437833
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x49c2b7
call fcn.00497330
sub esp, 0x60
push ebx
push esi
push edi
push dword [ebp + 0x14]
mov eax, ecx
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.00436f11
and dword [ebp - 4], 0
xor esi, esi
and dword [ebp - 0x2c], 0
xor ebx, ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0x14], eax
cmp edi, eax
je 0x4378bf
push edi
lea ecx, [ebp - 0x20]
call fcn.00421b2f
mov byte [ebp - 4], 2
push eax
cmp esi, ebx
je 0x43789c
mov ecx, esi
call fcn.004114f6
add esi, 0x10
mov dword [ebp - 0x28], esi
jmp 0x4378ab
push esi
lea ecx, [ebp - 0x2c]
call fcn.00425018
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0041149c
add edi, 0x18
cmp edi, dword [ebp + 0x14]
jne 0x43787b
lea ecx, [ebp - 0x3c]
call fcn.00421bb1
xor ecx, ecx
mov esi, eax
mov dword [ebp - 0x54], ecx
push 0xf
pop ebx
mov dword [ebp - 0x44], ecx
mov byte [ebp - 0x54], cl
lea ecx, [ebp - 0x54]
push str.programIds
mov dword [ebp - 0x40], ebx
mov byte [ebp - 4], 1
call fcn.00405c0c
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004118b0
mov esi, dword [eax]
lea ecx, [esi + 0x28]
call fcn.0041149c
push 0xc
mov dword [esi + 0x28], 4
call fcn.0046fd67
pop ecx
mov dword [ebp + 0x14], eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
push ecx
mov ecx, eax
call fcn.00428774
lea ecx, [ebp - 0x54]
mov dword [esi + 0x30], eax
mov byte [ebp - 4], 1
call fcn.00403b90
push dword [ebp + 0x10]
lea ecx, [ebp - 0x4c]
call fcn.00421b2f
mov edi, eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 6
call fcn.00421bb1
mov esi, eax
xor eax, eax
mov dword [ebp - 0x6c], eax
push str.programInfo
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x6c], al
mov byte [ebp - 4], 6
call fcn.00405c0c
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004118b0
push edi
mov ecx, dword [eax]
add ecx, 0x28
call fcn.00411534
lea ecx, [ebp - 0x6c]
call fcn.00403b90
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.0041149c
push ecx
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00421da2
mov edx, dword [ebp - 0x10]
xor ecx, ecx
push 1
push ecx
push ecx
lea ecx, [edx + 0x18]
mov byte [ebp - 4], 9
push ecx
mov ecx, dword [ebp + 8]
push eax
lea eax, [edx + 0xb4]
push eax
call fcn.0040414f
lea ecx, [ebp - 0x6c]
call fcn.00403b90
lea ecx, [ebp - 0x2c]
call fcn.00411839
lea ecx, [ebp - 0x3c]
call fcn.0041149c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x43c1a4
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x49cd16
call fcn.00497330
sub esp, 0x88
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push edi
mov dword [ebp - 0x24], ebx
xor eax, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
mov dword [ebp - 4], 1
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
cmp byte [esi + 0x94], al
je 0x43c2a3
push ebx
push ebx
push 0xe
push dword [esi + 0x9c]
call edi
mov ecx, 0x3e8
cmp eax, ecx
cmovg eax, ecx
lea ecx, [ebp - 0x24]
cmp eax, dword [ebp - 0x14]
ja 0x43c20d
push eax
call fcn.0040435b
jmp 0x43c217
sub eax, dword [ebp - 0x14]
push ebx
push eax
call fcn.004067ac
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
push 0x3e8
cmovae eax, dword [ebp - 0x24]
push eax
push dword [esi + 0x9c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x43c2a3
xor edx, edx
xor ecx, ecx
call fcn.0040c8b0
mov dword [ebp - 0x34], 0xe4
mov dword [ebp - 0x30], 0xd
mov dword [ebp - 0x2c], str.C:BooCodeOffergateMultiSetup_Obfuscated_srcwindowscomplaint_reporting_window.cpp
mov dword [ebp - 0x28], str.ReplacementFor_SendComplaint
mov dword [ebp - 0x4c], ebx
push str.Failed_to_get_complaint_text
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], bl
mov byte [ebp - 4], 1
call fcn.00405c0c
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
push eax
call fcn.0040c937
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.00403b90
push ebx
push ebx
push 0x147
push dword [esi + 0x98]
call edi
push ebx
push eax
push 0x150
push dword [esi + 0x98]
call edi
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
cmove esi, eax
call fcn.00422aac
lea edi, [eax + 0x440]
lea ecx, [eax + 0x170]
lea eax, [ebp - 0x24]
push eax
push esi
lea eax, [ebp - 0x94]
push eax
call fcn.00439a1d
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00411fe1
lea ecx, [ebp - 0x94]
call fcn.004041bc
lea ecx, [ebp - 0x24]
call fcn.004045a0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x43dda9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [ebp + 8], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x43deb3
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x43deb3
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [edi + 0x9fc]
call ebx
push 0
push dword [edi + 0x944]
call ebx
push 1
push dword [edi + 0x9a0]
call ebx
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push 0x3e9
push dword [edi + 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x10]
push eax
push dword [edi + 4]
push ebx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ebx, dword [esi + 8]
test ebx, ebx
jne 0x43de3b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
mov dword [esi + 8], eax
mov dword [eax + 0xc], esi
mov ebx, dword [esi + 8]
sub dword [ebp - 0x10], 4
mov ecx, edi
add dword [ebp - 8], 4
mov dword [edi + 0x80], ebx
call fcn.0040537c
mov dword [edi + 0x60], ebx
lea eax, [ebp - 0x10]
push dword [ebx + 4]
mov ecx, edi
push eax
call fcn.00405031
cmp dword [edi + 0x60], 0
je 0x43dee6
push 0
push dword [edi + 0x604]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x60]
push dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [edi + 0x60]
push dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [edi + 0x60]
push 1
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [edi + 0x91c]
push dword [edi + 0x920]
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [edi + 0x80]
push eax
mov edx, dword [ecx]
call dword [edx + 0x38]
jmp 0x43dee6
call fcn.0040537c
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [edi + 0x604]
call esi
push 1
push dword [edi + 0x9fc]
call esi
push 1
push dword [edi + 0x944]
call esi
push 0
push dword [edi + 0x9a0]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x440e98
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
or dword [0x4cc058], 0xffffffff
lea ecx, [ebp - 0x208]
sub esp, 0x208
mov eax, 0x4c9634
cmp dword [0x4c9648], 8
cmovae eax, dword [0x4c9634]
push edi
mov edi, 0x104
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
js 0x440eef
lea ecx, [ebp - 0x208]
call fcn.00416861
test al, al
je 0x440eef
mov dword [0x4cc058], 0xa
jmp 0x440f34
cmp dword [0x4c9660], 8
lea ecx, [ebp - 0x208]
push edi
mov eax, 0x4c964c
cmovae eax, dword [0x4c964c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
js 0x440f34
lea ecx, [ebp - 0x208]
call fcn.00416861
mov ecx, dword [0x4cc058]
test al, al
push 0x14
pop edx
cmovne ecx, edx
mov dword [0x4cc058], ecx
mov eax, 0x4cc058
pop edi
leave
ret