joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45831c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0045798c
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00403f2c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x45837a
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x49ad08]
mov dl, 1
mov eax, dword [0x457768]
call fcn.0040af28
call fcn.0040359c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x458384
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00403f2c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4583dc
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x49af6c]
mov dl, 1
mov eax, dword [0x457768]
call fcn.0040af28
call fcn.0040359c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004579bc
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403f2c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x45940d
test al, 0x10
jne 0x459411
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x459578
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
xor edx, edx
mov dword [ebp - 0x108], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4595e7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x108]
lea edx, [ebp - 0x104]
mov ecx, 0x104
call fcn.00403d18
mov eax, dword [ebp - 0x108]
mov edx, ebx
call fcn.00459534
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4595ee
lea eax, [ebp - 0x108]
call fcn.00403ae8
ret
Function at 0x4595f4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4596ab
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
call sub.shell32.dll_SHGetMalloc
call fcn.004468fc
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [0x49ad90]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.004468fc
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
cmp dword [ebp - 8], 0
je 0x459667
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x10c]
mov ecx, 0x104
call fcn.00403d18
mov eax, dword [ebp - 0x110]
mov edx, esi
call fcn.00459534
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4596b2
lea eax, [ebp - 0x110]
call fcn.00403ae8
lea eax, [ebp - 4]
call fcn.00405438
ret

Function at 0x46e758
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, eax
mov esi, dword [0x49aa48]
mov eax, dword [0x49af24]
mov eax, dword [eax]
call eax
mov eax, dword [0x49ae98]
mov eax, dword [eax]
call eax
mov eax, dword [esi]
mov eax, dword [eax + 0x34]
call fcn.00452510
mov eax, dword [esi]
mov eax, dword [eax + 0x34]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [esi]
call fcn.00455edc
mov eax, dword [0x49ae24]
mov eax, dword [eax]
call fcn.0047dba4
mov eax, dword [0x49ab60]
mov eax, dword [eax]
call fcn.004976c8
mov eax, dword [0x49adf8]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
mov eax, dword [0x49ab50]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 4]
mov eax, dword [0x49ab88]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 4]
mov eax, dword [0x49ac5c]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 4]
mov eax, dword [0x49ad64]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 4]
mov eax, dword [0x49ab24]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 4]
mov eax, dword [0x49aecc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 4]
mov eax, dword [0x49aac0]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 4]
mov eax, dword [0x49aefc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 4]
jmp 0x46e81d
mov eax, dword [esi]
call fcn.00455ff0
push 0x7b
call sub.user32.dll_GetAsyncKeyState
movsx eax, ax
test ah, 0x80
jne 0x46e816
mov ebx, 0x14
mov eax, dword [esi]
call fcn.00455ff0
dec ebx
jne 0x46e831
mov eax, dword [0x49abe0]
cmp byte [eax], 0
je 0x46e84e
mov eax, edi
call fcn.0046e860
jmp 0x46e859
mov eax, dword [0x49aba4]
mov eax, dword [eax]
mov byte [eax + 4], 6
pop edi
pop esi
pop ebx
ret
Function at 0x472aac
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x472b99
push dword fs:[eax]
mov dword fs:[eax], esp
mov edi, dword [ebx + 0x24]
mov esi, dword [edi + 0x68]
mov edx, dword [edi + 0x64]
mov eax, dword [0x49aa34]
mov eax, dword [eax]
call fcn.004639e4
mov edx, dword [eax + 0x14]
imul edx, esi
mov eax, dword [0x49aa9c]
mov eax, dword [eax]
call fcn.0047f430
mov eax, dword [ebx + 0x24]
mov edx, dword [eax + 0x64]
mov eax, dword [0x49aa9c]
mov eax, dword [eax]
mov ecx, esi
call fcn.0047ef70
mov byte [ebx + 0xc], 3
mov eax, dword [ebx + 0x14]
mov edx, dword [eax]
call dword [edx + 0x20]
mov eax, dword [0x49abdc]
mov eax, dword [eax]
mov edx, dword [ebx + 0x38]
call fcn.0045d468
mov esi, eax
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x20]
mov ecx, dword [ebx + 0x50]
mov edx, 1
call fcn.00403f70
mov eax, dword [ebp - 4]
push eax
push 0
push 1
mov ecx, 8
mov edx, dword [ebx + 0x4c]
mov eax, dword [ebx + 0x14]
mov esi, dword [eax]
call dword [esi + 0x34]
mov eax, dword [ebx + 0x30]
mov edx, dword [eax]
call dword [edx + 0x20]
mov eax, dword [ebx + 0x24]
mov edx, dword [eax + 0x64]
mov eax, ebx
call fcn.004722bc
mov eax, dword [ebx + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x472b6f
mov byte [eax], 0
mov eax, dword [ebx + 0x24]
xor edx, edx
mov dword [eax + 0x64], edx
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebx + 0x44], 0x1e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472ba0
lea eax, [ebp - 4]
call fcn.00403ae8
ret
Function at 0x47c5f8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, eax
mov ebp, dword [0x49ac98]
cmp byte [edi + 0xc], 0
jne 0x47c61c
push 0x40240000
push 0
mov eax, edi
call fcn.0046b654
mov byte [edi + 0xc], 1
mov eax, dword [0x49adf8]
mov eax, dword [eax]
cmp dword [eax + 0x5c], 0
jle 0x47c637
mov eax, dword [0x49adf8]
mov eax, dword [eax]
mov byte [eax + 0xa8], 0
mov eax, dword [ebp]
call fcn.00480f20
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x47c65b
inc ebx
xor esi, esi
mov eax, dword [ebp]
mov edx, esi
call fcn.00480f78
mov byte [eax + 0x74], 0
inc esi
dec ebx
jne 0x47c649
mov eax, dword [0x49aeb4]
mov eax, dword [eax]
call fcn.0045a948
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x47c688
inc ebx
xor esi, esi
mov eax, dword [0x49aeb4]
mov eax, dword [eax]
mov edx, esi
call fcn.0047fac8
call fcn.0047f908
inc esi
dec ebx
jne 0x47c671
mov eax, dword [ebp]
call fcn.00480f20
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x47c6ad
inc ebx
xor esi, esi
mov eax, dword [ebp]
mov edx, esi
call fcn.00480f78
mov edx, dword [eax]
call dword [edx + 0x4c]
inc esi
dec ebx
jne 0x47c69a
mov eax, dword [0x49adf8]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov eax, dword [0x49aa9c]
mov eax, dword [eax]
call fcn.0047f48c
mov eax, dword [0x49acc8]
mov eax, dword [eax]
call fcn.00491dd0
mov eax, dword [0x49ae40]
mov eax, dword [eax]
call fcn.0049164c
mov eax, dword [0x49aa3c]
mov eax, dword [eax]
call fcn.00489c9c
mov eax, dword [0x49aaec]
mov eax, dword [eax]
call fcn.0047fca8
mov eax, dword [0x49ab50]
mov eax, dword [eax]
call fcn.0047d378
mov eax, dword [0x49adf8]
mov eax, dword [eax]
cmp dword [eax + 0x5c], 7
jne 0x47c712
mov byte [edi + 0x1c], 1
mov eax, dword [0x49aba4]
mov eax, dword [eax]
cmp byte [eax + 4], 0
je 0x47c733
push 0x40240000
push 0
mov eax, edi
call fcn.0046b6cc
mov byte [edi + 0xc], 0
jmp 0x47c757
mov eax, dword [0x49ac78]
cmp byte [eax], 0
je 0x47c757
push 0x78
call sub.user32.dll_GetAsyncKeyState
movsx eax, ax
test ah, 0x80
je 0x47c757
mov eax, dword [0x49aba4]
mov eax, dword [eax]
mov byte [eax + 4], 8
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x48b610
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, edx
mov ebx, eax
mov eax, ebx
call fcn.0045a7b8
mov esi, edi
mov dword [ebx + 0x10], esi
mov eax, dword [0x49ace0]
mov eax, dword [eax]
mov edx, esi
call fcn.0045f9ec
mov eax, dword [eax + 0xc]
call fcn.0045a948
mov ebp, eax
dec ebp
test ebp, ebp
jl 0x48b6ae
inc ebp
xor esi, esi
lea edx, [esi + 1]
mov eax, ebx
call fcn.0045a7ec
mov eax, dword [0x49ace0]
mov eax, dword [eax]
mov edx, dword [ebx + 0x10]
call fcn.0045f9ec
mov eax, dword [eax + 0xc]
mov edx, esi
call fcn.0045f6f0
mov edi, eax
mov edx, esi
mov eax, ebx
call fcn.0048b590
mov edx, dword [edi + 0xc]
call fcn.0048a704
mov edx, esi
mov eax, ebx
call fcn.0048b590
mov edx, dword [edi + 0x10]
mov dword [eax + 0x4c], edx
mov edx, esi
mov eax, ebx
call fcn.0048b590
mov edx, dword [edi + 0x14]
mov dword [eax + 0x50], edx
mov edx, esi
mov eax, ebx
call fcn.0048b590
mov dl, byte [edi + 0x18]
xor dl, 1
mov byte [eax + 0xc], dl
inc esi
dec ebp
jne 0x48b644
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x490d5c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 0x30]
xor eax, eax
push ebp
push 0x490efe
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebx + 0x10]
mov edx, dword [ebp - 4]
call fcn.00403b3c
mov dword [ebp - 8], esi
fild dword [ebp - 8]
fstp qword [ebx + 0x18]
wait
mov dword [ebp - 8], edi
fild dword [ebp - 8]
fstp qword [ebx + 0x20]
wait
mov dword [ebp - 8], esi
fild dword [ebp - 8]
fstp qword [ebx + 0x28]
wait
mov dword [ebp - 8], edi
fild dword [ebp - 8]
fstp qword [ebx + 0x30]
wait
mov al, byte [ebp + 0x2c]
mov byte [ebx + 0x38], al
fild dword [ebp + 0x28]
fstp qword [ebx + 0x40]
wait
fild dword [ebp + 0x24]
fstp qword [ebx + 0x48]
wait
mov al, byte [ebp + 0x20]
mov byte [ebx + 0x50], al
fild dword [ebp + 0x1c]
fstp qword [ebx + 0x58]
wait
Function at 0xa01560
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x494000]
push edi
or ebp, 0xffffffff
jmp 0xa01582
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xa01589
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa01578
mov eax, 1
add ebx, ebx
jne 0xa0159b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xa015ac
jne 0xa015cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa015cb
dec eax
add ebx, ebx
jne 0xa015b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xa01590
add ebx, ebx
jne 0xa015c7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xa0161d
xor ecx, ecx
sub eax, 3
jb 0xa015e3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xa01652
sar eax, 1
mov ebp, eax
jmp 0xa015ee
add ebx, ebx
jne 0xa015ee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa015bc
inc ecx
add ebx, ebx
jne 0xa015fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa015bc
add ebx, ebx
jne 0xa01609
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xa015fe
jne 0xa0161a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xa015fe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xa0163c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xa0162e
jmp 0xa0157e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xa0163c
add edi, ecx
jmp 0xa0157e
pop esi
mov edi, esi
mov ecx, 0x18b22
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xa0165a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xa0165f
lea edi, [esi + 0x5fd000]
mov eax, dword [edi]
or eax, eax
je 0xa016c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x64ccd0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x64ce10]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xa01685
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x64ce14]
or eax, eax
je 0xa016c1
mov dword [ebx], eax
add ebx, 4
jmp 0xa016a2
call dword [esi + 0x64ce24]
mov ebp, dword [esi + 0x64ce18]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xa016fb
sub esp, 0xffffff80
jmp 0x889624
Function at 0x40233f
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x4051f8
call fcn.00402861
push 1
call fcn.004023c2
pop ecx
test al, al
jne 0x4021e8
push 7
call fcn.00402a74
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0040238d
mov byte [ebp - 0x24], al
mov eax, dword [0x40633c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4021e1
test eax, eax
jne 0x402252
mov dword [0x40633c], ecx
push 0x40429c
push 0x404284
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x402235
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402339
push 0x404280
push 0x40426c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x40633c], 2
jmp 0x402257
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0040251f
pop ecx
call fcn.00402a68
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x402287
push esi
call fcn.00402492
pop ecx
test al, al
je 0x402287
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00402ca3
call esi
call fcn.00402a6e
mov esi, eax
cmp dword [esi], edi
je 0x4022a5
push esi
call fcn.00402492
pop ecx
test al, al
je 0x4022a5
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.00402b89
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_wide_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.00402bbc
test al, al
jne 0x4022de
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x4022e7
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.0040253c
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x402339
call fcn.004028a7
ret
call fcn.00402059
jmp 0x4021c9

Function at 0xc74000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0xc7400a
jmp 0xc7600f
jmp fcn.0093e058
Function at 0x403024
Capabilities:
Encrypt data using rc4 prga

Disassembly:
lea edx, [0x405243]
mov ecx, edx
mov eax, dword [edx]
inc ecx
inc ecx
inc ecx
inc ecx
mov edi, dword [ecx]
mov ecx, eax
mov eax, dword [edi]
add edi, 4
mov esi, edi
mov ebx, esi
add edi, eax
mov edx, edi
dec edx
sub ecx, eax
dec ecx
dec ecx
dec ecx
dec ecx
lea eax, [0x405243]
mov dword [eax], ecx
inc eax
inc eax
inc eax
inc eax
mov dword [eax], edi
push ecx
mov cl, byte [edi]
mov al, byte [0x405191]
mov ah, byte [esi]
add al, ah
xor al, cl
mov byte [edi], al
mov eax, edx
cmp esi, eax
jne 0x403071
mov esi, ebx
dec esi
inc esi
pop ecx
inc edi
dec ecx
jne 0x403058
mov edi, esi
push 0x39
push 0x405243
push 0x111
push dword [0x40521f]
call dword [sym.imp.user32.dll_SendMessageA]
mov ecx, dword [0x405243]
mov edi, dword [0x405247]
mov esi, dword [0x405237]
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
dec ecx
jne 0x4030a3
mov esi, dword [0x40518c]
mov ecx, dword [0x405188]
push ecx
add ecx, esi
mov dword [0x405203], ecx
pop ecx
mov eax, dword [esi]
inc esi
inc esi
nop
inc esi
inc esi
mov edi, dword [0x405237]
mov ebx, esi
add ebx, eax
mov dword [0x4051ff], ebx
mov edx, esi
add esi, eax
mov ecx, 0
movzx eax, byte [edx]
inc eax
cmp edx, ebx
jae 0x40314a
cmp eax, ecx
jae 0x4030ef
ret
sub eax, ecx
mov ecx, eax
test ecx, ecx
je 0x403100
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
dec ecx
jne 0x4030f7
inc edx
mov al, byte [edx]
inc edx
movzx ecx, byte [edx]
test ecx, ecx
je 0x403113
push ecx
mov byte [edi], al
inc edi
dec ecx
jne 0x40310c
pop ecx
inc edx
movzx eax, byte [edx]
inc cl
cmp cl, 0
jne 0x403134
inc al
cmp al, 0
jne 0x40312c
inc edx
movzx eax, word [edx]
inc edx
inc edx
jmp 0x403130
mov al, 0
dec al
dec cl
jmp 0x403146
dec cl
inc al
cmp al, 0
jne 0x403144
inc edx
movzx eax, word [edx]
inc edx
inc edx
jmp 0x403146
dec al
jmp 0x4030e6
mov ecx, dword [0x405203]
sub ecx, esi
test ecx, ecx
je 0x40315f
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
dec ecx
jne 0x403156
mov edi, dword [0x405237]
mov dword [0x405237], edi
ret

Function at 0x40a340
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, edx
mov ecx, dword [ebp + 8]
push esi
cmovno edi, dword [ebx - 0x7b]
sal byte [ebp + 0x11], 0x82
add dword [ecx + edx*2], ecx
push dword [ecx + 0x50]
rol byte [eax], 0x33
clc
xor edi, eax
pop esi
pop edx
add al, 0x79
sub dword [edx - 0x22], 0x75
or al, 0x8b
inc ecx
or byte [eax - 1], dl
adc eax, sym.imp.KERNEL32.dll_SetEvent
lodsd eax, dword [esi]
jae 0x38b5a66d
mov ecx, dword [ecx + 8]
push ecx
call dword [0x40dc34]
xor eax, eax
jne 0x40a358
mov ecx, dword [esi + sym.imp.KERNEL32.dll_GetLastError]
call esi
ljmp 0xd69c
Function at 0x40d29e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407ccb
mov dword [ebp - 0x14], eax
cmp dword [0x4307f8], esi
jne 0x40d391
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d31e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d471
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d471
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d471
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4307f8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4307fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x430800], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x430808], eax
test eax, eax
je 0x40d38e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x430804], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d3b6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d3a9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push 4
pop eax
jmp 0x40d473
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push dword [0x4307f8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d3b0
mov eax, dword [0x430804]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d429
cmp dword [0x430808], edi
je 0x40d429
push eax
call ebx
push dword [0x430808]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d429
test eax, eax
je 0x40d429
call ecx
test eax, eax
je 0x40d41e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d41e
test byte [ebp - 8], 1
jne 0x40d429
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d459
mov eax, dword [0x4307fc]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
call eax
mov esi, eax
test esi, esi
je 0x40d456
mov eax, dword [0x430800]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4307f8]
call ebx
test eax, eax
je 0x40d471
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d473
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004043de
mov esp, ebp
pop ebp
ret