joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408e4e
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x408e99
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040906b
test al, al
jne 0x408e93
sub edx, 2
cmp edx, edi
jne 0x408e79
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x408ebb
lea eax, [edi + 2]
cmp edx, eax
je 0x408ebb
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00408d9a
add esp, 0x10
jmp 0x408fb5
push esi
lea ecx, [ebp - 0x255]
call fcn.0040906b
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408efe
push dword [ebp - 0x25c]
jmp 0x408eab
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x408f3b
cmp word [ebp - 0x226], 0
je 0x408f5c
cmp word [ebp - 0x226], ax
jne 0x408f3b
cmp word [ebp - 0x224], 0
je 0x408f5c
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00408d9a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x408fa8
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x408f15
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x408f90
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x408fb5
push 0x408bca
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040ba90
add esp, 0x10
jmp 0x408f85
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403c14
leave
ret

Function at 0x40a9fa
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x413ff4
push 0x413fec
push str.FlsAlloc
push 0x1f
call fcn.0040a935
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40aa2e
push dword [ebp + 8]
mov ecx, esi
call dword [0x412120]
call esi
jmp 0x40aa34
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40aa78
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x414004
push 0x413ffc
push str.FlsGetValue
push 0x21
call fcn.0040a935
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40aaaf
push dword [ebp + 8]
mov ecx, esi
call dword [0x412120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40aab7
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41400c
push 0x414004
push str.FlsSetValue
push 0x22
call fcn.0040a935
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40aaf1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x412120]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40f7b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40f7dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f7dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x99f3608
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data_1
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x13b4c47
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4096c0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 0x40], eax
xor eax, eax
mov word [ebp - 0x248], ax
push 0x206
push 0
lea ecx, [ebp - 0x246]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
xor edx, edx
mov word [ebp - 0x450], dx
push 0x206
push 0
lea eax, [ebp - 0x44e]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCR90.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x40974f
mov edx, dword [ebp + 0xc]
push edx
push 0x104
lea eax, [ebp - 0x450]
push eax
call fcn.004062c0
push 0x40b3b4
push 0x104
lea ecx, [ebp - 0x450]
push ecx
call fcn.00406310
jmp 0x40979e
lea edx, [ebp - 0x450]
push edx
push 0
push 0
push 0x2b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x409780
push 0x40b3b8
push 0x104
lea eax, [ebp - 0x450]
push eax
call fcn.00406310
jmp 0x40979e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b3d8
push str.SHGetFolderPath_failed
call fcn.004080a0
add esp, 0xc
jmp 0x409874
lea ecx, [ebp - 0x450]
push ecx
push 0x104
lea edx, [ebp - 0x248]
push edx
call fcn.004062c0
push str.AdobeARMHelper.exe
push 0x104
lea eax, [ebp - 0x248]
push eax
call fcn.00406310
push 0xffffffffffffffff
lea ecx, [ebp - 0x248]
push ecx
call fcn.004095f0
add esp, 8
test eax, eax
jne 0x4097fc
push 0x357
lea edx, [ebp - 0x248]
push edx
push str.Service_workflow_failed__file_not_valid:
call fcn.004080a0
add esp, 0xc
jmp 0x409874
mov dword [ebp - 0x3c], 0
push 0x38
push 0
lea eax, [ebp - 0x38]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x540
mov dword [ebp - 0x20], 5
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x248]
mov dword [ebp - 0x2c], edx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40985b
push 0
push 0x40b48c
push str.ShellExecuteEx_succeeded
call fcn.004080a0
add esp, 0xc
jmp 0x409874
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b4c4
push str.ShellExecuteEx_failed
call fcn.004080a0
add esp, 0xc
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.00407458
mov esp, ebp
pop ebp
ret

Function at 0x401000
Capabilities:
Access peb ldr_data

Disassembly:
push 0
push 2
push 0x402065
push 0x402053
call dword [sym.imp.Winmm.dll_mciSendStringA]
cmp eax, 0x107
je 0x40101c
ret
mov edi, edi
mov esi, 0x4010c7
mov edi, esi
push 1
push 0x402083
push 1
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateSemaphoreW]
mov edx, eax
pop ebx
mov ecx, 0x380
mov al, byte [esi]
sub al, bl
stosb byte es:[edi], al
inc esi
loop 0x401040
push dword fs:[0x30]
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
cmp word [eax], 0x5a4d
je 0x401066
xor eax, eax
mov dword [0x402096], eax
add esp, 4
ret
Function at 0x4067b6
Capabilities:
Terminate process

Disassembly:
push ebx
xor eax, eax
push eax
push eax
call fcn.0041cce0
push dword [esp + 0x10]
push 0
push 1
call sub.KERNEL32.DLL_OpenProcess
mov dword [esp], eax
mov ebx, dword [esp]
and ebx, ebx
je 0x4067ff
push 1
push dword [esp + 4]
call sub.KERNEL32.DLL_TerminateProcess
and eax, eax
je 0x4067f7
mov dword [esp + 4], 1
push dword [esp]
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [esp + 4]
jmp 0x406807
add esp, 8
pop ebx
ret 4

Function at 0x40ad3b
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.0040acbc
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov ebx, 0x6a96b0
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov esi, dword [0x6a8ba4]
jmp 0x40ad6c
cmp dword [esi + 0xc], edi
je 0x40ad72
mov esi, dword [esi]
test esi, esi
jne 0x40ad65
jmp 0x40ad8a
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
push 0x6a8ba4
call fcn.0041ca5b
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4

Function at 0x40ad97
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x40ae2f
push edi
push 0x6a96b0
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edi, dword [0x6a8ba4]
test edi, edi
je 0x40ae03
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x40adfc
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x6a8ba4
call fcn.0041ca5b
pop ecx
pop ecx
jmp 0x40adfe
mov edi, dword [edi]
test edi, edi
jne 0x40add3
pop ebx
mov eax, dword [0x6a590c]
mov esi, eax
inc eax
push 0x10
push 0x6a8ba4
mov dword [0x6a590c], eax
call fcn.0041ca9b
pop ecx
pop ecx
push 0x6a96b0
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8
Function at 0x40af6a
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x40afbf
push dword [esp + 0x10]
push 0x40aee9
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x6a8ba8]
test esi, esi
je 0x40b018
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x40afb7
cmp byte [esi + 0x10], 0
je 0x40afb7
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 0x40af93
jmp 0x40b018
mov esi, dword [0x6a8ba8]
test esi, esi
je 0x40b018
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 0x40b011
cmp byte [esi + 0x11], 0
je 0x40afed
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x40b004
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 0x6a8ba8
call fcn.0041ca5b
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x40afcc
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x40b0bb
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x6a96d4]
call fcn.0041c1bb
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x40b1bb
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x40b111
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x40b109
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x40b151
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x40b193
push 0x22
pop edx
cmp cx, dx
je 0x40b143
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x40b133
xor ecx, ecx
cmp word [eax], cx
je 0x40b193
mov ecx, eax
add eax, 2
jmp 0x40b195
test dx, dx
je 0x40b19b
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x40b143
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x40b189
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x40b193
cmp cx, dx
je 0x40b186
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x40b176
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x40b15b
jmp 0x40b143
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x40b19d
xor edx, edx
cmp dword [ebp], ebx
jne 0x40b1a6
test edi, edi
jne 0x40b1c3
test edx, edx
je 0x40b1ab
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x40b0ff
test edi, edi
jne 0x40b1d4
mov eax, ebx
jmp 0x40b1d8
test esi, esi
je 0x40b1d4
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x40b1d8
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x40c4d8
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x40c427
push 0x10
push 0x2c
call fcn.0041c3ff
push 0
push 0
push 8
mov dword [0x6a8bbc], eax
call fcn.0041c226
cmp word [0x6a8bb4], 0
mov dword [0x6a96fc], eax
jne 0x40c5bd
push edi
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x40c530
mov word [0x6a8bb4], di
jmp 0x40c538
xor eax, eax
mov word [0x6a8bb4], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov dword [0x6a8bd0], eax
test eax, eax
je 0x40c5bc
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x6a8bd0]
mov dword [0x6a8bc0], eax
call esi
push str.getnameinfo
push dword [0x6a8bd0]
mov dword [0x6a8bc4], eax
call esi
push str.WSAStringToAddressA
push dword [0x6a8bd0]
mov dword [0x6a8bc8], eax
call esi
cmp dword [0x6a8bc0], 0
mov dword [0x6a8bcc], eax
pop esi
je 0x40c5bc
cmp dword [0x6a8bc4], 0
je 0x40c5bc
cmp dword [0x6a8bc8], 0
je 0x40c5bc
test eax, eax
je 0x40c5bc
mov dword [0x6a8bb8], edi
pop edi
add esp, 0x190
ret

Function at 0x40cd00
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x6a8bd4], 0
jne 0x40cd0e
call fcn.0040cca0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
push edi
push dword [0x6a8bd8]
call esi
test eax, eax
jne 0x40cd31
call fcn.0040cca0
push dword [0x6a8bd8]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x40cd40
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x40cda0
mov ebx, 0x10
test edi, edi
jns 0x40cda9
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x40cd72
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4100a2
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 0x410218
mov eax, dword [esp + 0x24]
dec eax
je 0x4101fb
dec eax
jne 0x410218
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.0041005b
pop ecx
test eax, eax
je 0x410159
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x41011c
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x4101f7
dec ebx
je 0x4101f3
dec ebx
je 0x4101d2
dec ebx
je 0x41018c
sub ebx, 4
jne 0x410218
test edi, edi
jne 0x410218
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x410218
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 0x41011c
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x410117
sub edi, 0
je 0x4101c4
dec edi
je 0x4101b6
dec edi
je 0x4101a8
dec edi
jne 0x410218
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x410218
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x410218
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x410218
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x410218
sub edi, 0
je 0x4101ef
dec edi
je 0x4101eb
dec edi
jne 0x410218
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x410218
push 0x3c
jmp 0x410217
push 0x32
jmp 0x410217
push 0x14
jmp 0x410217
push 5
jmp 0x410217
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x410215
cmp eax, 0xa
je 0x410211
cmp eax, 0x5a
jne 0x410218
push 0x28
jmp 0x410217
push 0x1e
jmp 0x410217
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x4112c2
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov ebx, eax
test ebx, ebx
je 0x411355
push 9
call esi
test al, al
jns 0x411355
push 0x11
call esi
test al, al
js 0x411355
push 0x10
call esi
test al, al
js 0x411355
push 0x12
call esi
test al, al
js 0x411355
push 0x10
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
push 5
lea eax, [ebp - 0x24]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x411337
push 4
lea eax, [ebp - 0x24]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x411355
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
jne 0x411355
xor eax, eax
jmp 0x4113d6
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x41137d
push 0x11
call esi
test al, al
js 0x411375
push 0x10
call esi
test al, al
js 0x411375
push 0x12
call esi
test al, al
jns 0x41137d
push 1
push edi
call fcn.004113de
mov esi, dword [sym.imp.USER32.dll_GetPropW]
test ebx, ebx
je 0x411393
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x4113d3
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x4113d3
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4113d3
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x4113d3
lea eax, [esi - 1]
push eax
push dword [0x6a9734]
call fcn.0041c32c
test eax, eax
je 0x4113d3
mov eax, dword [eax + 8]
jmp 0x4113d5
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4116da
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x411822
xor ecx, ecx
cmp word [eax], cx
je 0x411822
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x411733
cmp eax, 3
jne 0x41176d
cmp word [esp + 0xa], 0x3a
jne 0x41176d
cmp eax, 2
jne 0x411751
lea eax, [esp + 8]
push 0x45a450
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 1
jbe 0x411822
push 0xfffffffffffffffe
pop edi
jmp 0x411822
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x411782
cmp ax, bx
jne 0x41178c
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x411775
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, esi
je 0x4117cb
test byte [esp + 0x21c], 0x10
je 0x4117b2
push 0xfffffffffffffffe
pop edi
jmp 0x4117c2
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
jmp 0x411820
cmp word [esp + 0x10], bp
jne 0x4117d9
cmp word [esp + 0x12], bp
je 0x4117f8
cmp word [esp + 0x10], bx
jne 0x4117e7
cmp word [esp + 0x12], bx
je 0x4117f8
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x411820
cmp word [esp + 0x12], ax
jne 0x411820
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, esi
je 0x41180d
test al, 0x10
je 0x411820
jmp 0x41181d
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 1
jbe 0x411820
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4
Function at 0x411b16
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x411b8e
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x411b6f
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x411b6c
cmp ecx, 0x5c
je 0x411b6c
cmp ecx, 0x2f
jne 0x411b79
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x411b59
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
jmp 0x411b90
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x411d20
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x411df5
push ebx
push edi
push pe_nt_image_headers32
push 3
push edi
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x411df4
push esi
mov esi, dword [ebp + 0x10]
push esi
call fcn.00414010
push esi
mov word [ebp - 0x20], ax
call fcn.00414036
push esi
mov word [ebp - 0x1e], ax
call fcn.00414058
push esi
mov word [ebp - 0x1c], ax
call fcn.00414079
push esi
mov word [ebp - 0x1a], ax
call fcn.0041409a
push esi
mov word [ebp - 0x18], ax
call fcn.004140bb
push esi
mov word [ebp - 0x16], ax
call fcn.004140dc
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_LocalFileTimeToFileTime]
cmp dword [ebp + 0xc], 1
mov eax, edi
mov ecx, edi
pop esi
jne 0x411dd3
lea eax, [ebp - 8]
jmp 0x411de1
cmp dword [ebp + 0xc], 2
jne 0x411dde
lea ecx, [ebp - 8]
jmp 0x411de1
lea edi, [ebp - 8]
push ecx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4121c0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x4121fc
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4