joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d28e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x434ef6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x28]
push ebx
push ebp
push esi
push edi
mov edi, ecx
push eax
push 0xa4
mov dword [esp + 0x18], edi
call 0x4e7c9e
lea esi, [edi + 0x60]
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x14], esi
call 0x4e7c98
mov eax, 1
lea ecx, [esi + 0x34]
mov byte [esp + 0x30], al
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
call 0x4e7c98
lea ecx, [esi + 0x38]
mov byte [esp + 0x30], 2
call 0x4e7c98
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 3
push ecx
call 0x4e829e
lea edx, [esp + 0x18]
lea ecx, [esp + 0x38]
push edx
call 0x4e8298
mov ebp, dword [0x438108]
lea eax, [esi + 0x20]
lea ecx, [esp + 0x18]
push eax
push ecx
mov dword [esi + 0x30], ebx
mov word [esp + 0x28], bx
mov word [esp + 0x2e], bx
mov word [esp + 0x2a], bx
mov word [esp + 0x2c], bx
call ebp
add esi, 0x28
lea edx, [esp + 0x18]
mov eax, 0x3b
push esi
push edx
mov word [esp + 0x28], 0x17
mov word [esp + 0x2e], bx
mov word [esp + 0x2a], ax
mov word [esp + 0x2c], ax
call ebp
mov ecx, dword [esp + 0x28]
mov dword [edi], 0x43b988
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4

Function at 0x4d7070
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x435878
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [fcn.00438d9c]
push 0
mov eax, dword [esi + 0x20]
push 0
push 0x1037
push eax
call edi
mov ecx, dword [esi + 0x20]
or al, 0x31
push eax
push 0
push 0x1036
push ecx
call edi
mov ebx, dword [fcn.00438e60]
push 0
push 0x96
push 0
push 0x447270
call ebx
push eax
push 0
mov ecx, esi
call 0x4e88a4
push 1
push 0x78
push 0
push 0x447268
call ebx
push eax
push 1
mov ecx, esi
call 0x4e88a4
push 2
push 0xfa
push 0
push 0x447260
call ebx
push eax
push 2
mov ecx, esi
call 0x4e88a4
mov edx, dword [esi + 0x20]
push 0x5a0500
push 0
push 0x1024
push edx
call edi
mov eax, dword [esi + 0x20]
push 0xf8ffff
push 0
push 0x1026
push eax
call edi
mov ecx, dword [esi + 0x20]
push 0xf8ffff
push 0
push 0x1001
push ecx
call edi
mov edx, dword [esi + 0x20]
push 0
push 0
push 0x1000
push edx
call edi
push 0xff00ff
push eax
push 0x18
push 2
push 0x10
push 0x10
lea ecx, [esp + 0x24]
call fcn.004c8760
mov dword [esp + 0x30], 0
lea ebx, [esi + 0xa4]
push ebx
push 0x82
lea ecx, [esp + 0x14]
call fcn.004c8860
test ebx, ebx
je 0x4d7183
mov ebx, dword [ebx + 4]
mov eax, dword [esi + 0x20]
push ebx
push 1
push 0x1003
push eax
call edi
push eax
call 0x4e84ea
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.004c87a0
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x4d7b90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x435a2f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf8
push esi
push 0
lea ecx, [esp + 0xc]
call fcn.004d7f00
mov esi, dword [esp + 0x10c]
lea ecx, [esp + 0x6c]
push esi
mov dword [esp + 0x108], 0
call 0x4e7d76
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [esp + 0x70], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x74], ecx
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x7c], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x78], edx
mov edx, dword [esi + 0x18]
mov dword [esp + 0x80], ecx
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x88], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x84], edx
mov edx, dword [esi + 0x24]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], edx
mov edx, dword [esi + 0x30]
lea eax, [esi + 0x34]
mov dword [esp + 0x98], ecx
push eax
lea ecx, [esp + 0xa4]
mov dword [esp + 0xa0], edx
call 0x4e7d76
add esi, 0x38
lea ecx, [esp + 0xa4]
push esi
call 0x4e7d76
lea ecx, [esp + 8]
call 0x4e7b9c
cmp eax, 7
jne 0x4d7c84
push 0
push 0
push 0x4472ac
call dword [fcn.00438e60]
push eax
call main
jmp 0x4d7c8d
cmp eax, 1
je 0x4d7d44
lea ecx, [esp + 0xbc]
mov dword [esp + 0x104], 3
call 0x4e81d8
lea ecx, [esp + 0xa8]
mov dword [esp + 4], ecx
lea ecx, [esp + 0xac]
mov byte [esp + 0x104], 4
call 0x4e7caa
lea ecx, [esp + 0xa8]
mov byte [esp + 0x104], 2
call 0x4e7caa
lea edx, [esp + 0x6c]
mov dword [esp + 4], edx
lea ecx, [esp + 0xa4]
mov byte [esp + 0x104], 6
call 0x4e7caa
lea ecx, [esp + 0xa0]
mov byte [esp + 0x104], 5
call 0x4e7caa
lea ecx, [esp + 0x6c]
mov byte [esp + 0x104], 1
call 0x4e7caa
lea ecx, [esp + 8]
mov dword [esp + 0x104], 0xffffffff
call 0x4e7c92
xor eax, eax
pop esi
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
add esp, 0x104
ret
mov esi, dword [esp + 0x110]
lea eax, [esp + 0xa8]
push eax
mov ecx, esi
call 0x4e7d76
lea ecx, [esp + 0xac]
push ecx
lea ecx, [esi + 4]
call 0x4e7d76
mov eax, dword [esp + 0xb4]
mov edx, dword [esp + 0xb0]
mov ecx, dword [esp + 0xb8]
mov dword [esi + 0xc], eax
mov dword [esi + 8], edx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0xbc]
mov dword [esp + 0x104], 9
call 0x4e81d8
lea edx, [esp + 0xa8]
mov dword [esp + 4], edx
lea ecx, [esp + 0xac]
mov byte [esp + 0x104], 0xa
call 0x4e7caa
lea ecx, [esp + 0xa8]
mov byte [esp + 0x104], 8
call 0x4e7caa
lea eax, [esp + 0x6c]
mov dword [esp + 4], eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0x104], 0xc
call 0x4e7caa
lea ecx, [esp + 0xa0]
mov byte [esp + 0x104], 0xb
call 0x4e7caa
lea ecx, [esp + 0x6c]
mov byte [esp + 0x104], 7
call 0x4e7caa
lea ecx, [esp + 8]
mov dword [esp + 0x104], 0xffffffff
call 0x4e7c92
mov ecx, dword [esp + 0xfc]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x104
ret
Function at 0x4d7f00
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x435ad7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x28]
push ebx
push ebp
push esi
push edi
mov edi, ecx
push eax
push 0xa5
mov dword [esp + 0x18], edi
call 0x4e7c9e
lea esi, [edi + 0x64]
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x30], ebx
mov dword [edi + 0x60], 0x43c698
mov dword [esp + 0x14], esi
call 0x4e7c98
mov eax, 1
lea ecx, [esi + 0x34]
mov byte [esp + 0x30], al
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
call 0x4e7c98
lea ecx, [esi + 0x38]
mov byte [esp + 0x30], 2
call 0x4e7c98
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 3
push ecx
call 0x4e829e
lea edx, [esp + 0x18]
lea ecx, [esp + 0x38]
push edx
call 0x4e8298
mov ebp, dword [0x438108]
lea eax, [esi + 0x20]
lea ecx, [esp + 0x18]
push eax
push ecx
mov dword [esi + 0x30], ebx
mov word [esp + 0x28], bx
mov word [esp + 0x2e], bx
mov word [esp + 0x2a], bx
mov word [esp + 0x2c], bx
call ebp
add esi, 0x28
lea edx, [esp + 0x18]
mov eax, 0x3b
push esi
push edx
mov word [esp + 0x28], 0x17
mov word [esp + 0x2e], bx
mov word [esp + 0x2a], ax
mov word [esp + 0x2c], ax
call ebp
lea esi, [edi + 0xa0]
mov byte [esp + 0x30], 4
mov ecx, esi
mov dword [esp + 0x14], esi
call 0x4e7c98
lea ecx, [esi + 4]
mov byte [esp + 0x30], 5
call 0x4e7c98
lea esi, [edi + 0xb4]
mov byte [esp + 0x30], 6
mov ecx, esi
call 0x4e7d46
mov dword [esi], 0x439a60
mov dword [edi], 0x43c5c0
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x60], 0x43c5b8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4

Function at 0x4d9680
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x435c7f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
xor ebx, ebx
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], ebx
call 0x4e7c98
mov ebp, dword [esp + 0x30]
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 1
lea eax, [ebp*4]
push eax
call 0x4e7ecc
mov esi, eax
cmp ebp, ebx
mov dword [esp + 0x10], esi
jbe 0x4d9714
push edi
mov edi, dword [esp + 0x30]
dec ebp
test ebx, ebx
je 0x4d96ec
test bl, 0xf
jne 0x4d96ec
mov byte [esi], 0x5c
inc esi
mov byte [esi], 0xd
inc esi
mov byte [esi], 0xa
inc esi
xor ecx, ecx
mov cl, byte [ebx + edi]
push ecx
mov ecx, 0x448da0
call fcn.004d9470
mov word [esi], ax
add esi, 2
cmp ebx, ebp
jae 0x4d970a
mov byte [esi], 0x2c
inc esi
mov eax, dword [esp + 0x34]
inc ebx
cmp ebx, eax
jb 0x4d96d7
pop edi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
sub esi, edx
push esi
call 0x4e7ec6
mov esi, dword [esp + 0x28]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call 0x4e7d94
mov dword [esp + 0x14], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call 0x4e7caa
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x4d9ff9
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x435d8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x439228
mov dword [esi + 4], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
lea edi, [esi + 0x14]
mov dword [esp + 0x1c], ebx
mov ecx, edi
mov dword [esp + 0x10], edi
call 0x4e89c4
lea ecx, [edi + 0x14]
mov byte [esp + 0x1c], 1
call 0x4e7c98
mov dword [edi], 0x43c6fc
mov ecx, esi
mov byte [esp + 0x1c], 2
mov dword [esi + 0x30], ebx
mov dword [esi + 0x2c], ebx
call fcn.004d77e0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4e15c9
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x436af7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0
call 0x4e7c98
lea eax, [esi + 4]
mov ebx, 1
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], ebx
call 0x4e8a24
lea ecx, [esp + 0x1c]
push 0x448178
push ecx
lea ecx, [esp + 0x20]
call 0x4e8a1e
mov edi, dword [eax]
mov edx, dword [esi]
push 0x2c
lea eax, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x3c], 2
call fcn.004c3d80
add esp, 0xc
mov eax, dword [eax]
push edi
push eax
push 0x448160
mov byte [esp + 0x3c], 3
call dword [fcn.00438e60]
lea ecx, [esp + 0x14]
push eax
push ecx
call 0x4e7dac
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
call 0x4e7caa
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], bl
call 0x4e7caa
mov eax, dword [esi + 0x14]
mov dword [esp + 0x10], 0
test eax, eax
je 0x4e16e9
mov esi, dword [esi + 0x18]
lea edx, [esp + 0x24]
lea eax, [esp + 0x10]
push edx
push eax
push 0x445d68
push esi
call 0x4e6bdc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4e16e9
lea ecx, [esp + 0x14]
call 0x4e7c98
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov byte [esp + 0x30], 4
mov edx, dword [eax + 0xc]
mov cx, word [eax + 0xc]
shr edx, 0x10
push ecx
push edx
mov edx, dword [eax + 8]
xor ecx, ecx
mov cx, word [eax + 8]
lea eax, [esp + 0x1c]
shr edx, 0x10
push ecx
push edx
push 0x448150
push eax
call 0x4e7dac
add esp, 0x18
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x10]
call 0x4e7d70
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], bl
call 0x4e7caa
mov esi, dword [esp + 0x38]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call 0x4e7d94
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 0
call 0x4e7caa
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x4010f6
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0x8007000e
jne 0x401108
call fcn.004d1fe0
ret 4
jmp fcn.004f6980

Function at 0x401153
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [eax]
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], 0x10
mov eax, dword [ebp + 0xc]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
call fcn.0040110d
add dword [ebp + 0xc], 4
xor eax, edi
dec dword [ebp + 8]
mov edi, dword [ebp - 4]
mov ecx, eax
jne 0x401171
mov eax, dword [esi + 0x40]
xor eax, ecx
mov ecx, dword [esi + 0x44]
xor ecx, edi
mov dword [ebx], ecx
mov ecx, dword [ebp + 0x10]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
leave
ret

Function at 0x4011a4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [eax]
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [esi + 0x44]
mov dword [ebp + 8], 0x10
xor ecx, dword [edi]
mov dword [ebp - 4], ecx
call fcn.0040110d
xor eax, ebx
mov ebx, dword [ebp - 4]
sub edi, 4
dec dword [ebp + 8]
mov ecx, eax
jne 0x4011c2
mov eax, dword [esi + 4]
mov edx, dword [ebp + 0xc]
xor eax, ecx
mov ecx, dword [esi]
xor ecx, ebx
pop edi
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
pop esi
mov dword [ecx], eax
pop ebx
leave
ret

Function at 0x4011f3
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 4
mov eax, 0x505a48
lea ecx, [edi + 0x48]
pop ebx
mov edx, 0x100
mov esi, dword [eax]
mov dword [ecx], esi
add eax, ebx
add ecx, ebx
dec edx
jne 0x40120f
cmp eax, 0x506a48
jl 0x40120a
mov edx, 0x505a00
xor ecx, ecx
mov eax, edi
sub edx, edi
mov dword [ebp - 4], 0x12
xor esi, esi
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
movzx ebx, byte [ecx + ebx]
shl esi, 8
or esi, ebx
inc ecx
cmp ecx, dword [ebp + 0x10]
jl 0x40124c
xor ecx, ecx
dec dword [ebp - 8]
jne 0x401238
mov ebx, dword [edx + eax]
xor ebx, esi
mov dword [eax], ebx
push 4
pop ebx
add eax, ebx
dec dword [ebp - 4]
jne 0x401233
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
call fcn.00401153
mov eax, dword [ebp - 4]
mov dword [edi + esi*4], eax
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [edi + esi*4 + 4], eax
inc esi
inc esi
cmp esi, 0x12
jl 0x40126a
lea esi, [edi + 0x4c]
mov dword [ebp - 0xc], ebx
mov ebx, 0x80
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
call fcn.00401153
mov eax, dword [ebp - 4]
mov dword [esi - 4], eax
mov eax, dword [ebp - 8]
mov dword [esi], eax
add esp, 0xc
add esi, 8
dec ebx
jne 0x40129a
dec dword [ebp - 0xc]
jne 0x401295
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401748
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40175d
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40176f
xor eax, eax
jmp 0x4017a1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401793
cmp esi, eax
jae 0x40176b
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401785
cmp esi, eax
jae 0x40176b
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x40191f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401936
test al, 0x10
je 0x401936
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x4023a2
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x500392
call fcn.004b00d0
sub esp, 0x64
push ebx
push esi
xor ebx, ebx
push ebx
push dword [ebp + 0x10]
lea ecx, [ebp - 0x70]
push dword [ebp + 8]
call fcn.004e5f60
push 0x400
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
call fcn.004e5f30
push ebx
push dword [ebp + 0x10]
lea ecx, [ebp - 0x48]
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004e5fb0
mov dword [ebp - 0x10], ebx
jmp 0x402430
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov dl, bl
mov eax, ebx
shr ecx, 0x18
shr ebx, 0x10
xor cl, bl
shr eax, 8
and dl, 0xf0
xor cl, al
xor cl, dl
xor ebx, ebx
xor edx, edx
cmp esi, ebx
jbe 0x40241f
mov al, byte [edx + 0x551130]
xor al, cl
xor byte [ebp + edx - 0x20], al
inc edx
cmp edx, esi
jb 0x40240e
push esi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x48]
call fcn.004e61a0
add dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x20]
push 0x10
lea ecx, [ebp - 0x70]
push eax
call fcn.004e6150
mov esi, eax
cmp esi, ebx
ja 0x4023ea
lea ecx, [ebp - 0x48]
call fcn.004e5ff0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.004e63c0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.004e63c0
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x403369
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp eax, esi
je 0x40338f
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004032a1
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax - 0xc]
add esp, 0xc
inc ecx
push ecx
push eax
push 1
push esi
push str.Signal
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push esi
mov ebx, 0xf003f
push ebx
push esi
push esi
push esi
push str.InprocServer32
push dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
push ebx
push esi
push esi
push esi
push str.ProgID
push dword [ebp + 8]
call edi
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
je 0x40340e
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], esi
je 0x403418
push dword [ebp - 8]
call edi
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.0040141b
pop edi
pop esi
leave
ret
Function at 0x403427
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [esi]
call fcn.004d5220
pop ecx
push esi
mov edi, eax
push edi
push 0
push 0
push str.Signal
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.004025aa
push edi
call fcn.004d5210
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp + 0x14]
test eax, eax
mov edx, dword [ebp - 0x10]
je 0x403483
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x20]
cmp edx, eax
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
ja 0x403588
jb 0x4034a2
cmp dword [ebp - 0x14], ecx
ja 0x403588
cmp edx, esi
ja 0x403588
jb 0x4034b5
cmp dword [ebp - 0x14], edi
ja 0x403588
cmp eax, esi
push ebx
ja 0x4034cb
jb 0x4034c0
cmp ecx, edi
jae 0x4034cb
mov dword [ebp - 4], 1
mov ebx, edi
jmp 0x4034d3
and dword [ebp - 4], 0
mov ebx, ecx
mov esi, eax
mov edi, dword [ebp + 8]
mov eax, dword [edi]
test al, 0x10
mov dword [ebp + 0x14], 1
je 0x40351d
sub ebx, dword [ebp - 0x14]
push 0xc9
push 0x2a69c000
sbb esi, edx
push esi
push ebx
call fcn.004b0e50
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 4]
test eax, eax
mov dword [ebp - 8], edx
fild qword [ebp - 0xc]
fild dword [edi + 4]
jge 0x403512
fadd qword [0x506a50]
fcompp
fnstsw ax
test ah, 5
jp 0x403542
jmp 0x40353e
test ah, 1
je 0x403542
lea eax, [ebp - 0xc]
push eax
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
cmp esi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
jb 0x403542
ja 0x40353e
cmp ebx, eax
jb 0x403542
and dword [ebp + 0x14], 0
cmp dword [ebp - 4], 0
pop ebx
je 0x403583
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004032a1
mov eax, dword [ebp - 4]
mov ecx, dword [eax - 0xc]
add esp, 0xc
inc ecx
push ecx
push eax
push 1
push 0
push str.Signal
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.0040141b
mov eax, dword [ebp + 0x14]
jmp 0x40358a
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40358e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x403628
push edi
xor edi, edi
inc edi
cmp dword [ebp - 0x10], edi
je 0x403606
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push str.Signal
push dword [ebp - 4]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403606
cmp dword [ebp - 8], esi
jbe 0x403606
cmp dword [ebp - 0xc], edi
jne 0x403606
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.00403427
add esp, 0x10
mov edi, eax
jmp 0x403613
push dword [ebp + 0x14]
push dword [ebp - 4]
call fcn.00403369
pop ecx
pop ecx
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp + 0xc]
call esi
mov eax, edi
pop edi
jmp 0x403642
cmp dword [ebp + 0x14], esi
je 0x403636
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop esi
leave
ret