joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000e8dd
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x100450f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x424], edx
push edi
mov dword [ebp - 0x41c], esi
mov edi, 0x80004005
mov dword [ebp - 0x42c], 0x1000656c
xor ebx, ebx
mov dword [ebp - 0x428], 0x10006554
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
and dword [ebp - 0x418], 0
lea eax, [ebp - 0x418]
add esp, 0xc
push eax
mov eax, dword [esi + 4]
or eax, 1
push eax
push 0
push dword [ebp + ebx*4 - 0x42c]
push dword [esi]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002630b
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], 0x208
push eax
lea eax, [ebp - 0x20c]
xor edi, edi
push eax
push edi
push 0x10000002
push 0x10006530
push edi
push dword [ebp - 0x418]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegGetValueW]
mov esi, eax
test esi, esi
je 0x100262ef
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push 2
push edi
push edi
push dword [ebp - 0x418]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegGetValueW]
mov esi, eax
push dword [ebp - 0x418]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegCloseKey]
mov eax, dword [ebp - 0x20c]
test esi, esi
jne 0x10026301
test ax, ax
je 0x10026301
mov esi, dword [ebp - 0x41c]
test edi, edi
js 0x10026316
and dword [ebp - 0x41c], 0
lea esi, [ebp - 0x20c]
cmp ax, 0x22
jne 0x1000ea2b
lea eax, [ebp - 0x41c]
push eax
lea esi, [ebp - 0x20a]
mov eax, esi
push 0x1000652c
push eax
call dword [sym.imp.msvcrt.dll_wcstok_s]
add esp, 0xc
mov ebx, 0x104
lea eax, [ebp - 0x414]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
push ebx
mov ebx, dword [ebp - 0x424]
push ebx
cmp eax, 0x102
ja 0x1000ea80
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov edx, 0x104
cmp eax, edx
ja 0x1000ea83
test eax, eax
je 0x10026325
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10023280
mov esp, ebp
pop ebp
ret
push esi
jmp 0x1000ea56
push 8
pop edi
jmp 0x1000ea6d
cmp word [ebp - 0x20c], di
jne 0x1000e9c9
jmp 0x1000e99e
mov edi, 0x80004005
jmp 0x1000e9ec
mov eax, dword [ebp - 0x20c]
jmp 0x1000e9f2
inc ebx
cmp ebx, 2
jb 0x1000e91e
jmp 0x1000ea6d
push esi
mov ecx, ebx
call fcn.1000e4a6
jmp 0x1000ea6d
Function at 0x10014b5a
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x138]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword fs:[0x30]
mov edx, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
add ecx, 0x14
mov eax, dword [ecx]
jmp 0x10014b96
cmp eax, ecx
je 0x10026619
lea edi, [eax - 8]
cmp dword [edi + 0x18], edx
je 0x10014b9f
mov eax, dword [eax]
test eax, eax
jne 0x10014b84
jmp 0x10026619
test edi, edi
je 0x10014c2f
mov eax, dword [esi + 0x150]
cmp eax, 0x200
jae 0x10014c2f
shl eax, 5
mov dword [eax + esi + 0x158], edx
mov eax, dword [esi + 0x150]
mov ecx, dword [edi + 0x20]
add ecx, edx
shl eax, 5
mov dword [eax + esi + 0x15c], ecx
mov ecx, dword [esi + 0x150]
mov eax, dword [edi + 0x1c]
add ecx, 0xb
shl ecx, 5
mov dword [ecx + esi], eax
mov ecx, esi
push dword [edi + 0x30]
call fcn.100148f0
mov ecx, dword [esi + 0x150]
shl ecx, 5
mov dword [ecx + esi + 0x168], eax
mov dword [ecx + esi + 0x16c], edx
mov eax, dword [esi + 0x150]
shl eax, 5
mov byte [eax + esi + 0x170], 0
inc dword [esi + 0x150]
lock inc dword [0x10045c44]
mov dword [edi + 0x1c], 0x10014080
mov byte [esi + 0x40], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
pop ebp
ret 4
xor edi, edi
jmp 0x10014b9f

Function at 0x10015177
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push esi
mov esi, dword [ecx]
mov eax, dword [eax + 0xc]
add eax, 0x14
test esi, esi
je 0x100151b1
cmp esi, eax
je 0x100151b5
test edx, edx
je 0x100151a9
mov eax, dword [esi + 0x10]
mov dword [edx], eax
mov eax, dword [esi + 0x18]
mov dword [edx + 4], eax
lea eax, [esi + 0x24]
mov dword [edx + 8], eax
lea eax, [esi + 0x1c]
mov dword [edx + 0xc], eax
mov eax, dword [esi]
mov dword [ecx], eax
xor eax, eax
pop esi
ret
mov esi, dword [eax]
jmp 0x1001518a
mov eax, 0x103
pop esi
ret

Function at 0x1001d6ed
Capabilities:
Get thread local storage value

Disassembly:
push 8
mov eax, 0x100248d3
call fcn.100244ee
mov ebx, ecx
mov esi, dword [ebp + 8]
xor edi, edi
push edi
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.1001e470
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebx]
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
cmp eax, fcn.1001d7e0
jne 0x100270d8
mov ecx, ebx
call fcn.1001d7e0
cmp eax, 0xffffffff
je 0x1001d764
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x1001d764
mov dword [ebp - 4], 2
mov ecx, dword [ebx]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x14], eax
cmp eax, fcn.1001f1e0
jne 0x100270fa
mov ecx, ebx
call fcn.1001f1e0
push eax
mov ecx, esi
call fcn.1001efe0
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
jle 0x1001d775
mov eax, edi
call fcn.10024453
ret 4
mov edi, 0xc0000001
jmp 0x1001d76b
mov ecx, eax
mov esi, esp
call dword [0x100462b8]
mov ecx, ebx
call dword [ebp - 0x14]
cmp esi, esp
je 0x100270f2
mov ecx, 4
int 0x29
mov esi, dword [ebp + 8]
jmp 0x1001d729
mov ecx, eax
mov esi, esp
call dword [0x100462b8]
mov ecx, ebx
call dword [ebp - 0x14]
cmp esi, esp
je 0x10027114
mov ecx, 4
int 0x29
mov esi, dword [ebp + 8]
jmp 0x1001d75c
Function at 0x1001d977
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x18
mov eax, 0x1002493c
call fcn.100244ee
mov edi, ecx
call fcn.1001da8c
test eax, eax
js 0x1001d9ec
push dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.1001ee9c
lea edx, [edi + 4]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.1001d232
mov esi, eax
test esi, esi
js 0x1001da6d
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
cmp eax, fcn.1001d930
jne 0x100271a9
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1001d930
test eax, eax
jne 0x1001d9f4
mov ebx, 0xc8008000
lea ecx, [ebp - 0x24]
call fcn.1001ef70
mov eax, ebx
call fcn.10024453
ret 8
lea eax, [edi + 0xc]
mov ecx, edi
push eax
lea edx, [edi + 4]
push edx
call fcn.1001d8c1
mov esi, eax
test esi, esi
js 0x1001da6d
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [edi + 0x18], eax
cmp eax, 0xffffffff
je 0x1001da7c
mov dword [ebp - 0x14], 1
lea esi, [edi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [edi + 0x14], eax
cmp eax, 0xffffffff
je 0x100271d0
xor ecx, ecx
inc ecx
cmp dword [edi + 0x18], 0xffffffff
jne 0x1001d9e2
mov eax, dword [ebp + 0xc]
sub eax, 1
je 0x10027228
sub eax, 1
je 0x10027214
dec eax
sub eax, 1
je 0x100271f5
test ecx, ecx
je 0x100271e6
mov esi, 0xc8008000
lea ecx, [ebp - 0x24]
call fcn.1001ef70
mov eax, esi
jmp 0x1001d9ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], ebx
cmp eax, 2
je 0x1001da1a
jmp 0x1001da21
mov esi, esp
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call dword [0x100462b8]
mov ecx, edi
call dword [ebp - 0x14]
cmp esi, esp
je 0x100271cb
mov ecx, 4
int 0x29
jmp 0x1001d9d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1001da38
mov ecx, ebx
jmp 0x1001da3b
cmp dword [ebp - 0x14], 0
je 0x1001da68
jmp 0x1001d9e2
cmp dword [edi + 0x14], 0xffffffff
je 0x1002720a
test byte [edi + 0x14], 0x10
jne 0x1002720a
mov ecx, edi
call fcn.1003c7b0
jmp 0x10027251
mov ecx, edi
push esi
call fcn.1003c6d1
jmp 0x10027251
cmp dword [edi + 0x14], 0xffffffff
je 0x1001da68
test byte [edi + 0x14], 0x10
mov ecx, edi
je 0x10027203
jmp 0x1002720c
push esi
mov ecx, edi
call fcn.1003c6d1
test byte [edi + 0x14], 0x10
mov esi, eax
je 0x1001da6d
cmp dword [edi + 0x14], 0xffffffff
je 0x1001da6d
mov edx, dword [edi + 4]
mov ecx, dword [edi + 0xc]
call fcn.1003c7f1
mov esi, eax
jmp 0x1001da6d
Function at 0x1001f467
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x10045640
mov edi, edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x10045c10]
mov ecx, 0x1000779c
push edi
push ebx
push 0x100077c0
push 9
push ecx
xor esi, esi
call sym.IEShims.dll_IEShims_Uninitialize
add esp, 0x14
test eax, eax
je 0x1001f4b1
cmp dword [eax], ebx
jne 0x1001f4a9
cmp dword [eax + 4], edi
je 0x1001f4ae
mov eax, dword [eax + 0xc]
jmp 0x1001f49c
mov esi, dword [eax + 8]
push esi
push 0x100077a8
push 9
push ecx
call sym.IEShims.dll_IEShims_Uninitialize
add esp, 0x10
test esi, esi
je 0x1001f4da
push 0x10045640
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
cmp dword [ebp + 8], 0
je 0x1001f4c6
jmp 0x10027bee
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
int3
Function at 0x10023740
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1002377e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10023776
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10023780
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10023766
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10023850
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10023866
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x10023881
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x1002b320
Capabilities:
Create process on windows

Disassembly:
push 0xb4
mov eax, 0x100251cf
call fcn.10024524
mov ecx, dword [ebp + 0xc]
xor esi, esi
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x1c]
push ecx
push eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x48], edx
mov dword [ebp - 4], esi
call fcn.1002a346
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x5c]
call fcn.1001ee58
push ebx
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.1001ee9c
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.1001eee4
lea ecx, [ebp - 0x54]
call fcn.1001eee4
push 0x30
lea eax, [ebp - 0x44]
mov ebx, esi
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x44], 0x30
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x1002b3d1
cmp dword [ebp - 0x3c], ebx
je 0x1002b3d1
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], esi
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, dword [ebp - 0x4c]
jne 0x1002b3d1
mov ebx, dword [ebp - 0x3c]
push 0x34
lea eax, [ebp - 0x90]
mov dword [ebp - 0x98], 0x3c
push esi
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x5c]
add esp, 0xc
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x94], 0x1800540
mov dword [ebp - 0x8c], 0x1000b5f4
mov ecx, dword [eax - 0xc]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x88], ecx
mov ecx, dword [eax - 0xc]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x84], ecx
mov ecx, dword [eax - 0xc]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x80], ecx
movzx eax, word [eax + 0x30]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1002b470
mov eax, dword [ebp - 0x60]
push eax
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
or dword [edi + 4], 0xffffffff
mov dword [edi + 8], eax
mov dword [edi + 0xc], esi
jmp 0x1002b478
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x54]
call fcn.1001ef70
lea ecx, [ebp - 0x5c]
call fcn.1001ef70
lea ecx, [ebp - 0xc0]
call fcn.1002b2ed
jmp 0x1002b4a5
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test esi, esi
sete al
call fcn.10024476
ret 0x18
Function at 0x1002dcfe
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100450f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov eax, edx
mov dword [ebp - 0x214], eax
test ebx, ebx
jne 0x1002dd2c
mov eax, 0x80004005
jmp 0x1002de13
xor ecx, ecx
xor edx, edx
push esi
mov dword [eax], ecx
inc edx
push edi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], ecx
push eax
mov ecx, ebx
call fcn.1004190b
mov edi, dword [ebp - 0x210]
mov esi, eax
test esi, esi
js 0x1002de08
test edi, edi
je 0x1002de08
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor esi, esi
cmp eax, 0xffffffff
jne 0x1002dde4
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], esi
push eax
xor edx, edx
mov ecx, ebx
call fcn.1004190b
mov ebx, dword [ebp - 0x210]
test eax, eax
js 0x1002dddb
test ebx, ebx
je 0x1002dddb
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
push esi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x1002dddb
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x1002ddb6
push dword [ebp - 0x214]
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push ecx
push eax
call fcn.1002db6a
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1002de08
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x1002dde9
push dword [ebp - 0x214]
sub ecx, edx
sar ecx, 1
push ecx
push ecx
push edi
call fcn.1002db6a
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10023280
mov esp, ebp
pop ebp
ret

Function at 0x1002f2c9
Capabilities:
Print debug messages

Disassembly:
push 0xc
mov eax, 0x100253c5
call fcn.100244ee
and dword [ebp - 4], 0
mov eax, dword [0x100450a0]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
push dword [ebp + 8]
mov byte [ebp - 4], 1
mov esi, dword [0x10045ca4]
inc esi
mov dword [0x10045ca4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push esi
lea eax, [ebp - 0x18]
push 0x1000bad8
push eax
call fcn.1002b508
mov eax, dword [0x10045cac]
add esp, 0x14
mov esi, dword [ebp - 0x18]
test eax, eax
je 0x1002f328
push eax
push esi
call dword [sym.imp.msvcrt.dll_fputws]
pop ecx
pop ecx
cmp dword [0x10045ca8], 0
je 0x1002f338
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x18]
call fcn.1001ef70
jmp 0x1002f348
call fcn.10024453
ret 4
Function at 0x100362dd
Capabilities:
Enumerate files on windows

Disassembly:
push 0x274
mov eax, 0x1002564a
call fcn.10024524
mov edi, ecx
mov dword [ebp - 0x274], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
inc ebx
and dword [ebp - 0x268], 0
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x280], esi
call fcn.10036971
and dword [ebp - 4], 0
mov eax, dword [0x100450a0]
and dword [ebp - 0x26c], 0
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x278]
lea ecx, [ebp - 0x270]
add eax, 0xc
mov byte [ebp - 4], bl
push eax
mov dword [ebp - 0x27c], eax
call fcn.1001efe0
push dword [esi]
lea ecx, [ebp - 0x270]
call fcn.1001e710
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x268], esi
cmp esi, 0xffffffff
je 0x100363aa
lea eax, [ebp - 0x264]
mov ecx, edi
push eax
push dword [ebp - 0x27c]
call fcn.10035fa9
lea eax, [ebp - 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10036376
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
and dword [ebp - 0x268], 0
mov edi, dword [ebp - 0x278]
lea ecx, [ebp - 0x270]
add edi, 4
push edi
call fcn.1001efe0
mov eax, dword [ebp - 0x280]
lea ecx, [ebp - 0x270]
push dword [eax]
call fcn.1001e710
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x268], esi
cmp esi, 0xffffffff
je 0x1003641e
mov ecx, dword [ebp - 0x274]
lea eax, [ebp - 0x264]
push eax
push edi
call fcn.10035fa9
lea eax, [ebp - 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100363f2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x270]
call fcn.1001ef70
jmp 0x10036453
mov eax, ebx
call fcn.10024476
ret 8
Function at 0x1003c6d1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x1c
mov eax, 0x10025742
call fcn.100244ee
mov dword [ebp - 0x14], ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, ecx
mov eax, dword [0x100450a0]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov ebx, dword [ebp + 8]
mov edi, ecx
mov byte [ebp - 4], 2
mov eax, dword [ebx]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x18], eax
cmp edi, eax
jge 0x1003c771
mov eax, dword [ebx]
movzx ecx, word [eax + edi*2]
call fcn.1001f0ea
test eax, eax
je 0x1003c7a7
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
push edi
call fcn.1001e7e8
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1001d8c1
mov esi, eax
test esi, esi
js 0x1003c771
push dword [ebp - 0x20]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1003c759
test al, 0x10
je 0x1003c759
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
mov edx, esi
call fcn.1003c7f1
mov esi, eax
test esi, esi
jns 0x1003c7a7
cmp esi, 0xc0000035
je 0x1003c7a7
lea ecx, [ebp - 0x28]
call fcn.1001ef70
lea ecx, [ebp - 0x20]
call fcn.1001ef70
lea eax, [esi + 0x3fffffcb]
neg eax
sbb eax, eax
and eax, esi
call fcn.10024453
ret 4
mov eax, dword [ebp - 0x18]
inc edi
jmp 0x1003c709

Function at 0x1003c7b0
Capabilities:
Copy file

Disassembly:
mov edi, edi
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edi + 4]
push ebx
call fcn.1003c6d1
mov esi, eax
test esi, esi
js 0x1003c7eb
push 1
xor eax, eax
push eax
push eax
push eax
push dword [edi + 0xc]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x1003c7e1
mov esi, 0xc0000034
mov eax, esi
not eax
shr eax, 0x1f
mov dword [edi + 0x1c], eax
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x1003c7f1
Capabilities:
Create directory
Set file attributes

Disassembly:
push 0x4c
mov eax, 0x10025765
call fcn.10024524
mov edi, edx
mov ebx, ecx
and dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
push 0x1000c8c0
mov esi, 0xc000003a
call fcn.1001ee9c
push ebx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.1001e710
push 0
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1003c927
test edi, edi
je 0x1003c923
push 0
push 0x2000000
push 3
push 0
push 3
push 3
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1003c923
xor eax, eax
mov esi, 0x80
mov word [ebp - 0x4c], ax
xor edi, edi
lea eax, [ebp - 0x48]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x1003c887
mov esi, dword [ebp - 0x48]
mov edi, esi
shr edi, 0xe
and edi, 1
xor ecx, ecx
lea eax, [ebp - 0x50]
push ecx
push eax
push 2
lea eax, [ebp - 0x4c]
push eax
push ecx
push ecx
push 0x9003c
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1003c8aa
mov word [ebp - 0x4c], ax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x2000000
push 3
push 0
push 3
push 3
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1003c8f2
xor ecx, ecx
lea eax, [ebp - 0x50]
push ecx
push eax
push ecx
push ecx
push 2
lea eax, [ebp - 0x4c]
push eax
push 0x9c040
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and esi, 0x2027
jne 0x1003c8ff
mov esi, 0x80
push esi
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test edi, edi
je 0x1003c918
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_EncryptFileW]
jmp 0x1003c923
push 0
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_DecryptFileW]
xor esi, esi
jmp 0x1003c939
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1003c939
mov esi, 0xc0000035
lea ecx, [ebp - 0x58]
call fcn.1001ef70
jmp 0x1003c953
mov eax, esi
call fcn.10024476
ret
Function at 0x1003cbeb
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
xor ecx, ecx
push esi
mov dword [ebp - 8], ecx
mov esi, ecx
mov dword [ebp - 4], ecx
cmp dword [ebx + 0x38], ecx
jne 0x1003cc0c
xor eax, eax
jmp 0x1003cca2
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 8]
push eax
push ecx
push ecx
push dword [ebx + 0x38]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegQueryValueExW]
cmp eax, 2
je 0x1003cc05
test eax, eax
je 0x1003cc30
mov esi, 0xc0000001
jmp 0x1003cca0
push edi
push dword [ebp - 4]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x1003cc50
mov esi, 0xc0000017
jmp 0x1003cc9f
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
push 0
push dword [ebx + 0x38]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x1003cc71
mov esi, 0xc0000001
jmp 0x1003cc8f
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push 0
push 0
push dword [ebx + 0x54]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegSetValueExW]
test eax, eax
jne 0x1003cc6a
inc dword [0x100455fc]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1003d1c5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebx], esi
mov dword [ebp - 4], esi
mov eax, dword [edi + 0x54]
test eax, eax
jne 0x1003d20b
lea eax, [ebp - 4]
push eax
push 0xf003f
push esi
lea ecx, [edi + 0x58]
call fcn.1001c754
test eax, eax
je 0x1003d1fe
mov eax, 0xc8008000
jmp 0x1003d237
mov eax, dword [ebp - 4]
mov dword [edi + 0x54], eax
mov dword [edi + 0x50], 1
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1003d22b
mov dword [ebx], 1
inc dword [0x100455f8]
jmp 0x1003d235
cmp eax, 2
je 0x1003d235
mov esi, 0xc0000001
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8