joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408a6e
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
push ebx
mov edx, 0xa
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x408a75
call fcn.00417c90
mov edx, dword [esp + 0x34]
lea ecx, [esp]
call fcn.0040b000
mov edx, dword [esp + 0x38]
lea ecx, [esp + 4]
call fcn.0040b000
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 8]
call fcn.0040b000
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0xc]
call fcn.0040b000
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x10]
call fcn.0040b000
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x14]
call fcn.0040b000
push dword [esp]
mov edx, 0x447021
pop ecx
call fcn.0040b180
jne 0x408b0c
push dword [esp + 4]
mov edx, 0x447021
pop ecx
call fcn.0040b180
jne 0x408b0c
mov ebx, dword [esp + 0x48]
and ebx, ebx
jl 0x408b0c
mov ebx, dword [esp + 0x54]
and ebx, ebx
jl 0x408b0c
mov eax, 1
jmp 0x408b0e
xor eax, eax
and eax, eax
je 0x408b16
xor eax, eax
jmp 0x408b1b
mov eax, 1
and eax, eax
je 0x408b26
xor eax, eax
jmp 0x408c5f
push 0
call sub.OLE32.DLL_CoInitialize
lea eax, [esp + 0x18]
push eax
mov ebp, 0x44acec
push ebp
push 1
push 0
mov ebp, 0x44acdc
push ebp
call sub.OLE32.DLL_CoCreateInstance
mov ebx, eax
and ebx, ebx
jne 0x408c52
sub esp, 4
push dword [esp + 4]
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
push eax
pop eax
add esp, 4
sub esp, 4
push dword [esp + 0xc]
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
push eax
pop eax
add esp, 4
sub esp, 4
push dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
push eax
pop eax
add esp, 4
sub esp, 4
push dword [esp + 0x10]
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
push eax
pop eax
add esp, 4
push dword [esp + 0x48]
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 0x3c]
push dword [esp + 0x4c]
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 0x34]
sub esp, 4
push dword [esp + 0x58]
push dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [eax]
call dword [eax + 0x44]
push eax
pop eax
add esp, 4
lea eax, [esp + 0x1c]
push eax
mov ebp, 0x44acfc
push ebp
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax]
mov ebx, eax
and ebx, ebx
jne 0x408c48
sub esp, 4
push 1
push dword [esp + 0xc]
call fcn.00417d50
push eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
push eax
push dword [esp + 4]
call fcn.00417dc0
pop eax
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 1
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 8]
jmp 0x408c48
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 8]
call sub.OLE32.DLL_CoUninitialize
mov eax, dword [esp + 0x24]
jmp 0x408c5f
push dword [esp]
call fcn.00417cf0
push dword [esp + 8]
call fcn.00417cf0
push dword [esp + 0x10]
call fcn.00417cf0
push dword [esp + 0x14]
call fcn.00417cf0
push dword [esp + 4]
call fcn.00417cf0
push dword [esp + 0xc]
call fcn.00417cf0
add esp, 0x28
pop ebx
pop ebp
ret 0x24
Function at 0x40c47e
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x40c4d3
push dword [esp + 0x10]
push 0x40c3fd
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x44cd7c]
test esi, esi
je 0x40c52c
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x40c4cb
cmp byte [esi + 0x10], 0
je 0x40c4cb
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 0x40c4a7
jmp 0x40c52c
mov esi, dword [0x44cd7c]
test esi, esi
je 0x40c52c
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 0x40c525
cmp byte [esi + 0x11], 0
je 0x40c501
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x40c518
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 0x44cd7c
call fcn.00417a25
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x40c4e0
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40d700
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x44cd88], 0
jne 0x40d70e
call fcn.0040d6a0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x44cd8c]
call esi
test eax, eax
jne 0x40d731
call fcn.0040d6a0
push dword [0x44cd8c]
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 0x40d740
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 0x40d7a0
mov ebx, 0x10
test edi, edi
jns 0x40d7a9
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x40d772
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40d7c0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x44cd88], 0
jne 0x40d7ce
call fcn.0040d6a0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x44cd8c]
call esi
mov edx, eax
test edx, edx
jne 0x40d7f5
call fcn.0040d6a0
push dword [0x44cd8c]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x40d828
mov ebx, 0x10
test esi, esi
jns 0x40d831
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x40d840
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x40dbbc
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ecx
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ebp, ebp
push edi
mov edi, ebp
test esi, esi
je 0x40dce0
push dword [esp + 0x18]
push dword [0x44d144]
call fcn.0041731d
test eax, eax
je 0x40dce0
push esi
mov dword [esp + 0x24], ebp
call sub.MSVCRT.dll_strlen
pop ecx
add eax, esi
jmp 0x40dc09
mov cl, byte [eax]
cmp cl, 0x2e
je 0x40dc12
cmp cl, 0x2f
je 0x40dc0d
cmp cl, 0x5c
je 0x40dc0d
dec eax
cmp eax, esi
ja 0x40dbf7
cmp byte [eax], 0x2e
jne 0x40dc17
inc eax
mov dword [esp + 0x20], eax
push ebx
push ebp
push pe_nt_image_headers32
push 3
push ebp
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
test ebx, ebx
je 0x40dcdf
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
lea eax, [ebp - 1]
cmp eax, 0x5f5e0fe
ja 0x40dcd8
push ebp
push 0
push dword [0x44cb44]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x40dcd8
push 0
lea eax, [esp + 0x18]
push eax
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [esp + 0x28]
test edi, edi
je 0x40dc87
cmp byte [edi], 0
jne 0x40dcb7
mov edi, str.application_octet_stream
xor esi, esi
push dword [esp + 0x24]
push dword [esi*8 + 0x44ad14]
call sub.MSVCRT.dll__stricmp
pop ecx
pop ecx
test eax, eax
je 0x40dcac
inc esi
cmp esi, 0x5d
jb 0x40dc8e
jmp 0x40dcb3
mov edi, dword [esi*8 + 0x44ad10]
mov esi, dword [esp + 0x10]
push edi
push ebp
push esi
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.0040e5b4
push esi
push 0
push dword [0x44cb44]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret 0x10
Function at 0x40e234
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 8]
xor ebx, ebx
push dword [0x44d144]
call fcn.0041731d
mov edi, eax
test edi, edi
je 0x40e35c
cmp dword [ebp + 0xc], ebx
je 0x40e35c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x2c], 0xa
cmp dword [edi + 0x18], ebx
je 0x40e27e
push dword [edi + 0x18]
push ebx
push dword [0x44cb44]
call esi
cmp dword [edi + 0x1c], ebx
je 0x40e28f
push dword [edi + 0x1c]
push ebx
push dword [0x44cb44]
call esi
cmp dword [edi + 0x20], ebx
je 0x40e2a0
push dword [edi + 0x20]
push ebx
push dword [0x44cb44]
call esi
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x24], eax
cmp dword [ebp + 0x18], ebx
je 0x40e2ca
push dword [ebp + 0x18]
call fcn.0043da70
mov esi, eax
push esi
call fcn.0040e53d
push esi
mov dword [edi + 0x18], eax
call fcn.0043da60
cmp dword [ebp + 0x1c], ebx
je 0x40e2e8
push dword [ebp + 0x1c]
call fcn.0043da70
mov esi, eax
push esi
call fcn.0040e53d
push esi
mov dword [edi + 0x1c], eax
call fcn.0043da60
push dword [ebp + 0xc]
call fcn.0043da70
mov esi, eax
push esi
call sub.MSVCRT.dll_strlen
pop ecx
sub eax, 0xffffff80
push eax
push ebx
push dword [0x44cb44]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 0x10]
mov dword [edi + 0x20], eax
push esi
push str.smtp:___s:_d
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0x10
push esi
call fcn.0043da60
test byte [ebp + 0x14], 1
pop esi
je 0x40e353
lea eax, [ebp + 0x18]
push eax
push ebx
push edi
push 0x40e52e
push 0x20000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40e35c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
jmp 0x40e35c
push edi
call fcn.0040e3be
pop ecx
mov ebx, eax
pop edi
mov eax, ebx
pop ebx
pop ebp
ret 0x18

Function at 0x40e7b9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x40e843
cmp dword [ebp + 0xc], edi
je 0x40e843
push esi
push 0x28
push 8
push dword [0x44cb44]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
or dword [esi + 4], 0xffffffff
mov dword [esi], edi
call sub.MSVCRT.dll__strdup
push dword [ebp + 0xc]
mov dword [esi + 8], eax
call sub.MSVCRT.dll__strdup
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
pop ecx
pop ecx
test al, 1
je 0x40e832
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x40e947
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40e82a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x40e842
push esi
call fcn.0040e9f2
jmp 0x40e841
push esi
call fcn.0040e85c
push esi
mov edi, eax
call fcn.0040e9f2
pop ecx
pop ecx
pop esi
mov eax, edi
pop edi
pop ebp
ret 0xc
Function at 0x40e85c
Capabilities:
Delete file

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov eax, dword [esi + 8]
mov ebp, dword [esi + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebp
call fcn.004188c0
mov edi, eax
test edi, edi
je 0x40e92c
push dword [esp + 0x18]
call fcn.0043da70
push ebx
push pe_nt_image_headers32
push 2
push ebx
push 1
push 0xc0000000
push ebp
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40e91c
test byte [esi + 0x1c], 2
mov dword [esi + 0x10], ebp
jne 0x40e8c5
push 1
push 0x34
push edi
call fcn.00418950
add esp, 0xc
push dword [esp + 0x18]
push 0x2712
push edi
call fcn.00418950
push 0x40e956
push 0x4e2b
push edi
call fcn.00418950
push esi
push 0x2711
push edi
call fcn.00418950
push edi
call fcn.00418940
add esp, 0x28
test eax, eax
jne 0x40e907
xor ebx, ebx
mov dword [esi + 4], 0xfffffffe
inc ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x40e91c
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [esp + 0x18]
call fcn.0043da60
push edi
call fcn.004188a0
pop ecx
cmp dword [esi + 4], 0xfffffffe
je 0x40e93f
cmp dword [esi + 4], 0xfffffffc
je 0x40e93f
mov dword [esi + 4], 0xfffffffd
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x40ec49
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push edi
xor edi, edi
inc edi
cmp dword [0x44cd9c], 0
jne 0x40ec75
push 0x40eb98
push 0x10
push 0x2c
mov dword [0x44cd9c], edi
call fcn.004173f0
mov dword [0x44cd98], eax
cmp word [0x44cd90], 0
jne 0x40ed11
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x40eca0
mov word [0x44cd90], di
jmp 0x40eca8
xor eax, eax
mov word [0x44cd90], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x44cdac], eax
test eax, eax
je 0x40ed11
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43f9c4
push eax
call esi
push 0x43f9d0
push dword [0x44cdac]
mov dword [0x44cda0], eax
call esi
push str.getnameinfo
push dword [0x44cdac]
mov dword [0x44cda4], eax
call esi
cmp dword [0x44cda0], 0
mov dword [0x44cda8], eax
pop esi
je 0x40ed11
cmp dword [0x44cda4], 0
je 0x40ed11
test eax, eax
je 0x40ed11
mov dword [0x44cd94], edi
movsx eax, word [0x44cd90]
pop edi
add esp, 0x190
ret
Function at 0x40f36b
Capabilities:
Check os version

Disassembly:
sub esp, 0x24c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x94
push eax
mov esi, 0xc8
xor ebx, ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40f4c3
mov eax, dword [esp + 0x20]
dec eax
je 0x40f4a6
dec eax
jne 0x40f4c3
lea eax, [esp + 0x140]
xor ebp, ebp
push eax
call fcn.0040f324
pop ecx
test eax, eax
je 0x40f3d7
mov ebx, dword [esp + 0x144]
mov edi, dword [esp + 0x148]
cmp byte [esp + 0x25a], 1
jmp 0x40f404
lea eax, [esp + 0xa4]
mov dword [esp + 0xa4], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40f409
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x13e], 1
jne 0x40f409
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x40f4a2
dec ebx
je 0x40f49e
dec ebx
je 0x40f47d
dec ebx
je 0x40f437
sub ebx, 4
jne 0x40f4c3
test edi, edi
jne 0x40f4c3
push 0x6e
jmp 0x40f4c2
sub edi, 0
je 0x40f46f
dec edi
je 0x40f461
dec edi
je 0x40f453
dec edi
jne 0x40f4c3
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x40f4c3
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x40f4c3
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x40f4c3
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x40f4c3
sub edi, 0
je 0x40f49a
dec edi
je 0x40f496
dec edi
jne 0x40f4c3
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x40f4c3
push 0x3c
jmp 0x40f4c2
push 0x32
jmp 0x40f4c2
push 0x14
jmp 0x40f4c2
push 5
jmp 0x40f4c2
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40f4c0
cmp eax, 0xa
je 0x40f4bc
cmp eax, 0x5a
jne 0x40f4c3
push 0x28
jmp 0x40f4c2
push 0x1e
jmp 0x40f4c2
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret

Function at 0x40f4f1
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
lea eax, [ebp - 0x64]
push esi
push 0x40
push 0
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
cmp esi, 6
jne 0x40f51f
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
jmp 0x40f57a
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x40f578
sub esi, 0
je 0x40f570
dec esi
je 0x40f568
dec esi
je 0x40f560
dec esi
je 0x40f558
dec esi
je 0x40f550
dec esi
jne 0x40f578
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
jmp 0x40f57c
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
jmp 0x40f57c
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
jmp 0x40f57c
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
jmp 0x40f57c
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x50]
jmp 0x40f57c
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x58]
jmp 0x40f57c
xor eax, eax
xor edx, edx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4105e9
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
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 0x410663
push 9
call esi
test al, al
jns 0x410663
push 0x11
call esi
test al, al
js 0x410663
push 0x10
call esi
test al, al
js 0x410663
push 0x12
call esi
test al, al
js 0x410663
push 5
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [ebp - 0xc]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x410663
push eax
push eax
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x410663
xor eax, eax
jmp 0x4106e4
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x41068b
push 0x11
call esi
test al, al
js 0x410683
push 0x10
call esi
test al, al
js 0x410683
push 0x12
call esi
test al, al
jns 0x41068b
push 1
push edi
call fcn.004106ec
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test ebx, ebx
je 0x4106a1
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x4106e1
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x4106e1
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x4106e1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x4106e1
lea eax, [esi - 1]
push eax
push dword [0x44d17c]
call fcn.0041731d
test eax, eax
je 0x4106e1
mov eax, dword [eax + 8]
jmp 0x4106e3
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x411d14
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x44ce94], eax
test eax, eax
je 0x411d44
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x44ce90], eax
lea eax, [ebp - 0x1c]
mov dword [0x44ce98], 1
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x411d94
cmp dword [ebp - 0xc], 1
jne 0x411d72
and dword [0x44ce98], 0
jmp 0x411dac
cmp dword [ebp - 0xc], 2
jne 0x411d94
cmp dword [ebp - 0x18], 5
jb 0x411d69
jne 0x411d94
mov eax, dword [ebp - 0x14]
neg eax
sbb eax, eax
and eax, dword [0x44ce98]
mov dword [0x44ce98], eax
jmp 0x411d99
mov eax, dword [0x44ce98]
test eax, eax
je 0x411dac
call fcn.00411b7f
neg eax
sbb eax, eax
and dword [0x44ce98], eax
lea esp, [ebp + 0x78]
pop ebp
ret

Function at 0x412f00
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x412f32
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x412f2d
cmp dword [esp + 0xc], esi
je 0x412f49
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret
Function at 0x41551c
Capabilities:
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x248
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x4155a6
cmp byte [eax], 0
je 0x4155a6
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 0
push eax
call sub.MSVCRT.dll_strlen
mov ecx, eax
add esp, 0x10
lea eax, [ebp + ecx - 0x109]
cmp ecx, 2
je 0x415570
cmp ecx, 3
jne 0x4155b2
cmp byte [ebp - 0x107], 0x3a
jne 0x4155b2
cmp ecx, 2
jne 0x415591
lea eax, [ebp - 0x108]
push 0x43fc90
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x4155a6
push 0xfffffffffffffffe
pop edi
mov eax, edi
mov edx, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov cl, byte [eax]
cmp cl, 0x5c
je 0x4155be
cmp cl, 0x2f
jne 0x4155c4
mov byte [eax], 0
dec eax
jmp 0x4155b2
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, esi
je 0x415601
test byte [ebp - 0x248], 0x10
je 0x4155ea
push 0xfffffffffffffffe
pop edi
jmp 0x4155f8
mov esi, dword [ebp - 0x22c]
xor edi, edi
or edi, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4155a6
mov cl, byte [ebp - 0x108]
mov al, byte [ebp - 0x107]
cmp cl, 0x5c
jne 0x415616
cmp al, 0x5c
je 0x41561f
cmp cl, 0x2e
jne 0x4155a6
cmp al, cl
jne 0x4155a6
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, esi
je 0x415591
test al, 0x10
je 0x4155a6
jmp 0x4155a3

Function at 0x415641
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x4156b2
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 0
push eax
call sub.MSVCRT.dll_strlen
lea ecx, [ebp - 0x108]
add esp, 0x10
add eax, ecx
jmp 0x415694
mov cl, byte [eax - 1]
cmp cl, 0x20
je 0x415693
cmp cl, 0x5c
je 0x415693
cmp cl, 0x2f
jne 0x41569e
dec eax
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x415681
mov byte [eax], 0
lea eax, [ebp - 0x108]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x4156b4
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x415860
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x415889
test byte [esp + 8], 2
je 0x41587d
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x41588b
xor eax, eax
ret 8

Function at 0x415920
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 0x41595c
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
Function at 0x415e30
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x44d2c8]
call fcn.0041731d
mov esi, eax
test esi, esi
je 0x415eaf
cmp dword [esi + 4], 0
je 0x415e80
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.004163f0
test eax, eax
je 0x415e74
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x415eba
cmp dword [esp + 8], 0
je 0x415eba
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4

Function at 0x415f10
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0x44d2c8]
call fcn.0041731d
test eax, eax
je 0x415f2c
mov dword [esp + 4], eax
jmp fcn.00415920
xor eax, eax
ret 4