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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x101dadb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ecx + 0xe4]
mov eax, edx
sub eax, dword [ecx + 0xe0]
push ebx
push esi
sar eax, 2
mov dword [ebp - 0x40], ecx
push edi
lea edi, [ecx + 0xdc]
cmp eax, 0x64
jb 0x100ea08b
movaps xmm0, xmmword [0x101c23a0]
xor ecx, ecx
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0xc], 0x69342a22
movaps xmm0, xmmword [0x101c2520]
movups xmmword [ebp - 0x1c], xmm0
mov byte [ebp - 8], 0
nop dword [eax]
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x23
jb 0x100ea000
lea ebx, [ebp - 0x2b]
mov byte [ebp - 8], 0
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100ea017
sub ebx, ecx
lea esi, [ebx + 0x21]
push esi
call fcn.10121110
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0x30], edi
call fcn.101234b0
push ebx
lea eax, [ebp - 0x2b]
push eax
lea esi, [edi + 0x20]
push esi
call fcn.10122d50
add esp, 0x1c
mov dword [edi + 0x14], ebx
mov dword [edi + 4], esi
mov dword [edi + 0x18], 0x1f
mov ecx, dword ds:[0xf3690c]
push 0
push 0xffff6f00
push dword [ebp - 0x30]
mov eax, dword [0x101ba6ac]
call eax
push edi
call fcn.101204d0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101204c0
mov esp, ebp
pop ebp
ret 4
push edi
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], edx
call fcn.1004a780
mov eax, dword [edi + 8]
lea esi, [ebp + 8]
sub esp, 0xc
mov ecx, esp
push edi
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], eax
call fcn.1004a780
mov eax, dword [edi + 4]
sub esp, 0xc
mov ecx, esp
push edi
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], eax
call fcn.1004a780
mov edx, esi
lea ecx, [ebp - 0x4c]
call fcn.100df750
add esp, 0x18
mov ebx, eax
mov ecx, eax
call fcn.1004a7e0
lea ecx, [ebp - 0x3c]
mov esi, eax
call fcn.1004a7e0
cmp esi, eax
je 0x100ea14c
push str.vector_iterators_incompatible
push 0x101b8af8
push 0
push 0xba
push 0x101b9560
push 2
call fcn.10127830
add esp, 0x18
cmp eax, 1
jne 0x100ea12e
int3
push 0
push 0xba
push str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30133include_vector
push 0x101b8c38
push str._vector_iterators_incompatible_
call fcn.10136180
add esp, 0x14
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x30]
cmp eax, dword [ebp - 0x34]
push 3
sete bl
call fcn.1011cee0
lea ecx, [ebp - 0x4c]
call fcn.1004a7f0
lea ecx, [ebp - 0x30]
call fcn.1011cf90
push 3
lea ecx, [ebp - 0x30]
call fcn.1011cee0
lea ecx, [ebp - 0x3c]
call fcn.1004a7f0
lea ecx, [ebp - 0x30]
call fcn.1011cf90
test bl, bl
je 0x100ea076
mov eax, dword [ebp - 0x40]
mov byte [eax + 0x9c], 1
mov ecx, dword [edi + 8]
cmp ecx, dword [edi + 0xc]
je 0x100ea1ba
mov eax, dword [ebp + 8]
mov dword [ecx], eax
mov ecx, edi
mov eax, dword [edi + 8]
push eax
push eax
call fcn.10048270
add dword [edi + 8], 4
jmp 0x100ea1c6
lea eax, [ebp + 8]
push eax
push ecx
mov ecx, edi
call fcn.1004f8d0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101204c0
mov esp, ebp
pop ebp
ret 4
Function at 0x100f09d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101823a0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x101dadb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 0x14]
mov dword [ebp - 4], 0
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
call fcn.10048f80
add esp, 4
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0xf
mov byte [esi + 4], 0
mov dword [ebp - 4], 1
mov ecx, esi
push 0
push 0x101b8c74
mov dword [edi], 0x67452301
mov dword [edi + 4], 0xefcdab89
mov dword [edi + 8], 0x98badcfe
mov dword [edi + 0xc], 0x10325476
mov dword [edi + 0x10], 0xc3d2e1f0
call fcn.10048350
mov dword [edi + 0x30], 0
mov eax, edi
mov dword [edi + 0x34], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100f7090
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x100f6f50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
Function at 0x100fa200
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov dword [0x1027c318], eax
mov eax, dword [esp + 8]
test eax, eax
je 0x100fa43b
cmp dword [esp + 0xc], 1
jne 0x100fa43b
cmp eax, dword [esi + 0x6c]
jne 0x100fa2e1
mov eax, dword [0x1027c0b4]
mov esi, dword [eax + 0x478]
test esi, esi
jne 0x100fa245
call fcn.10107a40
mov al, 1
pop esi
ret 8
mov ecx, dword [esi + 0xf8]
test ecx, ecx
je 0x100fa27c
cmp byte [ecx + 0x10d], 0
je 0x100fa27c
push 0
call dword [0x101ba7a0]
mov ecx, dword [esi + 0x1bc]
test ecx, ecx
je 0x100fa435
push 0
call dword [0x101ba7a0]
mov al, 1
pop esi
ret 8
mov ecx, dword [esi + 0x104]
test ecx, ecx
je 0x100fa29b
cmp byte [ecx + 0x10d], 0
je 0x100fa29b
mov ecx, esi
call fcn.10063680
mov eax, dword [0x1027c0b4]
mov esi, dword [eax + 0x478]
mov ecx, dword [esi + 0x104]
test ecx, ecx
je 0x100fa2b3
push 0
call dword [0x101ba7a0]
mov ecx, dword [esi + 0xf8]
test ecx, ecx
je 0x100fa2c5
push 1
call dword [0x101ba7a0]
mov ecx, dword [esi + 0x1bc]
test ecx, ecx
je 0x100fa435
push 1
call dword [0x101ba7a0]
mov al, 1
pop esi
ret 8
cmp eax, dword [esi + 0x74]
jne 0x100fa30b
cmp dword [esi + 0x54], 0x10
lea eax, [esi + 0x40]
jb 0x100fa2f1
mov eax, dword [eax]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov al, 1
pop esi
ret 8
push edi
mov edi, dword [esi + 0x60]
cmp eax, edi
jne 0x100fa362
test edi, edi
je 0x100fa34a
push 0
mov ecx, edi
call dword [0x101ba7a0]
mov edi, dword [esi + 0x60]
test edi, edi
je 0x100fa34a
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100fa34a
mov dword [0x1027c054], edi
mov dword [0x1027bfe8], 7
call fcn.100d7f80
mov eax, dword [0x1027c0b4]
mov eax, dword [eax + 0x514]
test eax, eax
je 0x100fa434
mov ecx, dword [eax + 4]
jmp 0x100fa3b9
mov edi, dword [esi + 0x64]
cmp eax, edi
jne 0x100fa3cc
test edi, edi
je 0x100fa3a0
push 0
mov ecx, edi
call dword [0x101ba7a0]
mov edi, dword [esi + 0x64]
test edi, edi
je 0x100fa3a0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100fa3a0
mov dword [0x1027c054], edi
mov dword [0x1027bfe8], 7
call fcn.100d7f80
mov eax, dword [0x1027c0b4]
mov eax, dword [eax + 0x510]
test eax, eax
je 0x100fa434
mov ecx, dword [eax + 0x168]
test ecx, ecx
je 0x100fa434
push 1
call dword [0x101ba7a0]
pop edi
mov al, 1
pop esi
ret 8
mov edi, dword [esi + 0x68]
cmp eax, edi
jne 0x100fa434
test edi, edi
je 0x100fa40a
push 0
mov ecx, edi
call dword [0x101ba7a0]
mov edi, dword [esi + 0x68]
test edi, edi
je 0x100fa40a
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100fa40a
mov dword [0x1027c054], edi
mov dword [0x1027bfe8], 7
call fcn.100d7f80
mov eax, dword [0x1027c0b4]
mov esi, dword [eax + 0x518]
test esi, esi
je 0x100fa434
push dword [esi + 4]
call fcn.100d4000
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x100fa430
push 1
call dword [0x101ba7a0]
mov byte [esi + 0x20], 0
pop edi
mov al, 1
pop esi
ret 8
xor al, al
pop esi
ret 8
Function at 0x101020c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017a6cd
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push edi
mov eax, dword [0x101dadb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xorps xmm0, xmm0
mov dword [ebp - 4], 0
push 8
movups xmmword [ebp - 0x20], xmm0
call fcn.10048f80
lea ecx, [ebp - 0x20]
add esp, 4
mov dword [eax + 4], 0
mov dword [ebp - 0x20], eax
mov dword [eax], ecx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], 0x214
cmp eax, dword [ebp - 0x14]
je 0x10102140
mov dword [eax], 0x214
mov eax, dword [ebp - 0x18]
push eax
push eax
call fcn.10048270
mov eax, dword [ebp - 0x18]
add eax, 4
mov dword [ebp - 0x18], eax
jmp 0x10102150
lea ecx, [ebp - 0x10]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.1004f8d0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], 0
cmp eax, dword [ebp - 0x14]
je 0x10102175
mov dword [eax], 0
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x18]
push eax
push eax
call fcn.10048270
add dword [ebp - 0x18], 4
jmp 0x10102182
lea ecx, [ebp - 0x10]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.1004f8d0
sub esp, 0x10
lea eax, [ebp - 0x20]
mov ecx, esp
push eax
call fcn.1004f4e0
push 0xf3690c
call fcn.100d3ea0
mov dword [edi], eax
test eax, eax
je 0x101021ef
mov ecx, edi
mov word [edi + 0xc], 0
call fcn.10102250
mov ecx, dword [edi]
test ecx, ecx
je 0x101021b8
mov ecx, dword [ecx]
add ecx, 0x70
mov eax, dword [ecx]
push 0
push 0
push 0
push 0x10102030
push 0
mov dword [0x1027c35c], eax
push 0
mov dword [ecx], 0x10102490
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x10101fa0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [ebp - 0x20]
call fcn.100448c0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x10102225
mov eax, dword [ebp - 0x14]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
call fcn.10049010
add esp, 8
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x20]
push 8
push eax
mov dword [ebp - 0x20], 0
call fcn.10049010
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10119420
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101847ad
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x101dadb0]
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 ebx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [0x1027c0b4]
mov dword [ebp - 0x74], eax
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edx + 2]
cmp eax, ecx
jbe 0x1011946c
xor ecx, ecx
jmp 0x1011947b
push edx
lea ecx, [esi + 0x10]
call fcn.1004f5c0
mov edx, dword [esi + 8]
movzx ecx, word [eax]
lea eax, [edx + 2]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x74]
mov word [eax + 0x36], cx
mov ecx, ebx
call fcn.101195d0
movaps xmm0, xmmword [0x101c2880]
xor ecx, ecx
movups xmmword [ebp - 0x70], xmm0
mov byte [ebp - 0x30], 0
movaps xmm0, xmmword [0x101c29e0]
movups xmmword [ebp - 0x60], xmm0
movaps xmm0, xmmword [0x101c1f90]
movups xmmword [ebp - 0x50], xmm0
movaps xmm0, xmmword [str.uYXQDWBCZWB_YXE]
movups xmmword [ebp - 0x40], xmm0
mov al, byte [ebp - 0x70]
xor byte [ebp + ecx - 0x6f], al
inc ecx
cmp ecx, 0x3f
jb 0x101194c1
sub esp, 0x1c
mov byte [ebp - 0x30], 0
lea eax, [ebp - 0x6f]
mov ecx, esp
push eax
call fcn.10047780
lea eax, [ebp - 0x2c]
push eax
call fcn.1004a910
add esp, 0x20
mov dword [ebp - 4], 0
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0x74], ecx
jb 0x10119504
mov ecx, dword [ecx]
mov dword [ebp - 0x74], ecx
mov ebx, ecx
lea ecx, [ebx + 1]
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x10119510
sub ebx, ecx
lea esi, [ebx + 0x21]
push esi
call fcn.10121110
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0x78], edi
call fcn.101234b0
push ebx
push dword [ebp - 0x74]
lea esi, [edi + 0x20]
push esi
call fcn.10122d50
add esp, 0x1c
mov dword [edi + 0x14], ebx
mov dword [edi + 4], esi
mov dword [edi + 0x18], 0x1f
mov ecx, dword ds:[0xf3690c]
push 0
push 0x42d1eb
push dword [ebp - 0x78]
mov eax, dword [0x101ba6ac]
call eax
push edi
call fcn.101204d0
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.100448c0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1011958b
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10049010
add esp, 8
mov eax, dword [ebp - 0x2c]
push 8
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
call fcn.10049010
add esp, 8
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.101204c0
mov esp, ebp
pop ebp
ret 4
Function at 0x1011bd00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101849fd
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x101dadb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [esi]
mov dword [0x1027c3c8], eax
test edi, edi
je 0x1011bec9
cmp edi, dword [esi + 0x1c]
jne 0x1011bd5c
mov ecx, dword [0x1027c0b4]
mov eax, dword [ecx + 0x520]
test eax, eax
je 0x1011bdbb
mov ecx, eax
call fcn.100eb610
jmp 0x1011bdb5
cmp edi, dword [esi + 0x24]
jne 0x1011bdb5
mov ecx, dword [0x1027c0b4]
mov edx, dword [ecx + 0x4fc]
test edx, edx
je 0x1011bdbb
movzx eax, byte [edx + 0x8e]
mov ecx, edx
push eax
call fcn.100fd310
mov edx, dword [0x1027c0b4]
mov eax, dword [edx + 0x4fc]
mov ecx, dword [eax + 0x94]
test ecx, ecx
je 0x1011bda4
push 1
call dword [0x101ba7a0]
mov edx, dword [0x1027c0b4]
mov eax, dword [edx + 0x4fc]
push dword [eax + 0x94]
call fcn.100d4000
mov ecx, dword [0x1027c0b4]
cmp edi, dword [esi + 0x28]
jne 0x1011beb5
cmp dword [ecx + 0x47c], 0
jne 0x1011be8d
movaps xmm0, xmmword [0x101c2d40]
xor ecx, ecx
movups xmmword [ebp - 0x50], xmm0
push 0
movaps xmm0, xmmword [0x101c3240]
movups xmmword [ebp - 0x40], xmm0
push 1
movaps xmm0, xmmword [0x101c3190]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0x6b7a7c6f
mov word [ebp - 0x1c], 0x206a
mov byte [ebp - 0x1a], 0
nop dword [eax]
mov al, byte [ebp - 0x50]
xor byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0x35
jb 0x1011be10
sub esp, 0x1c
mov byte [ebp - 0x1a], 0
lea eax, [ebp - 0x4f]
mov dword [ebp - 0x54], esp
mov ecx, esp
push eax
call fcn.10047780
mov dword [ebp - 4], 0
mov cl, 0x1b
mov dword [ebp - 0x18], 0x69695e1b
xor eax, eax
mov word [ebp - 0x14], 0x6974
mov byte [ebp - 0x12], 0
nop
xor byte [ebp + eax - 0x17], cl
inc eax
cmp eax, 5
jae 0x1011be5f
mov cl, byte [ebp - 0x18]
jmp 0x1011be50
sub esp, 0x1c
mov byte [ebp - 0x12], 0
lea eax, [ebp - 0x17]
mov ecx, esp
push eax
call fcn.10047780
mov ecx, dword [0x1027c0b4]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ecx + 0x474]
call fcn.10106720
mov al, 1
jmp 0x1011becb
mov esi, dword [ecx + 0x50c]
test esi, esi
je 0x1011bec5
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1011beab
push 1
mov ecx, eax
call dword [0x101ba7a0]
mov eax, dword [esi + 0x1c]
push eax
call fcn.100d4000
mov al, 1
jmp 0x1011becb
cmp edi, dword [esi + 0x20]
jne 0x1011bec5
mov ecx, dword [ecx + 0x51c]
call fcn.1007b660
mov al, 1
jmp 0x1011becb
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101204c0
mov esp, ebp
pop ebp
ret 8
Function at 0x10126af0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.10126710
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10126b22
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x101863fc]
call dword [ebp - 8]
jmp 0x10126b2c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret

Function at 0x1015ef40
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1015ef67
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1013e210
add esp, 4
or eax, 0xffffffff
jmp 0x1015ef69
xor eax, eax
pop ebp
ret

Function at 0x1015fb8e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10175880

Function at 0x1016a7d8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1016a1ce
Function at 0x402b90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x496ee8], 0
je 0x402bbc
lea eax, [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x496ee8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x402c01
cmp dword [0x496ee8], 0
je 0x402be6
lea ecx, [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x496eec]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x402c01
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0044dbc0
add esp, 0xc
mov eax, 1
jmp 0x402c21
cmp dword [ebp + 0x10], 0
jne 0x402c1c
push 0x4743f8
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0044dbc0
add esp, 0xc
mov eax, 1
pop ebp
ret

Function at 0x4035d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
cmp dword [ebp + 0xc], 0
jne 0x4035e3
xor eax, eax
jmp 0x403650
mov dword [ebp - 8], 4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x403612
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40364b
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x40363c
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40364b
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [eax], ecx
mov eax, 1
jmp 0x403650
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4037c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x4037ef
lea ecx, [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40381d
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x403819
lea ecx, [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40381d
xor eax, eax
jmp 0x40383d
cmp dword [ebp + 0x10], 0
jne 0x403838
push 0x474520
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0044dbc0
add esp, 0xc
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403b20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4958b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x474524]
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.0044e250
add esp, 0xc
movzx edx, byte [0x497370]
test edx, edx
je 0x403b68
mov eax, 0x497168
jmp 0x403be7
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x104
push 0x474528
call fcn.00402630
add esp, 8
push eax
push 0x474544
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.00401cf0
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
push 0x104
push 0x497168
push 0x474560
push str.appname
push 0x474574
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov byte [0x497370], 1
mov eax, 0x497168
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c9f3
mov esp, ebp
pop ebp
ret

Function at 0x403c00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4958b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x474580]
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.0044e250
add esp, 0xc
movzx edx, byte [0x497580]
test edx, edx
je 0x403c48
mov eax, 0x497378
jmp 0x403cc7
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x104
push 0x474584
call fcn.00402630
add esp, 8
push eax
push str.._startup.ini
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.00401cf0
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
push 0x104
push 0x497378
push 0x4745bc
push str.regname
push str.PDVD
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov byte [0x497580], 1
mov eax, 0x497378
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c9f3
mov esp, ebp
pop ebp
ret

Function at 0x404d80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ee4a
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4958b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push 1
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00405240
mov dword [ebp - 4], 0
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.00405240
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.00405220
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00405220
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x404f10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46eeb4
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4958b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
add eax, 0x18
push eax
lea ecx, [ebp - 0x14]
call fcn.004051f0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
call fcn.004053b0
test eax, eax
je 0x404f75
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00405270
mov eax, dword [ebp - 0x18]
jmp 0x404fd1
lea ecx, [ebp - 0x24]
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
push 0x404aa0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x14], 0
jne 0x404fb8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00405270
mov eax, dword [ebp - 0x1c]
jmp 0x404fd1
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00405270
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x425f00
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x425f3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x47ee60
call fcn.004172e0
add esp, 8
xor eax, eax
jmp 0x425fb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x217
je 0x425f67
cmp dword [ebp - 8], 0x3e5
je 0x425f5b
jmp 0x425f74
mov eax, dword [ebp - 4]
mov dword [eax + 4], 1
jmp 0x425f8c
mov ecx, dword [ebp - 4]
add ecx, 0x40
call fcn.00405390
jmp 0x425f8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CastingStation__PipeService::ConnectToNewClient_failed_with__d._n
call fcn.004172e0
add esp, 8
xor eax, eax
jmp 0x425fb2
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 0
je 0x425f9e
mov dword [ebp - 0xc], 0
jmp 0x425fa5
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, 1
mov esp, ebp
pop ebp
ret