joyce8/EMBER2024-capa huggingface dataset:
Function at 0xeb3f20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ecx
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 4], ebp
je 0xeb3fd7
mov eax, dword [esp + 0xc]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0xeb3fcf
push ebx
push edi
push 0xed7770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xeb3fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xed7770
push esi
call ebx
test eax, eax
je 0xeb3fae
mov ebp, 3
cmp dword [0xed7774], ebp
jne 0xeb3faa
push 0x3e8
call edi
push 0xed7770
push esi
call ebx
test eax, eax
jne 0xeb3f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xeb3fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xeb3fbb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ecx
ret
Function at 0xeb7e00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0xecd8f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0xeb7ed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.00eb47a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0xeb7e61
mov edx, dword [eax]
jmp 0xeb7e63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.00eb6050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0xeb7ebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xeb7ebf
cmp esi, edi
je 0xeb7ebf
mov ecx, esi
call fcn.00eafa00
push esi
call fcn.00ebd1c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.00eb4990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0xeb7ef5
mov eax, dword [eax]
jmp 0xeb7ef7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.00eb3640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0xeb7f25
mov eax, dword [eax]
jmp 0xeb7f27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0xeb7f76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xeb7f76
cmp esi, edi
je 0xeb7f76
mov eax, dword [esi]
cmp eax, edi
je 0xeb7f5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0xeb7f6d
push eax
call fcn.00ebd1c8
add esp, 4
push esi
call fcn.00ebd1c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xeb7f90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0xeb7ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xeb8035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.00eb7e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0xeb7fc5
mov edi, 0xed28b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xeb8035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00eb7e00
add edi, 4
add esp, 0xc
cmp edi, 0xed28c0
jb 0xeb8000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret
Function at 0xeb8f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xecd9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xeb9002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00ebcdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xeb9002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00eb46e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00ebd20b
push 0x10
call fcn.00ebd1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xeb8fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00ea91c0
jmp 0xeb8fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00eb8b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xeb8ff0
mov ecx, edi
call fcn.00ea92c0
push edi
call fcn.00ebd1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xeb9021
inc ebx
cmp ebx, 0x20
jb 0xeb8f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xeba250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xece808
push 0xebe288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xeba329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xeba329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00ebd1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xeba329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xeba329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xeba32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00eba351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xebb000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xebb131
push esi
call fcn.00ebe145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00ead080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xebb131
push 0
push ebp
call fcn.00ead3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00ead260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xebb08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00ead2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xebb121
push 0xed3918
push edi
call fcn.00ebc3f0
push eax
push ebx
push esi
call fcn.00ebaf60
push 0xed38f8
push edi
call fcn.00ebc3f0
push eax
push ebx
push esi
call fcn.00ebaf60
push 0xed38d8
push edi
call fcn.00ebc3f0
push eax
push ebx
push esi
call fcn.00ebaf60
push 0xed38c0
push edi
call fcn.00ebc3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00ebaf60
push 0xed38a0
push edi
call fcn.00ebc3f0
push eax
push ebx
push esi
call fcn.00ebaf60
push 0xed3888
push edi
call fcn.00ebc3f0
push eax
push ebx
push esi
call fcn.00ebaf60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xebc1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00ebc140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00ebc140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00ebc140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00ebc140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xebcbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xebcc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xece87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xebcc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xebcc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401b14
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetTopWindow]
push edi
push dword [section..data]
call esi
push dword [section..data]
call esi
push dword [section..data]
call esi
push dword [0x404008]
call esi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov byte [ebx + edi], bl
push dword [0x404008]
call esi
inc ebx
cmp ebx, 0x100
jl 0x401b46
and byte [edi + 0x100], 0
and byte [edi + 0x101], 0
push dword [0x404010]
call esi
push dword [0x40400c]
call esi
xor ebx, ebx
mov dword [ebp + 8], ebx
mov ecx, dword [ebp + 8]
push dword [section..data]
mov eax, ecx
cdq
idiv dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ecx + edi]
add ecx, ebx
movzx eax, byte [edx + eax]
lea ebx, [ecx + eax]
call esi
push dword [0x404008]
and ebx, 0xff
call esi
mov eax, dword [ebp + 8]
push dword [0x404018]
movzx eax, byte [eax + edi]
mov dword [ebp - 4], eax
call esi
mov ecx, dword [ebp + 8]
mov al, byte [ebx + edi]
mov byte [ecx + edi], al
mov al, byte [ebp - 4]
mov byte [ebx + edi], al
push dword [0x40401c]
call esi
inc dword [ebp + 8]
cmp dword [ebp + 8], 0x100
jl 0x401b7d
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x401be8
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push dword [0x404024]
mov esi, dword [sym.imp.USER32.dll_GetTopWindow]
call esi
push dword [0x404030]
call esi
mov ebx, dword [ebp + 8]
push dword [0x404020]
movzx eax, byte [ebx + 0x100]
mov dword [ebp - 8], eax
movzx eax, byte [ebx + 0x101]
mov dword [ebp + 8], eax
call esi
push dword [0x404010]
call esi
and dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
jle 0x401cb6
push edi
push dword [0x40403c]
call esi
mov eax, dword [ebp - 8]
push dword [0x404030]
inc eax
and eax, 0xff
mov dword [ebp - 8], eax
call esi
mov eax, dword [ebp - 8]
push dword [0x404024]
lea edi, [eax + ebx]
movzx eax, byte [eax + ebx]
add dword [ebp + 8], eax
call esi
and dword [ebp + 8], 0xff
mov eax, dword [ebp + 8]
movzx ecx, byte [edi]
mov dl, byte [eax + ebx]
add eax, ebx
mov byte [edi], dl
mov dword [ebp - 0xc], ecx
mov byte [eax], cl
push dword [0x404028]
call esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
add eax, ecx
mov cl, byte [edi]
add ecx, dword [ebp - 0xc]
and ecx, 0xff
mov cl, byte [ecx + ebx]
xor byte [eax], cl
push dword [0x404014]
call esi
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jl 0x401c38
pop edi
mov al, byte [ebp + 8]
mov byte [ebx + 0x101], al
push dword [0x404024]
call esi
mov al, byte [ebp - 8]
pop esi
mov byte [ebx + 0x100], al
pop ebx
leave
ret
Function at 0x6e74a690
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.6e7592d0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.6e7592d0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x6e74a6f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x6e867054]
test esi, esi
jle 0x6e74a810
mov eax, dword [0x6e867058]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x6e74a724
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6e74a7a7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6e74a710
mov dword [esp], ebx
call fcn.6e74aee0
mov edi, eax
test eax, eax
je 0x6e74a837
mov eax, dword [0x6e867058]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6e74b020
mov edx, dword [0x6e867058]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6e74a817
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6e74a7a0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x6e74a7b0
add dword [0x6e867054], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x6e867058]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6e74a7a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6e74a690
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x6e74a72e
mov eax, dword [0x6e867058]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6e74a690
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6e74a690
lea esi, [esi]
nop
Function at 0x6e74ab50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6e867064
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6e86705c]
sub esp, 4
test ebx, ebx
je 0x6e74aba5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6e74ab9e
test esi, esi
je 0x6e74ab9e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6e74ab80
mov dword [esp], 0x6e867064
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6e74aee0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x6e740000], 0x5a4d
jne 0x6e74af05
mov ecx, dword [0x6e74003c]
cmp dword [ecx + 0x6e740000], 0x4550
lea edx, [ecx + 0x6e740000]
je 0x6e74af10
ret
cmp word [ecx + 0x6e740018], 0x10b
jne 0x6e74af05
push esi
movzx eax, word [ecx + 0x6e740014]
push ebx
movzx esi, word [ecx + 0x6e740006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x6e740000
test si, si
je 0x6e74af58
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6e74af4e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x6e74af5a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x6e74af40
xor eax, eax
pop ebx
pop esi
ret

Function at 0x6e750290
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
mov dword [0x6e8670c0], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
sub esp, 0x10
mov dword [0x6e8670c4], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x6e750300
mov dword [esp + 4], 0x6e7501a0
mov dword [esp], eax
mov dword [0x6e8670bc], eax
call fcn.6e759b50
test eax, eax
jne 0x6e816d79
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x6e7502ea
Function at 0x6e759b70
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov eax, dword [0x6e86702c]
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp], 1
mov ebx, dword [esp + 0x40]
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
sub esp, 4
test eax, eax
je 0x6e759bad
mov dword [esp], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
sub esp, 4
test eax, eax
jne 0x6e759be0
mov dword [esp], 0x6e81f176
mov ecx, ebx
call fcn.6e7e2e80
sub esp, 4
mov eax, dword [esp + 0x2c]
sub eax, dword [0x6e86702c]
jne 0x6e759c53
add esp, 0x30
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov dword [esp], 1
call dword [sym.imp.USER32.dll_GetClipboardData]
sub esp, 4
mov esi, eax
test eax, eax
je 0x6e759c48
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
sub esp, 4
test eax, eax
je 0x6e759c48
mov dword [esp], eax
lea edi, [esp + 0x14]
mov ecx, edi
call fcn.6e7e2e80
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
sub esp, 4
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esp], edi
mov ecx, ebx
call fcn.6e7e2790
mov ecx, edi
sub esp, 4
call fcn.6e7e3660
jmp 0x6e759bbe
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x6e759bad
call fcn.6e741590
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x6e75c170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x80]
mov esi, 0x6e820df5
push ebx
sub esp, 0x9c
mov eax, dword [str.not_enough_space_for_format_expansion__Please_submit_full_bug_report_at_https:__gcc.gnu.org_bugs__:_n]
mov dword [ebp - 0x81], eax
mov eax, dword [0x6e820e59]
mov dword [ebp - 0x1c], eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
lea eax, [edx + 0x84]
and eax, 0xfffffff0
call fcn.6e74b1c0
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x81]
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
lea eax, [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 8], edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x8c], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.6e759a70
mov edx, dword [ebp - 0x8c]
mov byte [ebx + edx + 0x68], 0
mov dword [esp], ebx
call fcn.6e815980
nop
nop
nop
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x6e81e248], 0
jne 0x6e75c296
mov byte [0x6e81e248], 1
call fcn.6e8135a0
test eax, eax
je 0x6e75c264
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call fcn.6e74a340
mov dword [esp], 2
mov esi, dword [fcn.6e7592d0]
mov edi, eax
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp], 2
test edx, edx
je 0x6e75c254
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x6e8215f9
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x6e816164
jmp 0x6e81615c
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x6e75c21a
mov dword [esp], 2
call dword [0x6e81d0a0]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sub.msvcrt.dll_fwrite
jmp 0x6e816157
mov dword [esp], 2
call dword [0x6e81d0a0]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x6e8215a8
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
call sub.msvcrt.dll_abort
mov dword [esp], edi
call fcn.6e759a38
call fcn.6e8138d0
call fcn.6e813490
call fcn.6e8135d0
jmp 0x6e816157
Function at 0x6e79a820
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x7c]
mov esi, dword [esp + 0x70]
mov dword [esp + 0x3c], ecx
lea ebp, [esp + 0x44]
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x38], eax
mov edi, dword [esp + 0x78]
lea eax, [edx + 0x6c]
mov dword [esp], eax
call fcn.6e80f920
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp], esi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], edx
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
call fcn.6e79be10
mov ecx, ebp
sub esp, 0x24
mov esi, eax
mov ebx, edx
mov eax, dword [esp + 0x88]
mov dword [esp], eax
call fcn.6e7d0a60
sub esp, 4
cmp ebx, 0xffffffff
sete dl
test esi, esi
setne al
and al, dl
jne 0x6e79a938
cmp dword [esp + 0x38], 0xffffffff
sete al
test edi, edi
je 0x6e79a8f2
test al, al
jne 0x6e79a910
cmp dl, al
jne 0x6e79a900
mov eax, dword [esp + 0x84]
or dword [eax], 2
add esp, 0x5c
mov eax, esi
mov edx, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x1c
mov ecx, dword [edi + 0xc]
xor eax, eax
cmp dword [edi + 8], ecx
jb 0x6e79a8f2
mov eax, dword [edi]
mov byte [esp + 0x38], dl
mov ecx, edi
call dword [eax + 0x24]
movzx edx, byte [esp + 0x38]
cmp eax, 0xffffffff
sete al
jmp 0x6e79a8f2
mov ebp, eax
xor edx, edx
mov eax, dword [esi + 0xc]
cmp dword [esi + 8], eax
jb 0x6e79a8e2
mov eax, dword [esi]
mov byte [esp + 0x3c], dl
mov ecx, esi
call dword [eax + 0x24]
movzx edx, byte [esp + 0x3c]
cmp eax, 0xffffffff
mov eax, 0
cmove edx, ebp
cmove esi, eax
jmp 0x6e79a8e2