joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b7f60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x44], ebx
je 0x4b8054
cmp byte [esi + 0x49], bl
je 0x4b8054
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4b7f9c
xor al, al
jmp 0x4b8056
push ebx
push 8
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
call fcn.004b1a63
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x4b7ff7
lea eax, [ebp - 0x20]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x24]
push ebx
mov ebx, dword [ebp - 0x10]
add eax, ebx
push eax
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x4b7ffc
dec eax
je 0x4b8000
dec eax
dec eax
je 0x4b8050
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.0040d0a1
mov al, bl
jmp 0x4b8056
mov edx, dword [ebp - 0x20]
jmp 0x4b7fc2
mov byte [esi + 0x49], 0
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x4b800c
lea eax, [ebp - 0x20]
mov edi, dword [ebp - 0x24]
sub edi, eax
je 0x4b8032
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x4b801f
lea eax, [ebp - 0x20]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.005e40df
add esp, 0x10
cmp edi, eax
jne 0x4b7fe5
cmp byte [esi + 0x49], 0
je 0x4b8050
test edi, edi
jne 0x4b7fb4
push edi
push 8
lea ecx, [ebp - 0x20]
call fcn.0040ce47
jmp 0x4b7fb4
mov bl, 1
jmp 0x4b7fe7
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret

Function at 0x4b8257
Capabilities:
Enumerate processes

Disassembly:
push edi
lea edi, [esi + 0xc]
push 0x22c
push 0
push edi
call fcn.00402394
add esp, 0xc
mov dword [edi], 0x22c
cmp byte [esi + 8], 0
push edi
push dword [esi + 4]
jne 0x4b8287
mov byte [esi + 8], 1
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x4b828d
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
setne al
test al, al
je 0x4b82a5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test al, al
je 0x4b825b
mov eax, edi
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x4b8b6b
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4b8bc0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4b8bc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x10], ebx
pop ebx
je 0x4b8bd5
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x14], 1
mov ecx, dword [ebp - 4]
sete al
xor ecx, ebp
call fcn.00403fc1
leave
ret
Function at 0x4b8be8
Capabilities:
Create process on windows
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x34], ebx
call fcn.00411356
cmp dword [eax], 5
jge 0x4b8c11
xor al, al
jmp 0x4b8db3
call fcn.004b8e36
cmp dword [eax + 0x10], ebx
jne 0x4b8d8d
lea esi, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.00410999
mov eax, esi
push eax
push 0x20119
push ebx
push 0x61de50
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, 0x400
push eax
push ecx
mov dword [ebp - 0x34], eax
call fcn.004b8e36
pop ecx
mov esi, eax
call fcn.004aaab8
pop ecx
lea ecx, [ebp - 0x34]
push ecx
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4b8c7d
lea esi, [ebp - 0x30]
call fcn.00410999
jmp 0x4b8c0a
push str._CommonProgramFiles_
push ecx
call fcn.004b8e36
pop ecx
push eax
call fcn.0040cd0e
mov edi, eax
cmp edi, 0xffffffff
je 0x4b8d85
call fcn.004b8e36
push 0x14
mov esi, eax
pop eax
mov ecx, edi
call fcn.00410af4
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebx
push ebx
xor eax, eax
mov edi, str.CommonProgramW6432
push edi
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x20], ax
mov dword [ebp - 0x28], ebx
call esi
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x4b8d02
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004013b3
pop ecx
push dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
push eax
push edi
call esi
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
call fcn.0040bed1
jmp 0x4b8d56
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push 0x64fba0
mov dword [ebp - 0x24], ebx
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x4b8d3c
cmp dword [ebp - 0x24], ebx
je 0x4b8d28
push dword [ebp - 0x24]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 1
xor edi, edi
lea esi, [ebp - 0x20]
mov dword [ebp - 0x24], ebx
call fcn.0040bab7
jmp 0x4b8c73
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
call fcn.0040bed1
cmp dword [ebp - 0x24], ebx
je 0x4b8d56
push dword [ebp - 0x24]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
call fcn.004b8e36
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x20]
push ecx
push 1
mov esi, eax
call fcn.004ad3ac
cmp dword [ebp - 0x28], ebx
je 0x4b8d79
push dword [ebp - 0x28]
call fcn.00404e46
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x20]
call fcn.0040bab7
lea esi, [ebp - 0x30]
call fcn.00410999
call fcn.004b8e36
cmp dword [eax + 0x14], 8
jb 0x4b8d9a
mov eax, dword [eax]
push 5
push ebx
push ebx
push eax
push 0x62b7c0
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret
Function at 0x4ba221
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x1c], 0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov ecx, 0x1400
mov dword [ebp - 0x20], eax
cmp cx, ax
je 0x4ba2c5
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 9
lea ecx, [ebp - 0x18]
movzx eax, ax
push ecx
push 0x59
push eax
mov dword [ebp - 0x1c], eax
call ebx
cmp eax, 1
jle 0x4ba2c5
lea edi, [eax - 1]
lea eax, [ebp - 0x18]
push eax
call fcn.0040befe
mov esi, dword [ebp - 0x24]
and dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x4ba28f
mov eax, dword [esi]
jmp 0x4ba291
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x20]
and eax, 0xfc00
cmp cx, ax
je 0x4ba2c1
push 9
lea eax, [ebp - 0x18]
push eax
push 0x5a
push dword [ebp - 0x1c]
call ebx
cmp eax, 1
jle 0x4ba2c1
lea edi, [eax - 1]
lea eax, [ebp - 0x18]
push eax
call fcn.0040befe
mov al, 1
jmp 0x4ba2c7
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret

Function at 0x4bc753
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne bl
test bl, bl
je 0x4bc784
cmp byte [ebp + 0xc], 0
je 0x4bc784
push 0xea60
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov al, bl
pop ebx
leave
ret
Function at 0x4bd010
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d1c
call fcn.00405ecb
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x2d18], eax
cmp eax, ebx
je 0x4bd167
push esi
mov dword [ebp - 0x2d10], ebx
mov dword [ebp - 0x2d0c], ebx
push edi
push dword [ebp - 0x2d0c]
mov eax, 0x200
push 0x653e9c
lea ecx, [ebp - 0x204]
call fcn.004bca33
pop ecx
pop ecx
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d14], eax
cmp eax, 0xffffffff
je 0x4bd14a
xor eax, eax
lea edi, [ebp - 0x2d08]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, 0x2710
push esi
lea eax, [ebp - 0x2cfc]
push ebx
push eax
mov dword [ebp - 0x2d1c], ebx
mov dword [ebp - 0x2d08], ebx
mov dword [ebp - 0x2d04], ebx
call fcn.00402394
add esp, 0xc
push ebx
lea eax, [ebp - 0x2d1c]
push eax
push esi
lea eax, [ebp - 0x2cfc]
push eax
push 0xc
lea eax, [ebp - 0x2d08]
push eax
push 0x2d1400
push dword [ebp - 0x2d14]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4bd136
push 0x3e8
lea eax, [ebp - 0x5ec]
push ebx
push eax
call fcn.00402394
mov eax, dword [ebp - 0x2ce4]
add esp, 0xc
lea esi, [ebp - 0x5ec]
lea ecx, [ebp - 0x2cfc]
call fcn.004bf44e
mov ecx, dword [ebp - 0x2d18]
mov eax, esi
push eax
push 0x64
pop edx
call fcn.004bc925
test eax, eax
jne 0x4bd136
mov dword [ebp - 0x2d10], 1
push dword [ebp - 0x2d14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d10], ebx
jne 0x4bd15d
inc dword [ebp - 0x2d0c]
cmp dword [ebp - 0x2d0c], 0x10
jl 0x4bd049
mov eax, dword [ebp - 0x2d10]
pop edi
pop esi
jmp 0x4bd169
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret
Function at 0x4bd3ea
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x4f8], eax
cmp eax, ebx
je 0x4bd592
push 0x64
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.00402394
add esp, 0xc
lea eax, [ebp - 0x4e0]
push eax
push 8
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4bd570
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x4e8]
push eax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ebp - 0x4e4], ebx
push ebx
jmp 0x4bd549
lea eax, [ebp - 0x4ec]
push eax
push 1
push ebx
lea eax, [ebp - 0x2d4]
push eax
push dword [ebp - 0x4e0]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4bd52b
lea eax, [ebp - 0x4f4]
push eax
lea eax, [ebp - 0x4dc]
push eax
lea eax, [ebp - 0x4f0]
push eax
push ebx
push 0x653f8c
push dword [ebp - 0x4ec]
mov dword [ebp - 0x4f0], 1
mov dword [ebp - 0x4f4], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4bd51f
push 0x64
lea eax, [ebp - 0xcc]
push ebx
push eax
call fcn.00402394
lea eax, [ebp - 0x4dc]
push eax
lea ecx, [ebp - 0xcc]
call fcn.004bd2e4
add esp, 0x10
test eax, eax
je 0x4bd51f
cmp byte [ebp - 0x68], bl
je 0x4bd50d
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x4bd51f
lea eax, [ebp - 0xcc]
push eax
push 0x64
pop edx
lea ecx, [ebp - 0x68]
call fcn.004bc925
push dword [ebp - 0x4ec]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x4e4]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x4e8]
push eax
lea eax, [ebp - 0x2d4]
push eax
push dword [ebp - 0x4e4]
push dword [ebp - 0x4e0]
mov dword [ebp - 0x4e8], 0x104
call esi
test eax, eax
je 0x4bd467
push dword [ebp - 0x4e0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
cmp byte [ebp - 0x68], bl
je 0x4bd592
mov ecx, dword [ebp - 0x4f8]
lea eax, [ebp - 0x68]
push eax
push 0x64
pop edx
call fcn.004bc925
xor ecx, ecx
test eax, eax
setns cl
mov eax, ecx
jmp 0x4bd594
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret
Function at 0x4bd774
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
test ebx, ebx
je 0x4bd892
mov esi, 0x400
push esi
lea eax, [ebp - 0x50c]
push 0
push eax
mov dword [ebp - 0x514], 1
mov dword [ebp - 0x510], esi
call fcn.00402394
add esp, 0xc
lea eax, [ebp - 0x510]
push eax
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x514]
push eax
push 0x654000
push str.Software360SafeLiveup
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4bd892
lea eax, [ebp - 0x50c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4bd7f6
sub eax, edx
cmp eax, 0x40
jne 0x4bd892
lea eax, [ebp - 0x50c]
push eax
push 0x80
push 0x20
pop edx
lea ecx, [ebp - 0x8c]
call fcn.004bca6e
lea eax, [ebp - 0x4ec]
push eax
mov edx, 0x80
lea ecx, [ebp - 0x10c]
call fcn.004bc925
push esi
lea eax, [ebp - 0x50c]
push 0
push eax
call fcn.00402394
add esp, 0xc
lea eax, [ebp - 0x50c]
push esi
push eax
lea ecx, [ebp - 0x8c]
call fcn.004bcae3
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x50c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4bd892
lea eax, [ebp - 0x8c]
push eax
mov edx, 0x104
mov ecx, ebx
call fcn.004bc925
neg eax
sbb eax, eax
inc eax
jmp 0x4bd894
xor eax, eax
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret
Function at 0x4bd9c6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
cmp byte [ebp + 8], al
je 0x4bda52
xor ecx, ecx
mov word [ebp - 0x210], cx
lea ecx, [ebp - 0x210]
push ecx
push eax
push 0xffffffffffffffff
push 0x1a
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x4bda0d
xor al, al
jmp 0x4bdb1b
lea eax, [ebp - 0x210]
push eax
lea esi, [ebp - 0x248]
call fcn.0040bead
mov eax, esi
push eax
lea eax, [ebp - 0x22c]
call fcn.0040c8fa
push eax
push ebx
call fcn.0042353e
push 1
xor edi, edi
lea esi, [ebp - 0x22c]
call fcn.0040bab7
push 1
lea esi, [ebp - 0x248]
call fcn.0040bab7
jmp 0x4bda60
push 0x6c
mov ecx, ebx
call fcn.004b4e9a
pop ecx
test al, al
je 0x4bda06
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x22c]
push eax
mov ecx, ebx
mov dword [ebp - 0x250], str.Microsoft
mov dword [ebp - 0x24c], 9
call fcn.004b2116
push eax
push ebx
call fcn.0042353e
push 1
xor edi, edi
lea esi, [ebp - 0x22c]
call fcn.0040bab7
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x22c]
push eax
mov ecx, ebx
mov dword [ebp - 0x250], str.Internet_Explorer
mov dword [ebp - 0x24c], 0x11
call fcn.004b2116
push eax
push ebx
call fcn.0042353e
push 1
lea esi, [ebp - 0x22c]
call fcn.0040bab7
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x22c]
push eax
mov ecx, ebx
mov dword [ebp - 0x250], str.Quick_Launch
mov dword [ebp - 0x24c], 0xc
call fcn.004b2116
push eax
push ebx
call fcn.0042353e
push 1
lea esi, [ebp - 0x22c]
call fcn.0040bab7
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret

Function at 0x4bf3eb
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
and dword [ebp - 0xc], 0
push ebx
mov ebx, dword [ebp + 8]
or dword [ebp + 8], 0xffffffff
push esi
push edi
mov dword [ebp - 8], 8
cmp dword [ebp - 8], 0xffffffff
lea eax, [ebp + 8]
ja 0x4bf415
lea eax, [ebp - 8]
mov edi, dword [eax]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x4bf448
test byte [ebp - 0xc], 1
je 0x4bf438
and dword [ebp - 0xc], 0xfffffffe
lea esi, [ebp - 0xbc]
call fcn.004b5cf8
sub dword [ebp - 8], edi
add ebx, edi
cmp dword [ebp - 8], 0
ja 0x4bf409
pop edi
pop esi
pop ebx
leave
ret
call fcn.004b87c7
int3

Function at 0x4bfc9e
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x4c1e0a
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and dword [ebp - 4], 0
cmp dword [0x6b222c], 0xffffffff
push ebx
push esi
push edi
jne 0x4c1e45
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0xffffffffffffffff
mov esi, eax
push esi
push 0x6b222c
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 0xffffffff
je 0x4c1e45
push esi
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov esi, 0x100
push esi
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00402394
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push dword [0x6b222c]
call ebx
push esi
call fcn.004013b3
pop ecx
push 0x40
pop ecx
mov edi, eax
lea esi, [ebp - 0x108]
push eax
rep movsd dword es:[edi], dword [esi]
push dword [0x6b222c]
mov dword [ebp - 4], eax
call ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c677f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push ebx
push dword [ebp + 0x18]
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4c6806
mov eax, 0x101c01
mov dword [ebp - 4], 0x100c43
cmp dword [ebp + 0xc], esi
je 0x4c67bd
mov eax, 0x1fffff
mov dword [ebp - 4], eax
push edi
push 1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push ebx
push dword [ebp + 8]
push dword [ebx]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call edi
test eax, eax
jne 0x4c67ea
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4c6805
push 1
push 0
push dword [ebp - 4]
lea eax, [ebx + 4]
push eax
push dword [ebp + 8]
push dword [eax]
call esi
push eax
call edi
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4cb409
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
xor edi, edi
mov esi, eax
mov dword [ebp - 0x10], edi
call fcn.00411356
cmp dword [eax + 0x24], 1
je 0x4cb42b
mov al, 1
jmp 0x4cb510
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push 1
push edi
call ebx
push edi
push edi
push 1
push edi
mov dword [esi + 8], eax
call ebx
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push edi
push edi
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov eax, dword [eax]
push 0x100002
lea ecx, [ebp - 8]
push ecx
push eax
push dword [esi + 8]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x4cb477
xor al, al
jmp 0x4cb510
mov eax, dword [esi]
mov eax, dword [eax]
push edi
push edi
push 0x100002
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [esi + 0xc]
push dword [ebp - 4]
call ebx
test eax, eax
je 0x4cb470
mov eax, dword [esi]
mov ecx, dword [eax]
push 0x40
mov eax, 0x1000
push eax
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
cmp ebx, edi
je 0x4cb470
push 0x2c
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.00402394
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x10]
push ecx
push 0x10
mov dword [ebp - 0x38], eax
mov eax, dword [esi]
mov eax, dword [eax]
lea ecx, [ebp - 0x40]
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4cb470
cmp dword [ebp - 0x10], 0x10
jne 0x4cb470
push ebx
push esi
call fcn.004cb515
test al, al
je 0x4cb470
call fcn.004cb861
test al, al
je 0x4cb470
mov eax, dword [esi]
mov edi, dword [eax]
push ebx
call fcn.004cb381
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4cb861
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
mov eax, dword [esi]
push ebx
push edi
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 1
jne 0x4cb935
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [esi + 8]
call edi
mov ebx, 0x102
jmp 0x4cb92d
cmp eax, 0x80
je 0x4cb935
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x4cb935
mov eax, dword [esi]
mov eax, dword [eax]
lea ecx, [ebp - 0x210]
push ecx
push 0x200
lea ecx, [ebp - 0x208]
push ecx
push dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x4cb8ee
mov byte [ebp - 0x209], 0
jmp 0x4cb910
cmp dword [ebp - 0x210], 0x200
jne 0x4cb8e5
mov eax, dword [esi]
push dword [eax + 4]
mov byte [ebp - 0x209], 1
call dword [sym.imp.KERNEL32.dll_SuspendThread]
test eax, eax
jne 0x4cb935
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x4cb935
cmp byte [ebp - 0x209], 0
jne 0x4cb945
push 0xffffffffffffffff
push dword [esi + 8]
call edi
cmp eax, ebx
jne 0x4cb8a8
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret
mov al, 1
jmp 0x4cb937

Function at 0x4cefa6
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ecx
push ebx
push edi
push 0xd
xor ebx, ebx
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x4cf006
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4cf006
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
cmp edi, ebx
je 0x4cf000
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4cf000
and dword [esi + 0x10], ebx
cmp dword [esi + 0x14], 8
jb 0x4cefe8
mov ecx, dword [esi]
jmp 0x4cefea
mov ecx, esi
push eax
xor edx, edx
push esi
mov word [ecx], dx
call fcn.0040d6e0
xor ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x4d43cb
Capabilities:
Get graphical window text

Disassembly:
push ecx
xor eax, eax
push ebx
mov dword [ecx], eax
push edi
cmp dword [esi + 0x7c], eax
je 0x4d4481
cmp dword [esi + 0x8c], eax
jne 0x4d4481
lea edi, [esi + 0x90]
push edi
mov ecx, str.EDIT
call fcn.00445200
test eax, eax
jne 0x4d442c
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004013b3
mov edi, eax
pop ecx
test edi, edi
je 0x4d4481
push ebx
push edi
push dword [esi + 0x24]
jmp 0x4d4469
push edi
mov ecx, str.msctls_hotkey32
call fcn.00445200
test eax, eax
jne 0x4d4481
push dword [esi + 0x4c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004013b3
mov edi, eax
pop ecx
test edi, edi
je 0x4d4481
push ebx
push edi
push dword [esi + 0x4c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x7c]
mov eax, dword [ecx]
push edi
push dword [esi + 0x24]
call dword [eax]
push edi
call fcn.00404e46
pop ecx
cmp dword [esi + 0x88], 0
je 0x4d4493
push 0
mov eax, esi
call fcn.004d473b
pop edi
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x4d46de
Capabilities:
Hide graphical window

Disassembly:
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4d4707
cmp dword [esi + 0x7c], 0
je 0x4d46fc
mov ecx, dword [esi + 0x7c]
push dword [esi + 0x24]
mov eax, dword [ecx]
call dword [eax + 8]
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
ret