joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475610
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.0x475623
jmp dword [eax*4 + 0x4757d0]
mov eax, esi
call fcn.00401150
cmp dword [0x4ab394], 0
jne 0x4756f4
cmp dword [esi + 0xc], 0
jne 0x4756f4
mov edi, dword [esp + 0x14]
cmp dword [0x4ae2f4], esi
jne 0x475658
test edi, edi
jne 0x4756b5
mov ecx, dword [esi + 0x18]
push 0
lea eax, [esp + 0x13]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4756b1
mov dword [0x4ae2f4], 0
test edi, edi
je 0x4756a9
mov eax, dword [0x4ab370]
test eax, eax
je 0x47569a
mov edx, dword [esi + 0x18]
push edx
push str.An_environment_variable_is_being_accessed__see_NoEnv.
push eax
push 0x4ad290
xor ecx, ecx
call fcn.0042dd90
mov ecx, dword [esi + 0x18]
call fcn.00473880
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 0x4756e5
cmp byte [esi + 0x17], 0
jne 0x4756c0
mov eax, dword [esi + 0xc]
jmp 0x4756c2
mov eax, esi
test byte [eax + 0x15], 4
je 0x4756cf
mov eax, esi
call fcn.0042dec0
mov byte [edi], 0
mov dword [0x4ae2f4], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov dword [0x4ae2f4], esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov edi, dword [esp + 0x14]
mov ebx, dword [esi + 0xc]
test edi, edi
je 0x475765
test ebx, ebx
jne 0x475726
movzx eax, byte [esi + 0x17]
neg eax
sbb eax, eax
and eax, esi
test byte [eax + 0x15], 4
je 0x47571a
mov eax, esi
call fcn.0042dec0
mov byte [edi], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 8]
cmp edi, ecx
je 0x475765
cmp ebx, 0x186a0
jae 0x475756
mov al, byte [ecx]
test al, al
je 0x47574a
jmp 0x475740
inc ecx
mov byte [edi], al
mov al, byte [ecx]
inc edi
test al, al
jne 0x475740
mov byte [edi], 0
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
push ebx
push ecx
push edi
call fcn.0048dc80
add esp, 0xc
mov byte [ebx + edi], 0
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
push eax
call fcn.00475610
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.00404110
cmp eax, 0xffffffff
jne 0x475794
xor eax, eax
test esi, esi
je 0x4757c8
mov byte [eax + esi], 0
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4757ae
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x10]
push ecx
push edx
call eax
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret 4
Function at 0x475fc0
Capabilities:
Log keystrokes

Disassembly:
push ebp
push edi
mov edi, eax
mov al, byte [esi]
cmp al, 0x41
je 0x475fce
cmp al, 0x61
jne 0x476024
cmp byte [esi + 1], 0
jne 0x476024
mov eax, dword [esp + 0x10]
cmp byte [eax], 0
jne 0x476024
cmp byte [ebx], 0
jne 0x476024
cmp byte [edi], 0
jne 0x476024
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
test ebp, ebp
je 0x476024
mov ecx, dword [esp + 0xc]
cmp byte [ecx + 0xca], 0
jne 0x47600b
push ebp
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x476024
push ebp
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x47601f
push 9
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, ebp
pop edi
pop ebp
ret
mov eax, dword [esp + 0x14]
test al, al
jne 0x476050
cmp byte [esi], al
jne 0x476050
mov edx, dword [esp + 0x10]
cmp byte [edx], al
jne 0x476050
cmp byte [ebx], al
jne 0x476050
cmp byte [edi], al
jne 0x476050
mov eax, dword [esp + 0xc]
call fcn.004767e0
test eax, eax
jne 0x476075
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
push 0
push eax
mov eax, dword [esp + 0x1c]
push ebx
mov ecx, edi
mov edi, dword [esp + 0x24]
push eax
mov edx, esi
call fcn.004765f0
add esp, 0x18
jmp 0x476049
pop edi
pop ebp
jmp fcn.004760e0
Function at 0x4760e0
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0x10
push edi
mov edi, eax
test edi, edi
jne 0x4760ef
pop edi
add esp, 0x10
ret
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push ebp
push esi
push 0
push edi
call ebx
mov ebp, eax
mov dword [esp + 0x1c], ebp
cmp ebp, dword [0x4ad238]
je 0x47611a
mov esi, edi
call fcn.00477110
test al, al
jne 0x4762b2
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
jne 0x476134
push eax
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
cmp edi, esi
jne 0x476142
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
add esp, 0x10
ret
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x476156
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [0x4ab24e], 0
jne 0x476170
push esi
call fcn.00476080
add esp, 4
test eax, eax
jne 0x4762b4
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
test esi, esi
je 0x4761cd
push 0
push esi
call ebx
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x4761cd
cmp dword [0x4ad238], ebx
je 0x4761b4
call fcn.00477110
test al, al
jne 0x4761b4
mov eax, dword [0x4ad238]
push 1
push ebx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x12]
test ebp, ebp
je 0x4761cd
cmp ebx, ebp
je 0x4761cd
push 1
push ebp
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x13]
mov ebx, dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [esp + 0x14], 0
jmp 0x4761e0
push edi
call ebx
push 1
push 0xa
mov dword [0x4a7884], 0
call fcn.00401350
add esp, 8
mov dword [0x4a7884], 1
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
cmp ebp, edi
jne 0x476213
mov ebp, edi
jmp 0x476224
cmp ebp, esi
je 0x476228
push 4
push ebp
call dword [sym.imp.USER32.dll_GetWindow]
cmp edi, eax
jne 0x476228
test ebp, ebp
jne 0x476269
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 5
jl 0x4761e0
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 2
call fcn.0040ef10
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 2
call fcn.0040ef10
push esi
call fcn.00476080
add esp, 0x34
mov ebp, eax
cmp byte [esp + 0x12], 0
je 0x476284
mov ecx, dword [esp + 0x18]
mov edx, dword [0x4ad238]
push 0
push ecx
push edx
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [esp + 0x13], 0
je 0x47629d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test ebp, ebp
je 0x4762b2
push edi
call dword [sym.imp.USER32.dll_BringWindowToTop]
pop esi
mov eax, ebp
pop ebp
pop ebx
pop edi
add esp, 0x10
ret
xor eax, eax
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x10
ret
Function at 0x4763a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [esp + 8], 0
je 0x4763b0
mov eax, esi
call fcn.00452190
jmp 0x4763bd
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 4]
test eax, eax
js 0x476418
je 0x476418
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call ebp
push 1
push 0x8000012f
mov edi, eax
call fcn.00401350
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call ebx
test eax, eax
je 0x476415
add edi, dword [esp + 0x10]
call ebp
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x476415
push 1
push 0x8000012f
call fcn.00401350
add esp, 8
push esi
call ebx
test eax, eax
jne 0x4763f4
pop edi
pop ebp
pop ebx
mov eax, esi
ret
Function at 0x4765f0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e60
call fcn.00491b50
mov eax, dword [esp + 0x8e68]
push ebx
push ebp
mov ebp, dword [esp + 0x8e6c]
push esi
mov esi, ecx
mov cl, byte [edx]
xor ebx, ebx
cmp cl, 0x41
je 0x47661b
cmp cl, 0x61
jne 0x47666c
cmp byte [edx + 1], bl
jne 0x47666c
cmp byte [edi], bl
jne 0x47666c
cmp byte [eax], bl
jne 0x47666c
cmp byte [esi], bl
jne 0x47666c
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
cmp esi, ebx
je 0x47664d
cmp byte [ebp + 0xca], bl
jne 0x47664d
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x47664d
xor esi, esi
cmp byte [esp + 0x8e7c], bl
je 0x476660
cmp esi, ebx
je 0x476660
mov dword [ebp + 0xa4], esi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
cmp cl, bl
jne 0x47668d
cmp byte [edi], bl
jne 0x47668d
cmp byte [eax], bl
jne 0x47668d
cmp byte [esi], bl
jne 0x47668d
mov eax, ebp
call fcn.004767e0
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
push esi
push edi
push edx
push ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x828], 0x499869
mov byte [esp + 0xc45], bl
mov dword [esp + 0xc48], ebx
mov dword [esp + 0xc4c], ebx
mov dword [esp + 0xc50], ebx
mov dword [esp + 0xc54], ebx
mov dword [esp + 0xc58], ebx
mov dword [esp + 0xc5c], ebx
mov dword [esp + 0xc68], ebx
mov dword [esp + 0xc6c], ebx
call fcn.00477250
test eax, eax
je 0x47679e
test byte [esp + 0xc], 2
mov al, byte [esp + 0x8e78]
mov ecx, dword [esp + 0x8e80]
mov edx, dword [esp + 0x8e84]
mov byte [esp + 0xc35], al
mov dword [esp + 0xc44], ecx
mov dword [esp + 0xc48], edx
je 0x4767aa
mov eax, dword [esp + 0x828]
cmp eax, 0xffff
je 0x476776
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47679e
cmp byte [ebp + 0xca], bl
jne 0x47676f
mov eax, dword [esp + 0x828]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x47676f
mov ecx, dword [esp + 0x828]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x40000000
je 0x47679e
mov eax, dword [esp + 0x828]
cmp dword [esp + 0xc5c], eax
je 0x47678f
lea esi, [esp + 0xc]
mov dword [esp + 0xc5c], eax
call fcn.00477690
push ebx
lea edx, [esp + 0x10]
push edx
call fcn.00477750
test eax, eax
jne 0x4767ba
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
lea eax, [esp + 0xc]
push eax
push 0x476850
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0xc3c]
cmp byte [esp + 0x8e7c], bl
je 0x4767d4
cmp eax, ebx
je 0x4767d4
mov dword [ebp + 0xa4], eax
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
Function at 0x4769c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x8018
call fcn.00491b50
push ebx
push ebp
mov ebp, dword [esp + 0x8028]
push esi
push edi
mov edi, dword [esp + 0x802c]
mov esi, ecx
test edi, edi
je 0x4769e9
mov ecx, edi
call fcn.00412e90
cmp dword [esp + 0x8038], 0
jne 0x4769fe
mov dword [esp + 0x8038], 0x1f4
cmp dword [esp + 0x803c], 1
jge 0x476a13
mov dword [esp + 0x803c], 0x32
cmp ebp, 1
jge 0x476a1d
mov ebp, 1
test esi, esi
je 0x476bea
mov ebx, dword [sym.imp.USER32.dll_SendMessageTimeoutA]
lea eax, [esp + 0x20]
push eax
push 0x7d0
push 2
push 0
push 0
push 0x406
push esi
call ebx
test eax, eax
je 0x476bea
cmp ebp, dword [esp + 0x20]
jg 0x476bea
push 0x8000
xor eax, eax
mov ecx, esi
lea edi, [esp + 0x1c]
call fcn.00473950
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
je 0x476be3
dec ebp
mov byte [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x24], eax
jmp 0x476a90
lea ecx, [esp + 0x14]
push ecx
push 0x7d0
push 2
push 0
push ebp
push 0x403
push esi
call ebx
test eax, eax
je 0x476b07
mov edx, 0x7fff
cmp word [esp + 0x14], dx
ja 0x476b5e
lea eax, [esp + 0x14]
push eax
push 0x7d0
push 2
push edi
push ebp
push 0x402
push esi
call ebx
test eax, eax
je 0x476b07
movzx ecx, word [esp + 0x14]
mov eax, dword [esp + 0x18]
push 0
inc ecx
push ecx
lea edx, [esp + 0x30]
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x476b59
mov edx, dword [esp + 0x8034]
lea eax, [esp + 0x28]
call fcn.00475f40
test al, al
jne 0x476b84
cmp dword [esp + 0x802c], 0
jne 0x476b68
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x476bb7
mov edi, dword [esp + 0x8038]
test edi, edi
js 0x476b3e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x24]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x476b9c
mov edx, dword [esp + 0x803c]
push 1
push edx
call fcn.00401350
mov edi, dword [esp + 0x24]
add esp, 8
jmp 0x476a90
mov byte [esp + 0x28], 0
cmp dword [esp + 0x802c], 0
je 0x476bb7
mov eax, dword [esp + 0x802c]
push 1
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x34]
push edx
push eax
call fcn.00475240
mov esi, eax
jmp 0x476bbc
mov eax, dword [0x4aba2c]
push 1
push 0
push 0xffffffffffffffff
push 0x4998b4
push eax
call fcn.00475240
jmp 0x476b5e
mov ecx, dword [0x4aba2c]
push 1
push 0
push 0xffffffffffffffff
push 0x49afb8
push ecx
call fcn.00475240
mov edi, dword [esp + 0x1c]
mov esi, 1
push 0x8000
push 0
push edi
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8018
ret
mov edi, dword [esp + 0x802c]
mov eax, 0x49afb8
test edi, edi
jne 0x476bf8
mov eax, 0x49b134
mov ecx, dword [0x4a7918]
cmp byte [ecx + 0xe8], 0
jne 0x476c25
mov edx, dword [0x4aba2c]
push 1
push 0
push 0xffffffffffffffff
push eax
push edx
call fcn.00475240
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8018
ret
mov ecx, dword [0x4ad600]
push 0x499869
push 0
push eax
call fcn.0042d3d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8018
ret
Function at 0x477690
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov ecx, dword [esi + 0xc50]
test ecx, ecx
je 0x477747
mov eax, dword [esi]
test eax, eax
je 0x477747
push edi
test al, 1
jne 0x4776b9
mov eax, dword [esi + 0x80c]
cmp byte [eax], 0
je 0x4776d2
push 0x7fff
lea edi, [esi + 0xc58]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x4776d2
mov byte [edi], al
test byte [esi], 4
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x4776ed
mov edx, dword [esi + 0xc50]
lea ecx, [esi + 0xc54]
push ecx
push edx
call edi
test byte [esi], 0x20
je 0x477728
mov ecx, dword [esi + 0xc50]
lea eax, [esp + 4]
push eax
push ecx
call edi
test eax, eax
je 0x477728
movzx edx, byte [esi + 0xc28]
mov ecx, dword [esp + 4]
push edx
lea eax, [esi + 0x8d58]
call fcn.0044dea0
add esp, 4
test eax, eax
jne 0x477728
mov byte [esi + 0x8d58], al
test byte [esi], 8
pop edi
je 0x477747
mov ecx, dword [esi + 0xc50]
push 0x101
lea eax, [esi + 0x8c57]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClassNameA]
pop ecx
ret

Function at 0x477e90
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e5c
call fcn.00491b50
mov eax, dword [esp + 0x8e60]
mov eax, dword [eax + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x477f3d
mov dword [esp + 0xc44], eax
lea eax, [esp + 4]
push eax
push 0x4785d0
mov dword [esp + 0xc], ebx
mov dword [esp + 0x818], 0x499869
mov byte [esp + 0xc35], bl
mov dword [esp + 0xc38], ebx
mov dword [esp + 0xc3c], ebx
mov dword [esp + 0xc40], ebx
mov dword [esp + 0xc44], ebx
mov dword [esp + 0xc48], ebx
mov dword [esp + 0xc58], ebx
mov dword [esp + 0xc5c], ebx
mov byte [esp + 0xc50], cl
mov dword [esp + 0xc54], edx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0xc34], ebx
je 0x477f3d
mov ecx, dword [0x4a7918]
mov eax, dword [ecx + 0x54]
cmp eax, 0xffffffff
jle 0x477f3d
push 1
push eax
call fcn.00401350
add esp, 8
mov eax, 1
pop ebx
add esp, 0x8e5c
ret 4
Function at 0x477f50
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
cmp dword [edi + 8], 0
jne 0x477f6c
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x4a7918]
push eax
push esi
mov ecx, edi
call fcn.00478410
cmp byte [edi], 0
mov dword [esp + 0x10], eax
je 0x477fa3
test eax, eax
jne 0x477fa7
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edi
call fcn.00478060
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
test eax, eax
jne 0x478026
test esi, esi
je 0x478026
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
push 1
push 0x8000012f
mov ebx, eax
call fcn.00401350
mov edi, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call edi
test eax, eax
je 0x478005
mov edi, edi
call ebp
lea ecx, [ebx + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x478005
push 1
push 0x8000012f
call fcn.00401350
add esp, 8
push esi
call edi
test eax, eax
jne 0x477fe0
mov edx, dword [0x4a7918]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x47801e
push 1
push eax
call fcn.00401350
add esp, 8
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x478040
mov ecx, dword [esp + 0x1c]
push 0
push ecx
push edi
call fcn.00478060
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edx, dword [esp + 0x1c]
push edx
mov ecx, edi
call fcn.004781e0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x4781e0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e68
call fcn.00491b50
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 8], ebx
je 0x478360
xor cl, cl
mov eax, edi
call fcn.00478380
test eax, eax
jne 0x478215
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e68
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
mov eax, dword [0x4a7918]
push eax
push ebp
mov ecx, edi
call fcn.00478410
test eax, eax
je 0x478238
xor eax, eax
mov dword [0x4ad230], eax
jmp 0x47823d
mov eax, dword [0x4ad230]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x824], 0x499869
mov dword [esp + 0xc44], ebx
mov dword [esp + 0xc48], ebx
mov dword [esp + 0xc4c], ebx
mov dword [esp + 0xc64], ebx
mov dword [esp + 0xc68], ebx
cmp byte [esp + 0x8e7c], bl
je 0x478283
mov byte [esp + 0xc41], bl
cmp eax, ebx
je 0x47828b
mov byte [esp + 0xc41], 1
mov ecx, dword [0x4ad22c]
mov edx, dword [edi + 8]
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
mov dword [esp + 0xc54], eax
lea eax, [esp + 0x18]
push eax
push 0x4784e0
mov dword [esp + 0xc58], ecx
mov dword [esp + 0xc60], edx
call esi
mov eax, dword [esp + 0xc48]
cmp eax, ebx
je 0x478338
lea ecx, [esp + 0x10]
push ecx
push 0x477060
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
call esi
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x4782f5
mov edx, dword [esp + 0xc48]
call fcn.00477ba0
mov dword [esp + 0xc48], esi
mov eax, dword [esp + 0xc48]
call fcn.004760e0
mov edx, dword [esp + 0xc48]
call fcn.00477ba0
mov edx, dword [0x4a7918]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x478360
push 1
push eax
call fcn.00401350
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e68
ret 4
mov eax, dword [0x4ad230]
cmp eax, ebx
je 0x478360
cmp eax, 1
setg al
mov dword [0x4ad230], ebx
cmp al, bl
je 0x478360
mov edx, ebp
call fcn.00477ba0
push ebx
mov ecx, edi
call fcn.004781e0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x8e68
ret 4
Function at 0x48c464
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a6d90]
jne 0x48c46e
repz ret
jmp fcn.00490d97

Function at 0x48ede4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a6d90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00489452
and dword [ebp - 0x14], 0
cmp dword [0x4a9a54], 0
mov dword [ebp - 0x18], eax
jne 0x48ee97
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x48ef3f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x48ef3f
mov esi, dword [fcn.00484fc0]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4a9a54], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4a9a58], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4a9a5c], eax
call edi
push eax
call esi
mov dword [0x4a9a64], eax
test eax, eax
je 0x48ee97
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4a9a60], eax
mov eax, dword [0x4a9a60]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00484fc4]
cmp eax, ecx
je 0x48eef0
cmp dword [0x4a9a64], ecx
je 0x48eef0
push eax
call esi
push dword [0x4a9a64]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x48eef0
test ebx, ebx
je 0x48eef0
call edi
test eax, eax
je 0x48eee7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x48eee7
test byte [ebp - 8], 1
jne 0x48eef0
or dword [ebp + 0x10], 0x200000
jmp 0x48ef23
mov eax, dword [0x4a9a58]
cmp eax, dword [ebp - 0x18]
je 0x48ef23
push eax
call esi
test eax, eax
je 0x48ef23
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x48ef23
mov eax, dword [0x4a9a5c]
cmp eax, dword [ebp - 0x18]
je 0x48ef23
push eax
call esi
test eax, eax
je 0x48ef23
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4a9a54]
call esi
test eax, eax
je 0x48ef3f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x48ef41
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048c464
leave
ret
Function at 0x131411f4
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
mov esi, 0x1314e5e0
cmp dword [esi], 0
jne 0x1314123a
push 0x644
push 0
call sub.KERNEL32.DLL_WinExec
mov ecx, eax
test ecx, ecx
jne 0x13141217
xor eax, eax
pop esi
pop ebx
ret
mov eax, dword [0x1314e5dc]
mov dword [ecx], eax
mov dword [0x1314e5dc], ecx
xor edx, edx
mov eax, edx
add eax, eax
lea eax, [ecx + eax*8 + 4]
mov ebx, dword [esi]
mov dword [eax], ebx
mov dword [esi], eax
inc edx
cmp edx, 0x64
jne 0x13141226
mov eax, dword [esi]
mov edx, dword [eax]
mov dword [esi], edx
pop esi
pop ebx
ret

Function at 0x13141880
Capabilities:
Create process on windows
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
push ebp
push 0x13141936
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x1314e5c4
call sub.KERNEL32.DLL_LocalAlloc
cmp byte [0x1314e045], 0
je 0x131418ae
push 0x1314e5c4
call sub.KERNEL32.DLL_TlsGetValue
mov eax, 0x1314e5e4
call fcn.13141244
mov eax, 0x1314e5f4
call fcn.13141244
mov eax, 0x1314e620
call fcn.13141244
push 0xff8
push 0
call sub.KERNEL32.DLL_WinExec
mov dword [0x1314e61c], eax
cmp dword [0x1314e61c], 0
je 0x13141915
mov eax, 3
mov edx, dword [0x1314e61c]
xor ecx, ecx
mov dword [edx + eax*4 - 0xc], ecx
inc eax
cmp eax, 0x401
jne 0x131418eb
mov eax, 0x1314e604
mov dword [eax + 4], eax
mov dword [eax], eax
mov dword [0x1314e610], eax
mov byte [0x1314e5bc], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1314193d
cmp byte [0x1314e045], 0
je 0x13141935
push 0x1314e5c4
call sub.KERNEL32.DLL_TlsSetValue
ret

Function at 0x13141944
Capabilities:
Get thread local storage value
Set thread local storage value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
cmp byte [0x1314e5bc], 0
je 0x13141a21
xor edx, edx
push ebp
push 0x13141a1a
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x1314e045], 0
je 0x13141976
push 0x1314e5c4
call sub.KERNEL32.DLL_TlsGetValue
mov byte [0x1314e5bc], 0
mov eax, dword [0x1314e61c]
push eax
call sub.KERNEL32.DLL_WriteFile
xor eax, eax
mov dword [0x1314e61c], eax
mov ebx, dword [0x1314e5e4]
jmp 0x131419a9
push 0x8000
push 0
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, dword [ebx]
cmp ebx, 0x1314e5e4
jne 0x13141997
mov eax, 0x1314e5e4
call fcn.13141244
mov eax, 0x1314e5f4
call fcn.13141244
mov eax, 0x1314e620
call fcn.13141244
mov eax, dword [0x1314e5dc]
test eax, eax
je 0x131419ef
mov edx, dword [eax]
mov dword [0x1314e5dc], edx
push eax
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [0x1314e5dc]
test eax, eax
jne 0x131419d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x13141a21
cmp byte [0x1314e045], 0
je 0x13141a0f
push 0x1314e5c4
call sub.KERNEL32.DLL_TlsSetValue
push 0x1314e5c4
call sub.KERNEL32.DLL_Sleep
ret
pop ebx
pop ebp
ret