joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4067f0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x420
mov eax, dword [0x45b680]
xor eax, esp
mov dword [esp + 0x41c], eax
mov eax, dword [esp + 0x424]
push ebx
push ebp
push esi
push edi
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x26]
push edx
mov dword [esp + 0x24], eax
xor bl, bl
mov word [esp + 0x28], cx
call fcn.004308e0
push 0x194
lea eax, [esp + 0x2a8]
push 0
mov ebp, 0x104
mov ecx, 0x1d
mov esi, str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
lea edi, [esp + 0x238]
push eax
mov dword [esp + 0x28], ebp
rep movsd dword es:[edi], dword [esi]
call fcn.004308e0
add esp, 0x18
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x230]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x406886
xor al, al
jmp 0x406905
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor esi, esi
push esi
push esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
push ecx
push esi
push edx
mov dword [esp + 0x30], ebp
call edi
cmp eax, 0x103
je 0x4068f8
nop
test eax, eax
jne 0x4068ce
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x22c]
call fcn.00406920
test al, al
jne 0x4068f6
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
inc esi
push esi
push ecx
mov dword [esp + 0x30], ebp
call edi
cmp eax, 0x103
jne 0x4068b0
jmp 0x4068f8
mov bl, 1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042de55
add esp, 0x420
ret 4
Function at 0x40cc00
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x80c
mov eax, dword [0x45b680]
xor eax, esp
mov dword [esp + 0x808], eax
mov eax, dword [esp + 0x810]
push ebx
mov ebx, dword [esp + 0x81c]
push ebp
mov ebp, dword [esp + 0x81c]
push esi
push edi
push 0x800
mov edi, ecx
lea ecx, [esp + 0x1c]
push 0
push ecx
mov esi, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
call fcn.004308e0
mov ecx, 8
add esp, 0xc
cmp dword [edi + 0x1c], ecx
jb 0x40cc60
mov edi, dword [edi + 8]
jmp 0x40cc62
add edi, ecx
cmp dword [ebx + 0x18], ecx
jb 0x40cc6c
mov ebx, dword [ebx + 4]
jmp 0x40cc6f
add ebx, 4
cmp dword [ebp + 0x18], ecx
jb 0x40cc79
mov ebp, dword [ebp + 4]
jmp 0x40cc7c
add ebp, 4
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x18], ecx
jb 0x40cc8a
mov eax, dword [eax + 4]
jmp 0x40cc8d
add eax, 4
push edi
push 0x400
lea edx, [esp + 0x20]
push edx
push ebx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
test eax, eax
jbe 0x40ccd6
xor eax, eax
mov word [esi + 4], ax
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ccc0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x1c]
jmp 0x40cce2
xor ecx, ecx
mov word [esi + 4], cx
push ecx
mov eax, 0x44f260
call fcn.00404f90
mov ecx, dword [esp + 0x818]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042de55
add esp, 0x80c
ret 0xc

Function at 0x40fcd0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x446f48
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x45b680]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [edi + 0x20]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00411e58
mov ebx, eax
mov eax, dword [edi + 0x20]
lea ecx, [eax + eax + 2]
push ecx
push 0
push ebx
call fcn.004308e0
mov eax, dword [esp + 0x50]
mov ecx, dword [edi + 0x20]
lea edx, [esp + 0x54]
push edx
push eax
push 0xffffffffffffffff
push ecx
push ebx
call fcn.0042e3a1
add esp, 0x24
xor edx, edx
mov eax, ebx
mov word [esp + 0x14], dx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fd56
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [esp + 0x14]
call fcn.00404f90
mov esi, vtable.CStlStringW.0
mov dword [esp + 0xc], esi
mov dword [esp + 0x2c], 0x400
lea eax, [esp + 0xc]
mov dword [esp + 0x38], 0
cmp edi, eax
je 0x40fda9
push 0xffffffffffffffff
push 0
lea ecx, [edi + 4]
lea eax, [esp + 0x18]
call fcn.00405040
mov ecx, dword [esp + 0x2c]
mov dword [edi + 0x20], ecx
cmp dword [esp + 0x28], 8
mov dword [esp + 0xc], esi
mov dword [esp + 0x2c], 0
jb 0x40fdc9
mov edx, dword [esp + 0x14]
push edx
call fcn.00411e4d
add esp, 4
push ebx
call fcn.00411e4d
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x410700
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x447108
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x45b680]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
push edi
mov eax, dword [0x45b680]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [esp + 0x44]
xor ecx, ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], cx
mov dword [esp + 0xc], vtable.CStlStringW.0
mov dword [esp + 0x2c], 0x400
mov dword [esp + 0x3c], ecx
cmp dword [eax + 0x1c], 8
jb 0x41076a
mov esi, dword [eax + 8]
jmp 0x41076d
lea esi, [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push esi
push str._s___threadID_d
lea edi, [esp + 0x18]
call fcn.0040fcd0
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp dword [esp + 0x28], 8
jae 0x410795
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esp + 0x28], 8
mov dword [esp + 0xc], vtable.CStlStringW.0
mov dword [esp + 0x2c], 0
jb 0x4107c0
mov edx, dword [esp + 0x14]
push edx
call fcn.00411e4d
add esp, 4
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0042de55
add esp, 0x34
ret

Function at 0x411550
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4115be
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x41158f
cmp eax, 2
jne 0x4115aa
mov eax, dword [esp]
test esi, esi
je 0x4115b8
test eax, eax
je 0x4115b3
test al, 1
jne 0x4115aa
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4115b8
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8

Function at 0x4135b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4135f8
call fcn.00415f3d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4135f8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x41363b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x413624
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x413624
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x413638
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x416976
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x41699a
cmp dword [edi + 0x54], 0
jne 0x41699a
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00415f3d
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00416937
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41d684
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41d6cb
call fcn.00415f3d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41d6cb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41d6e7
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041d1fc
mov esi, eax
test edi, edi
je 0x41d6e5
test ebx, ebx
je 0x41d6e5
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42de55
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45b680]
jne 0x42de5f
repz ret
jmp fcn.004344ad
Function at 0x43f22e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00433eba
and dword [ebp - 4], 0
cmp dword [0x45f81c], 0
mov ebx, eax
jne 0x43f2df
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43f390
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x43f390
push eax
call fcn.00433e48
mov dword [esp], 0x44d680
push edi
mov dword [0x45f81c], eax
call esi
push eax
call fcn.00433e48
mov dword [esp], 0x44d66c
push edi
mov dword [0x45f820], eax
call esi
push eax
call fcn.00433e48
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45f824], eax
call esi
push eax
call fcn.00433e48
pop ecx
mov dword [0x45f82c], eax
test eax, eax
je 0x43f2df
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00433e48
pop ecx
mov dword [0x45f828], eax
mov eax, dword [0x45f828]
cmp eax, ebx
je 0x43f337
cmp dword [0x45f82c], ebx
je 0x43f337
push eax
call fcn.00433ec3
push dword [0x45f82c]
mov esi, eax
call fcn.00433ec3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43f337
test edi, edi
je 0x43f337
call esi
test eax, eax
je 0x43f32e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43f32e
test byte [ebp - 0xc], 1
jne 0x43f337
or dword [ebp + 0x10], 0x200000
jmp 0x43f370
mov eax, dword [0x45f820]
cmp eax, ebx
je 0x43f370
push eax
call fcn.00433ec3
pop ecx
test eax, eax
je 0x43f370
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43f370
mov eax, dword [0x45f824]
cmp eax, ebx
je 0x43f370
push eax
call fcn.00433ec3
pop ecx
test eax, eax
je 0x43f370
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45f81c]
call fcn.00433ec3
pop ecx
test eax, eax
je 0x43f390
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43f392
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401977
Capabilities:
Clear file content
Get common file path
Get keyboard layout

Disassembly:
sub esp, 0x800
push esi
push edi
xor esi, esi
xor edi, edi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp edi, 0x58ced85
jg 0x40199d
inc edi
cmp edi, 0x1f6502b1
jl 0x401983
cmp dword [0x2810ac4], 0x400
jne 0x4019e6
push str.sadahoziyofejonoh_niforapo_pihekezavokigubodatojup_rafepigojamulexiwodugaxexude_jam
push str.nelugidoneyari
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
call dword [sym.imp.USER32.dll_DdeKeepStringHandle]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
push esi
push esi
call fcn.00401de1
push esi
call fcn.00401f57
push esi
call fcn.00401f66
add esp, 0x10
xor edi, edi
cmp edi, 0xd09a
jge 0x4019f7
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp edi, 0xd2ced2
jg 0x401a1f
inc edi
cmp edi, 0x263ff
jl 0x4019e8
mov eax, dword [0x422c14]
mov dword [0x2810ac4], eax
call fcn.004016ec
mov edi, 0x3078f
cmp dword [0x2810ac4], 0x51f
jne 0x401a4b
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec edi
jne 0x401a33
pop edi
xor eax, eax
pop esi
add esp, 0x800
ret 0x10
Function at 0x404f9b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x422a80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403353
and dword [ebp - 0x14], 0
cmp dword [0x42d784], 0
mov dword [ebp - 0x18], eax
jne 0x40504e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4050f6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4050f6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42d784], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42d788], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42d78c], eax
call edi
push eax
call esi
mov dword [0x42d794], eax
test eax, eax
je 0x40504e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42d790], eax
mov eax, dword [0x42d790]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4050a7
cmp dword [0x42d794], ecx
je 0x4050a7
push eax
call esi
push dword [0x42d794]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4050a7
test ebx, ebx
je 0x4050a7
call edi
test eax, eax
je 0x40509e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40509e
test byte [ebp - 8], 1
jne 0x4050a7
or dword [ebp + 0x10], 0x200000
jmp 0x4050da
mov eax, dword [0x42d788]
cmp eax, dword [ebp - 0x18]
je 0x4050da
push eax
call esi
test eax, eax
je 0x4050da
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4050da
mov eax, dword [0x42d78c]
cmp eax, dword [ebp - 0x18]
je 0x4050da
push eax
call esi
test eax, eax
je 0x4050da
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42d784]
call esi
test eax, eax
je 0x4050f6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4050f8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405306
leave
ret

Function at 0x405306
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422a80]
jne 0x405310
repz ret
jmp fcn.004060bf
Function at 0x1007ecc
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x100a
push 0x800
mov dword [ebp - 4], 0x39
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1007f6a
mov edx, 0x1002080
lea eax, [ebp - 4]
mov cx, word [eax]
cmp cx, word [edx]
jne 0x1007f21
test cx, cx
je 0x1007f1d
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x1007f21
add eax, 4
add edx, 4
test cx, cx
jne 0x1007efb
xor eax, eax
jmp 0x1007f26
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1007f2f
push 9
pop eax
leave
ret
mov ecx, 0x100207c
lea eax, [ebp - 4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1007f5d
test dx, dx
je 0x1007f59
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1007f5d
add eax, 4
add ecx, 4
test dx, dx
jne 0x1007f37
xor eax, eax
jmp 0x1007f62
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1007f6a
push 5
jmp 0x1007f2c
xor eax, eax
inc eax
leave
ret

Function at 0x1008185
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x1026bcc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xac]
mov ebx, dword [eax + 4]
push edi
xor edi, edi
mov dword [ebp - 0xd0], ebx
test ebx, ebx
jle 0x1008292
mov eax, dword [esi + 0xac]
mov eax, dword [eax + 8]
mov eax, dword [eax + edi*4]
cmp dword [eax - 8], 0
je 0x1008213
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100820e
lea ebx, [edi + 1]
jmp 0x10081e8
lea eax, [eax + ebx*4]
push eax
lea ecx, [eax - 4]
call fcn.0101c0f6
inc ebx
cmp ebx, dword [ebp - 0xd0]
mov eax, dword [esi + 0xac]
mov eax, dword [eax + 8]
jl 0x10081db
push 0x1002084
lea ecx, [eax + ebx*4 - 4]
call sub.MFC42u.dll_CString::operator_2
mov ebx, dword [ebp - 0xd0]
dec edi
inc edi
cmp edi, ebx
jl 0x10081b8
cmp edi, ebx
jge 0x1008292
mov eax, dword [esi + 0xac]
mov eax, dword [eax + 0x10]
inc edi
push edi
push eax
lea eax, [ebp - 0xcc]
push 0x64
push eax
call fcn.01008056
add esp, 0x10
test eax, eax
jge 0x100826a
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1008283
test dword [ecx + 0x1c], 0x400
je 0x1008283
cmp byte [ecx + 0x19], 5
jb 0x1008283
push eax
push 0x1001ca0
push 0x1a
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01007024
jmp 0x1008283
push 0
lea eax, [ebp - 0xcc]
push eax
mov eax, dword [esi + 0xac]
push dword [eax + 0xc]
mov ecx, esi
call sub.MFC42u.dll_CWinApp::WriteProfileStringW
cmp edi, ebx
jl 0x1008217
mov ecx, dword [esi + 0xac]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101d957
leave
ret
Function at 0x1019468
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, dword [esi + 0x40]
push edi
mov dword [ebp - 8], ebx
add ebx, 0xa0
xor edi, edi
cmp ebx, edi
je 0x101959f
cmp dword [ebp + 8], 9
mov dword [ebp - 4], edi
jne 0x1019562
mov ecx, dword [esi + 0xa4]
cmp ecx, 1
je 0x10194ae
cmp dword [esi + 0x90], edi
je 0x101959d
cmp dword [ebx + 0xc], 1
jle 0x1019562
mov eax, dword [esi + 0x90]
cmp eax, edi
jne 0x10194cf
cmp ecx, edi
je 0x10194db
mov eax, dword [esi + 0x9c]
mov eax, dword [eax + 8]
push edi
push eax
mov ecx, ebx
call sub.MFC42u.dll_CObList::Find
mov dword [ebp - 4], eax
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
and eax, 0x8000
mov dword [ebp + 8], eax
cmp dword [ebp - 4], edi
je 0x101950e
cmp eax, edi
lea eax, [ebp - 4]
mov ecx, ebx
push eax
je 0x1019501
call fcn.0100a5ed
jmp 0x1019506
call fcn.0100a5bc
cmp dword [ebp - 4], edi
jne 0x1019524
mov eax, dword [ebp + 8]
cmp dword [ebx + 0xc], edi
je 0x1019524
cmp eax, edi
je 0x101951c
mov eax, dword [ebx + 8]
jmp 0x101951f
mov eax, dword [ebx + 4]
mov ebx, dword [eax + 8]
jmp 0x1019530
push dword [ebp - 4]
mov ecx, ebx
call fcn.01013229
mov ebx, dword [eax]
push 1
push edi
push edi
mov ecx, esi
call fcn.01018a5b
push 1
push edi
push ebx
mov ecx, esi
call fcn.01018a5b
mov ecx, esi
call fcn.010168a2
push edi
push edi
mov ecx, esi
call fcn.01015e8a
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
push 1
call dword [eax + 0x64]
jmp 0x10195a4
cmp dword [esi + 0x90], edi
je 0x101959d
cmp dword [ebx + 0xc], 1
jne 0x101959d
push 1
push edi
push edi
mov ecx, esi
call fcn.01018a5b
push 1
push edi
push dword [esi + 0x90]
mov ecx, esi
call fcn.01018a5b
mov ecx, esi
call fcn.010168a2
push edi
push edi
mov ecx, esi
call fcn.01015e8a
jmp 0x10195a4
mov ecx, esi
call sub.MFC42u.dll_CWnd::Default
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x101d916
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1024208
call fcn.0101dd54
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1029298
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x101d6d1
cmp eax, esi
jne 0x101d6c4
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x101d6d4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x101d6ab
xor esi, esi
inc esi
mov eax, dword [0x1029294]
cmp eax, esi
jne 0x101d6e7
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x101d716
mov eax, dword [0x1029294]
test eax, eax
jne 0x101d710
mov dword [0x1029294], esi
push 0x1001c7c
push 0x1001c70
call fcn.0101d60d
pop ecx
pop ecx
test eax, eax
je 0x101d716
jmp 0x101d83a
mov dword [0x1028d20], esi
mov eax, dword [0x1029294]
cmp eax, esi
jne 0x101d73a
push 0x1001c6c
push 0x1001bfc
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1029294], 2
cmp dword [ebp - 0x20], ebx
jne 0x101d747
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10292a4], ebx
je 0x101d768
push 0x10292a4
call fcn.0101dcc9
pop ecx
test eax, eax
je 0x101d768
push ebx
push 2
push ebx
call dword [0x10292a4]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x101d83a
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x101d7d2
cmp cx, bx
je 0x101d78d
cmp dword [ebp - 0x1c], ebx
jne 0x101d7d2
movzx ecx, word [eax]
cmp cx, bx
je 0x101d7a2
cmp cx, 0x20
ja 0x101d7a2
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x101d78d
test byte [ebp - 0x40], 1
je 0x101d7ae
movzx ecx, word [ebp - 0x3c]
jmp 0x101d7b1
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1028d1c], eax
cmp dword [0x1028d10], ebx
jne 0x101d817
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x101d7e3
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x101d777
cmp dword [0x1028d20], ebx
jne 0x101d825
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1028d1c]
jmp 0x101d846
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0101dd99
ret
call fcn.0101dea1
jmp 0x101d66e