joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40525c
Capabilities:
Get file size

Disassembly:
push esi
push edi
push 1
push 0x40cc4e
call sub.kernel32.dll__lopen
mov esi, eax
cmp esi, 0xffffffff
jne 0x405292
push 0x40cc4e
call fcn.004010e3
test al, al
jne 0x405284
jmp 0x405321
push 1
push 0x40cc4e
call sub.kernel32.dll__lopen
mov esi, eax
push 0
push esi
call sub.kernel32.dll_GetFileSize
cmp eax, 0x1312d00
jle 0x4052a9
push esi
push 0
call fcn.004076a0
push 2
push 0
push esi
call sub.kernel32.dll__llseek
mov eax, dword [0x40c924]
test eax, eax
je 0x4052bf
mov eax, dword [eax - 4]
test eax, eax
jle 0x40530f
mov edi, dword [0x40c924]
test edi, edi
je 0x4052d0
mov edi, dword [edi - 4]
mov edx, 1
jmp 0x4052f2
mov eax, dword [0x40c924]
mov cl, byte [edx + eax - 1]
xor cl, 0x66
push 0x40c924
call fcn.00408988
mov byte [edx + eax - 1], cl
inc edx
cmp edi, edx
jge 0x4052d7
mov eax, dword [0x40c924]
test eax, eax
je 0x405302
mov eax, dword [eax - 4]
push eax
mov eax, dword [0x40c924]
push eax
push esi
call sub.kernel32.dll__lwrite
push esi
call sub.kernel32.dll__lclose
push 0x40c924
push 0
call fcn.0040888c
pop edi
pop esi
ret
Function at 0x406473
Capabilities:
Get common file path
Get file size

Disassembly:
mov ecx, 0x40c128
mov eax, 0x8000
call fcn.00409d2c
call fcn.00409f5c
call fcn.00407e3b
enter 0x204, 0
push 0x40c138
push 0x406694
call fcn.00408e78
and dword [0x40c8b0], 0
push 1
call sub.kernel32.dll_SetErrorMode
mov byte [0x40c8eb], 0
call fcn.00405e46
mov eax, dword [0x40c86c]
push dword [eax + 0xe8]
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x40c8a8], eax
cmp dword [0x40c8a8], 0
je 0x406510
mov eax, dword [0x40c86c]
push dword [eax + 0xec]
push dword [0x40c8a8]
call sub.kernel32.dll_GetProcAddress
mov dword [0x40c878], eax
cmp dword [0x40c878], 0
je 0x406505
push 1
push 0
call dword [0x40c878]
push dword [0x40c8a8]
call sub.kernel32.dll_FreeLibrary
push 0x100
push 0x40ca4a
call sub.kernel32.dll_GetWindowsDirectoryA
push 0x40ca4a
call fcn.00401056
push 0x100
push 0x40cb4c
call sub.kernel32.dll_GetSystemDirectoryA
push 0x40cb4c
call fcn.00401056
push 0x40cc4e
push 0x40cb4c
call fcn.00407e6a
push 0x40cc4e
mov eax, dword [0x40c86c]
push dword [eax + 0x164]
call fcn.00407ebd
push 0x40c890
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x100]
push eax
push 0
call fcn.004095fc
call fcn.004087d8
pop eax
push dword [eax]
call fcn.0040888c
push 0x7829
push 0
call fcn.00407f5f
mov dword [0x40c8e3], eax
push 0x7829
push 0
call fcn.00407f5f
mov dword [0x40c8e7], eax
lea eax, [ebp - 0x204]
push eax
push 0
call fcn.004095fc
pop eax
movzx eax, byte [eax]
inc eax
push eax
push 0
call fcn.00407f5f
mov dword [0x40c8c8], eax
push 0
mov eax, dword [0x40c890]
push eax
call sub.kernel32.dll__lopen
mov dword [0x40c8a8], eax
cmp dword [0x40c8a8], 0xffffffff
jne 0x4065ef
jmp 0x40667c
push 0x7828
push dword [0x40c8e3]
push dword [0x40c8a8]
call sub.kernel32.dll__lread
cmp eax, 0xffffffff
jne 0x40660c
jmp 0x40667c
push 0
push dword [0x40c8a8]
call sub.kernel32.dll_GetFileSize
mov dword [0x40c8a4], eax
push dword [0x40c8a8]
call sub.kernel32.dll__lclose
cmp eax, 0xffffffff
jne 0x406630
jmp 0x40667c
cmp dword [0x40c8a4], 0x7828
jle 0x406641
call fcn.004046ca
call fcn.00405b36
push dword [0x40c8c8]
call fcn.00407fa2
push dword [0x40c8e3]
call fcn.00407fa2
push dword [0x40c8e7]
call fcn.00407fa2
call fcn.004022c0
call fcn.00404c55
push dword [0x40c86c]
call fcn.0040811c
xor eax, eax
pop dword fs:[eax]
add esp, 8
push 0x40669b
push 0x40c138
call fcn.00408ecc
ret

Function at 0x407634
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push 0
mov eax, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push eax
push dword [ebp + 0x14]
call sub.kernel32.dll_WriteFile
test eax, eax
setne al
movsx eax, al
push eax
call fcn.004074a0
mov esi, eax
cmp dword [0x40c48b], 0xffffffff
je 0x407695
mov eax, dword [ebp + 0x14]
cmp eax, dword [0x40c487]
jne 0x407695
lea eax, [ebp - 0x1a]
push eax
push dword [0x40c487]
call sub.kernel32.dll_GetConsoleScreenBufferInfo
movsx eax, word [ebp - 0x16]
mov dword [0x40c493], eax
movsx eax, word [ebp - 0x14]
mov dword [0x40c497], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4077ac
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
push esi
push edi
mov edi, 3
push 0x40c85c
call fcn.00409c40
mov esi, dword [eax]
push 0x40c85c
call fcn.00409c40
mov dword [eax], 0x40
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x38c]
push eax
push 0
call fcn.004095fc
call fcn.004093cc
lea eax, [ebp - 0x150]
push eax
push 1
call fcn.00409470
call fcn.00408018
test eax, eax
jne 0x4078ed
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x190]
push eax
push 0x40
push 0
call fcn.004095d4
call fcn.00408018
test eax, eax
jne 0x407863
cmp word [ebp - 0x190], 0x5a4d
jne 0x407863
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x154]
call fcn.004094a8
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x190]
push eax
push 2
push 0
call fcn.004095d4
jmp 0x40786d
mov dword [ebp - 0x154], 0
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x154]
call fcn.004094a8
call fcn.00408018
test eax, eax
jne 0x4078d1
cmp word [ebp - 0x190], 0x4550
jne 0x4078d1
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x288]
push eax
push 0xf8
push 0
call fcn.004095d4
call fcn.00408018
test eax, eax
jne 0x4078d1
cmp dword [ebp - 0x288], 0x4550
jne 0x4078d1
cmp word [ebp - 0x22c], 3
jne 0x4078d1
mov edi, 2
lea eax, [ebp - 0x150]
push eax
call fcn.004094d8
push 0x40c854
call fcn.00409c40
mov dword [eax], 0
push 0x40c85c
call fcn.00409c40
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407a5c
Capabilities:
Contain obfuscated stackstrings
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov dword [ebp - 0x21], 0x52414853
mov dword [ebp - 0x1d], 0x454d4445
mov dword [ebp - 0x19], 0x5356344d
call sub.kernel32.dll_GetCurrentProcessId
push eax
push 0
lea eax, [ebp - 0x15]
push eax
push 0xb
call fcn.00408bd0
xor eax, eax
mov bl, 0
push 0x40c170
push 1
call fcn.0040745c
test eax, eax
jne 0x407ab0
push 0x2000
call fcn.004080ec
mov esi, eax
mov bl, 1
jmp 0x407ae6
lea ecx, [ebp - 0x21]
push ecx
push 0
push 6
call eax
test eax, eax
jne 0x407ad6
lea eax, [ebp - 0x21]
push eax
push 0x2000
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov bl, 1
push 0
push 0
push 0
push 6
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test bl, bl
je 0x407b0f
push esi
push 0x2000
push 0xff
call fcn.00408c78
push esi
push 0x18
push 0
call fcn.00408c78
mov eax, esi
add eax, 0xc
push eax
call fcn.004081c4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409800
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
or esi, 0xffffffff
or eax, 0xffffffff
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0
mov edx, dword [0x40c4fc]
add edx, 0x18
cmp dword [edx], 0xffffffff
je 0x409928
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x409920
mov ecx, dword [edx + 8]
sub dword [ebp + 0x10], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x409851
jmp 0x409928
mov cl, byte [edx]
sub cl, 0x3c
jne 0x40985f
jmp 0x40991e
sub cl, 3
jne 0x409879
inc edx
mov dword [ebp - 0xc], edx
movzx ecx, byte [edx]
inc ecx
add edx, ecx
mov byte [ebp - 0x25], 1
jmp 0x409919
inc cl
jne 0x40988d
movzx ecx, word [edx + 1]
add esi, ecx
add edx, 3
jmp 0x409919
inc cl
jne 0x4098a1
movzx ecx, word [edx + 1]
add esi, ecx
mov ecx, dword [edx + 3]
add eax, ecx
add edx, 7
jmp 0x4098b4
movzx ecx, byte [edx]
shr ecx, 6
add esi, ecx
mov cl, byte [edx]
and cl, 0x3f
movzx ecx, cl
add eax, ecx
inc edx
cmp eax, dword [ebp + 0x10]
jne 0x4098bf
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], esi
cmp eax, dword [ebp + 0x10]
jl 0x40990f
sub eax, dword [ebp + 0x10]
cmp eax, 0xa
jle 0x4098d2
cmp byte [ebp - 0x25], 0
jne 0x40990d
mov eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov eax, dword [ebp + 0xc]
mov byte [eax], cl
xor edx, edx
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp eax, edx
jle 0x4098fa
inc edx
mov eax, dword [ebp - 0xc]
mov cl, byte [edx + eax]
xor cl, 0xaa
mov eax, dword [ebp + 0xc]
mov byte [edx + eax], cl
jmp 0x4098de
movzx eax, word [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x18]
jmp 0x40992a
jmp 0x40991e
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 0x25], 0
jmp 0x409851
jmp 0x409928
add edx, 0x10
jmp 0x409824
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x409d2c
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10
cld
push ecx
call fcn.0040802c
call fcn.00409d08
call fcn.00407a5c
mov dword [0x40c4fc], eax
pop edx
call fcn.00409be4
call sub.kernel32.dll_GetEnvironmentStrings
mov dword [0x40c524], eax
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x40c538], eax
mov dword [0x40c560], eax
call fcn.004077ac
cmp eax, 3
setb byte [0x40c505]
lea eax, [esp]
xor edx, edx
mov ecx, dword fs:[edx]
mov dword fs:[edx], eax
mov dword [eax], ecx
mov dword [eax + 4], 0x409e80
mov dword [eax + 8], ebp
jmp dword [esp + 0x10]
Function at 0x447754
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x101baee
call fcn.0044f528
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
lea eax, [ebp + 8]
xor ebx, ebx
push eax
lea ecx, [esi + 8]
mov dword [ebp - 4], ebx
mov dword [esi], 0x1008b00
mov dword [esi + 4], 1
call fcn.00444ffb
fldz
or dword [esi + 0xc], 0xffffffff
fstp qword [esi + 0x38]
push ebx
mov eax, 0x400
push eax
push eax
push ebx
lea eax, [ebp - 0x28]
push eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov byte [esi + 0x40], bl
mov byte [esi + 0x41], bl
mov byte [esi + 0x42], bl
mov byte [esi + 0x48], bl
call dword [0x10011a4]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00444f01
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x30005109
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x30005a68
call fcn.3000518a
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x3000c1e8
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x30004ea8
cmp eax, esi
jne 0x30004e9b
xor esi, esi
inc esi
mov ebx, esi
jmp 0x30004eab
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x30004e82
xor esi, esi
inc esi
mov eax, dword [0x3000c1e4]
cmp eax, esi
jne 0x30004ebe
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x30004eed
mov eax, dword [0x3000c1e4]
test eax, eax
jne 0x30004ee7
mov dword [0x3000c1e4], esi
push 0x300012dc
push 0x300012d4
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x30004eed
jmp 0x30005015
mov dword [0x3000be78], esi
mov eax, dword [0x3000c1e4]
cmp eax, esi
jne 0x30004f11
push 0x300012d0
push 0x300012c8
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x3000c1e4], 2
test ebx, ebx
jne 0x30004f1d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x3000c1f4], 0
je 0x30004f41
push 0x3000c1f4
call fcn.30005463
pop ecx
test eax, eax
je 0x30004f41
push 0
push 2
push 0
call dword [0x3000c1f4]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x30004f9d
test al, al
je 0x30004f5b
cmp dword [ebp - 0x1c], 0
jne 0x30004f9d
mov al, byte [esi]
test al, al
je 0x30004f6b
cmp al, 0x20
ja 0x30004f6b
inc esi
mov dword [ebp - 0x20], esi
jmp 0x30004f5b
test byte [ebp - 0x3c], 1
je 0x30004f77
movzx eax, word [ebp - 0x38]
jmp 0x30004f7a
push 0xa
pop eax
push eax
push esi
push 0
push 0x30000000
call main
mov dword [0x3000be74], eax
cmp dword [0x3000be68], 0
jne 0x30004ff1
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x30004fac
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x30004fbf
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x30004f48
cmp dword [0x3000be78], 0
jne 0x30005000
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x3000be74]
jmp 0x30005021
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.300051cf
ret
call fcn.3009b000
jmp 0x30004e48
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x408992
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x4089a1
pop dword [ebp - 0x50]
mov eax, 0x3b62d2b
add eax, 0xfc8a5c76
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x394cd
push 0
mov eax, 0x28839ee6
sub eax, 0x2842be0e
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x3f360807
sub ecx, 0x3f35bfb0
mov edx, eax
mov ebx, 0x77e4eeaa
add ebx, 0x885c4d1a
add ebx, dword [ebp - 0x50]
mov esi, 0xe74707fd
sub dword [ebp - 0x30], 0x944bfab1
mov edi, dword [ebx]
add dword [ebp - 0x28], ecx
sub edi, esi
xor dword [ebp - 0x30], 0x8d42bf4b
mov dword [edx], edi
xor dword [ebp - 0x48], 0x5eac99a0
add edx, 0x8604b4
sub edx, 0x8604b0
add ebx, 0xfb9c2178
add ebx, 0x463de8c
loop 0x4089fa
add eax, 0xd6ce81b2
add eax, 0x2932927d
xor ebx, ebx
add ebx, eax
add eax, 0xe975f4fc
sub eax, 0xe975f4f7
mov ecx, 0xb30bf9d8
add ecx, 0x4d340628
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x417f85
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x417f94
pop dword [ebp - 0x28]
mov eax, 0x417f94
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x4221aae0
add dword [ebp - 0x38], 0xc309a6b
mov dword [ebp - 0x34], 0x72acfce3
sub dword [ebp - 0x34], 0x4079b09e
mov dword [ebp - 0x30], 0x9065b446
sub dword [ebp - 0x30], 0x44197018
mov dword [ebp - 0x2c], 0x3add663b
add dword [ebp - 0x2c], 0xc52299c5
lea eax, [ebp - 0x38]
push eax
mov eax, 0xc416836
add eax, 0xf400c83e
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xe4d7dd0e
sub dword [ebp - 0x38], 0x706573b8
mov dword [ebp - 0x34], 0xa5563223
sub dword [ebp - 0x34], 0x63e9d0ae
mov dword [ebp - 0x30], 0x9794f36e
sub dword [ebp - 0x30], 0x34258702
mov dword [ebp - 0x2c], 0x74b3eb46
add dword [ebp - 0x2c], 0x8b4c14ba
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3b646
push 0
call eax
mov ecx, 0x3e58
xor edi, edi
add edi, eax
mov ebx, 0x434400
add ebx, dword [ebp - 0x28]
mov esi, 0xfd5f5caf
sub esi, 0x246eadae
add dword [ebp - 0x18], esi
mov edx, dword [ebx]
xor dword [ebp - 0x24], 0x99375e55
sub edx, esi
mov dword [edi], edx
sub dword [ebp - 0x20], edi
add edi, 0x17686bbe
sub edi, 0x17686bba
add ebx, 0x112b561c
sub ebx, 0x112b5618
loop 0x4180a2
add eax, 0xec33
xor ebx, ebx
add ebx, eax
add eax, 0x9c089a84
add eax, 0x63f76581
mov ecx, 0x2b687784
add ecx, 0xd4d7887c
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x51f0c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5d000]
push edi
jmp 0x51f0da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x51f0e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51f0d0
mov eax, 1
add ebx, ebx
jne 0x51f0f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x51f104
jne 0x51f123
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51f123
dec eax
add ebx, ebx
jne 0x51f110
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x51f0e8
add ebx, ebx
jne 0x51f11f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x51f175
xor ecx, ecx
sub eax, 3
jb 0x51f13b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51f1aa
sar eax, 1
mov ebp, eax
jmp 0x51f146
add ebx, ebx
jne 0x51f146
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51f114
inc ecx
add ebx, ebx
jne 0x51f154
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51f114
add ebx, ebx
jne 0x51f161
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x51f156
jne 0x51f172
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x51f156
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x51f194
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x51f186
jmp 0x51f0d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x51f194
add edi, ecx
jmp 0x51f0d6
pop esi
mov edi, esi
mov ecx, 0x43d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x51f1b2
cmp byte [edi], 0xe
jne 0x51f1b2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x51f1b7
lea edi, [esi + 0x11c000]
mov eax, dword [edi]
or eax, eax
je 0x51f226
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x161688]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x16171c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x51f1e4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x161724]
or eax, eax
je 0x51f220
mov dword [ebx], eax
add ebx, 4
jmp 0x51f201
call dword [esi + 0x161720]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x51f257
cmp al, 0xef
ja 0x51f24a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x51f22c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x51f239
mov ebp, dword [esi + 0x161728]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x51f28b
sub esp, 0xffffff80
jmp 0x4038e1
Function at 0x409b60
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [0x4a99f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea edx, [ebp - 0x3f4]
push edx
push 0x20019
push 0
push str.TypeLib
push SysReAllocStringLen
mov dword [ebp - 0x3fc], eax
mov dword [ebp - 0x400], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push SysReAllocStringLen
mov esi, eax
call edi
test esi, esi
je 0x409bc7
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468a81
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x3f4]
lea eax, [ebp - 0x3f0]
push eax
push 0x20019
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [ebp - 0x3f4]
push edx
mov esi, eax
call edi
test esi, esi
jne 0x409bb5
mov edx, dword [ebp - 0x3f0]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x3ec]
push ecx
push esi
push edx
mov dword [ebp - 0x3f8], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
mov eax, dword [ebp - 0x3f0]
push eax
call edi
test esi, esi
jne 0x409bb5
mov ecx, dword [ebp - 0x400]
mov edx, dword [ebp - 0x3fc]
push ecx
push edx
lea eax, [ebp - 0x3ec]
push str._d._d
push eax
call fcn.0046b490
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.00468a81
mov esp, ebp
pop ebp
ret
Function at 0x409c60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2720
call fcn.0047fa60
mov eax, dword [0x4a99f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x2720], eax
mov eax, dword [0x491ee4]
mov esi, ecx
mov ecx, dword [str.SoftwareClasses_]
mov ebx, edx
mov edx, dword [0x491ee0]
push 0x26fe
mov dword [ebp - 0x270c], eax
mov dword [ebp - 0x2714], ecx
mov ecx, dword [0x491ee8]
mov dword [ebp - 0x2710], edx
mov dx, word [0x491eec]
lea eax, [ebp - 0x2702]
push 0
push eax
mov byte [ebp - 0x2715], 0
mov dword [ebp - 0x2708], ecx
mov word [ebp - 0x2704], dx
call fcn.00472290
mov eax, esi
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409ce4
push edi
lea edi, [ebp - 0x2714]
sub eax, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409cf5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebx, ebx
je 0x409d58
lea edi, [ebp - 0x2714]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x409d16
mov cx, word [0x491ef0]
mov eax, ebx
mov word [edi], cx
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409d30
lea edi, [ebp - 0x2714]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409d42
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea edx, [ebp - 0x271c]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x2714]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop edi
test eax, eax
jne 0x409dfd
mov esi, dword [ebp - 0x2720]
test esi, esi
je 0x409db7
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409d94
mov ecx, dword [ebp - 0x271c]
sub eax, edx
inc eax
push eax
push esi
push 1
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x409dd8
mov edx, dword [ebp - 0x271c]
push edx
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468a81
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x271c]
mov bl, byte [ebp - 0x2715]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468a81
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x2715]
pop esi
xor ecx, ebp
pop ebx
call fcn.00468a81
mov esp, ebp
pop ebp
ret
Function at 0x409e20
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2714
call fcn.0047fa60
mov eax, dword [0x4a99f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x491ee4]
mov eax, dword [str.SoftwareClasses_]
push esi
push edi
mov esi, ecx
mov ecx, dword [0x491ee0]
push 0x26fe
mov dword [ebp - 0x270c], edx
mov dword [ebp - 0x2714], eax
mov eax, dword [0x491ee8]
mov dword [ebp - 0x2710], ecx
mov cx, word [0x491eec]
lea edx, [ebp - 0x2702]
push 0
push edx
mov dword [ebp - 0x2708], eax
mov word [ebp - 0x2704], cx
call fcn.00472290
mov eax, esi
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409e91
lea edi, [ebp - 0x2714]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409ea1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x2714]
push eax
and ecx, 3
push SysReAllocStringLen
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, dword [ebp - 4]
test eax, eax
sete al
pop edi
xor ecx, ebp
pop esi
call fcn.00468a81
mov esp, ebp
pop ebp
ret