joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002820
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x1001f004]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [0x1001f788]
test esi, esi
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x1c]
cmove esi, dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x20]
push edi
mov edi, dword [ebp + 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 8], eax
test edi, edi
jne 0x10002882
xorps xmm0, xmm0
lea edi, [esp + 0x20]
movaps xmmword [esp + 0x20], xmm0
mov eax, dword [ebp + 0x14]
push edi
push dword [esp + 0x10]
or eax, 4
push dword [esp + 0x18]
push dword [esp + 0x20]
push eax
push dword [ebp + 0x10]
push dword [esp + 0x30]
push dword [esp + 0x38]
push edx
push ecx
call esi
test eax, eax
je 0x100028f5
mov eax, dword [esp + 8]
lea edx, [esp + 0x1c]
mov ecx, dword [edi]
push 1
mov dword [esp + 0x20], eax
call fcn.100019a0
test eax, eax
jne 0x1000290a
mov eax, dword [esp + 8]
mov ecx, dword [edi + 8]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.100025a0
test eax, eax
jne 0x1000290a
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi + 4]
call esi
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.100073c8
mov esp, ebp
pop ebp
ret 0x28
test byte [ebp + 0x14], 4
jne 0x10002919
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea eax, [esp + 0x20]
cmp edi, eax
jne 0x10002930
push dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi + 4]
call esi
mov ecx, dword [esp + 0x3c]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.100073c8
mov esp, ebp
pop ebp
ret 0x28

Function at 0x10002950
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1001d770
push 0x100081b0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1001f004]
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 edi, edx
push 0x1c
lea eax, [ebp - 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x34]
cmp word [ecx], ax
jne 0x100029f3
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x100029f3
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x100029f3
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x100029f3
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x100029fc
mov dword [ebp - 4], 0xfffffffe
xor al, al
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.100073c8
mov esp, ebp
pop ebp
ret
Function at 0x10002ca0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1001f004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
lea ecx, [esi - 0x10000]
movzx eax, cx
mov edi, ecx
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
jbe 0x10002d5c
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x10002ce6
sub edi, 0x8000000
jmp 0x10002d54
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10002d5c
cmp dword [ebp - 0x10], 0x10000
jne 0x10002d3f
cmp dword [ebp - 0x14], 0x10000
jb 0x10002d3f
push 0x40
push 0x3000
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x10002e07
sub edi, 0x10000
jmp 0x10002d54
mov ecx, dword [ebp - 0x1c]
add ecx, 0xffff0000
mov edi, ecx
movzx eax, di
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
ja 0x10002cd1
movzx eax, si
test eax, eax
je 0x10002d6b
sub esi, eax
add esi, 0x10000
mov edi, dword [ebp + 8]
cmp esi, edi
jae 0x10002e05
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
nop dword [eax]
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x10002d95
add esi, 0x8000000
jmp 0x10002dfd
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call ebx
test eax, eax
je 0x10002e05
cmp dword [ebp - 0x10], 0x10000
mov ecx, dword [ebp - 0x14]
jne 0x10002de8
cmp ecx, 0x10000
jb 0x10002de8
push 0x40
push 0x3000
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x10002e07
add esi, 0x10000
jmp 0x10002dfd
mov esi, dword [ebp - 0x20]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x10002dfd
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x10002d80
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100073c8
mov esp, ebp
pop ebp
ret
Function at 0x10002e20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1001f004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10020244], 0
jne 0x10002eaa
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x10020244
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x10002eaa
push esi
mov esi, dword [0x10020250]
mov dword [0x10020258], eax
mov dword [0x10020254], eax
mov dword [0x1002024c], eax
push edi
test esi, esi
je 0x10002e8b
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
push esi
call edi
test eax, eax
je 0x10002ea2
mov esi, dword [esi + 4]
test esi, esi
jne 0x10002e72
xor eax, eax
pop edi
mov dword [0x10020240], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100073c8
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10002e8d
mov ecx, dword [ebp - 4]
mov eax, 0x10dd
xor ecx, ebp
call fcn.100073c8
mov esp, ebp
pop ebp
ret
Function at 0x10003320
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x10020240]
push esi
mov esi, ecx
test eax, eax
jne 0x1000338e
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp esi, eax
jne 0x1000333a
xor eax, eax
pop esi
ret
push edi
push 8
call fcn.100073e4
add esp, 4
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1000337b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 8
push edi
call fcn.10007414
add esp, 8
mov dword [0x10020240], esi
mov eax, esi
mov dword [0x1002024c], 0
pop edi
pop esi
ret
mov eax, dword [0x10020254]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], esi
mov dword [0x10020254], edi
pop edi
pop esi
ret
Function at 0x10006070
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1001d790
push 0x100081b0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1001f004]
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
lea esi, [ecx + 0x10000]
xorps xmm0, xmm0
movups xmmword [ebp - 0x38], xmm0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], 0
mov edi, 0x5a4d
push 0x1c
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x100060f1
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.100073c8
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x28], 0x1000
jne 0x10006167
cmp byte [ebp - 0x24], 1
je 0x10006167
test dword [ebp - 0x24], 0x100
jne 0x10006167
mov dword [ebp - 4], 0
cmp word [esi], di
jne 0x1000612b
mov eax, dword [esi + 0x3c]
cmp eax, dword [ebp - 0x2c]
ja 0x1000612b
cmp eax, 0x40
jb 0x1000612b
cmp dword [eax + esi], 0x4550
je 0x1000613a
mov dword [ebp - 4], 0xfffffffe
mov esi, dword [ebp - 0x2c]
add esi, dword [ebp - 0x38]
jmp 0x100060c4
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x100060d5
mov esi, dword [ebp - 0x2c]
add esi, dword [ebp - 0x38]
jmp 0x100060c4
Function at 0x10006180
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1001d7b0
push 0x100081b0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1001f004]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, ecx
test ebx, ebx
jne 0x100061c2
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
mov dword [ebp - 4], 0
mov eax, 0x5a4d
cmp word [ebx], ax
je 0x100061dd
push 0xc1
jmp 0x100062d1
mov ecx, dword [ebx + 0x3c]
add ecx, ebx
mov dword [ebp - 0x24], ecx
cmp dword [ecx], 0x4550
je 0x100061f7
push 0xbf
jmp 0x100062d1
movzx eax, word [ecx + 0x14]
test ax, ax
je 0x100062cc
lea edx, [eax + ecx]
mov dword [ebp - 0x1c], edx
lea edx, [eax + 0x18]
add edx, ecx
mov dword [ebp - 0x28], edx
xor esi, esi
mov dword [ebp - 0x20], esi
movzx eax, word [ecx + 6]
cmp esi, eax
jae 0x100062cc
lea edi, [esi + esi*4]
mov ecx, str..detour
lea eax, [edx + edi*8]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10006250
test dl, dl
je 0x1000624c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10006250
add eax, 2
add ecx, 2
test dl, dl
jne 0x10006230
xor eax, eax
jmp 0x10006255
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100062aa
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + edi*8 + 0x24]
test eax, eax
je 0x100062cc
cmp dword [ecx + edi*8 + 0x28], 0
je 0x100062cc
lea esi, [eax + ebx]
mov eax, dword [esi]
cmp eax, 0x40
jb 0x100062cc
cmp dword [esi + 4], 0x727444
jne 0x100062cc
cmp dword [esi + 8], 0
jne 0x10006287
mov dword [esi + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc esi
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
jmp 0x10006214
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10007040
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub eax, 1
je 0x10007070
sub eax, 3
jne 0x10007093
mov eax, dword [0x10020234]
test eax, eax
je 0x10007093
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [0x10020234], 0
xor eax, eax
pop ebp
ret 4
cmp dword [0x10020234], 0
jne 0x10007093
push 0
push dword [0x10020588]
push 0x10007020
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x10020234], eax
xor eax, eax
pop ebp
ret 4

Function at 0x100162f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001631d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001631d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1000520d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
push str.IniFile
mov esi, edi
call fcn.1000a6f3
pop ecx
test eax, eax
je 0x10005240
cmp word [eax], 0
je 0x10005240
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
cmp esi, edi
jne 0x10005267
push str.SecFile
call fcn.1000a6f3
pop ecx
test eax, eax
je 0x10005267
cmp word [eax], 0
je 0x10005267
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100051d1
add esp, 0x10
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x10005b3c
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x60]
sub esp, 0x94
mov eax, dword [0x10274398]
xor eax, ebp
mov dword [ebp + 0x5c], eax
mov eax, dword [ebp + 0x6c]
push ebx
mov ebx, dword [ebp + 0x68]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x70]
push esi
mov esi, dword [ebp + 0x74]
mov dword [ebp - 0x34], eax
push edi
xor eax, eax
push str.IniFile
mov dword [ebp - 0x2c], ebx
mov word [esi], ax
call fcn.1000a6f3
mov edi, eax
pop ecx
mov dword [ebp - 0x30], edi
test edi, edi
je 0x10005c12
cmp word [edi], 0
je 0x10005c12
mov eax, dword [ebp + 0x7c]
test eax, eax
jne 0x10005b9c
mov eax, dword [section..data]
push eax
push ebx
push str._s__d
lea eax, [ebp - 0x24]
push 0x40
push eax
call fcn.1001d140
add esp, 0x14
push edi
push dword [ebp + 0x78]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
mov ebx, 0x101eeb08
push ebx
push dword [ebp - 0x28]
lea eax, [ebp - 0x24]
push eax
call edi
cmp word [esi], 0
jne 0x10005c57
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push str._s_1033
push 0x40
push eax
call fcn.1001d140
add esp, 0x10
push dword [ebp - 0x30]
lea eax, [ebp - 0x24]
push dword [ebp + 0x78]
push esi
push ebx
push dword [ebp - 0x28]
push eax
call edi
cmp word [esi], 0
jne 0x10005c57
push dword [ebp - 0x30]
push dword [ebp + 0x78]
push esi
push ebx
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call edi
cmp word [esi], 0
jne 0x10005c57
push str.SecFile
call fcn.1000a6f3
pop ecx
test eax, eax
je 0x10005c48
cmp word [eax], 0
je 0x10005c48
push dword [ebp + 0x7c]
push eax
push dword [ebp + 0x78]
push esi
push dword [ebp - 0x34]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.10005a2e
add esp, 0x1c
jmp 0x10005c57
push dword [ebp - 0x34]
push dword [ebp + 0x78]
push esi
call fcn.10016ac1
add esp, 0xc
mov ecx, dword [ebp + 0x5c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101d14d7
add ebp, 0x60
leave
ret

Function at 0x10005d0b
Capabilities:
Persist via winlogon helper dll registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x10274398]
xor eax, ebp
mov dword [ebp + 0x1b4], eax
push ebx
mov ebx, dword [ebp + 0x1c0]
push esi
push edi
push 0x10
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.101d19d0
push 6
pop ecx
mov esi, str.Explorer.exe
lea edi, [ebp + 0x198]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x6e]
push eax
movsw word es:[edi], word [esi]
call fcn.101d19d0
push 0x104
lea eax, [ebp - 0x70]
push eax
push str.Shell
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push closesocket
call fcn.10014a86
add esp, 0x2c
cmp word [ebp - 0x70], 0
lea eax, [ebp + 0x198]
je 0x10005d93
lea eax, [ebp - 0x70]
push 0x5c
push eax
mov dword [ebp - 0x80], eax
call fcn.101d1ba9
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x80]
push eax
push 0x10005c85
call fcn.10012ba4
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp + 0x1b4]
add esp, 0x10
pop edi
mov dword [ebx], eax
mov eax, dword [ebp - 0x78]
pop esi
xor ecx, ebp
pop ebx
call fcn.101d14d7
add ebp, 0x1b8
leave
ret
Function at 0x10006383
Capabilities:
Create process on windows

Disassembly:
push 0x68
mov eax, 0x101ecb1d
call fcn.101d1901
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov eax, ebx
cmp ebx, esi
jne 0x1000639f
mov eax, 0x101eeb08
push eax
push dword [ebp + 8]
push str.AIL:ExecAsAdmin__s___s_
push 3
call fcn.101d1209
push 0x40
lea eax, [ebp - 0x70]
push esi
push eax
mov dword [ebp - 0x74], 0x44
call fcn.101d19d0
xor eax, eax
mov dword [ebp - 0x30], esi
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
call fcn.100060a0
add esp, 0x20
cmp eax, esi
je 0x100064ed
lea ecx, [ebp - 0x20]
mov dword [ebp + 0xc], esi
call fcn.1000a196
push str.UserEnv.dll
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], esi
call fcn.1000a1cf
test eax, eax
jne 0x10006411
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Load_UserEnv_err_d
jmp 0x100064d7
push str.CreateEnvironmentBlock
lea ecx, [ebp - 0x20]
call fcn.1000a26f
push str.DestroyEnvironmentBlock
lea ecx, [ebp - 0x20]
mov edi, eax
call fcn.1000a26f
mov dword [ebp - 0x14], eax
cmp edi, esi
je 0x100064cb
cmp eax, esi
je 0x100064cb
push 1
push dword [ebp - 0x10]
lea eax, [ebp + 0xc]
push eax
call edi
cmp eax, esi
jne 0x1000645d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateEnvBlock_err_d
jmp 0x100064d7
cmp ebx, esi
je 0x10006468
cmp word [ebx], si
jne 0x10006468
xor ebx, ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push dword [ebp + 0xc]
push 0x4000400
push esi
push esi
push esi
push dword [ebp + 8]
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
cmp edi, esi
jne 0x100064a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcessAsUser_err_d
push 1
call fcn.101d1209
add esp, 0xc
jmp 0x100064b5
push str.CreateProcessAsUserok
push 4
call fcn.101d1209
pop ecx
pop ecx
push dword [ebp + 0xc]
call dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.1000a2e5
mov eax, edi
jmp 0x100064ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Get_addr_err_d
push 1
call fcn.101d1209
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.1000a2e5
xor eax, eax
call fcn.101d19a0
ret
Function at 0x10007633
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x10274398]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
movzx eax, word [edi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
je 0x100076a6
cmp word [edi + 2], 0x3a
jne 0x100076a6
cmp word [edi + 4], 0
jne 0x100076a6
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.10016ac1
push esi
lea eax, [ebp - 0x20c]
push 0x101f1938
push eax
call fcn.10016b06
add esp, 0x18
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
pop esi
jmp 0x100076b4
lea eax, [ebp - 0x45c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x100076f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x100076f2
cmp eax, 3
je 0x100076f2
cmp eax, 5
je 0x100076f2
cmp eax, 0x12
je 0x100076f2
cmp eax, 0x7b
je 0x100076f2
cmp eax, 0x10b
je 0x100076f2
push eax
push edi
push str.AIL:IsFileExist__s_1__warning_d_
push 2
call fcn.101d1209
add esp, 0x10
jmp 0x100076fd
xor eax, eax
jmp 0x10007700
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.101d14d7
leave
ret
Function at 0x100086e7
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x5ec]
sub esp, 0x66c
mov eax, dword [0x10274398]
xor eax, ebp
mov dword [ebp + 0x5e8], eax
push ebx
push esi
mov esi, dword [ebp + 0x5f4]
push edi
mov dword [ebp - 0x80], esi
test esi, esi
je 0x1000883a
push closesocket
push esi
call fcn.1001661b
pop ecx
pop ecx
cmp eax, 4
jb 0x1000883a
and dword [ebp - 0x7c], 0
mov edi, 0x104
push edi
push 0x101f1f0c
lea eax, [ebp + 0x1d8]
push esi
push eax
call fcn.10016b70
add esp, 0x10
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x1d8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100087a3
call esi
cmp eax, 3
je 0x1000879c
call esi
cmp eax, 2
je 0x1000879c
call esi
cmp eax, 0x12
je 0x1000879c
call esi
cmp eax, 0x7b
je 0x1000879c
call esi
push eax
push str.AIL:DelDir_ff_err_d
push 2
call fcn.101d1209
add esp, 0xc
jmp 0x10008823
xor eax, eax
jmp 0x1000883d
cmp dword [ebp - 0x7c], 0
jne 0x10008816
push edi
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x80]
lea eax, [ebp + 0x3e0]
push eax
call fcn.10016b70
add esp, 0x10
test byte [ebp - 0x78], 0x10
je 0x100087f1
cmp word [ebp - 0x4c], 0x2e
jne 0x100087e2
cmp word [ebp - 0x4a], 0
je 0x10008807
cmp word [ebp - 0x4a], 0x2e
jne 0x100087e2
cmp word [ebp - 0x48], 0
je 0x10008807
lea eax, [ebp + 0x3e0]
push eax
call fcn.100086e7
pop ecx
jmp 0x10008804
lea eax, [ebp + 0x3e0]
push eax
call fcn.10007b21
pop ecx
test eax, eax
jne 0x10008807
call esi
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x78]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100087a3
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x7c], 0
jne 0x10008835
push dword [ebp - 0x80]
call fcn.10007b21
pop ecx
test eax, eax
jne 0x10008835
call esi
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
jmp 0x1000883d
push 0x57
pop eax
mov ecx, dword [ebp + 0x5e8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101d14d7
add ebp, 0x5ec
leave
ret
Function at 0x10009538
Capabilities:
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x10274398]
xor eax, ebp
mov dword [ebp + 0x198], eax
push ebx
mov ebx, dword [ebp + 0x1a4]
push ebx
call fcn.10007633
pop ecx
test eax, eax
je 0x100096a9
xor eax, eax
cmp dword [ebp + 0x1a8], eax
sete al
push eax
push ebx
call fcn.1000776e
pop ecx
pop ecx
cmp dword [ebp + 0x1a8], eax
je 0x100096a9
cmp dword [ebp + 0x1a8], 0
mov eax, 0x101f25fc
jne 0x1000959c
mov eax, 0x101f25f4
push eax
push ebx
push str.AIL:RTCWSN__s__s
push 3
call fcn.101d1209
push ebx
call fcn.10015bed
add esp, 0x14
test eax, eax
jne 0x100095be
xor eax, eax
jmp 0x100096ac
push 0x2e
push ebx
call fcn.101d1bcf
pop ecx
pop ecx
mov dword [ebp - 0x80], eax
test eax, eax
jne 0x100095dc
push ebx
call fcn.101d3aeb
lea eax, [ebx + eax*2]
pop ecx
mov dword [ebp - 0x80], eax
push esi
mov esi, dword [ebp - 0x80]
lea eax, [ebp - 0x70]
sub esi, ebx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], 0x104
mov dword [ebp - 0x7c], 1
sar esi, 1
push 0
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push ebx
push 0x104
lea eax, [ebp - 0x70]
push eax
call fcn.10007fd8
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push str._bk_d
push 0
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
push dword [ebp - 0x74]
call fcn.10008167
add esp, 0x1c
push 0
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x80]
push dword [ebp - 0x78]
push dword [ebp - 0x74]
call fcn.10007eb6
lea eax, [ebp - 0x70]
push eax
call fcn.10007633
pop ecx
test eax, eax
je 0x10009664
inc dword [ebp - 0x7c]
cmp dword [ebp - 0x7c], 0x3e8
jl 0x100095f8
lea eax, [ebp - 0x70]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop esi
test eax, eax
jne 0x10009694
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push str.AIL:RTCWSN__s__s__err_u
push 1
call fcn.101d1209
add esp, 0x14
jmp 0x100095b7
push 0x101f2588
push ebx
push str.AIL:RTCWSN__s__s
push 4
call fcn.101d1209
add esp, 0x10
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x198]
xor ecx, ebp
pop ebx
call fcn.101d14d7
add ebp, 0x19c
leave
ret