joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485bfd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x485c35
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00483c9f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00483c77
jmp 0x485c41
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4873fd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48743f
call fcn.0048d720
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48743f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x487436
xor eax, eax
jmp 0x487447
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048744d
pop edi
pop esi
pop ebx
ret 4

Function at 0x48dc50
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48dc7e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48dc9c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048dbb6
jmp 0x48dc9c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48dc9c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048dbb6
test edi, edi
mov eax, edi
jne 0x48dc86
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401430
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
xor eax, eax
mov edi, eax
mov dword [ebp - 0x4c], 0x30
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], 3
mov dword [0x4041a0], eax
mov eax, edi
mov dword [ebp - 0x44], 0x40135a
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], str.Happ
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
test eax, eax
je 0x401509
push edi
push dword [ebp - 0x38]
push edi
push edi
push 0x190
push 0x258
push 0xffffee08
push 0xffffee6c
push 0
push str.umbrage
push str.Happ
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [0x4041a8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4041a8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x401509
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x4014ee
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x40631f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42275c], 0
jne 0x40635d
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406333
mov dword [ecx*4 + 0x422758], eax
inc ecx
cmp ecx, 0x100
jl 0x40632e
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40638a
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x422758]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40636b
not eax
pop ebp
ret 0xc
Function at 0x402ac5
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 [0x42ecd0]
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 0x402b59
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402b16
cmp dword [ebp + 0x10], ebx
jne 0x402b4d
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402ac5
test eax, eax
jne 0x402b28
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402afd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405df3
cmp eax, ebx
je 0x402b60
push ebx
push dword [0x42ecd0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402b59
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 [0x42ecd0], ebx
jne 0x402b56
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402b56
jmp 0x402b59
Function at 0x4030be
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x420c3c]
mov edi, eax
sub esi, dword [0x40b034]
add edi, 0x1f4
add esi, dword [esp + 0x1c]
cmp esi, ebp
jle 0x403294
push dword [0x428c4c]
call fcn.004032d1
push ebp
push ebp
push dword [0x40b034]
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x428c48], esi
mov dword [0x420c38], ebp
mov eax, dword [0x420c40]
mov ebx, 0x4000
sub eax, dword [0x428c4c]
cmp eax, ebx
jg 0x403131
mov ebx, eax
mov esi, 0x41cbf8
push ebx
push esi
call fcn.0040329f
test eax, eax
je 0x40325f
add dword [0x428c4c], ebx
mov dword [0x40b038], esi
mov dword [0x40b03c], ebx
cmp dword [0x42ec28], ebp
je 0x4031c2
cmp dword [0x42ecc0], ebp
jne 0x4031c2
cmp dword [esp + 0x10], ebp
je 0x40318f
mov eax, dword [0x428c48]
push ebp
sub eax, dword [0x420c3c]
sub eax, dword [esp + 0x20]
add eax, dword [0x40b034]
mov dword [0x420c38], eax
call fcn.00405e2c
jmp 0x4031c2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jbe 0x4031c2
mov eax, dword [0x42ec24]
neg eax
sbb eax, eax
not eax
and eax, 0x4091ec
push eax
push 0x402bca
push ebp
push 0x6f
push dword [0x42ec20]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
push 0x40b038
mov dword [0x40b040], 0x414bf8
mov dword [0x40b044], 0x8000
call fcn.00405ecd
test eax, eax
jl 0x403268
mov esi, dword [0x40b040]
mov eax, 0x414bf8
sub esi, eax
je 0x403229
lea ecx, [esp + 0x14]
push ebp
push ecx
push esi
push eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403264
cmp esi, dword [esp + 0x14]
jne 0x403264
add dword [0x40b034], esi
cmp dword [0x40b03c], ebp
jne 0x403157
jmp 0x403235
cmp dword [0x40b03c], ebp
jne 0x403268
cmp ebx, ebp
je 0x403268
mov eax, dword [0x420c3c]
mov ecx, eax
sub ecx, dword [0x40b034]
add ecx, dword [esp + 0x1c]
test ecx, ecx
jg 0x40311b
push ebp
push ebp
push eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40326d
or eax, 0xffffffff
jmp 0x403296
push 0xfffffffffffffffe
jmp 0x40326a
push 0xfffffffffffffffd
pop eax
jmp 0x403296
mov esi, dword [esp + 0x10]
cmp esi, ebp
je 0x403294
mov eax, dword [0x428c48]
push ebp
push ebp
push 0x113
push esi
mov dword [0x420c38], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4
Function at 0x40537a
Capabilities:
Create process on windows

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

Function at 0x40543f
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.004056e1
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x405475
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42eca8], eax
jmp 0x4055fa
mov dword [ebp + 8], ecx
push edi
and dword [ebp + 8], 1
je 0x405490
test eax, eax
je 0x4055a5
test cl, 2
je 0x4055a5
mov esi, 0x42b0a0
push ebx
push esi
call fcn.00405b0d
cmp dword [ebp + 8], 0
je 0x4054af
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4054b5
push ebx
call fcn.00405647
push 0x409010
push ebx
call sub.KERNEL32.dll_lstrcatA
push ebx
call sub.KERNEL32.dll_lstrlenA
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40559b
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.0040562b
cmp byte [eax], 0
je 0x405506
cmp byte [ebp - 0x18], 0
je 0x405506
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x40551c
mov al, byte [esi + 1]
test al, al
je 0x40557a
cmp al, 0x2e
jne 0x40551c
cmp byte [esi + 2], 0
je 0x40557a
push esi
push edi
call fcn.00405b0d
test byte [ebp - 0x148], 0x10
je 0x405541
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40557a
push dword [ebp + 0xc]
push ebx
call fcn.0040543f
jmp 0x40557a
push ebx
call fcn.004057c5
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405572
test byte [ebp + 0xc], 4
je 0x40556a
push ebx
push 0xfffffffffffffff1
call fcn.00404ec1
push 0
push ebx
call fcn.0040585b
jmp 0x40557a
inc dword [0x42eca8]
jmp 0x40557a
push ebx
push 0xfffffffffffffff2
call fcn.00404ec1
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4054e4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4055a5
and byte [edi - 1], 0
xor esi, esi
pop edi
cmp dword [ebp + 8], esi
je 0x4055fa
cmp dword [ebp - 8], esi
jne 0x4055ba
inc dword [0x42eca8]
jmp 0x4055fa
push ebx
call fcn.00405db5
test eax, eax
je 0x4055fa
push ebx
call fcn.00405600
push ebx
call fcn.004057c5
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4055f2
test byte [ebp + 0xc], 4
je 0x4055b2
push ebx
push 0xfffffffffffffff1
call fcn.00404ec1
push esi
push ebx
call fcn.0040585b
jmp 0x4055fa
push ebx
push 0xffffffffffffffe5
call fcn.00404ec1
pop esi
pop ebx
leave
ret 8
Function at 0x4056e1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42b4a0
push esi
call fcn.00405b0d
push esi
call fcn.00405694
mov edi, eax
test edi, edi
jne 0x405702
xor eax, eax
jmp 0x405754
push edi
call fcn.00405d1c
test byte [0x42ec30], 0x80
je 0x40571b
mov al, byte [edi]
test al, al
je 0x4056fe
cmp al, 0x5c
je 0x4056fe
sub edi, esi
jmp 0x405733
call fcn.00405db5
test eax, eax
je 0x40572d
test byte [eax], 0x10
je 0x4056fe
push esi
call fcn.00405647
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x40571f
call fcn.00405600
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 0x4057c5
Capabilities:
Check if file exists
Get file attributes
Set file attributes

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

Function at 0x4057e4
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 0x405813
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
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 0x405857
test edi, edi
jne 0x40581e
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405851
Function at 0x40585b
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405df3
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40587f
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x4059b8
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42c228], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x42c228
je 0x4058c3
push 1
push 0
push esi
call fcn.004057e4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4059be
cmp eax, edi
jg 0x4059be
mov esi, 0x42bca0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4059be
cmp eax, edi
jg 0x4059be
push esi
push ebp
push str._s_s_r_n
push 0x42b8a0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42ec28]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405b2f
push 4
push 0xc0000000
push esi
call fcn.004057e4
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x4059b8
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 0x4059b1
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4059b1
cmp edi, dword [esp + 0x18]
jne 0x4059b1
push str._Rename__r_n
push esi
call fcn.00405759
test eax, eax
jne 0x4059c5
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405b0d
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x42b8a0
push eax
call fcn.004057a5
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
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]
inc dword [0x42ecb0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x4093a0
push eax
call fcn.00405759
test eax, eax
je 0x40597c
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x4059ec
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4059e1
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x40597e
Function at 0x4059f4
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 0x405a65
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 0x405a54
cmp dword [ebp + 0x14], 1
je 0x405a56
cmp dword [ebp + 0x14], 2
je 0x405a56
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 0x405b2f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jge 0x405b50
mov ecx, dword [0x42e3fc]
lea eax, [edi*4 + 4]
sub ecx, eax
mov edi, dword [ecx]
mov eax, dword [0x42ec58]
mov ecx, dword [ebp + 8]
add edi, eax
mov eax, 0x42dbc0
sub ecx, eax
mov ebx, eax
cmp ecx, 0x800
jae 0x405cf6
mov ebx, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x405cf6
mov edx, ebx
sub edx, eax
cmp edx, 0x400
jge 0x405d03
inc edi
cmp cl, 0xfc
jbe 0x405ce9
movsx eax, byte [edi + 1]
movsx ecx, byte [edi]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, 0x8000
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], eax
or ecx, edx
or eax, edx
inc edi
mov dword [ebp - 0x10], ecx
inc edi
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 8], eax
jne 0x405c94
cmp dword [0x42eca4], 0
push 2
pop esi
je 0x405bdb
push 4
pop esi
mov eax, dword [ebp - 0x14]
test al, al
jns 0x405c12
mov ecx, eax
and eax, 0x3f
add eax, dword [0x42ec58]
and ecx, 0x40
push ecx
push ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.004059f4
cmp byte [ebx], 0
jne 0x405c7b
push dword [ebp - 0xc]
push ebx
call fcn.00405b2f
jmp 0x405c76
cmp eax, 0x25
jne 0x405c25
push 0x400
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405c76
cmp eax, 0x24
jne 0x405c72
push 0x400
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor esi, esi
jmp 0x405c72
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x14]
push dword [0x42ec24]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405c6f
push ebx
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp + 0xc], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp + 0xc], 0
jne 0x405c76
and byte [ebx], 0
test esi, esi
jne 0x405c3a
cmp byte [ebx], 0
je 0x405c8c
cmp dword [ebp - 0xc], 0x1a
jne 0x405c8c
push str.MicrosoftInternet_ExplorerQuick_Launch
push ebx
call sub.KERNEL32.dll_lstrcatA
push ebx
call fcn.00405d1c
jmp 0x405cda
cmp byte [ebp + 0xf], 0xfd
jne 0x405cc8
cmp esi, 0x1d
jne 0x405cad
push dword [0x42ec24]
push ebx
call fcn.00405a6b
jmp 0x405cbe
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push ebx
call fcn.00405b0d
add esi, 0xffffffeb
cmp esi, 7
jae 0x405cda
jmp 0x405c8c
cmp byte [ebp + 0xf], 0xff
jne 0x405cda
or eax, 0xffffffff
sub eax, esi
push eax
push ebx
call fcn.00405b2f
push ebx
call sub.KERNEL32.dll_lstrlenA
add ebx, eax
mov eax, 0x42dbc0
jmp 0x405cf6
jne 0x405cf3
mov cl, byte [edi]
mov byte [ebx], cl
inc ebx
inc edi
jmp 0x405cf6
mov byte [ebx], cl
inc ebx
mov cl, byte [edi]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x405b7b
and byte [ebx], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405d18
push eax
push dword [ebp + 8]
call fcn.00405b0d
leave
ret 8
Function at 0x405e5f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c62c], 0
push esi
jne 0x405e96
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 0x405e70
mov dword [ecx*4 + 0x42c628], eax
inc ecx
cmp ecx, 0x100
jl 0x405e6b
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405ec7
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 + 0x42c628]
xor eax, esi
inc ecx
dec edx
jne 0x405ea9
pop edi
not eax
pop esi
ret 0xc

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x408f2d
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.004186ba
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.004186ba
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push 0x10
call fcn.004186ba
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push 0
mov ebx, 0x41a640
call fcn.004186b4
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 3
je 0x408fe6
mov eax, 0
jmp 0x40912a
cmp dword [ebp + 0xc], 0
jne 0x409012
mov dword [ebp - 0x18], esp
mov eax, 0x19
call fcn.004186cc
cmp dword [ebp - 0x18], esp
je 0x40900f
push 6
call fcn.004186c6
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
jne 0x40903a
mov eax, str.SeDebugPrivilege
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x409034
push ebx
call fcn.004186ae
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov dword [ebp - 0x18], esp
lea eax, [ebp - 8]
push eax
push 0x28
push dword [ebp - 4]
mov eax, 0x1a
call fcn.004186cc
cmp dword [ebp - 0x18], esp
je 0x409065
push 6
call fcn.004186c6
add esp, 4
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push 0x4a793f
mov eax, 0x1b
call fcn.004186cc
cmp dword [ebp - 0x18], esp
je 0x409091
push 6
call fcn.004186c6
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 2
mov dword [ebp - 0x18], esp
mov eax, 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
push 0x1c
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
mov eax, 0x1c
call fcn.004186cc
cmp dword [ebp - 0x18], esp
je 0x409125
push 6
call fcn.004186c6
add esp, 4
jmp 0x40912a
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.004186ae
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.004186ae
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.004186ae
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10