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

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x531d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x531d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x531d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x531d94
push eax
push esi
call fcn.0053420b
add esp, 8
pop esi
ret 0x10

Function at 0x531da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x531e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x531e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x54a320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00533dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x531dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x531e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x531ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x531eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x54a320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00533dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x531eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x531e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x532000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x532131
push esi
call fcn.00535145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00524080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x532131
push 0
push ebp
call fcn.005243a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00524260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x53208b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.005242f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x532121
push 0x54a918
push edi
call fcn.005333f0
push eax
push ebx
push esi
call fcn.00531f60
push 0x54a8f8
push edi
call fcn.005333f0
push eax
push ebx
push esi
call fcn.00531f60
push 0x54a8d8
push edi
call fcn.005333f0
push eax
push ebx
push esi
call fcn.00531f60
push 0x54a8c0
push edi
call fcn.005333f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00531f60
push 0x54a8a0
push edi
call fcn.005333f0
push eax
push ebx
push esi
call fcn.00531f60
push 0x54a888
push edi
call fcn.005333f0
push eax
push ebx
push esi
call fcn.00531f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x5331b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00533140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00533140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00533140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00533140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x533bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x533c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x54587c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x533c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x533c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x407825
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x40e06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x120]
xor esi, esi
xor edi, edi
push eax
inc edi
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x12c], 4
mov dword [ebp - 0x120], 0x11c
call dword [0x4010cc]
test eax, eax
je 0x407891
cmp dword [ebp - 0x11c], 5
jne 0x407891
cmp dword [ebp - 0x118], edi
jne 0x407891
cmp word [ebp - 0xc], 2
jae 0x407891
push edi
call dword [0x4010c8]
lea eax, [ebp - 0x124]
push eax
push edi
push esi
push 0x401300
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4078e9
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x128]
push eax
push esi
push esi
push 0x40191c
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4078dd
cmp dword [ebp - 0x128], edi
jne 0x4078dd
xor edi, edi
push dword [ebp - 0x124]
call dword [entry0]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00409cdb
leave
ret

Function at 0x4078fe
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
mov dword [ebp - 4], 1
jbe 0x40794b
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [ebp + 0x14], esi
jbe 0x407943
mov eax, dword [ebp + 0x10]
push dword [eax + esi*8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x407937
test byte [edi + 4], 0x10
je 0x40793f
inc esi
cmp esi, dword [ebp + 0x14]
jb 0x40791f
jmp 0x407943
and dword [ebp - 4], 0
add edi, 8
dec ebx
jne 0x407918
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0x10

Function at 0x407958
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
push esi
xor esi, esi
cmp dword [ebp + 0x14], esi
mov dword [ebp - 4], 1
jbe 0x407989
mov eax, dword [ebp + 0x10]
push dword [eax + esi*8]
push dword [ebp + 0x18]
call ebx
test eax, eax
jne 0x4079b4
inc esi
cmp esi, dword [ebp + 0x14]
jb 0x407974
mov eax, dword [ebp + 0xc]
test eax, eax
jbe 0x4079c7
push edi
mov edi, dword [ebp + 8]
mov dword [ebp + 0x18], eax
xor esi, esi
cmp dword [ebp + 0x14], esi
jbe 0x4079be
mov eax, dword [ebp + 0x10]
push dword [eax + esi*8]
push dword [edi]
call ebx
test eax, eax
jne 0x4079ba
inc esi
cmp esi, dword [ebp + 0x14]
jb 0x40799e
jmp 0x4079be
and dword [ebp - 4], 0
jmp 0x4079c7
and dword [ebp - 4], 0
add edi, 8
dec dword [ebp + 0x18]
jne 0x407997
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0x14
Function at 0x4080f1
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x40e06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x214]
xor esi, esi
push eax
push 0x200eb
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], esi
call dword [0x4010d0]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4082b5
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x214]
call fcn.00407b9d
cmp eax, esi
mov dword [ebp - 0x210], eax
jne 0x4082a7
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push ebx
push dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_CreateRestrictedToken]
test eax, eax
mov ebx, dword [ebp - 0x220]
je 0x40828f
push 0x40
lea eax, [ebp - 0x270]
push esi
push eax
mov dword [ebp - 0x274], 0x44
call fcn.00409e9a
add esp, 0xc
lea eax, [ebp - 0x274]
push eax
call dword [0x4010dc]
xor eax, eax
lea edi, [ebp - 0x230]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x21c]
cmp edi, esi
jne 0x4081e0
call dword [0x4010d8]
mov edi, eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [0x4010d4]
test eax, eax
je 0x408275
push 0x10000000
push 1
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], ebx
call fcn.00407f28
cmp eax, esi
mov dword [ebp - 0x210], eax
jne 0x408281
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x274]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x408275
push 0x1388
push dword [ebp - 0x230]
call dword [0x4011c0]
push dword [ebp - 0x230]
mov esi, dword [0x401138]
call esi
push dword [ebp - 0x22c]
call esi
jmp 0x408281
call dword [0x40112c]
mov dword [ebp - 0x210], eax
push dword [ebp - 0x218]
call dword [0x401138]
jmp 0x40829b
call dword [0x40112c]
mov dword [ebp - 0x210], eax
mov ecx, dword [0x40e3c8]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x10]
push dword [ebp - 0x214]
call dword [0x401138]
jmp 0x4082c1
call dword [0x40112c]
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409cdb
leave
ret 0x14
Function at 0x408e86
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
je 0x408e9c
mov dword [esi], edi
mov edx, dword [ebp + 0xc]
cmp edx, edi
je 0x408ea6
mov word [edx], di
mov ecx, dword [ebp + 0x14]
cmp ecx, edi
je 0x408eb0
mov word [ecx], di
mov eax, dword [ebp + 0x1c]
cmp eax, edi
je 0x408eba
mov word [eax], di
cmp esi, edi
jne 0x408ec8
mov ebx, 0x80070057
jmp 0x409035
cmp ecx, edi
je 0x408ebe
cmp edx, edi
je 0x408ebe
cmp eax, edi
je 0x408ebe
lea eax, [ebp - 0x10]
push eax
call dword [0x4010d8]
push eax
call dword [0x401194]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
call fcn.00406926
mov ebx, eax
cmp ebx, edi
jl 0x409026
xor edi, edi
inc edi
cmp dword [ebp - 0xc], edi
jbe 0x409026
mov dword [ebp - 4], 2
mov eax, dword [ebp - 8]
mov esi, dword [eax + edi*4]
movzx eax, word [esi]
cmp ax, 0x2d
je 0x408f5d
cmp ax, 0x2f
je 0x408f5d
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x408f37
test al, 2
je 0x409021
mov eax, dword [ebp + 0xc]
cmp word [eax], 0
jne 0x409021
push esi
push dword [ebp + 0x10]
push eax
call fcn.00408e43
mov ebx, eax
test ebx, ebx
jl 0x409026
jmp 0x409012
inc esi
inc esi
push 0x401a10
push esi
call dword [0x401210]
test eax, eax
pop ecx
pop ecx
jne 0x408f7c
mov eax, dword [ebp + 8]
or dword [eax], 1
jmp 0x409012
push 0x401a04
push esi
call dword [0x401210]
test eax, eax
pop ecx
pop ecx
jne 0x408f96
mov eax, dword [ebp + 8]
or dword [eax], 3
jmp 0x409012
push 0x4019d8
push esi
call dword [0x401210]
test eax, eax
pop ecx
pop ecx
jne 0x408fc5
mov eax, dword [ebp + 8]
or dword [eax], 8
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jae 0x409012
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 0x1c]
inc edi
push dword [eax + edi*4]
push dword [ebp + 0x20]
jmp 0x408ff2
push 0x4019cc
push esi
call dword [0x401210]
test eax, eax
pop ecx
pop ecx
jne 0x409021
mov eax, dword [ebp + 8]
or dword [eax], 5
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 4], eax
jae 0x409012
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 0x14]
inc edi
push dword [eax + edi*4]
push dword [ebp + 0x18]
inc dword [ebp - 4]
push esi
call fcn.00408e09
mov ebx, eax
test ebx, ebx
jl 0x409026
movzx eax, word [esi]
cmp ax, 0x2d
je 0x409021
cmp ax, 0x2f
je 0x409021
xor ebx, ebx
inc edi
inc dword [ebp - 4]
cmp edi, dword [ebp - 0xc]
jb 0x408f11
jmp 0x409026
mov ebx, 0x80070057
cmp dword [ebp - 8], 0
je 0x409035
push dword [ebp - 8]
call dword [0x4010e4]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x1c
Function at 0x40962f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x40e06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x808]
push eax
push 1
xor edi, edi
push edi
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4096d2
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x810]
push eax
push edi
push dword [esi + 8]
mov dword [ebp - 0x80c], 0x400
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x4096bc
cmp dword [ebp - 0x810], 1
jne 0x4096c3
push dword [esi + 0xc]
lea eax, [ebp - 0x804]
push eax
call dword [0x4010f0]
xor ecx, ecx
test eax, eax
setne cl
inc ecx
mov edi, ecx
jmp 0x4096c6
cmp eax, 0xea
jne 0x4096c6
push 2
pop edi
push dword [ebp - 0x808]
call dword [entry0]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00409cdb
leave
ret 4

Function at 0x4096e9
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push edi
lea eax, [ebp + 8]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push dword [esi + 4]
mov ebx, 0x80004005
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x409747
push dword [esi + 0xc]
call dword [fcn.004010f4]
lea eax, [eax + eax + 2]
push eax
push dword [esi + 0xc]
push 1
push edi
push dword [esi + 8]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40973e
xor ebx, ebx
push dword [ebp + 8]
call dword [entry0]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4

Function at 0x40a3a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x40a3b3
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40a3af
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x40a3e0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x40a41f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x40a415
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x40a421
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x40a405
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40a8eb
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x40e06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp word [0x40fefc], si
jne 0x40a983
lea eax, [ebp - 0x10]
push eax
push 1
push esi
push 0x4023a0
push 0x80000002
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a983
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x402458
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [entry0]
cmp edi, esi
pop edi
jne 0x40a983
push 3
push dword [esi*8 + 0x4021f0]
lea eax, [ebp - 0xc]
push eax
call fcn.00409ea6
add esp, 0xc
test eax, eax
je 0x40a975
inc esi
cmp esi, 0x1c
jb 0x40a954
jmp 0x40a983
mov ax, word [esi*8 + 0x4021f4]
mov word [0x40fefc], ax
mov ecx, dword [ebp - 4]
mov ax, word [0x40fefc]
xor ecx, ebp
pop esi
call fcn.00409cdb
leave
ret

Function at 0x40ba9b
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x40e06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 4
call fcn.00404df5
test eax, eax
je 0x40bacb
push edi
push 0x20
push 4
call fcn.0040b97b
xor ebx, ebx
push 0x38
lea eax, [ebp - 0x450]
push ebx
push eax
mov dword [ebp - 0x454], ebx
call fcn.00409e9a
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
push 0x404d30
mov esi, 0x404d24
push esi
push 1
push ebx
mov dword [ebp - 0x418], 0x208
call dword [0x4011a4]
mov ebx, eax
test ebx, ebx
jl 0x40bb68
lea eax, [ebp - 0x454]
push eax
mov dword [ebp - 0x454], 0x3c
mov dword [ebp - 0x450], 0x101
mov dword [ebp - 0x444], edi
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x438], 0xa
call dword [0x401198]
test eax, eax
jne 0x40bb68
call dword [0x40112c]
test eax, eax
jle 0x40bb66
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00409cdb
leave
ret 4
Function at 0x40bb80
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
xor ebx, ebx
cmp dword [ebp + 0xc], edi
mov dword [ebp - 4], edi
mov dword [esi], eax
jne 0x40bba4
mov ebx, 0x80070057
jmp 0x40bc19
cmp dword [ebp + 0x10], edi
je 0x40bb9d
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
je 0x40bbec
cmp eax, edi
jne 0x40bbf5
push 4
pop eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x40bbf1
xor ebx, ebx
inc ebx
jmp 0x40bc0b
cmp eax, edi
je 0x40bc0b
call dword [0x40112c]
cmp eax, edi
jle 0x40bc09
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp dword [ebp - 4], edi
je 0x40bc19
push dword [ebp - 4]
call dword [entry0]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14

Function at 0x40bcb5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x40e06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x41c], edi
jne 0x40bcfb
mov dword [ebp - 0x418], 0x80070057
jmp 0x40be02
lea edx, [ebp - 0x41c]
push edx
push 0x20019
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x40bd24
mov dword [ebp - 0x418], 1
jmp 0x40bdee
cmp eax, edi
jne 0x40bdd4
push esi
mov dword [ebp - 0x420], 1
xor esi, esi
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x420]
push eax
push edi
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
push dword [ebp - 0x41c]
mov dword [ebp - 0x428], 0x104
mov dword [ebp - 0x424], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc esi
cmp eax, edi
jne 0x40bdcc
cmp dword [ebp - 0x420], 1
jne 0x40bd39
mov ecx, dword [0x40e3c8]
mov eax, dword [ecx]
push 0xc
call dword [eax + 8]
cmp eax, edi
je 0x40bdb2
push 0x825
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, eax
call fcn.0040bf66
jmp 0x40bdb4
xor eax, eax
mov ecx, dword [ebp - 0x42c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0040bc5d
jmp 0x40bd39
cmp eax, 0x103
pop esi
je 0x40bdee
call dword [0x40112c]
cmp eax, edi
jle 0x40bde8
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x41c], edi
je 0x40be02
push dword [ebp - 0x41c]
call dword [entry0]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
xor ecx, ebp
pop edi
call fcn.00409cdb
leave
ret 0xc
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x51916f76
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xdb72dc
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
jmp 0x401219