joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c786
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [esi + 0x64]
push eax
mov dword [ebp - 4], 1
call edi
test eax, eax
je 0x1000c8c6
lea eax, [esi + 0x26e]
push eax
call edi
test eax, eax
je 0x1000c8c6
xor eax, eax
xor bl, bl
cmp dword [esi + 0x47c], eax
jne 0x1000c7d7
lea edi, [esi + 0x478]
cmp dword [edi], eax
jne 0x1000c7d7
inc bl
jmp 0x1000c810
mov dword [ebp - 0xc], eax
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [esi + 0x64]
push eax
call fcn.1000a9cb
test eax, eax
pop ecx
pop ecx
jl 0x1000c8bd
lea eax, [ebp - 0xc]
push eax
lea edi, [esi + 0x478]
push edi
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
je 0x1000c80e
mov bl, 1
xor eax, eax
test bl, bl
je 0x1000c83a
push eax
lea eax, [esi + 0x64]
push eax
lea ecx, [esi + 0x30]
call fcn.1000c265
test eax, eax
mov dword [ebp - 4], eax
jl 0x1000c8c6
lea eax, [esi + 0x64]
push edi
push eax
call fcn.1000a9cb
pop ecx
pop ecx
jmp 0x1000c88b
cmp dword [esi + 0x484], eax
jne 0x1000c853
cmp dword [esi + 0x480], eax
jne 0x1000c853
mov dword [ebp - 4], 0x8000ffff
jmp 0x1000c8c6
mov dword [ebp - 0xc], eax
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [esi + 0x26e]
push eax
call fcn.1000a9cb
test eax, eax
pop ecx
pop ecx
jl 0x1000c889
lea eax, [ebp - 0xc]
push eax
lea eax, [esi + 0x480]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
je 0x1000c892
jmp 0x1000c84a
mov bl, 1
test eax, eax
mov dword [ebp - 4], eax
jl 0x1000c8c6
test bl, bl
je 0x1000c8c0
push 0
lea edi, [esi + 0x26e]
push edi
lea ecx, [esi + 0x10]
call fcn.1000bdfb
test eax, eax
mov dword [ebp - 4], eax
jl 0x1000c8c6
lea eax, [esi + 0x480]
push eax
push edi
call fcn.1000a9cb
pop ecx
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x1000c915
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi + 0x64]
push eax
call edi
lea ebx, [esi + 0x26e]
push ebx
call edi
push 8
xor edi, edi
lea eax, [esi + 0x478]
push edi
push eax
call fcn.1001ade0
push 8
lea eax, [esi + 0x480]
push edi
push eax
call fcn.1001ade0
add esp, 0x18
push edi
lea eax, [esi + 0x64]
push eax
lea ecx, [esi + 0x30]
call fcn.1000c265
push edi
push ebx
lea ecx, [esi + 0x10]
call fcn.1000bdfb
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000f7a4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x488]
xor ebx, ebx
cmp eax, ebx
je 0x1000f7e5
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x1000f7e5
cmp dword [ebp - 4], 0x103
je 0x1000f7e5
push dword [esi + 0x488]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x488], ebx
cmp dword [esi + 0x488], ebx
jne 0x1000f81a
lea eax, [esi + 0x48c]
push eax
push ebx
push esi
push 0x1000f756
push ebx
push ebx
call fcn.1001c2fb
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x488], eax
jne 0x1000f81a
push 0xfffffffffffffffe
push ebx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov bl, 1
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x1000fb00
Capabilities:
Read file via mapping

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esi]
add edi, edi
cmp dword [esi + 8], 0
jne 0x1000fb25
test edi, edi
je 0x1000fb25
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x1000fb72
push ebx
push edi
push 0
push 0
mov word [eax], 0
mov eax, dword [esi + 4]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x1000fb6e
lea ecx, [esi + 0xc]
call fcn.1000f8d0
mov ecx, dword [esi + 8]
push edi
push ebx
push ecx
call fcn.1001c3b0
add esp, 0xc
lea ecx, [esi + 0xc]
call fcn.1000f920
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 8]
pop ebx
pop edi
pop esi
ret

Function at 0x1000fd70
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
mov word [ecx + 0x20], ax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
mov dword [ecx + 0x14], 0xc3d2e1f0
mov dword [ecx + 0x64], eax
mov dword [ecx + 0x68], eax
mov dword [ecx + 0x6c], eax
mov dword [ecx + 0x70], eax
push 0x29
mov dword [ecx + 0x74], eax
add ecx, 0x78
push eax
push ecx
call fcn.1001ade0
add esp, 0xc
ret
Function at 0x100103f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
movzx eax, word [esi + 0x20]
cmp ax, 0x37
push edi
mov edi, 1
jbe 0x10010464
movzx eax, ax
mov byte [eax + esi + 0x22], 0x80
add word [esi + 0x20], di
movzx eax, word [esi + 0x20]
mov ecx, 0x40
xor bl, bl
cmp ax, cx
jae 0x10010435
movzx edx, ax
mov byte [edx + esi + 0x22], bl
add word [esi + 0x20], di
cmp word [esi + 0x20], cx
movzx eax, word [esi + 0x20]
jb 0x10010420
mov ecx, esi
call fcn.1000feb0
mov ecx, 0x38
cmp word [esi + 0x20], cx
jae 0x10010495
jmp 0x10010450
movzx eax, word [esi + 0x20]
mov byte [eax + esi + 0x22], bl
add word [esi + 0x20], di
cmp word [esi + 0x20], cx
jb 0x10010450
jmp 0x10010495
movzx ecx, ax
mov byte [ecx + esi + 0x22], 0x80
add word [esi + 0x20], di
movzx eax, word [esi + 0x20]
mov ecx, 0x38
cmp ax, cx
jae 0x10010495
xor bl, bl
movzx edx, ax
mov byte [edx + esi + 0x22], bl
add word [esi + 0x20], di
cmp word [esi + 0x20], cx
movzx eax, word [esi + 0x20]
jb 0x10010480
mov eax, dword [esi + 0x1c]
mov ecx, eax
mov edx, eax
shr eax, 8
mov byte [esi + 0x5c], al
movzx eax, byte [esi + 0x1c]
shr ecx, 0x18
shr edx, 0x10
mov byte [esi + 0x5d], al
mov eax, dword [esi + 0x18]
mov byte [esi + 0x5a], cl
mov byte [esi + 0x5b], dl
mov ecx, eax
mov edx, eax
shr ecx, 0x18
shr edx, 0x10
shr eax, 8
mov byte [esi + 0x60], al
movzx eax, byte [esi + 0x18]
mov byte [esi + 0x5e], cl
pop edi
mov byte [esi + 0x5f], dl
mov byte [esi + 0x61], al
mov ecx, esi
pop esi
pop ebx
jmp fcn.1000feb0
Function at 0x10010540
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
mov dword [ebp - 0x14], ecx
je 0x1001055c
cmp dword [ebp + 0xc], 0
je 0x1001055c
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x10010566
mov dword [ebp - 4], 0x80070057
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0x10]
lea edx, [esi + 8]
cmp edx, 0x10000
mov dword [ebp - 8], edx
jb 0x1001057f
mov dword [ebp - 8], 0x10000
test eax, eax
jl 0x1001068f
cmp dword [ecx + 4], 0
jne 0x10010599
mov eax, 0x80070005
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 8]
push ebx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x100105bf
mov dword [ebp - 4], 0x8007000e
jmp 0x10010677
push edi
xor edi, edi
cmp edi, esi
jae 0x10010676
mov eax, esi
mov esi, dword [ebp - 8]
sub eax, edi
add esi, 0xfffffff8
cmp eax, esi
jae 0x100105da
mov esi, eax
mov ecx, dword [ebp + 0xc]
push esi
lea edx, [edi + ecx]
push edx
push ebx
mov dword [ebp - 0xc], esi
call fcn.1001c3b0
mov eax, dword [ebp - 8]
add esp, 0xc
push eax
mov eax, dword [ebp - 0x14]
xor edx, edx
add esi, edi
cmp esi, dword [ebp + 0x10]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [eax + 4]
sete dl
push ebx
push 0
push edx
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x10010635
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x10010626
mov dword [ebp - 4], eax
jmp 0x10010661
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x10010661
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0xc]
push ecx
push ebx
push eax
mov dword [ebp - 0x10], 0
call edx
test eax, eax
mov dword [ebp - 4], eax
jl 0x10010676
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jne 0x1001066f
mov edi, esi
cmp dword [ebp - 4], 0
jl 0x10010676
mov esi, dword [ebp + 0x10]
jmp 0x100105c2
mov dword [ebp - 4], 0x8000ffff
pop edi
test ebx, ebx
je 0x1001068b
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10010940
Capabilities:
Encrypt data using des via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov ebx, ecx
mov esi, dword [ebx]
neg esi
sbb esi, esi
push edi
and esi, 0x7ff8fffb
add esi, 0x80070005
mov edi, 0
mov dword [ebp - 4], edi
js 0x10010971
cmp dword [ebp + 8], edi
jne 0x10010971
mov esi, 0x80070057
mov eax, dword [ebx + 4]
cmp eax, edi
je 0x10010982
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [ebx + 4], edi
cmp esi, edi
jl 0x10010a64
mov ecx, dword [ebx]
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x8004
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x100109b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x100109b6
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x10010a64
mov eax, dword [ebp - 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 4
lea edx, [ebp - 8]
push edx
push eax
mov dword [ebp - 8], 0x420042
call edi
test eax, eax
jne 0x100109f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100109f2
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jl 0x10010a64
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp + 8]
push 0
add eax, eax
push eax
mov eax, dword [ebp - 4]
push edx
push eax
call edi
test eax, eax
jne 0x10010a2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10010a29
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jl 0x10010a64
mov ecx, dword [ebp - 4]
mov edx, dword [ebx]
lea eax, [ebx + 4]
push eax
push 0xc00000
push ecx
push 0x6603
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x10010a64
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10010a62
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x10010a72
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100118b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 8
cmp dword [ebp + 8], 0
push esi
je 0x100118c8
test eax, eax
je 0x100118c8
xor esi, esi
jmp 0x100118cd
mov esi, 0x80070057
test esi, esi
mov dword [ebp - 4], 0
jl 0x10011972
push edi
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x10011913
call edi
test eax, eax
jle 0x10011911
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jl 0x10011961
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov esi, eax
test esi, esi
jl 0x10011961
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push 0
lea edx, [ebp - 8]
push edx
mov edx, dword [ebp - 4]
push ecx
push edx
push 0xffffffffffffffff
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10011961
call edi
test eax, eax
jle 0x1001195f
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp dword [ebp - 4], 0
pop edi
je 0x10011972
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100119f0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0xee4]
test eax, eax
mov byte [esi + 0xed8], 0
je 0x10011a0e
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0xedc]
test eax, eax
je 0x10011a4d
mov ecx, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10011a36
mov edx, dword [esi + 0xedc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0xedc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xedc], 0
pop esi
pop ebp
ret 4
Function at 0x10011a70
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002f10b
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x1003dd60]
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 eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 0xe8], eax
je 0x10011ab4
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x10011ab6
xor eax, eax
lea edi, [eax + eax]
lea eax, [edi + 2]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10011be5
mov eax, dword [ebp - 0xe8]
push edi
push eax
push esi
call fcn.1001c3b0
add esp, 0xc
push esi
mov word [edi + esi], bx
call dword [sym.imp.USER32.dll_CharLowerW]
lea ecx, [ebp - 0xe4]
call fcn.10010e60
lea ecx, [ebp - 0xe4]
mov dword [ebp - 4], ebx
call fcn.1000fd70
push edi
push esi
lea ecx, [ebp - 0xe4]
call fcn.10010eb0
lea ecx, [ebp - 0xe4]
call fcn.10010f20
lea ecx, [ebp - 0xe4]
call fcn.1000fdc0
mov edi, eax
test edi, edi
je 0x10011bc3
cmp byte [edi], bl
je 0x10011bc3
mov ecx, dword [0x100319ac]
mov edx, dword [0x100319b0]
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0x30
sub ecx, eax
push ecx
push edi
lea edx, [ebp + eax - 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x40]
push eax
push ebx
push ebx
mov byte [ebp - 0x11], bl
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
test ebx, ebx
je 0x10011bc3
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10011bc3
cmp eax, 0x80
je 0x10011bc3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [ebp - 0xe4]
mov dword [ebp - 4], 0xffffffff
call fcn.1000fd60
mov eax, ebx
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.1001b05b
mov esp, ebp
pop ebp
ret 4
Function at 0x10011d90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0x10], 0
je 0x10011da1
add ecx, 0x662
jmp 0x10011da4
add ecx, 0x48
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp + 0x10], ecx
push esi
mov esi, dword [ebp + 8]
lea ecx, [eax + eax]
push edi
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push esi
call fcn.1001ade0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call fcn.100117d0
push 0x1003f20c
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push ecx
push eax
push ebx
push edi
push edx
push str._s_u__u__u_s
push esi
call fcn.1001d125
add esp, 0x1c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10011db6
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x10012370
Capabilities:
Delete file

Disassembly:
push ebx
push edi
mov ebx, ecx
call dword [0x1003dd34]
xor edi, edi
cmp dword [ebx + 0x44], edi
jle 0x100123a9
push esi
lea esi, [ebx + 4]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
add edi, 1
add esi, 4
cmp edi, dword [ebx + 0x44]
jl 0x10012385
pop esi
pop edi
pop ebx
ret
Function at 0x10014f00
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002f4a0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x1003dd60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov si, word [edi]
xor ebx, ebx
neg si
mov dword [ebp - 4], ebx
sbb esi, esi
and esi, 0x7ff8ffa9
add esi, 0x80070057
js 0x1001501e
lea ecx, [ebp - 0x34]
call fcn.100021d1
mov eax, dword [ebp - 0x1c]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x20]
and eax, ecx
push eax
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, ebx
jne 0x10014f98
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1001500d
cmp eax, ebx
jg 0x10014f8a
mov esi, eax
jmp 0x1001500d
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x1001500d
lea edx, [ebp - 0x10]
push edx
push str.S_1_5_18
mov dword [ebp - 0x10], ebx
call sub.ADVAPI32.dll_ConvertStringSidToSidW
cmp eax, ebx
je 0x10014ffc
push str.SeSecurityPrivilege
call fcn.10011740
add esp, 4
cmp eax, ebx
je 0x10014ffc
push str.SeTakeOwnershipPrivilege
call fcn.10011740
add esp, 4
cmp eax, ebx
je 0x10014ffc
cmp dword [edi - 4], 1
jle 0x10014fe4
mov eax, dword [edi - 0xc]
push eax
lea ecx, [ebp + 8]
call fcn.10002be4
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
push ecx
push edx
push ebx
push eax
push 0x1d
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x1001500d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x1001501e
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x14], ebx
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10015041
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100162d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0xedc]
push edi
xor edi, edi
cmp eax, edi
je 0x10016328
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 4], 0x103
je 0x10016328
lea edx, [ebp - 8]
push edx
push edi
push esi
push 0x10016150
push edi
push edi
mov dword [ebp - 8], edi
call fcn.1001c2fb
add esp, 0x18
cmp eax, edi
mov dword [esi + 0xedc], eax
je 0x10016330
push 0xfffffffffffffffe
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1001632a
and eax, 0xffff
pop edi
or eax, 0x80070000
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10016350
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x1388
mov esi, ecx
call fcn.100119f0
mov edx, dword [esi + 0xee4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push edx
mov dword [esi + 0xed0], eax
mov dword [esi + 0xed4], ecx
mov byte [esi + 0xed8], 1
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 0xee0]
push eax
push 0
push esi
push 0x10016150
push 0
push 0
call fcn.1001c2fb
add esp, 0x18
test eax, eax
mov dword [esi + 0xedc], eax
pop esi
je 0x100163b5
push 0xfffffffffffffffe
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop ebp
ret 8
Function at 0x1001b05b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1003dd60]
jne 0x1001b065
repz ret
jmp fcn.100209eb

Function at 0x10020aef
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1003e048]
je 0x10020b0a
inc edi
cmp edi, 0x17
jb 0x10020afb
cmp edi, 0x17
jae 0x10020c8a
push ebp
push 3
call fcn.100294e4
cmp eax, 1
pop ecx
je 0x10020c56
push 3
call fcn.100294e4
test eax, eax
pop ecx
jne 0x10020b3e
cmp dword [0x1003f41c], 1
je 0x10020c56
cmp ebx, 0xfc
je 0x10020c89
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x1003f900
push ebp
call fcn.10022cc6
add esp, 0xc
test eax, eax
je 0x10020b74
push esi
push esi
push esi
push esi
push esi
call fcn.1001caad
add esp, 0x14
push 0x104
mov esi, 0x1003f919
push esi
push 0
mov byte [0x1003fa1d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10020bb8
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10022cc6
add esp, 0xc
test eax, eax
je 0x10020bb8
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1001caad
add esp, 0x14
push esi
call fcn.1001bff0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10020bfd
push esi
call fcn.1001bff0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1003fc14
push 0x10035e64
sub ecx, eax
push ecx
push eax
call fcn.10028c86
add esp, 0x14
test eax, eax
je 0x10020bfd
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1001caad
add esp, 0x14
jmp 0x10020bff
xor esi, esi
push 0x10035e60
push ebx
push ebp
call fcn.10028bc0
add esp, 0xc
test eax, eax
je 0x10020c1f
push esi
push esi
push esi
push esi
push esi
call fcn.1001caad
add esp, 0x14
push dword [edi*8 + 0x1003e04c]
push ebx
push ebp
call fcn.10028bc0
add esp, 0xc
test eax, eax
je 0x10020c41
push esi
push esi
push esi
push esi
push esi
call fcn.1001caad
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10029327
add esp, 0xc
jmp 0x10020c89
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10020c89
cmp ebp, 0xffffffff
je 0x10020c89
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1003e04c]
push dword [esi]
call fcn.1001bff0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret