joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100136d3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024558
push 0x10024550
push str.FlsAlloc
push 0x1e
call fcn.1001359d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10013707
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002114c]
call esi
jmp 0x1001370d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10013751
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024568
push 0x10024560
push str.FlsGetValue
push 0x20
call fcn.1001359d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10013788
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002114c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10014e32
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10014ca3

Function at 0x1001522c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100096f0
mov eax, dword [0x1002b080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10013d06
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1001526e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100153ca
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1001f680
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x1002ca10]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.10016209
mov ecx, dword [esi*4 + 0x1002ca10]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x100153c3
cmp eax, dword [edi + ecx + 0x24]
jne 0x100153c3
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100153c3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10016209
add esp, 0x14
test edx, edx
jl 0x100153c3
jg 0x10015339
test eax, eax
jb 0x100153c3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100153c3
jl 0x10015353
cmp dword [ebp - 0x1008], eax
ja 0x100153c3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10015371
test ebx, ebx
je 0x100153aa
cmp ecx, edi
jae 0x100153aa
mov al, byte [ecx]
cmp al, 0xd
jne 0x1001538b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10015397
cmp byte [ecx + 1], 0xa
jne 0x10015397
inc ecx
jmp 0x10015397
movzx eax, al
movsx eax, byte [eax + 0x1002b328]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10015371
cmp edx, ebx
jne 0x10015371
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100153c8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10008af6
leave
ret
Function at 0x100156c1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1002ca10]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10015701
cmp byte [ebx], 0xa
jne 0x10015701
or byte [eax + edi + 0x28], 4
jmp 0x10015706
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10015804
mov al, byte [edx]
cmp al, 0x1a
je 0x100157e6
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10015735
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1001575a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10015764
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x10015717
jmp 0x10015804
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100157e1
cmp dword [ebp - 0xc], 0
je 0x100157e1
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1002ca10]
test byte [eax + edi + 0x28], 0x48
je 0x100157bb
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100157a6
mov byte [esi], dl
jmp 0x100157b7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1002ca10]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10015804
cmp byte [ebp - 1], 0xa
jne 0x100157ca
cmp esi, ebx
jne 0x100157ca
mov byte [esi], 0xa
jmp 0x10015803
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10016227
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10015804
mov byte [esi], 0xd
jmp 0x10015803
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1002ca10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10015800
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10015804
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001580d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x1002ca10]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10015850
cmp word [esi], dx
jne 0x10015850
or byte [edi + eax + 0x28], 4
jmp 0x10015855
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x1001598e
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x1001596e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10015897
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100158cd
cmp eax, edx
jae 0x100158d9
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x1001586f
jmp 0x1001598e
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001596a
cmp dword [ebp - 0x14], 0
je 0x1001596a
mov eax, dword [ebx*4 + 0x1002ca10]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10015942
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x10015988
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1002ca10]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x1002ca10]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1002ca10]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x1001598b
pop ebx
cmp word [ebp - 4], bx
jne 0x10015953
cmp esi, dword [ebp + 0xc]
jne 0x10015953
mov word [esi], bx
jmp 0x1001598b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10016227
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1001598e
push 0xd
jmp 0x10015987
mov ecx, dword [ebx*4 + 0x1002ca10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10015985
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001598e
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10019825
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100198c2
push ebx
push esi
call fcn.100197ee
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10018585
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001986f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100198c1
push edi
push eax
call fcn.10016909
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001988f
call fcn.10013265
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100198c0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10018585
add esp, 0x20
test eax, eax
jne 0x100198ae
push edi
call fcn.10013265
jmp 0x100198b6
push ebx
call fcn.10013265
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x1001f041
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001efbd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1001f1b9
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1001f1b9
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1001f168
jg 0x1001f09a
test eax, eax
je 0x1001f15e
push 1
push 0x1000
call fcn.1001329f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1001f0c0
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x1001f155
push 0x8000
push ebx
call fcn.1001eeee
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1001f0ec
jg 0x1001f0e7
cmp ecx, 0x1000
jb 0x1001f0ec
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10014aa3
add esp, 0x10
cmp eax, 0xffffffff
je 0x1001f131
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1001f0e7
jl 0x1001f118
test ecx, ecx
jne 0x1001f0d9
push dword [ebp - 0xc]
push ebx
call fcn.1001eeee
push esi
call fcn.10013265
add esp, 0xc
xor edi, edi
jmp 0x1001f1ca
cmp byte [edi + 0x24], 0
je 0x1001f148
cmp dword [edi + 0x20], 5
jne 0x1001f148
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1001f153
mov edi, dword [edi + 0x18]
jmp 0x1001f155
xor edi, edi
push esi
call fcn.10013265
pop ecx
jmp 0x1001f1ca
test ecx, ecx
jg 0x1001f12a
jl 0x1001f168
test eax, eax
jae 0x1001f12a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10016227
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1001f18b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1001f12a
jmp 0x1001f1c2
push ebx
call fcn.1001c347
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1001f12a
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x1001f1ca
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1001f1c7
mov edi, dword [edi + 0x18]
jmp 0x1001f1ca
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10016227
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001f640
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001f66d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001f66d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404c10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
cmp byte [ebx], 0
jne 0x404c42
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ebx, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push ebx
call fcn.00404a80
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.004053f0
pop ecx
mov esi, eax
test esi, esi
jne 0x404c75
push 1
call fcn.00404440
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [esi + eax*4]
push eax
push esi
push ebx
call fcn.00404a80
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x407288], eax
mov dword [0x40728c], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404cb0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test eax, eax
jne 0x404ccb
mov ebx, dword [0x407358]
mov esi, ebx
xor ecx, ecx
jmp 0x404cee
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404cd6
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404ce9
add ecx, dword [ebp - 4]
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404cd1
lea eax, [ecx + 1]
push eax
call fcn.004053f0
pop ecx
mov edi, eax
mov dword [0x407294], eax
cmp dword [0x407294], 0
jne 0x404d15
push 1
call fcn.00404440
pop ecx
mov esi, ebx
jmp 0x404d4a
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404d1e
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404d45
mov ecx, edi
mov edx, esi
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x404d35
pop eax
mov eax, dword [ebp - 4]
add edi, eax
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404d19
mov byte [edi], 0
cmp ebx, dword [0x407358]
je 0x404d61
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x1001e15
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 8]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10013b0
push 0x80000002
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
test eax, eax
je 0x1001e4d
xor eax, eax
inc eax
jmp 0x1001e83
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x1001394
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
je 0x1001e6e
xor esi, esi
inc esi
jmp 0x1001e78
xor eax, eax
cmp dword [ebp - 4], esi
sete al
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x1003284
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1005290]
xor eax, ebp
mov dword [ebp - 4], eax
test esi, esi
je 0x1003319
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10032a2
sub eax, edx
sar eax, 1
mov ecx, 0x104
cmp eax, ecx
ja 0x1003319
push esi
push ecx
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll_wcscpy_s
lea eax, [ebp - 0x20c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10032d3
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 0x20c]
dec eax
dec eax
movzx ecx, word [eax]
cmp cx, 0x5c
je 0x10032f9
cmp cx, 0x2f
jne 0x1003300
xor ecx, ecx
mov word [eax], cx
jmp 0x10032e8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
jmp 0x100331b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01003d13
leave
ret
Function at 0x100332c
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x768
mov eax, dword [0x1005290]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push dword [edi + 4]
mov dword [ebp - 0x768], eax
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.msvcrt.dll_wcscpy_s
mov ecx, dword [edi + 4]
mov eax, ecx
add esp, 0xc
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x100336c
sub eax, edx
sar eax, 1
sub ebx, eax
mov eax, ecx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1003381
sub eax, ecx
sar eax, 1
push 0x1001bf8
lea eax, [ebp + eax*2 - 0x20c]
push ebx
push eax
mov dword [ebp - 0x764], eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
lea eax, [ebp - 0x75c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x760], eax
cmp eax, 0xffffffff
jne 0x10033dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x12
neg eax
sbb eax, eax
jmp 0x1003567
mov ecx, 0x1001bf4
lea eax, [ebp - 0x730]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100340d
test dx, dx
je 0x1003409
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100340d
add eax, 4
add ecx, 4
test dx, dx
jne 0x10033e7
xor eax, eax
jmp 0x1003412
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100352d
mov ecx, 0x1001bec
lea eax, [ebp - 0x730]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100344b
test dx, dx
je 0x1003447
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100344b
add eax, 4
add ecx, 4
test dx, dx
jne 0x1003425
xor eax, eax
jmp 0x1003450
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100352d
lea eax, [ebp - 0x730]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
push eax
push ebx
push dword [ebp - 0x764]
call sub.msvcrt.dll_wcscpy_s
mov eax, dword [edi + 0xc]
add esp, 0x10
test eax, eax
je 0x1003491
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call sub.msvcrt.dll_wcscat_s
add esp, 0xc
push 0x104
lea eax, [ebp - 0x730]
push eax
push dword [edi + 8]
call fcn.010037eb
test eax, eax
je 0x100352d
cmp dword [edi + 0xc], 0
je 0x100350a
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x30c]
push eax
lea edx, [ebp - 0x20c]
call fcn.010031b1
test eax, eax
je 0x100350a
test byte [ebp - 0x75c], 0x10
je 0x100352d
lea esi, [ebp - 0x30c]
call fcn.01003284
test eax, eax
je 0x100352d
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x50c]
push eax
mov eax, esi
push eax
mov eax, dword [ebp + 8]
call fcn.01002ff6
jmp 0x100352d
lea esi, [ebp - 0x20c]
call fcn.01003284
test eax, eax
je 0x100352d
mov eax, esi
push eax
mov eax, dword [ebp - 0x768]
call fcn.010030cf
mov esi, eax
test esi, esi
jne 0x100354a
lea eax, [ebp - 0x75c]
push eax
push dword [ebp - 0x760]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
test esi, esi
jne 0x10033dc
push dword [ebp - 0x760]
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
jne 0x1003565
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x1003565
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01003d13
leave
ret 8
Function at 0x10039ed
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1005290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ntdll.dll_RtlAllocateAndInitializeSid]
test eax, eax
jl 0x1003a50
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
call dword [sym.imp.ntdll.dll_RtlFreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop ebx
call fcn.01003d13
leave
ret

Function at 0x1003cf9
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x10041a8
call fcn.01003ed4
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, 0x10068ac
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1003b0e
cmp eax, esi
jne 0x1003b01
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1003b11
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1003ae8
xor esi, esi
inc esi
mov eax, dword [0x10068a8]
cmp eax, esi
jne 0x1003b24
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1003b5f
mov eax, dword [0x10068a8]
test eax, eax
jne 0x1003b59
mov dword [0x10068a8], esi
push 0x1001164
push 0x1001158
call fcn.01003a65
pop ecx
pop ecx
test eax, eax
je 0x1003b5f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1003c29
mov dword [0x100531c], esi
mov eax, dword [0x10068a8]
cmp eax, esi
jne 0x1003b83
push 0x1001154
push 0x100114c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10068a8], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1003b90
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10068b0], ebx
je 0x1003bb1
push 0x10068b0
call fcn.01003e49
pop ecx
test eax, eax
je 0x1003bb1
push ebx
push 2
push ebx
call dword [0x10068b0]
push dword [0x1005304]
push dword [0x1005308]
push dword [0x1005300]
call fcn.01001e8b
add esp, 0xc
mov dword [0x1005318], eax
cmp dword [0x100530c], ebx
jne 0x1003c0f
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 [0x100531c], ebx
jne 0x1003c1d
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1005318]
call fcn.01003f19
ret
call fcn.01004021
jmp 0x1003ac6