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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [esi + 0x28]
cmp ecx, 0x64
mov dword [ebp - 4], ecx
jge 0x1000a4e0
cmp dword [esi + 0x18], 0x200
jae 0x1000a4e0
xor al, al
jmp 0x1000a57f
push edi
push dword [ebp + 0x10]
push eax
push str.Rar_LS
call fcn.1000eebd
mov edi, eax
test edi, edi
jne 0x1000a4fc
xor al, al
jmp 0x1000a57e
push ebx
push edi
push 0xff
call fcn.10011078
push edi
push 0xfe
call fcn.10011078
lea ebx, [esi + 0x14]
add esp, 0x10
mov ecx, ebx
call fcn.1000e34d
and dword [ebp + 8], 0
cmp byte [ebp + 0xc], 0
mov eax, dword [ebp - 4]
je 0x1000a52e
dec eax
cmp dword [ebp + 8], eax
jge 0x1000a574
mov ecx, ebx
call fcn.1000e4b7
test eax, eax
je 0x1000a56f
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
inc ecx
inc ecx
test dx, dx
jne 0x1000a543
sub ecx, esi
sar ecx, 1
push edi
add ecx, ecx
push ecx
push 1
push eax
call fcn.10010ff6
push edi
push 4
push 1
push 0x10020c00
call fcn.10010ff6
add esp, 0x20
inc dword [ebp + 8]
jmp 0x1000a524
push edi
call fcn.10010d95
pop ecx
mov al, 1
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x1000f767
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10025190]
jne 0x1000f771
repz ret
jmp fcn.10013e8c

Function at 0x1001be69
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.1001380e
and dword [ebp - 4], 0
cmp dword [0x10031c8c], 0
mov ebx, eax
jne 0x1001bf1a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1001bfcb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1001bfcb
push eax
call fcn.1001379c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10031c8c], eax
call esi
push eax
call fcn.1001379c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10031c90], eax
call esi
push eax
call fcn.1001379c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10031c94], eax
call esi
push eax
call fcn.1001379c
pop ecx
mov dword [0x10031c9c], eax
test eax, eax
je 0x1001bf1a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1001379c
pop ecx
mov dword [0x10031c98], eax
mov eax, dword [0x10031c98]
cmp eax, ebx
je 0x1001bf72
cmp dword [0x10031c9c], ebx
je 0x1001bf72
push eax
call fcn.10013817
push dword [0x10031c9c]
mov esi, eax
call fcn.10013817
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1001bf72
test edi, edi
je 0x1001bf72
call esi
test eax, eax
je 0x1001bf69
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001bf69
test byte [ebp - 0xc], 1
jne 0x1001bf72
or dword [ebp + 0x10], 0x200000
jmp 0x1001bfab
mov eax, dword [0x10031c90]
cmp eax, ebx
je 0x1001bfab
push eax
call fcn.10013817
pop ecx
test eax, eax
je 0x1001bfab
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1001bfab
mov eax, dword [0x10031c94]
cmp eax, ebx
je 0x1001bfab
push eax
call fcn.10013817
pop ecx
test eax, eax
je 0x1001bfab
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10031c8c]
call fcn.10013817
pop ecx
test eax, eax
je 0x1001bfcb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001bfcd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402a3d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42e490]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402ad1
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a8e
cmp dword [ebp + 0x10], ebx
jne 0x402ac5
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a3d
test eax, eax
jne 0x402aa0
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a75
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406083
cmp eax, ebx
je 0x402ad8
push ebx
push dword [0x42e490]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ad1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42e490], ebx
jne 0x402ace
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ace
jmp 0x402ad1
Function at 0x402f41
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push edi
cmp eax, esi
jl 0x402f6d
mov ecx, dword [0x42e438]
push esi
add eax, ecx
push esi
push eax
mov dword [0x42040c], eax
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.0040305c
cmp eax, esi
jl 0x403056
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40901c]
call fcn.00405a61
test eax, eax
je 0x403042
push dword [ebp + 8]
add dword [0x42040c], 4
call fcn.0040305c
cmp eax, esi
mov dword [ebp - 8], eax
jl 0x403056
cmp dword [ebp + 0x10], esi
jne 0x40301e
cmp dword [ebp + 8], esi
jle 0x403053
mov esi, 0x41c408
cmp dword [ebp + 8], 0x4000
mov edi, dword [ebp + 8]
jl 0x402fd3
mov edi, 0x4000
push edi
push esi
push dword [0x40901c]
mov dword [ebp - 4], edi
call fcn.00405a61
test eax, eax
je 0x403042
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40301a
cmp dword [ebp + 0x14], edi
jne 0x40301a
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x42040c], eax
cmp dword [ebp + 8], 0
jg 0x402fc2
jmp 0x403053
push 0xfffffffffffffffe
jmp 0x403044
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403029
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403047
push 0xfffffffffffffffd
pop eax
jmp 0x403056
mov eax, dword [ebp - 4]
add dword [0x42040c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 0x10
Function at 0x40305c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x42040c]
sub esi, dword [0x40a840]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x42e3ec], eax
jle 0x4031c6
push dword [0x42841c]
call fcn.004031ee
push ebx
push ebx
push dword [0x40a840]
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x428418], esi
mov dword [0x420408], ebx
mov ebp, 0x414408
mov eax, dword [0x420410]
mov edi, 0x4000
sub eax, dword [0x42841c]
cmp eax, edi
jg 0x4030d1
mov edi, eax
mov esi, 0x41c408
push edi
push esi
call fcn.004031d8
test eax, eax
je 0x4031b8
add dword [0x42841c], edi
mov dword [0x40a848], esi
mov dword [0x40a84c], edi
cmp dword [0x42e3f0], ebx
je 0x403128
cmp dword [0x42e480], ebx
jne 0x403128
mov eax, dword [0x428418]
push ebx
sub eax, dword [0x42040c]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40a840]
mov dword [0x420408], eax
call fcn.00402bda
pop ecx
push 0x40a848
mov dword [0x40a850], ebp
mov dword [0x40a854], 0x8000
call fcn.00406163
test eax, eax
jl 0x4031c1
mov esi, dword [0x40a850]
sub esi, ebp
je 0x403182
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4031bd
cmp esi, dword [esp + 0x10]
jne 0x4031bd
add dword [0x40a840], esi
cmp dword [0x40a84c], ebx
jne 0x4030f7
jmp 0x40318e
cmp dword [0x40a84c], ebx
jne 0x4031c1
cmp edi, ebx
je 0x4031c1
mov eax, dword [0x42040c]
mov ecx, eax
sub ecx, dword [0x40a840]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x4030bb
push ebx
push ebx
push eax
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4031c6
or eax, 0xffffffff
jmp 0x4031d0
push 0xfffffffffffffffe
jmp 0x4031c3
push 0xfffffffffffffffd
pop eax
jmp 0x4031d0
push 1
call fcn.00402bda
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x405507
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42b068], 0x44
push eax
xor eax, eax
push 0x42b068
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405546
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4055d0
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.004059c4
mov edi, eax
cmp edi, 0xffffffff
je 0x405611
test byte [esp + 0x10], 1
push esi
je 0x4055f3
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4055f9
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405602
xor eax, eax
inc eax
jmp 0x405613
test byte [esp + 0x10], 4
jne 0x405611
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405618
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.004058d6
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405657
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42e468], eax
jmp 0x4057e1
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405671
test eax, eax
je 0x40578f
test bl, 2
je 0x40578f
mov esi, 0x42a868
push edi
push esi
call fcn.00405d58
cmp dword [ebp + 8], 0
je 0x405690
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405696
push edi
call fcn.0040582f
cmp byte [edi], 0
jne 0x4056a4
cmp byte [0x42a868], 0x5c
jne 0x4056af
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405785
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405813
cmp byte [eax], 0
je 0x4056f5
cmp byte [ebp - 0x1c], 0
je 0x4056f5
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x40570b
mov al, byte [esi + 1]
test al, al
je 0x405764
cmp al, 0x2e
jne 0x40570b
cmp byte [esi + 2], 0
je 0x405764
push esi
push ebx
call fcn.00405d58
test byte [ebp - 0x14c], 0x10
je 0x405730
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405764
push dword [ebp + 0xc]
push edi
call fcn.00405618
jmp 0x405764
push dword [ebp - 4]
push edi
call fcn.004055d0
test eax, eax
jne 0x40575c
cmp dword [ebp - 4], eax
je 0x405754
push edi
push 0xfffffffffffffff1
call fcn.00405041
push 0
push edi
call fcn.00405c0c
jmp 0x405764
inc dword [0x42e468]
jmp 0x405764
push edi
push 0xfffffffffffffff2
call fcn.00405041
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4056d3
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40578f
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4057e1
cmp dword [ebp - 0xc], esi
jne 0x4057a3
inc dword [0x42e468]
jmp 0x4057e1
push edi
call fcn.0040605c
test eax, eax
je 0x4057e1
push edi
call fcn.004057e8
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004055d0
test eax, eax
jne 0x4057d9
cmp dword [ebp - 4], esi
je 0x40579b
push edi
push 0xfffffffffffffff1
call fcn.00405041
push esi
push edi
call fcn.00405c0c
jmp 0x4057e1
push edi
push 0xffffffffffffffe5
call fcn.00405041
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4058d6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42ac68
push esi
call fcn.00405d58
push esi
call fcn.00405881
mov edi, eax
test edi, edi
jne 0x4058f7
xor eax, eax
jmp 0x405949
push edi
call fcn.00405fc3
test byte [0x42e3f8], 0x80
je 0x405910
mov al, byte [edi]
test al, al
je 0x4058f3
cmp al, 0x5c
je 0x4058f3
sub edi, esi
jmp 0x405928
call fcn.0040605c
test eax, eax
je 0x405922
test byte [eax], 0x10
je 0x4058f3
push esi
call fcn.0040582f
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405914
call fcn.004057e8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4059c4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4059e3
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x4059e9
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405a18
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40939c]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405a5d
test edi, edi
jne 0x405a23
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405a57
Function at 0x405a90
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x42b5f0
push 0x4093b8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x405adf
push 1
push 0
push esi
call fcn.004059e9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405c06
cmp eax, ebx
jg 0x405c06
mov esi, 0x42b9f0
push ebx
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405c06
cmp eax, ebx
jg 0x405c06
push esi
push edi
push str._s_s_r_n
push 0x42b1f0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42e3f0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405d7a
push 4
push 0xc0000000
push esi
call fcn.004059e9
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405c06
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405bff
push edi
push esi
push ebp
call fcn.00405a61
test eax, eax
je 0x405bff
push str._Rename__r_n
push esi
call fcn.0040594e
test eax, eax
jne 0x405b95
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405bca
add eax, 0xa
push 0x4093a0
push eax
call fcn.0040594e
mov ebp, eax
test ebp, ebp
je 0x405bc6
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405bb7
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405bb1
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x405bcc
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x42b1f0
push eax
call fcn.004059a4
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405c3f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405cb0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405c9f
cmp dword [ebp + 0x14], 1
je 0x405ca1
cmp dword [ebp + 0x14], 2
je 0x405ca1
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x4060f5
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42bdf4], 0
push esi
jne 0x40612c
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406106
mov dword [ecx*4 + 0x42bdf0], eax
inc ecx
cmp ecx, 0x100
jl 0x406101
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40615d
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42bdf0]
xor eax, esi
inc ecx
dec edx
jne 0x40613f
pop edi
not eax
pop esi
ret 0xc
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408e84
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x13ed2e8e
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x37926150
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x426368
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42650d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40e8b8]
call fcn.00403080
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403bd0
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4264e3
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00431878
test al, al
je 0x4264d6
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x42651c
lea eax, [ebp - 0x254]
call fcn.00408c54
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4264d6
xor eax, eax
push ebp
push 0x4264cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x426554
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4264b8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403dfc
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x4264b8
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403dfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4264d6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4263d9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.00411e4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426514
lea eax, [ebp - 0x260]
call fcn.00403bd0
ret

Function at 0x426788
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4c7678]
cmp byte [eax + 0x85], 0
jne 0x4267f9
cmp dword [0x4c76b0], 0
jne 0x4267ba
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, 0x426744
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4c76b0], eax
cmp dword [0x4c76ac], 0
jne 0x4267d5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4c76ac], eax
cmp dword [0x4c76b4], 0
jne 0x4267f9
push esp
push 0
push 0
push 0x4266e8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4c76b4], eax
pop edx
ret