joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c1bc
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, 0x104
mov esi, 0x10014380
push edi
push dword [ebx]
push esi
call dword [sym.imp.MSVCRT.dll_strncpy]
push edi
push dword [ebx]
push esi
call dword [sym.imp.MSVCRT.dll_wcstombs]
add esp, 0x18
push 0x1000c13a
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerA]
mov dword [0x1001437c], eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
xor ebx, ebx
cmp dword [0x1001437c], ebx
je 0x1000c330
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 1
push ebx
push 2
call fcn.1000c0e3
push ebx
push ebx
push 4
call fcn.1000c0e3
push esi
call fcn.10007540
add esp, 0x1c
mov dword [0x10014378], eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebp - 0x90], 6
jae 0x1000c294
push ebx
push ebx
push ebx
push esi
push 0x1000bd88
push ebx
push ebx
call fcn.1000c520
add esp, 0x1c
jmp 0x1000c2df
lea eax, [ebp - 0x298]
push edi
push eax
push dword [0x1001436c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x194]
push 0x10001b24
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x194]
push eax
call fcn.1000bb78
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call esi
mov eax, dword [0x10014484]
cmp eax, 3
je 0x1000c2f8
cmp eax, 1
jne 0x1000c2e5
push 0xffffffffffffffff
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x10014378], 0x120
jne 0x1000c330
push 0x2710
call esi
jmp 0x1000c327
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000c450
Capabilities:
Shutdown system

Disassembly:
push 1
push 0x10001b3c
call fcn.1000c3c0
mov eax, dword [esp + 0xc]
add esp, 8
push 0
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
push 0x10001b3c
call fcn.1000c3c0
add esp, 8
ret
Function at 0x1000c520
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dl, byte [ebp + 0x20]
push 0
push 0
push 0
push 0
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
lea edx, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push 0x1000c480
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov edx, dword [ebp - 4]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000c5b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x128
mov ebx, eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
push esi
push ebx
mov dword [esi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000c62e
mov eax, dword [ebp + 8]
lea edi, [esi + 0x24]
push eax
push edi
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x1000c609
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x1000c62e
mov ecx, dword [ebp + 8]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1000c601
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1000c614
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x1000c8e0
Capabilities:
Simulate ctrl alt del

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
push 0x10001b58
mov esi, eax
call fcn.1000c870
add esp, 4
test eax, eax
jne 0x1000c903
pop esi
ret
push 0x2e0003
push 0
push 0x312
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
test esi, esi
je 0x1000c927
push esi
call fcn.1000c800
add esp, 4
mov eax, 1
pop esi
ret
Function at 0x1000c930
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x414
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push ebp
push ebp
mov esi, 1
push ebp
push 0x10001800
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], esi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x20], edi
jne 0x1000c973
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x414
ret
mov eax, dword [esp + 0x428]
push ebp
push connect
push ebp
push ebp
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
cmp ebx, ebp
jne 0x1000c99d
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x414
ret
mov ecx, dword [esp + 0x42c]
push ebp
push ebp
push 2
push ebp
push ebp
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x1000ca2f
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x28]
push 0x400
push eax
push ebx
call ebp
test esi, esi
je 0x1000c9f1
cmp word [esp + 0x24], 0x5a4d
jne 0x1000ca18
mov edx, dword [esp + 0x10]
xor esi, esi
lea ecx, [esp + 0x1c]
push esi
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x1000ca20
jmp 0x1000c9c5
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push edi
call esi
mov ecx, dword [esp + 0x14]
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
setne al
add esp, 0x414
ret
Function at 0x1001e34
Capabilities:
Parse pe header

Disassembly:
push 0x60
push 0x10011e0
call fcn.01002c88
mov edi, 0x94
mov eax, edi
call fcn.01002df0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [0x10010a8]
mov ecx, dword [esi + 0x10]
mov dword [0x10062b8], ecx
mov eax, dword [esi + 4]
mov dword [0x10062c4], eax
mov edx, dword [esi + 8]
mov dword [0x10062c8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x10062bc], esi
cmp ecx, 2
je 0x1001e94
or esi, 0x8000
mov dword [0x10062bc], esi
shl eax, 8
add eax, edx
mov dword [0x10062c0], eax
cmp word [0x1000000], 0x5a4d
jne 0x1001ed0
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x1001ed0
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x1001ee9
cmp ecx, 0x20b
je 0x1001ed6
and dword [ebp - 0x1c], 0
jmp 0x1001efd
cmp dword [eax + 0x84], 0xe
jbe 0x1001ed0
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x1001ef7
cmp dword [eax + 0x74], 0xe
jbe 0x1001ed0
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.01002c2a
pop ecx
test eax, eax
jne 0x1001f2a
cmp dword [0x10062a8], 1
jne 0x1001f17
call fcn.01002406
push 0x1c
call fcn.01002219
push 0xff
call fcn.01002078
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.01002a5a
test eax, eax
jge 0x1001f3f
push 0x1b
call fcn.01001e05
pop ecx
call dword [0x10010ac]
mov dword [0x1006854], eax
call fcn.0100292d
mov dword [0x10062a0], eax
call fcn.01002884
test eax, eax
jge 0x1001f65
push 8
call fcn.01001e05
pop ecx
call fcn.0100262a
test eax, eax
jge 0x1001f76
push 9
call fcn.01001e05
pop ecx
call fcn.010020d2
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1001f89
push eax
call fcn.01001e05
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [0x10010b0]
call fcn.010025bc
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x1001fab
movzx eax, word [ebp - 0x40]
jmp 0x1001fae
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.01001c3d
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x1001fcf
push esi
call fcn.010021b2
call fcn.010021ea
jmp 0x1002001
or dword [ebp - 4], 0xffffffff
dec ebp
pop edx
nop
add byte [ebx], al
add byte [eax], al
add byte [eax + eax], al
add byte [eax], al
invalid
Function at 0x42fb50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x24000]
push edi
or ebp, 0xffffffff
jmp 0x42fb72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42fb79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42fb68
mov eax, 1
add ebx, ebx
jne 0x42fb8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42fb80
jne 0x42fb9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42fb80
xor ecx, ecx
sub eax, 3
jb 0x42fbb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42fc22
mov ebp, eax
add ebx, ebx
jne 0x42fbbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42fbc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42fbec
inc ecx
add ebx, ebx
jne 0x42fbd8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42fbcd
jne 0x42fbe9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42fbcd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42fc0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42fbfd
jmp 0x42fb6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42fc0c
add edi, ecx
jmp 0x42fb6e
pop esi
mov edi, esi
mov ecx, 0xc14
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42fc2a
cmp byte [edi], 9
jne 0x42fc2a
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 eax, ebx
loop 0x42fc2f
lea edi, [esi + 0x2c000]
mov eax, dword [edi]
or eax, eax
je 0x42fc9e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3d668]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3d6e0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42fc5c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3d6e4]
or eax, eax
je 0x42fc98
mov dword [ebx], eax
add ebx, 4
jmp 0x42fc79
call dword [esi + 0x3d6e8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x42fccf
cmp al, 0xef
ja 0x42fcc2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x42fca4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x42fcb1
popal
jmp 0x4163f4
Function at 0x1007c10
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x107f910
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, dword [esp + 0x50]
xor ebx, ebx
cmp esi, 5
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
jne 0x1007cfe
mov eax, dword [esp + 0x50]
push 1
push 0x10987d0
lea ecx, [esp + 0x20]
mov eax, dword [eax]
push eax
call fcn.01016c4c
lea ecx, [esp + 0x18]
mov dword [esp + 0x48], ebx
call fcn.01016d61
lea ecx, [esp + 0x18]
call fcn.01016d61
cmp eax, ebx
je 0x1007c81
push eax
call fcn.0105b81b
add esp, 4
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x18]
call fcn.01016d61
mov ebp, eax
test ebp, ebp
je 0x1007cba
xor edi, edi
mov esi, 0x10a40e0
mov eax, dword [esi]
push eax
push ebp
call fcn.0105d920
add esp, 8
test eax, eax
jne 0x1007cae
lea ecx, [edi + 1]
mov dword [esp + 0x14], ecx
add esi, 4
inc edi
cmp esi, 0x10a4110
jl 0x1007c97
lea ecx, [esp + 0x18]
call fcn.01016d61
test eax, eax
je 0x1007cd2
push eax
call fcn.0105b81b
add esp, 4
mov ebx, eax
mov ebp, dword [esp + 0x58]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x60]
mov dword [ebp], edx
mov dword [ecx], eax
mov dword [esp + 0x48], 0xffffffff
mov dword [edi], ebx
lea ecx, [esp + 0x18]
jmp 0x1007e05
mov edx, dword [esp + 0x50]
push 1
push 0x10987d4
lea ecx, [esp + 0x34]
mov eax, dword [edx]
push eax
call fcn.01016c4c
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 1
call fcn.01016d61
mov edi, dword [esp + 0x60]
mov ebp, dword [esp + 0x58]
cmp eax, ebx
je 0x1007df9
test esi, esi
jne 0x1007d49
push eax
call fcn.0105b81b
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x1007d6d
cmp esi, 4
je 0x1007d62
cmp esi, 6
je 0x1007d62
push eax
call fcn.0105b81b
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x1007d6d
push eax
call fcn.0105b81b
add esp, 4
mov ebx, eax
lea ecx, [esp + 0x2c]
call fcn.01016d61
test eax, eax
je 0x1007d99
test esi, esi
push eax
jne 0x1007d8d
call fcn.0105b81b
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x1007d99
call fcn.0105b81b
add esp, 4
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x2c]
call fcn.01016d61
test eax, eax
je 0x1007df9
cmp esi, 4
je 0x1007dbd
cmp esi, 6
je 0x1007dbd
push eax
call fcn.0105b81b
add esp, 4
mov ebx, eax
jmp 0x1007dca
push eax
call fcn.0105b81b
add esp, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x14]
mov dword [ebp], eax
mov dword [edx], ecx
cmp ebx, 0x32
mov dword [edi], ebx
jge 0x1007dea
add ebx, 0x7d0
jmp 0x1007df7
jle 0x1007df9
cmp ebx, 0x64
jge 0x1007df9
add ebx, 0x76c
mov dword [edi], ebx
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.01016c8b
mov eax, dword [ebp]
test eax, eax
jle 0x1007e42
cmp eax, 0x20
jge 0x1007e42
mov eax, dword [esp + 0x5c]
mov eax, dword [eax]
test eax, eax
jle 0x1007e42
cmp eax, 0xd
jge 0x1007e42
cmp dword [edi], 0x76b
jle 0x1007e42
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x1009a46
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push esi
lea eax, [ebp - 0x140]
mov esi, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x1009a78
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
jmp 0x1009a91
push edi
mov edi, dword [ebp + 8]
push 9
lea esi, [ebp - 0x140]
pop ecx
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop edi
pop esi
leave
ret 4
Function at 0x1009cbd
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x107faf4
call fcn.0105c800
sub esp, 0x1c
push ebx
push esi
push edi
lea ecx, [ebp - 0x28]
push dword [ebp + 0xc]
call fcn.01009de4
xor ebx, ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.01009915
cmp byte [ebp + 0x10], bl
je 0x1009cf2
cmp al, bl
jne 0x1009dcb
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x14], edi
je 0x1009dcb
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call esi
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x1009d3b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1009dcb
mov esi, 0x400
push esi
call fcn.0105b249
pop ecx
mov dword [ebp + 0x10], eax
lea ecx, [ebp - 0x10]
push ebx
push ecx
push esi
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp + 0xc], 1
call edi
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x1009da1
cmp dword [ebp - 0x10], ebx
je 0x1009da1
cmp dword [ebp + 0xc], ebx
je 0x1009da1
lea eax, [ebp - 0x1c]
push ebx
push eax
push dword [ebp - 0x10]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x1009da1
lea eax, [ebp - 0x10]
push ebx
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 0x14]
jmp 0x1009d65
push dword [ebp + 0x10]
call fcn.0105ad60
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
push dword [ebp + 8]
call esi
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x18], ebx
je 0x1009dcb
cmp dword [ebp + 0xc], ebx
je 0x1009dcb
cmp dword [ebp - 0x10], ebx
jne 0x1009dcb
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.010095e5
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1009e13
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x107fb20
call fcn.0105c800
sub esp, 0x178
push esi
mov esi, ecx
call fcn.01009974
test al, al
je 0x1009fc0
push dword [esi + 4]
call fcn.0105c0e0
cmp eax, 0xa
pop ecx
jbe 0x1009fc0
mov ax, word [0x10988c0]
push edi
push dword [esi + 4]
lea ecx, [ebp - 0x38]
mov word [ebp - 0xe], ax
or edi, 0xffffffff
call fcn.01009de4
and dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0100972d
push eax
call fcn.0105d494
neg eax
sbb al, al
pop ecx
inc al
mov byte [ebp - 0x15], al
je 0x1009f96
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0xe]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1009f92
push ebx
test byte [ebp - 0x184], 0x10
jne 0x1009efb
lea eax, [ebp - 0x158]
push 0xffffffffffffff9b
push eax
lea ecx, [ebp - 0x14]
call fcn.010087b8
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp dword [eax - 8], 4
jbe 0x1009ef2
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x44]
push eax
call fcn.01009fcf
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
call fcn.01009731
lea ecx, [ebp - 0x44]
call fcn.0100972d
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x44]
call fcn.010095e5
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
jmp 0x1009f76
cmp byte [ebp + 8], 0
je 0x1009f7b
lea eax, [ebp - 0x158]
push 0xffffffffffffff9b
push eax
lea ecx, [ebp - 0x1c]
call fcn.010087b8
lea eax, [ebp - 0x20]
push 1
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.01008d4e
mov eax, dword [eax]
push 0x10986c0
push eax
call fcn.0105d410
pop ecx
pop ecx
test eax, eax
lea ecx, [ebp - 0x20]
setne bl
call fcn.01001190
test bl, bl
je 0x1009f6f
push esi
lea ecx, [ebp - 0x2c]
call fcn.01009fcf
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.01009731
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.01009e13
lea ecx, [ebp - 0x2c]
call fcn.010095e5
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.01001190
lea eax, [ebp - 0x184]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1009e9d
pop ebx
test edi, edi
je 0x1009f9d
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x10986bc
call fcn.0105d494
pop ecx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x38]
call fcn.010095e5
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x100a9d0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x107fc1c
call fcn.0105c800
sub esp, 0x4c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
mov dword [esi], 0x1086e9c
mov ecx, dword [esi + 0x18]
xor ebx, ebx
cmp ecx, ebx
mov dword [ebp - 4], 3
je 0x100aa0f
mov eax, dword [ecx]
push esi
call dword [eax + 0x1c]
mov ecx, dword [esi + 0x18]
cmp ecx, ebx
je 0x100aa0f
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov eax, dword [0x1098824]
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x10]
push eax
push 0x10867cc
mov byte [ebp - 4], 4
call fcn.01011ddf
test al, al
je 0x100aa86
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x58], 0x44
xor edi, edi
lea eax, [ebp - 0x58]
push 0x10a41d8
push eax
push ebx
push ebx
push 4
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x100aa86
inc edi
cmp edi, 3
jge 0x100aa74
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100aa43
push ebx
push str.Update_error
push str.Couldnt_chain_next_application.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x10]
call fcn.01001190
lea ecx, [esi + 0x34]
call fcn.01001190
lea ecx, [esi + 0x30]
call fcn.01001190
lea ecx, [esi + 0x20]
mov byte [ebp - 4], bl
call fcn.0100f2f8
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 8]
call fcn.0100f3ba
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x100ab0f
Capabilities:
Resume thread

Disassembly:
mov eax, dword [0x10a41dc]
test eax, eax
je 0x100ab1f
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
ret
Function at 0x100b0f5
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x107fd00
call fcn.0105c800
sub esp, 0x168
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
xor ebx, ebx
call fcn.01009de4
push dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.01009731
lea eax, [ebp - 0x174]
lea ecx, [ebp - 0x28]
push eax
call fcn.0100972d
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x18], eax
mov edi, 0x10989d8
cmp dword [ebp - 0x18], 0xffffffff
je 0x100b279
lea eax, [ebp - 0x148]
push 0xffffffffffffff9b
push eax
lea ecx, [ebp - 0x14]
call fcn.010087b8
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp byte [eax], 0x2e
je 0x100b22b
push 0xffffffffffffff9b
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
call fcn.010087b8
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
mov esi, dword [eax - 8]
call fcn.0100884b
mov eax, dword [ebp - 0x10]
cmp byte [esi + eax - 1], 0x5c
je 0x100b1b3
mov eax, edi
test eax, eax
je 0x100b1a7
push edi
call fcn.0105c0e0
pop ecx
jmp 0x100b1a9
xor eax, eax
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.01008a89
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [ebp - 0x10]
call fcn.01008a89
test byte [ebp - 0x174], 0x10
je 0x100b1e7
cmp byte [ebp + 0x10], 0
je 0x100b223
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x1c]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call fcn.0100b0f5
add ebx, eax
jmp 0x100b223
push dword [ebp + 8]
lea ecx, [ebp - 0x34]
call fcn.01009de4
lea eax, [ebp - 0x148]
lea ecx, [ebp - 0x34]
push eax
mov byte [ebp - 4], 3
call fcn.01009731
lea ecx, [ebp - 0x34]
call fcn.0100972d
mov ecx, dword [ebp - 0x1c]
push eax
call fcn.0100b289
lea ecx, [ebp - 0x34]
inc ebx
mov byte [ebp - 4], 2
call fcn.010095e5
lea ecx, [ebp - 0x10]
call fcn.01001190
lea eax, [ebp - 0x174]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.01001190
test esi, esi
jne 0x100b144
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.010095e5
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.010095e5
xor eax, eax
jmp 0x100b268