joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414d9f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41cbec], ebx
push esi
push edi
jne 0x414e1f
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x414e5a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x41cbec], eax
je 0x414e5a
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41cbf0], eax
call esi
cmp dword [0x41ca2c], 2
mov dword [0x41cbf4], eax
jne 0x414e1f
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41cbfc], eax
je 0x414e1f
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41cbf8], eax
mov eax, dword [0x41cbf8]
test eax, eax
je 0x414e64
call eax
test eax, eax
je 0x414e4b
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41cbfc]
test eax, eax
je 0x414e4b
test byte [ebp - 8], 1
jne 0x414e64
cmp dword [0x41ca38], 4
jb 0x414e5e
or byte [ebp + 0x12], 0x20
jmp 0x414e83
xor eax, eax
jmp 0x414e93
or byte [ebp + 0x12], 4
jmp 0x414e83
mov eax, dword [0x41cbf0]
test eax, eax
je 0x414e83
call eax
mov ebx, eax
test ebx, ebx
je 0x414e83
mov eax, dword [0x41cbf4]
test eax, eax
je 0x414e83
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41cbec]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4038f7
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4040f6], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404650], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4045e4], eax
mov dword [0x4040ee], eax
mov dword [0x4045d0], 0x30
mov dword [0x4045d4], 2
jmp 0x40393c
mov dword [0x4045d8], 0x40321a
mov dword [0x4045dc], 0
mov dword [0x4045e0], 0
mov dword [0x4045f8], 0x40454d
mov dword [0x4045f0], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4045e8], eax
mov dword [0x4045fc], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4045ec], eax
push 0x4045d0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4040ee]
push 0
push 0
push 0x1e5
push 0x203
push 0xfffff98e
push 0xfffff9c0
push 0xcf0000
push str.lofegaswer_huijd
push str.lisclass
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404648], eax
push 5
push dword [0x404648]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404648]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404600]
jmp 0x403a10
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x403a02
mov eax, dword [0x404608]
jmp 0x403a2b
call 0x402c21
ret
Function at 0x40cf40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
jmp 0x40cf5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40cf61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40cf50
mov eax, 1
add ebx, ebx
jne 0x40cf73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40cf68
jne 0x40cf84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40cf68
xor ecx, ecx
sub eax, 3
jb 0x40cf98
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40d00a
mov ebp, eax
add ebx, ebx
jne 0x40cfa3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40cfb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40cfd4
inc ecx
add ebx, ebx
jne 0x40cfc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40cfb5
jne 0x40cfd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40cfb5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40cff4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40cfe5
jmp 0x40cf56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40cff4
add edi, ecx
jmp 0x40cf56
pop esi
mov edi, esi
mov ecx, 0x1f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40d012
cmp byte [edi], 1
jne 0x40d012
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 0x40d017
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40d08f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11a18]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11aa0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40d044
mov ecx, edi
jns 0x40d073
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 + 0x11aa8]
or eax, eax
je 0x40d089
mov dword [ebx], eax
add ebx, 4
jmp 0x40d061
call dword [esi + 0x11aa4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x40d0c0
cmp al, 0xef
ja 0x40d0b3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x40d095
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x40d0a2
mov ebp, dword [esi + 0x11aac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40d0f4
sub esp, 0xffffff80
jmp 0x4028f0
Function at 0x4015d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
lea edi, [ebp - 0x4c]
mov ecx, 0x13
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
push 0
call fcn.004022c0
add esp, 4
push eax
call fcn.004020c0
add esp, 4
push 0x4263bc
mov eax, dword [ebp + 0xc]
push eax
call fcn.004022a0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40163e
mov esi, esp
push 0
push 0x426070
push 0x4263a8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp esi, esp
call fcn.00401fa0
mov eax, 1
jmp 0x4016f5
mov esi, esp
push 0
push 0x4263a0
push 0x426384
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp esi, esp
call fcn.00401fa0
mov esi, esp
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.00401fa0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
and ecx, 0x10
test ecx, ecx
jne 0x4016e2
mov edx, dword [ebp - 4]
push edx
call fcn.00402100
add esp, 4
mov byte [ebp - 8], al
call fcn.004020d0
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 0x14]
imul edx, edx, 0x64
cmp dword [ebp - 0xc], edx
jle 0x4016bb
movsx eax, byte [ebp - 8]
cmp eax, 0xa
je 0x4016bb
movsx ecx, byte [ebp - 8]
add ecx, 1
mov byte [ebp - 8], cl
push 1
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401760
add esp, 0xc
mov esi, esp
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.00401fa0
jmp 0x401671
mov edx, dword [ebp - 4]
push edx
call fcn.00401fe0
add esp, 4
push 0
call fcn.00401e10
pop edi
pop esi
pop ebx
add esp, 0x4c
cmp ebp, esp
call fcn.00401fa0
mov esp, ebp
pop ebp
ret
Function at 0x425b10
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push esi
push edi
push 0
push 0x4295cc
push 0x4293ec
push 0x80000002
mov esi, 0x4295c4
call fcn.0042cc70
mov edi, dword [esp + 0x30]
add esp, 0x10
test eax, eax
jne 0x425d23
test edi, edi
push ebx
je 0x425c11
mov eax, dword [0x42954c]
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], eax
xor edx, edx
mov cl, byte [esp + edx + 0xc]
mov al, cl
and al, 0x80
shl cl, 1
test al, al
je 0x425b72
or cl, 1
mov al, byte [esp + edx + 0xd]
xor al, cl
mov cl, al
and cl, 1
shr al, 1
test cl, cl
je 0x425b85
or al, 0x80
mov byte [esp + edx + 0xc], al
inc edx
cmp edx, 3
jl 0x425b61
mov edx, dword [esp + 0xf]
push edx
call fcn.00425d70
mov bl, byte [esp + 0x10]
xor al, bl
push eax
call fcn.00425d50
mov cl, byte [esp + 0x2e]
mov dl, byte [esp + 0x16]
mov byte [esp + 0x17], al
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x1c], al
mov al, byte [esp + 0x15]
mov byte [esp + 0x1f], al
mov al, byte [esp + 0x2f]
mov byte [esp + 0x20], cl
mov cl, byte [esp + 0x17]
add esp, 8
mov byte [esp + 0x15], bl
mov byte [esp + 0x16], ah
mov byte [esp + 0x19], dl
mov byte [esp + 0x1a], al
mov byte [esp + 0x1b], cl
xor esi, esi
mov dl, byte [esp + esi + 0x14]
push edx
call fcn.00425d70
xor al, byte [esp + esi + 0x19]
push eax
call fcn.00425d50
add esp, 8
mov byte [esp + esi + 0x14], al
inc esi
cmp esi, 7
jl 0x425be6
mov eax, dword [esp + 0x1b]
push eax
jmp 0x425ce0
push 0
call 0x43e400
mov edx, dword [0x42954c]
xor ecx, ecx
mov dword [esp + 0x18], ecx
add esp, 4
mov dword [esp + 0xc], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ecx
xor edx, edx
mov cl, byte [esp + edx + 0xc]
mov al, cl
and al, 0x80
shl cl, 1
test al, al
je 0x425c46
or cl, 1
mov al, byte [esp + edx + 0xd]
xor al, cl
mov cl, al
and cl, 1
shr al, 1
test cl, cl
je 0x425c59
or al, 0x80
mov byte [esp + edx + 0xc], al
inc edx
cmp edx, 3
jl 0x425c35
mov eax, dword [esp + 0xf]
push eax
call fcn.00425d70
mov bl, byte [esp + 0x10]
xor al, bl
push eax
call fcn.00425d50
mov cl, byte [esp + 0x15]
mov dl, byte [esp + 0x2e]
mov byte [esp + 0x17], al
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x1c], al
mov al, byte [esp + 0x16]
mov byte [esp + 0x1f], cl
mov cl, byte [esp + 0x2f]
mov byte [esp + 0x20], dl
mov dl, byte [esp + 0x17]
add esp, 8
mov byte [esp + 0x15], bl
mov byte [esp + 0x16], ah
mov byte [esp + 0x19], al
mov byte [esp + 0x1a], cl
mov byte [esp + 0x1b], dl
xor esi, esi
mov al, byte [esp + esi + 0x14]
push eax
call fcn.00425d70
xor al, byte [esp + esi + 0x19]
push eax
call fcn.00425d50
add esp, 8
mov byte [esp + esi + 0x14], al
inc esi
cmp esi, 7
jl 0x425cba
mov ecx, dword [esp + 0x1b]
push ecx
call fcn.00425d70
xor al, byte [esp + 0x18]
push eax
call fcn.00425d50
add esp, 8
lea edx, [esp + 0x14]
mov byte [esp + 0x1b], al
push 8
push edx
push 0x4295bc
push 0x42957c
push 0x80000002
call fcn.0042de60
add esp, 0x14
mov esi, 0x429578
test eax, eax
pop ebx
jne 0x425d23
mov esi, 0x429570
test edi, edi
mov eax, 0x429568
jne 0x425d31
mov eax, 0x429564
push esi
push eax
push 0x429550
call fcn.00429d60
add esp, 0xc
pop edi
pop esi
add esp, 0x14
ret
Function at 0x4266b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x58
mov eax, dword [esp + 0x5c]
mov dword [esp], 0x4298cc
test eax, eax
mov ecx, 0x42fa7c
mov dword [esp + 4], eax
jne 0x4266d0
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x60]
mov dword [esp + 8], 0x4298c8
test eax, eax
mov dword [esp + 0xc], eax
jne 0x4266e8
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x64]
mov dword [esp + 0x10], 0x4298c4
test eax, eax
mov dword [esp + 0x14], eax
jne 0x426700
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x68]
mov dword [esp + 0x18], 0x4298c0
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x426718
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x20], 0x4298bc
test eax, eax
mov dword [esp + 0x24], eax
jne 0x426730
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x70]
mov dword [esp + 0x28], 0x4298b8
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x426748
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x74]
mov dword [esp + 0x30], 0x4298b0
test eax, eax
mov dword [esp + 0x34], eax
jne 0x426760
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x78]
mov dword [esp + 0x38], 0x4298a8
test eax, eax
mov dword [esp + 0x3c], eax
jne 0x426778
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x40], 0x4298a0
test eax, eax
mov dword [esp + 0x44], eax
jne 0x426790
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x80]
mov dword [esp + 0x48], 0x429898
test eax, eax
mov dword [esp + 0x4c], eax
jne 0x4267ab
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x84]
mov dword [esp + 0x50], 0x429890
test eax, eax
mov dword [esp + 0x54], eax
jne 0x4267c6
mov dword [esp + 0x54], ecx
push ebx
mov ebx, dword [fcn.004261d8]
push ebp
push esi
push edi
xor edi, edi
lea esi, [esp + 0x14]
mov ebp, 0xb
mov eax, dword [esi - 4]
push eax
call ebx
mov ecx, dword [esi]
lea edi, [edi + eax + 1]
push ecx
call ebx
add esi, 8
dec ebp
lea edi, [edi + eax + 1]
jne 0x4267db
lea edi, [edi + edi*2 + 0x64]
push edi
call 0x43df45
mov esi, eax
add esp, 4
test esi, esi
je 0x426865
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ebp, dword [fcn.004261cc]
mov ecx, edx
and ecx, 3
mov dword [esp + 0x6c], 0
rep stosb byte es:[edi], al
lea edi, [esp + 0x10]
mov ebx, 0xb
mov ecx, dword [edi + 4]
mov edx, dword [edi]
lea eax, [esp + 0x6c]
push eax
push ecx
push edx
call fcn.00432e90
add esp, 0xc
test eax, eax
je 0x426852
mov eax, dword [esp + 0x6c]
push eax
push esi
call ebp
lea ecx, [esp + 0x6c]
push ecx
call fcn.0042d950
add esp, 4
add edi, 8
dec ebx
jne 0x426832
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
Function at 0x4305f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
push ebx
push ebp
mov ebp, dword [fcn.004261d8]
push esi
xor esi, esi
mov eax, 1
push edi
mov dword [esp + 0x14], 0x42b4fc
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 0x42b4f0
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0x42b4e8
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0x42b4dc
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0x429958
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], 0x42b4d0
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], 0x42a2e8
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0x42b4cc
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0x42b4c4
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 0x42b4b4
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 0x42b4a4
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], 0x42b498
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0x42b494
mov dword [esp + 0x78], eax
lea edi, [esp + 0x14]
mov ebx, 0xd
mov eax, dword [edi]
push eax
call ebp
add edi, 8
dec ebx
lea esi, [esi + eax + 2]
jne 0x4306a9
add esi, 0xa
push esi
call 0x43df45
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x430725
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov esi, ebx
and ecx, 3
mov dword [esp + 0x10], 0xd
rep stosb byte es:[edi], al
lea edi, [esp + 0x14]
mov eax, dword [esp + 0x84]
test eax, eax
jne 0x4306fe
mov eax, dword [edi + 4]
test eax, eax
je 0x430717
mov eax, dword [edi]
push eax
push esi
call dword [fcn.004261e0]
push esi
call ebp
mov cl, byte [esp + 0x80]
add esi, eax
mov byte [esi], cl
inc esi
mov eax, dword [esp + 0x10]
add edi, 8
dec eax
mov dword [esp + 0x10], eax
jne 0x4306ec
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x6c
ret
Function at 0x4013fc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004020d0
test esi, esi
jne 0x401432
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004021bc
jmp 0x401450
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00401310
mov edi, eax
test esi, esi
je 0x401450
cmp dword [ebx], 0
je 0x401450
dec esi
jmp 0x401439
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4018d0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x406008], 0x8088405
inc edx
mov dword [ebx + 0x406008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403390
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov edx, 5
call fcn.004018b0
mov eax, dword [ebp - 0xc]
inc eax
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00402448
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
sete byte [ebp - 0xd]
mov eax, dword [ebp - 0x14]
call fcn.00402fb0
mov edx, dword [ebp - 0xc]
mov byte [edx], al
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret

Function at 0x40350c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
call fcn.00402f60
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00402448
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x40355d
mov ecx, dword [ebp - 8]
mov edx, 0x40356c
mov eax, dword [ebp - 4]
call fcn.00403088
mov esp, ebp
pop ebp
ret 8

Function at 0x40358c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00402448
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4035d7
mov ecx, dword [ebp - 8]
mov edx, 0x4035fc
mov eax, dword [ebp - 4]
call fcn.00403088
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
call fcn.00402fb0
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8
Function at 0x4035a0
Capabilities:
Set current directory

Disassembly:
test al, al
je 0x4035b4
inc dword [0x4aae8c]
add dword [0x4a7440], 0xe8
mov edx, dword [0x4a7440]
push esi
push edi
mov ecx, 0x3a
mov esi, 0x4a99d0
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xc]
mov esi, edx
mov dword [esi + 0x2c], ecx
test al, al
je 0x4035e3
push 0
mov eax, 0x4acd80
call fcn.00415800
cmp dword [0x4aaebc], 0
mov dword [0x4ad388], 0
mov dword [0x4ad38c], 0
je 0x40360b
push 0x4ab520
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [esp + 0x10], 0
jne 0x40368f
or ecx, 0xffffffff
cmp byte [esi + 0xca], 0
jne 0x40363a
xor eax, eax
cmp byte [esp + 0x14], 0x65
sete al
mov byte [esi + 0xca], al
test al, al
je 0x40363a
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ecx
cmp dword [0x4ad394], 0
je 0x40364c
cmp dword [0x4ad390], 0
jne 0x403655
cmp byte [esi + 0xca], 0
je 0x40368f
cmp byte [esi + 0xca], 0
mov byte [esi + 0xc8], 0
jne 0x40368f
cmp dword [0x4ad394], 0
jge 0x403677
pop edi
mov dword [esi + 0xbc], ecx
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xb8], eax
mov edx, dword [0x4ad394]
mov dword [esi + 0xbc], edx
pop edi
pop esi
ret
Function at 0x404310
Capabilities:
Write clipboard data

Disassembly:
cmp dword [0x4ad3ec], 0
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, eax
je 0x404328
pop ebp
xor eax, eax
pop ebx
ret 4
push esi
test ebp, ebp
je 0x404375
cmp ebx, 0xffffffff
jne 0x404342
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404337
sub eax, edx
mov ebx, eax
test ebx, ebx
je 0x404375
push edi
lea edi, [ebx + 1]
mov esi, 0x4ad3e0
call fcn.00404390
pop edi
test eax, eax
jne 0x40435f
pop esi
pop ebp
pop ebx
ret 4
mov eax, dword [0x4ad3ec]
push ebx
push ebp
push eax
mov esi, eax
call fcn.004883d0
add esp, 0xc
mov byte [esi + ebx], 0
pop esi
pop ebp
pop ebx
mov dword [esp + 4], 1
mov ecx, 0x4ad3e0
jmp fcn.00404400

Function at 0x404400
Capabilities:
Write clipboard data

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x18], edi
jne 0x404424
push esi
call fcn.004046e0
test eax, eax
jne 0x404424
push str.Cant_open_clipboard_for_writing.
call fcn.00404510
pop edi
pop esi
ret 4
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x40445e
cmp dword [esi + 0x18], edi
je 0x40444f
cmp dword [esi + 8], edi
je 0x404444
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], edi
mov dword [esi], edi
push 0x4999dc
call fcn.00404510
pop edi
pop esi
ret 4
mov ecx, dword [esi + 4]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp ecx, edi
je 0x4044a1
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x4044c9
cmp dword [esp + 0x10], 0xd
push ebx
jne 0x404480
cmp word [eax], di
jmp 0x404483
cmp byte [eax], 0
push ecx
sete bl
call ebp
test bl, bl
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], edi
pop ebx
je 0x4044c9
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
cmp dword [esi + 0x18], edi
je 0x4044be
cmp dword [esi + 8], edi
je 0x4044b3
mov edx, dword [esi]
push edx
call ebp
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], edi
mov dword [esi], edi
pop ebp
pop edi
mov eax, 1
pop esi
ret 4
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x4044e1
mov dword [esi + 4], edi
jmp 0x4044a1
cmp dword [esi + 0x18], edi
je 0x4044fe
cmp dword [esi + 8], edi
je 0x4044f3
mov ecx, dword [esi]
push ecx
call ebp
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], edi
mov dword [esi], edi
push 0x4999ec
call fcn.00404510
pop ebp
pop edi
pop esi
ret 4
Function at 0x4045e0
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x108
test esi, esi
je 0x4045f0
mov dword [esi], 0
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x4046bf
push 0x104
lea ecx, [esp + 4]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameA]
push 0xb
lea edx, [esp + 4]
push str.Link_Source
push edx
call fcn.00485eb0
add esp, 0xc
test eax, eax
je 0x4046b6
lea eax, [esp]
push str.ObjectLink
push eax
call fcn.00485431
add esp, 8
test eax, eax
je 0x4046b6
lea ecx, [esp]
push str.OwnerLink
push ecx
call fcn.00485431
add esp, 8
test eax, eax
je 0x4046b6
lea edx, [esp]
push str.Native
push edx
call fcn.00485431
add esp, 8
test eax, eax
je 0x4046b6
lea eax, [esp]
push str.Embed_Source
push eax
call fcn.00485431
add esp, 8
test eax, eax
je 0x4046b6
lea ecx, [esp]
push str.MSDEVColumnSelect
push ecx
call fcn.00485431
add esp, 8
test eax, eax
je 0x4046ac
lea edx, [esp]
push str.MSDEVLineSelect
push edx
call fcn.00485431
add esp, 8
test eax, eax
jne 0x4046c3
test esi, esi
je 0x4046b6
mov dword [esi], 1
xor eax, eax
add esp, 0x108
ret
mov byte [esp], 0
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
add esp, 0x108
ret

Function at 0x4046e0
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0
je 0x4046f2
mov eax, 1
ret 4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov ecx, dword [0x4aad20]
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
push ecx
mov edi, eax
call ebx
test eax, eax
jne 0x404760
mov eax, dword [0x4a73a0]
cmp eax, 0xffffffff
je 0x404731
test eax, eax
je 0x404776
call esi
mov edx, dword [0x4a73a0]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x404776
push 1
push 0x8000012f
mov dword [0x4a73a4], 0
call fcn.00401290
mov eax, dword [0x4aad20]
add esp, 8
push eax
mov dword [0x4a73a4], 1
call ebx
test eax, eax
je 0x404712
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword [ecx + 0x18], 1
mov eax, 1
pop ebx
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
ret 4