joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e16
Capabilities:
Query service configuration

Disassembly:
mov eax, 0x40d94c
call fcn.00405710
sub esp, 0x208
cmp byte [ebp + 0xc], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
je 0x402e47
mov eax, dword [0x413590]
xor ebx, ebx
cmp eax, ebx
jne 0x402e71
mov dword [0x410398], 0xae
mov eax, dword [ebp + 8]
test eax, eax
je 0x402e56
mov ecx, dword [0x410398]
mov dword [eax], ecx
mov eax, dword [0x410398]
mov ecx, dword [ebp - 0xc]
neg eax
sbb eax, eax
pop edi
pop esi
and eax, 0x19
mov dword fs:[0], ecx
pop ebx
leave
ret
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
lea ecx, [ebp + 0xc]
push ecx
push ebx
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp + 0xc], 1
call esi
push dword [ebp + 0xc]
call fcn.004050a2
mov edi, eax
pop ecx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push edi
push dword [0x413590]
call esi
test eax, eax
je 0x402fb9
mov esi, 0x104
mov dword [0x410398], ebx
push esi
mov ebx, esi
call fcn.004050a2
pop ecx
mov dword [ebp - 0x14], eax
push ebx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebx - 2]
cmp eax, ecx
jbe 0x402ee8
push dword [ebp - 0x14]
add ebx, esi
call fcn.00405097
push ebx
call fcn.004050a2
pop ecx
jmp 0x402ec0
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x214]
xor esi, esi
push eax
push esi
push esi
push ebx
call fcn.00405a45
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push esi
push ebx
call fcn.004059b4
push dword [edi + 0xc]
call fcn.00405880
push ebx
call fcn.00405880
mov eax, dword [edi + 0xc]
add esp, 0x30
cmp eax, esi
je 0x402f3e
push ebx
push eax
call fcn.00405800
pop ecx
test eax, eax
pop ecx
jne 0x402f48
mov dword [0x410398], 0xaf
cmp dword [edi], 0x10
je 0x402f59
mov dword [0x410398], 0xb0
jmp 0x402fb2
mov eax, dword [edi + 0x20]
cmp eax, esi
je 0x402fa8
push 0x4101b8
push eax
call fcn.00405730
pop ecx
test eax, eax
pop ecx
jne 0x402fa8
mov eax, dword [edi + 0x1c]
cmp eax, esi
je 0x402fb2
push str..System
push eax
call fcn.00405730
pop ecx
test eax, eax
pop ecx
je 0x402fb2
push str.LocalSystem
push dword [edi + 0x1c]
call fcn.00405730
pop ecx
test eax, eax
pop ecx
je 0x402fb2
mov dword [0x410398], 0xb2
jmp 0x402fb2
mov dword [0x410398], 0xb1
push ebx
call fcn.00405097
pop ecx
push edi
call fcn.00405097
pop ecx
jmp 0x402e47
Function at 0x4030dd
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
xor ebx, ebx
push esi
cmp ebp, ebx
push edi
mov esi, ecx
je 0x403187
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.AllocateAndInitializeSid
push ebp
call edi
push str.FreeSid
push ebp
mov dword [esi + 4], eax
call edi
push str.InitializeAcl
push ebp
mov dword [esi + 8], eax
call edi
push str.AddAccessAllowedAceEx
push ebp
mov dword [esi + 0xc], eax
call edi
push str.AddAccessAllowedAce
push ebp
mov dword [esi + 0x10], eax
call edi
push str.GetAce
push ebp
mov dword [esi + 0x14], eax
call edi
push str.SetNamedSecurityInfo
push ebp
mov dword [esi + 0x1c], eax
call edi
cmp eax, ebx
mov dword [esi + 0x18], eax
jne 0x403153
push str.SetNamedSecurityInfoA
push ebp
call edi
mov dword [esi + 0x18], eax
push str.GetNamedSecurityInfo
push ebp
call edi
cmp eax, ebx
mov dword [esi + 0x20], eax
jne 0x40316d
push str.GetNamedSecurityInfoA
push ebp
call edi
mov dword [esi + 0x20], eax
push str.SetEntriesInAcl
push ebp
call edi
cmp eax, ebx
mov dword [esi + 0x24], eax
jne 0x403187
push str.SetEntriesInAclA
push ebp
call edi
mov dword [esi + 0x24], eax
cmp dword [esi + 0x24], ebx
je 0x4031b5
cmp dword [esi + 0x20], ebx
je 0x4031b5
cmp dword [esi + 4], ebx
je 0x4031b5
cmp dword [esi + 8], ebx
je 0x4031b5
cmp dword [esi + 0xc], ebx
je 0x4031b5
cmp dword [esi + 0x14], ebx
je 0x4031b5
cmp dword [esi + 0x18], ebx
je 0x4031b5
cmp dword [esi + 0x1c], ebx
je 0x4031b5
mov byte [esi + 0x28], 1
jmp 0x4031b8
mov byte [esi + 0x28], bl
mov al, byte [esi + 0x28]
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40332f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
movsx eax, byte [ebp + 8]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
push 0x410778
push eax
xor ebx, ebx
call fcn.004052af
add esp, 0xc
lea eax, [ebp - 0x110]
push 0x104
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x4033b4
lea eax, [ebp - 0x110]
push eax
call fcn.00405bc0
mov esi, str.DEVICEHARDDISK
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.00405800
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4033b4
push esi
call fcn.004050b0
push dword [ebp + 0xc]
add edi, eax
push 0x410760
push edi
call fcn.00405b8c
add esp, 0x10
cmp eax, 1
jne 0x4033b4
push eax
pop ebx
pop edi
mov ax, bx
pop esi
pop ebx
leave
ret
Function at 0x4033e5
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movsx eax, byte [ebp + 8]
push esi
push edi
push eax
lea eax, [ebp - 0xc]
push str.._c:
push eax
xor esi, esi
call fcn.004052af
add esp, 0xc
lea eax, [ebp - 0xc]
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x403451
lea eax, [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x18]
push 0xc
push eax
push esi
push esi
push 0x2d1080
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40344a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
push 1
mov dword [eax], ecx
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, si
pop edi
pop esi
leave
ret

Function at 0x403711
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, 2
jb 0x403740
cmp byte [ebp - 0x103], 0x3a
mov al, byte [ebp - 0x104]
je 0x403742
mov al, 0x43
leave
ret

Function at 0x403c30
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x403bd8
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x403c4a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
push ebx
push esi
mov esi, dword [ebp + 8]
push 0x4101b8
push 0x410300
push str.SOFTWARE_sLicenses_s
lea eax, [ebp - 0x16c]
xor ebx, ebx
push 0x100
push eax
mov dword [esi], ebx
mov dword [ebp + 8], ebx
call fcn.00405220
add esp, 0x14
lea eax, [ebp + 8]
push eax
push 0x20019
lea eax, [ebp - 0x16c]
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403d2f
push edi
push 0x60
pop edi
lea eax, [ebp - 0x6c]
push edi
push ebx
push eax
call fcn.00404f80
add esp, 0xc
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 3
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x4135a0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
pop edi
jne 0x403d2f
cmp dword [ebp - 8], 3
jne 0x403d2f
cmp dword [ebp - 0xc], 8
jb 0x403d2f
cmp esi, ebx
je 0x403d29
lea eax, [ebp - 0x6c]
push 4
push eax
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], ebx
call fcn.00404b90
lea eax, [ebp - 0x68]
push 4
push eax
push esi
call fcn.00404b90
push esi
call fcn.00403bb2
mov eax, dword [ebp - 4]
add esp, 0x1c
sub dword [esi], eax
mov ax, 1
jmp 0x403d32
xor ax, ax
pop esi
pop ebx
leave
ret
Function at 0x403d36
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push ebx
xor ebx, ebx
cmp dword [0x41358c], ebx
je 0x403e4a
push 0x4101b8
push 0x410300
push str.SOFTWARE_sLicenses_s
lea eax, [ebp - 0x168]
push 0x100
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.00405220
add esp, 0x14
lea eax, [ebp - 8]
push ebx
push eax
push 0x4134a0
push 0xf003f
push ebx
push ebx
lea eax, [ebp - 0x168]
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x403da7
xor ax, ax
jmp 0x403e4e
push esi
push 0x60
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.00404f80
push ebx
call fcn.00405e63
push eax
call fcn.00405e34
call fcn.00405e41
mov esi, eax
shl esi, 0x10
call fcn.00405e41
add esi, eax
lea eax, [ebp - 4]
push 4
push eax
lea eax, [ebp - 0x68]
mov dword [ebp - 4], esi
push eax
call fcn.00404b90
mov eax, dword [ebp - 4]
add esp, 0x20
add dword [ebp + 8], eax
push 4
pop esi
lea eax, [ebp + 8]
push eax
call fcn.00403b97
lea eax, [ebp + 8]
push 4
push eax
lea eax, [ebp + esi - 0x68]
push eax
call fcn.00404b90
mov eax, dword [ebp + 8]
add esi, 4
add eax, eax
add esp, 0x10
sub eax, dword [ebp - 4]
cmp esi, 0x60
mov dword [ebp + 8], eax
jb 0x403def
lea eax, [ebp - 0x68]
push 0x60
push eax
push 3
push ebx
push 0x4135a0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebx
sete al
pop esi
jmp 0x403e4e
mov ax, 1
pop ebx
leave
ret

Function at 0x403e51
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4139c0
call esi
push 0x4139d8
call esi
xor eax, eax
push eax
push eax
push eax
push 0x403e98
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret
Function at 0x40aa23
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x412ba8
cmp edx, dword [eax]
je 0x40aa45
add eax, 8
inc ecx
cmp eax, 0x412c38
jl 0x40aa36
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x412ba8]
jne 0x40ab73
mov eax, dword [0x413a38]
cmp eax, 1
je 0x40ab4d
test eax, eax
jne 0x40aa76
cmp dword [0x4107c4], 1
je 0x40ab4d
cmp edx, 0xfc
je 0x40ab73
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40aaad
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405130
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004050b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40aaf0
lea eax, [ebp - 0x1a4]
push eax
call fcn.004050b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40e674
push edi
call fcn.00405d00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405130
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405140
lea eax, [ebp - 0xa0]
push 0x40e654
push eax
call fcn.00405140
push dword [esi + 0x412bac]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405140
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040c4ab
add esp, 0x2c
pop edi
jmp 0x40ab73
lea eax, [ebp + 8]
lea esi, [esi + 0x412bac]
push 0
push eax
push dword [esi]
call fcn.004050b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x2e6a7c05
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x6c8d2391
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x10017ceb
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x10017d76
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 4
jl 0x10017d1c
cmp dword [ebp - 0xc], 5
jle 0x10017d0b
jmp 0x10017d1c
mov eax, dword [ebp + 8]
mov ax, word [eax*2 + str..___Ee]
mov word [ebp - 4], ax
jmp 0x10017d74
push 2
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax*4 + 0x1003cd48]
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
cmp eax, 2
jne 0x10017d63
push 2
lea eax, [ebp - 0x10]
push eax
push 2
lea eax, [ebp - 8]
push eax
push 4
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 2
pop eax
imul eax, eax, 0
mov ax, word [ebp + eax - 0x10]
mov word [ebp - 4], ax
jmp 0x10017d74
push 2
pop eax
imul eax, eax, 0
mov ax, word [eax + str..___Ee]
mov word [ebp - 4], ax
jmp 0x10017d85
mov eax, dword [ebp + 8]
mov ax, word [eax*2 + str..___Ee]
mov word [ebp - 4], ax
mov ax, word [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x1001a3eb
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0xf
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1001a42d
push 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.1002b510
test eax, eax
jl 0x1001a42d
push 2
pop eax
imul eax, eax, 0
mov ecx, dword [ebp + 0xc]
mov ax, word [ebp + eax - 8]
mov word [ecx], ax
push 2
lea eax, [ebp - 4]
push eax
push 0xe
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1001a46a
push 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.1002b510
test eax, eax
jl 0x1001a46a
push 2
pop eax
imul eax, eax, 0
mov ecx, dword [ebp + 8]
mov ax, word [ebp + eax - 8]
mov word [ecx], ax
mov esp, ebp
pop ebp
ret 8
Function at 0x1001b774
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x1003e080]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x230], ecx
and dword [ebp - 0x224], 0
cmp dword [ebp + 8], 0
je 0x1001b7a0
mov eax, dword [ebp + 8]
and dword [eax], 0
mov ecx, dword [ebp - 0x230]
call fcn.1001b990
test eax, eax
je 0x1001b97a
push 0x100010c4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
je 0x1001b97a
and dword [ebp - 0x21c], 0
mov dword [ebp - 0x224], 1
call sym.MSJTES40.dll_DllCanUnloadNow
test eax, eax
jne 0x1001b97a
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jbe 0x1001b97a
and dword [ebp - 0x218], 0
and dword [ebp - 0x228], 0
and dword [ebp - 0x248], 0
and dword [ebp - 0x214], 0
and dword [ebp - 0x210], 0
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
ja 0x1001b869
jmp 0x1001b97a
push dword [ebp - 0x214]
call fcn.1002da97
pop ecx
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x210], eax
push dword [ebp - 0x210]
push dword [ebp - 0x214]
push 0
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x1001b8c7
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x238], eax
push dword [ebp - 0x238]
call fcn.1002db0d
pop ecx
jmp 0x1001b97a
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x228]
push eax
push 0x100014c4
push dword [ebp - 0x210]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x1001b905
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x240], eax
push dword [ebp - 0x240]
call fcn.1002db0d
pop ecx
jmp 0x1001b97a
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
je 0x1001b962
and dword [ebp - 0x220], 0
and dword [ebp - 0x234], 0
mov eax, dword [ebp - 0x218]
mov eax, dword [eax + 8]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x218]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x234], eax
cmp dword [ebp + 8], 0
je 0x1001b962
mov eax, dword [ebp - 0x220]
shr eax, 0x10
and eax, 0xffff
movzx eax, ax
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x23c], eax
push dword [ebp - 0x23c]
call fcn.1002db0d
pop ecx
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d609
mov esp, ebp
pop ebp
ret 4
Function at 0x1001b990
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], 2
and dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
push 0x2001f
push 0
push 0x10001850
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001ba1d
mov dword [ebp - 0x14], 4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x10001874
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1001b9f5
cmp dword [ebp - 0x1c], 4
je 0x1001ba14
mov dword [ebp - 8], 2
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push 0x10001874
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1001ba37
cmp dword [ebp - 0x10], 1
je 0x1001ba3d
cmp dword [ebp - 0x10], 2
je 0x1001ba5b
jmp 0x1001ba79
and dword [ebp - 4], 0
jmp 0x1001ba80
push 0x100010c4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x1001ba52
and dword [ebp - 4], 0
jmp 0x1001ba59
mov dword [ebp - 4], 1
jmp 0x1001ba80
push 0x100010c4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x1001ba73
mov dword [ebp - 4], 1
jmp 0x1001ba77
and dword [ebp - 4], 0
jmp 0x1001ba80
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10035bfe
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1003e080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10031560
mov dword [ebp - 0x14], eax
cmp dword [0x10040d64], esi
jne 0x10035cf1
push 0x800
push esi
push 0x10006d38
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10035c7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10035dd1
push esi
push esi
push 0x10006d38
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10035dd1
push 0x10006d50
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10035dd1
push eax
call ebx
push 0x10006d5c
push edi
mov dword [0x10040d64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10006d6c
push edi
mov dword [0x10040d68], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10006d80
push edi
mov dword [0x10040d6c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10040d74], eax
test eax, eax
je 0x10035cee
push 0x10006d9c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10040d70], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10035d16
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10035d09
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10035d2b
push 4
pop eax
jmp 0x10035dd3
cmp dword [ebp - 0x14], esi
je 0x10035d2b
push dword [0x10040d64]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10035d10
mov eax, dword [0x10040d70]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10035d89
cmp dword [0x10040d74], edi
je 0x10035d89
push eax
call ebx
push dword [0x10040d74]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10035d89
test eax, eax
je 0x10035d89
call ecx
test eax, eax
je 0x10035d7e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10035d7e
test byte [ebp - 8], 1
jne 0x10035d89
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10035db9
mov eax, dword [0x10040d68]
cmp eax, edi
je 0x10035db6
push eax
call ebx
test eax, eax
je 0x10035db6
call eax
mov esi, eax
test esi, esi
je 0x10035db6
mov eax, dword [0x10040d6c]
cmp eax, edi
je 0x10035db6
push eax
call ebx
test eax, eax
je 0x10035db6
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10040d64]
call ebx
test eax, eax
je 0x10035dd1
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10035dd3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002d609
mov esp, ebp
pop ebp
ret
Function at 0x1004c383
Capabilities:
Encode data using xor

Disassembly:
call 0x1004c2fc
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x1004c32c
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x1004c348
xor edx, 0
jmp 0x1004c353
xor edx, edx
jmp 0x1004c36a
jmp 0x1004c376
xor eax, eax
push 0x8427d7c0
call 0x1004c383
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x1004c3bf
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x1004c398
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x1004c3d6
add eax, 0
jno 0x1004c3db
add esi, 0
ret 0x10

Function at 0x1004d144
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x1004d166
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x1004d308
cmp edi, dword [ebp + 0x10]
jb 0x1004d308
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.1004cc30
inc edi
jmp 0x1004d1ef
jmp 0x1004d1fc
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1004cc30
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1004cc30
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x1004d250
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x1004d234
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.1004d27e
add dword [eax], 0x39
jle 0x1004d25a
sub al, 0xf5
mov ch, al
call fcn.1004d293
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10