joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4654f0
Capabilities:
Set environment variable

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
push ebp
sub esp, 0x18
mov ebp, eax
mov dword [esp], 2
mov edx, 0x3d
mov dword [esp + 4], 1
call fcn.004656a0
mov ebx, eax
test eax, eax
je 0x46551e
cmp eax, ebp
jne 0x46552d
mov eax, 0xffffffff
add esp, 0x18
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
sub eax, ebp
mov dword [esp + 0xc], eax
inc eax
call fcn.00466980
mov edx, eax
mov dword [esp + 8], eax
test eax, eax
je 0x46551e
mov ecx, dword [esp + 0xc]
mov esi, ebp
mov edi, eax
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [esp + 0xc]
lea esi, [ebx + 1]
mov byte [edx + eax], 0
mov eax, esi
call fcn.00465700
mov dword [esp + 0x14], eax
test eax, eax
je 0x4655f6
inc eax
call fcn.00466980
mov ebx, eax
mov dword [esp + 0x10], eax
test eax, eax
je 0x4655e0
mov ecx, dword [esp + 0x14]
mov edi, eax
add ebx, dword [esp + 0x14]
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov byte [ebx], 0
mov edi, dword [esp + 0x10]
push edi
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
mov edx, eax
mov eax, dword [esp + 8]
call fcn.00466af0
mov eax, edi
call fcn.00466af0
test edx, edx
jne 0x4655fc
test edi, edi
jne 0x46551e
xor eax, eax
add esp, 0x18
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov eax, edx
call fcn.00466af0
mov eax, 0xffffffff
add esp, 0x18
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov dword [esp + 0x10], eax
jmp 0x4655a6
mov eax, ebp
call fcn.00465730
test eax, eax
jne 0x46551e
cmp dword [0x47832c], 0
je 0x465523
mov eax, ebp
call fcn.00465700
lea ebx, [eax + 1]
mov eax, dword [esp]
imul eax, ebx
call fcn.00466980
mov ecx, eax
test eax, eax
je 0x465667
imul ebx, dword [esp + 4]
mov edx, ebp
call fcn.004657c0
cmp eax, 0xffffffff
jne 0x465683
mov eax, ecx
call fcn.00466af0
call dword [0x471a84]
mov dword [eax + 4], 0xe
mov eax, 0xffffffff
add esp, 0x18
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
call dword [0x471a84]
mov dword [eax + 4], 5
mov eax, 0xffffffff
add esp, 0x18
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov eax, ecx
call fcn.00465840
add esp, 0x18
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x467570
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push edi
push ebp
sub esp, 0x14
mov dword [esp + 8], eax
mov esi, edx
mov ebp, edx
test eax, eax
jl 0x467615
cmp eax, dword [0x471c64]
jae 0x467615
call fcn.00465030
mov eax, dword [esp + 8]
call fcn.004647f0
mov edx, eax
mov dword [esp + 0x10], eax
test eax, eax
je 0x467615
test al, 1
je 0x467629
mov eax, dword [esp + 8]
call fcn.00463550
mov dword [esp + 0xc], eax
test dl, 0x40
jne 0x467643
mov eax, dword [esp + 8]
mov dword [esp + 4], ebx
call dword [0x471a8c]
xor esi, esi
mov bh, 0xd
push 0
lea eax, [esp + 4]
push eax
mov ecx, dword [esp + 0xc]
push ecx
push ebp
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x467687
cmp dword [esp], 0
jne 0x4676ad
mov eax, dword [esp + 8]
call dword [0x471a90]
mov eax, esi
add esp, 0x14
pop ebp
pop edi
pop esi
pop ecx
ret
call dword [0x471a84]
mov dword [eax + 4], 4
mov eax, 0xffffffff
jmp 0x46760d
call dword [0x471a84]
mov dword [eax + 4], 6
mov eax, 0xffffffff
add esp, 0x14
pop ebp
pop edi
pop esi
pop ecx
ret
push 0
lea edx, [esp + 4]
push edx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x467664
mov esi, dword [esp]
mov eax, esi
add esp, 0x14
pop ebp
pop edi
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
jne 0x46767a
mov eax, dword [esp]
add esp, 0x14
pop ebp
pop edi
pop esi
pop ecx
ret
call fcn.00463240
add esp, 0x14
pop ebp
pop edi
pop esi
pop ecx
ret
mov eax, dword [esp + 8]
call dword [0x471a90]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
je 0x46760b
call fcn.00463240
add esp, 0x14
pop ebp
pop edi
pop esi
pop ecx
ret
mov eax, ebp
xor edx, edx
xor ecx, ecx
cmp dword [esp], 0
jbe 0x4676d2
mov bl, byte [eax]
cmp bl, 0x1a
je 0x467702
cmp bh, bl
je 0x4676cb
mov edi, edx
inc esi
inc edx
mov byte [edi + ebp], bl
inc ecx
inc eax
cmp ecx, dword [esp]
jb 0x4676b9
sub dword [esp + 4], edx
add ebp, edx
test byte [esp + 0x11], 0x20
jne 0x467601
cmp dword [esp + 4], 0
jne 0x4675d7
mov eax, dword [esp + 8]
call dword [0x471a90]
mov eax, esi
add esp, 0x14
pop ebp
pop edi
pop esi
pop ecx
ret
mov ebx, dword [esp]
mov edx, ecx
mov eax, dword [esp + 8]
sub edx, ebx
mov ebx, 1
inc edx
call fcn.00468d00
mov eax, dword [esp + 8]
call dword [0x471a90]
mov eax, esi
add esp, 0x14
pop ebp
pop edi
pop esi
pop ecx
ret
Function at 0x4678d0
Capabilities:
Set environment variable

Disassembly:
push ecx
push esi
push edi
push ebp
sub esp, 0x10
mov edi, eax
mov ebp, edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 2
mov dword [esp], 1
test eax, eax
je 0x467972
cmp byte [eax], 0
je 0x467972
mov dl, 0x3d
mov esi, eax
mov al, byte [esi]
cmp al, dl
je 0x46791b
cmp al, 0
je 0x467919
inc esi
mov al, byte [esi]
cmp al, dl
je 0x46791b
inc esi
cmp al, 0
jne 0x467903
sub esi, esi
test esi, esi
jne 0x467972
test ebp, ebp
je 0x46792f
cmp byte [ebp], 0
jne 0x46792f
test ebx, ebx
je 0x467986
xor ebp, ebp
cmp dword [esp + 0xc], 0
jne 0x467941
mov eax, edi
call fcn.00467830
test eax, eax
jne 0x46794d
push ebp
push edi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
test eax, eax
je 0x46797f
mov ebx, dword [esp + 0xc]
mov edx, ebp
mov eax, edi
call fcn.00469760
cmp eax, 0xffffffff
je 0x46796a
cmp dword [0x47832c], 0
jne 0x467993
xor eax, eax
add esp, 0x10
pop ebp
pop edi
pop esi
pop ecx
ret
call dword [0x471a84]
mov dword [eax + 4], 9
mov eax, 0xffffffff
jmp 0x46796a
mov eax, edi
call fcn.00467830
test eax, eax
je 0x46792d
jmp 0x46792f
mov eax, edi
call fcn.00465700
lea ebx, [eax + 1]
mov eax, dword [esp + 8]
imul eax, ebx
call fcn.00466980
mov edx, eax
mov esi, eax
test eax, eax
je 0x467a1b
test ebp, ebp
jne 0x467a35
xor ecx, ecx
imul ebx, dword [esp]
mov edx, edi
mov eax, esi
call fcn.004657c0
mov edx, eax
cmp eax, 0xffffffff
je 0x4679fa
test ecx, ecx
je 0x4679e6
mov ebx, dword [esp + 4]
imul ebx, dword [esp]
mov edx, ebp
mov eax, ecx
call fcn.004657c0
mov edx, eax
cmp edx, 0xffffffff
je 0x4679fa
mov ebx, dword [esp + 0xc]
mov edx, ecx
mov eax, esi
call fcn.00469840
mov edx, eax
mov eax, esi
call fcn.00466af0
mov eax, ecx
call fcn.00466af0
cmp edx, 0xffffffff
jne 0x467968
mov eax, edx
add esp, 0x10
pop ebp
pop edi
pop esi
pop ecx
ret
call dword [0x471a84]
mov dword [eax + 4], 5
mov eax, 0xffffffff
add esp, 0x10
pop ebp
pop edi
pop esi
pop ecx
ret
mov eax, ebp
call fcn.00465700
inc eax
mov dword [esp + 4], eax
imul eax, dword [esp + 8]
call fcn.00466980
mov ecx, eax
test eax, eax
jne 0x4679bb
mov eax, edx
call fcn.00466af0
call dword [0x471a84]
mov dword [eax + 4], 5
mov eax, 0xffffffff
add esp, 0x10
pop ebp
pop edi
pop esi
pop ecx
ret
Function at 0x467fa0
Capabilities:
Write file on windows

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
push ebp
sub esp, 0x214
call fcn.00463550
push 1
lea ebx, [esp + 0x210]
push ebx
xor edi, edi
push edi
mov ebp, eax
push eax
mov dword [esp + 0x218], edi
mov dword [esp + 0x21c], edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov ebx, eax
cmp eax, 0xffffffff
je 0x46802c
test edi, edi
jne 0x46801a
push 2
lea eax, [esp + 0x208]
push eax
push edi
mov dword [esp + 0x214], ebx
push ebp
mov dword [esp + 0x210], edi
mov dword [esp + 0x214], edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x468016
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
test edi, edi
je 0x468036
mov eax, 0xffffffff
add esp, 0x214
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
jmp 0x467fdc
mov eax, esp
mov dword [esp + 0x200], ebx
xor edx, edx
mov ebx, 0x200
call fcn.00465dc0
mov eax, dword [esp + 0x204]
mov edx, dword [esp + 0x20c]
cmp eax, edx
jb 0x468077
jne 0x46811c
mov eax, dword [esp + 0x200]
cmp eax, dword [esp + 0x208]
jae 0x46811c
mov ebx, dword [esp + 0x200]
mov esi, dword [esp + 0x20c]
add ebx, 0x200
mov eax, dword [esp + 0x204]
adc eax, 0
cmp eax, esi
jb 0x4680ac
jne 0x46814b
cmp ebx, dword [esp + 0x208]
jae 0x46814b
mov ebx, 0x200
push 0
lea eax, [esp + 0x214]
push eax
push ebx
lea eax, [esp + 0xc]
push eax
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
test esi, esi
je 0x46801a
mov esi, dword [esp + 0x200]
mov edx, dword [esp + 0x204]
mov ecx, dword [esp + 0x20c]
xor eax, eax
add esi, ebx
adc edx, eax
mov dword [esp + 0x200], esi
mov dword [esp + 0x204], edx
mov eax, esi
cmp edx, ecx
jb 0x468077
jne 0x46811c
cmp eax, dword [esp + 0x208]
jb 0x468077
mov eax, dword [esp + 0x20c]
cmp eax, dword [esp + 0x204]
jne 0x46815e
mov eax, dword [esp + 0x208]
cmp eax, dword [esp + 0x200]
jne 0x46815e
xor eax, eax
add esp, 0x214
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov ebx, dword [esp + 0x208]
sub ebx, dword [esp + 0x200]
jmp 0x4680b1
push 0
lea eax, [esp + 0x210]
push eax
mov ebx, dword [esp + 0x210]
push ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
jne 0x468184
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
test edi, edi
je 0x46813c
mov eax, 0xffffffff
add esp, 0x214
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x468ea0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push edi
push ebp
sub esp, 8
mov esi, eax
mov ebp, edx
mov edi, ebx
test eax, eax
jl 0x468f34
cmp eax, dword [0x471c64]
jae 0x468f34
call fcn.00463550
mov edx, eax
mov dword [esp + 4], eax
mov eax, esi
xor ebx, ebx
call fcn.004647f0
test al, 0x80
je 0x468ef8
mov eax, esi
call dword [0x471a8c]
push 2
push 0
push 0
push edx
mov ebx, 1
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
je 0x468f48
push 0
lea eax, [esp + 4]
push eax
push edi
push ebp
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x468f52
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
cmp ebx, 1
jne 0x468f25
mov eax, esi
call dword [0x471a90]
mov eax, edx
call fcn.004631f0
add esp, 8
pop ebp
pop edi
pop esi
pop ecx
ret
call dword [0x471a84]
mov dword [eax + 4], 4
mov eax, 0xffffffff
jmp 0x468f2c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
jmp 0x468f1d
cmp edi, dword [esp]
je 0x468f64
call dword [0x471a84]
mov dword [eax + 4], 0xc
cmp ebx, 1
jne 0x468f71
mov eax, esi
call dword [0x471a90]
mov eax, dword [esp]
add esp, 8
pop ebp
pop edi
pop esi
pop ecx
ret

Function at 0x4694d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edx
push 0x40
push 0x1000
mov edx, dword [eax]
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
pop edx
pop ecx
ret
Function at 0x10005a20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x10005a2b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x10005b2e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x10101c38]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x10101c38]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x10101c38]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x10101c38]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x10101c38]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x10101c38]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x10101c38]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x10101c38]
xor eax, edx
inc ecx
dec edi
jne 0x10005a46
pop edi
test esi, esi
je 0x10005b50
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x10101c38]
xor eax, edx
inc ecx
dec esi
jne 0x10005b32
pop esi
pop ebx
not eax
ret

Function at 0x100060e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x10170c50]
xor edx, edx
cmp eax, edx
jne 0x10006106
xor eax, eax
mov byte [eax + 0x10170b50], al
inc eax
cmp eax, 0x100
jl 0x100060ee
mov dword [0x10170c50], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x10170b50
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x10006197
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x1000616a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x10006138
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10006210
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x10006263
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x1000624a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100064e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x100f8697
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 8]
call fcn.10030500
mov eax, dword [0x1016eac8]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esi + 0x24], eax
mov ecx, dword [0x1016eac8]
mov dword [esi + 0x28], ecx
mov edx, dword [0x1016eac8]
mov dword [esi + 0x2c], edx
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 3
call fcn.10030500
lea edx, [esi + 0x48]
mov ecx, 0x1c
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
lea ecx, [esi + 0x494]
mov byte [esp + 0x18], 4
mov dword [edx], 0x42444557
mov dword [edx + 4], 0x10000
call fcn.100e39e9
mov ecx, dword [esp + 0x10]
mov dword [esi], 0x1010208c
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], 0xffffffff
mov dword [esi + 0xd0], ebx
mov dword [esi + 0x4a8], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x10015780
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x100157ee
cmp si, 0x69
ja 0x100157ee
add esi, 0xffd0
cmp si, 0x11
je 0x100157be
push 0x11
call edi
test ax, ax
jge 0x100157be
or esi, 0x2000
cmp si, 0x10
je 0x100157d3
push 0x10
call edi
test ax, ax
jge 0x100157d3
or esi, 0x4000
cmp si, 0x12
je 0x100157e8
push 0x12
call edi
test ax, ax
jge 0x100157e8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x100157fb
mov esi, 0xbd
jmp 0x100157af
cmp si, 0x6e
jne 0x10015808
mov esi, 0xbe
jmp 0x100157af
cmp si, 0x6f
jne 0x100157a9
mov esi, 0xbf
jmp 0x100157af

Function at 0x100181b0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x100f9671
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebp
mov ebp, dword [esp + 0x160]
push esi
push edi
push 0xffffffffffffffff
push 0
mov ecx, ebp
call fcn.100e3a7c
mov esi, dword [esp + 0x16c]
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.100e3d94
mov eax, dword [esp + 0x170]
lea ecx, [esp + 0xc]
push eax
call fcn.100e858b
lea ecx, [esp + 0xc]
push str..
lea edx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x16c], 0
call fcn.100e8766
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.100e851d
test edi, edi
je 0x100182fe
mov edx, dword [0x1016eac8]
mov dword [esp + 0x10], edx
cmp edi, 0xffffffff
mov byte [esp + 0x160], 1
je 0x100182ed
cmp byte [esp + 0x44], 0x2e
je 0x100182d2
lea eax, [esp + 0xc]
push 0x10124f24
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.100e8766
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 2
call fcn.100e860a
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], 1
call fcn.100e851d
lea edx, [esp + 0x44]
lea ecx, [esp + 0x10]
push edx
call fcn.100e88ad
test byte [esp + 0x18], 0x10
mov eax, dword [esi + 8]
je 0x100182b8
push 1
jmp 0x100182ba
push 0
push eax
mov ecx, esi
call fcn.100e3ead
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, ebp
call fcn.100e3c43
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1001825e
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
mov byte [esp + 0x160], 0
call fcn.100e851d
lea ecx, [esp + 0xc]
mov dword [esp + 0x160], 0xffffffff
call fcn.100e851d
mov ecx, dword [esp + 0x158]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x158
ret
Function at 0x10018330
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x100f9690
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
lea ecx, [esp + 8]
call fcn.100e39e9
xor esi, esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], esi
call fcn.100e38d1
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x44], 1
call fcn.100181b0
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, esi
mov ebx, eax
jle 0x100183cd
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [esp + 0x28]
cmp dword [eax + esi*4], 0
je 0x100183bc
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + esi*4]
push eax
call fcn.10018330
mov edx, dword [esp + 0x18]
add esp, 4
mov eax, dword [edx + esi*4]
push eax
call edi
jmp 0x100183c6
mov eax, dword [esp + 0x14]
mov eax, dword [eax + esi*4]
push eax
call ebp
inc esi
cmp esi, ebx
jl 0x10018396
pop edi
pop ebp
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 0
call fcn.100e3904
lea ecx, [esp + 8]
mov dword [esp + 0x38], 0xffffffff
call fcn.100e3a1c
mov ecx, dword [esp + 0x30]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret

Function at 0x10018400
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi], 0x20
jne 0x10018412
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x1001840a
cmp byte [esi], 0
je 0x10018441
cmp byte [esi + 1], 0x3a
jne 0x1001842f
mov al, byte [esi + 2]
test al, al
je 0x10018441
cmp al, 0x5c
jne 0x1001842f
mov al, byte [esi + 3]
test al, al
je 0x10018441
push esi
call fcn.10018330
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x100188d0
Capabilities:
Read file on windows
Read pipe

Disassembly:
sub esp, 0x404
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
push esi
mov esi, dword [esp + 0x414]
push edi
xor edi, edi
lea eax, [esp + 0x10]
push edi
push eax
push edi
push edi
push edi
push esi
mov dword [esp + 0x28], edi
call ebp
test eax, eax
je 0x10018940
cmp dword [esp + 0x10], edi
je 0x1001894d
lea ecx, [esp + 0x10]
push edi
push ecx
lea edx, [esp + 0x1c]
push 0x400
push edx
push esi
mov dword [esp + 0x24], edi
call ebx
test eax, eax
je 0x10018940
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x1001894d
mov ecx, dword [esp + 0x41c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.10030ca0
jmp 0x100188ef
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x404
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x404
ret

Function at 0x100194b0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x10019510
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x10019510
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x10019510
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x10019510
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x10019550
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x1001b340
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x100f9823
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.100e4b41
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.100ec15c
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.100f0973
test eax, eax
je 0x1001b45c
mov ecx, dword [esp + 0x3c]
call fcn.100ec189
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x1001b420
push edi
mov ecx, esi
call fcn.100e7b9c
mov ecx, esi
call fcn.1001b5c0
cmp dword [esp + 0x38], 1
jne 0x1001b455
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.100e7d06
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28