joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bc60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x491e54]
test eax, eax
je 0x41bdb4
call sym.__pthread_once_raw.constprop.5
mov eax, dword [0x491e50]
test eax, eax
je 0x41bde0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41bca0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._pop_pthread_mem
test eax, eax
mov ebx, eax
je 0x41be2c
mov eax, dword [entry3]
test eax, eax
je 0x41be2c
mov dword [ebx + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x38], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
sub esp, 0x10
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x34], 0xffffffff
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x14], 0
call esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
call esi
mov edx, eax
lea eax, [ebx + 0x14]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x41be33
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x68], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
mov dword [ebx + 0x64], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x491e50]
test eax, eax
je 0x41be06
mov dword [esp + 4], ebx
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x41be33
mov eax, ebx
jmp 0x41bc98
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_once_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x491e54], eax
jmp 0x41bc74
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x491e50], eax
jmp 0x41bc86
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x491e50], eax
jmp 0x41bd93
xor eax, eax
jmp 0x41bc98
call sym._abort
nop
lea esi, [esi]
Function at 0x41c3a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
cmp dword [esp + 0x24], 3
je 0x41c3c0
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret 0xc
mov eax, dword [0x491e50]
test eax, eax
je 0x41c530
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41c3ac
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x41c3ac
test byte [eax + 0x20], 0x30
je 0x41c480
mov eax, dword [eax + 0xb0]
test eax, eax
jne 0x41c520
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x41c430
mov dword [esp], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x41c422
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call sym._pthread_mutex_destroy
mov edx, dword [ebx + 0xac]
mov dword [ebx + 0x34], 0xffffffff
test edx, edx
je 0x41c586
mov eax, dword [0x491e50]
test eax, eax
je 0x41c560
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
mov eax, 1
add esp, 0x14
pop ebx
pop esi
ret 0xc
mov eax, dword [eax + 0x64]
test eax, eax
mov eax, dword [ebx + 0x18]
jne 0x41c4e0
test eax, eax
je 0x41c49a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x64], 1
test eax, eax
jne 0x41c510
test byte [ebx + 0x24], 4
je 0x41c4f7
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x41c429
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x41c429
test eax, eax
je 0x41c4f0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 0x18], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call sym._pthread_mutex_destroy
mov dword [ebx + 0x34], 0xffffffff
jmp 0x41c3ac
call sym.__pthread_cleanup_dest.part.3
jmp 0x41c4b2
call sym.__pthread_cleanup_dest.part.3
jmp 0x41c3fe
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x491e50], eax
jmp 0x41c3cd
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x491e50], eax
jmp 0x41c45d
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x41c450
Function at 0x41d720
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call sym.___pthread_self_lite
mov ebx, eax
mov dword [eax + 4], esi
mov eax, dword [eax + 0xb0]
test eax, eax
jne 0x41d79b
test byte [ebx + 0x20], 0x30
je 0x41d7a2
mov eax, dword [0x491e50]
test eax, eax
je 0x41d82b
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x41d792
cmp dword [eax + 0x14], 0
je 0x41d7b5
mov esi, dword [eax + 4]
mov dword [eax + 0x64], 1
mov eax, dword [eax + 0x18]
test eax, eax
je 0x41d785
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
test byte [ebx + 0x24], 4
mov dword [ebx + 0x18], 0
jne 0x41d7ff
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
call sym.__pthread_cleanup_dest.part.3
jmp 0x41d73d
add ebx, 0x6c
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._longjmp
mov dword [eax], 0xdeadbeef
mov eax, dword [eax + 0x18]
test eax, eax
je 0x41d7cc
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
cmp dword [ebx + 0xac], 0
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 4]
je 0x41d822
mov eax, dword [0x491e50]
test eax, eax
je 0x41d851
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x41d792
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
cmp dword [ebx + 0xac], 0
mov dword [ebx + 0x14], 0
jne 0x41d7df
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x41d7df
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x491e50], eax
jmp 0x41d750
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x491e50], eax
jmp 0x41d7e8
Function at 0x4200d0
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [ebp + 8]
mov dword [esp], edi
call sym._strlen
mov ebx, eax
lea eax, [eax + 0x40]
and eax, 0xfffffff0
call fcn.0040dc10
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 4], edi
mov dword [esp + 8], ebx
lea esi, [esp + 0xc]
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp], eax
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call sym._memcpy
lea eax, [ebx + 0x10]
lea edi, [esi + eax]
mov dword [ebp - 0x24], eax
lea eax, [ebx + 0x30]
mov dword [edi], 0x61616161
mov dword [edi + 4], 0x61616161
mov dword [edi + 8], 0x61616161
mov dword [edi + 0xc], 0x61616161
mov dword [edi + 0x10], 0x61616161
mov dword [edi + 0x14], 0x61616161
mov dword [edi + 0x18], 0x61616161
mov dword [edi + 0x1c], 0x61616161
mov dword [ebp - 0x1c], eax
mov byte [esp + ebx + 0x3c], 0
mov byte [esp + ebx + 0x1b], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
sub esp, 0xc
mov byte [esi + ebx + 0xf], 0x2d
mov dword [ebp - 0x20], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
je 0x4201bf
int3
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
jne 0x420263
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._malloc
mov edx, edi
mov ebx, eax
mov eax, 0x20
nop
lea esi, [esi]
bt ebx, eax
jae 0x4201f8
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x4201f0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x420260
mov ecx, dword [ebp - 0x24]
mov edx, esi
movzx eax, ax
mov dword [esp], ecx
mov ecx, dword [ebp - 0x1c]
call sym._get_ptr_from_atom_1
cmp eax, ebx
mov esi, eax
je 0x42027a
mov dword [esp], ebx
call sym._free
mov edi, dword [ebp - 0x20]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
int3
mov ecx, dword [ebp - 0x24]
mov edx, esi
movzx eax, ax
mov dword [esp], ecx
mov ecx, dword [ebp - 0x1c]
call sym._get_ptr_from_atom_1
mov esi, eax
jmp 0x420232
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._memset
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x420232
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x420232
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401e50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
lea ecx, [esp + 0x14]
mov edx, dword [esp + 0x5c]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edx
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
pop edi
add esp, 0x54
ret

Function at 0x402000
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [esp + 8]
ret 8

Function at 0x402030
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40d5b8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040803b
mov dword [ebp - 0x14], eax
cmp dword [0x437320], esi
jne 0x40d6ab
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d638
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d78b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d78b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d78b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x437320], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x437324], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x437328], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x437330], eax
test eax, eax
je 0x40d6a8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43732c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d6d0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d6c3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d6e5
push 4
pop eax
jmp 0x40d78d
cmp dword [ebp - 0x14], esi
je 0x40d6e5
push dword [0x437320]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d6ca
mov eax, dword [0x43732c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d743
cmp dword [0x437330], edi
je 0x40d743
push eax
call ebx
push dword [0x437330]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d743
test eax, eax
je 0x40d743
call ecx
test eax, eax
je 0x40d738
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d738
test byte [ebp - 8], 1
jne 0x40d743
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d773
mov eax, dword [0x437324]
cmp eax, edi
je 0x40d770
push eax
call ebx
test eax, eax
je 0x40d770
call eax
mov esi, eax
test esi, esi
je 0x40d770
mov eax, dword [0x437328]
cmp eax, edi
je 0x40d770
push eax
call ebx
test eax, eax
je 0x40d770
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x437320]
call ebx
test eax, eax
je 0x40d78b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d78d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040433c
mov esp, ebp
pop ebp
ret
Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x45974afc
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x32f80cdd
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x1000bce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1000bcf7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000bd28
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x1000bd24
cmp esi, eax
jae 0x1000bd28
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x1000bd14
cmp esi, eax
jb 0x1000bd2e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x1000f560
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [esi + 0xa0], 0
je 0x1000f56f
mov eax, 0x8000ffff
ret
test edx, edx
jne 0x1000f577
xor eax, eax
jmp 0x1000f590
mov eax, edx
push edi
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000f580
sub eax, edi
sar eax, 1
pop edi
push ebx
mov ebx, eax
push edx
mov eax, esi
call fcn.10001b90
cmp dword [esi + 0xa0], 0
pop ebx
jne 0x1000f5ce
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x1000f569
push 0x42
lea ecx, [esi + 4]
call fcn.10012ed0
test eax, eax
jne 0x1000f5c5
mov dword [esi + 0xa0], 1
cmp dword [esi + 0xa0], 0
je 0x1000f5d5
mov ecx, esi
jmp fcn.1000f5e0
xor eax, eax
ret
Function at 0x10011940
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x1002b758
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100331b0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
mov esi, ecx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10011b11
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10011b11
lea ebx, [esp + 0x14]
mov edi, 0xa
mov eax, esi
mov dword [esp + 0x14], 0
call fcn.100117e0
mov eax, dword [esp + 0x14]
xor edi, edi
cmp eax, edi
je 0x100119b5
mov ecx, dword [esp + 0x28]
push ebp
push ecx
call eax
jmp 0x10011b13
mov dword [esp + 0x2c], edi
push esi
mov dword [esp + 0x24], edi
call fcn.10011240
mov eax, dword [esi]
cmp eax, edi
je 0x100119d9
lea edx, [esp + 0x2c]
push edx
push 0x1002f280
call eax
cmp eax, edi
je 0x100119ec
mov esi, dword [esi + 4]
cmp esi, edi
je 0x100119ec
lea eax, [esp + 0x2c]
push eax
push 0x1002f280
call esi
or esi, 0xffffffff
cmp ebp, edi
je 0x100119f6
mov dword [ebp], esi
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x10011b01
mov edx, dword [esp + 0x28]
mov ecx, dword [eax]
push edi
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x10011afd
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], edi
mov ecx, dword [eax]
push 4
push eax
mov eax, dword [ecx + 0x54]
call eax
test eax, eax
je 0x10011a70
mov eax, dword [esp + 0x28]
shl eax, 0x10
sar eax, 0x1c
cmp eax, 2
je 0x10011a47
cmp eax, 3
jne 0x10011a70
cmp ebp, edi
je 0x10011a52
mov dword [ebp], 1
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x10011a66
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 1
jmp 0x10011b13
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], edi
mov ecx, dword [eax]
push 3
push eax
mov eax, dword [ecx + 0x54]
call eax
test eax, eax
je 0x10011ac3
mov ecx, dword [esp + 0x28]
and ecx, 0xf00
cmp ecx, 0x300
jne 0x10011ac3
cmp ebp, edi
je 0x10011aa8
mov dword [ebp], 3
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x10011abc
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, 1
jmp 0x10011b13
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], edi
mov ecx, dword [eax]
push 5
push eax
mov eax, dword [ecx + 0x54]
call eax
test eax, eax
je 0x10011afd
mov ecx, dword [esp + 0x28]
and ecx, 0xf0000
cmp ecx, 0x30000
jne 0x10011afd
cmp ebp, edi
je 0x10011aa8
mov dword [ebp], 4
jmp 0x10011aa8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x20], esi
cmp eax, edi
je 0x10011b11
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x10011b30
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x418
mov eax, dword [0x100331b0]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
push edi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x16]
push ecx
mov word [esp + 0x18], ax
call fcn.1001cf30
add esp, 0xc
test edi, edi
jne 0x10011bc2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.10011080
add esp, 4
test eax, eax
jne 0x10011bdf
test esi, esi
je 0x10011ba9
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10011ba9
lea edx, [esp + 8]
push edx
push esi
mov ecx, 0x10035330
mov dword [esp + 0x10], edi
call fcn.10011940
test eax, eax
jne 0x10011bdf
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.1001b630
add esp, 0x418
ret
push 0x208
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
dec eax
cmp eax, 0x206
ja 0x10011bdf
lea esi, [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
xor ecx, esp
call fcn.1001b630
add esp, 0x418
ret
Function at 0x10012270
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test edx, edx
jbe 0x10012291
push ebx
push edi
movzx ebx, byte [ecx]
mov edi, eax
shr edi, 0x18
xor edi, ebx
shl eax, 8
xor eax, dword [esi + edi*4 + 4]
inc ecx
sub edx, 1
jne 0x10012278
pop edi
pop ebx
ret

Function at 0x10012340
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x50
mov eax, dword [0x100331b0]
xor eax, esp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x60]
push ebp
mov ebp, dword [esp + 0x5c]
push esi
push edi
mov ecx, 0x10
mov esi, 0x1002f290
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x68]
lea eax, [eax + eax*2 + 3]
lea edx, [ecx*4]
cmp edx, eax
movsb byte es:[edi], byte [esi]
jle 0x10012396
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.1001b630
add esp, 0x50
ret 0x10
mov eax, 0x55555556
imul ecx
mov edi, edx
shr edi, 0x1f
add edi, edx
lea eax, [edi*4]
push ebx
mov dword [esp + 0x14], eax
test edi, edi
jle 0x1001242a
mov ebx, dword [esp + 0x64]
lea esi, [ebp + 2]
add ebx, 2
mov dword [esp + 0x10], edi
mov cl, byte [ebx - 2]
movzx eax, cl
shr eax, 2
movzx edx, byte [esp + eax + 0x18]
mov byte [esi - 2], dl
mov dl, byte [ebx - 1]
and cl, 3
shl cl, 4
movzx eax, cl
movzx ecx, dl
shr ecx, 4
or eax, ecx
movzx eax, byte [esp + eax + 0x18]
and dl, 0xf
mov byte [esi - 1], al
movzx ecx, byte [ebx]
add dl, dl
add dl, dl
movzx edx, dl
mov eax, ecx
shr eax, 6
or edx, eax
movzx edx, byte [esp + edx + 0x18]
and ecx, 0x3f
movzx eax, byte [esp + ecx + 0x18]
mov byte [esi], dl
mov byte [esi + 1], al
add ebx, 3
add esi, 4
sub dword [esp + 0x10], 1
jne 0x100123c2
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x14]
lea edx, [edi + edi*2]
sub ecx, edx
mov esi, ecx
test esi, esi
jle 0x100124a3
mov ecx, dword [esp + 0x64]
lea edx, [ecx + edi*2]
mov cl, byte [edx + edi]
add edx, edi
movzx ebx, cl
and cl, 3
shr ebx, 2
mov bl, byte [esp + ebx + 0x18]
shl cl, 4
add eax, 4
mov byte [ebp + edi*4], bl
movzx ecx, cl
cmp edi, 1
jne 0x1001246d
mov dl, byte [esp + ecx + 0x18]
mov byte [ebp + 5], dl
mov byte [ebp + 6], 0x3d
jmp 0x1001249e
mov dl, byte [edx + 1]
movzx ebx, dl
shr ebx, 4
or ecx, ebx
mov cl, byte [esp + ecx + 0x18]
mov byte [ebp + edi*4 + 1], cl
cmp esi, 1
jne 0x1001248c
mov byte [ebp + edi*4 + 2], 0x3d
jmp 0x1001249e
and dl, 0xf
add dl, dl
add dl, dl
movzx edx, dl
mov cl, byte [esp + edx + 0x18]
mov byte [ebp + edi*4 + 2], cl
mov byte [ebp + edi*4 + 3], 0x3d
mov ecx, dword [esp + 0x5c]
pop ebx
pop edi
pop esi
mov byte [eax + ebp], 0
pop ebp
xor ecx, esp
call fcn.1001b630
add esp, 0x50
ret 0x10