joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4858ff
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1dc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x10], ecx
push str.GTHREAD::ResetTlsEventShouldQuit
lea ecx, [ebp - 0x24]
call fcn.00404f76
and dword [ebp - 4], 0
cmp dword [0x514d90], 0xffffffff
je 0x485947
push 0
push dword [0x514d90]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x485963
xor eax, eax
inc eax
je 0x485963
push 0xfb
push str.D:projectsUTIL_srcgthread.cpp
push 0x4d9734
call fcn.00403b39
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004050e2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x485c9a
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7611
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [ebp - 0x14], ecx
push str.GTHREAD::SetTlsEventShouldQuit
lea ecx, [ebp - 0x28]
call fcn.00404f76
and dword [ebp - 4], 0
cmp dword [0x514d90], 0xffffffff
je 0x485d15
mov ecx, dword [ebp - 0x14]
add ecx, 0x4f
call fcn.0047e16a
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x485cf7
push dword [ebp - 0x10]
push dword [0x514d90]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x485d13
xor eax, eax
inc eax
je 0x485d13
push 0xed
push str.D:projectsUTIL_srcgthread.cpp
push 0x4d9734
call fcn.00403b39
add esp, 0xc
jmp 0x485d31
xor eax, eax
inc eax
je 0x485d31
push 0xf1
push str.D:projectsUTIL_srcgthread.cpp
push 0x4d9734
call fcn.00403b39
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004050e2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4900a9
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0x10325476
mov eax, dword [ebp + 8]
and dword [eax], 0
mov eax, dword [ebp + 8]
and dword [eax + 4], 0
pop ebp
ret

Function at 0x490dc0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1dc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.GWIN.0
push 0x4eb838
lea ecx, [ebp - 0x24]
call fcn.00404f76
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp - 0x10]
and dword [eax + 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0xa6430
mov eax, dword [ebp - 0x10]
and dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x1c], 1
mov eax, dword [ebp - 0x10]
and dword [eax + 8], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x2c], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x30], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x34], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004050e2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4c2bfa
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x51c2d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004ba257
mov dword [ebp - 0x14], eax
cmp dword [0x521744], esi
jne 0x4c2ced
push 0x800
push esi
push 0x4f6a0c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4c2c7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4c2dcd
push esi
push esi
push 0x4f6a0c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4c2dcd
push 0x4f6a24
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4c2dcd
push eax
call ebx
push 0x4f6a30
push edi
mov dword [0x521744], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4f6a40
push edi
mov dword [0x521748], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4f6a54
push edi
mov dword [0x52174c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x521754], eax
test eax, eax
je 0x4c2cea
push 0x4f6a70
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x521750], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4c2d12
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4c2d05
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4c2d27
push 4
pop eax
jmp 0x4c2dcf
cmp dword [ebp - 0x14], esi
je 0x4c2d27
push dword [0x521744]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4c2d0c
mov eax, dword [0x521750]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4c2d85
cmp dword [0x521754], edi
je 0x4c2d85
push eax
call ebx
push dword [0x521754]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4c2d85
test eax, eax
je 0x4c2d85
call ecx
test eax, eax
je 0x4c2d7a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4c2d7a
test byte [ebp - 8], 1
jne 0x4c2d85
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4c2db5
mov eax, dword [0x521748]
cmp eax, edi
je 0x4c2db2
push eax
call ebx
test eax, eax
je 0x4c2db2
call eax
mov esi, eax
test esi, esi
je 0x4c2db2
mov eax, dword [0x52174c]
cmp eax, edi
je 0x4c2db2
push eax
call ebx
test eax, eax
je 0x4c2db2
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x521744]
call ebx
test eax, eax
je 0x4c2dcd
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4c2dcf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b7aea
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
dec eax
inc eax
sbb edx, 0xf
dec esi
neg esi
imul eax
mov eax, 0xfb
or eax, 0x84
neg edx
not edi
neg eax
rcr ebx, 0x77
neg eax
ror edx, 0x45
rcr esi, 0xcb
bswap ebx
imul esi
rol edi, 0xed
sbb edx, 0x9f
inc eax
neg edx
dec eax
sbb edx, 0x90
ror edx, 0x66
rol ebx, 5
and eax, 0x8d
neg esi
neg ebx
add edi, 0xc
dec eax
add ebx, 0x9b
rol ebx, 0x8a
sub esi, 0xc
dec edx
ror edx, 0x1a
dec edx
rol edx, 0xf
sbb eax, 0x3d
bswap esi
imul eax
inc eax
dec ebx
dec eax
bswap edx
not ebx
and edx, 0x9d
add edx, 0x87
sbb edx, 0x8a
ror edi, 0x77
dec esi
xor ecx, ecx
xor edi, edi
dec ebx
rol edx, 0x9e
sub eax, 0xe6
and edi, 0x69
add edx, 0x4f
rcr edx, 0x7d
bswap edx
sub edi, 0x94
imul ebx
bswap esi
rol edi, 0x7c
and esi, 0x8b
sbb edx, 0x4c
rcr edi, 0xf7
sub eax, 0x91
bswap edx
not edx
rcl ebx, 0x41
and esi, 0x16
rcl eax, 0xb
inc edi
add eax, 0x83
not eax
mov eax, 0xac
not edi
or esi, 0x9d
rcr eax, 0x68
imul edi
imul esi
bswap ebx
add edx, 0x25
bswap ebx
and ebx, 0xf
or ebx, 0xfe
inc esi
mov eax, 0x67
mov eax, 0xbb
rcl edx, 0xc5
ror ebx, 0x2a
rcr esi, 0x77
add ebx, 0x90
rcr ebx, 0x9c
dec edx
rcl ebx, 0x59
add edx, 0x45
ror ebx, 0x25
dec edi
and edi, 0xd6
add edx, 0xe0
bswap eax
mov ecx, dword [ebp + 0xc]
inc eax
add edi, 0xcb
inc ebx
inc ebx
neg edi
inc eax
sbb eax, 0xff
bswap edi
neg esi
sub esi, 0x34
bswap edi
neg ebx
or eax, 0x43
sub esi, 0xc3
and edx, 0x9e
neg ebx
mov ebx, 9
imul esi
rol ebx, 0x70
rcr eax, 0x54
imul edx
rcr edx, 0xe2
neg edi
add ebx, 0xec
or esi, 0xcd
neg edx
rcr ebx, 0xd4
inc ebx
mov eax, 0x99
sub edi, 0xba
sbb edx, 0xa7
rol edx, 0x6a
imul esi
not ebx
inc edi
sub eax, 0xe3
not edx
imul ebx
imul edi
dec edx
imul edx
neg edx
not eax
inc edx
bswap edi
rcl eax, 0x77
or edx, 0x12
inc edi
imul esi
not esi
mov edi, dword [ebp + 8]
mov ebx, esi
mov eax, eax
xor ebx, esi
mov esi, eax
mov ebx, eax
mov eax, esi
xor eax, eax
xor esi, ebx
mov ebx, eax
xor eax, esi
xor eax, esi
mov ebx, ebx
not byte [edi]
xor esi, ebx
xor esi, ebx
mov esi, ebx
mov ebx, esi
mov ebx, ebx
mov esi, ebx
xor ebx, esi
mov esi, ebx
mov eax, eax
sub byte [edi], 0x89
xor eax, esi
xor esi, eax
mov ebx, ebx
xor eax, ebx
mov eax, eax
mov eax, ebx
xor esi, eax
mov esi, eax
mov eax, esi
add byte [edi], 0x43
mov eax, ebx
mov ebx, eax
mov ebx, esi
xor eax, ebx
mov esi, ebx
xor eax, esi
xor ebx, ebx
xor eax, ebx
xor ebx, eax
imul byte [edi]
inc edi
loop 0x4011ca
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x403353
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402249
and dword [ebp - 4], 0
cmp dword [0x437088], 0
mov ebx, eax
jne 0x403404
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4034b5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4034b5
push eax
call fcn.004021d7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x437088], eax
call esi
push eax
call fcn.004021d7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43708c], eax
call esi
push eax
call fcn.004021d7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x437090], eax
call esi
push eax
call fcn.004021d7
pop ecx
mov dword [0x437098], eax
test eax, eax
je 0x403404
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004021d7
pop ecx
mov dword [0x437094], eax
mov eax, dword [0x437094]
cmp eax, ebx
je 0x40345c
cmp dword [0x437098], ebx
je 0x40345c
push eax
call fcn.00402252
push dword [0x437098]
mov esi, eax
call fcn.00402252
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40345c
test edi, edi
je 0x40345c
call esi
test eax, eax
je 0x403453
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x403453
test byte [ebp - 0xc], 1
jne 0x40345c
or dword [ebp + 0x10], 0x200000
jmp 0x403495
mov eax, dword [0x43708c]
cmp eax, ebx
je 0x403495
push eax
call fcn.00402252
pop ecx
test eax, eax
je 0x403495
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x403495
mov eax, dword [0x437090]
cmp eax, ebx
je 0x403495
push eax
call fcn.00402252
pop ecx
test eax, eax
je 0x403495
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x437088]
call fcn.00402252
pop ecx
test eax, eax
je 0x4034b5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4034b7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4051be
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4367f8]
jne 0x4051c8
repz ret
jmp fcn.004068e5
Function at 0x401f00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401f1b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401f52
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401f4e
jmp 0x401f40
cmp esi, eax
jae 0x401f52
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401f40
cmp esi, eax
jb 0x401f59
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402a20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push 0x40
xor eax, eax
sub ecx, edi
push 8
mov dword [ebp - 8], eax
sub ecx, 5
mov dword [ebp - 4], eax
push edi
mov byte [ebp - 8], 0xe9
mov dword [ebp - 7], ecx
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x402a9f
push ebx
lea ebx, [ebp - 8]
push esi
mov esi, edi
sub ebx, edi
mov eax, dword [ebx + esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
add esi, 4
lea eax, [edi + 4]
cmp esi, eax
jbe 0x402a60
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
push ecx
push edx
push 8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
call fcn.00402210
push 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x404300
Capabilities:
Check for foreground window switch

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4254ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor ebx, ebx
push ebx
call edi
lea edx, [ebp - 0x24]
push edx
push 0x41e328
push 4
push ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 0xa1781bcb
mov dword [ebp - 0x10], 0x4b45dd5b
mov dword [ebp - 0xc], 0x78968099
mov dword [ebp - 8], 0x2c10e405
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4043c3
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x4043c3
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], ebx
mov ecx, dword [eax]
push 0x41e318
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x4043c3
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x4043c3
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
js 0x4043c3
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x4043c3
xor esi, esi
mov dword [ebp - 0x1c], ebx
cmp eax, ebx
jbe 0x4043c3
nop
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push ebx
push esi
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
js 0x4043c3
cmp dword [ebp - 0x1c], ebx
je 0x4043c3
inc esi
mov dword [ebp - 0x1c], ebx
cmp esi, dword [ebp - 0x18]
jb 0x4043a0
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
call esi
push ebx
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push ebx
push str.64tr
push 0x41e3c8
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
call esi
mov esi, eax
cmp esi, ebx
jne 0x4043fc
call edi
jmp 0x404423
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
cmp edi, ebx
je 0x404423
push ebx
push 0x3c0
push 0x17a
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
push edi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
push str.ytfhhewtrew
push 0x427a18
call fcn.00403ae0
push eax
call fcn.004042a0
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
mov eax, 0xb
pop ebx
call fcn.0040966a
mov esp, ebp
pop ebp
ret 8
Function at 0x406730
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4254ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x110], 0
push 0x104
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.0040a470
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x406792
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.SHLWAPI.dll_PathStripToRootA]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040966a
mov esp, ebp
pop ebp
ret

Function at 0x406a10
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push 0xffffffffffffffff
push 0
push 1
push 0x1f0001
call esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xd
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 0
push 1
call esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
push 0
push 0
push 0x1f0001
call esi
call dword [sym.imp.USER32.dll_GetCursor]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x613e
call dword [sym.imp.USER32.dll_GetSysColorBrush]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [edi], eax
mov eax, edi
pop esi
ret

Function at 0x406b30
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
call edi
neg eax
sbb eax, eax
neg eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
call edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenMutexA]
push 0x64
push 0
push 0
push 1
call edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0
push 1
call edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
push 6
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi], eax
mov eax, esi
pop edi
pop ebp
ret 0x10
Function at 0x406bc0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x4254ec]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x20a
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.0040a470
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x406ca7
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x41a]
push ecx
mov word [ebp - 0x41c], ax
call fcn.0040a470
add esp, 0xc
lea edx, [ebp - 0x41c]
push edx
push 0x21
push 0x41e47c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x406ca7
push ebx
push 0
push 0x100
push 2
push 0
push 1
push 0x10000000
lea ecx, [ebp - 0x41c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406ca6
lea edx, [ebp - 0x42c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0
lea eax, [ebp - 0x430]
push eax
push 0x10
lea ecx, [ebp - 0x42c]
push ecx
push ebx
mov dword [ebp - 0x430], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
call fcn.0040966a
mov esp, ebp
pop ebp
ret 8

Function at 0x406d60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 4]
mov dword [ebp - 4], eax
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
xor edx, edx
lea esi, [ecx + eax + 0x28]
mov dword [ebp - 8], 0
cmp dx, word [eax + 6]
jae 0x406e10
push ebx
nop
mov ecx, dword [esi]
test ecx, ecx
jne 0x406dcb
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0x38]
test ebx, ebx
jle 0x406dfb
mov edi, dword [esi - 4]
add edi, dword [ebp - 4]
call fcn.00402210
push 0x40
push 0x1000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
push 0
push eax
mov dword [esi - 8], eax
call fcn.0040a470
mov edi, dword [ebp + 0x10]
jmp 0x406df8
mov edx, dword [esi - 4]
add edx, dword [ebp - 4]
push 0x40
push edx
lea eax, [ebp - 0xc]
push eax
mov edx, 0x1000
call fcn.004067a0
mov edx, dword [esi + 4]
mov ecx, dword [esi]
add edx, dword [ebp + 8]
mov ebx, dword [ebp - 0xc]
push ecx
push edx
push ebx
call fcn.00409950
mov dword [esi - 8], ebx
add esp, 0xc
mov ecx, dword [edi]
mov eax, dword [ebp - 8]
movzx edx, word [ecx + 6]
inc eax
add esi, 0x28
mov dword [ebp - 8], eax
cmp eax, edx
jl 0x406d90
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407e90
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c813
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4254ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x41e4fc
mov eax, dword [0x426714]
mov edx, dword [eax + 0xc]
lea edi, [esi + 4]
mov ecx, 0x426714
mov dword [ebp - 0x14], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 1
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
jne 0x407ef9
xor ecx, ecx
jmp 0x407f0f
mov ecx, eax
lea ebx, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x407f00
sub ecx, ebx
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00403a30
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40966a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4254ec]
jne 0x409674
repz ret
jmp fcn.0040bbfc

Function at 0x41439a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4254ec]
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.0040b699
and dword [ebp - 0x14], 0
cmp dword [0x427994], 0
mov dword [ebp - 0x18], eax
jne 0x41444d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4144f5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x420cb0
push ebx
call edi
test eax, eax
je 0x4144f5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x427994], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x427998], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42799c], eax
call edi
push eax
call esi
mov dword [0x4279a4], eax
test eax, eax
je 0x41444d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4279a0], eax
mov eax, dword [0x4279a0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4144a6
cmp dword [0x4279a4], ecx
je 0x4144a6
push eax
call esi
push dword [0x4279a4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4144a6
test ebx, ebx
je 0x4144a6
call edi
test eax, eax
je 0x41449d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41449d
test byte [ebp - 8], 1
jne 0x4144a6
or dword [ebp + 0x10], 0x200000
jmp 0x4144d9
mov eax, dword [0x427998]
cmp eax, dword [ebp - 0x18]
je 0x4144d9
push eax
call esi
test eax, eax
je 0x4144d9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4144d9
mov eax, dword [0x42799c]
cmp eax, dword [ebp - 0x18]
je 0x4144d9
push eax
call esi
test eax, eax
je 0x4144d9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x427994]
call esi
test eax, eax
je 0x4144f5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4144f7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040966a
leave
ret