joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10028ad0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f6b68
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10126008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x6c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], esi
test esi, esi
je 0x10028b1b
mov eax, dword [esi]
test eax, eax
je 0x10028b1b
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x10028b30
xor bl, bl
jmp 0x10028c5c
mov eax, dword [ebp + 8]
mov bl, 1
test bl, al
je 0x10028b48
push 1
call fcn.1001ec40
mov bl, al
mov eax, dword [ebp + 8]
and bl, 1
test eax, 0x4000
je 0x10028b61
mov ecx, dword [edi + 4]
push 0x4000
call fcn.1001ec40
and bl, al
mov eax, dword [ebp + 8]
test eax, 0x200
je 0x10028b7a
mov ecx, dword [edi + 4]
push 0x200
call fcn.1001ec40
and bl, al
mov eax, dword [ebp + 8]
test eax, 0x100
je 0x10028b93
mov ecx, dword [edi + 4]
push 0x100
call fcn.1001ec40
and bl, al
mov eax, dword [ebp + 8]
test eax, 0x400
je 0x10028bac
mov ecx, dword [edi + 4]
push 0x400
call fcn.1001ec40
and bl, al
mov eax, dword [ebp + 8]
test eax, 0x8000000
je 0x10028bc5
mov ecx, dword [edi + 4]
push 0x8000000
call fcn.1001ec40
and bl, al
mov eax, dword [ebp + 8]
test al, 0x20
je 0x10028bd8
mov ecx, dword [edi + 4]
push 0x20
call fcn.1001ec40
and bl, al
mov eax, dword [ebp + 8]
test al, 0x40
je 0x10028beb
mov ecx, dword [edi + 4]
push 0x40
call fcn.1001ec40
and bl, al
mov eax, dword [ebp + 8]
test eax, 0x10000000
je 0x10028c04
mov ecx, dword [edi + 4]
push 0x10000000
call fcn.1001ec40
and bl, al
mov eax, dword [ebp + 8]
test eax, 0x20000000
je 0x10028c1d
mov ecx, dword [edi + 4]
push 0x20000000
call fcn.1001ec40
and bl, al
mov eax, dword [ebp + 8]
test al, 8
je 0x10028c30
mov ecx, dword [edi + 4]
push 8
call fcn.1001ec40
and bl, al
mov eax, dword [ebp + 8]
test eax, 0x40000000
je 0x10028c49
mov ecx, dword [edi + 4]
push 0x40000000
call fcn.1001ec40
and bl, al
mov eax, dword [ebp + 8]
test eax, eax
jns 0x10028c5c
mov ecx, dword [edi + 4]
push 0x80000000
call fcn.1001ec40
and bl, al
mov dword [ebp - 4], 1
test esi, esi
je 0x10028c7b
mov eax, dword [esi]
test eax, eax
je 0x10028c74
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x14], 0
mov al, bl
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100f11c3
mov esp, ebp
pop ebp
ret 4
Function at 0x1003a860
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
mov bh, byte [ecx + 0x100]
push ebp
mov ebp, dword [esp + 0x10]
push edi
xor edi, edi
mov dword [esp + 0xc], edx
mov dl, byte [ecx + 0x101]
test ebp, ebp
je 0x1003a8b9
push esi
nop
inc bh
movzx esi, bh
mov bl, byte [esi + ecx]
add dl, bl
mov byte [esp + 0x18], dl
movzx edx, dl
movzx eax, byte [edx + ecx]
mov byte [esi + ecx], al
mov byte [edx + ecx], bl
movzx eax, byte [esi + ecx]
mov edx, dword [esp + 0x10]
add al, bl
movzx eax, al
movzx eax, byte [eax + ecx]
xor byte [edi + edx], al
inc edi
mov dl, byte [esp + 0x18]
cmp edi, ebp
jb 0x1003a880
pop esi
pop edi
pop ebp
mov byte [ecx + 0x101], bh
mov byte [ecx + 0x100], bh
pop ebx
pop ecx
ret

Function at 0x1003a8f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
cmp dword [esp + 8], 0
mov eax, ecx
mov dword [esp], eax
je 0x1003a977
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x1003a976
push ebx
push esi
push edi
mov edi, dword [eax]
xor dl, dl
xor cl, cl
xor eax, eax
mov byte [eax + edi], al
inc eax
cmp eax, 0x100
jb 0x1003a911
mov word [edi + 0x100], 0
xor ebx, ebx
nop word [eax + eax]
mov eax, dword [esp + 0x18]
movzx esi, dl
mov dl, byte [ebx + edi]
movzx eax, byte [esi + eax]
add al, dl
add cl, al
mov byte [esp + 0x1c], cl
movzx ecx, cl
add ecx, edi
movzx eax, byte [ecx]
mov byte [ebx + edi], al
lea eax, [esi + 1]
mov byte [ecx], dl
inc ebx
mov cl, byte [esp + 0x1c]
xor edx, edx
div ebp
cmp ebx, 0x100
jb 0x1003a930
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov eax, dword [eax]
mov dword [eax + 0x104], ebp
pop ebp
pop ecx
ret 8
Function at 0x1003be10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f9c20
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10126008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.10011f30
test al, al
je 0x1003be4d
xor al, al
jmp 0x1003bfef
call fcn.1003bc10
test al, al
je 0x1003be5d
mov al, 1
jmp 0x1003bfef
push 0
mov ecx, edi
call fcn.10006770
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x1003beab
lea ecx, [ebp - 0x28]
call fcn.10006810
mov dword [ebp - 4], 0
mov edx, ecx
mov ecx, edi
call fcn.10047020
test al, al
je 0x1003be9c
push 0
lea ecx, [ebp - 0x28]
call fcn.10006770
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100067b0
mov ecx, edi
call fcn.1003bc10
test al, al
jne 0x1003be56
mov ecx, edi
call fcn.10011f40
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x1003bf95
call fcn.100053d0
mov ebx, eax
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x1003bedd
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x1003bf00
mov eax, ebx
cmp ecx, 8
jb 0x1003bef6
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x1003bf85
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.1003a210
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10011f30
test al, al
jne 0x1003bf76
call fcn.1003ba10
test al, al
jne 0x1003bf76
push 0
lea ecx, [ebp - 0x28]
call fcn.10006770
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1003bf76
lea ecx, [ebp - 0x40]
call fcn.10006810
mov byte [ebp - 4], 2
mov edx, ecx
lea ecx, [ebp - 0x28]
call fcn.10047020
test al, al
je 0x1003bf6a
push 0
lea ecx, [ebp - 0x40]
call fcn.10006770
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.100067b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100067b0
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x1003bed1
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call fcn.1003ba10
test al, al
jne 0x1003bfe8
push 0
mov ecx, edi
call fcn.10006770
push eax
call ebx
test eax, eax
jne 0x1003bfe8
lea ecx, [ebp - 0x40]
call fcn.10006810
mov dword [ebp - 4], 3
mov edx, ecx
mov ecx, edi
call fcn.10047020
test al, al
je 0x1003bfd9
push 0
lea ecx, [ebp - 0x40]
call fcn.10006770
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.100067b0
mov ecx, edi
call fcn.1003bc10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100f11c3
mov esp, ebp
pop ebp
ret
Function at 0x10043060
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10122e48
push 0x100f1be6
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x10126008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov dword [ebp - 0x438], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.100053d0
mov dword [ebp - 0x43c], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x100430c8
mov eax, dword [eax]
lea edx, [ebp - 0x43c]
mov ecx, eax
call fcn.10006bd0
mov edx, esi
call fcn.100431c0
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x1004310b
test bl, bl
jne 0x1004319b
mov ecx, esi
call fcn.100053d0
mov dword [ebp - 0x438], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x10043133
mov eax, dword [eax]
lea edx, [ebp - 0x438]
mov ecx, eax
call fcn.10006bd0
push 0x410
push 0
lea eax, [ebp - 0x430]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x430]
call fcn.10006c00
push eax
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.10006a10
mov ecx, esi
call fcn.10011f30
movzx ebx, bl
mov ecx, 1
test al, al
cmove ebx, ecx
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100f11c3
mov esp, ebp
pop ebp
ret
Function at 0x100467f0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x1004682a
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x1004682a
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1004682a
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1004682a
cmp edi, dword [esi]
jne 0x1004682a
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc

Function at 0x10046840
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x10126008]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x100468a3
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x100468a3
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1004687e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100468a3
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.100f11c3
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.100f11c3
add esp, 8
ret 4

Function at 0x10046950
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x100469fe
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.100468c0
test al, al
je 0x100469fe
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0
push edi
push dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.100468c0
test al, al
je 0x100469fe
mov eax, dword [ebp + 8]
xor bl, bl
cmp dword [esp + 0x10], eax
jne 0x100469d4
cmp dword [esp + 0x14], edi
jne 0x100469d4
mov eax, dword [esi]
test eax, eax
jne 0x100469c1
xor bl, bl
jmp 0x100469d4
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x100469bd
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne bl
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push dword [esp + 0x24]
mov ecx, esi
movlpd qword [esp + 0x1c], xmm0
push dword [esp + 0x24]
call fcn.100468c0
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10046a10
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f9b58
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10126008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
cmp esi, 0xffffffff
jne 0x10046a47
xor al, al
jmp 0x10046aa9
and esi, 0xffffb1af
push esi
call fcn.10006770
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10046a62
mov al, 1
jmp 0x10046aa9
lea ecx, [ebp - 0x28]
call fcn.10006810
mov dword [ebp - 4], 0
mov edx, ecx
mov ecx, ebx
call fcn.10047020
test al, al
je 0x10046a96
push esi
lea ecx, [ebp - 0x28]
call fcn.10006770
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10046a96
mov bl, 1
jmp 0x10046a98
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100067b0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100f11c3
mov esp, ebp
pop ebp
ret

Function at 0x10046ad0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f9b58
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10126008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.10006770
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10046b4d
lea ecx, [ebp - 0x28]
call fcn.10006810
mov dword [ebp - 4], 0
mov edx, ecx
mov ecx, ebx
call fcn.10047020
test al, al
je 0x10046b3c
lea ecx, [ebp - 0x28]
call fcn.10006770
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100067b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100f11c3
mov esp, ebp
pop ebp
ret
Function at 0x10046c80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fb4d0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10126008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.10006770
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x10046cc6
mov al, 1
jmp 0x10046dba
mov ecx, esi
call fcn.10006770
push eax
lea ecx, [ebp - 0x28]
call fcn.100067c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10046ad0
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100067b0
cmp ebx, 0xffffffff
jne 0x10046d05
xor al, al
jmp 0x10046dba
mov ecx, esi
call fcn.10006770
push eax
lea ecx, [ebp - 0x28]
call fcn.100067c0
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.10046a10
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100067b0
test bl, bl
je 0x10046cfe
mov ecx, esi
call fcn.10006770
push eax
call edi
test eax, eax
jne 0x10046cbf
lea ecx, [ebp - 0x28]
call fcn.10006810
mov dword [ebp - 4], 2
mov edx, ecx
mov ecx, esi
call fcn.10047020
test al, al
je 0x10046d7c
lea ecx, [ebp - 0x28]
call fcn.10006770
push eax
call edi
test eax, eax
je 0x10046d7c
mov bl, 1
jmp 0x10046da9
mov ecx, esi
call fcn.10006770
push eax
lea ecx, [ebp - 0x44]
call fcn.100067c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.10046a10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.100067b0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100067b0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100f11c3
mov esp, ebp
pop ebp
ret
Function at 0x10047150
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fb558
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10126008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x10047193
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.10047eb0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x100471bc
lea edx, [esi + 8]
jmp 0x100471be
xor edx, edx
mov ecx, ebx
call fcn.10011f30
test al, al
jne 0x100471d0
call fcn.10006770
jmp 0x100471d2
xor eax, eax
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x100471f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100471f3
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x1004721c
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10047231
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.100f154a
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100f11c3
mov esp, ebp
pop ebp
ret 4
Function at 0x10047270
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fa908
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x10126008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x100472b3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.10047f70
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x100472dd
lea edx, [esi + 8]
jmp 0x100472df
xor edx, edx
mov ecx, ebx
mov dword [ebp - 0x18], edx
call fcn.10011f30
test al, al
jne 0x100472f4
call fcn.10006770
jmp 0x100472f6
xor eax, eax
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x10047343
call ecx
cmp eax, 5
jne 0x1004733d
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.10011f30
test al, al
jne 0x1004732d
call fcn.10006770
jmp 0x1004732f
xor eax, eax
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
test eax, eax
je 0x10047361
call ecx
cmp eax, 0xb7
jne 0x10047356
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.10047790
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x10047387
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1004739c
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.100f154a
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100f11c3
mov esp, ebp
pop ebp
ret 4
Function at 0x100491a0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x10126008]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x10049205
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100491e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10049205
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.100f11c3
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.100f11c3
add esp, 8
ret 4
Function at 0x1004a160
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fbc40
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10126008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
test eax, eax
je 0x1004a247
cmp byte [eax + 0x54], 0
je 0x1004a247
add eax, 0x1c
lea ecx, [ebp - 0x38]
push eax
call fcn.1003cb80
push 0
mov edx, edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.10044b20
add esp, 4
mov byte [ebp - 4], 1
lea edi, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
mov eax, dword [esi]
cmovae edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 8
jb 0x1004a1e2
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1004a22c
push 2
push 0
push 0
push esi
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x30]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.10035d60
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.1003cbd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100f11c3
mov esp, ebp
pop ebp
ret 4
Function at 0x1007c000
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov ebp, edx
push 0
push 0x14
mov dword [ebx], 0
call fcn.1004d1e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1007c028
lea eax, [esi + 7]
pop edi
pop esi
pop ebp
pop ebx
ret
cmp byte [0x1012604c], 0
mov edi, dword [esp + 0x14]
je 0x1007c071
mov eax, dword [0x1012613c]
test eax, eax
je 0x1007c04c
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x1007c071
lea eax, [esi + 4]
mov dword [esi + 8], ebp
push eax
push 0
push esi
push 0x100500e0
push 0
push 0
mov dword [esi + 0xc], edi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x1007c07e
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x1007c096
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi + 4], eax
call ebp
add esp, 4
mov dword [esi + 0x10], eax
pop edi
mov dword [ebx], esi
xor eax, eax
pop esi
pop ebp
pop ebx
ret