joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42cba7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, dword [esp + 8]
test ecx, ecx
jne 0x42cbb4
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x42cc66
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4704b0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4704b0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4704b0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4704b0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4704b0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4704b0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4704b0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4704b0]
inc ecx
sub edi, 8
dec esi
jne 0x42cbcb
pop ebx
test edi, edi
je 0x42cc7f
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x4704b0]
inc ecx
dec edi
jne 0x42cc6a
pop esi
not eax
pop edi
ret

Function at 0x42d36a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x42d39a
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42d395
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x42d3c2
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x42d3ab
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.004560d0
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret
Function at 0x43379d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
mov edx, str.selected
push esi
mov si, word [eax]
cmp si, word [edx]
jne 0x4337cd
test si, si
je 0x4337c9
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x4337cd
add eax, 4
add edx, 4
test si, si
jne 0x4337a7
xor eax, eax
jmp 0x4337d2
sbb eax, eax
sbb eax, 0xffffffff
pop esi
test eax, eax
jne 0x4337e9
add ecx, 0x658
mov eax, dword [ecx]
push 1
push 1
call dword [eax + 0x1c]
ret 8
jmp fcn.004217eb
Function at 0x435c65
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
push edi
lea eax, [ebp - 0x14]
push eax
push ebx
mov dword [ebx + 0x10], esi
call fcn.00435e17
mov ecx, dword [ebx + 0x10]
mov esi, dword [esi + 0x6f0]
mov eax, dword [ecx + 0x668]
or esi, 0x40000080
mov dword [ebp + 8], esi
test al, 1
je 0x435ca4
or esi, 1
jmp 0x435cab
test al, 2
je 0x435cae
or esi, 2
mov dword [ebp + 8], esi
cmp byte [ecx + 0x6e1], 0
je 0x435cbd
or esi, 0x20
mov dword [ebp + 8], esi
mov eax, dword [ecx]
call dword [eax + 0x24]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
push edi
push dword [ebp + 8]
push dword [eax + 0x84]
push ebx
call fcn.004162ef
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx + 0x664]
cmp eax, 0xffffffff
je 0x435cff
push eax
mov eax, dword [ecx]
call dword [eax + 0x24]
mov esi, eax
call fcn.0041aa0d
cmp eax, edi
jne 0x435d0e
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x24]
call fcn.0041a5f8
mov eax, dword [eax]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push eax
push 0x30
push dword [ebx + 4]
call esi
mov eax, dword [ebx + 0x10]
push edi
push dword [eax + 0x6dc]
push 0xc5
push dword [ebx + 4]
call esi
mov eax, dword [ebx + 0x10]
cmp byte [eax + 0x6e1], 0
je 0x435d51
movzx eax, word [eax + 0x6e4]
push edi
push eax
push 0xcc
push dword [ebx + 4]
call esi
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
lea edx, [ebp - 0x98]
push edx
call dword [eax + 0x38]
push dword [eax]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x98]
call fcn.0041bcd0
push edi
push edi
push 0xb9
push dword [ebx + 4]
call esi
push edi
push 3
push 0xd3
push dword [ebx + 4]
call esi
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xe8]
xor ecx, ecx
cmp al, 1
sete cl
push ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [ebx + 0x10]
xor ecx, ecx
cmp byte [eax + 0x6e0], 1
push edi
sete cl
push ecx
push 0xcf
push dword [ebx + 4]
call esi
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebx + 0x10]
cmp byte [eax + 0x6e2], 0
push dword [ebx + 4]
je 0x435dfa
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp eax, edi
jne 0x435df6
xor eax, eax
inc eax
push eax
push edi
jmp 0x435e02
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push eax
push eax
push 0xb1
push dword [ebx + 4]
call esi
pop edi
pop esi
mov byte [ebx + 0x18], 1
pop ebx
leave
ret 4
Function at 0x436314
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x481330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
cmp dword [edi + 0x10], ebx
je 0x436396
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0045d440
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x436396
push esi
push dword [ebp - 8]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi + 0x10]
push dword [ebp - 8]
add eax, 0x1e4
call fcn.0041beab
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
push 1
push ebx
push ebx
push ebx
push ecx
call dword [eax + 0x24]
mov ecx, str.textchanged
mov esi, eax
call fcn.0041a315
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x24]
cmp byte [eax + 0x14d], bl
je 0x436396
push dword [edi + 0x10]
call fcn.00421579
xor eax, eax
lea esp, [ebp - 0x10]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00451137
leave
ret

Function at 0x4368b3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
push dword [ebp + 0x18]
lea esi, [ebp + 8]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, ecx
movsd dword es:[edi], dword [esi]
call fcn.00420b2d
mov eax, dword [ebx + 0x6d8]
test eax, eax
je 0x436939
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.00435e17
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x43690c
mov eax, dword [ebx + 0x6d8]
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x436939
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
push 0x54
push eax
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
push eax
push dword [esp + 0x20]
mov eax, dword [ebx + 0x6d8]
push dword [esp + 0x20]
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x436942
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00420f12
mov eax, dword [esi + 0x6d8]
test eax, eax
je 0x4369c0
lea ecx, [esp + 8]
push ecx
push eax
call fcn.00435e17
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x436993
mov eax, dword [esi + 0x6d8]
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4369c0
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0xc]
push 0x54
push eax
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
push eax
push dword [esp + 0x18]
mov eax, dword [esi + 0x6d8]
push dword [esp + 0x18]
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x437176
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi], 0x14
mov ebx, ecx
jne 0x4371af
mov eax, dword [ebx]
call dword [eax + 0xe8]
test al, al
je 0x4371af
mov eax, dword [ebx + 0xc98]
test eax, eax
je 0x4371a8
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, ebx
call fcn.00437362
cmp dword [edi], 0xe
jne 0x437261
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xe8]
test al, al
je 0x437261
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x40]
mov esi, eax
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
cmp dword [ebx + 0xc98], esi
jne 0x437222
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
mov eax, dword [ebx]
mov edi, dword [0x485c44]
mov ecx, ebx
call dword [eax + 0x24]
mov eax, dword [eax + 0x84]
push esi
push edi
push 0x1911
push eax
push esi
push esi
push esi
push esi
push 0x50000000
push esi
push str.SysDateTimePick32
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebx + 0xc98], eax
lea eax, [ebx + 0xc88]
push eax
push esi
push 0x1002
push dword [ebx + 0xc98]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 0x40
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
push dword [ebx + 0xc98]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, dword [ebp + 8]
push edi
mov ecx, ebx
call fcn.0041db83
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4373d2
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0xc98], 0
push esi
push edi
je 0x437451
lea eax, [ebp - 0x14]
push eax
mov eax, ebx
call fcn.00437270
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x40]
mov esi, eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
cmp eax, ecx
jl 0x43743c
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x20]
cmp ecx, edx
jl 0x43743c
push 0
push ecx
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
push dword [ebx + 0xc98]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x437451
push 0
push dword [ebx + 0xc98]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, ebx
call fcn.00437362
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x440a55
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x10], eax
and dword [eax + 0x6e8], 0
cmp dword [ebx + 4], 0
push esi
push edi
jne 0x440aca
lea eax, [ebp - 0x14]
push eax
mov eax, ebx
call fcn.00440b3a
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x24]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
push 0x40000000
push dword [eax + 0x84]
movsd dword es:[edi], dword [esi]
push ebx
movsd dword es:[edi], dword [esi]
call fcn.004162ef
mov ecx, dword [ebx + 0x10]
push dword [ecx + 0x664]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, eax
call fcn.0041abd3
push 1
push dword [eax]
push 0x30
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
lea edx, [ebp - 0x98]
push edx
call dword [eax + 0x38]
mov eax, dword [eax]
cmp word [eax], 0
lea ecx, [ebp - 0x98]
sete byte [ebp + 0xb]
call fcn.0041bcd0
cmp byte [ebp + 0xb], 0
mov esi, 0x6d8
je 0x440b05
mov eax, dword [ebx + 0x10]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [ebx + 0x10]
add eax, esi
push eax
push 0
push 0x1002
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
mov byte [ebx + 0x18], 1
pop ebx
leave
ret 4

Function at 0x440eee
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
push dword [ebp + 0x18]
lea esi, [ebp + 8]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, ecx
movsd dword es:[edi], dword [esi]
call fcn.00420b2d
mov eax, dword [ebx + 0x6f0]
test eax, eax
je 0x440f73
lea ecx, [esp + 0x10]
push ecx
call fcn.00440b3a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x440f46
mov eax, dword [ebx + 0x6f0]
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x440f73
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
push 0x54
push eax
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
push eax
push dword [esp + 0x20]
mov eax, dword [ebx + 0x6f0]
push dword [esp + 0x20]
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x440f7c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00420f12
mov eax, dword [esi + 0x6f0]
test eax, eax
je 0x440ff9
lea ecx, [esp + 8]
push ecx
call fcn.00440b3a
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x440fcc
mov eax, dword [esi + 0x6f0]
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x440ff9
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0xc]
push 0x54
push eax
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
push eax
push dword [esp + 0x18]
mov eax, dword [esi + 0x6f0]
push dword [esp + 0x18]
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44cca5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 8]
mov esi, eax
and esi, 7
je 0x44ccca
cmp eax, esi
jge 0x44ccc2
mov eax, edi
call fcn.0044c721
mov ecx, esi
shr dword [edi + 0xc], cl
sub dword [edi + 8], esi
xor eax, eax
cmp dword [edi + 8], eax
jle 0x44ccec
mov cl, byte [edi + 0xc]
shr dword [edi + 0xc], 8
add dword [edi + 8], 0xfffffff8
mov byte [ebp + eax - 4], cl
inc eax
cmp dword [edi + 8], 0
jg 0x44ccd1
cmp eax, 4
jge 0x44cd08
mov esi, dword [edi + 4]
mov ecx, dword [edi]
cmp ecx, esi
jb 0x44ccf9
xor dl, dl
jmp 0x44ccfc
mov dl, byte [ecx]
inc ecx
mov byte [ebp + eax - 4], dl
inc eax
cmp eax, 4
jl 0x44ccf1
mov dword [edi], ecx
movzx esi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl esi, 8
add esi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, esi
xor ecx, 0xffff
cmp eax, ecx
je 0x44cd3c
mov dword [0x4853e4], str.zlib_corrupt
xor eax, eax
jmp 0x44cd88
mov eax, dword [edi]
add eax, esi
cmp eax, dword [edi + 4]
jbe 0x44cd51
mov dword [0x4853e4], str.read_past_buffer
jmp 0x44cd38
mov eax, dword [edi + 0x10]
lea ecx, [eax + esi]
cmp ecx, dword [edi + 0x18]
jbe 0x44cd67
push esi
call fcn.0044c7f9
pop ecx
test eax, eax
je 0x44cd38
mov eax, dword [edi + 0x10]
push ebx
mov ebx, dword [edi]
push esi
push ebx
push eax
call fcn.004560d0
mov eax, dword [edi + 0x10]
add eax, esi
add ebx, esi
mov dword [edi + 0x10], eax
add esp, 0xc
xor eax, eax
mov dword [edi], ebx
inc eax
pop ebx
pop edi
pop esi
leave
ret

Function at 0x451137
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x481330]
jne 0x451141
repz ret
jmp fcn.00454334
Function at 0x45e0bd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00455a0c
and dword [ebp - 4], 0
cmp dword [0x485064], 0
mov ebx, eax
jne 0x45e16e
push 0x46c218
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x45e21f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x45e21f
push eax
call fcn.0045599a
mov dword [esp], 0x46c1fc
push edi
mov dword [0x485064], eax
call esi
push eax
call fcn.0045599a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x485068], eax
call esi
push eax
call fcn.0045599a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x48506c], eax
call esi
push eax
call fcn.0045599a
pop ecx
mov dword [0x485074], eax
test eax, eax
je 0x45e16e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045599a
pop ecx
mov dword [0x485070], eax
mov eax, dword [0x485070]
cmp eax, ebx
je 0x45e1c6
cmp dword [0x485074], ebx
je 0x45e1c6
push eax
call fcn.00455a15
push dword [0x485074]
mov esi, eax
call fcn.00455a15
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x45e1c6
test edi, edi
je 0x45e1c6
call esi
test eax, eax
je 0x45e1bd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45e1bd
test byte [ebp - 0xc], 1
jne 0x45e1c6
or dword [ebp + 0x10], 0x200000
jmp 0x45e1ff
mov eax, dword [0x485068]
cmp eax, ebx
je 0x45e1ff
push eax
call fcn.00455a15
pop ecx
test eax, eax
je 0x45e1ff
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x45e1ff
mov eax, dword [0x48506c]
cmp eax, ebx
je 0x45e1ff
push eax
call fcn.00455a15
pop ecx
test eax, eax
je 0x45e1ff
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x485064]
call fcn.00455a15
pop ecx
test eax, eax
je 0x45e21f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45e221
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403b60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x18
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov eax, dword [ebx + 0x20]
sub esp, 0x18
sub eax, 3
cmp eax, 1
jbe 0x403bd0
cmp word [ebx + 0xc], 1
mov dword [ebx + 0x28], 0
sbb eax, eax
mov dword [ebx + 0x2c], 0
add eax, 2
mov dword [ebx + 0x34], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
leave
ret
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x403ba8

Function at 0x403d50
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 8
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea ebx, [eax + 2]
movzx eax, word [eax + 2]
cmp ax, 0x20
jne 0x403d7d
lea esi, cs:[esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 0x20
je 0x403d70
cmp ax, 9
je 0x403d70
test ax, ax
je 0x403da0
cmp ax, 0x3b
je 0x403da0
mov dword [esi + 0x34], 2
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov dword [esi + 0x34], 2
mov eax, ebx
sub esp, 8
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x403ff0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
test eax, eax
je 0x40417e
mov edi, dword [0x40c068]
test edi, edi
je 0x404140
mov ebx, dword [0x40c060]
test ebx, ebx
je 0x40417e
mov dword [esp + 4], 0x40a2d2
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcspbrk]
test eax, eax
jne 0x404189
mov ecx, dword [0x40c060]
cmp word [ecx], 0
je 0x404170
mov eax, ecx
lea esi, cs:[esi]
add eax, 2
cmp word [eax], 0
jne 0x404050
sub eax, ecx
mov ebx, eax
lea eax, [eax + 2]
mov edi, ebx
sar edi, 1
mov esi, dword [0x40c064]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_memmove]
mov eax, dword [0x40c068]
mov ecx, eax
sub ecx, edi
cmp ecx, 2
jbe 0x404110
mov edx, dword [ebp + 8]
sub eax, edi
mov dword [esp + 4], 2
sub eax, 1
mov dword [esp + 0xc], edx
lea edx, [esi + ebx]
mov dword [esp + 8], eax
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_fread]
test eax, eax
jne 0x4040d0
mov dword [0x40c060], 0
mov ebx, dword [0x40c064]
add esp, 0x14
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [0x40c064]
add eax, edi
xor ecx, ecx
mov word [ebx + eax*2], cx
mov dword [0x40c060], ebx
test ebx, ebx
jne 0x404020
mov dword [esp], ebx
xor ebx, ebx
call dword [sym.imp.ucrtbase.dll_free]
mov eax, ebx
mov dword [0x40c068], 0
add esp, 0x14
pop ebx
pop esi
pop edi
pop ebp
ret
lea ecx, [eax + eax]
shl eax, 2
mov dword [esp], esi
mov dword [0x40c068], ecx
mov dword [ebp - 0x10], ecx
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov dword [0x40c064], eax
mov esi, eax
mov eax, dword [ebp - 0x10]
jmp 0x40408d
mov dword [0x40c068], 0x1000
xor esi, esi
mov dword [esp], 0x2000
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [0x40c064], eax
mov ebx, eax
mov word [eax], si
mov dword [0x40c060], eax
jmp 0x404020
xor edi, edi
mov eax, 2
xor ebx, ebx
jmp 0x404064
mov ebx, dword [0x40c064]
jmp 0x4040ec
lea edx, [eax + 2]
cmp word [eax], 0xd
mov dword [0x40c060], edx
je 0x4041a2
xor edx, edx
mov word [eax], dx
jmp 0x4040c5
cmp word [eax + 2], 0xa
jne 0x404198
lea edx, [eax + 4]
mov dword [0x40c060], edx
jmp 0x404198
Function at 0x404790
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 8
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4047cf
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x18], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebx + 0x14], 0
sub esp, 4
movzx eax, word [esi]
and eax, 0xffffffdf
cmp ax, 0x48
je 0x4047f0
mov dword [ebx + 0x34], 2
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x5c
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcschr]
mov dword [esp], esi
mov edi, eax
test eax, eax
je 0x404830
call sym._path_get_rootkey
test eax, eax
je 0x4047db
cmp word [edi + 2], 0
je 0x4047db
add edi, 2
mov dword [esp], eax
mov dword [esp + 4], edi
call dword [sym.imp.advapi32.dll_RegDeleteTreeW]
sub esp, 8
jmp 0x4047db
call sym._path_get_rootkey
jmp 0x4047db