joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4032a0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp dword [0x407074], edx
push ebx
push esi
push edi
push ebp
jbe 0x4034a7
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x407080
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x4034a7
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x403309
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x40331a
push 2
push 0
push edx
call fcn.004036e0
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x4033b6
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x430]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x4033ef
lea ebx, [esp + 0x24]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x40337d
mov al, byte [edi]
inc edi
cmp al, 0xa
jne 0x40336b
mov byte [ebx], 0xd
inc esi
inc ebx
mov byte [ebx], al
inc ebx
mov eax, ebx
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x403352
lea eax, [esp + 0x24]
push 0
sub ebx, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push ebx
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4033e5
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, ebx
jge 0x40333d
jmp 0x4033ef
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4033e5
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x4033ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x403496
cmp dword [esp + 0x10], 0
je 0x403448
cmp dword [esp + 0x10], 5
jne 0x40342b
mov dword [0x4051f4], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x4051f8], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.00403670
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x403472
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x403472
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x4051f4], 0x1c
mov dword [0x4051f8], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x4051f4], 9
mov dword [0x4051f8], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x401000
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
je 0x40100f
cmp dword [ebp + 0x10], 0
jg 0x401017
mov eax, dword [ebp + 8]
jmp 0x4011b4
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jl 0x401175
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x41b2a8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x41b2a8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x41b2a8]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x41b2a8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x41b2a8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x41b2a8]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x41b2a8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x41b2a8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x401020
cmp dword [ebp + 0x10], 0
je 0x4011ae
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x41b2a8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x40117b
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x406ee0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x420314]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x228], ecx
lea ecx, [ebp - 0x10]
call fcn.00408e20
push 0x2001f
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x228]
mov edx, dword [ecx]
push edx
lea ecx, [ebp - 0x10]
call fcn.00406e90
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x406f40
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x10]
call fcn.00406d60
mov eax, dword [ebp - 0x21c]
jmp 0x406fd1
mov dword [ebp - 4], 0x100
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x406fa6
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x10]
call fcn.00406ee0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x406f9d
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x10]
call fcn.00406d60
mov eax, dword [ebp - 0x220]
jmp 0x406fd1
mov dword [ebp - 4], 0x100
jmp 0x406f47
lea ecx, [ebp - 0x10]
call fcn.00406de0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x228]
call fcn.00406d80
mov dword [ebp - 0x224], eax
lea ecx, [ebp - 0x10]
call fcn.00406d60
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0040d7b7
mov esp, ebp
pop ebp
ret 4
Function at 0x4075d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x4075d9
xor ecx, ecx
cmp dword [ebp + 0xc], 0
setne cl
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x4075f9
push 0x80004005
call fcn.00402bc0
xor edx, edx
jne 0x4075dd
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx*2]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx*2]
mov dword [ebp - 4], ecx
cmp dword [ebp - 0xc], 1
jne 0x40760a
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 7
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8

Function at 0x40b0b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x30], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x30], 0
jne 0x40b0da
xor eax, eax
jmp 0x40b10c
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0x40b150
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40b109
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x40cc00
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x420314]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040cb3f
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040d310
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40cc4f
cmp dword [ebp - 0x1c], 5
jb 0x40cc67
jmp 0x40cc63
cmp dword [ebp - 0x10], 1
jne 0x40cc67
cmp dword [ebp - 0x1c], 4
ja 0x40cc63
jne 0x40cc67
cmp dword [ebp - 0x18], 0
jbe 0x40cc67
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x41c0f4
call fcn.00402a60
test eax, eax
jge 0x40cc88
mov byte [0x42142c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040d7b7
add ebp, 0x78
leave
ret
Function at 0x40d04b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x40d088
cmp dword [ebp + 0x14], edi
je 0x40d088
cmp ecx, edi
jne 0x40d08f
call fcn.00410a51
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0040dfb2
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x40d0a3
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x40d0c4
cmp ebx, 0xffffffff
je 0x40d0b3
push ebx
push edi
push ecx
call fcn.0040d310
add esp, 0xc
cmp esi, edi
je 0x40d070
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x40d070
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x40d0e0
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x40d0e7
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x40d1d8
test word [esi + 0xc], 0x10c
je 0x40d13b
mov eax, dword [esi + 4]
test eax, eax
je 0x40d13b
jl 0x40d239
cmp ebx, eax
mov edi, ebx
jb 0x40d10c
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x40d1e0
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0040e0b5
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x40d1d0
cmp ebx, dword [ebp - 0xc]
jb 0x40d1a8
cmp dword [ebp - 0xc], 0
je 0x40d165
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x40d15a
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x40d161
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x40d170
mov eax, SysReAllocString
cmp ebx, eax
ja 0x40d170
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x40d20c
push eax
push dword [ebp - 8]
push esi
call fcn.00410836
pop ecx
push eax
call fcn.00411311
add esp, 0xc
test eax, eax
je 0x40d24b
cmp eax, 0xffffffff
je 0x40d239
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x40d1d0
push esi
call fcn.00410c30
cmp eax, 0xffffffff
pop ecx
je 0x40d23d
cmp dword [ebp - 4], 0
je 0x40d20c
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x40d0ef
mov eax, dword [ebp + 0x14]
jmp 0x40d08a
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x40d1f7
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0040d310
add esp, 0xc
call fcn.00410a51
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x40d080
cmp dword [ebp + 0xc], 0xffffffff
je 0x40d222
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0040d310
add esp, 0xc
call fcn.00410a51
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x40d080
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x40d08a
or dword [esi + 0xc], 0x10
jmp 0x40d23d
Function at 0x40d7b7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420314]
jne 0x40d7c1
repz ret
jmp fcn.00411def

Function at 0x413669
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4208d8]
je 0x413684
inc edi
cmp edi, 0x17
jb 0x413675
cmp edi, 0x17
jae 0x413804
push ebp
push 3
call fcn.004180db
cmp eax, 1
pop ecx
je 0x4137d0
push 3
call fcn.004180db
test eax, eax
pop ecx
jne 0x4136b8
cmp dword [0x420350], 1
je 0x4137d0
cmp ebx, 0xfc
je 0x413803
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4218a0
push ebp
call fcn.00413f25
add esp, 0xc
test eax, eax
je 0x4136ee
push esi
push esi
push esi
push esi
push esi
call fcn.0040deb6
add esp, 0x14
push 0x104
mov esi, 0x4218b9
push esi
push 0
mov byte [0x4219bd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x413732
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00413f25
add esp, 0xc
test eax, eax
je 0x413732
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040deb6
add esp, 0x14
push esi
call fcn.0040cfc0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x413777
push esi
call fcn.0040cfc0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x421bb4
push 0x41c804
sub ecx, eax
push ecx
push eax
call fcn.00418028
add esp, 0x14
test eax, eax
je 0x413777
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040deb6
add esp, 0x14
jmp 0x413779
xor esi, esi
push 0x41c800
push ebx
push ebp
call fcn.00417fb7
add esp, 0xc
test eax, eax
je 0x413799
push esi
push esi
push esi
push esi
push esi
call fcn.0040deb6
add esp, 0x14
push dword [edi*8 + 0x4208dc]
push ebx
push ebp
call fcn.00417fb7
add esp, 0xc
test eax, eax
je 0x4137bb
push esi
push esi
push esi
push esi
push esi
call fcn.0040deb6
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00417dfa
add esp, 0xc
jmp 0x413803
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x413803
cmp ebp, 0xffffffff
je 0x413803
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4208dc]
push dword [esi]
call fcn.0040cfc0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x417dfa
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00412c57
xor ebx, ebx
cmp dword [0x42201c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x417ed0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x417fb0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x417fb0
push eax
call fcn.00412be9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42201c], eax
call esi
push eax
call fcn.00412be9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x422020], eax
call esi
push eax
call fcn.00412be9
mov dword [0x422024], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004158a1
test eax, eax
pop ecx
pop ecx
je 0x417e9e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040deb6
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x417ed0
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00412be9
cmp eax, ebx
pop ecx
mov dword [0x42202c], eax
je 0x417ed0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00412be9
pop ecx
mov dword [0x422028], eax
mov eax, dword [0x422028]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x417f55
cmp dword [0x42202c], ecx
je 0x417f55
push eax
call fcn.00412c60
push dword [0x42202c]
mov esi, eax
call fcn.00412c60
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x417f55
cmp edi, ebx
je 0x417f55
call esi
cmp eax, ebx
je 0x417f22
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x417f22
test byte [ebp - 0x18], 1
jne 0x417f55
lea eax, [ebp - 0x10]
push eax
call fcn.004158d8
test eax, eax
pop ecx
je 0x417f3d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040deb6
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x417f4c
or dword [ebp + 0x10], 0x200000
jmp 0x417f90
or dword [ebp + 0x10], 0x40000
jmp 0x417f90
mov eax, dword [0x422020]
cmp eax, dword [ebp - 8]
je 0x417f90
push eax
call fcn.00412c60
cmp eax, ebx
pop ecx
je 0x417f90
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x417f90
mov eax, dword [0x422024]
cmp eax, dword [ebp - 8]
je 0x417f90
push eax
call fcn.00412c60
cmp eax, ebx
pop ecx
je 0x417f90
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42201c]
call fcn.00412c60
cmp eax, ebx
pop ecx
je 0x417fb0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x417fb2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x41a1d8]
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp eax, 0x10000
jae 0x401028
xor eax, eax
jmp 0x4010de
mov esi, dword [ebp + 8]
xor ecx, ecx
cmp byte [esi], 0
je 0x401036
inc ecx
inc esi
jmp 0x40102d
inc ecx
mov dword [ebp - 0x10], ecx
sub esp, ecx
mov esi, dword [ebp + 8]
mov edi, esp
mov dword [ebp + 8], edi
dec ecx
cld
lodsb al, byte [esi]
xor al, 0x2b
mov byte ss:[edi], al
inc edi
loop 0x401046
mov al, 0
mov byte ss:[edi], al
mov eax, dword [ebp - 0x14]
add eax, 0x3c
mov eax, dword [eax]
add eax, dword [ebp - 0x14]
cmp byte [eax], 0x50
jne 0x4010d9
mov dword [ebp - 0x18], eax
mov eax, dword [eax + 0x78]
test eax, eax
je 0x4010d9
add eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [eax + 0x20]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x18]
push ecx
mov eax, dword [eax]
add eax, dword [ebp - 0x14]
mov edi, dword [ebp + 8]
mov esi, eax
mov ecx, dword [ebp - 0x10]
push es
mov ax, ss
mov es, ax
repe cmpsb byte [esi], byte es:[edi]
pop es
jne 0x4010cc
add esp, 4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
add eax, dword [ebp - 0x14]
shl dword [ebp - 4], 1
add eax, dword [ebp - 4]
movzx eax, word [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp - 0x14]
shl dword [ebp - 4], 2
add eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, dword [ebp - 0x14]
jmp 0x4010db
inc dword [ebp - 4]
add dword [ebp - 0xc], 4
mov eax, dword [ebp - 0xc]
pop ecx
loop 0x401083
xor eax, eax
add esp, dword [ebp - 0x10]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4010f0
Capabilities:
Access peb ldr_data

Disassembly:
push esi
push edi
push ecx
xor ecx, ecx
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
mov eax, dword [esi + 8]
mov edi, dword [esi + 0x20]
mov esi, dword [esi]
cmp word [edi + 0x18], cx
jne 0x401101
pop ecx
pop edi
pop esi
ret
Function at 0x401a70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x411a73
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push esi
push edi
mov eax, dword [0x418018]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, dword [esp + 0x70]
push str.AlgorithmParametersBase:_parameter__
lea ecx, [esp + 0x48]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [esp + 0x74]
push ecx
push eax
lea edx, [esp + 0x30]
mov dword [esp + 0x70], 0
mov edi, dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
push edx
call edi
push str.__not_used
push eax
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x80], 1
call edi
add esp, 0x18
push eax
push 6
push esi
mov byte [esp + 0x74], 2
call fcn.00401430
lea ecx, [esp + 0xc]
mov byte [esp + 0x68], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 5
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x44]
mov byte [esp + 0x68], 6
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [esi], vtable.CryptoPP::AlgorithmParametersBase::ParameterNotUsed.0
mov eax, esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x60
ret 8
Function at 0x4042b8
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [0x418018]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, ecx
test esi, esi
je 0x404376
mov eax, dword [0x41321c]
mov edx, dword [str.cNJ_yNjGGDH]
mov ecx, dword [0x413220]
mov dword [esp + 0x10], eax
mov eax, dword [0x41a1f4]
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], ecx
test eax, eax
jne 0x40435a
push edi
mov edi, dword [0x41a1d8]
test edi, edi
jne 0x404305
call fcn.004010f0
mov edx, dword [esp + 0x10]
mov edi, eax
mov dword [0x41a1d8], edi
lea ecx, [esp + 0x10]
test dl, dl
je 0x40431d
lea ecx, [ecx]
xor dl, 0x2b
mov byte [ecx], dl
mov dl, byte [ecx + 1]
inc ecx
test dl, dl
jne 0x404310
mov eax, dword [0x41a1ec]
test eax, eax
jne 0x40434c
test edi, edi
jne 0x404334
call fcn.004010f0
mov dword [0x41a1d8], eax
push str.lN_YDHjOOYNXX
call section..text
mov edi, dword [0x41a1d8]
add esp, 4
mov dword [0x41a1ec], eax
lea edx, [esp + 0x10]
push edx
push edi
call eax
mov dword [0x41a1f4], eax
pop edi
mov ecx, dword [esp + 0x24]
push ebp
push esi
push ecx
push ebx
call eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00410f02
add esp, 0x10
ret
mov eax, dword [0x413210]
mov edx, dword [str.cNJ_jGGDH]
mov cx, word [0x413214]
mov dword [esp + 0x10], eax
mov eax, dword [0x41a1f0]
mov dword [esp + 0xc], edx
mov word [esp + 0x14], cx
test eax, eax
jne 0x40440a
mov esi, dword [0x41a1d8]
test esi, esi
jne 0x4043b5
call fcn.004010f0
mov esi, eax
mov dword [0x41a1d8], esi
mov dl, byte [esp + 0xc]
lea ecx, [esp + 0xc]
test dl, dl
je 0x4043ce
xor dl, 0x2b
mov byte [ecx], dl
mov dl, byte [ecx + 1]
inc ecx
test dl, dl
jne 0x4043c1
mov eax, dword [0x41a1ec]
test eax, eax
jne 0x4043fd
test esi, esi
jne 0x4043e5
call fcn.004010f0
mov dword [0x41a1d8], eax
push str.lN_YDHjOOYNXX
call section..text
mov esi, dword [0x41a1d8]
add esp, 4
mov dword [0x41a1ec], eax
lea edx, [esp + 0xc]
push edx
push esi
call eax
mov dword [0x41a1f0], eax
mov ecx, dword [esp + 0x24]
push ebp
push ecx
push ebx
call eax
mov ecx, dword [esp + 0x18]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00410f02
add esp, 0x10
ret