joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100cb65
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x100d360
call fcn.0100cd44
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x1011c90
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x100c91c
cmp eax, esi
jne 0x100c90f
xor esi, esi
inc esi
mov ebx, esi
jmp 0x100c91f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100c8f6
xor esi, esi
inc esi
mov eax, dword [0x1011c8c]
cmp eax, esi
jne 0x100c932
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100c961
mov eax, dword [0x1011c8c]
test eax, eax
jne 0x100c95b
mov dword [0x1011c8c], esi
push 0x10012b4
push 0x10012a8
call fcn.0100c85b
pop ecx
pop ecx
test eax, eax
je 0x100c961
jmp 0x100ca89
mov dword [0x10115c8], esi
mov eax, dword [0x1011c8c]
cmp eax, esi
jne 0x100c985
push 0x10012a4
push 0x100129c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1011c8c], 2
test ebx, ebx
jne 0x100c991
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1011c94], 0
je 0x100c9b5
push 0x1011c94
call fcn.0100ccb9
pop ecx
test eax, eax
je 0x100c9b5
push 0
push 2
push 0
call dword [0x1011c94]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x100ca11
test al, al
je 0x100c9cf
cmp dword [ebp - 0x1c], 0
jne 0x100ca11
mov al, byte [esi]
test al, al
je 0x100c9df
cmp al, 0x20
ja 0x100c9df
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100c9cf
test byte [ebp - 0x3c], 1
je 0x100c9eb
movzx eax, word [ebp - 0x38]
jmp 0x100c9ee
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x10115c4], eax
cmp dword [0x10115b8], 0
jne 0x100ca65
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x100ca20
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x100ca33
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x100c9bc
cmp dword [0x10115c8], 0
jne 0x100ca74
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10115c4]
jmp 0x100ca95
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0100cd89
ret
call fcn.0100ce8c
jmp 0x100c8bc
Function at 0x100d175
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x100fb04]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0xa8], 0
cmp dword [0x100fb20], 0xfffffffe
mov dword [ebp - 0xb0], 0xc
jne 0x100d29a
and dword [0x100fb20], 0
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x100d29a
cmp dword [ebp - 0x94], 1
jne 0x100d29a
cmp dword [ebp - 0xa0], 4
jne 0x100d29a
cmp dword [ebp - 0x9c], 0xa
jae 0x100d29a
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x100d29a
lea eax, [ebp - 0xac]
push eax
push 0x20019
push 0
push 0x1001be0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100d29a
push edi
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb4]
push eax
push 0
push 0x1001433
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xac]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x100d29a
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0100d052
test eax, eax
je 0x100d29a
and dword [ebp - 0xa8], 0x3ff
cmp dword [ebp - 0xa8], 1
je 0x100d290
cmp dword [ebp - 0xa8], 0xd
jne 0x100d29a
mov dword [0x100fb20], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x100fb20]
xor ecx, ebp
call fcn.0100cb7f
leave
ret
Function at 0x2e016b9a
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
xor ecx, ecx
xor edi, edi
cmp cx, word [eax]
je 0x2e016c24
push eax
cmp dword [ebp + 0xc], edi
je 0x2e016bc8
push 0x10000
push edi
push 4
push dword [ebp + 0xc]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
jmp 0x2e016bd2
push 1
push 2
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [esi], eax
cmp eax, edi
je 0x2e016c24
push edi
push edi
push edi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 4], eax
cmp eax, edi
je 0x2e016c24
cmp dword [ebp + 0xc], edi
je 0x2e016c06
mov dword [eax], 0x40
mov dword [eax + 8], 0x10162009
mov dword [eax + 0xc], 0x11191969
jmp 0x2e016c24
cmp dword [eax], 0x40
jne 0x2e016c1d
cmp dword [eax + 8], 0x10162009
jne 0x2e016c1d
cmp dword [eax + 0xc], 0x11191969
je 0x2e016c24
mov ecx, esi
call fcn.2e0165c9
xor eax, eax
cmp dword [esi + 4], edi
pop edi
setne al
pop esi
pop ebp
ret 8

Function at 0x2e0171c8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CoInitialize]
push edi
push dword [ebp + 8]
mov esi, 0x2e10fd6c
push edi
mov ecx, esi
call fcn.2e01705a
call fcn.2e016d8c
mov ebx, eax
cmp ebx, edi
je 0x2e01722e
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp + 8], 2
mov edi, eax
jne 0x2e017223
push dword [edi + 4]
mov ecx, ebx
call fcn.2e016f74
mov dword [ebp - 4], 1
jmp 0x2e017227
or dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, esi
call fcn.2e017176
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x2e0175c6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
test esi, esi
jne 0x2e0175d9
push 0xd
pop eax
jmp 0x2e017604
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x2e0175dc
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x2e017ba8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x2e109148]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], esi
call fcn.2e017532
mov ebx, eax
cmp ebx, esi
je 0x2e017c13
lea ecx, [ebp - 0x20c]
call fcn.2e0174bd
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.2e01bfc6
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x2e017c31
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x20c]
call fcn.2e017ba8
cmp eax, esi
jne 0x2e017c78
lea eax, [ebp - 0x21c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x20c]
mov dword [ebp - 0x210], 0x100
call ebx
test eax, eax
je 0x2e017c1b
lea ecx, [ebp - 0x20c]
call fcn.2e0174bd
push dword [ebp - 0x214]
mov ecx, edi
call fcn.2e017460
lea ecx, [ebp - 0x20c]
mov esi, eax
call fcn.2e0174bd
mov eax, esi
jmp 0x2e017c02
Function at 0x2e018e38
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x2e1019d9
call fcn.2e01c485
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x2e018e91
call fcn.2e017382
mov esi, eax
jmp 0x2e018f9a
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x2e018eaa
call fcn.2e017382
jmp 0x2e018f8c
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
cmp eax, esi
je 0x2e018ea0
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x420], edi
cmp eax, edi
jae 0x2e018f10
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x2e018ef6
lea ecx, [ebp - 0x418]
call fcn.2e017b58
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.2e017a8b
mov eax, esi
call fcn.2e01c4de
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.2e01819a
mov dword [ebp - 4], 1
jmp 0x2e018f3e
cmp dword [ebp - 0x418], esi
jne 0x2e018f4d
mov esi, 0x8007000e
jmp 0x2e018f8e
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x2e018ea0
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.2e018d02
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x2e018efb
lea ecx, [ebp - 0x418]
call fcn.2e017b58
jmp 0x2e018efb
Function at 0x2e019c43
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c0
mov eax, dword [0x2e109148]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x3b8], eax
xor ebx, ebx
lea eax, [ebp - 0x3a4]
push eax
mov dword [ebp - 0x3b4], esi
mov dword [ebp - 0x3ac], ebx
mov byte [ebp - 0x3a5], bl
mov dword [ebp - 0x3bc], 1
mov dword [ebp - 0x3b0], ebx
mov dword [ebp - 0x3a4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x394], 1
jne 0x2e019dbe
mov esi, 0x103
push esi
lea eax, [ebp - 0x30f]
push ebx
push eax
mov byte [ebp - 0x310], bl
call fcn.2e01b598
add esp, 0xc
push ebx
push ebx
push 0x104
lea eax, [ebp - 0x310]
push eax
push 0xffffffffffffffff
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
call edi
test eax, eax
je 0x2e019e2e
lea eax, [ebp - 0x3ac]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x310]
push eax
xor eax, eax
cmp byte [ebp + 0x18], bl
sete al
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x3b0], eax
cmp eax, ebx
jne 0x2e019e2e
push esi
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.2e01b598
push esi
lea eax, [ebp - 0x20b]
push ebx
push eax
mov dword [ebp - 0x3c0], esi
mov byte [ebp - 0x20c], bl
call fcn.2e01b598
add esp, 0x18
push ebx
push ebx
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x3b8]
push ebx
push ebx
call edi
test eax, eax
je 0x2e019e2e
lea eax, [ebp - 0x3c0]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x3bc]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x3ac]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push dword [ebp - 0x3b4]
push 0xffffffffffffffff
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x2e019e2e
lea eax, [ebp - 0x3ac]
push eax
xor eax, eax
cmp byte [ebp + 0x18], bl
push 0x20019
sete al
push ebx
push edi
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [ebp + 0xc]
add edi, edi
push edi
push ebx
push esi
mov dword [ebp - 0x3b0], eax
call fcn.2e01b598
add esp, 0xc
dec edi
dec edi
mov dword [ebp - 0x3b4], edi
cmp dword [ebp - 0x3b0], ebx
jne 0x2e019e2e
lea eax, [ebp - 0x3b4]
push eax
push esi
lea eax, [ebp - 0x3bc]
push eax
push ebx
push dword [ebp - 0x3b8]
push dword [ebp - 0x3ac]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x3b0], eax
cmp dword [ebp - 0x3ac], ebx
je 0x2e019e42
push dword [ebp - 0x3ac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3b0], ebx
pop edi
pop esi
pop ebx
jne 0x2e019e54
mov byte [ebp - 0x3a5], 1
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x3a5]
xor ecx, ebp
call fcn.2e01bfc6
leave
ret 0x14
Function at 0x2e019eb5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x2e019ee4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x2e019ee0
cmp eax, 3
je 0x2e019ee0
cmp eax, 0x65
je 0x2e019ee0
cmp eax, 0x68
jne 0x2e019ee4
xor al, al
jmp 0x2e019ee6
mov al, 1
pop ebp
ret 4

Function at 0x2e019fdc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x2e109148]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
lea eax, [ebp - 0x19c]
push eax
mov dword [ebp - 0x19c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x18c], 1
jne 0x2e01a041
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push dword [ebp + 8]
mov edi, eax
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x2e01a04d
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.2e01bfc6
leave
ret 8

Function at 0x2e01a05f
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x2e109148]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x19c]
push eax
xor edi, edi
mov dword [ebp - 0x19c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x18c], 1
jne 0x2e01a0c5
push edi
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0xffffffffffffffff
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x2e01a0ce
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x2e01a0cc
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.2e01bfc6
leave
ret 4
Function at 0x2e01b191
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
test byte [0x2e10fde4], 1
jne 0x2e01b1b2
or dword [0x2e10fde4], 1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [0x2e10fde0], eax
cmp byte [0x2e10fddd], 0
jne 0x2e01b24a
push esi
lea eax, [ebp - 0xc]
push eax
push 1
xor esi, esi
push esi
push 0x2e001f78
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x2e01b249
push ebx
push 4
pop ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x2e001fe4
push dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x2e01b23f
mov esi, dword [sym.imp.KERNEL32.dll_IsValidLocale]
push edi
mov edi, dword [ebp - 4]
push 2
push edi
call esi
test eax, eax
je 0x2e01b229
cmp dword [ebp - 8], ebx
jne 0x2e01b229
mov dword [0x2e10fde0], edi
jmp 0x2e01b237
push 2
push dword [0x2e10fde0]
call esi
test eax, eax
je 0x2e01b23e
mov byte [0x2e10fddd], 1
pop edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop esi
mov eax, dword [0x2e10fde0]
leave
ret

Function at 0x2e01bfc6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x2e109148]
jne 0x2e01fba5
repz ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x2e110520], eax
mov dword [0x2e11051c], ecx
mov dword [0x2e110518], edx
mov dword [0x2e110514], ebx
mov dword [0x2e110510], esi
mov dword [0x2e11050c], edi
mov word [0x2e110538], ss
mov word [0x2e11052c], cs
mov word [0x2e110508], ds
mov word [0x2e110504], es
mov word [0x2e110500], fs
mov word [0x2e1104fc], gs
pushfd
pop dword [0x2e110530]
mov eax, dword [ebp]
mov dword [0x2e110524], eax
mov eax, dword [ebp + 4]
mov dword [0x2e110528], eax
lea eax, [ebp + 8]
mov dword [0x2e110534], eax
mov eax, dword [ebp - 0x320]
mov dword [0x2e110470], 0x10001
mov eax, dword [0x2e110528]
mov dword [0x2e110424], eax
mov dword [0x2e110418], 0xc0000409
mov dword [0x2e11041c], 1
mov eax, dword [0x2e109148]
mov dword [ebp - 0x328], eax
mov eax, dword [0x2e10914c]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x2e110468], eax
push 1
call fcn.2e021de7
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x2e002708
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x2e110468], 0
jne 0x2e01fc91
push 1
call fcn.2e021de7
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x2e0210d0
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.2e01dfcd
and dword [ebp - 4], 0
cmp dword [0x2e110760], 0
mov ebx, eax
jne 0x2e021181
push 0x2e002794
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x2e021232
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x2e002788
push edi
call esi
test eax, eax
je 0x2e021232
push eax
call fcn.2e01df5b
mov dword [esp], 0x2e002778
push edi
mov dword [0x2e110760], eax
call esi
push eax
call fcn.2e01df5b
mov dword [esp], 0x2e002764
push edi
mov dword [0x2e110764], eax
call esi
push eax
call fcn.2e01df5b
mov dword [esp], 0x2e002748
push edi
mov dword [0x2e110768], eax
call esi
push eax
call fcn.2e01df5b
pop ecx
mov dword [0x2e110770], eax
test eax, eax
je 0x2e021181
push 0x2e002730
push edi
call esi
push eax
call fcn.2e01df5b
pop ecx
mov dword [0x2e11076c], eax
mov eax, dword [0x2e11076c]
cmp eax, ebx
je 0x2e0211d9
cmp dword [0x2e110770], ebx
je 0x2e0211d9
push eax
call fcn.2e01dfd6
push dword [0x2e110770]
mov esi, eax
call fcn.2e01dfd6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x2e0211d9
test edi, edi
je 0x2e0211d9
call esi
test eax, eax
je 0x2e0211d0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x2e0211d0
test byte [ebp - 0xc], 1
jne 0x2e0211d9
or dword [ebp + 0x10], 0x200000
jmp 0x2e021212
mov eax, dword [0x2e110764]
cmp eax, ebx
je 0x2e021212
push eax
call fcn.2e01dfd6
pop ecx
test eax, eax
je 0x2e021212
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x2e021212
mov eax, dword [0x2e110768]
cmp eax, ebx
je 0x2e021212
push eax
call fcn.2e01dfd6
pop ecx
test eax, eax
je 0x2e021212
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x2e110760]
call fcn.2e01dfd6
pop ecx
test eax, eax
je 0x2e021232
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x2e021234
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x2e030798
Capabilities:
Open clipboard

Disassembly:
call fcn.2e07e9f8
test eax, eax
jne 0x2e0307bb
push esi
mov esi, dword [0x2e1107bc]
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x2e0307bc
and dword [0x2e1107c4], 0xfffffffc
pop esi
ret
mov ax, word [0x2e1107c0]
or dword [0x2e1107c4], 1
test ax, ax
jne 0x2e0307d1
xor eax, eax
inc eax
push ebx
push edi
movzx edi, ax
xor eax, eax
mov word [0x2e1107c0], ax
call dword [sym.imp.USER32.dll_GetClipboardOwner]
push 2
pop ebx
cmp eax, esi
jne 0x2e0307ef
test esi, esi
jne 0x2e030833
and dword [0x2e1107c4], 0xfffffffd
mov esi, dword [sym.imp.USER32.dll_EnumClipboardFormats]
push 0
jmp 0x2e030829
movsx ecx, ax
mov eax, ecx
dec eax
je 0x2e030853
sub eax, ebx
je 0x2e03081f
sub eax, 5
je 0x2e03081f
sub eax, 5
je 0x2e030853
sub eax, 0x74
je 0x2e030853
sub eax, ebx
jne 0x2e030828
push 3
pop eax
mov word [0x2e1107c0], ax
push ecx
call esi
movzx eax, ax
test ax, ax
jne 0x2e030800
cmp word [0x2e1107c0], 0
jne 0x2e03084a
or dword [0x2e1107c4], ebx
mov word [0x2e1107c0], di
pop edi
pop ebx
pop esi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
mov word [0x2e1107c0], bx
jmp 0x2e03084a
Function at 0x2e041fd7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x2e109148]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x24c], eax
mov eax, 0x104
xor bl, bl
cmp dword [ebp + 0xc], eax
push esi
mov esi, dword [ebp + 8]
jl 0x2e042096
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x2e042096
cmp byte [0x2e11105c], bl
jne 0x2e042038
push 0
call fcn.2e01cd9b
push eax
call fcn.2e01d0f2
pop ecx
pop ecx
mov byte [0x2e11105c], 1
push edi
mov bl, 1
call fcn.2e01d104
mov edi, eax
mov dword [ebp - 0x250], edi
inc edi
cmp edi, dword [ebp - 0x250]
je 0x2e042090
push dword [ebp - 0x24c]
lea eax, [ebp - 0x108]
push edi
push eax
push 0x2e0042c4
push dword [ebp + 0xc]
push esi
call fcn.2e040a1a
add esp, 0x18
lea eax, [ebp - 0x248]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x2e04208e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
jmp 0x2e042048
xor bl, bl
test bl, bl
sete bl
pop edi
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.2e01bfc6
leave
ret 0xc

Function at 0x2e0420a8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], 0x104
jl 0x2e042123
push esi
push dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov byte [esi], bl
push esi
call fcn.2e041fd7
test al, al
je 0x2e042122
push ebx
push 0x100
push 2
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, ebx
je 0x2e042122
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push ebx
lea ecx, [ebp + 0x10]
push ecx
push eax
push edi
push esi
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov bl, 1
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 0x10