joyce8/EMBER2024-capa huggingface dataset:
Function at 0x90c4770
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x90d4bd2
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xb20
mov eax, dword [0x91154f8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 0x18]
push eax
mov dword [ebp - 0xb2c], eax
call fcn.09001c27
add esp, 4
lea ecx, [ebp - 0xb24]
push eax
call fcn.09001c27
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
push dword [ebp - 0xb24]
mov dword [ebp - 4], 0
push esi
call fcn.09009307
add esp, 0x3c
lea ecx, [ebp - 0xb20]
push eax
call fcn.09001c27
mov byte [ebp - 4], 1
xor eax, eax
nop dword [eax]
nop dword [eax + eax]
mov byte [ebp + eax - 0x118], al
inc eax
cmp eax, 0x100
jb 0x90c4820
mov ecx, dword [ebp - 0xb20]
lea eax, [ebp - 0x918]
push 0
push 0x5058595a
push 0x67386b30
push 0x100
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.09001c27
movzx ecx, word [ebp - 0x11c]
movzx edi, word [ebp - 0x914]
mov dword [ebp - 0xb28], ecx
cmp ecx, edi
jbe 0x90c499a
mov edx, ecx
sub edx, edi
xor esi, esi
mov dword [ebp - 0xb1c], edx
movzx eax, word [ebp + esi*8 - 0x914]
cmp eax, edi
ja 0x90c4891
xor eax, eax
jmp 0x90c48be
cmp eax, ecx
jb 0x90c489c
mov eax, 0x8000
jmp 0x90c48be
sub eax, edi
mov ecx, edx
shl eax, 0xf
xor edx, edx
shr ecx, 1
add eax, ecx
mov ecx, dword [ebp - 0xb28]
div dword [ebp - 0xb1c]
mov edx, dword [ebp - 0xb1c]
movzx eax, ax
mov word [ebp + esi*2 - 0xb18], ax
inc esi
cmp esi, 0x100
jb 0x90c4881
lea ecx, [ebp - 0xb20]
mov byte [ebp - 4], 0
call fcn.090198a7
lea ecx, [ebp - 0xb24]
mov dword [ebp - 4], 0xffffffff
call fcn.0901e58a
mov esi, dword [ebp - 0xb2c]
lea eax, [esi + 8]
push eax
push 0x280
mov dword [ebp - 0xb2c], eax
call fcn.09001c27
add esp, 8
mov dword [ebp - 0xb28], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x90c492a
push esi
mov ecx, eax
call fcn.09001c27
mov edx, eax
jmp 0x90c492c
xor edx, edx
movsd xmm1, qword [ebx + 0x10]
xorps xmm0, xmm0
mov eax, dword [ebx + 0xc]
mulsd xmm1, qword [0x90e7a70]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
comisd xmm0, xmm1
mov dword [edx + 0x70], ecx
mov dword [edx + 0x74], eax
jbe 0x90c495a
subsd xmm1, qword [0x90dd3d8]
jmp 0x90c4962
addsd xmm1, qword [0x90dd3d8]
cvttsd2si eax, xmm1
lea edi, [edx + 0x7a]
mov ecx, 0x80
lea esi, [ebp - 0xb18]
rep movsd dword es:[edi], dword [esi]
mov word [edx + 0x78], ax
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.09002290
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x6250726f
call fcn.09001c27
int3
Function at 0x40b4ef
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b891c
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x50c924]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push dword [ebx + 0x20]
mov esi, dword [0x50fc84]
lea eax, [ebp - 0x20]
push dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x30]
push eax
mov dword [ebp - 0x18], esi
call fcn.00477030
push dword [ebx + 0x3c]
call fcn.00403077
pop ecx
mov ecx, dword [ebx + 0x3c]
mov dword [ebp - 0x14], eax
mov edx, dword [ecx]
call dword [edx]
mov ecx, dword [esi + 0x10]
mov esi, dword [ebp - 0x1c]
sub ecx, esi
dec ecx
lea edi, [eax + 2]
cmp ecx, edi
jge 0x40b55f
mov byte [ebp - 0xd], 1
cmp ecx, esi
jl 0x40b563
mov byte [ebp - 0xd], 0
mov edx, dword [ebp - 0x20]
xor ecx, ecx
dec edx
inc ecx
mov eax, edi
mov dword [ebp - 0x30], edx
neg eax
cmp byte [ebp - 0xd], 0
push 0x8c
cmovne ecx, eax
mov eax, dword [ebp - 0x14]
add ecx, esi
add eax, 4
add eax, edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
lea eax, [ecx + edi]
mov dword [ebp - 0x24], eax
call fcn.0049055f
mov edx, eax
pop ecx
test edx, edx
je 0x40b5cd
mov ecx, dword [ebx + 0x3c]
lea esi, [ebp - 0xe]
push 3
pop eax
push 1
push ecx
push ecx
mov word [ebp - 0xe], ax
mov eax, esp
push ecx
push 0
mov ecx, edx
mov dword [eax], esi
mov dword [eax + 4], 0x4041d1
lea eax, [ebp - 0x30]
push eax
call fcn.00402198
mov edi, eax
jmp 0x40b5cf
xor edi, edi
mov eax, 0xfff7
mov byte [edi + 0x64], 0
and word [edi + 0x18], ax
mov ecx, edi
mov al, byte [ebx + 0x2c]
and al, 0xfb
or al, 0xa
mov byte [edi + 0x2c], al
mov ax, word [ebx + 0x40]
add ax, word [ebp + 8]
movzx eax, ax
push eax
call fcn.004030f1
mov ecx, dword [ebp - 0x18]
push edi
call fcn.004797c9
cmp ax, 0xa
jne 0x40b63a
movzx esi, word [ebx + 0x40]
mov ecx, edi
call fcn.00402bda
mov ecx, ebx
mov word [ebx + 0x40], ax
call fcn.00476a9c
cmp si, word [ebx + 0x40]
je 0x40b63a
push ebx
push 0x3e9
push 0x200
push dword [ebx + 0x30]
call fcn.00475b52
add esp, 0x10
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4106c1
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, 0x50b00c
push esi
push dword [ebp + 0x10]
push ebx
call fcn.00411a9f
add esp, 0xc
test al, al
je 0x4106ef
push dword [ebp + 8]
push ebx
call fcn.0049eae2
pop ecx
pop ecx
test eax, eax
je 0x410736
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00411a9f
add esp, 0xc
test al, al
je 0x41073a
push ebx
call fcn.00412b23
pop ecx
test al, al
je 0x410736
push ebx
call fcn.0049ea78
pop ecx
test eax, eax
je 0x410736
mov edi, dword [ebp + 0x14]
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
call fcn.0049d632
push dword [eax]
call fcn.0049efc7
pop ecx
push eax
push ebx
push dword [ebp + 8]
mov ecx, edi
call esi
mov al, 1
jmp 0x410758
mov edi, dword [ebp + 0x14]
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
call fcn.0049d632
push dword [eax]
call fcn.0049efc7
pop ecx
push eax
push ebx
push dword [ebp + 8]
mov ecx, edi
call esi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x411bfb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
test eax, eax
jg 0x411c1f
jl 0x411c16
test ebx, ebx
jne 0x411c1f
xor eax, eax
xor edx, edx
jmp 0x411cdc
cmp dword [esi + 0x38], 0
je 0x411c34
push eax
push ebx
push dword [ebp + 8]
call fcn.0040b9cc
jmp 0x411cdc
mov eax, dword [esi + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x411c77
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x411c77
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [ebp + 8]
cmovb esi, dword [eax]
push esi
push ecx
push edi
call fcn.00492260
mov ecx, dword [ebp - 4]
add edi, esi
mov dword [ebp + 8], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
jmp 0x411c7d
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [esi + 0x4c], 0
je 0x411cd1
mov ecx, esi
call fcn.0040e66f
mov ecx, dword [ebp + 8]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x411cbc
push dword [esi + 0x4c]
push eax
push 1
push ecx
call fcn.0049e1ac
mov ecx, dword [ebp + 8]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp + 8], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x411cd1
jmp 0x411c8f
test edx, edx
je 0x411cd1
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.0049e1ac
add esp, 0x10
sub edi, eax
mov edx, dword [ebp + 0x10]
sub ebx, edi
mov eax, ebx
sbb edx, 0
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x413dda
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
lea eax, [edx - 1]
push edi
mov edi, dword [ebp + 0xc]
mov esi, edi
sar eax, 1
mov ecx, edi
mov dword [ebp + 0xc], esi
mov dword [ebp - 4], eax
cmp edi, eax
jge 0x413e2b
lea esi, [ecx + ecx]
push dword [ebx + esi*4 + 4]
mov ecx, dword [ebx + esi*4 + 8]
call fcn.004165d0
movzx ecx, al
xor ecx, 1
inc ecx
add ecx, esi
mov eax, dword [ebx + ecx*4]
mov dword [ebx + edi*4], eax
mov edi, ecx
mov eax, dword [ebp - 4]
cmp ecx, eax
jl 0x413dfd
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
cmp ecx, eax
jne 0x413e3e
test dl, 1
jne 0x413e3e
mov eax, dword [ebx + edx*4 - 4]
mov dword [ebx + edi*4], eax
lea edi, [edx - 1]
cmp esi, edi
jge 0x413e65
mov eax, dword [ebp + 0x14]
lea esi, [edi - 1]
sar esi, 1
push dword [eax]
mov ecx, dword [ebx + esi*4]
call fcn.004165d0
test al, al
je 0x413e65
mov eax, dword [ebx + esi*4]
mov dword [ebx + edi*4], eax
mov edi, esi
cmp dword [ebp + 0xc], esi
jl 0x413e42
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [ebx + edi*4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x413e72
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea edx, [eax - 1]
mov ebx, edx
mov dword [ebp + 0xc], edx
mov edx, dword [ebp + 8]
mov ecx, edi
sar ebx, 1
mov dword [ebp - 4], edi
cmp edi, ebx
jge 0x413ed0
lea esi, [ecx + ecx]
lea ecx, [esi + 2]
shl ecx, 4
add ecx, edx
lea eax, [ecx - 0x10]
push eax
call fcn.004165d0
mov edx, dword [ebp + 8]
lea ecx, [esi + 1]
movzx eax, al
xor eax, 1
shl edi, 4
add ecx, eax
add edi, edx
mov esi, ecx
shl esi, 4
add esi, edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, ecx
cmp ecx, ebx
jl 0x413e95
mov eax, dword [ebp + 0x10]
cmp ecx, ebx
jne 0x413eec
test al, 1
jne 0x413eec
shl eax, 4
shl edi, 4
lea esi, [eax - 0x10]
add esi, edx
add edi, edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0xc]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 4]
push edi
push edx
call fcn.00413f70
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41d039
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
xor edx, edx
movsx eax, byte [edi]
shl eax, 7
cmp dword [ebp + 0x10], edx
jbe 0x41d05f
movsx ecx, byte [edx + edi]
imul eax, eax, 0xf4243
xor eax, ecx
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x41d04d
imul eax, eax, 0xf4243
pop edi
xor eax, dword [ebp + 0x10]
imul eax, eax, 0xf4243
xor eax, dword [ebp + 8]
pop ebp
ret
Function at 0x42ee9a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
lea esi, [edx - 1]
mov eax, esi
mov dword [ebp - 4], esi
sar eax, 1
push edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
mov dword [ebp - 8], edi
mov dword [ebp + 0xc], eax
cmp edi, eax
jge 0x42eef2
lea esi, [ecx + ecx]
mov ecx, dword [ebp + 0x18]
push dword [ebx + esi*4 + 4]
push dword [ebx + esi*4 + 8]
call fcn.0042feec
movzx ecx, al
xor ecx, 1
inc ecx
add ecx, esi
mov eax, dword [ebx + ecx*4]
mov dword [ebx + edi*4], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
cmp ecx, eax
jl 0x42eec1
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp - 4]
cmp ecx, eax
jne 0x42ef04
test dl, 1
jne 0x42ef04
mov eax, dword [ebx + edx*4 - 4]
mov dword [ebx + edi*4], eax
mov edi, esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 8]
push edi
push ebx
call fcn.0042f0fa
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret
Function at 0x489a16
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bcbd9
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x50c924]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00489bb9
lea eax, [ebp + 8]
mov ecx, esi
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0048921d
mov eax, dword [ebp - 0x3c]
cmp eax, dword [esi + 4]
jne 0x489b2e
or ebx, 0xffffffff
mov byte [ebp - 0x31], bl
cmp dword [esi + 0x20], ebx
je 0x489b29
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.00489c3c
mov edi, eax
pop ecx
pop ecx
test edi, edi
jle 0x489b16
push 0x23
pop eax
mov word [ebp + edi*2 - 0x18], ax
xor eax, eax
push eax
push dword [esi + 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push 0
push 0
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
lea eax, [ebp - 0x30]
or bl, bl
push eax
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x489b16
mov bl, byte [ebp - 0x2c]
dec bl
mov byte [ebp - 0x31], bl
mov bh, bl
cmp bl, 1
jle 0x489b16
mov ax, word [ebp - 0x2a]
xor edi, edi
and dword [ebp - 0x3c], 0
inc edi
mov word [ebp - 0x36], ax
lea eax, [ebp - 0x3c]
push eax
mov word [ebp - 0x38], di
lea eax, [ebp - 0x38]
push dword [ebp - 0x38]
push edi
push eax
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
cmp dword [ebp - 0x3c], edi
jne 0x489b16
push 0x23
pop eax
cmp word [ebp - 0x38], ax
jne 0x489b16
or eax, 0xffffffff
mov byte [ebp - 0x31], al
mov bl, al
lea eax, [ebp - 0x31]
mov ecx, esi
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004897d1
movsx eax, bl
jmp 0x489b32
movsx eax, word [eax + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004908a3
leave
ret 4
Function at 0x489f08
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x50c924]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0xc]
call fcn.004914c0
movsx edi, word [ebp + 0x10]
mov ecx, esp
xor edx, edx
mov dword [ebp - 0x10], ecx
inc edx
mov al, byte [edi + 0x4d20b0]
mov byte [ecx], al
mov esi, dword [ebx + 0xc]
lea eax, [esi - 1]
cmp eax, edx
jle 0x489f57
mov al, byte [edi + 0x4d20b1]
mov byte [edx + ecx], al
inc edx
mov esi, dword [ebx + 0xc]
lea eax, [esi - 1]
cmp edx, eax
jl 0x489f43
mov al, byte [edi + 0x4d20b2]
mov byte [esi + ecx - 1], al
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x40]
mov edx, dword [eax + 8]
jmp 0x48a016
test byte [edx + 0x14], 8
je 0x48a010
test byte [edx + 0x18], 1
je 0x48a010
movsx esi, word [ebp + 0xc]
mov edi, dword [edx + 0x20]
cmp esi, edi
jge 0x489faa
lea ecx, [edi - 1]
mov eax, 0xa06
xor edi, edi
cmp esi, ecx
cmovne eax, edi
movzx eax, ax
mov dword [ebp - 0xc], eax
jne 0x48a010
mov ecx, dword [ebp - 0x10]
jmp 0x489fc2
mov eax, dword [edx + 0x10]
add eax, edi
cmp esi, eax
jge 0x489fb8
push 5
pop eax
jmp 0x489fbf
jne 0x48a010
mov eax, 0xa03
mov dword [ebp - 0xc], eax
mov edi, dword [ebx + 0xc]
xor esi, esi
inc esi
movzx eax, ax
cmp dword [edx + 0x1c], esi
mov dword [ebp - 0x14], eax
cmovg esi, dword [edx + 0x1c]
dec edi
mov eax, dword [edx + 0xc]
add eax, dword [edx + 0x1c]
cmp eax, edi
cmovl edi, eax
cmp esi, edi
jge 0x48a010
mov eax, dword [ebp - 0xc]
or byte [esi + ecx - 1], al
mov word [ebp - 6], ax
shr word [ebp - 6], 8
mov eax, dword [ebp - 0x14]
xor al, byte [ebp - 6]
or byte [edi + ecx], al
cmp byte [ebp - 0xc], 0
je 0x48a010
mov ax, word [ebp - 6]
or byte [esi + ecx], al
inc esi
cmp esi, edi
jl 0x48a008
mov edx, dword [edx + 8]
mov ecx, dword [ebp - 0x10]
cmp edx, ebx
jne 0x489f6f
xor edi, edi
cmp dword [ebx + 0xc], edi
jle 0x48a055
movzx eax, byte [edi + ecx]
mov ecx, dword [ebp + 8]
movzx esi, di
movzx eax, byte [eax + 0x50c72c]
push eax
push esi
call fcn.0047c154
push dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
push dword [ebp + 0x14]
push esi
call fcn.0047c12e
mov ecx, dword [ebp - 0x10]
inc edi
cmp edi, dword [ebx + 0xc]
jl 0x48a025
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004908a3
leave
ret 0x14
Function at 0x48bd73
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x50c924]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
jne 0x48bdd0
lea eax, [esi + 0xc]
cmp dword [eax + 0x14], 0x10
jb 0x48bd9b
mov eax, dword [eax]
push 0x104
lea ecx, [ebp - 0x228]
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi + 8], eax
jmp 0x48bde4
lea eax, [ebp - 0x254]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x48be59
cmp dword [esi + 8], 0xffffffff
je 0x48be60
lea eax, [ebp - 0x228]
mov ecx, esi
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.0048bc8c
mov edi, eax
mov ecx, esi
push edi
call fcn.0048bc53
test al, al
je 0x48bd8a
mov edx, dword [esi]
mov ecx, dword [ebp - 0x234]
mov dword [edx + 4], ecx
mov eax, dword [esi]
mov dword [eax + 8], edi
lea eax, [ebp - 0x254]
push dword [esi]
push eax
call fcn.0048bca7
mov eax, dword [esi]
pop ecx
pop ecx
xor ecx, ecx
add eax, 0x10
push ecx
push ecx
push 0x100
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x228]
push eax
push ecx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov al, 1
jmp 0x48be62
mov ecx, esi
call fcn.0048bc74
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004908a3
leave
ret

Function at 0x48cdab
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x28]
mov ax, word [ebp + 8]
mov word [ebp + 8], ax
mov ax, word [ebp + 0xc]
mov word [ebp + 0xa], ax
mov eax, dword [esi + 0xc]
push dword [ebp + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
pop esi
pop ebp
ret 8

Function at 0x48ce7b
Capabilities:
Open clipboard

Disassembly:
push esi
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x48ce9c
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 5
jl 0x48ce7e
xor al, al
pop esi
ret
mov al, 1
pop esi
ret
Function at 0x48ceb1
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x50c924]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
lea eax, [ebp - 0x24]
push edi
push eax
mov ecx, dword [ebx + 0xc]
call fcn.0048d74b
lea edi, [ebp - 0x1c]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebx + 0x1c], eax
xor eax, eax
stosd dword es:[edi], eax
mov dword [ebx + 0x18], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebx + 0xc]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov esi, dword [ebp - 0x18]
xor eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0xc]
push dword [eax + 0x10]
call edi
mov ax, word [ebx + 0x18]
mov word [ebp - 0x20], ax
mov ax, word [ebx + 0x1c]
mov word [ebp - 0x1e], ax
mov eax, dword [ebx + 0xc]
push dword [ebp - 0x20]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
mov eax, dword [ebx + 0xc]
push esi
push dword [eax + 0x10]
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004908a3
leave
ret

Function at 0x48cf47
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b855b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push edi
mov eax, dword [0x50c924]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor bl, bl
call fcn.0048ce7b
test al, al
je 0x48d00b
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x48d005
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x18], ebx
setne byte [ebp - 0xd]
test ebx, ebx
je 0x48d002
push ebx
call fcn.004a13a0
pop ecx
xor ecx, ecx
mov dword [ebp - 0x14], eax
push ecx
push ecx
push ecx
push ecx
push eax
push ebx
push ecx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
push ebx
call fcn.0047d2aa
pop ecx
push 0
push 0
push ebx
mov edi, eax
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ecx
push ecx
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
call dword [ebp + 8]
push edi
call fcn.004909df
add esp, 0xc
mov bl, byte [ebp - 0xd]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
leave
ret 4
Function at 0x48d080
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor bl, bl
call fcn.0048ce7b
test al, al
je 0x48d142
push esi
push edi
xor edi, edi
mov esi, edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x48d12b
mov eax, dword [ebp + 0xc]
test eax, eax
sete bl
test eax, eax
je 0x48d12b
push edi
push edi
push eax
push dword [ebp + 8]
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
je 0x48d12b
lea eax, [edi*2 + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x48d12b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
test eax, eax
je 0x48d12b
push edi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 4]
xor ecx, ecx
push esi
mov word [eax + edi*2], cx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
setne bl
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x48d135
call dword [sym.imp.USER32.dll_CloseClipboard]
test esi, esi
je 0x48d140
test bl, bl
jne 0x48d140
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 8

Function at 0x491a74
Capabilities:
Parse pe header

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

Function at 0x4a679a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4d8030
push 0x4d8028
push str.FlsAlloc
push 0x1e
call fcn.004a6607
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a67ce
push dword [ebp + 8]
mov ecx, esi
call dword [0x4be234]
call esi
jmp 0x4a67d4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4a6818
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4d8040
push 0x4d8038
push str.FlsGetValue
push 0x20
call fcn.004a6607
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a684f
push dword [ebp + 8]
mov ecx, esi
call dword [0x4be234]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]