joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4623f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48eb03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0048277c
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00487e14
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00489330
test eax, eax
je 0x46250c
mov ecx, dword [esp + 0x3c]
call fcn.00487e41
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4624d0
push edi
mov ecx, esi
call fcn.004854ac
mov ecx, esi
call fcn.00462670
cmp dword [esp + 0x38], 1
jne 0x462505
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004855e7
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x464f30
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x464f63
push esi
call fcn.00468040
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x464f5c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x464fe9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x464fd2
mov eax, dword [esi + 8]
test eax, eax
je 0x464f87
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x464fce
cmp eax, 2
je 0x464fd2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x464f7a
cmp eax, 3
je 0x464fad
cmp eax, 1
jne 0x464f7a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x464f7a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x464f7a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00465010
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x464ff8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00465010
add esp, 4
pop esi
ret

Function at 0x483571
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4835a9
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004815fe
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004815d6
jmp 0x4835b5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x484c66
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x484ca8
call fcn.0048a716
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x484ca8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x484c9f
xor eax, eax
jmp 0x484cb0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00484cb6
pop edi
pop esi
pop ebx
ret 4

Function at 0x48ac46
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48ac74
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48ac92
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048abac
jmp 0x48ac92
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48ac92
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048abac
test edi, edi
mov eax, edi
jne 0x48ac7c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401060
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push ebx
push ebp
push esi
and eax, 0xffff
push edi
mov edi, dword [esp + 0x14]
and ecx, 0xffff
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
mov dword [esp + 0x1c], 0
test esi, esi
je 0x4010fa
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4010fa
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4010fa
mov edx, dword [esp + 0x20]
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4010fa
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esp + 0x18]
push 0
push ecx
push eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4010f3
mov dword [esp + 0x1c], 1
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x401220
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
mov dword [esp + 4], 0
push eax
push 0x20019
push 0
push 0x40a030
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40127f
lea ecx, [esp + 8]
lea edx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0x40a06c
push ecx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, word [esp + 4]
add esp, 0x10
ret
Function at 0x4022e0
Capabilities:
Get file version info

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x402304
pop edi
pop esi
pop ebx
add esp, 8
ret 8
push esi
call fcn.00405450
mov edi, eax
add esp, 4
test edi, edi
jne 0x40231c
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov ecx, dword [esp + 0x18]
push edi
push esi
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x402341
push edi
call fcn.00405440
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret 8
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push eax
push 0x40a0e0
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40236e
push edi
call fcn.00405440
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0xc]
xor ecx, ecx
push edi
mov dword [edx], 0
mov eax, dword [esi + 0x10]
shr eax, 0x10
and eax, 0xff
shl eax, 0x18
mov dword [edx], eax
mov cl, byte [esi + 0x10]
shl ecx, 0x10
or ecx, eax
xor eax, eax
mov dword [edx], ecx
mov ax, word [esi + 0x14]
or eax, ecx
mov dword [edx], eax
call fcn.00405440
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 8
ret 8

Function at 0x403dc0
Capabilities:
Delete file

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x14], ebx
call fcn.004051f0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov edx, dword [0x40c7b4]
lea eax, [ecx + ecx*4]
lea eax, [eax + eax*4]
shl eax, 5
test byte [eax + edx + 4], 0x20
je 0x403f4f
mov eax, ecx
sub eax, 0
je 0x403f2d
sub eax, 2
je 0x403e9d
dec eax
jne 0x403f4f
add ebx, 8
push ebx
push 0x40c7c0
call esi
push 0x40a164
push 0x40c7c0
call edi
push 0x40c7c0
call ebp
push ebx
push 0x40c7c0
call esi
push 0x40a158
push 0x40c7c0
call edi
push 0x40c7c0
call ebp
push ebx
push 0x40c7c0
call esi
push 0x40a14c
push 0x40c7c0
call edi
push 0x40c7c0
call ebp
push ebx
push 0x40c7c0
call esi
push 0x40a140
push 0x40c7c0
call edi
push 0x40c7c0
call ebp
push ebx
push 0x40c7c0
call esi
push 0x40a134
jmp 0x403f19
add ebx, 8
push ebx
push 0x40c7c0
call esi
push 0x40a164
push 0x40c7c0
call edi
push 0x40c7c0
call ebp
push ebx
push 0x40c7c0
call esi
push 0x40a128
push 0x40c7c0
call edi
push 0x40c7c0
call ebp
push ebx
push 0x40c7c0
call esi
push 0x40a11c
push 0x40c7c0
call edi
push 0x40c7c0
call ebp
push ebx
push 0x40c7c0
call esi
push 0x40a110
push 0x40c7c0
call edi
push 0x40c7c0
call ebp
push ebx
push 0x40c7c0
call esi
push 0x40a104
push 0x40c7c0
call edi
push 0x40c7c0
call ebp
mov ebx, dword [esp + 0x14]
jmp 0x403f4b
lea eax, [ebx + 8]
push eax
push 0x40c7c0
call esi
push 0x40a0f8
push 0x40c7c0
call edi
push 0x40c7c0
call ebp
mov ecx, dword [esp + 0x10]
inc ecx
cmp ecx, 4
mov dword [esp + 0x10], ecx
jb 0x403dea
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x404930
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
sub esp, 0x214
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp]
push eax
push 0x4092a0
push 1
push 0
push 0x4091b0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x404a80
mov edx, dword [0x40c6a4]
mov eax, dword [esp]
add edx, 0xa8
push ebp
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 4]
push 0x40a184
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, dword [0x40c7b8]
mov ebp, dword [sym.imp.USER32.dll_LoadStringA]
push 0x208
push 0x40c7c0
mov eax, dword [edx]
push 0x16
push eax
call ebp
mov eax, dword [esp + 4]
push 0x40c7c0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push 0x4095a0
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jl 0x404a75
push edi
push esi
lea edx, [esp + 0x14]
push ebx
push edx
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [esp + 0x18]
push 0x40c7c0
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40a0e0
push 0x40c7c0
call esi
mov ecx, dword [0x40c7b8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x40c7c0
mov edi, dword [ecx]
call ebx
mov edx, 0x208
sub edx, eax
push edx
push 0x40c7c0
call ebx
add eax, 0x40c7c0
push eax
push 0x16
push edi
call ebp
push 0x40a17c
push 0x40c7c0
call esi
lea eax, [esp + 0x1c]
push 0x104
push eax
push 0xffffffffffffffff
push 0x40c7c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop ebx
pop esi
pop edi
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
pop ebp
add esp, 0x214
ret

Function at 0x4050d0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [0x40c6a4]
push esi
mov esi, ecx
cmp dword [eax + 0x10], 2
jne 0x4050f2
lea ecx, [esp + 4]
push ecx
push 0xf003f
push 0
push fcn.0040a1cc
jmp 0x405103
lea edx, [esp + 4]
push edx
push 0xf003f
push 0
push 0x40a190
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405117
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esi]
push 0x208
push 0x40c7c0
push 0xda
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
mov ecx, dword [esp + 4]
push 0
push 0
push 0
push 0
push 0x40c7c0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 4]
neg esi
sbb esi, esi
inc esi
test eax, eax
je 0x40515d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
Function at 0x45ec90
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4051c8
push 0x4047e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
mov eax, 0x485c
call fcn.0046214b
push ebx
push esi
push edi
xor ebx, ebx
mov byte [0x407754], bl
mov eax, dword [ebp + 8]
mov byte [eax], bl
mov esi, 0x40785c
push esi
push 0x40764c
call dword [0x405078]
mov edi, 0x400
push edi
lea eax, [ebp - 0x420]
push eax
push 0x406140
call fcn.00460df2
add esp, 0xc
test eax, eax
jne 0x45ed12
push 0x40610c
push 0x406108
lea eax, [ebp - 0x420]
push eax
call dword [fcn.00405184]
add esp, 0xc
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], ebx
push ebx
push ebx
push ebx
push ebx
push 0x406100
call dword [0x40519c]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x45eef3
push 0x3c
push ebx
lea eax, [ebp - 0x868]
push eax
call fcn.00462143
add esp, 0xc
mov dword [ebp - 0x868], 0x3c
lea eax, [ebp - 0x82c]
mov dword [ebp - 0x858], eax
mov dword [ebp - 0x854], edi
mov word [ebp - 0x850], bx
lea eax, [ebp - 0x2068]
mov dword [ebp - 0x83c], eax
mov dword [ebp - 0x838], edi
lea eax, [ebp - 0xc68]
mov dword [ebp - 0x834], eax
mov dword [ebp - 0x830], edi
lea eax, [ebp - 0x868]
push eax
push ebx
lea eax, [ebp - 0x420]
push eax
call dword [0x405070]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [0x4051a8]
push ebx
push ebx
push 3
push esi
push esi
push dword [ebp - 0x850]
push dword [ebp - 0x858]
push dword [ebp - 0x20]
call dword [0x4051a4]
mov dword [ebp - 0x428], eax
cmp eax, ebx
je 0x45eef3
cmp dword [ebp - 0x838], ebx
je 0x45edfa
push dword [ebp - 0x83c]
jmp 0x45edff
push 0x4060fc
lea eax, [ebp - 0x1c68]
push eax
call dword [0x405078]
cmp dword [ebp - 0x830], ebx
je 0x45ee27
push dword [ebp - 0x834]
lea eax, [ebp - 0x1c68]
push eax
call dword [0x4050a4]
push ebx
push 0x4400000
push ebx
push esi
push 0x4060f0
lea eax, [ebp - 0x1c68]
push eax
push 0x4060ec
push dword [ebp - 0x428]
call dword [0x405198]
mov esi, eax
mov dword [ebp - 0x424], esi
cmp esi, ebx
je 0x45eef3
push ebx
push ebx
push ebx
push ebx
push esi
call dword [0x4051b4]
test eax, eax
je 0x45eef3
mov dword [ebp - 0x206c], ebx
mov dword [ebp - 0x42c], 4
push ebx
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x206c]
push eax
push 0x20000013
push esi
call dword [0x4051b8]
cmp dword [ebp - 0x206c], 0xc8
jne 0x45eef3
mov eax, 0x2800
mov dword [ebp - 0x4870], eax
mov dword [ebp - 0x4874], ebx
lea ecx, [ebp - 0x4874]
push ecx
push eax
lea eax, [ebp - 0x486c]
push eax
push esi
call dword [0x4051a0]
test eax, eax
je 0x45eef6
cmp dword [ebp - 0x4874], ebx
jbe 0x45eef6
push dword [ebp + 8]
lea eax, [ebp - 0x486c]
push eax
call fcn.0045eb29
pop ecx
pop ecx
mov dword [ebp - 0x1c], 1
jmp 0x45eef6
mov dword [ebp - 0x1c], ebx
or dword [ebp - 4], 0xffffffff
call fcn.0045ef13
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10bff43
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x10bff7e
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x10bff5b
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x10bff9a
dec esi
je 0x10bff93
dec esi
jne 0x10bff9f
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc

Function at 0x126127b
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x12612b6
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x1261293
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x12612d2
dec esi
je 0x12612cb
dec esi
jne 0x12612d7
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc
Function at 0x10001380
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x100013bc
mov eax, dword [section.DETOUR_T]
test eax, eax
jne 0x100013b7
mov eax, dword [0x1000a8f4]
push 0
push eax
push 0x10001120
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
test eax, eax
mov dword [section.DETOUR_T], eax
je 0x100013b7
mov eax, 1
ret 4
xor eax, eax
ret 4
mov ecx, dword [section.DETOUR_T]
push ecx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
ret 4

Function at 0x10001550
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4020
call fcn.10005540
mov ecx, dword [esp + 0x4024]
lea eax, [esp]
push 0x20
push eax
push ecx
call fcn.10001670
mov eax, dword [0x1000a954]
add esp, 0xc
cmp eax, 9
jl 0x10001582
mov eax, 1
jmp 0x10001583
inc eax
mov edx, dword [esp + 0x4028]
mov dword [0x1000a954], eax
test edx, edx
push edi
je 0x100015df
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push 0x2000
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x2028]
push ecx
push eax
push edx
call fcn.10001630
mov eax, dword [0x1000a954]
add esp, 0x10
lea ecx, [esp + 0x2024]
lea edx, [esp + 4]
push ecx
push edx
push eax
lea ecx, [esp + 0x30]
push str._d_s_s_
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
jmp 0x100015f8
lea edx, [esp + 4]
push edx
push eax
lea eax, [esp + 0x2c]
push str._d_s_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
mov eax, dword [0x1000a020]
lea edx, [esp + 0x28]
not ecx
dec ecx
push ecx
push edx
push eax
call 0x100010f0
pop edi
add esp, 0x4020
ret
Function at 0x10001cb0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x10006558
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
push edi
push str._AutoGive..............
call ebp
xor ebx, ebx
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], bl
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
rep stosd dword es:[edi], eax
mov ecx, dword [0x1000a024]
push ebx
stosb byte es:[edi], al
mov edx, dword [ecx*4 + 0x1000a0c8]
lea eax, [esp + 0x1c]
push 4
push eax
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push eax
call edi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10001e55
push ebx
lea ecx, [esp + 0x14]
push 4
add eax, 0xa0
push ecx
push eax
call esi
push eax
call edi
mov eax, dword [esp + 0x10]
push ebx
lea edx, [esp + 0x18]
push 4
add eax, 0xfffffffc
push edx
push eax
call esi
push eax
call edi
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ebx
lea edx, [esp + 0x38]
push ecx
push edx
push eax
call esi
push eax
call edi
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x34]
mov dword [esp + 0x70], ebx
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
lea edx, [esp + 0x34]
push str._X__X__d__s
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x3c]
add esp, 0x18
push eax
call ebp
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], 2
push ecx
mov ecx, dword [0x1000a94c]
push 0x50b
call sub.MFC42.DLL_CWnd::GetDlgItemTextA
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x34]
push edx
push eax
lea ecx, [esp + 0x24]
push str._s__s
push ecx
call sub.MFC42.DLL_CString::Format
push ebx
xor edx, edx
push ebx
push ebx
mov dword [esp + 0x48], edx
push ebx
lea eax, [esp + 0x48]
push 0x419
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], edx
push eax
call fcn.10001bb0
add esp, 0x28
lea ecx, [esp + 0x1c]
push ebx
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.10001550
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 1
call fcn.100050d4
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], bl
call fcn.100050d4
lea ecx, [esp + 0x24]
mov dword [esp + 0x70], 0xffffffff
call fcn.100050d4
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret
Function at 0x10005710
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x10005781
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x10005781
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x1000576a
jmp 0x10005781
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x40fe1e
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0040ffce
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x40ff1c
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x40febf
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x40ff02
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x40fed6
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x40fef1
test al, 0x40
je 0x40fee8
mov ecx, dword [edi + 0x20]
jmp 0x40feef
test al, 0x80
je 0x40ff02
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x40ff02
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x40fe8e
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret