joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40117b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea edi, [esi + 0x14]
mov dword [esi], 0x4071c4
cmp dword [edi], ebx
je 0x401220
push str._mozilla.org_observer_service_1
mov edx, 0x408ee8
mov dword [ebp - 4], ebx
lea ecx, [ebp - 4]
call fcn.004052a8
mov eax, dword [ebp - 4]
test eax, eax
je 0x401200
mov ecx, dword [eax]
push ebx
push str.profile_change_net_teardown
push ebx
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_change_teardown
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change_qm
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change_telemetry
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [edi]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
xor edx, edx
mov ecx, edi
call fcn.00405395
mov eax, dword [ebp - 4]
test eax, eax
je 0x401220
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x401257
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push ebx
mov dword [esi + 0xc], ebx
call dword [sym.imp.xul.dll_NS_ShutdownXPCOM]
pop ecx
mov ecx, eax
shr ecx, 0x1f
test cl, 1
je 0x401257
push eax
push str.XPCOM_shutdown_failed_with_code_0x_x
call fcn.00401bad
pop ecx
pop ecx
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push dword [esi + 8]
push str.Finished_running__s_tests._n
call fcn.00405073
pop ecx
pop ecx
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x401273
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x401280
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x40128c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x10]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x40129c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov esp, ebp
pop ebp
ret

Function at 0x40147d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x40ea94]
mov edx, dword [ebp + 8]
mov eax, dword [0x40ea90]
test ecx, ecx
je 0x4014b3
mov ecx, dword [ecx + eax*4]
cmp dword [edx + 8], ecx
je 0x4014b3
push ecx
push dword [edx + 8]
push str.DoTransaction_expected__d_got__d._n
call fcn.00401bad
add esp, 0xc
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
inc eax
mov dword [0x40ea90], eax
mov eax, dword [edx + 0xc]
and al, 1
movsx eax, al
neg eax
sbb eax, eax
and eax, 0x80004005
pop ebp
ret 4
Function at 0x1002df80
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1002e144
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1f000]
push edi
or ebp, 0xffffffff
jmp 0x1002dfaa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1002dfb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1002dfa0
mov eax, 1
add ebx, ebx
jne 0x1002dfc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1002dfb8
jne 0x1002dfd4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1002dfb8
xor ecx, ecx
sub eax, 3
jb 0x1002dfe8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1002e05a
mov ebp, eax
add ebx, ebx
jne 0x1002dff3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1002e000
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1002e024
inc ecx
add ebx, ebx
jne 0x1002e010
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1002e005
jne 0x1002e021
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1002e005
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1002e044
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1002e035
jmp 0x1002dfa6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1002e044
add edi, ecx
jmp 0x1002dfa6
pop esi
mov edi, esi
mov ecx, 0xc42
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1002e062
cmp byte [edi], 0x11
jne 0x1002e062
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 0x1002e067
lea edi, [esi + 0x2a000]
mov eax, dword [edi]
or eax, eax
je 0x1002e0d6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2e44c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2e49c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1002e094
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2e4a0]
or eax, eax
je 0x1002e0d0
mov dword [ebx], eax
add ebx, 4
jmp 0x1002e0b1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1002e107
cmp al, 0xef
ja 0x1002e0fa
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1002e0dc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1002e0e9
mov ebp, dword [esi + 0x2e4a4]
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 0x1002e13b
sub esp, 0xffffff80
jmp 0x10013194

Function at 0x1000678b
Capabilities:
Encode data using xor

Disassembly:
inc edi
and dword [ecx + 0x407f2f26], ecx
rcl ebx, 1
adc al, 0x77
inc edi
mov bh, 0x10
sbb esp, edx
sbb eax, 0xdbd56629
and ah, byte [ebx]
loope 0x100067ab
sub eax, 0xf15bec8d
movsd dword es:[edi], dword [esi]
invalid
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x401c66
pop dword [ebp - 0x34]
mov eax, 0x97c4a68b
sub eax, 0x97848a25
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xd2dcf2f7
sub dword [ebp - 0x44], 0x848aadac
mov dword [ebp - 0x40], 0xf9fcd661
sub dword [ebp - 0x40], 0xc7c98a1c
mov dword [ebp - 0x3c], 0xbc37620a
sub dword [ebp - 0x3c], 0x6feb1ddc
mov dword [ebp - 0x38], 0xfd65e1a3
sub dword [ebp - 0x38], 0xfd65e1a3
lea eax, [ebp - 0x44]
push eax
mov eax, 0xe8c05fde
add eax, 0x177fd076
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xa9bf2246
add dword [ebp - 0x44], 0xcab34710
mov dword [ebp - 0x40], 0x6c8ffb02
add dword [ebp - 0x40], 0xd4dc6673
mov dword [ebp - 0x3c], 0xcbff481e
add dword [ebp - 0x3c], 0x9770244e
mov dword [ebp - 0x38], 0x6b9d8803
add dword [ebp - 0x38], 0x946277fd
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x392fa
push 0
call eax
mov ecx, 0x3aee6db9
add ecx, 0xc511e519
mov ebx, eax
mov edx, 0x8910fae9
sub edx, 0x88d08ae9
add edx, dword [ebp - 0x34]
mov edi, 0xf99e1a59
add edi, 0xbfbc1470
xor dword [ebp - 0x1c], eax
mov esi, dword [edx]
mov dword [ebp - 0x2c], 0xc597d8f5
sub esi, edi
sub dword [ebp - 0x20], edi
mov dword [ebx], esi
sub dword [ebp - 0x14], edx
add ebx, 0xdc9155af
sub ebx, 0xdc9155ab
add edx, 4
loop 0x401d83
add eax, 0x13e1b
xor ebx, ebx
add ebx, eax
add eax, 0x50048f19
sub eax, 0x50048f14
mov ecx, 0xf59e83c3
add ecx, 0xaa17c3d
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x402670
Capabilities:
Create process on windows

Disassembly:
push ebp
push edi
push 1
push 0x208
call fcn.0041b002
push 1
push 0x208
mov edi, eax
call fcn.0041b002
add esp, 0x10
mov ebp, eax
test edi, edi
je 0x4027ab
test ebp, ebp
je 0x4027ab
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov edx, ebp
xor esi, esi
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4026af
push 7
push str.http:__
push ebp
call fcn.0041b5a0
add esp, 0xc
test eax, eax
je 0x4026f5
push 8
push str.https:__
push ebp
call fcn.0041b5a0
add esp, 0xc
test eax, eax
je 0x4026f5
push 0x5c
push ebp
call fcn.0041ae00
add esp, 8
test eax, eax
je 0x4026f5
mov byte [eax], 0
mov esi, ebp
push 5
push esi
push 0
push ebx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x40279a
mov eax, dword [esp + 0x18]
push edi
push eax
push 0x80000000
call fcn.004027b0
add esp, 0xc
test eax, eax
jne 0x40279a
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._shellopencommand
push edi
call ebx
push edi
push edi
push 0x80000000
call fcn.004027b0
add esp, 0xc
test eax, eax
jne 0x40279a
push str.__1_
push edi
call fcn.0041b300
mov esi, eax
add esp, 8
test esi, esi
jne 0x40277e
push 0x426444
push edi
call fcn.0041b300
mov esi, eax
add esp, 8
test esi, esi
jne 0x40277e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + edi - 1]
jmp 0x402781
mov byte [esi], 0
push 0x426440
push esi
call ebx
mov ecx, dword [esp + 0x14]
push ecx
push esi
call ebx
push 5
push edi
call dword [sym.imp.KERNEL32.dll_WinExec]
push ebp
call fcn.0041b0b3
push edi
call fcn.0041b0b3
add esp, 8
pop esi
pop ebx
pop edi
pop ebp
ret

Function at 0x4027b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4027f9
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
mov dword [esp + 8], 0x104
push eax
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
ret
Function at 0x402800
Capabilities:
Set registry value

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x214]
push 0x208
push eax
push edi
call fcn.004028f0
add esp, 0xc
push edi
call dword [sym.imp.GDI32.dll_AddFontResourceA]
test eax, eax
je 0x4028da
mov al, byte [esp + 8]
push esi
test al, al
je 0x4028b2
push 0x5c
push edi
call fcn.0041ae00
mov esi, eax
add esp, 8
test esi, esi
je 0x40284d
inc esi
jmp 0x40284f
mov esi, edi
lea ecx, [esp + 0xc]
push str.__TrueType_
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x42bbac]
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionFonts
test ecx, ecx
je 0x402873
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionFonts
lea edx, [esp + 8]
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4028b2
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0xc]
push esi
push 1
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x42b734
push 0x1388
push 0
push 0
push 0
push 0x1d
push 0xffff
mov dword [0x42b734], 0
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
pop esi
pop edi
add esp, 0x20c
ret

Function at 0x402b10
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x214]
push edi
push 0x208
push eax
push esi
call fcn.004028f0
add esp, 0xc
push esi
call dword [sym.imp.GDI32.dll_RemoveFontResourceA]
mov edi, eax
mov al, byte [esp + 0xc]
test al, al
je 0x402ba2
push 0x5c
push esi
call fcn.0041ae00
add esp, 8
lea ecx, [esp + 0xc]
push str.__TrueType_
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x42bbac]
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionFonts
test ecx, ecx
je 0x402b72
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionFonts
lea edx, [esp + 8]
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402ba2
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
pop esi
je 0x402bc5
push 0x42b734
push 0x1388
push 0
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
add esp, 0x20c
ret
Function at 0x402c70
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
push 0x208
call fcn.0041af50
mov ebp, eax
xor ebx, ebx
add esp, 4
cmp ebp, ebx
jne 0x402c96
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
mov eax, dword [esp + 0x68]
push eax
push str.__s_
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esp + 0x78]
add esp, 0xc
cmp edx, ebx
je 0x402cef
cmp byte [edx], bl
je 0x402cef
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov cx, word [0x426440]
mov word [edi - 1], cx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x208
call fcn.0041af50
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x402d15
push ebp
call fcn.0041b0b3
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [esp + 0x68]
lea edi, [esi + 0x104]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x402d31
push 0x5c
push edi
call fcn.0041ae00
add esp, 8
cmp eax, ebx
je 0x402d53
push edi
mov byte [eax], bl
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0x70]
lea edx, [esp + 0x20]
push ecx
push edx
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
push ebp
push ebx
mov dword [eax], ebx
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x74], ebx
mov word [esp + 0x7a], bx
mov dword [esp + 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call fcn.0041b0b3
push ebp
call fcn.0041b0b3
add esp, 8
cmp edi, ebx
jne 0x402dba
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [ecx], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0x54
ret

Function at 0x403a50
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 8
lea eax, [esp + 0x10]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403ab9
lea eax, [esp + 0x10]
lea ecx, [esp + 4]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push esi
push eax
push ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403aae
mov esi, 1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x408f00
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, dword [0x42b7d4]
push esi
push edi
cmp byte [eax], 0
jne 0x409092
mov ecx, dword [0x42bc2c]
mov edx, dword [0x42b764]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x408f1c
mov ecx, dword [0x42b764]
push 0x5c
push ecx
call fcn.0041ae00
add esp, 8
test eax, eax
je 0x408f3e
inc eax
jmp 0x408f43
mov eax, dword [0x42b764]
mov byte [eax], 0x72
inc eax
push ebx
push 0
mov byte [eax], 0x65
inc eax
mov byte [eax], 0x67
inc eax
mov byte [eax], 0x69
inc eax
mov byte [eax], 0x6e
inc eax
mov byte [eax], 0x66
inc eax
mov byte [eax], 0x6f
inc eax
mov byte [eax], 0x2e
inc eax
mov byte [eax], 0x74
inc eax
mov byte [eax], 0x78
inc eax
mov byte [eax], 0x74
mov byte [eax + 1], 0
mov edx, dword [0x42b764]
push edx
call fcn.004010e0
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
je 0x409001
push ebx
call fcn.00401260
mov esi, eax
add esp, 4
test esi, esi
jbe 0x408ff8
cmp esi, 0x186a0
jae 0x408ff8
lea eax, [esi + 1]
push eax
call fcn.0041af50
mov edi, eax
add esp, 4
test edi, edi
je 0x408ff8
push esi
push edi
push ebx
call fcn.00401160
mov byte [edi + esi], 0
mov ecx, dword [0x42bb00]
add esp, 0xc
mov eax, dword [ecx + 8]
test eax, eax
jne 0x408fdc
push esi
push edi
call fcn.00408ce0
add esp, 8
jmp 0x408fef
xor edx, edx
cmp eax, 4
sete dl
push edx
push esi
push edi
call fcn.00409bd0
add esp, 0xc
push edi
call fcn.0041b0b3
add esp, 4
push ebx
call fcn.00401360
add esp, 4
mov eax, dword [0x42b7d4]
pop ebx
cmp byte [eax], 0
jne 0x409092
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x409092
mov ecx, dword [0x42bbf4]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x409092
push ebp
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebp, eax
test ebp, ebp
je 0x409089
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x409082
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x42bb00]
not ecx
mov eax, dword [eax + 8]
dec ecx
test eax, eax
mov esi, ecx
jne 0x40906f
push esi
push edx
call fcn.00408ce0
add esp, 8
jmp 0x409082
xor ecx, ecx
cmp eax, 4
sete cl
push ecx
push esi
push edx
call fcn.00409bd0
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop ebp
pop edi
pop esi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
ret
Function at 0x409330
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, dword [0x42b7d4]
cmp byte [eax], 0
jne 0x4093eb
mov ecx, dword [0x42bc2c]
mov edx, dword [0x42b764]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40934a
mov ecx, dword [0x42b764]
push 0x5c
push ecx
call fcn.0041ae00
add esp, 8
test eax, eax
je 0x40936c
inc eax
jmp 0x409371
mov eax, dword [0x42b764]
mov ecx, str.reginfo.txt
mov edx, eax
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x40937a
mov edx, dword [0x42b764]
push edx
call fcn.00409280
mov eax, dword [0x42b7d4]
add esp, 4
cmp byte [eax], 0
jne 0x4093eb
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x4093eb
mov ecx, dword [0x42bbf4]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4093eb
push esi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x4093e4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4093dd
push eax
call fcn.004091f0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop esi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
ret
Function at 0x40d5f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov byte [ebp], 0
je 0x40d674
mov eax, dword [0x42bb00]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x40d639
mov cl, byte [esi]
push edi
mov byte [esp + 0x10], cl
mov edi, ebp
mov eax, dword [esp + 0x10]
and eax, 0xff
inc esi
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov byte [eax + ebp], 0
pop esi
pop ebp
ret
mov edx, dword [0x42b7d0]
mov eax, esi
sub eax, edx
mov dl, byte [esi]
mov cl, al
inc esi
xor cl, dl
xor cl, 0x6a
inc eax
test cl, cl
mov byte [esp + 0xc], cl
jbe 0x40d670
mov ecx, dword [esp + 0xc]
and ecx, 0xff
mov dl, byte [esi]
xor dl, al
xor dl, 0x6a
mov byte [ebp], dl
inc ebp
inc esi
inc eax
dec ecx
jne 0x40d660
mov byte [ebp], 0
pop esi
pop ebp
ret

Function at 0x40d850
Capabilities:
Encode data using xor
Read .ini file

Disassembly:
mov ecx, dword [0x42bc0c]
sub esp, 0x24
push ebx
push esi
mov esi, dword [ecx*4 + 0x42ba00]
test esi, esi
je 0x40d9a5
mov edx, dword [ecx*4 + 0x42b940]
xor eax, eax
test edx, edx
jbe 0x40d894
mov bl, byte [eax + esi]
mov cl, al
add cl, 0x40
xor bl, cl
mov byte [eax + esi], bl
mov edx, dword [0x42bc0c]
inc eax
cmp eax, dword [edx*4 + 0x42b940]
jb 0x40d877
xor eax, eax
mov ax, word [esi]
add esi, 2
test eax, eax
jbe 0x40d9a5
push ebp
mov dword [esp + 0x14], eax
push edi
mov al, byte [esi]
inc esi
mov byte [esp + 0x13], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x1c], esi
lea edx, [esi + ecx + 1]
or ecx, 0xffffffff
mov edi, edx
mov ebp, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [edx + ecx + 1]
or ecx, 0xffffffff
mov edi, edx
mov ebx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [edx + ecx + 1]
or ecx, 0xffffffff
mov edi, edx
mov dword [esp + 0x14], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [edx + ecx + 1]
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x42b764]
push ecx
push edx
call fcn.0040d7c0
mov al, byte [esp + 0x1b]
add esp, 8
test al, 1
je 0x40d936
mov eax, dword [0x42b764]
lea ecx, [esp + 0x20]
push eax
push 0x14
push ecx
push 0x42bc58
push ebx
push ebp
mov byte [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x40d994
mov edx, dword [esp + 0x14]
push 0xffdc
push edx
push 0
call fcn.0040d680
mov dword [esp + 0x28], eax
lea eax, [eax + eax + 1]
push eax
call fcn.0041af50
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
inc ecx
mov edi, eax
push ecx
push edx
push edi
call fcn.0040d680
mov eax, dword [0x42b764]
add esp, 0x1c
push eax
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ebp
call ebx
mov ecx, dword [0x42b764]
push ecx
push 0
push 0
push 0
call ebx
push edi
call fcn.0041b0b3
add esp, 4
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x40d8aa
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x24
ret