joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407e17
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push edi
mov edi, ecx
push edi
call dword [sym.imp.kernel32.dll_lstrlenW]
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x407e86
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ebx, [ebx*2 + 2]
push ebx
push 0x2002
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
test eax, eax
je 0x407e62
push ebx
push edi
push eax
call fcn.0040ba60
add esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x407e7d
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
pop esi
pop edi
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
ret

Function at 0x4151ed
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x4151fc
pop dword [ebp - 0x24]
mov eax, 0x4151fc
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x41865
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0x36fe19c9
add ecx, 0xc9023d33
mov ebx, eax
mov esi, 0xc66ad975
add esi, 0x39d8d88b
add esi, dword [ebp - 0x24]
mov edi, 0x5c4bbbec
sub edi, 0xb28a618f
add dword [ebp - 0x14], 0xfbf5bfaf
mov edx, dword [esi]
sub dword [ebp - 0xc], esi
add edx, edi
xor dword [ebp - 0x10], 0x1bdbd585
mov dword [ebx], edx
sub dword [ebp - 0x1c], 0x4ba7c167
add ebx, 0x3f26cc8a
add ebx, 0xc0d9337a
add esi, 0x386f4bf4
sub esi, 0x386f4bf0
loop 0x415251
add eax, 0x575588d
sub eax, 0x57409ca
mov ebx, eax
add eax, 0x36cddc1c
add eax, 0xc93223e9
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x300015b4
Capabilities:
Accept command line arguments
Allocate thread local storage
Terminate process

Disassembly:
call 0x300015be
jmp 0x3000167f
push 0x58
push 0x30001890
call fcn.300018b8
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x300b6358
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x3003e82d
xor esi, esi
inc esi
mov eax, dword [0x300b0358]
cmp eax, esi
je 0x3003e84b
mov eax, dword [0x300b0358]
test eax, eax
jne 0x30002460
mov dword [0x300b0358], esi
push 0x3000188c
push 0x30001880
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
jne 0x3003e8d8
mov eax, dword [0x300b0358]
cmp eax, esi
jne 0x3000172b
push 0x3000187c
push 0x30001778
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x300b0358], 2
test ebx, ebx
jne 0x30001737
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x300b635c], 0
jne 0x3003e858
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
jbe 0x30002470
cmp al, 0x22
je 0x30002450
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
jne 0x3003e87c
inc esi
jmp 0x3000174b
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
jmp 0x30001760
mov dword [0x300b813c], esi
jmp 0x30001707
push 0xa
pop eax
jmp 0x30002498
test al, al
je 0x3000247e
cmp dword [ebp - 0x1c], 0
jne 0x30001758
mov al, byte [esi]
test al, al
je 0x3000248e
cmp al, 0x20
ja 0x3000248e
inc esi
mov dword [ebp - 0x20], esi
jmp 0x3000247e
test byte [ebp - 0x3c], 1
je 0x3000246b
movzx eax, word [ebp - 0x38]
push eax
push esi
push 0
push 0x30000000
call 0x300024bf
mov dword [0x300b633c], eax
cmp dword [0x300b6330], 0
jne 0x3003e8b4
push eax
call dword [sym.imp.MSVCR80.dll_exit]
push ebp
mov ebp, esp
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x300b0284], eax
call fcn.300024f4
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [0x300b033c]
push eax
mov eax, dword [ebp + 8]
push edx
push eax
call fcn.30002584
pop ebp
ret 0x10
cmp eax, esi
jne 0x3003e83b
xor esi, esi
inc esi
mov ebx, esi
jmp 0x300016ce
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x300016b9
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x30001707
push 0x300b635c
call fcn.3009420f
pop ecx
test eax, eax
je 0x30001744
push 0
push 2
push 0
call dword [0x300b635c]
jmp 0x30001744
inc esi
mov dword [ebp - 0x20], esi
jmp 0x30001773
cmp dword [0x300b813c], 0
jne 0x3003e8c3
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x300b633c]
jmp 0x3003e8e4
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.30001ad4
ret
Function at 0x403038
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push 0
mov eax, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push eax
push dword [ebp + 0x14]
call sub.kernel32.dll_WriteFile
test eax, eax
setne al
movsx eax, al
push eax
call fcn.00402ed8
mov esi, eax
cmp dword [0x407ebc], 0xffffffff
je 0x403099
mov eax, dword [ebp + 0x14]
cmp eax, dword [0x407eb8]
jne 0x403099
lea eax, [ebp - 0x1c]
push eax
push dword [0x407eb8]
call sub.kernel32.dll_GetConsoleScreenBufferInfo
movsx eax, word [ebp - 0x18]
mov dword [0x407ec4], eax
movsx eax, word [ebp - 0x16]
mov dword [0x407ec8], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4031b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
push esi
push edi
mov edi, 3
push 0x408a24
call fcn.004065b4
mov esi, dword [eax]
push 0x408a24
call fcn.004065b4
mov dword [eax], 0x40
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x38c]
push eax
push 0
call fcn.00405e1c
call fcn.00405c98
lea eax, [ebp - 0x150]
push eax
push 1
call fcn.00405d24
call fcn.0040463c
test eax, eax
jne 0x4032f1
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x190]
push eax
push 0x40
push 0
call fcn.00405dfc
call fcn.0040463c
test eax, eax
jne 0x403267
cmp word [ebp - 0x190], 0x5a4d
jne 0x403267
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x154]
call fcn.00405d40
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x190]
push eax
push 2
push 0
call fcn.00405dfc
jmp 0x403271
mov dword [ebp - 0x154], 0
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x154]
call fcn.00405d40
call fcn.0040463c
test eax, eax
jne 0x4032d5
cmp word [ebp - 0x190], 0x4550
jne 0x4032d5
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x288]
push eax
push 0xf8
push 0
call fcn.00405dfc
call fcn.0040463c
test eax, eax
jne 0x4032d5
cmp dword [ebp - 0x288], 0x4550
jne 0x4032d5
cmp word [ebp - 0x22c], 3
jne 0x4032d5
mov edi, 2
lea eax, [ebp - 0x150]
push eax
call fcn.00405d70
push 0x408a1c
call fcn.004065b4
mov dword [eax], 0
push 0x408a24
call fcn.004065b4
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403348
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
call sub.kernel32.dll_CreateThread
mov esi, eax
push esi
call sub.kernel32.dll_CloseHandle
test esi, esi
setne al
movsx eax, al
push eax
call fcn.00402ed8
mov esi, eax
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x4033ec
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
cmp dword [0x407f5c], 0
je 0x40340e
mov eax, dword [0x407f5c]
mov dword [ebp - 4], eax
jmp 0x4034a3
push 0x104
call fcn.00404710
mov dword [ebp - 4], eax
push 0x104
push dword [ebp - 4]
push 0
call sub.kernel32.dll_GetModuleFileNameA
push dword [ebp - 4]
call fcn.004041d8
inc eax
mov ebx, eax
call sub.kernel32.dll_GetCommandLineA
mov esi, eax
mov al, byte [esi]
dec al
cmp al, 0x1f
jbe 0x403453
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.00403384
mov esi, eax
inc esi
push esi
call fcn.004041d8
inc eax
mov edi, eax
lea eax, [ebp - 4]
push eax
mov eax, ebx
add eax, edi
inc eax
push eax
call fcn.00404770
call sub.kernel32.dll_AreFileApisANSI
test eax, eax
jne 0x403484
push edi
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push esi
call sub.user32.dll_CharToOemBuffA
jmp 0x403491
push esi
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push edi
call fcn.00405170
mov eax, dword [ebp - 4]
add eax, ebx
add eax, edi
mov byte [eax], 0
mov eax, dword [ebp - 4]
mov dword [0x407f5c], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403580
Capabilities:
Contain obfuscated stackstrings
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov dword [ebp - 0x24], 0x52414853
mov dword [ebp - 0x20], 0x454d4445
mov dword [ebp - 0x1c], 0x5356354d
call sub.kernel32.dll_GetCurrentProcessId
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0xb
call fcn.004050e4
xor eax, eax
mov bl, 0
cmp dword [0x407f00], 0
jne 0x4035ce
push 0x407c50
push 1
call fcn.00402de4
mov dword [0x407f00], eax
cmp dword [0x407f00], 0
jne 0x4035e7
push 0x8000
call fcn.00404710
mov esi, eax
mov bl, 1
jmp 0x403621
lea eax, [ebp - 0x24]
push eax
push 0
push 6
call dword [0x407f00]
test eax, eax
jne 0x403611
lea eax, [ebp - 0x24]
push eax
push 0x8000
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov bl, 1
push 0
push 0
push 0
push 6
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test bl, bl
je 0x40364a
push esi
push 0x8000
push 0xff
call fcn.004051cc
push esi
push 0x24
push 0
call fcn.004051cc
mov eax, esi
add eax, 0xc
push eax
call fcn.004047f8
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4039f8
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push esi
call fcn.00403984
lea edx, [ebp - 0x400]
movzx ecx, word [ebp + 0x14]
dec ecx
xor esi, esi
jmp 0x403a30
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov word [edx + 2], ax
mov eax, dword [ebp + 0x18]
movzx eax, byte [eax]
mov word [edx], ax
inc dword [ebp + 0x18]
add edx, 4
inc esi
cmp ecx, esi
jge 0x403a16
mov ax, word [ebp + 0x14]
mov word [ebp - 0x404], ax
mov word [ebp - 0x402], 1
mov word [ebp - 0x408], 0
mov word [ebp - 0x406], 0
mov ax, word [ebp + 0x10]
mov word [ebp - 0x410], ax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x40e], ax
movzx ecx, word [ebp + 0x10]
movzx eax, word [ebp + 0x14]
add ecx, eax
dec ecx
mov word [ebp - 0x40c], cx
mov ax, word [ebp + 0xc]
mov word [ebp - 0x40a], ax
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x408]
push dword [ebp - 0x404]
lea eax, [ebp - 0x400]
push eax
push dword [0x407eb8]
call sub.kernel32.dll_WriteConsoleOutputA
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x403dd8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x403df8
mov al, byte [ebp - 4]
jmp 0x403dfb
mov al, byte [ebp + 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4060d4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
or edi, 0xffffffff
or eax, 0xffffffff
mov dword [ebp - 0x24], 0
xor esi, esi
mov edx, dword [0x4082b0]
add edx, 0x24
mov esi, edx
cmp dword [edx], 0xffffffff
je 0x406112
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x40610d
mov ecx, dword [edx + 8]
cmp ecx, dword [esi + 8]
jbe 0x40610d
mov esi, edx
add edx, 0x10
jmp 0x4060f6
mov edx, esi
cmp dword [edx], 0xffffffff
je 0x406226
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x406226
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x406224
mov ecx, dword [edx + 8]
sub dword [ebp + 0x10], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [edx + 0xc]
test edx, edx
je 0x406224
mov cl, byte [edx]
sub cl, 0x3c
jne 0x40615a
jmp 0x406224
sub cl, 3
jne 0x406174
inc edx
mov dword [ebp - 0xc], edx
movzx ecx, byte [edx]
inc ecx
add edx, ecx
mov byte [ebp - 0x25], 1
jmp 0x40621f
inc cl
jne 0x406188
movzx ecx, word [edx + 1]
add edi, ecx
add edx, 3
jmp 0x40621f
inc cl
jne 0x40619c
movzx ecx, word [edx + 1]
add edi, ecx
mov ecx, dword [edx + 3]
add eax, ecx
add edx, 7
jmp 0x4061af
movzx ecx, byte [edx]
shr ecx, 6
add edi, ecx
mov cl, byte [edx]
and cl, 0x3f
movzx ecx, cl
add eax, ecx
inc edx
cmp eax, dword [ebp + 0x10]
jne 0x4061b9
mov esi, eax
mov dword [ebp - 0x24], edi
cmp eax, dword [ebp + 0x10]
jl 0x406216
sub eax, dword [ebp + 0x10]
cmp eax, 0xa
jle 0x4061cc
cmp byte [ebp - 0x25], 0
jne 0x406214
mov eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov eax, dword [ebp + 0xc]
mov byte [eax], cl
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp eax, dword [ebp - 0x14]
jle 0x406202
inc dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov dl, byte [eax + ecx]
xor dl, 0xaa
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov byte [eax + ecx], dl
jmp 0x4061dd
movzx eax, word [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
add esi, dword [ebp - 0x18]
mov eax, esi
jmp 0x406226
jmp 0x406224
mov esi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x25], 0
jmp 0x40614c
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4066fc
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10
cld
push ecx
call fcn.004066d8
call fcn.00403580
mov dword [0x4082b0], eax
lea edx, [eax + 0x18]
mov dword [0x408310], edx
pop edx
call fcn.00406558
call sub.kernel32.dll_GetEnvironmentStrings
mov dword [0x4082dc], eax
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x4082f0], eax
mov dword [0x408318], eax
call fcn.004031b0
cmp eax, 3
setb byte [0x4082b9]
call fcn.004041d0
lea eax, [esp]
xor edx, edx
mov ecx, dword fs:[edx]
mov dword fs:[edx], eax
mov dword [eax], ecx
mov dword [eax + 4], 0x406988
mov dword [eax + 8], ebp
jmp dword [esp + 0x10]
Function at 0x40349b
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x4034f0
push dword [esp + 0x10]
push 0x40341a
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x466a74]
test esi, esi
je 0x403549
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4034e8
cmp byte [esi + 0x10], 0
je 0x4034e8
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x4034c4
jmp 0x403549
mov esi, dword [0x466a74]
test esi, esi
je 0x403549
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x403542
cmp byte [esi + 0x11], 0
je 0x40351e
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x403535
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x466a74
call fcn.0040f469
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x4034fd
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x403bdf
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x466f74]
call fcn.0040ed6c
mov ebx, eax
test ebx, ebx
je 0x403c43
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x403c08
push dword [esp + 0xc]
push ebx
call eax
jmp 0x403c43
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.0040ff90
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.00410060
pop edi
pop esi
pop ebx
ret 8
Function at 0x40719c
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x407312
mov eax, dword [esp + 0x24]
dec eax
je 0x4072f5
dec eax
jne 0x407312
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.00407155
pop ecx
test eax, eax
je 0x407253
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x407216
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x4072f1
dec ebx
je 0x4072ed
dec ebx
je 0x4072cc
dec ebx
je 0x407286
sub ebx, 4
jne 0x407312
test edi, edi
jne 0x407312
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x407312
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x407216
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x407211
sub edi, 0
je 0x4072be
dec edi
je 0x4072b0
dec edi
je 0x4072a2
dec edi
jne 0x407312
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x407312
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x407312
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x407312
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x407312
sub edi, 0
je 0x4072e9
dec edi
je 0x4072e5
dec edi
jne 0x407312
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x407312
push 0x3c
jmp 0x407311
push 0x32
jmp 0x407311
push 0x14
jmp 0x407311
push 5
jmp 0x407311
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40730f
cmp eax, 0xa
je 0x40730b
cmp eax, 0x5a
jne 0x407312
push 0x28
jmp 0x407311
push 0x1e
jmp 0x407311
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x407ab7
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x407b4f
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x407b4c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x407b4c
lea eax, [esi - 1]
push eax
push dword [0x466f80]
call fcn.0040ed6c
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x407b4e
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x407b43
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x407c36
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x407b29
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x407bf5
push eax
call esi
test al, al
jns 0x407bf5
push 0x11
call esi
test al, al
js 0x407bf5
push 0x10
call esi
test al, al
js 0x407bf5
push 0x12
call esi
test al, al
js 0x407bf5
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x407bf5
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x407bc9
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x407be0
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x407c40
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x407c40
test ebp, ebp
je 0x407c19
push 0x11
call esi
test al, al
js 0x407c11
push 0x10
call esi
test al, al
js 0x407c11
push 0x12
call esi
test al, al
jns 0x407c19
push 1
push ebp
call fcn.00407c4c
test ebx, ebx
je 0x407c2d
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x407c40
test edi, edi
je 0x407c40
mov eax, dword [edi + 8]
jmp 0x407c42
and dword [esp + 0x14], 0
jmp 0x407b4e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4