joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10075d7
Capabilities:
Get common file path
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1009008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x234]
xor ebx, ebx
push eax
mov byte [ebp - 0x20d], bl
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x234], bx
jne 0x100761b
cmp edi, 0x2a
jne 0x100761b
push 0x26
pop edi
push ebx
push edi
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1007679
push 0x10047a4
lea eax, [ebp - 0x20c]
push eax
call sub.SHLWAPI.dll_PathAppendW
test eax, eax
je 0x1007679
cmp byte [ebp + 0x14], bl
je 0x100765e
push 0x1004788
lea eax, [ebp - 0x20c]
push eax
call sub.SHLWAPI.dll_PathAppendW
test eax, eax
je 0x1007679
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push esi
call fcn.01004d78
test eax, eax
jl 0x1007679
mov byte [ebp - 0x20d], 1
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x20d]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01005c74
leave
ret 0x10

Function at 0x10076b2
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x1007724
push edi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
je 0x1007723
push edi
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100771c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x10019dc
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100771c
cmp dword [ebp - 8], ebx
je 0x100771c
mov ecx, dword [ebp - 0xc]
mov eax, 0x6ffff
cmp eax, dword [ecx + 8]
sbb bl, bl
inc bl
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4

Function at 0x401a6a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401aa9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401aa9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401aa9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401aa9
cmp dword [ecx + 0x74], 0xe
jbe 0x401aa9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40ab80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40abad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40abad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x6ab53cc0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], 0x6ab65a44
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x6ab53d20
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
mov esi, edx
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x6ab53e16
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x6ab53d90
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x6ab53d65
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sub.msvcrt.dll_memcpy
cmp byte [esp + 0x1f], 0
je 0x6ab53d75
cmp byte [esp + 0x1e], 0
je 0x6ab53d75
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x6ab53d75
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.6ab53cc0
nop

Function at 0x6ab540b0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x6ab70040
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x6ab70058]
sub esp, 4
test ebx, ebx
je 0x6ab540fb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x6ab540f4
test esi, esi
je 0x6ab540f4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6ab540d0
mov dword [esp], 0x6ab70040
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x40ea20
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
push ebx
push esi
push edi
mov edi, eax
lea eax, [ebp - 0x228]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.004021f0
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x433f4f
mov eax, dword [0x4bc12c]
test eax, eax
je 0x433f68
mov byte [ebp - 1], 0
mov esi, 0x4bd2e0
cmp eax, 1
je 0x433f7e
push 0x4bc12c
lea ecx, [ebp - 1]
mov eax, 0x4bc144
call fcn.004102f0
test al, al
je 0x433fa5
mov cl, byte [0x4bd2e0]
mov bl, byte [0x4bd2e1]
push 0x4bc128
lea edx, [ebp - 0x438]
push edx
push 0x104
push 0x4bc144
mov byte [0x4bc130], cl
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [0x4bc12c]
push eax
push 0x4bc144
call fcn.00401480
test eax, eax
jne 0x433fbb
cmp bl, 1
je 0x433fe1
call fcn.004112b0
call fcn.00411490
cmp byte [0x4bc130], 0
jne 0x40eaf9
mov ebx, 0x4bc8e8
call fcn.0040edb0
push 1
mov ecx, 0x4bc350
call fcn.00403870
cmp byte [0x4bc130], 0
jne 0x40eb18
mov ecx, 0x4bc8e8
call fcn.0040eea0
mov ebx, 0x4bd2e0
call fcn.0040f7f0
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x40eb2f
lea ecx, [ebp - 0x228]
mov dword [0x4ab6dc], 0xffffffff
push ecx
jmp 0x40eb29
mov ebx, dword [0x4bc134]
push 0xffffffffffffffff
push 1
mov byte [ebp - 2], 0
call fcn.0040b8a0
mov dl, byte [0x4ab6d0]
mov bl, byte [ebp - 2]
mov byte [0x4bd2e3], dl
jmp 0x40eabb
lea eax, [ebp - 0x228]
mov dword [0x4ab6dc], 1
push eax
jmp 0x40eb29
mov ebx, 0x4bd2e0
call fcn.0040f7f0
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x4ab6dc], 1
jmp 0x40eb2f
call fcn.00438a7a
test al, al
jne 0x40eadc
push 0x104
lea edx, [ebp - 0x438]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp byte [ebp - 1], 0
je 0x43405f
mov edi, 0x4988a0
lea esi, [ebp - 0x14]
call fcn.00401ec0
mov edi, 0x4bc144
mov eax, esi
call fcn.0040dfa0
mov edi, 0x4988a0
mov eax, esi
call fcn.0040dfa0
mov ecx, dword [ebp - 0x14]
push 1
lea eax, [ebp - 0x228]
push eax
push ecx
lea edx, [ebp - 0x438]
push edx
push 0x4988a4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, esi
call fcn.00402610
jmp 0x40eb18
push 1
lea eax, [ebp - 0x228]
push eax
push edi
lea ecx, [ebp - 0x438]
push ecx
push 0x4988a4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40eb18
Function at 0x410e50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.004271f0
xor eax, eax
nop
mov cl, byte [eax + 0x4a6248]
mov dl, byte [eax + 0x4a6240]
mov byte [ebp + eax - 0x20], cl
mov byte [ebp + eax - 0x18], dl
inc eax
cmp eax, 8
jl 0x410e60
lea eax, [ebp - 8]
push str._U
push eax
call fcn.00414440
push 4
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.004131a0
add esp, 0x14
push ebx
push esi
mov dword [ebp - 0xc], 0
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0x10000
lea edx, [ebp - 0x10020]
push 1
push edx
call fcn.00415e4b
add esp, 0x10
cmp eax, 0x18
jl 0x410f21
mov edi, eax
lea esi, [edi - 0x14]
test esi, esi
jle 0x410ef0
xor edx, edx
xor ecx, ecx
mov bl, byte [ebp + ecx - 0x20]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x10020]
je 0x410f0e
cmp ecx, 0x14
je 0x42acce
inc edx
cmp edx, esi
jl 0x410ed0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
lea edx, [ecx + edi - 0x14]
mov ecx, dword [eax]
push 1
push 0xffffffffffffffec
push ecx
mov dword [ebp - 0xc], edx
call fcn.00416211
add esp, 0xc
jmp 0x410ea4
mov bl, byte [ebp + ecx - 0x1f]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001f]
je 0x410f2f
inc ecx
jmp 0x410ee2
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov bl, byte [ebp + ecx - 0x1e]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001e]
je 0x410f44
add ecx, 2
jmp 0x410ee2
mov bl, byte [ebp + ecx - 0x1d]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001d]
jne 0x42acc6
mov bl, byte [ebp + ecx - 0x1c]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001c]
je 0x42acb5
add ecx, 4
jmp 0x410ee2
add ecx, 5
cmp ecx, 0x14
jl 0x410ed2
jmp 0x410ee2
add ecx, 3
jmp 0x410ee2
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
lea ecx, [eax + edx + 0x14]
mov edx, dword [esi]
push 0
push ecx
push edx
call fcn.00416211
mov eax, dword [esi]
push eax
push 4
lea ecx, [ebp - 8]
push 1
push ecx
call fcn.00415e4b
lea edx, [ebp - 8]
push str.AUCN
push edx
mov byte [ebp - 4], 0
call fcn.00415e70
add esp, 0x24
neg eax
sbb eax, eax
and eax, 4
jmp 0x410f26

Function at 0x411490
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x4ab708]
push esi
push 0
mov esi, dword [sym.imp.USER32.dll_CreateWindowExW]
push eax
push 0
push 0
push 0x64
push 0x12c
push accept
push accept
push 0xcf0000
push str.AutoIt_v3
push str.AutoIt_v3
push 0
call esi
mov ecx, dword [0x4ab708]
push 0
push ecx
push 1
push eax
push 0
push 0
push 0
push 0
push 0x50b008c4
push 0
push str.edit
push 0
mov dword [0x4ab700], eax
call esi
mov edx, dword [0x4ab700]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edx
mov dword [0x4ab6fc], eax
call esi
mov eax, dword [0x4ab700]
push 0
push eax
call esi
pop esi
ret
Function at 0x4115d0
Capabilities:
Log keystrokes

Disassembly:
push ebx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov dword [esi], 5
mov dword [esi + 4], 5
mov word [esi + 8], 1
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov word [esi + 0x18], bx
push ebx
mov dword [esi + 0x1a], ebx
mov word [esi + 0x1e], bx
push 0x5b
mov dword [esi + 0xc], 4
call edi
push ebx
push 0x10
mov byte [esi + 0x29], al
call edi
push ebx
push 0xa0
mov byte [esi + 0x26], al
call edi
push ebx
push 0xa1
mov byte [esi + 0x27], al
call edi
push ebx
push 0x11
mov byte [esi + 0x28], al
call edi
push ebx
push 0x12
mov byte [esi + 0x24], al
call edi
pop edi
mov byte [esi + 0x25], al
pop ebx
ret

Function at 0x41bee8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a4de0]
jne 0x41bef2
repz ret
jmp fcn.00426eb6

Function at 0x42504c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a4de0]
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.004197ac
and dword [ebp - 0x14], 0
cmp dword [0x4ab33c], 0
mov dword [ebp - 0x18], eax
jne 0x4250ff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4251a7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4966e8
push ebx
call edi
test eax, eax
je 0x4251a7
mov esi, dword [0x4a4000]
push eax
call esi
push 0x4966d8
push ebx
mov dword [0x4ab33c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4ab340], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4ab344], eax
call edi
push eax
call esi
mov dword [0x4ab34c], eax
test eax, eax
je 0x4250ff
push 0x496690
push ebx
call edi
push eax
call esi
mov dword [0x4ab348], eax
mov eax, dword [0x4ab348]
mov ecx, dword [ebp - 0x18]
mov esi, dword [0x4a4004]
cmp eax, ecx
je 0x425158
cmp dword [0x4ab34c], ecx
je 0x425158
push eax
call esi
push dword [0x4ab34c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x425158
test ebx, ebx
je 0x425158
call edi
test eax, eax
je 0x42514f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42514f
test byte [ebp - 8], 1
jne 0x425158
or dword [ebp + 0x10], 0x200000
jmp 0x42518b
mov eax, dword [0x4ab340]
cmp eax, dword [ebp - 0x18]
je 0x42518b
push eax
call esi
test eax, eax
je 0x42518b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42518b
mov eax, dword [0x4ab344]
cmp eax, dword [ebp - 0x18]
je 0x42518b
push eax
call esi
test eax, eax
je 0x42518b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4ab33c]
call esi
test eax, eax
je 0x4251a7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4251a9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bee8
leave
ret
Function at 0x437b3a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov dl, byte [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x460]
mov eax, dword [esi + 0x458]
mov byte [eax + ecx], dl
inc dword [esi + 0x460]
cmp dword [esi + 0x460], 0x10000
jne 0x437b89
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x458]
push eax
push 0x10000
push 1
push ecx
call fcn.004150a6
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
pop ebp
ret 8

Function at 0x437c3a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 1
jne 0x437c61
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.004131a0
add esp, 0xc
jmp 0x437c75
mov edx, dword [esi + 0x1c]
push edx
push 8
lea eax, [ebp - 8]
push 1
push eax
call fcn.00415e4b
add esp, 0x10
movzx ecx, byte [ebp - 4]
movzx edx, byte [ebp - 3]
movzx eax, byte [ebp - 2]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, edx
movzx edx, byte [ebp - 1]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 0xc]
shl ecx, 8
or ecx, edx
mov dword [eax], ecx
lea ecx, [ebp - 8]
push str.AUCN
push ecx
mov byte [ebp - 4], 0
call fcn.00415e70
add esp, 8
neg eax
sbb eax, eax
neg eax
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x437d17
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [0x4bb728], eax
mov edx, 1
mov eax, 0x4bb728
push edi
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x4bc0e4
jl 0x437d2d
mov dword [0x4a6104], 1
mov dword [0x4bc0f8], 1
pop edi
pop ebp
ret

Function at 0x438c2e
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
js 0x438cca
jne 0x438c51
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0xf
jae 0x438cc3
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x18]
push eax
call edi
test eax, eax
je 0x438cc3
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x10]
push edx
call edi
fnstcw word [ebp + 0xa]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
sbb ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
fild qword [ebp - 0x20]
movzx eax, word [ebp + 0xa]
fild qword [ebp - 0x28]
or eax, 0xc00
mov dword [ebp - 4], eax
fdivp st(1)
fmul qword [0x4a09c0]
fldcw word [ebp - 4]
fistp qword [ebp - 8]
mov edx, dword [ebp - 8]
fldcw word [ebp + 0xa]
cmp edx, esi
jb 0x438c70
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x471a55
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
xor edi, edi
mov byte [ebp + 0xb], 1
cmp dword [ebx + 4], esi
je 0x471b70
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov byte [eax], 0
mov eax, dword [ebp + 0x10]
mov byte [ecx], 0
mov ecx, dword [ebp + 0xc]
mov byte [edx], 0
mov byte [eax], 0
mov dword [ecx], esi
lea ebx, [ebx]
push esi
push ebx
call fcn.0043be1a
movzx eax, word [eax]
cmp eax, 0x2b
je 0x471ab8
cmp eax, 0x5e
je 0x471ab3
cmp eax, 0x21
je 0x471ab3
cmp eax, 0x23
jne 0x471aeb
cmp eax, 0x2b
jne 0x471ac1
mov edx, dword [ebp + 0x10]
mov byte [edx], 1
inc esi
jmp 0x471a95
cmp eax, 0x5e
jne 0x471acf
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
inc esi
jmp 0x471a95
cmp eax, 0x21
jne 0x471add
mov ecx, dword [ebp + 0x18]
mov byte [ecx], 1
inc esi
jmp 0x471a95
cmp eax, 0x23
jne 0x471ae8
mov edx, dword [ebp + 0x1c]
mov byte [edx], 1
inc esi
jmp 0x471a95
push esi
inc esi
push ebx
mov dword [ebp + 0x1c], esi
call fcn.0043be1a
movzx eax, word [eax]
cmp eax, 0x7b
jne 0x471bd9
mov eax, 0x40
lea ecx, [ebp - 0x10]
call fcn.0040dfc0
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x10]
push ecx
push ebx
push 0x7d
call fcn.00469552
test al, al
je 0x471bb5
mov edx, dword [ebp - 0x10]
mov eax, dword [edi*4 + 0x4a6b18]
push edx
push eax
call fcn.0041398d
add esp, 8
test eax, eax
je 0x471b45
inc edi
cmp edi, 0x62
jl 0x471b27
cmp edi, 0x62
jne 0x471bac
xor edi, edi
lea esi, [ebp - 0x10]
call fcn.0040d450
movzx ecx, word [eax]
push ecx
call dword [sym.imp.USER32.dll_VkKeyScanW]
mov edx, dword [ebp + 0xc]
cwde
mov dword [edx], eax
cmp eax, 0xffffffff
jne 0x471b7b
mov ecx, esi
call fcn.00402610
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test eax, 0x200
je 0x471b88
mov ecx, dword [ebp + 0x14]
mov byte [ecx], 1
test eax, 0x400
je 0x471b95
mov edx, dword [ebp + 0x18]
mov byte [edx], 1
test eax, 0x100
je 0x471bcf
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
mov byte [eax], 1
call fcn.00402610
jmp 0x471c12
cmp byte [edi + 0x4a6ca0], 0
je 0x471bc3
lea ecx, [ebp - 0x10]
mov byte [ebp + 0xb], 0
call fcn.00402610
jmp 0x471c12
movzx ecx, byte [edi + 0x4a6d08]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
lea ecx, [ebp - 0x10]
call fcn.00402610
jmp 0x471c12
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
mov ecx, dword [ebp + 0xc]
cwde
mov dword [ecx], eax
cmp eax, 0xffffffff
je 0x471b70
test eax, 0x200
je 0x471bf8
mov edx, dword [ebp + 0x14]
mov byte [edx], 1
test eax, 0x400
je 0x471c05
mov ecx, dword [ebp + 0x18]
mov byte [ecx], 1
test eax, 0x100
je 0x471c12
mov edx, dword [ebp + 0x10]
mov byte [edx], 1
mov eax, dword [ebp + 0xc]
and dword [eax], 0xff
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x406248
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406271
mov eax, dword [0x40b058]
cmp eax, 0xffffffff
je 0x406265
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40b058], 0xffffffff
jmp 0x40631c
cmp dword [0x461530], ebx
je 0x40631c
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp word [0x46a560], bx
je 0x4062e8
cmp dword [0x40b058], 0xffffffff
jne 0x4062f1
mov esi, 0x46a560
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 4
push 0x40000000
push esi
mov dword [ebp + 8], eax
call fcn.00405fb0
mov dword [0x40b058], eax
cmp eax, 0xffffffff
je 0x40631a
cmp dword [ebp + 8], 0xffffffff
jne 0x4062dd
push ebx
lea ecx, [ebp - 4]
push ecx
push 2
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp + 8], 0xfeff
call edi
mov eax, dword [0x40b058]
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40b058], 0xffffffff
je 0x40631a
push 0x4096a8
mov esi, str.File:_skipped:__C:UsersADMINI1AppDataLocalTemp_nsrB965.tmpSystem.dll___overwriteflag1_
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp + 8]
push ecx
add eax, eax
push eax
push esi
push dword [0x40b058]
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4068df
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, str.C:UsersADMINI1AppDataLocalTemp_nsrB965.tmp
push esi
call fcn.0040616a
push esi
call fcn.00405eb9
mov edi, eax
test edi, edi
jne 0x406900
xor eax, eax
jmp 0x40695d
push edi
call fcn.00406199
test byte [0x472e28], 0x80
je 0x40691c
movzx eax, word [edi]
test ax, ax
je 0x4068fc
cmp eax, 0x5c
je 0x4068fc
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x40693e
push esi
call fcn.00406436
test eax, eax
je 0x406938
test byte [eax], 0x10
je 0x406962
push esi
call fcn.004068b2
push esi
call ebx
cmp eax, edi
jg 0x406929
push esi
call fcn.00406883
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x40695c
Function at 0x405d00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x405d37
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x405d37
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x4550
jne 0x405d37
mov eax, dword [ebp - 4]
add eax, 0x28
jmp 0x405d39
xor eax, eax
mov esp, ebp
pop ebp
ret 4