joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40165d
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x405168
call fcn.004019ec
mov edi, 0x94
mov eax, edi
call fcn.004027c0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x406380], ecx
mov eax, dword [esi + 4]
mov dword [0x40638c], eax
mov edx, dword [esi + 8]
mov dword [0x406390], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x406384], esi
cmp ecx, 2
je 0x4016bd
or esi, 0x8000
mov dword [0x406384], esi
shl eax, 8
add eax, edx
mov dword [0x406388], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4016f8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4016f8
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401710
cmp eax, 0x20b
je 0x4016fd
mov dword [ebp - 0x1c], esi
jmp 0x401724
cmp dword [ecx + 0x84], 0xe
jbe 0x4016f8
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40171e
cmp dword [ecx + 0x74], 0xe
jbe 0x4016f8
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00402763
pop ecx
test eax, eax
jne 0x401750
cmp dword [0x40636c], 1
jne 0x40173d
call fcn.00401e54
push 0x1c
call fcn.00401cdc
push 0xff
call fcn.00401b41
pop ecx
pop ecx
call fcn.004026c1
mov dword [ebp - 4], esi
call fcn.00402516
test eax, eax
jge 0x401769
push 0x1b
call fcn.00401638
pop ecx
call fcn.00402477
mov dword [0x406790], eax
call fcn.0040230d
mov dword [0x406368], eax
call fcn.00402277
test eax, eax
jge 0x40178e
push 8
call fcn.00401638
pop ecx
call fcn.00402044
test eax, eax
jge 0x40179f
push 9
call fcn.00401638
pop ecx
push 1
call fcn.00401b71
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4017b5
push eax
call fcn.00401638
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.00401ffe
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4017d6
movzx eax, word [ebp - 0x40]
jmp 0x4017d9
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401540
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4017f7
push edi
call fcn.00401c9c
call fcn.00401cbe
jmp 0x401829
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00401a27
ret
Function at 0x401bdb
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4063c0], esi
push edi
jne 0x401bfb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4063bc], esi
mov byte [0x4063b8], al
jne 0x401c61
mov ecx, dword [0x406788]
test ecx, ecx
je 0x401c42
mov eax, dword [0x406784]
sub eax, 4
cmp eax, ecx
jmp 0x401c3b
mov eax, dword [eax]
test eax, eax
je 0x401c2d
call eax
mov eax, dword [0x406784]
sub eax, 4
cmp eax, dword [0x406788]
mov dword [0x406784], eax
jae 0x401c25
mov eax, 0x406018
mov esi, 0x40601c
cmp eax, esi
mov edi, eax
jae 0x401c61
mov eax, dword [edi]
test eax, eax
je 0x401c5a
call eax
add edi, 4
cmp edi, esi
jb 0x401c52
mov eax, 0x406020
mov esi, 0x406024
cmp eax, esi
mov edi, eax
jae 0x401c80
mov eax, dword [edi]
test eax, eax
je 0x401c79
call eax
add edi, 4
cmp edi, esi
jb 0x401c71
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x401c9a
push dword [ebp + 8]
mov dword [0x4063c0], 1
call fcn.00401b41
pop ebp
ret

Function at 0x401cdc
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4061d8]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4061e8]
je 0x401d13
inc eax
cmp eax, 0x13
jb 0x401d04
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4061e8]
jne 0x401e36
mov eax, dword [0x40636c]
cmp eax, 1
je 0x401e11
cmp eax, edx
jne 0x401d43
cmp dword [0x4061e0], 1
je 0x401e11
cmp ecx, 0xfc
je 0x401e36
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401d79
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00402900
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00402b30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x401dad
mov eax, edi
push eax
call fcn.00402b30
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4051ac
push edi
call fcn.00402a00
add esp, 0x10
push edi
call fcn.00402b30
push dword [esi + 0x4061ec]
mov ebx, eax
call fcn.00402b30
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004027c0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00402900
push edi
push ebx
call fcn.00402910
push 0x4051a8
push ebx
call fcn.00402910
push dword [esi + 0x4061ec]
push ebx
call fcn.00402910
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004027fd
add esp, 0x2c
jmp 0x401e36
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x4061ec]
push dword [esi]
call fcn.00402b30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0040162a
add ebp, 0x90
leave
ret
Function at 0x40230d
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x4065dc]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x402356
call ebp
mov esi, eax
cmp esi, ebx
je 0x40233c
mov dword [0x4065dc], 1
jmp 0x40235b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x402351
push 2
pop eax
mov dword [0x4065dc], eax
jmp 0x402356
mov eax, dword [0x4065dc]
cmp eax, 1
jne 0x4023b3
cmp esi, ebx
jne 0x40236e
call ebp
mov esi, eax
cmp esi, ebx
jne 0x40236e
xor eax, eax
jmp 0x40245a
cmp word [esi], bx
mov eax, esi
je 0x402383
inc eax
inc eax
cmp word [eax], bx
jne 0x402375
inc eax
inc eax
cmp word [eax], bx
jne 0x402375
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.00403055
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x4023a6
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x40245a
push ebp
push esi
push edi
call fcn.00403080
add esp, 0xc
jmp 0x402398
cmp eax, 2
je 0x4023bc
cmp eax, ebx
jne 0x402367
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x402367
cmp byte [ebp], bl
mov esi, ebp
je 0x4023f2
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x402367
push esi
add edi, eax
call fcn.00402b30
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x4023cf
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.00403055
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x40246b
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x40244c
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x402461
push edi
call fcn.00402b30
push esi
lea edi, [edi + eax + 1]
call fcn.00403067
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x402412
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.00402f8f
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x402367
Function at 0x402477
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x4065e0]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x4024b7
call esi
test eax, eax
je 0x40249c
mov dword [0x4065e0], 1
jmp 0x4024bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4024b3
mov dword [0x4065e0], 2
jmp 0x4024c5
xor eax, eax
jmp 0x402513
cmp eax, 1
jne 0x4024c0
call esi
jmp 0x402513
cmp eax, 2
jne 0x4024b3
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x40250b
lea eax, [esi + esi]
push eax
call fcn.00403055
mov ebp, eax
test ebp, ebp
pop ecx
je 0x40250b
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x40250f
push ebp
call fcn.00402f8f
pop ecx
xor eax, eax
jmp 0x402511
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x4027fd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4065e4], ebx
push esi
push edi
jne 0x40287d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4028b8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4065e4], eax
je 0x4028b8
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4065e8], eax
call esi
cmp dword [0x406380], 2
mov dword [0x4065ec], eax
jne 0x40287d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4065f4], eax
je 0x40287d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4065f0], eax
mov eax, dword [0x4065f0]
test eax, eax
je 0x4028c2
call eax
test eax, eax
je 0x4028a9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4065f4]
test eax, eax
je 0x4028a9
test byte [ebp - 8], 1
jne 0x4028c2
cmp dword [0x40638c], 4
jb 0x4028bc
or byte [ebp + 0x12], 0x20
jmp 0x4028e1
xor eax, eax
jmp 0x4028f1
or byte [ebp + 0x12], 4
jmp 0x4028e1
mov eax, dword [0x4065e8]
test eax, eax
je 0x4028e1
call eax
mov ebx, eax
test ebx, ebx
je 0x4028e1
mov eax, dword [0x4065ec]
test eax, eax
je 0x4028e1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4065e4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402caa
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x402cd8
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x402cdf
cmp ebx, dword [eax + 4]
jae 0x402cdf
xor eax, eax
jmp 0x402ecf
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x402cf0
xor eax, eax
inc eax
jmp 0x402ece
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x402d06
cmp ecx, edx
jae 0x402e4b
cmp dword [eax + 4], 0
je 0x402d0f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x402cf7
cmp dword [ebp + 8], 0
je 0x402d31
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x402e4b
cmp eax, esi
jae 0x402e4b
mov eax, dword [0x4065f8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x402d56
cmp dword [esi*4 + 0x406600], edi
je 0x402e4f
inc esi
cmp esi, eax
jl 0x402d44
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x402ecb
cmp dword [ebp - 8], 0x1000000
jne 0x402ecb
test byte [ebp - 0xc], 0xcc
je 0x402dd4
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x402ecb
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x402ecb
cmp word [eax + 0x18], 0x10b
jne 0x402ecb
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x402ecb
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x402dd4
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x402dd4
test byte [ecx + 0x27], 0x80
jne 0x402e4b
push 1
push 0x406640
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x402ce8
mov ecx, dword [0x4065f8]
test ecx, ecx
mov edx, ecx
jle 0x402e08
lea eax, [ecx*4 + 0x4065fc]
cmp dword [eax], edi
je 0x402e08
dec edx
sub eax, 4
test edx, edx
jg 0x402dfc
test edx, edx
jne 0x402e39
push 0xf
pop ebx
cmp ecx, ebx
jg 0x402e15
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x402e2d
lea eax, [edx*4 + 0x406600]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x402e1b
cmp ecx, 0x10
jge 0x402e39
inc ecx
mov dword [0x4065f8], ecx
push 0
push 0x406640
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x402ce8
xor eax, eax
jmp 0x402ece
test esi, esi
jle 0x402ce8
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x406640
call ebx
test eax, eax
jne 0x402ce8
cmp dword [esi*4 + 0x406600], edi
je 0x402ea5
mov eax, dword [0x4065f8]
lea esi, [eax - 1]
test esi, esi
jl 0x402e93
cmp dword [esi*4 + 0x406600], edi
je 0x402e8f
dec esi
jns 0x402e83
test esi, esi
jge 0x402ea3
cmp eax, 0x10
jge 0x402e9e
inc eax
mov dword [0x4065f8], eax
lea esi, [eax - 1]
jmp 0x402ea5
je 0x402ebd
xor ecx, ecx
test esi, esi
jl 0x402ebd
lea eax, [ecx*4 + 0x406600]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x402eab
push 0
push 0x406640
call ebx
jmp 0x402ce8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x1002a5f
Capabilities:
Open clipboard

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001464
call fcn.01004c8a
pop ecx
push 0xffffffffffffffff
push dword [0x10091e0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
mov esi, eax
test esi, esi
jne 0x1002a99
push dword [0x10091e0]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x1003285
Capabilities:
Delete file
Delete registry value
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x10091b8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x10
pop ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x101
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x21c]
push eax
push 0xffffffffffffffff
xor esi, esi
push edi
push esi
push esi
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x21c]
push eax
push 0x1001768
call fcn.01004c8a
pop ecx
mov dword [ebp - 0x22c], esi
mov esi, dword [0x1009424]
pop ecx
jmp 0x1003327
lea eax, [esi + 0x208]
push eax
push 0x1001754
call fcn.01004c8a
pop ecx
pop ecx
lea eax, [ebp - 0x21c]
push eax
lea eax, [esi + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1003330
mov dword [ebp - 0x22c], esi
mov esi, dword [esi + 0x41c]
test esi, esi
jne 0x10032f0
jmp 0x100348d
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x16]
push eax
mov byte [ebp - 0x17], 0x5c
mov byte [ebp - 0x18], 0x5c
mov dword [ebp - 0x228], ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov bl, byte [edi]
lea eax, [ebp - 0x18]
push eax
push edi
push 0x1001738
mov byte [edi], 0x24
call fcn.01004c8a
add esp, 0xc
push 0
push edi
lea eax, [ebp - 0x18]
push eax
call sub.NDdeApi.dll_Ordinal_501
test eax, eax
mov dword [ebp - 0x234], eax
mov byte [edi], bl
jne 0x100346d
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push 2
lea eax, [ebp - 0x230]
push eax
call fcn.01002dc8
test eax, eax
jne 0x10033b5
push edi
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10033c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100171c
call fcn.01004c8a
pop ecx
pop ecx
push dword [ebp - 0x220]
call sub.USER32.dll_DdeImpersonateClient
push 0
push 0
push 0x306
push dword [0x1009448]
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x22c]
test eax, eax
jne 0x1003406
mov eax, dword [esi + 0x41c]
mov dword [0x1009424], eax
jmp 0x1003412
mov ecx, dword [esi + 0x41c]
mov dword [eax + 0x41c], ecx
push dword [esi + 0x40c]
push dword [0x10091f0]
call sub.USER32.dll_DdeFreeStringHandle
mov eax, dword [esi + 0x414]
test eax, eax
je 0x1003433
push eax
call sub.USER32.dll_DdeFreeDataHandle
mov eax, dword [esi + 0x418]
test eax, eax
je 0x1003443
push eax
call sub.USER32.dll_DdeFreeDataHandle
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [0x1009a80]
push dword [0x1009450]
push dword [0x10091f0]
call sub.USER32.dll_DdePostAdvise
mov dword [ebp - 0x224], 1
jmp 0x100349a
push eax
push 0x10016f8
call fcn.01004c8a
pop ecx
pop ecx
push dword [ebp - 0x234]
push 0x20
push dword [ebp - 0x220]
call fcn.01002f42
push edi
push 0x10016cc
call fcn.01004c8a
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x224]
pop edi
pop esi
pop ebx
call fcn.01007021
leave
ret 8
Function at 0x1003b69
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x10091b8]
and dword [ebp - 0x98], 0
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x90
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x1003ba5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1003c22
push ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movzx eax, ax
cdq
mov ecx, 0x2710
idiv ecx
mov ebx, edx
movzx eax, bx
push eax
lea eax, [ebp - 0x94]
push eax
push 0x1001a28
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push esi
inc ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x1003c18
mov ax, word [ebp - 0x98]
inc dword [ebp - 0x98]
cmp ax, 0x2710
jb 0x1003bb9
push 0x10019ec
call fcn.01004c8a
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1003c21
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.01007021
leave
ret 4

Function at 0x1003d5a
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x10091b8]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10c]
xor edi, edi
push eax
inc edi
push esi
mov dword [0x1009a8c], edi
call fcn.010035d5
mov ebx, eax
test ebx, ebx
lea eax, [ebp - 0x10c]
je 0x1003dc0
push edi
push eax
push esi
push dword [0x1009448]
call fcn.010063c9
push ebx
mov dword [ebp - 0x110], eax
call fcn.01003596
push esi
push 0x1009320
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x1003e5b
push eax
call fcn.01003b69
test eax, eax
jne 0x1003e78
push edi
lea eax, [ebp - 0x10c]
push eax
push esi
push dword [0x1009448]
call fcn.010063c9
test eax, eax
mov dword [ebp - 0x110], eax
jne 0x1003e78
movzx eax, word [ebp + 0xc]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
call fcn.010034b4
test eax, eax
jne 0x1003e0b
push 8
pop eax
jmp 0x1003e78
push 2
lea eax, [ebp - 0x114]
push eax
call fcn.01002dc8
test eax, eax
jne 0x1003e5b
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x10c]
push eax
push edi
push 0
push esi
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0x1001a6c
call fcn.01004c8a
pop ecx
pop ecx
push dword [0x1009a80]
push dword [0x1009450]
push dword [0x10091f0]
call sub.USER32.dll_DdePostAdvise
mov eax, dword [ebp - 0x110]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007021
leave
ret 8
Function at 0x1004d1d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x10091b8]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 4], eax
je 0x1004dd5
cmp ebx, edi
je 0x1004dd5
mov eax, dword [0x1009a98]
neg eax
sbb eax, eax
and eax, 0x53
add eax, 0x59
imul eax, dword [ebp + 0x10]
push edi
push edi
add eax, 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x1009a98], edi
lea eax, [ebp - 0x64]
push edi
push eax
je 0x1004d8f
mov edi, 0xac
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x64], edi
je 0x1004dd0
push 0x1001f00
jmp 0x1004dda
push 0x59
lea eax, [ebp - 0x60]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x64], 0x59
je 0x1004da9
push 0x1001eec
jmp 0x1004dda
movzx eax, word [ebp - 0x60]
mov dword [esi], eax
mov eax, dword [ebp - 0x5e]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x5a]
push 0x4f
mov dword [esi + 8], eax
add esi, 0xc
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x56]
push eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
inc eax
jmp 0x1004de2
push 0x1001ed0
call fcn.01004c8a
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007021
leave
ret 0xc

Function at 0x1004df6
Capabilities:
Write clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x10091b8]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x1001f74
mov dword [ebp - 4], eax
call fcn.01004c8a
pop ecx
push edi
call fcn.01004c90
mov ebx, eax
test ebx, ebx
jne 0x1004e32
mov ax, 1
jmp 0x1004ef7
push esi
call fcn.01002a5f
test eax, eax
jne 0x1004e50
push 0x1001f58
call fcn.01004c8a
pop ecx
mov ax, 2
jmp 0x1004ef7
call dword [sym.imp.USER32.dll_EmptyClipboard]
and dword [ebp - 0xb4], 0
test ebx, ebx
jbe 0x1004eef
mov esi, dword [sym.imp.USER32.dll_SetClipboardData]
push dword [ebp - 0xb4]
lea eax, [ebp - 0xb0]
push eax
push edi
call fcn.01004d1d
cmp dword [ebp - 0xb0], 0xc000
jb 0x1004e9d
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov dword [ebp - 0xb0], eax
push dword [ebp - 0xb0]
push 0x1001f30
call fcn.01004c8a
pop ecx
pop ecx
push 0
push dword [ebp - 0xb0]
call esi
cmp dword [ebp - 0xb0], 8
jne 0x1004ec8
push 0
push 2
call esi
inc dword [ebp - 0xb4]
cmp dword [ebp - 0xb4], ebx
jb 0x1004e6b
test ebx, ebx
jbe 0x1004eef
push 0x1001f14
call fcn.01004c8a
pop ecx
mov dword [0x1009bac], 1
call fcn.01002aa5
xor ax, ax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007021
leave
ret 8