joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428800
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x10], ebx
lea edi, [ebx + 4]
mov ecx, edi
call fcn.0040ed20
movss xmm0, dword [0x471410]
mov ebx, dword [ebx + 0x6c]
push str.User32.dll
movss dword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x428874
push str.GetDpiForWindow
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x428874
push ebx
call eax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x46cb80]
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x471428]
movss dword [ebp - 0xc], xmm0
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call ebx
mov eax, dword [ebp - 0x10]
add eax, 0x24
cmp dword [eax + 0x14], 8
jb 0x42888b
mov eax, dword [eax]
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4288a6
push eax
call ebx
xor ebx, ebx
jmp 0x4289a4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x429f60
push 0xe
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4288d0
push esi
call ebx
xor ebx, ebx
jmp 0x4289a4
push 0xe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4288e8
push esi
call ebx
xor ebx, ebx
jmp 0x4289a4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4288fe
push esi
call ebx
xor ebx, ebx
jmp 0x4289a4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x428913
push esi
call ebx
xor ebx, ebx
jmp 0x4289a4
push 0
push 0x100
push 0x100
push 1
push eax
call dword [sym.imp.USER32.dll_LookupIconIdFromDirectoryEx]
push 3
movzx eax, ax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x428943
push esi
call ebx
xor ebx, ebx
jmp 0x4289a4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x428956
push esi
call ebx
xor ebx, ebx
jmp 0x4289a4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x42896b
push esi
call ebx
xor ebx, ebx
jmp 0x4289a4
movss xmm0, dword [ebp - 0xc]
mulss xmm0, dword [0x47142c]
push 0
cvttss2si eax, xmm0
push eax
push eax
push 0x30000
push 1
push dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
push esi
mov dword [ebp - 4], eax
call ebx
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0x10]
cmp dword [esi + 0x68], 8
lea eax, [esi + 0x54]
jb 0x4289b2
mov eax, dword [eax]
cmp dword [esi + 0x50], 8
lea ecx, [esi + 0x3c]
jb 0x4289bd
mov ecx, dword [ecx]
push eax
push ecx
push 0x471218
lea eax, [ebp - 0x414]
push 0x200
push eax
call fcn.00411d80
add esp, 0x14
lea eax, [ebp - 0x414]
push eax
push ebx
push 0x501
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, edi
call fcn.0040ed30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429040
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0x48]
xor edx, edx
mov eax, 0x40000000
mov dword [ebp - 4], 1
div esi
xor ebx, ebx
shl eax, 2
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
test eax, eax
je 0x4290db
push edi
push 0x1c
lea eax, [ebp - 0x28]
push eax
mov eax, ebx
imul eax, esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
xor edx, edx
test eax, eax
je 0x4290ca
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4290ca
div esi
cmp dword [ebp - 0x18], 0x1000
mov edi, eax
jne 0x4290d3
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 8]
jbe 0x4290d3
push dword [ebp - 4]
mov dword [ebp - 8], eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00428d20
add esp, 0x10
test al, al
je 0x4290d3
inc dword [ebp - 4]
jmp 0x4290d3
mov eax, 0x10000
div esi
mov edi, eax
add ebx, edi
cmp ebx, dword [ebp - 0xc]
jb 0x429075
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b3e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x42b41c
push 0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
mov eax, ebx
sub eax, esi
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42b423
add esi, dword [ebp + 0xc]
add edi, dword [ebp + 0xc]
cmp esi, ebx
jb 0x42b3f2
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret
Function at 0x42bcb0
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
xorps xmm0, xmm0
mov dword [ebp - 0x6c], 0x44
push ebx
push esi
push 1
push 3
lea ecx, [ebp - 0x11c]
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x28], xmm0
call fcn.00415da0
mov ebx, dword [ebp + 8]
xor esi, esi
test ebx, ebx
jle 0x42bd44
push edi
mov edi, dword [ebp + 0xc]
nop dword [eax]
lea eax, [ebp - 0x10c]
push 0x4701a8
push eax
call fcn.00425410
add esp, 8
push 0x471330
push dword [edi + esi*4]
push eax
call fcn.00425410
add esp, 8
push eax
call fcn.00425410
inc esi
add esp, 8
cmp esi, ebx
jl 0x42bd10
pop edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push dword [0x48a0c4]
mov esi, eax
push esi
call fcn.00438ecd
add esp, 8
test eax, eax
je 0x42bd74
push dword [0x48a0c4]
lea eax, [ebp - 0x10c]
push eax
call fcn.00425410
add esp, 8
push dword [0x48a0c8]
push esi
call fcn.00438ecd
add esp, 8
test eax, eax
je 0x42bd9c
push dword [0x48a0c8]
lea eax, [ebp - 0x10c]
push eax
call fcn.00425410
add esp, 8
mov ecx, dword [ebp - 0xc8]
xor eax, eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 7
mov word [ebp - 0x18], ax
test cl, 2
jne 0x42bde3
mov eax, dword [ebp - 0xe4]
mov edx, dword [eax]
test edx, edx
je 0x42bde3
cmp edx, dword [ebp - 0xcc]
mov eax, dword [ebp - 0xf4]
cmovb edx, dword [ebp - 0xcc]
mov ecx, dword [eax]
sub edx, ecx
sar edx, 1
push edx
jmp 0x42be0d
test cl, 4
jne 0x42be16
mov eax, dword [ebp - 0xe8]
mov edx, dword [eax]
test edx, edx
je 0x42be16
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax]
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax]
add eax, eax
sub eax, ecx
add eax, edx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.00423110
cmp dword [ebp - 4], 8
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
cmovae eax, dword [ebp - 0x18]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x42be47
lea esi, [eax + 1]
jmp 0x42be59
push dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x24]
call esi
xor esi, esi
mov edx, dword [ebp - 4]
cmp edx, 8
jb 0x42be8f
mov ecx, dword [ebp - 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42be85
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42beb6
push edx
push ecx
call fcn.00433c65
add esp, 8
xor eax, eax
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x11c]
mov dword [ebp - 4], 7
mov word [ebp - 0x18], ax
call fcn.004174d0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0043fb4a
int3
Function at 0x42c5c0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, ecx
cmp dword [edi + 4], 0xffffffff
je 0x42c6d9
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [edi]
mov byte [edi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Kernel32.dll
mov dword [edi], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.CancelSynchronousIo
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x42c672
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 4]
call ebx
test eax, eax
jne 0x42c642
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42c642
push 0
push dword [edi + 4]
call esi
cmp eax, 0x102
jne 0x42c642
push 0x3e8
push dword [edi + 4]
call esi
jmp 0x42c615
push 0xffffffffffffffff
push dword [edi + 4]
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0xc]
mov esi, dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0x3e8
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x42c6a9
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0xc]
mov esi, dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
lea esi, [edi + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 0xc]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x42dcd0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
cmp dword [edx + 0x14], 0x10
mov ebx, ecx
mov edi, dword [edx + 0x10]
jb 0x42dce6
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test edi, edi
je 0x42dd02
movzx eax, byte [ecx + edx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x42dcf1
mov eax, dword [ebx + 0x18]
pop edi
and eax, esi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x42f860
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x42f88b
push eax
push str.CoInitializeEx_failed_with_code_0x_0x_n
call fcn.00401c70
add esp, 8
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10
push esi
push 3
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x42a030
call fcn.0043fb9b
push 2
push 2
call fcn.0043bdef
push 0x428410
push 0x16
call fcn.0044226c
add esp, 0x14
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
lea eax, [ebp - 4]
push esi
push eax
push dword [0x48a0c4]
call fcn.0041aa60
add esp, 0xc
test al, al
je 0x42f8ec
call fcn.0041a270
push esi
lea eax, [ebp - 4]
push eax
push dword [0x48a0c8]
call fcn.0041aa60
add esp, 0xc
test al, al
je 0x42f908
call fcn.0041b760
push esi
lea eax, [ebp - 4]
push eax
push str.__attach
call fcn.0041aa60
add esp, 0xc
test al, al
je 0x42f947
push edi
push esi
push dword [ebp - 4]
call fcn.00417cf0
mov edi, eax
add esp, 8
test edi, edi
js 0x42f93d
push esi
push dword [ebp - 4]
call fcn.0042bcb0
add esp, 8
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push esi
push dword [ebp - 4]
call fcn.0042b710
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x42f9b0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 8
mov ecx, dword [0x48e33c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x48e338]
cmp eax, dword [ecx + 4]
jg 0x42fa17
lea eax, [ebp - 8]
xorps xmm0, xmm0
push eax
movq qword [ebp - 8], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 8]
sub ecx, dword [0x48e330]
mov edx, dword [ebp - 4]
sbb edx, dword [0x48e334]
call fcn.00433a80
mulsd xmm0, qword [0x48e2c0]
divsd xmm0, qword [0x471470]
movsd qword [ebp - 8], xmm0
fld qword [ebp - 8]
mov esp, ebp
pop ebp
ret
push 0x48e338
call fcn.00434199
add esp, 4
cmp dword [0x48e338], 0xffffffff
jne 0x42f9d2
lea eax, [ebp - 8]
xorps xmm0, xmm0
push eax
movq qword [ebp - 8], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 8]
mov dword [0x48e330], eax
mov eax, dword [ebp - 4]
push 0x48e338
mov dword [0x48e334], eax
call fcn.0043414f
add esp, 4
jmp 0x42f9d2
Function at 0x431fb7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x431fc4
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.00431d23

Function at 0x454e3f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4082c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section..data
lea edi, [esi - 0x6000]
push edi
jmp 0x4082da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4082e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4082d0
mov eax, 1
add ebx, ebx
jne 0x4082f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4082e8
jne 0x408304
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4082e8
xor ecx, ecx
sub eax, 3
jb 0x408318
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40838a
mov ebp, eax
add ebx, ebx
jne 0x408323
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x408330
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x408354
inc ecx
add ebx, ebx
jne 0x408340
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x408335
jne 0x408351
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408335
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x408374
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x408365
jmp 0x4082d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x408374
add edi, ecx
jmp 0x4082d6
pop esi
mov edi, esi
mov ecx, 0xd2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x408392
cmp byte [edi], 0
jne 0x408392
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x408397
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x40840f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8624]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x86b0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4083c4
mov ecx, edi
jns 0x4083f3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x86b4]
or eax, eax
je 0x408409
mov dword [ebx], eax
add ebx, 4
jmp 0x4083e1
call dword [esi + 0x86c4]
mov ebp, dword [esi + 0x86b8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x408443
sub esp, 0xffffff80
jmp 0x4021a0
Function at 0x405a2f
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405ced
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405a6e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42f0a8], eax
jmp 0x405bf8
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405a88
test eax, eax
je 0x405ba6
test bl, 2
je 0x405ba6
mov esi, 0x42b490
push edi
push esi
call fcn.0040626d
cmp dword [ebp + 8], 0
je 0x405aa7
push 0x40a3c4
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405aad
push edi
call fcn.00405c46
cmp byte [edi], 0
jne 0x405abb
cmp byte [0x42b490], 0x5c
jne 0x405ac6
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405b9c
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405c2a
cmp byte [eax], 0
je 0x405b0c
cmp byte [ebp - 0x1c], 0
je 0x405b0c
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405b22
mov al, byte [esi + 1]
test al, al
je 0x405b7b
cmp al, 0x2e
jne 0x405b22
cmp byte [esi + 2], 0
je 0x405b7b
push esi
push ebx
call fcn.0040626d
test byte [ebp - 0x14c], 0x10
je 0x405b47
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405b7b
push dword [ebp + 0xc]
push edi
call fcn.00405a2f
jmp 0x405b7b
push dword [ebp - 4]
push edi
call fcn.004059e7
test eax, eax
jne 0x405b73
cmp dword [ebp - 4], eax
je 0x405b6b
push edi
push 0xfffffffffffffff1
call fcn.004053b1
push 0
push edi
call fcn.00406046
jmp 0x405b7b
inc dword [0x42f0a8]
jmp 0x405b7b
push edi
push 0xfffffffffffffff2
call fcn.004053b1
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405aea
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405ba6
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405bf8
cmp dword [ebp - 0xc], esi
jne 0x405bba
inc dword [0x42f0a8]
jmp 0x405bf8
push edi
call fcn.00406600
test eax, eax
je 0x405bf8
push edi
call fcn.00405bff
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004059e7
test eax, eax
jne 0x405bf0
cmp dword [ebp - 4], esi
je 0x405bb2
push edi
push 0xfffffffffffffff1
call fcn.004053b1
push esi
push edi
call fcn.00406046
jmp 0x405bf8
push edi
push 0xffffffffffffffe5
call fcn.004053b1
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100017f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.1024a480
add esp, 0xc
mov dword [ebp - 4], 0
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [0x104ff33c], 0
lea edx, [ebp - 0x108]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
test ecx, ecx
je 0x10001876
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0x41
jl 0x1000186b
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0x5a
jg 0x1000186b
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
add ecx, 0x20
mov edx, dword [ebp - 4]
mov byte [edx], cl
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x1000183d
push str.powershell.exe
lea ecx, [ebp - 0x108]
push ecx
call fcn.1024a5e0
add esp, 8
test eax, eax
je 0x100018c8
mov dword [0x104ff344], 1
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x104ff338], eax
push 0x104ff32c
push 0
push 0
push 0x10001700
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x104ff340], eax
mov esp, ebp
pop ebp
ret

Function at 0x10035a90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x10035a9b
jmp 0x10035aca
cmp dword [0x104ff494], 0
je 0x10035ab1
mov eax, dword [ebp + 0xc]
push eax
call dword [0x104ff494]
add esp, 4
mov ecx, dword [ebp + 0xc]
push ecx
push str.error:__s_n
call dword [0x103a5d0c]
add esp, 8
push 0xfffffffffffffffb
call fcn.10259a35
pop ebp
ret

Function at 0x100367c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x14]
push eax
call fcn.10251edf
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 1
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10036802
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 4], 0
jg 0x10036810
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
jmp 0x10036828
mov edx, dword [ebp - 4]
and edx, 0xffff
or edx, 0x70000
or edx, 0x80000000
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x10037d10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, 1
imul ecx, eax, 0
mov byte [ebp + ecx - 0x620], 0
cmp dword [ebp + 0xc], 0
je 0x10037d3a
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0x104
jae 0x10037d4a
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x104
xor eax, eax
jmp 0x10037ea9
lea ecx, [ebp - 0x620]
push ecx
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x10037e93
mov dx, word [0x103daac4]
mov word [ebp - 4], dx
mov al, byte [0x103daac6]
mov byte [ebp - 2], al
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x620]
mov dword [ebp - 8], ecx
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 8]
mov dl, byte [ecx]
mov byte [ebp + eax - 4], dl
push 0x104
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x10037e63
lea edx, [ebp - 0x11c]
push edx
call fcn.1024e180
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x104
jae 0x10037e63
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x11c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10259d26
add esp, 0xc
test eax, eax
jne 0x10037df9
mov dword [ebp - 0x14], 1
jmp 0x10037e00
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10037e63
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
cmp edx, 0x5c
jne 0x10037e63
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x103daabc
push 0x104
lea edx, [ebp - 0x220]
push edx
call fcn.10037990
add esp, 0x14
lea eax, [ebp - 0x220]
push eax
call fcn.1024e180
add esp, 4
push eax
lea ecx, [ebp - 0x220]
push ecx
push 0x104
mov edx, dword [ebp + 0xc]
push edx
call fcn.10037910
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 0x18], 0
je 0x10037e7d
jmp 0x10037e63
cmp dword [ebp - 0x10], 0
jne 0x10037e91
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x10037d87
jmp 0x10037ea4
push str.TranslatePathFromDeviceToLetter:_GetLogicalDriveStrings_failed
call fcn.1003e760
add esp, 4
xor eax, eax
jmp 0x10037ea9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10037eb0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x10037ec0
xor eax, eax
jmp 0x10037f09
cmp dword [0x1065fa04], 0
jne 0x10037ed4
push 0x1065fa00
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x1065fa04], 0
jne 0x10037eee
push str.GetAllocationBase:_Failed_to_obtain_system_page_size._n
call fcn.1003e760
add esp, 4
xor eax, eax
jmp 0x10037f09
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100794f0
add esp, 8
test eax, eax
jne 0x10037f06
xor eax, eax
jmp 0x10037f09
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret