joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c0af1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ecx, dword [eax + 8]
push 0xfffffffffffffff0
add ecx, 0x646c6f47
pop esi
xor word [eax + 0xc], cx
xor word [eax + 0xe], cx
xor dword [eax + 0x110], ecx
xor byte [eax + 0x114], cl
mov dword [ebp + 8], ecx
lea ecx, [eax + 0x10]
sub esi, eax
mov edi, pe_nt_image_headers32
lea eax, [ecx + esi]
push 4
cdq
pop ebx
idiv ebx
mov al, byte [edx + ebp + 8]
xor byte [ecx], al
inc ecx
dec edi
jne 0x5c0b27
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x5c0b3f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov eax, dword [eax + 8]
mov edi, pe_nt_image_headers32
add eax, 0x646c6f47
xor esi, esi
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 7]
mov eax, esi
push 4
cdq
pop ebx
idiv ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dl, byte [edx + ebp + 0x10]
xor dl, byte [esi + eax]
inc esi
mov byte [ecx], dl
inc ecx
dec edi
jne 0x5c0b60
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x5c0bc7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov byte [esi], 0x4d
mov byte [esi + 1], 0x48
mov eax, dword [edi]
mov al, byte [eax]
mov byte [esi + 2], al
mov eax, dword [edi]
mov al, byte [eax + 1]
mov byte [esi + 3], al
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov dword [esi + 4], eax
call fcn.005c0c74
mov dword [esi + 8], eax
mov ecx, dword [edi]
add eax, 0x646c6f47
and dword [ebp + 0xc], 0
mov cx, word [ecx + 2]
mov dword [ebp + 8], eax
xor cx, ax
mov word [esi + 0xc], cx
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x12]
mov ecx, dword [ecx]
xor ecx, eax
mov dword [esi + 0x110], ecx
mov ecx, dword [edi]
mov cx, word [ecx + 8]
xor cx, ax
mov word [esi + 0xe], cx
mov ecx, dword [edi]
mov cl, byte [ecx + 0x16]
xor cl, al
mov byte [esi + 0x114], cl
mov ecx, dword [edi]
cmp word [ecx + 4], 0
jbe 0x5c0c70
push ebx
movzx eax, word [ebp + 0xc]
push 4
mov ecx, dword [ecx + 0xe]
cdq
pop ebx
idiv ebx
movzx eax, word [ebp + 0xc]
mov dl, byte [edx + ebp + 8]
xor dl, byte [eax + ecx]
inc dword [ebp + 0xc]
mov byte [eax + esi + 0x10], dl
mov ecx, dword [edi]
mov ax, word [ebp + 0xc]
cmp ax, word [ecx + 4]
jb 0x5c0c44
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x5c0d1c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add dword [ebp + 0x10], 0x646c6f47
push edi
xor edi, edi
mov ecx, dword [eax]
cmp word [ecx + 6], di
jbe 0x5c0d60
push esi
push ebx
movzx esi, di
mov eax, esi
push 4
cdq
pop ebx
mov ecx, dword [ecx + 0xa]
idiv ebx
mov al, byte [edx + ebp + 0x10]
mov edx, dword [ebp + 0xc]
xor al, byte [esi + edx + 7]
inc edi
mov byte [esi + ecx], al
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp di, word [ecx + 6]
jb 0x5c0d36
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x5c1226
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push es
mov ax, 0x101f
mov es, ax
xor eax, eax
mov esi, eax
mov ecx, 0x8000
xor al, byte es:[esi]
inc esi
loop 0x5c123e
pop es
mov byte [ebp - 4], al
movzx eax, byte [ebp - 4]
test eax, eax
jne 0x5c1254
mov byte [ebp - 4], 0x55
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
mov byte [eax], cl
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4a3760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x85000]
push edi
or ebp, 0xffffffff
jmp 0x4a3782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4a3789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a3778
mov eax, 1
add ebx, ebx
jne 0x4a379b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4a37ac
jne 0x4a37cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a37cb
dec eax
add ebx, ebx
jne 0x4a37b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4a3790
add ebx, ebx
jne 0x4a37c7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4a381d
xor ecx, ecx
sub eax, 3
jb 0x4a37e3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4a3852
sar eax, 1
mov ebp, eax
jmp 0x4a37ee
add ebx, ebx
jne 0x4a37ee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a37bc
inc ecx
add ebx, ebx
jne 0x4a37fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a37bc
add ebx, ebx
jne 0x4a3809
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4a37fe
jne 0x4a381a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4a37fe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4a383c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4a382e
jmp 0x4a377e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4a383c
add edi, ecx
jmp 0x4a377e
pop esi
mov edi, esi
mov ecx, 0x26a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4a385a
cmp byte [edi], 8
jne 0x4a385a
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 0x4a385f
lea edi, [esi + 0xa1000]
mov eax, dword [edi]
or eax, eax
je 0x4a38d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa8bb8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa8bf4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4a388c
mov ecx, edi
jns 0x4a38bb
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 + 0xa8bf8]
or eax, eax
je 0x4a38d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4a38a9
call dword [esi + 0xa8c08]
popal
jmp 0x402584
Function at 0x403b67
Capabilities:
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc38
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0x81dca0], 0x594
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x403b9f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov eax, dword [0x80e738]
mov dword [ebp - 0x24], eax
mov eax, dword [0x80e73c]
mov dword [ebp - 0x2c], eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.00403b60
mov eax, dword [0x80e740]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x80e744]
add ebx, 0x23f
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
shl eax, 4
cmp dword [0x81dca0], 0xc
mov dword [ebp - 4], eax
jne 0x403c43
lea eax, [ebp - 0x438]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc38]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x38]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x81dca0]
cmp eax, 0xfa9
jne 0x403c5f
mov dword [0x81d23c], 0xedeb2e40
cmp eax, 0x3eb
jne 0x403c6c
mov dword [0x81cbe8], esi
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea eax, [ebx + edx]
shr edx, cl
mov dword [ebp - 0x14], eax
mov dword [0x81d238], 0xf4ea3dee
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x81dca0], 0x213
mov dword [ebp - 0x14], edx
jne 0x403caa
push 0x403604
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
cmp dword [0x81dca0], 0xc
jne 0x403cd7
lea eax, [ebp - 0x14]
push eax
push esi
push esi
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_BackupWrite]
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.00403b5a
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, edx
shr eax, cl
lea edi, [ebx + edx]
add ebx, 0x61c88647
add eax, dword [ebp - 0x2c]
xor eax, edi
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
dec dword [ebp - 0x18]
jne 0x403bdb
cmp dword [0x81dca0], 0xa6d
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov dword [edi], eax
pop ebx
jne 0x403d32
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov edx, dword [ebp - 0xc]
mov dword [edi + 4], edx
pop edi
pop esi
leave
ret 4
Function at 0x404095
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x81dca0], 0x400
push edi
jne 0x4040f5
push esi
call fcn.004044b9
pop ecx
push esi
call fcn.004046a2
pop ecx
push esi
push esi
call fcn.004049c2
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00403ad7
fstp st(0)
push ecx
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00403ab4
fstp st(0)
push esi
call fcn.00404c20
pop ecx
push esi
push esi
call fcn.00404547
pop ecx
pop ecx
mov eax, dword [0x813be4]
mov dword [0x81dca0], eax
mov eax, dword [0x813bbc]
mov dword [0x81dca4], eax
call fcn.00403dd4
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
cmp dword [esp + 0x10], ebx
jle 0x404164
cmp dword [esp + 0x18], 0x785074d5
jne 0x404172
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x404117
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x40382c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea eax, [esp + 0x14]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadSelectorEntry]
cmp edi, ebx
jle 0x4041a3
cmp dword [esp + 0x18], 0x785074d5
jne 0x4041ac
inc edi
cmp edi, 0x11915
jl 0x404174
mov eax, dword [0x81cbf0]
mov dword [0x81d234], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x405590
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80d118]
jne 0x40559a
repz ret
jmp fcn.0040a182
Function at 0x409ea5
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.0040825e
and dword [ebp - 4], 0
cmp dword [0x8144a4], 0
mov ebx, eax
jne 0x409f56
push 0x4023e8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a007
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4023dc
push edi
call esi
test eax, eax
je 0x40a007
push eax
call fcn.004081ec
mov dword [esp], 0x4023cc
push edi
mov dword [0x8144a4], eax
call esi
push eax
call fcn.004081ec
mov dword [esp], 0x4023b8
push edi
mov dword [0x8144a8], eax
call esi
push eax
call fcn.004081ec
mov dword [esp], 0x40239c
push edi
mov dword [0x8144ac], eax
call esi
push eax
call fcn.004081ec
pop ecx
mov dword [0x8144b4], eax
test eax, eax
je 0x409f56
push 0x402384
push edi
call esi
push eax
call fcn.004081ec
pop ecx
mov dword [0x8144b0], eax
mov eax, dword [0x8144b0]
cmp eax, ebx
je 0x409fae
cmp dword [0x8144b4], ebx
je 0x409fae
push eax
call fcn.00408267
push dword [0x8144b4]
mov esi, eax
call fcn.00408267
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409fae
test edi, edi
je 0x409fae
call esi
test eax, eax
je 0x409fa5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409fa5
test byte [ebp - 0xc], 1
jne 0x409fae
or dword [ebp + 0x10], 0x200000
jmp 0x409fe7
mov eax, dword [0x8144a8]
cmp eax, ebx
je 0x409fe7
push eax
call fcn.00408267
pop ecx
test eax, eax
je 0x409fe7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409fe7
mov eax, dword [0x8144ac]
cmp eax, ebx
je 0x409fe7
push eax
call fcn.00408267
pop ecx
test eax, eax
je 0x409fe7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x8144a4]
call fcn.00408267
pop ecx
test eax, eax
je 0x40a007
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a009
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40550a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x40561f
mov edx, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0xf
je 0x40558b
cmp dword [ebp - 0x1c], 0x10
je 0x40553d
jmp 0x40561f
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp dword [eax + 0x58], 0
setne cl
test ecx, ecx
jne 0x40555a
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18]
call dword [eax + 0x14]
jmp 0x405586
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x58]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
je 0x405573
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
jmp 0x40557a
mov dword [ebp - 0x20], 0
push 9
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40561f
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp dword [eax + 0x58], 0
setne cl
test ecx, ecx
je 0x40561f
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x2c]
and eax, 2
neg eax
sbb eax, eax
inc eax
test eax, eax
je 0x4055f3
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
jmp 0x4055c5
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x2c]
and eax, 2
neg eax
sbb eax, eax
inc eax
test eax, eax
je 0x4055d9
jmp 0x4055bc
mov ecx, dword [ebp - 4]
mov dl, byte [ecx + 0x38]
mov byte [ebp - 0x10], dl
mov eax, dword [ebp - 0x10]
and eax, 0xff
cmp eax, 0xf0
jl 0x4055f3
jmp 0x40561f
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x58]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
je 0x40560c
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
jmp 0x405613
mov dword [ebp - 0x24], 0
push 0
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0040a649
mov esp, ebp
pop ebp
ret 4
Function at 0x406775
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 0xc], 0
je 0x406793
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax + 0x441df4]
test ecx, ecx
je 0x40686d
mov edx, dword [ebp + 0xc]
mov eax, dword [edx*4 + 0x4421a4]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4067b5
mov dword [0x433b4c], 0
jmp 0x40692b
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx*4 + 0x441dd8]
add edx, 1
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [0x433b4c], eax
mov ecx, dword [0x433b4c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
test eax, eax
je 0x406829
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0xd
jne 0x40680b
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + 1]
cmp ecx, 0xa
jne 0x40680b
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x406827
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x4067df
mov edx, dword [ebp - 8]
mov byte [edx], 0
mov eax, dword [ebp - 8]
sub eax, dword [0x433b4c]
mov dword [0x44217c], eax
push 0x11
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
call dword [edx + 8]
mov eax, dword [0x433b4c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [0x433b4c], 0
jmp 0x40692b
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x40687e
jmp 0x40692b
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x406925
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [0x433b4c], eax
mov eax, dword [0x433b4c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
test eax, eax
je 0x4068fa
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx]
cmp edx, 0xd
jne 0x4068dc
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax + 1]
cmp ecx, 0xa
jne 0x4068dc
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
jmp 0x4068f8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x4068b0
mov edx, dword [ebp - 0x14]
mov byte [edx], 0
mov eax, dword [ebp - 0x14]
sub eax, dword [0x433b4c]
mov dword [0x44217c], eax
push 0x11
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
call dword [edx + 8]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov esp, ebp
pop ebp
ret
Function at 0x409e3d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x409e57
push 0x434e60
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
je 0x409eac
push str.none
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x409e93
push str.base
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x409e93
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
test eax, eax
jne 0x409e9c
mov dword [ebp + 8], 0
jmp 0x409eac
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll__strdup]
add esp, 4
mov dword [ebp + 8], eax
cmp dword [0x442860], 0
je 0x409ec5
mov edx, dword [0x442860]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [ebp + 8]
mov dword [0x442860], eax
push str.FLTK_SCHEME
push 0x442428
call sub.MSVCRT.dll_strcpy
add esp, 8
cmp dword [ebp + 8], 0
je 0x409efb
push 0x400
mov ecx, dword [ebp + 8]
push ecx
push 0x442428
call fcn.00412840
add esp, 0xc
push 0x442428
call dword [sym.imp.MSVCRT.dll__putenv]
add esp, 4
call fcn.00409f10
pop ebp
ret
Function at 0x4030e4
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x403120
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x403140
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404e34
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403378
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.00404bc4
test esi, esi
jne 0x4033ae
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.00404cb4
jmp 0x4033cc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040327c
mov edi, eax
test esi, esi
je 0x4033cc
cmp dword [ebx], 0
je 0x4033cc
dec esi
jmp 0x4033b5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403ab0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x48b020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403b48
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403b28
xor eax, eax
push ebp
push 0x403b21
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403b64
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403b28
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x48b020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x48b020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404a44
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48e04c], 0
je 0x404aa5
cmp word [0x48e220], 0xd7b2
jne 0x404a6d
cmp dword [0x48e228], 0
jbe 0x404a6d
mov eax, 0x48e21c
call dword [0x48e238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404acc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48b02c], 0
jne 0x404ac1
push 0
push 0x48b750
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret