joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405960
Capabilities:
Encode data using xor

Disassembly:
test dx, dx
jle 0x40597d
mov cl, byte [esp + 4]
push esi
not cl
movzx esi, dx
nop
mov dl, byte [eax]
xor dl, bl
add dl, cl
mov byte [eax], dl
inc eax
dec esi
jne 0x405970
pop esi
ret 4

Function at 0x405980
Capabilities:
Encode data using xor

Disassembly:
push esi
mov si, word [esp + 8]
test si, si
jle 0x40599f
movzx esi, si
push ebx
nop
mov bl, byte [eax]
add bl, dl
inc bl
xor bl, cl
mov byte [eax], bl
inc eax
dec esi
jne 0x405990
pop ebx
pop esi
ret 4

Function at 0x4059e0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 0x10]
not cl
mov esi, 4
mov edi, edi
mov bl, byte [eax]
xor bl, dl
add bl, cl
mov byte [eax], bl
inc eax
dec esi
jne 0x4059f0
lea eax, [esp + 0x10]
push eax
push 4
push 0
push 0
push 0x50
call dword [0x46a2a8]
test ax, ax
pop esi
pop ebx
jl 0x405a2e
lea ecx, [esp + 3]
push ecx
push 1
push 0
push 0
push 0x49
call dword [0x46a2a4]
test ax, ax
jge 0x405a36
or ax, 0xffff
pop ecx
ret 4
mov al, byte [esp + 3]
cmp al, 1
je 0x405a4e
cmp al, 0x55
je 0x405a4e
cmp al, 0x53
je 0x405a4e
mov ax, 0xffff
pop ecx
ret 4
movzx ax, al
pop ecx
ret 4

Function at 0x405a60
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
xor edi, edi
mov eax, 0x4ab538
not cl
mov esi, 8
mov bl, byte [eax]
xor bl, dl
add bl, cl
mov byte [eax], bl
inc eax
dec esi
jne 0x405a71
push 0x4ab538
push 8
push 0
push 0
push 0xcb
call dword [0x46a2a8]
test ax, ax
jge 0x405a9b
or edi, 0xffffffff
xor eax, eax
test di, di
pop edi
pop esi
mov dword [0x4ab538], 0
mov dword [0x4ab53c], 0
setge al
pop ebx
ret
Function at 0x405ac0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [0x429004]
push ebx
xor ebx, ebx
cmp eax, ebx
mov word [esp + 4], bx
mov byte [esp + 6], bl
mov byte [esp + 7], bl
mov byte [esp + 8], bl
mov byte [esp + 9], bl
mov byte [esp + 0xa], bl
mov byte [esp + 0xb], bl
jne 0x405af6
xor ax, ax
pop ebx
add esp, 8
ret 4
mov eax, dword [0x4ab540]
cmp eax, 3
je 0x405c53
cmp eax, 2
je 0x405c53
call fcn.00405730
test ax, ax
jge 0x405b22
mov ax, 0xfffb
pop ebx
add esp, 8
ret 4
push esi
push edi
call fcn.004057e0
mov eax, dword [0x46a284]
xor edi, edi
xor esi, esi
cmp eax, ebx
je 0x405b55
push 0x102
push 2
call fcn.0040a0c0
call fcn.0040a3e0
mov edi, eax
cmp di, bx
jle 0x405b55
xor eax, eax
call fcn.00405580
cmp dword [0x46a288], ebx
je 0x405b7c
push 0x102
push 1
call fcn.0040b790
call fcn.0040a7b0
mov esi, eax
cmp si, bx
jle 0x405b7c
xor eax, eax
call fcn.004055f0
movsx eax, si
movsx ecx, di
add eax, ecx
mov dword [0x46a280], ebx
jne 0x405ba2
call fcn.00405840
call fcn.004057c0
pop edi
pop esi
xor ax, ax
pop ebx
add esp, 8
ret 4
xor edx, edx
mov dx, word [0x46a2b0]
push 0x102
push edx
call dword [0x46a29c]
mov esi, eax
cmp si, bx
jge 0x405bd4
call fcn.00405840
call fcn.004057c0
pop edi
mov ax, si
pop esi
pop ebx
add esp, 8
ret 4
lea esi, [esp + 0xc]
call fcn.004059b0
test ax, ax
jge 0x405bf3
call fcn.00405910
pop edi
pop esi
xor ax, ax
pop ebx
add esp, 8
ret 4
mov eax, dword [esp + 0x18]
mov dl, byte [esp + 0x12]
mov cl, byte [esp + 0x11]
push eax
call fcn.004059e0
cmp ax, 1
jne 0x405be2
push 0x4ab538
push 8
push ebx
push ebx
push 0x4c
call dword [0x46a2a4]
test ax, ax
jl 0x405be2
mov cl, byte [esp + 0x12]
mov dl, byte [esp + 0x11]
mov eax, 0x4ab538
mov esi, 8
mov bl, byte [eax]
add bl, dl
inc bl
xor bl, cl
mov byte [eax], bl
inc eax
dec esi
jne 0x405c33
call fcn.00405910
pop edi
pop esi
mov ax, 0x55
pop ebx
add esp, 8
ret 4
mov ax, 0xffe3
pop ebx
add esp, 8
ret 4
Function at 0x406de0
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x100
mov eax, dword [0x4296d4]
push esi
mov dword [esp + 0x100], eax
push 0x80
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.SYSTEM_
lea ecx, [esp + 0x64]
push ecx
call esi
push str.MATRIX.INI
lea edx, [esp + 0x64]
push edx
call esi
push str.USB_PORT
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x60]
push ecx
push 0xb
lea edx, [esp + 0xc]
push edx
push 0x429244
push str.AccessUSB
lea eax, [esp + 0x24]
push eax
call esi
lea ecx, [esp + 4]
push 0x429254
push ecx
call fcn.00410f8f
add esp, 8
test eax, eax
jne 0x406e87
mov dword [0x429004], eax
or ax, 0xffff
pop esi
mov ecx, dword [esp + 0xfc]
call fcn.0040d4a7
add esp, 0x100
ret
lea edx, [esp + 0x60]
push edx
push 8
push str.AccessTime
lea eax, [esp + 0x1c]
push eax
mov dword [0x429004], 1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0x60]
push ecx
push 0xb
lea edx, [esp + 0xc]
push edx
push 0x429264
mov word [0x42921c], ax
push str.UseHighPriority
lea eax, [esp + 0x24]
push eax
call esi
lea ecx, [esp + 4]
push 0x429278
push ecx
call fcn.00410f8f
mov ecx, dword [esp + 0x108]
add esp, 8
neg eax
sbb eax, eax
neg eax
mov dword [0x429218], eax
xor ax, ax
pop esi
call fcn.0040d4a7
add esp, 0x100
ret

Function at 0x406f60
Capabilities:
Create service
Get common file path
Persist via windows service

Disassembly:
sub esp, 0xa8
mov eax, dword [0x4296d4]
push esi
push edi
mov dword [esp + 0xac], eax
push 0x80
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4292e8
lea ecx, [esp + 0xc]
push ecx
call esi
push str.IWPORT
lea edx, [esp + 0xc]
push edx
call esi
push 0x4292fc
lea eax, [esp + 0xc]
push eax
call esi
push 0
mov edx, dword [0x429294]
push 0
push str.Parallel_arbitrator
push 0
push str.Extended_base
lea ecx, [esp + 0x1c]
push ecx
push 1
push 2
push 1
push 0xf01ff
push str.IWPORT
push str.IWPORT
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x406ffc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
je 0x406ffc
xor edi, edi
jmp 0x407001
mov edi, 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0xac]
mov eax, edi
pop edi
pop esi
call fcn.0040d4a7
add esp, 0xa8
ret
Function at 0x407020
Capabilities:
Get common file path
Modify service
Start service

Disassembly:
sub esp, 0xa8
mov eax, dword [0x4296d4]
push esi
push edi
push 0xf01ff
mov dword [esp + 0xb0], eax
mov eax, dword [0x429294]
push str.IWPORT
push eax
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x4070dd
push ebx
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x420
neg eax
sbb eax, eax
push 0x80
lea ecx, [esp + 0x10]
inc eax
push ecx
or edi, eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4292e8
lea edx, [esp + 0x10]
push edx
call ebx
push str.IWPORT
lea eax, [esp + 0x10]
push eax
call ebx
push 0x4292fc
lea ecx, [esp + 0x10]
push ecx
call ebx
push str.IWPORT
push 0
push 0
push str.Parallel_arbitrator
push 0
push str.Extended_base
lea edx, [esp + 0x24]
push edx
push 1
push 2
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
mov ecx, dword [esp + 0xac]
mov eax, edi
pop edi
pop esi
call fcn.0040d4a7
add esp, 0xa8
ret

Function at 0x407100
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push edi
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [0x429294], eax
je 0x407159
push ebx
push esi
push 0xf01ff
push str.IWPORT
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x40714e
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov edi, eax
call ebx
mov ecx, dword [0x429294]
push ecx
call ebx
pop esi
pop ebx
mov eax, edi
pop edi
add esp, 0x1c
ret
Function at 0x4071d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x170
mov eax, dword [0x4296d4]
mov dword [esp + 0x16c], eax
mov eax, dword [0x46a238]
test eax, eax
push esi
je 0x407252
push 0x42930c
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.IWPORT
lea ecx, [esp + 0x74]
push ecx
call esi
push str..VXD
lea edx, [esp + 0x74]
push edx
call esi
push 0
push 0x4000000
push 0
push 0
push 0
push 0
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x429288], eax
pop esi
mov ecx, dword [esp + 0x16c]
call fcn.0040d4a7
add esp, 0x170
ret 4
push edi
push 0x42930c
lea ecx, [esp + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.IWPORT
lea edx, [esp + 0x78]
push edx
call esi
mov eax, dword [esp + 0x17c]
inc eax
push eax
lea ecx, [esp + 0xc]
push 0x429314
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x78]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 0
mov eax, 1
push 0xc0000000
lea ecx, [esp + 0x8c]
push ecx
mov dword [0x42928c], eax
mov dword [0x429290], eax
call edi
cmp eax, 0xffffffff
mov dword [0x429288], eax
jne 0x4073bf
push 0x80
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x4292e8
lea eax, [esp + 0x14]
push eax
call esi
push str.IWPORT
lea ecx, [esp + 0x14]
push ecx
call esi
push 0x4292fc
lea edx, [esp + 0x14]
push edx
call esi
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00411ab7
add esp, 8
test eax, eax
jne 0x4073bf
push 0xf003f
push eax
push eax
mov dword [0x429290], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [0x429294], eax
je 0x4073bf
call fcn.00407020
test eax, eax
je 0x407375
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
lea ecx, [esp + 0x8c]
push ecx
call edi
mov edx, dword [0x429294]
mov dword [0x429288], eax
push edx
jmp 0x4073b9
mov dword [0x42928c], 0
call fcn.00406f60
test eax, eax
je 0x4073b2
call fcn.00407020
test eax, eax
je 0x4073b2
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
lea eax, [esp + 0x8c]
push eax
call edi
mov dword [0x429288], eax
mov ecx, dword [0x429294]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x174]
pop edi
pop esi
call fcn.0040d4a7
add esp, 0x170
ret 4
Function at 0x40bb90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4296d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x24], 0xaa
mov byte [ebp - 0x23], 0xa9
mov byte [ebp - 0x22], 0xea
mov byte [ebp - 0x21], 0x76
mov byte [ebp - 0x20], 0xb2
mov byte [ebp - 0x1f], 0xa5
mov byte [ebp - 0x1e], 0x35
mov byte [ebp - 0x1d], 0x87
mov byte [ebp - 0x1c], 0x87
mov byte [ebp - 0x1b], 0xb4
mov byte [ebp - 0x1a], 0xda
mov byte [ebp - 0x19], 0xff
mov byte [ebp - 0x18], 0xb5
mov byte [ebp - 0x17], 0x40
mov byte [ebp - 0x16], 0xcc
mov byte [ebp - 0x15], 0x7b
mov byte [ebp - 0x14], 0x5d
mov byte [ebp - 0x13], 0x3a
mov byte [ebp - 0x12], 0x66
mov byte [ebp - 0x11], 0x3f
mov byte [ebp - 0x10], 0x7e
mov byte [ebp - 0xf], 0x9a
mov byte [ebp - 0xe], 0x38
mov byte [ebp - 0xd], 0x43
mov byte [ebp - 0xc], 0x91
mov byte [ebp - 0xb], 0xbc
mov byte [ebp - 0xa], 0x6c
mov byte [ebp - 9], 0xcc
mov byte [ebp - 8], 0xac
mov byte [ebp - 7], 0x7f
mov byte [ebp - 6], 0x28
mov byte [ebp - 5], 0x7c
push 0x100
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x114]
push ecx
call fcn.0040cad0
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x11c], 0
jmp 0x40bc5f
mov eax, dword [ebp - 0x11c]
add eax, 1
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp + 0xc]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
cmp dword [ebp - 0x11c], eax
jge 0x40bca3
mov ecx, dword [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0x118]
push edx
push 0xe
lea eax, [ebp - 0x114]
push eax
call fcn.0040ced0
add esp, 0x10
mov ecx, dword [ebp - 0x118]
add ecx, 0x10
mov dword [ebp - 0x118], ecx
jmp 0x40bc50
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d4a7
mov esp, ebp
pop ebp
ret
Function at 0x41687d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041653d
Function at 0x1000fc60
Capabilities:
Link many functions at runtime

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0x74], 0x10
lea eax, [edi + 0x60]
jb 0x1000fc6e
mov eax, dword [eax]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [edi + 0x78], eax
test eax, eax
je 0x1000fd92
push esi
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.IMS_createRef
push eax
call esi
push str.IMS_createRefEx
push dword [edi + 0x78]
mov dword [edi + 0x84], eax
call esi
push str.IMS_releaseRef
push dword [edi + 0x78]
mov dword [edi + 0x88], eax
call esi
push str.IMS_fetchDefaultUserInfoForClientId
push dword [edi + 0x78]
mov dword [edi + 0x8c], eax
call esi
push str.IMS_fetchAccessToken
push dword [edi + 0x78]
mov dword [edi + 0x90], eax
call esi
push str.IMS_registerClientToGroup
push dword [edi + 0x78]
mov dword [edi + 0x94], eax
call esi
push str.IMS_getProxyCredentialsFromIMSLibSession
push dword [edi + 0x78]
mov dword [edi + 0x98], eax
call esi
push str.IMS_releaseData
push dword [edi + 0x78]
mov dword [edi + 0x9c], eax
call esi
cmp dword [edi + 0x98], 0
mov dword [edi + 0xa0], eax
pop esi
je 0x1000fd8b
cmp dword [edi + 0x84], 0
je 0x1000fd8b
mov ecx, dword [edi + 0x88]
test ecx, ecx
je 0x1000fd8b
cmp dword [edi + 0x8c], 0
je 0x1000fd8b
cmp dword [edi + 0x90], 0
je 0x1000fd8b
cmp dword [edi + 0x94], 0
je 0x1000fd8b
cmp dword [edi + 0x9c], 0
je 0x1000fd8b
test eax, eax
je 0x1000fd8b
cmp dword [edi + 0x5c], 0x10
lea eax, [edi + 0x48]
jb 0x1000fd55
mov eax, dword [eax]
push eax
push edi
call ecx
add esp, 8
mov dword [edi + 0x7c], eax
test eax, eax
je 0x1000fd8b
cmp dword [edi + 0x14], 0x10
mov ecx, edi
jb 0x1000fd6d
mov ecx, dword [edi]
push 0
push ecx
push eax
mov eax, dword [edi + 0x98]
call eax
add esp, 0xc
test eax, eax
jne 0x1000fd8b
mov byte [edi + 0x80], 1
mov al, 1
pop edi
ret
mov byte [edi + 0x80], 0
xor al, al
pop edi
ret
Function at 0x100366e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003e348
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1004e2d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1004e28c]
cmp eax, 0xffffffff
jne 0x10036716
xor ebx, ebx
jmp 0x1003671f
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1003675f
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003679e
test esi, esi
jne 0x100367a2
push 0x10035270
push 0x1004fad8
call fcn.100394ef
mov eax, dword [0x1004e28c]
add esp, 8
cmp eax, 0xffffffff
je 0x1003675f
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003678c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003678c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x100367e4
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x100367cd
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x100367a2
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10036730
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x10036809
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x10036809
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.100394ef
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x100367f0
jmp 0x10036730
Function at 0x100394ef
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x100394fe
pop dword [ebp - 0x44]
mov eax, 0xb93f3ad7
add eax, 0x56c45a27
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x1cd4c34c
add dword [ebp - 0x54], 0x317d81ff
mov dword [ebp - 0x50], 0xb31c1ee1
sub dword [ebp - 0x50], 0x80e8d29c
mov dword [ebp - 0x4c], 0x7c19134d
add dword [ebp - 0x4c], 0xd03330e1
mov dword [ebp - 0x48], 0xcfed997f
add dword [ebp - 0x48], 0x30126681
lea eax, [ebp - 0x54]
push eax
mov eax, 0x1ee48e99
add eax, 0xf11f619b
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xd1fee517
sub dword [ebp - 0x54], 0x5d8c7bc1
mov dword [ebp - 0x50], 0x2a3e5c
add dword [ebp - 0x50], 0x41422319
mov dword [ebp - 0x4c], 0x399fc613
sub dword [ebp - 0x4c], 0xd63059a7
mov dword [ebp - 0x48], 0xe061865b
sub dword [ebp - 0x48], 0xe061865b
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x47d32
push 0
call eax
mov ecx, 0x4f1c
xor ebx, ebx
add ebx, eax
mov edi, 0x7e7580c6
sub edi, 0x6e7032c6
add edi, dword [ebp - 0x44]
mov edx, 0x93d76a83
sub dword [ebp - 0x34], eax
mov esi, dword [edi]
sub dword [ebp - 0x38], 0x170382c2
sub esi, edx
xor dword [ebp - 0x40], edx
mov dword [ebx], esi
mov dword [ebp - 0x20], 0x6cf0f2a4
add ebx, 0x3bf9eb5a
sub ebx, 0x3bf9eb56
add edi, 4
loop 0x10039611
add eax, 0x12f43
xor ebx, ebx
add ebx, eax
add eax, 0x367a6dc7
sub eax, 0x367a6dc2
mov ecx, 0x10000000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x4049e0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502d06
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x54a730]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
test esi, esi
jne 0x404a1c
xor eax, eax
jmp 0x404a85
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004da4f0
add esp, 0xc
call fcn.00405570
push 0x50d8e4
test al, al
lea eax, [ebp - 0x218]
push esi
push eax
je 0x404aa1
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x21c]
call fcn.00406690
push edi
push ebx
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push eax
push str.ADBlockMasterTray
lea ecx, [ebp - 0x21c]
call fcn.00407bb0
lea ecx, [ebp - 0x21c]
mov ebx, eax
call fcn.004070d0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499e20
mov esp, ebp
pop ebp
ret
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x220]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404a83
mov dword [ebp - 4], 1
call fcn.00405150
mov ecx, eax
test ecx, ecx
je 0x404bbe
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], 2
lea eax, [ebp - 0x218]
test edi, edi
je 0x404b16
push edi
push eax
lea eax, [ebp - 0x21c]
push str.__s___s
push eax
call fcn.00405060
add esp, 0x10
jmp 0x404b2b
push eax
lea eax, [ebp - 0x21c]
push str.__s_
push eax
call fcn.00405060
add esp, 0xc
mov esi, dword [ebp - 0x21c]
mov edi, dword [esi - 0xc]
add edi, edi
cmp dword [esi - 4], 1
jle 0x404b50
push dword [esi - 0xc]
lea ecx, [ebp - 0x21c]
call fcn.00404fd0
mov esi, dword [ebp - 0x21c]
push edi
push esi
push 1
push 0
push str.ADBlockMasterTray
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esi - 8]
mov ebx, eax
push esi
call fcn.004dda88
add esp, 8
test eax, eax
js 0x404bb4
cmp eax, dword [esi - 8]
jg 0x404bb4
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x404a83
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x404a83
push 0x80070057
call fcn.00404d00
push 0x80004005
call fcn.00404d00
int3
Function at 0x404e60
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502d38
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x54a730]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x404f15
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push ecx
push eax
call fcn.00405240
add esp, 8
test eax, eax
jne 0x404eb3
mov eax, 1
jmp 0x404f15
xor esi, esi
call fcn.00405570
test al, al
je 0x404ee4
lea ecx, [ebp - 0x14]
call fcn.00406690
push 1
push str.ADBlockMasterTray
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.00408580
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.004070d0
jmp 0x404f13
lea eax, [ebp - 0x1c]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404f13
push str.ADBlockMasterTray
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499e20
mov esp, ebp
pop ebp
ret
Function at 0x405780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4057d9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4057d9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4057ca
cmp esi, edx
jae 0x4057d9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4057b8
cmp esi, edx
jae 0x4057d9
cmp word [esi], 0
je 0x4057d9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40d000
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5037b8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x54a730]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi]
push 1
push str.protect_days
push str.general
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
mov dword [ebp - 4], 0
call fcn.00405150
mov ecx, eax
test ecx, ecx
je 0x40d0b5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [edi + 1]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x10]
push 0x50e3c8
push eax
call fcn.00405060
add esp, 0xc
push dword [esi]
mov esi, dword [ebp - 0x10]
push esi
push str.protect_days
push str.general
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40d0a4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404d00
int3