joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10065ad
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov eax, dword [section..data]
mov ebx, section..data
cmp eax, ebx
je 0x10065ee
cmp byte [eax + 0x19], 4
jb 0x10065ee
test byte [eax + 0x1c], 1
je 0x10065ee
push 0x100187c
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002ce5
push edi
mov edi, 0x1012500
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x1012064]
xor edx, edx
inc edx
mov dword [ebp - 0x10], edx
cmp ecx, edx
je 0x1006750
cmp dword [0x10120fc], esi
je 0x10066c1
mov eax, dword [0x1012104]
cmp eax, esi
je 0x10066c1
cmp dword [0x1012100], 0x200
jge 0x10066c1
cmp ecx, 3
jne 0x10066c1
mov dword [0x1012064], 4
mov esi, dword [eax]
inc dword [0x1012100]
push edi
mov dword [ebp - 0xc], edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
and dword [ebp - 0x10], 0
test esi, esi
je 0x1006750
xor eax, eax
push eax
push eax
push esi
push 0x1006526
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
test eax, eax
jne 0x10066ee
call esi
mov dword [ebp - 4], eax
test eax, eax
je 0x10066ee
mov eax, dword [section..data]
cmp eax, ebx
je 0x1006750
cmp byte [eax + 0x19], 1
jb 0x1006750
test byte [eax + 0x1c], 1
je 0x1006750
push dword [ebp - 4]
push 0x100187c
push 0x26
jmp 0x1006745
and dword [ebp - 0xc], esi
mov dword [ebp - 4], 5
mov eax, dword [section..data]
cmp eax, ebx
je 0x1006750
test byte [eax + 0x1c], 1
je 0x1006750
push 0x100187c
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002ce5
jmp 0x1006750
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
test eax, eax
jne 0x1006706
and dword [ebp - 4], eax
jmp 0x1006750
cmp eax, 0xffffffff
jne 0x1006712
call esi
mov dword [ebp - 4], eax
jmp 0x1006720
cmp eax, 0x102
je 0x1006720
mov dword [ebp - 4], 0x139f
cmp dword [ebp - 4], 0
je 0x1006750
mov eax, dword [section..data]
cmp eax, ebx
je 0x1006750
cmp byte [eax + 0x19], 1
jb 0x1006750
test byte [eax + 0x1c], 1
je 0x1006750
push dword [ebp - 4]
push 0x100187c
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100f8f1
lea eax, [ebp - 0xc]
push eax
call fcn.010059c1
cmp dword [ebp - 0x10], 0
je 0x1006766
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 8], 0
pop edi
je 0x1006776
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [section..data]
pop esi
cmp eax, ebx
pop ebx
je 0x10067a2
cmp byte [eax + 0x19], 4
jb 0x10067a2
test byte [eax + 0x1c], 1
je 0x10067a2
push dword [ebp - 4]
push 0x100187c
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100f8f1
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x10088ee
Capabilities:
Listen for remote procedure calls

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x101206c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea esi, [ebp + 8]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [section..data]
cmp eax, section..data
je 0x100893c
cmp byte [eax + 0x19], 4
jb 0x100893c
test byte [eax + 0x1c], 1
je 0x100893c
push 0x1001c38
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002ce5
mov eax, dword [section..data]
cmp dword [0x1012114], 1
mov ebx, 0x10124e0
je 0x1008963
push 0x1012114
push 0x1012110
push ebx
call fcn.0100b282
mov esi, eax
mov eax, dword [section..data]
jmp 0x1008965
xor esi, esi
test esi, esi
jne 0x1008a00
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x1012120
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.010087fd
mov esi, eax
test esi, esi
jne 0x10089f4
push eax
push dword [0x1012120]
push dword [0x1012088]
call fcn.0100bc8e
mov esi, eax
test esi, esi
jne 0x10089f4
push 1
push 0x4d2
push 1
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
mov esi, eax
test esi, esi
je 0x10089ea
mov eax, dword [section..data]
cmp eax, section..data
je 0x10089f4
cmp byte [eax + 0x19], 1
jb 0x10089f4
test byte [eax + 0x1c], 1
je 0x10089f4
push esi
push 0x1001c38
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100f8f1
jmp 0x10089f4
mov dword [0x1012068], 2
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [section..data]
cmp eax, section..data
je 0x1008a26
cmp byte [eax + 0x19], 4
jb 0x1008a26
test byte [eax + 0x1c], 1
je 0x1008a26
push esi
push 0x1001c38
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100f8f1
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01008f22
leave
ret 0x10
Function at 0x1008e21
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x10106d0
call fcn.01008ec4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1012574
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1008c36
cmp eax, esi
jne 0x1008c29
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1008c39
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1008c10
xor esi, esi
inc esi
mov eax, dword [0x1012570]
cmp eax, esi
jne 0x1008c4c
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1008c87
mov eax, dword [0x1012570]
test eax, eax
jne 0x1008c81
mov dword [0x1012570], esi
push 0x1001224
push 0x1001218
call fcn.01008b8d
pop ecx
pop ecx
test eax, eax
je 0x1008c87
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1008d51
mov dword [0x1012140], esi
mov eax, dword [0x1012570]
cmp eax, esi
jne 0x1008cab
push 0x1001214
push 0x100120c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1012570], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1008cb8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1012578], ebx
je 0x1008cd9
push 0x1012578
call fcn.01009039
pop ecx
test eax, eax
je 0x1008cd9
push ebx
push 2
push ebx
call dword [0x1012578]
push dword [0x1012128]
push dword [0x101212c]
push dword [0x1012124]
call fcn.010040e7
add esp, 0xc
mov dword [0x101213c], eax
cmp dword [0x1012130], ebx
jne 0x1008d37
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1012140], ebx
jne 0x1008d45
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x101213c]
call fcn.01008f09
ret
call fcn.01009186
jmp 0x1008bee
Function at 0x100b8d2
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov eax, dword [section..data]
mov esi, section..data
cmp eax, esi
je 0x100b90f
cmp byte [eax + 0x19], 4
jb 0x100b90f
test byte [eax + 0x1c], 1
je 0x100b90f
push 0x1001d14
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002ce5
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
mov dword [edi], ebx
call fcn.0100b74e
mov ebx, eax
test ebx, ebx
jne 0x100b99a
push eax
call dword [sym.imp.RPCRT4.dll_RpcImpersonateClient]
mov ebx, eax
test ebx, ebx
je 0x100b950
mov eax, dword [section..data]
cmp eax, esi
je 0x100b99a
cmp byte [eax + 0x19], 1
jb 0x100b99a
test byte [eax + 0x1c], 1
je 0x100b99a
push ebx
push 0x1001d14
push 0x2a
jmp 0x100b98f
lea eax, [ebp - 8]
push eax
mov dword [edi], 1
call fcn.0100b80f
mov ebx, eax
test ebx, ebx
jne 0x100b99a
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x100b99a
push 5
pop ebx
mov eax, dword [section..data]
cmp eax, esi
je 0x100b99a
test byte [eax + 0x1c], 1
je 0x100b99a
push ebx
push 0x1001d14
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100f8f1
push dword [ebp - 4]
call fcn.0100a3d2
push dword [ebp - 8]
call fcn.0100a3d2
mov eax, dword [section..data]
pop edi
cmp eax, esi
je 0x100b9d3
cmp byte [eax + 0x19], 4
jb 0x100b9d3
test byte [eax + 0x1c], 1
je 0x100b9d3
push ebx
push 0x1001d14
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100f8f1
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x100e652
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
or edx, 0xffffffff
sub edx, eax
sub esp, 0x10
cmp ecx, edx
jb 0x100e66d
xor eax, eax
leave
ret
add eax, ecx
mov dword [ebp - 0x10], eax
cmp eax, dword [esi + 0x20]
ja 0x100e669
push ebx
imul eax, eax, 0x14
push 0x2be
mov ebx, 0x1002bbc
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.0100ec30
cmp dword [ebp - 4], 0
jne 0x100e69d
xor eax, eax
jmp 0x100e73d
mov eax, dword [esi + 0x28]
imul eax, eax, 0x14
push edi
push eax
lea edi, [esi + 0x24]
push dword [edi]
push dword [ebp - 4]
call sub.msvcrt.dll_memcpy
add esp, 0xc
push 0x2c7
push ebx
push edi
call fcn.0100ed03
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0x28]
mov ebx, dword [ebp - 0x10]
mov dword [edi], eax
xor eax, eax
test ecx, ecx
setne al
imul eax, eax, 0xc
lea edx, [eax + esi]
mov dword [edx + 0x38], ecx
mov eax, dword [esi + 0x28]
cmp eax, ebx
jae 0x100e71b
mov edi, eax
imul edi, edi, 0x14
lea ecx, [eax + 1]
sub ebx, eax
shl ecx, 4
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], ebx
add eax, ebx
mov ebx, dword [ebp - 4]
lea edi, [edi + ebx + 0x10]
mov ebx, dword [edi]
xor ebx, ecx
and ebx, 0xf
xor ebx, ecx
mov dword [edi], ebx
mov edi, dword [ebp - 8]
add edi, 0x14
add ecx, 0x10
dec dword [ebp - 0xc]
mov dword [ebp - 8], edi
jne 0x100e6f8
mov ecx, dword [ebp - 4]
dec eax
imul eax, eax, 0x14
lea eax, [eax + ecx + 0x10]
or dword [eax], 0xfffffff0
mov eax, dword [esi + 0x2c]
mov dword [edx + 0x34], eax
mov edx, dword [ebp - 0x10]
mov eax, esi
call fcn.0100e618
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret

Function at 0x100f132
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
xor ebx, ebx
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
push 0x100f229
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call fcn.0100f94f
mov edi, eax
cmp edi, ebx
jne 0x100f20e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x1c], ecx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.0100efb3
mov edi, eax
cmp edi, ebx
jne 0x100f20e
push esi
push dword [0x1012090]
call fcn.0100e2e4
mov esi, dword [ebp - 0xc]
cmp dword [0x10124c8], ebx
je 0x100f1aa
mov edi, 0x12f
jmp 0x100f1f8
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
push dword [ebp - 4]
push ebx
push eax
push dword [ebp - 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100f1df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
je 0x100f1dd
cmp edi, 0xea
jne 0x100f1df
xor edi, edi
xor eax, eax
cmp edi, ebx
sete al
mov dword [esi + 8], eax
cmp edi, ebx
jne 0x100f1f8
push 0x10124c4
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push dword [0x1012090]
call fcn.0100e35a
push esi
call fcn.0100f06a
pop esi
cmp edi, ebx
je 0x100f21c
cmp dword [ebp - 4], ebx
je 0x100f21c
lea eax, [ebp - 4]
push eax
call fcn.0100f9ea
mov eax, edi
pop edi
pop ebx
leave
ret 0xc
Function at 0x100205f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp + 8]
push eax
push 1
push 0
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10020cc
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x10020cc
cmp dword [ebp - 8], 4
jne 0x10020cc
cmp dword [ebp - 4], 4
jne 0x10020cc
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
xor eax, eax
inc eax
jmp 0x10020ce
xor eax, eax
leave
ret 0xc

Function at 0x10020d7
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
push esi
lea eax, [ebp + 8]
push eax
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1002100
xor eax, eax
jmp 0x1002129
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, esi
sete al
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10021b7
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1004068]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x424]
push eax
call fcn.01002133
test eax, eax
je 0x1002252
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
lea eax, [ebp - 0x424]
mov dword [esp], 0x10016a8
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
je 0x1002252
mov word [eax + 0x12], 0x69
mov word [eax + 0x14], 0x6e
mov word [eax + 0x16], 0x66
and word [ebp - 0x14], 0
lea eax, [ebp - 0x424]
push eax
push 8
lea eax, [ebp - 0x14]
push eax
push 0x10016a4
push 0x1001668
push 0x1001658
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
jne 0x1002256
xor eax, eax
jmp 0x100226c
push 0xa
lea eax, [ebp - 0x14]
push 0
push eax
call dword [sym.imp.msvcrt.dll_wcstoul]
mov dword [esi], eax
xor eax, eax
add esp, 0xc
inc eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.0100289a
leave
ret 4
Function at 0x10029b2
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x10018f8
call fcn.01002b68
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x10029ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10029ed
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1002a05
cmp eax, 0x20b
je 0x10029f2
mov dword [ebp - 0x1c], edi
jmp 0x1002a19
cmp dword [ecx + 0x84], 0xe
jbe 0x10029ed
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1002a13
cmp dword [ecx + 0x74], 0xe
jbe 0x10029ed
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1004080], 0xffffffff
or dword [0x1004084], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100407c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1004078]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1004088], eax
call fcn.01002b60
cmp dword [0x100406c], edi
jne 0x1002a74
push fcn.01002b60
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01002b49
push 0x1004010
push 0x100400c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1004074]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1004070]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x1004008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010027b3
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1002aeb
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1002b20
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01002ba3
ret
Function at 0x10002ff8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10003051
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10003043
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x1000303f
cmp esi, eax
jae 0x10003043
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10003031
cmp esi, eax
jb 0x10003047
xor eax, eax
jmp 0x10003050
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x1000571f
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x24]
push eax
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x10005761
push esi
push esi
push edi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x10005761
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edi
lea esi, [ebp - 0x10]
push 0x10018e28
lea ecx, [ebp - 4]
call fcn.100033b6
push 0x10001414
push 0x10001410
lea ecx, [ebp + 0xc]
call fcn.10005466
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push dword [ebp + 8]
push 0x100013f4
push eax
call fcn.10003793
mov edi, dword [ebp - 4]
add esp, 0x10
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push dword [ebp + 0x10]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x100057dd
lea ecx, [edi - 0x10]
call fcn.1000310f
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.1000310f
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.1000310f
pop edi
mov eax, esi
pop esi
leave
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
jmp 0x100057b7

Function at 0x10005875
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.10003573
xor edi, edi
push edi
push 0x23
push 0x104
mov ecx, esi
call fcn.100035b3
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.1000503b
push 0x1000141c
mov ecx, esi
call fcn.100056c2
movzx eax, word [edi + 0x100012f8]
push 0x5f
push eax
lea ecx, [ebp + 0xc]
call fcn.100053ef
inc edi
inc edi
cmp edi, 0x12
jb 0x100058b4
lea eax, [ebp + 0xc]
push eax
push 0x10001418
lea eax, [ebp + 8]
push eax
call fcn.10005627
push eax
mov ecx, esi
call fcn.10005825
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.1000310f
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.1000310f
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x10005b76
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
xor edi, edi
call fcn.1000358b
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.1000358b
lea eax, [ebp - 4]
push eax
call fcn.1000590a
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10005bb1
inc edi
lea ecx, [esi - 0x10]
call fcn.1000310f
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.1000310f
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.1000310f
mov eax, edi
pop edi
pop esi
leave
ret 8

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
xor edi, edi
call fcn.1000358b
lea eax, [ebp - 4]
push eax
call fcn.10005875
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], edi
je 0x10005c14
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10005c14
test al, 0x10
je 0x10005c14
inc edi
lea ecx, [esi - 0x10]
call fcn.1000310f
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.1000310f
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x10005c34
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
and dword [ebp - 0x14], 0
cmp dword [eax - 0xc], 0
push ebx
push esi
push edi
jne 0x10005c62
xor esi, esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.1000310f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.1000358b
call fcn.10005bdc
xor esi, esi
inc esi
cmp eax, esi
je 0x10005c4e
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 8]
call fcn.1000358b
mov eax, dword [ebp - 8]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea ecx, [ebp - 8]
call fcn.100051bc
mov edi, 0x10001418
cmp ax, 0x5c
je 0x10005caa
push edi
lea ecx, [ebp - 8]
call fcn.100056c2
push 0x10018e28
lea ecx, [ebp - 0xc]
call fcn.100033b6
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
xor esi, esi
call fcn.100055e1
push eax
call fcn.1000519b
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov bl, al
call fcn.1000310f
test bl, bl
je 0x10005d78
inc esi
push esi
push 0x5c
lea ecx, [ebp - 8]
call fcn.1000511f
mov esi, eax
push esi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 8]
call fcn.10005225
push eax
lea ecx, [ebp - 0xc]
call fcn.1000566b
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.1000310f
push ecx
lea eax, [ebp - 0xc]
mov ecx, esp
push eax
call fcn.1000358b
call fcn.10005bdc
mov ebx, dword [ebp - 0xc]
test eax, eax
jne 0x10005d46
cmp dword [ebx - 0xc], 2
jne 0x10005d3a
cmp word [ebx + 2], 0x3a
je 0x10005d46
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.100055e1
push eax
call fcn.1000519b
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 1], al
call fcn.1000310f
cmp byte [ebp - 1], 0
jne 0x10005ce6
jmp 0x10005d7b
mov ebx, dword [ebp - 0xc]
lea ecx, [ebx - 0x10]
call fcn.1000310f
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.1000310f
mov esi, dword [ebp - 0x14]
jmp 0x10005c4e