joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426d95
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x48a9e8]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0xc], ebx
cmp eax, 7
je 0x426e05
cmp eax, 8
je 0x426e05
mov dword [ebp - 4], ebx
cmp eax, 5
je 0x426dbf
cmp eax, 6
jne 0x426dc6
mov dword [ebp - 4], 0xfde9
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push dword [ebp - 4]
call edi
mov esi, eax
inc esi
mov ecx, esi
call fcn.00424f73
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x426e42
push ebx
push ebx
push esi
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
mov dword [ebp - 8], eax
push ebx
push dword [ebp - 4]
call edi
cmp eax, ebx
je 0x426e1e
dec eax
jmp 0x426e1e
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x426e0e
sub eax, ecx
sar eax, 1
add eax, eax
push ebx
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [ebp - 8]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0xc]
cmp ecx, ebx
je 0x426e42
call fcn.00424f83
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x427051
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b4
mov eax, dword [0x488548]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
lea ecx, [eax + 0x4f6c]
xor edi, edi
cmp dword [ecx], edi
je 0x4270ae
push esi
lea esi, [eax + 0x4f70]
add eax, 0xa34
push eax
mov dword [ecx], edi
lea eax, [ebp - 0x4b4]
xor ecx, ecx
push eax
mov word [esi], cx
call dword [sym.imp.PPLIB32W.DLL__GetDriveName_8]
push edi
push edi
push edi
push edi
push edi
push 0x103
push esi
lea eax, [ebp - 0x4b4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0046890b
leave
ret 4

Function at 0x4287e2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc0
mov eax, dword [0x488548]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x22
pop ecx
push eax
lea eax, [ebp - 0xbba]
push eax
mov word [ebp - 0xbbc], cx
call fcn.0042773d
push dword [esi + 0x20]
mov edi, eax
push dword [esi + 0x1c]
push dword [esi + 0x14]
push dword [esi + 0x18]
push dword [esi + 0xc]
push dword [esi + 0x10]
push dword [esi + 4]
push dword [esi + 8]
push dword [esi]
add esi, 0x234
push esi
push str.____s__A:H_x_C:_u._u_L:_u._u_W:_u._u_S:_u._u
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x30
push 0xd
lea eax, [edi + eax*2]
pop ecx
mov word [eax], cx
inc eax
push 0xa
inc eax
pop ecx
mov word [eax], cx
push 0
lea ecx, [ebp - 0xbc0]
push ecx
lea ecx, [ebp - 0xbbc]
sub eax, ecx
inc eax
inc eax
sar eax, 1
add eax, eax
push eax
mov eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046890b
leave
ret 0xc
Function at 0x429b99
Capabilities:
Enumerate pe sections

Disassembly:
push edi
mov edi, dword [esp + 0x10]
cmp dword [edi + 0x18], 0
jge 0x429ba8
xor eax, eax
jmp 0x429c06
push ebx
push esi
mov esi, dword [esp + 0x10]
lea ebx, [esi + 0x64]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x14]
mov esi, dword [esi + 0x2254]
mov eax, dword [edi + 0x18]
movzx ecx, word [edx + 4]
jmp 0x429bd1
mov eax, dword [eax]
test eax, eax
je 0x429bf9
add eax, esi
cmp word [eax + 4], cx
jne 0x429bcb
movzx ecx, word [eax + 6]
cmp ecx, dword [edx + 8]
ja 0x429bf9
mov eax, dword [eax + 8]
push ecx
add eax, esi
push eax
push dword [edx + 0xc]
call fcn.00468fa0
xor esi, esi
add esp, 0xc
inc esi
jmp 0x429bfb
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
pop ebx
pop edi
ret 0xc
Function at 0x430f45
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
lea ebp, [esp - 0x1708]
mov eax, 0x1788
call fcn.00468c00
mov eax, dword [0x488548]
xor eax, ebp
mov dword [ebp + 0x1704], eax
mov eax, dword [ebp + 0x1718]
push ebx
mov ebx, dword [ebp + 0x171c]
push esi
mov esi, dword [ebp + 0x1710]
push edi
mov edi, dword [ebp + 0x1714]
mov dword [ebp - 0x80], esi
test edi, edi
je 0x430f8e
cmp word [edi], 0x2a
jne 0x430f8e
xor edi, edi
cmp dword [ebp + 0x1724], 0
je 0x430f9d
push eax
call fcn.004270bd
push ebx
push eax
lea eax, [ebp + 0x1254]
push eax
call dword [sym.imp.PPLIB32W.DLL__VFSFullPath_12]
push 0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1254]
push eax
call dword [sym.imp.PPLIB32W.DLL__VFSGetDriveType_12]
test eax, eax
je 0x430fdf
cmp dword [ebp - 0x7c], 0xffffffff
jle 0x430fcf
cmp dword [ebp - 0x7c], 0x16
jne 0x430fdf
lea eax, [ebp + 0x1254]
push eax
push eax
push 0
call dword [sym.imp.PPLIB32W.DLL__VFSGetRealPath_12]
mov eax, dword [ebp + 0x1720]
test eax, eax
jne 0x430ff5
mov dword [ebp - 0x74], 0x4739e8
jmp 0x43109a
lea edx, [ebp + 0x8f4]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x430ffd
lea eax, [ebp + 0x1254]
push eax
push 0x478e4c
lea eax, [ebp + 0x8f4]
push eax
call fcn.00427651
push 0x478e44
push 0x478e3c
lea eax, [ebp + 0x8f4]
push eax
call fcn.00427651
lea eax, [ebp + 0x1254]
push eax
push 0x478e34
lea eax, [ebp + 0x8f4]
push eax
call fcn.00427651
lea eax, [ebp + 0x1254]
push eax
push 0x478e2c
lea eax, [ebp + 0x8f4]
push eax
call fcn.00427651
push ebx
push 0x478e24
lea eax, [ebp + 0x8f4]
push eax
call fcn.00427651
lea eax, [ebp + 0x8f4]
mov dword [ebp - 0x74], eax
push 0x258
lea eax, [ebp + 0x1254]
push eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.PPLIB32W.DLL__GetLineParamS_12]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0x1728]
lea eax, [ebp + 0x1254]
push ebx
push dword [ebp - 0x74]
push eax
push edi
push dword [esi + 0xc]
call dword [sym.imp.PPLIB32W.DLL__PPxShellExecute_28]
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x4310d1
lea eax, [ebp - 0x6c]
push eax
xor edx, edx
mov ecx, esi
call fcn.00427caa
xor eax, eax
jmp 0x431148
cmp dword [0x4895c0], 0
je 0x43113c
cmp dword [esi + 0x1d78], 0
je 0x43113c
mov esi, dword [sym.imp.USER32.dll_WaitForInputIdle]
push 0x64
push dword [ebp - 0x70]
call esi
mov edi, 0x102
jmp 0x431138
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x1b
call ebx
push 0x13
mov word [ebp - 0x76], ax
call ebx
mov cx, word [ebp - 0x76]
or cx, ax
mov eax, 0x8000
test ax, cx
je 0x431131
mov eax, dword [ebp - 0x80]
push 0x21
push 0
push 0
push dword [eax + 0xc]
call dword [sym.imp.PPLIB32W.DLL__PMessageBox_16]
cmp eax, 1
je 0x4310cd
push 0x64
push dword [ebp - 0x70]
call esi
cmp eax, edi
je 0x4310f7
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x1704]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046890b
add ebp, 0x1708
leave
ret 0x1c
Function at 0x4314b2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x7c4]
sub esp, 0x844
mov eax, dword [0x488548]
xor eax, ebp
mov dword [ebp + 0x7c0], eax
mov eax, dword [ebp + 0x7cc]
mov ecx, dword [ebp + 0x7d8]
and dword [ebp - 0x6c], 0
push ebx
push esi
mov esi, dword [ebp + 0x7d4]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x7d0]
push edi
push eax
lea eax, [ebp + 0x5b8]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_s
push eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x64], ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
xor eax, eax
mov word [ebp + 0x1a8], ax
mov ebx, 0x104
push ebx
lea eax, [ebp + 0x1a8]
push eax
push str.Application
lea eax, [ebp + 0x5b8]
push eax
push esi
call dword [sym.imp.PPLIB32W.DLL__GetRegString_20]
mov eax, str.OpenWithList
mov edx, eax
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x43153b
sub eax, edx
lea edi, [ebp + 0x5b8]
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x43154f
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x68]
push eax
mov edi, 0x20019
push edi
push 0
lea eax, [ebp + 0x5b8]
push eax
push dword [ebp - 0x74]
call esi
test eax, eax
jne 0x431649
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x3b0]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
jmp 0x431632
cmp word [ebp - 0x5e], 0
jne 0x431613
lea eax, [ebp + 0x3b0]
push eax
lea eax, [ebp + 0x5b8]
push str.Applications_s_shellOpen
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push edi
push 0
lea eax, [ebp + 0x5b8]
push eax
push 0x80000000
call esi
test eax, eax
jne 0x431613
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0x3b0]
push eax
push dword [ebp - 0x64]
push dword [ebp - 0x7c]
call fcn.00431392
inc dword [ebp - 0x64]
cmp dword [ebp - 0x64], 0xe1ff
jae 0x431649
inc dword [ebp - 0x6c]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x3b0]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x6c]
push dword [ebp - 0x68]
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x4315b0
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov edx, 0xe000
pop esi
pop ebx
cmp dword [ebp - 0x64], edx
jne 0x43167f
cmp word [ebp + 0x1a8], 0
je 0x43167f
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp + 0x1a8]
push eax
call fcn.00457166
mov dword [ebp - 0x64], 0xe001
mov ecx, dword [ebp + 0x7c0]
mov eax, dword [ebp - 0x64]
xor ecx, ebp
call fcn.0046890b
add ebp, 0x7c4
leave
ret 0x10
Function at 0x431699
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x488548]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push esi
mov esi, dword [ebp + 0x1a8]
push edi
lea ecx, [ebp - 0x74]
push ecx
push 0x20019
xor edi, edi
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x1ac]
push edi
push eax
push 0x80000000
mov dword [ebp - 0x78], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x431755
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
push edi
jmp 0x43173b
lea eax, [ebp - 0x70]
push 0x2e
push eax
call fcn.0046891a
pop ecx
pop ecx
test eax, eax
je 0x431729
lea eax, [ebp - 0x70]
push eax
push dword [esi]
push dword [ebp - 0x80]
call fcn.00431392
inc dword [esi]
cmp dword [esi], 0xe1ff
jae 0x43174b
inc dword [ebp - 0x78]
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x78]
push dword [ebp - 0x74]
mov dword [ebp - 0x7c], 0x104
call ebx
test eax, eax
je 0x431700
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp + 0x198]
pop edi
xor ecx, ebp
pop esi
call fcn.0046890b
add ebp, 0x19c
leave
ret 0xc
Function at 0x43176e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x650]
sub esp, 0x6d0
mov eax, dword [0x488548]
xor eax, ebp
mov dword [ebp + 0x64c], eax
mov eax, dword [ebp + 0x658]
push esi
mov esi, dword [ebp + 0x65c]
push edi
lea ecx, [ebp - 0x74]
push ecx
push 0x20019
xor edi, edi
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x660]
push edi
push eax
push 0x80000000
mov dword [ebp - 0x78], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4318b4
push ebx
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x444]
push eax
mov ebx, 0x104
push edi
jmp 0x431896
lea eax, [ebp + 0x444]
push eax
lea eax, [ebp - 0x6c]
push str._s_shellopencommand
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
xor eax, eax
push ebx
mov word [ebp + 0x444], ax
lea eax, [ebp + 0x444]
push eax
push 0x4739e8
lea eax, [ebp - 0x6c]
push eax
push 0x80000000
call dword [sym.imp.PPLIB32W.DLL__GetRegString_20]
cmp word [ebp + 0x444], di
je 0x431881
lea eax, [ebp + 0x444]
mov dword [ebp - 0x70], eax
push 0x258
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.PPLIB32W.DLL__GetLineParamS_12]
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.PPLIB32W.DLL__VFSFindLastEntry_4]
mov dword [ebp - 0x70], eax
cmp word [eax], 0x5c
jne 0x431859
inc eax
inc eax
mov dword [ebp - 0x70], eax
push str.LaunchWinApp.exe
push eax
call fcn.00468b65
pop ecx
pop ecx
test eax, eax
je 0x431881
push dword [ebp - 0x70]
push dword [esi]
push dword [ebp - 0x80]
call fcn.00431392
inc dword [esi]
cmp dword [esi], 0xe1ff
jae 0x4318aa
inc dword [ebp - 0x78]
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x444]
push eax
push dword [ebp - 0x78]
push dword [ebp - 0x74]
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x4317de
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp + 0x64c]
pop edi
xor ecx, ebp
pop esi
call fcn.0046890b
add ebp, 0x650
leave
ret 0xc
Function at 0x435915
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1170
call fcn.00468c00
mov eax, dword [0x488548]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x1170], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x116c], eax
mov eax, 0x9f
push edi
mov word [ebp - 0x1164], ax
call fcn.004270bd
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
push eax
lea eax, [ebp - 0x964]
push str._s__s
push eax
call esi
add esp, 0x10
cmp dword [ebp - 0x116c], 0xffffffff
je 0x43599a
test byte [ebp - 0x116c], 0x10
jne 0x43599a
push edi
mov dword [ebp - 0x1168], 0xb
push 0x474250
jmp 0x4359aa
push edi
mov dword [ebp - 0x1168], 0xc
push str.__j__s_
lea eax, [ebp - 0x1162]
push eax
call esi
lea eax, [ebp - 0x1164]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4359bf
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 6]
push eax
lea eax, [ebp - 0x1168]
push eax
lea eax, [ebp - 0x964]
push eax
push dword [ebp - 0x1170]
call dword [sym.imp.PPLIB32W.DLL__SetCustTable_16]
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0x3f91
push dword [0x48b024]
push ebx
call esi
push 0
push 0x3f90
push dword [0x48b024]
push ebx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046890b
leave
ret 0xc
Function at 0x4365a5
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x694]
sub esp, 0x714
mov eax, dword [0x488548]
xor eax, ebp
mov dword [ebp + 0x690], eax
mov eax, dword [ebp + 0x69c]
push ebx
mov ebx, dword [ebp + 0x6a8]
push esi
mov esi, dword [ebp + 0x6a0]
push edi
mov edi, dword [ebp + 0x6ac]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x6a4]
test edi, edi
jne 0x4365f4
push str.ListFile.TXT
push eax
push ebx
call fcn.0042642d
xor eax, eax
xor ecx, ecx
cmp edi, eax
setne cl
push eax
push 0x8000000
inc ecx
push ecx
push eax
push eax
push 0x40000000
push ebx
call dword [sym.imp.PPLIB32W.DLL__CreateFileL_28]
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
jne 0x43662c
push 0
push ebx
push dword [ebp - 0x80]
call dword [sym.imp.PPLIB32W.DLL__PPErrorBox_12]
jmp 0x4366f1
xor ebx, ebx
cmp edi, ebx
je 0x436663
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x436637
sub eax, edx
push ebx
sar eax, 1
lea ecx, [ebp - 0x7c]
push ecx
add eax, eax
push eax
push edi
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, edi
call fcn.00424f83
jmp 0x4366e3
push ebx
lea ecx, [ebp - 0x7c]
push ecx
push 0x18
push 0x473b4c
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4366e3
lea eax, [ebp - 0x74]
push eax
push esi
call dword [sym.imp.PPLIB32W.DLL__FindFirstFileL_8]
cmp eax, 0xffffffff
je 0x43669e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call fcn.004287e2
jmp 0x4366cc
push esi
lea eax, [ebp + 0x1dc]
push str.__s__r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
lea ecx, [ebp - 0x7c]
push ecx
add eax, eax
push eax
lea eax, [ebp + 0x1dc]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x4366d1
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x436678
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x690]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046890b
add ebp, 0x694
leave
ret 0x14
Function at 0x437303
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf90]
mov eax, 0x1010
call fcn.00468c00
mov eax, dword [0x488548]
xor eax, ebp
mov dword [ebp + 0xf8c], eax
push ebx
push esi
mov esi, dword [ebp + 0xf98]
mov eax, dword [esi]
push edi
mov edi, dword [ebp + 0xf9c]
xor ebx, ebx
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], ebx
test al, 1
je 0x437379
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push dword [esi + 4]
mov dword [ebp - 0x78], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
je 0x437374
push ebx
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp - 0x78]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 4]
mov dword [ebp - 0x7c], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x7c]
jmp 0x4373ea
test al, 4
je 0x4373d6
mov eax, dword [esi + 4]
mov edi, dword [eax]
push ebx
push ebx
xor ecx, ecx
push ecx
xor edx, edx
push edx
push eax
call dword [edi + 0x14]
mov edi, 0x1000
jmp 0x4373b1
push ebx
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x78]
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x7c], eax
cmp eax, ebx
je 0x4373cb
mov eax, dword [esi + 4]
lea edx, [ebp - 0x78]
push edx
push edi
lea edx, [ebp - 0x74]
push edx
mov dword [ebp - 0x78], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp dword [ebp - 0x78], ebx
jne 0x437395
mov esi, dword [esi + 4]
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x437374
push str.tymed_error
push 1
push ebx
push ebx
call dword [sym.imp.PPLIB32W.DLL_XMessage]
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp + 0xf8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046890b
add ebp, 0xf90
leave
ret 8
Function at 0x438702
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x9a4]
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 8]
push eax
push dword [esi + 0x9a4]
call fcn.004052e7
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 5
call edi
mov ebx, dword [ebp + 0xc]
mov ecx, 0x8000
test cx, ax
je 0x438758
or ebx, 0x10000
push 6
call edi
mov ecx, 0x8000
test cx, ax
je 0x438769
or ebx, 0x40
mov ecx, dword [esi + 0x988]
mov eax, 0x10000
test eax, ecx
je 0x43878b
test eax, ebx
jne 0x43878b
push ebx
mov ecx, esi
call fcn.00436a5d
xor eax, eax
jmp 0x438864
test cl, 0x10
je 0x438795
test bl, 0x10
je 0x4387a7
test cl, 0x40
je 0x438837
test bl, 0x40
jne 0x438837
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
push dword [esi + 0x9a4]
mov dword [esi + 0x988], ebx
call fcn.00424392
cmp eax, 0x22
jne 0x438829
mov eax, dword [esi + 0x9a4]
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1d40]
mov ecx, dword [ecx + edx*4]
mov edx, dword [eax + 0x1d34]
imul ecx, ecx, 0x278
test dword [ecx + edx + 0x24], 0x8000010
je 0x438784
and dword [eax + 0x38cc], 0
call fcn.00439227
mov eax, dword [esi + 0x9a4]
mov ecx, dword [ebp + 0xc]
push 0
mov dword [eax + 0x1d50], ecx
mov eax, dword [esi + 0x9a4]
push 0x3e92
push dword [0x48b024]
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x438784
cmp eax, 0x20
jne 0x438784
jmp 0x43877c
mov eax, dword [esi + 0x9a8]
push dword [ebp + 0x18]
mov dword [esi + 0x988], ebx
test eax, eax
je 0x438859
push dword [ebp + 0x14]
mov ecx, dword [eax]
push dword [ebp + 0x10]
push ebx
push eax
call dword [ecx + 0x10]
jmp 0x438864
lea eax, [ebp + 0x10]
push eax
push ebx
push esi
call fcn.00438325
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x439227
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x48967c], 0
je 0x439249
mov ecx, dword [0x489680]
test ecx, ecx
je 0x439249
mov dword [0x489690], 1
jmp 0x439ab9
ret
push ebp
lea ebp, [esp - 0x43c]
sub esp, 0x4b8
mov eax, dword [0x488548]
xor eax, ebp
mov dword [ebp + 0x438], eax
push ebx
xor ebx, ebx
push esi
mov esi, ecx
inc ebx
push edi
cmp dword [esi + 0xb0], ebx
jne 0x439b21
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 2
call edi
push ebx
mov word [ebp - 0x7a], ax
call edi
mov cx, word [ebp - 0x7a]
or cx, ax
mov eax, 0x8000
test ax, cx
jne 0x439b21
or dword [esi + 0xb0], 0xffffffff
push 2
lea eax, [esi + 0xb4]
push eax
push dword [esi + 0xac]
call fcn.004493d3
cmp dword [esi + 0xb0], 0
je 0x439b6a
lea eax, [esi + 0xac]
mov ecx, dword [eax]
mov dword [ecx + 0x3114], ebx
mov eax, dword [eax]
lea edi, [eax + 0xa34]
lea eax, [ebp - 0x78]
mov ecx, edi
sub eax, edi
movzx edx, word [ecx]
mov word [eax + ecx], dx
inc ecx
inc ecx
test dx, dx
jne 0x439b47
lea ecx, [esi + 0xb4]
movzx eax, word [ecx]
inc ecx
mov word [edi], ax
inc ecx
inc edi
inc edi
test ax, ax
jne 0x439b5b
and dword [ebp - 0x7c], 0
cmp dword [esi + 8], 0
jle 0x439bdd
lea edi, [esi + 0x74]
lea ebx, [esi + 0xc]
cmp dword [edi - 4], 0
jne 0x439bcc
movzx eax, word [ebx]
movzx ecx, ax
cmp ecx, dword [0x48b04c]
jne 0x439b9b
push dword [esi + 0xac]
call fcn.0043a518
jmp 0x439bbf
cmp ax, 0xf
jne 0x439bae
push dword [esi + 0xac]
call fcn.0043a3eb
jmp 0x439bbf
cmp ax, 0xd
jne 0x439bcc
push dword [esi + 0xac]
call fcn.0043a2e7
and dword [edi + 4], 0
mov dword [edi], eax
mov dword [edi - 4], 1
inc dword [ebp - 0x7c]
mov eax, dword [ebp - 0x7c]
add ebx, 0x14
add edi, 0xc
cmp eax, dword [esi + 8]
jl 0x439b7a
cmp dword [esi + 0xb0], 0
je 0x439c0e
lea eax, [esi + 0xac]
mov ecx, dword [eax]
and dword [ecx + 0x3114], 0
mov eax, dword [eax]
lea edx, [ebp - 0x78]
add eax, 0xa34
movzx ecx, word [edx]
inc edx
mov word [eax], cx
inc edx
inc eax
inc eax
test cx, cx
jne 0x439bff
mov ecx, dword [ebp + 0x438]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046890b
add ebp, 0x43c
leave
ret