joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..data
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x6cc53c6b
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..text
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x7e1248ea
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4065cc
Capabilities:
Delete registry key

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4065d2
call fcn.0041f3e0
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.0040b000
mov edx, dword [esp + 0x28]
lea ecx, [esp + 4]
call fcn.0040b000
push dword [esp]
call fcn.00406bfb
push dword [esp + 4]
mov edx, 0x4ac374
pop ecx
call fcn.0040b5e0
je 0x4066a1
cmp dword [0x52c968], 0
je 0x406687
mov eax, str.Advapi32.dll
push eax
push 0xffffffff
call fcn.0040ebbf
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x406685
mov eax, str.RegDeleteKeyExA
push eax
push dword [esp + 0xc]
call fcn.0040ec19
mov dword [esp + 0xc], eax
push 0
mov ebx, dword [0x52c980]
or ebx, 0xf003f
push ebx
mov eax, dword [0x52c948]
push eax
push dword [0x52c964]
push dword [esp + 0x1c]
call fcn.0040edd2
mov dword [esp + 0x10], eax
push dword [esp + 8]
call fcn.0040eaff
jmp 0x40669c
mov eax, dword [0x52c948]
push eax
push dword [0x52c964]
call sub.ADVAPI32.dll_RegDeleteKeyW
mov dword [esp + 0x10], eax
jmp 0x40672a
lea eax, [esp + 0x18]
push eax
push dword [0x52c964]
push dword [esp + 0xc]
call sub.ADVAPI32.dll_RegConnectRegistryW
mov dword [esp + 0x14], eax
cmp dword [0x52c968], 0
je 0x406717
mov eax, str.Advapi32.dll
push eax
push 0xffffffff
call fcn.0040ebbf
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x406715
push 0
mov ebx, dword [0x52c980]
or ebx, 0xf003f
push ebx
mov eax, dword [0x52c948]
push eax
push dword [esp + 0x24]
mov eax, str.RegDeleteKeyExA
push eax
push dword [esp + 0x1c]
call fcn.0040ed17
mov dword [esp + 0x10], eax
push dword [esp + 8]
call fcn.0040eaff
jmp 0x40672a
mov eax, dword [0x52c948]
push eax
push dword [esp + 0x1c]
call sub.ADVAPI32.dll_RegDeleteKeyW
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
and ebx, ebx
jne 0x406739
mov eax, 1
jmp 0x40673b
xor eax, eax
push dword [esp + 4]
call fcn.0041f470
push dword [esp]
call fcn.0041f470
add esp, 0x1c
pop ebx
ret 8
Function at 0x408234
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
mov edx, 0xb
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40823a
call fcn.0041f3e0
push dword [esp + 0x40]
call fcn.0040b5d0
mov edx, dword [esp + 0x34]
lea ecx, [esp]
call fcn.0040b000
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 4]
call fcn.0040b000
push dword [esp]
call fcn.00406bfb
lea eax, [esp + 0xc]
push dword [esp + 4]
mov edx, 0x4ac374
pop ecx
call fcn.0040b5e0
je 0x4082de
cmp dword [0x52c968], 0
je 0x4082c2
lea eax, [esp + 0x18]
push eax
mov ebx, dword [0x52c980]
or ebx, 0xf003f
push ebx
push 0
push dword [0x52c948]
push dword [0x52c964]
call sub.ADVAPI32.dll_RegOpenKeyExW
mov dword [esp + 0x14], eax
jmp 0x4082dc
lea eax, [esp + 0x18]
push eax
push dword [0x52c948]
push dword [0x52c964]
call sub.ADVAPI32.dll_RegOpenKeyW
mov dword [esp + 0x14], eax
jmp 0x408343
lea eax, [esp + 0x20]
push eax
push dword [0x52c964]
push dword [esp + 0xc]
call sub.ADVAPI32.dll_RegConnectRegistryW
mov dword [esp + 0x1c], eax
cmp dword [0x52c968], 0
je 0x40832b
lea eax, [esp + 0x18]
push eax
mov ebx, dword [0x52c980]
or ebx, 0xf003f
push ebx
push 0
push dword [0x52c948]
push dword [esp + 0x30]
call sub.ADVAPI32.dll_RegOpenKeyExW
mov dword [esp + 0x14], eax
jmp 0x408343
lea eax, [esp + 0x18]
push eax
push dword [0x52c948]
push dword [esp + 0x28]
call sub.ADVAPI32.dll_RegOpenKeyW
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
and ebx, ebx
jne 0x4083e8
mov dword [esp + 0x24], 0x400
push edx
call fcn.0041f240
pop edx
push eax
push edx
call fcn.0041f240
pop edx
push eax
push dword [esp + 0x2c]
call fcn.0041cd10
lea eax, [esp + 0xc]
push eax
call fcn.0041f2e0
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x1c]
push eax
push dword [esp + 0x50]
push dword [esp + 0x34]
call sub.ADVAPI32.dll_RegEnumKeyExW
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
and ebx, ebx
jne 0x4083da
push edx
call fcn.0041f240
pop edx
push eax
push edx
call fcn.0041f240
pop edx
push eax
push dword [esp + 0x2c]
push dword [esp + 0x14]
call fcn.0041d690
lea eax, [esp + 0x2c]
push eax
call fcn.0041f2e0
jmp 0x4083e8
mov edx, 0x4ac028
lea ecx, [esp + 0x28]
call fcn.0040b008
push dword [esp + 0x18]
call sub.ADVAPI32.dll_RegCloseKey
mov edx, dword [esp + 0x28]
push edx
call fcn.0041f240
pop edx
push eax
push edx
call fcn.0041f280
pop eax
push eax
call fcn.0040b5a0
pop edx
add eax, edx
jmp 0x408419
push dword [esp + 4]
call fcn.0041f470
push dword [esp + 8]
call fcn.0041f470
push dword [esp + 0x28]
call fcn.0041f470
push dword [esp]
call fcn.0041f470
add esp, 0x2c
pop ebx
ret 0xc
Function at 0x409e27
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x19
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x409e2e
call fcn.0041f3e0
mov edx, dword [esp + 0x70]
lea ecx, [esp]
call fcn.0040b000
lea eax, [esp + 4]
lea eax, [esp + 0x48]
lea ebp, [esp + 4]
mov dword [ebp], 0x44
mov dword [ebp + 0x2c], 1
mov ebx, dword [esp + 0x74]
and ebx, 2
and ebx, ebx
je 0x409e7d
lea ebp, [esp + 4]
mov word [ebp + 0x30], 0
jmp 0x409e87
lea ebp, [esp + 4]
mov word [ebp + 0x30], 1
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x20]
push 0
call sub.KERNEL32.dll_CreateProcessW
mov dword [esp + 0x58], eax
cmp dword [esp + 0x58], 0
je 0x409f10
mov ebx, dword [esp + 0x74]
and ebx, 1
and ebx, ebx
je 0x409f07
lea ebp, [esp + 0x48]
push dword [ebp + 4]
pop eax
mov dword [esp + 0x5c], eax
push 1
call fcn.00411874
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x60]
call sub.KERNEL32.dll_GetExitCodeThread
mov ebx, dword [esp + 0x60]
cmp ebx, 0x103
je 0x409f05
jmp 0x409f07
jmp 0x409edf
lea ebp, [esp + 0x48]
mov eax, dword [ebp]
jmp 0x409f12
xor eax, eax
push dword [esp]
call fcn.0041f470
add esp, 0x64
pop ebx
pop ebp
ret 8

Function at 0x40a16f
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
push ebx
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40a176
call fcn.0041f3e0
mov byte [esp], 0
lea eax, [esp + 4]
push eax
push 0x28
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.ADVAPI32.dll_OpenProcessToken
and eax, eax
je 0x40a230
lea eax, [esp + 8]
lea eax, [esp + 8]
push eax
mov eax, 0x4ad8b6
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueW
and eax, eax
je 0x40a227
lea eax, [esp + 0x10]
lea ebp, [esp + 0x10]
mov dword [ebp], 1
lea ebp, [esp + 8]
push dword [ebp]
lea ebp, [esp + 0x14]
push ebp
pop ebp
pop eax
mov dword [ebp + 4], eax
lea ebp, [esp + 8]
push dword [ebp + 4]
lea ebp, [esp + 0x14]
push ebp
pop ebp
pop eax
mov dword [ebp + 8], eax
push ebp
pop ebp
mov dword [ebp + 0xc], 2
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
push 0x10
lea eax, [esp + 0x1c]
push eax
push 0
push dword [esp + 0x18]
call sub.ADVAPI32.dll_AdjustTokenPrivileges
push eax
pop eax
mov byte [esp], al
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
movsx eax, byte [esp]
movsx eax, al
jmp 0x40a23b
add esp, 0x34
pop ebx
pop ebp
ret
Function at 0x40bf33
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x40bf88
push dword [esp + 0x10]
push 0x40beb2
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x52ce60]
test esi, esi
je 0x40bfe1
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x40bf80
cmp byte [esi + 0x10], 0
je 0x40bf80
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 0x40bf5c
jmp 0x40bfe1
mov esi, dword [0x52ce60]
test esi, esi
je 0x40bfe1
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 0x40bfda
cmp byte [esi + 0x11], 0
je 0x40bfb6
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x40bfcd
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 0x52ce60
call fcn.0041f160
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x40bf95
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40c6a6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40c70a
cmp dword [ebp + 0x10], 0x18
push esi
jne 0x40c6c7
call fcn.00486d30
mov esi, eax
push esi
call sub.MSVCRT.dll_strlen
jmp 0x40c6db
cmp dword [ebp + 0x10], 2
jne 0x40c6d4
call fcn.00486dd0
jmp 0x40c6bd
call sub.MSVCRT.dll_wcslen
add eax, eax
pop ecx
push 0
lea ecx, [ebp + 0xc]
push ecx
push eax
mov eax, dword [ebp + 8]
push esi
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp + 0x10], 0x18
jne 0x40c6fe
push esi
call fcn.00486d20
jmp 0x40c70a
cmp dword [ebp + 0x10], 2
jne 0x40c70a
push esi
call fcn.00486dc0
pop esi
pop ebp
ret 0xc

Function at 0x40c82c
Capabilities:
Read file on windows

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x40c880
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0x20]
sub eax, esi
push eax
lea eax, [esi + ebp]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40c86e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x40c87a
add esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x18]
jl 0x40c83f
jmp 0x40c87e
add esi, dword [esp + 0x10]
pop ebp
pop ebx
mov eax, esi
pop esi
ret 0xc

Function at 0x40c8fe
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x52da08]
call fcn.0041e88b
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 0x40c9fe
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x40c954
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x40c94c
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x40c994
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x40c9d6
push 0x22
pop edx
cmp cx, dx
je 0x40c986
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x40c976
xor ecx, ecx
cmp word [eax], cx
je 0x40c9d6
mov ecx, eax
add eax, 2
jmp 0x40c9d8
test dx, dx
je 0x40c9de
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x40c986
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x40c9cc
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x40c9d6
cmp cx, dx
je 0x40c9c9
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x40c9b9
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x40c99e
jmp 0x40c986
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x40c9e0
xor edx, edx
cmp dword [ebp], ebx
jne 0x40c9e9
test edi, edi
jne 0x40ca06
test edx, edx
je 0x40c9ee
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x40c942
test edi, edi
jne 0x40ca17
mov eax, ebx
jmp 0x40ca1b
test esi, esi
je 0x40ca17
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x40ca1b
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x40cac1
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x24], 0x18
mov ebx, eax
je 0x40cb80
cmp dword [esp + 0x24], 2
je 0x40cb80
push 0x2000
push ebp
push dword [0x52c8b4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x40cb4f
cmp dword [esp + 0x18], 2
jne 0x40cb6b
cmp dword [esp + 0x28], 0xffffffff
je 0x40cb13
cmp ebp, dword [esp + 0x28]
jae 0x40cb6b
add ebp, 2
test ebx, ebx
jne 0x40cb38
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x52c8b4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x40cb6b
cmp ax, 0xd
je 0x40cb4f
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40caff
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.00486ec0
jmp 0x40cc12
push eax
push 0
push dword [0x52c8b4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x40cb9e
cmp ebp, dword [esp + 0x28]
jae 0x40cbf6
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40cbf6
cmp dword [esp + 0x18], 1
jne 0x40cbf6
inc ebp
test ebx, ebx
jne 0x40cbe3
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x52c8b4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x40cbf6
cmp al, 0xd
je 0x40cb91
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x40cb91
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x40cc0d
call fcn.00486cb0
jmp 0x40cc12
call fcn.00486e60
push esi
push 0
push dword [0x52c8b4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x40d787
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x38]
push ebp
xor ebp, ebp
push edi
cmp dword [eax + 8], 1
mov edi, ebp
mov dword [esp + 0x10], edi
mov dword [esp + 8], ebp
jne 0x40d926
push esi
mov esi, dword [esp + 0x48]
test esi, esi
je 0x40d925
push ebx
push ebp
push pe_nt_image_headers32
push 3
push ebp
push 7
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40d924
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x200000
push ebp
push dword [0x52c8b4]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x40d91d
call fcn.004344e0
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x40d90a
lea eax, [esp + 0x20]
push eax
push esi
call sub.MSVCRT.dll__wstat
push 0x1a4
push edi
call fcn.004349b0
lea eax, [esp + 0x30]
push eax
push edi
call fcn.00434b30
mov esi, dword [esp + 0x60]
add esp, 0x18
mov eax, dword [esi + 0x20]
cmp dword [eax + 8], 1
je 0x40d856
cmp dword [eax + 8], 3
je 0x40d856
push dword [esp + 0x50]
push edi
call fcn.00434280
pop ecx
pop ecx
jmp 0x40d874
push dword [esp + 0x50]
call fcn.00486dd0
mov esi, eax
push esi
push edi
call fcn.004349a0
pop ecx
pop ecx
push esi
call fcn.00486dc0
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
cdq
push edx
push eax
push edi
call fcn.00434a00
push 0x8000
push edi
call fcn.00434850
push edi
push dword [esi]
call fcn.00434ca0
add esp, 0x1c
lea eax, [esp + 0x4c]
push 0
push eax
push 0x200000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x40d8f1
mov edi, dword [esp + 0x10]
push eax
push ebp
push dword [esi]
call fcn.00434c60
add esp, 0xc
cmp eax, dword [esp + 0x4c]
jne 0x40d8e9
add edi, dword [esp + 0x4c]
lea eax, [esp + 0x4c]
push 0
push eax
push 0x200000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x4c]
test eax, eax
jg 0x40d8b7
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
jne 0x40d903
mov dword [esp + 0x18], 1
push edi
call fcn.00434410
pop ecx
push ebp
push 0
push dword [0x52c8b4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov eax, edi
pop edi
pop ebp
add esp, 0x34
ret 0xc
Function at 0x40e06e
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
push 0x40dfbd
push 0x10
push 0x2c
call fcn.0041eacf
xor esi, esi
mov dword [0x52d080], eax
push esi
push esi
push 8
call fcn.0041e8f6
mov dword [0x52da6c], eax
cmp word [0x52d078], si
jne 0x40e157
push edi
lea eax, [esp + 8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x40e0c6
mov word [0x52d078], di
jmp 0x40e0ce
xor eax, eax
mov word [0x52d078], ax
push 0x800
push esi
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x52d094], eax
test eax, eax
je 0x40e156
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x52d094]
mov dword [0x52d084], eax
call esi
push str.getnameinfo
push dword [0x52d094]
mov dword [0x52d088], eax
call esi
push str.WSAStringToAddressA
push dword [0x52d094]
mov dword [0x52d08c], eax
call esi
cmp dword [0x52d084], 0
mov dword [0x52d090], eax
je 0x40e156
cmp dword [0x52d088], 0
je 0x40e156
cmp dword [0x52d08c], 0
je 0x40e156
test eax, eax
je 0x40e156
mov dword [0x52d07c], edi
pop edi
pop esi
add esp, 0x190
ret

Function at 0x40e950
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x52d098], 0
jne 0x40e95e
call fcn.0040e8d0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x52d09c]
call esi
test eax, eax
jne 0x40e981
call fcn.0040e8d0
push dword [0x52d09c]
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 0x40e990
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 0x40e9f0
mov ebx, 0x10
test edi, edi
jns 0x40e9f9
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x40e9c2
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4118dc
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 0x411a52
mov eax, dword [esp + 0x24]
dec eax
je 0x411a35
dec eax
jne 0x411a52
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.00411895
pop ecx
test eax, eax
je 0x411993
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x411956
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x411a31
dec ebx
je 0x411a2d
dec ebx
je 0x411a0c
dec ebx
je 0x4119c6
sub ebx, 4
jne 0x411a52
test edi, edi
jne 0x411a52
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x411a52
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 0x411956
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x411951
sub edi, 0
je 0x4119fe
dec edi
je 0x4119f0
dec edi
je 0x4119e2
dec edi
jne 0x411a52
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x411a52
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x411a52
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x411a52
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x411a52
sub edi, 0
je 0x411a29
dec edi
je 0x411a25
dec edi
jne 0x411a52
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x411a52
push 0x3c
jmp 0x411a51
push 0x32
jmp 0x411a51
push 0x14
jmp 0x411a51
push 5
jmp 0x411a51
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x411a4f
cmp eax, 0xa
je 0x411a4b
cmp eax, 0x5a
jne 0x411a52
push 0x28
jmp 0x411a51
push 0x1e
jmp 0x411a51
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x412b07
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 0x412b9f
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x412b9c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x412b9c
lea eax, [esi - 1]
push eax
push dword [0x52daa4]
call fcn.0041e9fc
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x412b9e
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x412b93
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x412c86
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x412b79
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x412c45
push eax
call esi
test al, al
jns 0x412c45
push 0x11
call esi
test al, al
js 0x412c45
push 0x10
call esi
test al, al
js 0x412c45
push 0x12
call esi
test al, al
js 0x412c45
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x412c45
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x412c19
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x412c30
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x412c90
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x412c90
test ebp, ebp
je 0x412c69
push 0x11
call esi
test al, al
js 0x412c61
push 0x10
call esi
test al, al
js 0x412c61
push 0x12
call esi
test al, al
jns 0x412c69
push 1
push ebp
call fcn.00412c9c
test ebx, ebx
je 0x412c7d
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x412c90
test edi, edi
je 0x412c90
mov eax, dword [edi + 8]
jmp 0x412c92
and dword [esp + 0x14], 0
jmp 0x412b9e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4