joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001144c
Capabilities:
Copy file
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x324c
mov dword [ebp - 4], 1
mov dword [ebp - 0xc], ebx
call fcn.10013190
mov dword [ebp - 8], eax
mov eax, dword [0x1002ebe8]
mov edi, 0x80
cmp eax, 0x100
je 0x1001148f
cmp eax, edi
je 0x1001148f
cmp eax, 2
jne 0x1001154f
mov esi, 0x1002cfe4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
xor eax, eax
call fcn.10016df1
push eax
push str._08x
lea eax, [ebp - 0x9c]
push 0x40
push eax
call fcn.1001120a
push ebx
push dword [ebp - 8]
mov esi, 0x10020c38
push esi
push str.SysWOW64
push esi
push 0x1002e374
call fcn.10013746
push ebx
push 0x10026470
mov dword [ebp - 0x10], eax
push str..2_
lea eax, [ebp - 0x9c]
push eax
push esi
push 0x1002e57e
call fcn.10013746
add esp, 0x48
push ebx
push eax
push dword [ebp - 0x10]
mov dword [0x1002cd24], eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push dword [0x1002cd24]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1002cd20], eax
cmp eax, ebx
je 0x10011521
mov dword [ebp - 0xc], 1
push 0xfffffffffffffffe
pop eax
lea esi, [ebp - 0x10]
call fcn.100110a9
push edi
lea eax, [ebp - 0x9c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp - 0xc], ebx
jne 0x10011568
push 0xfffffffffffffffe
pop eax
mov esi, 0x1002cd24
call fcn.100110a9
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x1002cd20], eax
cmp eax, ebx
jne 0x10011568
xor eax, eax
jmp 0x10011672
lea eax, [ebp - 8]
call fcn.100132d0
mov eax, 0x218c
call fcn.1001321d
mov dword [ebp - 0xc], eax
mov eax, 0x358
call fcn.1001321d
mov dword [ebp - 0x10], eax
mov eax, 0x1280
call fcn.1001321d
mov dword [ebp - 8], eax
mov eax, 0x103
call fcn.1001321d
mov dword [ebp - 0x1c], eax
mov eax, 0xf50
call fcn.1001321d
mov dword [ebp - 0x14], eax
mov eax, 0x3355
call fcn.1001321d
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x1002cd20]
mov dword [ebp - 0x18], eax
call esi
mov dword [0x1002cf08], eax
cmp eax, ebx
je 0x1001163c
push dword [ebp - 0x10]
push dword [0x1002cd20]
call esi
mov dword [0x1002cf0c], eax
cmp eax, ebx
je 0x1001163c
push dword [ebp - 8]
push dword [0x1002cd20]
call esi
mov dword [0x1002cf10], eax
cmp eax, ebx
je 0x1001163c
push dword [ebp - 0x1c]
push dword [0x1002cd20]
call esi
mov dword [0x1002cf14], eax
cmp eax, ebx
je 0x1001163c
push dword [ebp - 0x14]
push dword [0x1002cd20]
call esi
mov dword [0x1002cf18], eax
cmp eax, ebx
je 0x1001163c
push dword [ebp - 0x18]
push dword [0x1002cd20]
call esi
mov dword [0x1002cf20], eax
cmp eax, ebx
jne 0x1001163f
mov dword [ebp - 4], ebx
lea eax, [ebp - 0xc]
call fcn.100132bb
lea eax, [ebp - 0x10]
call fcn.100132bb
lea eax, [ebp - 8]
call fcn.100132bb
lea eax, [ebp - 0x1c]
call fcn.100132bb
lea eax, [ebp - 0x14]
call fcn.100132bb
lea eax, [ebp - 0x18]
call fcn.100132bb
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10011807
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
cmp dword [0x1002cfe0], 0
push esi
je 0x1001182b
mov eax, 0x170d
mov ecx, 0x250d
mov esi, 0x335d
jmp 0x1001183a
mov eax, 0x9a
mov ecx, 0x978
mov esi, 0x20f6
mov edx, dword [0x1002ebe8]
test edx, 0x300
jne 0x10011855
test dl, 0xd2
jne 0x10011855
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jmp 0x1001185b
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
push 0xc
mov dword [ebp - 8], esi
call fcn.10011093
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100118cc
push ebx
lea ebx, [ebp - 0x10]
push edi
mov esi, eax
sub ebx, eax
mov dword [ebp - 4], 3
mov edi, dword [ebx + esi]
call fcn.10013190
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100118b6
push 0x104
lea ecx, [ebp - 0x224]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x18]
call fcn.100132d0
lea eax, [ebp - 0x224]
push eax
call fcn.10013620
pop ecx
mov dword [esi], eax
add esi, 4
dec dword [ebp - 4]
jne 0x1001187d
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], 3
mov eax, dword [ebp - 0x14]
pop ebx
pop esi
leave
ret

Function at 0x100118cf
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e0
push ebx
push esi
mov esi, eax
xor ebx, ebx
call fcn.1001144c
test eax, eax
je 0x10011996
push dword [ebp + 0xc]
push dword [esi]
call fcn.100116ed
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x10011996
push 0x2cc
lea eax, [ebp - 0x2e0]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2e0]
push eax
push dword [esi + 4]
mov dword [ebp - 0x2e0], 0x10002
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x10011996
mov eax, dword [ebp - 0x230]
mov edx, dword [ebp + 8]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x10], eax
mov ecx, ebx
sub ecx, eax
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
push 0x40
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi]
lea ecx, [ecx + edx - 5]
mov byte [ebp - 0xc], 0xe9
mov dword [ebp - 0xb], ecx
mov dword [ebp - 4], 5
call dword [0x1002cf18]
test eax, eax
js 0x10011994
lea eax, [ebp - 4]
push eax
push 5
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x230]
push dword [esi]
call dword [0x1002cf14]
test eax, eax
jns 0x10011996
xor ebx, ebx
mov eax, dword [0x1002cd20]
test eax, eax
je 0x100119ad
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [0x1002cd20], 0
mov eax, dword [0x1002cd24]
test eax, eax
je 0x100119ca
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xfffffffffffffffe
pop eax
mov esi, 0x1002cd24
call fcn.100110a9
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x100119d0
Capabilities:
Resume thread

Disassembly:
push esi
push dword [eax + 4]
xor esi, esi
inc esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x100119e3
xor esi, esi
mov eax, esi
pop esi
ret
Function at 0x10012340
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor eax, eax
inc eax
push 6
push eax
push 2
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10012368
or eax, 0xffffffff
jmp 0x100123ed
lea eax, [ebp - 8]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x10012384
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x100123da
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
pop eax
push dword [ebp + 8]
mov word [ebp - 0x18], ax
call dword [sym.imp.WS2_32.dll_htons]
and dword [ebp - 0x14], 0
push 4
mov word [ebp - 0x16], ax
lea eax, [ebp - 8]
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x100123da
push 0x1f4
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jns 0x100123eb
cmp esi, 0xffffffff
jbe 0x10012360
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x10012360
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x100123f1
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor esi, esi
push 6
inc esi
push esi
push 2
mov dword [ebp - 4], esi
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
or eax, 0xffffffff
cmp ebx, eax
je 0x1001249b
cmp dword [ebp + 0x10], 0
jne 0x10012442
lea eax, [ebp - 4]
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x10012442
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10012442
and dword [eax], 0
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
pop eax
push dword [ebp + 0xc]
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10012499
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10012490
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push 0xfffffffffffffffe
pop eax
jmp 0x1001249b
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10012499
mov dword [eax], esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100125e7
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov dword [eax], ecx
mov dword [eax + 0x9c0], 1
push edi
mov edx, dword [eax + 0x9c0]
lea ecx, [eax + edx*4]
mov esi, dword [ecx - 4]
mov edi, esi
shr edi, 0x1e
xor edi, esi
imul edi, edi, 0x6c078965
add edi, edx
mov dword [ecx], edi
inc dword [eax + 0x9c0]
cmp dword [eax + 0x9c0], 0x270
jl 0x100125f5
pop edi
pop esi
ret
Function at 0x10012627
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [ecx + 0x9c0], 0x270
jl 0x100126d3
push ebx
push esi
push edi
xor esi, esi
mov edi, bind
mov eax, dword [ecx + esi*4 + 4]
lea edx, [ecx + esi*4]
xor eax, dword [edx]
and eax, edi
xor eax, dword [edx]
mov ebx, eax
shr eax, 1
and ebx, 1
xor eax, dword [ebx*4 + 0x1002b274]
xor eax, dword [ecx + esi*4 + 0x634]
inc esi
mov dword [edx], eax
cmp esi, 0xe3
jl 0x10012641
jmp 0x10012695
mov eax, dword [ecx + esi*4 + 4]
lea edx, [ecx + esi*4]
xor eax, dword [edx]
and eax, edi
xor eax, dword [edx]
mov ebx, eax
shr eax, 1
and ebx, 1
xor eax, dword [ebx*4 + 0x1002b274]
xor eax, dword [ecx + esi*4 - 0x38c]
inc esi
mov dword [edx], eax
cmp esi, 0x26f
jl 0x10012670
mov eax, dword [ecx + 0x9bc]
xor eax, dword [ecx]
and eax, edi
xor eax, dword [ecx + 0x9bc]
pop edi
mov edx, eax
and edx, 1
mov edx, dword [edx*4 + 0x1002b274]
xor edx, dword [ecx + 0x630]
shr eax, 1
xor edx, eax
and dword [ecx + 0x9c0], 0
pop esi
mov dword [ecx + 0x9bc], edx
pop ebx
mov eax, dword [ecx + 0x9c0]
mov edx, dword [ecx + eax*4]
inc eax
mov dword [ecx + 0x9c0], eax
mov eax, edx
shr eax, 0xb
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
ret
Function at 0x10013190
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor ebx, ebx
cmp dword [0x1002cac4], ebx
jne 0x100131bd
push esi
push 0x10026490
mov esi, 0x36e9
call fcn.100110ea
pop ecx
mov dword [0x1002cac4], eax
pop esi
test eax, eax
jne 0x100131bd
mov eax, 0x1002cd28
pop ebx
ret
mov ecx, 0x36e8
mov eax, edi
cmp edi, ecx
jae 0x100131e6
mov edx, eax
and edx, 0x3f
mov dl, byte [edx + 0x1002b230]
xor dl, byte [eax + 0x10026490]
je 0x100131e2
inc eax
cmp eax, ecx
jb 0x100131c8
jmp 0x100131e6
sub eax, edi
mov ebx, eax
lea eax, [ebx + ebx + 2]
push eax
call fcn.10011093
pop ecx
test eax, eax
je 0x100131b6
xor ecx, ecx
test ebx, ebx
je 0x1001321b
lea edx, [ecx + edi]
and edx, 0x3f
mov dl, byte [edx + 0x1002b230]
xor dl, byte [edi + ecx + 0x10026490]
movsx dx, dl
mov word [eax + ecx*2], dx
inc ecx
cmp ecx, ebx
jb 0x100131fb
pop ebx
ret

Function at 0x1001321d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, eax
mov eax, dword [0x1002cac4]
push esi
test eax, eax
jne 0x10013252
push 0x10026490
mov esi, 0x36e9
call fcn.100110ea
pop ecx
mov dword [0x1002cac4], eax
test eax, eax
jne 0x10013252
mov eax, 0x1002cd1e
jmp 0x100132b7
mov esi, 0x36e8
mov ecx, ebx
cmp ebx, esi
jae 0x10013279
mov edx, ecx
and edx, 0x3f
mov dl, byte [edx + 0x1002b230]
xor dl, byte [eax + ecx]
je 0x10013274
inc ecx
cmp ecx, esi
jb 0x1001325d
jmp 0x10013279
sub ecx, ebx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.10011093
pop ecx
test eax, eax
je 0x1001324b
xor edx, edx
cmp dword [ebp - 4], edx
jbe 0x100132b7
mov esi, dword [0x1002cac4]
push edi
mov edi, ebx
sub edi, eax
add esi, ebx
lea ecx, [eax + edx]
lea ebx, [edi + ecx]
and ebx, 0x3f
mov bl, byte [ebx + 0x1002b230]
xor bl, byte [esi + edx]
inc edx
mov byte [ecx], bl
cmp edx, dword [ebp - 4]
jb 0x1001329c
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100132e5
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x100132f3
or eax, 0xffffffff
pop ebp
ret
test esi, esi
jne 0x100132fb
push 0xfffffffffffffffe
jmp 0x10013340
push edi
push dword [ebp + 8]
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi], eax
pop edi
cmp eax, 0xffffffff
je 0x10013317
xor eax, eax
inc eax
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x10013328
push 0xfffffffffffffffd
jmp 0x10013340
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1001333e
cmp dword [eax], 0
je 0x1001333e
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi], eax
xor eax, eax
pop ebp
ret
push 0xfffffffffffffffc
pop eax
pop ebp
ret

Function at 0x1001338f
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x100133cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100133cb
push dword [ebp + 0xc]
push esi
call fcn.100133d0
pop ecx
pop ecx
test eax, eax
jns 0x100133cb
push esi
call dword [0x1002cddc]
xor esi, esi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x10013cc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
xor ebx, ebx
mov dword [ebp - 4], esi
call fcn.10013c0a
mov edi, eax
pop ecx
cmp edi, esi
jne 0x10013ce6
xor eax, eax
jmp 0x10013d35
push esi
lea eax, [ebp - 4]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10013d26
cmp dword [ebp - 4], esi
je 0x10013d2c
push dword [ebp - 4]
lea eax, [ebp - 0x404]
push eax
mov eax, ebx
call fcn.10016df1
pop ecx
pop ecx
mov ebx, eax
cmp dword [ebp - 4], esi
ja 0x10013ce6
jmp 0x10013d2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [0x1002cddc]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10013d3a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.10013c0a
mov edi, eax
pop ecx
cmp edi, ebx
je 0x10013da3
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x10013d8e
lea eax, [esi + 1]
push eax
call fcn.10011093
mov ebx, eax
pop ecx
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x10013d8e
lea eax, [ebp - 8]
push eax
push esi
push edi
call fcn.10013c72
add esp, 0xc
test eax, eax
je 0x10013d8e
cmp dword [ebp - 8], esi
je 0x10013da7
push edi
call dword [0x1002cddc]
test ebx, ebx
je 0x10013da3
xor eax, eax
lea esi, [ebp - 4]
call fcn.100110a9
xor eax, eax
jmp 0x10013dbd
mov eax, dword [ebp + 0xc]
mov byte [esi + ebx], 0
test eax, eax
je 0x10013db4
mov dword [eax], esi
push edi
call dword [0x1002cddc]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10014fd4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push esi
and dword [ebp - 0x21c], 0
and dword [ebp - 0x20c], 0
push 0xc
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.100111ab
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x1001502b
xor eax, eax
je 0x10015029
jmp 0x10015023
jmp 0x10015092
push 0
push str.Packages
push 0x10020c38
lea eax, [ebp - 0x208]
push eax
call fcn.10013746
add esp, 0x10
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x10015092
xor eax, eax
je 0x1001505b
jmp 0x10015055
push 1
push 1
push 0
lea eax, [ebp - 0x218]
push eax
push 0x10014f6e
push 5
push 1
push 0x1002cac8
push dword [ebp - 0x220]
call fcn.10016130
add esp, 0x24
push 0xfffffffffffffffe
pop eax
lea esi, [ebp - 0x220]
call fcn.100110a9
lea eax, [ebp - 0x208]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x100150be
xor eax, eax
je 0x100150bc
jmp 0x100150b6
jmp 0x10015125
push 0
push str.LocalLow
push 0x10020c38
lea eax, [ebp - 0x208]
push eax
call fcn.10013746
add esp, 0x10
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x10015125
xor eax, eax
je 0x100150ee
jmp 0x100150e8
push 1
push 1
push 0
lea eax, [ebp - 0x218]
push eax
push 0x10014f6e
push 5
push 1
push 0x1002cac8
push dword [ebp - 0x224]
call fcn.10016130
add esp, 0x24
push 0xfffffffffffffffe
pop eax
lea esi, [ebp - 0x224]
call fcn.100110a9
push 1
push 1
push 0
lea eax, [ebp - 0x218]
push eax
push 0x10014f6e
push 5
push 1
push 0x1002cac8
push 0x1002e57e
call fcn.10016130
add esp, 0x24
push 0
push dword [0x1002cac8]
push 0x10020c38
push 0x1002d560
call fcn.10013746
add esp, 0x10
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
je 0x10015198
push dword [ebp - 0x20c]
lea eax, [ebp - 0x218]
push eax
call fcn.10014eb0
pop ecx
pop ecx
push 0xfffffffffffffffe
pop eax
lea esi, [ebp - 0x20c]
call fcn.100110a9
xor eax, eax
je 0x1001519e
jmp 0x10015198
cmp dword [ebp - 0x210], 0
je 0x100151b2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x218]
mov dword [eax], ecx
mov eax, dword [ebp - 0x210]
pop esi
leave
ret
Function at 0x10015b7c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x10015b9d
mov eax, dword [edi + 0x3c]
add eax, edi
mov ecx, 0x4550
cmp dword [eax], ecx
jne 0x10015b9d
add eax, 0x18
jmp 0x10015ba0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
add eax, edi
jne 0x10015ba9
leave
ret
push ebx
push esi
mov esi, dword [eax + 0xc]
test esi, esi
je 0x10015be6
lea ebx, [eax + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [esi + edi]
call fcn.10015af0
test eax, eax
jne 0x10015bdd
test esi, esi
je 0x10015be6
mov esi, dword [ebx + 4]
add esi, edi
jmp 0x10015bd7
cmp eax, dword [ebp + 0xc]
je 0x10015bec
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x10015bcf
add ebx, 0x14
mov esi, dword [ebx]
test esi, esi
jne 0x10015bb5
xor eax, eax
pop esi
pop ebx
leave
ret
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push esi
call dword [0x1002cdbc]
push 4
push esi
lea eax, [ebp + 0x10]
call fcn.10011150
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push esi
call dword [0x1002cdbc]
xor eax, eax
inc eax
jmp 0x10015be8

Function at 0x10015f83
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push edi
push 0
push 2
call dword [0x1002ce54]
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x10016012
push esi
mov esi, 0x22c
push esi
lea eax, [ebp - 0x22c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
push edi
mov dword [ebp - 0x22c], esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x10015fdc
push edi
call dword [0x1002cddc]
push 0xfffffffffffffffe
pop eax
jmp 0x10016011
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
push eax
call dword [ebp + 8]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10016003
lea eax, [ebp - 0x22c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10015fdc
push edi
call dword [0x1002cddc]
xor eax, eax
test esi, esi
sete al
pop esi
pop edi
leave
ret
Function at 0x10016130
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x10029c24
push dword [ebp + 8]
call fcn.10013746
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, esi
je 0x100162ad
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x100162a1
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
jmp 0x10016181
xor esi, esi
cmp dword [ebp + 0x20], esi
je 0x1001619b
push esi
push dword [ebp + 0x20]
call dword [0x1002cf1c]
cmp eax, 0x102
jne 0x10016297
cmp word [esp + 0x44], 0x2e
jne 0x100161c1
cmp word [esp + 0x46], si
je 0x10016280
cmp word [esp + 0x46], 0x2e
jne 0x100161c1
cmp word [esp + 0x48], si
je 0x10016280
mov eax, dword [esp + 0x18]
and eax, 0x10
je 0x100161cf
test bl, 2
jne 0x100161d8
cmp eax, esi
jne 0x1001621a
test bl, 4
je 0x1001621a
cmp dword [ebp + 0x10], 0
jbe 0x1001621a
push dword [edi + esi*4]
lea eax, [esp + 0x48]
push eax
call dword [0x1002ce68]
test eax, eax
je 0x10016214
push dword [ebp + 0x1c]
lea eax, [esp + 0x1c]
push eax
push dword [ebp + 8]
call dword [ebp + 0x18]
add esp, 0xc
test eax, eax
je 0x1001621a
cmp dword [ebp + 0x28], 0
je 0x10016214
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, dword [ebp + 0x10]
jb 0x100161de
test byte [esp + 0x18], 0x10
je 0x10016280
test bl, 1
je 0x10016280
push 0
lea eax, [esp + 0x48]
push eax
push 0x10020c38
push dword [ebp + 8]
call fcn.10013746
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x10016280
cmp dword [ebp + 0x24], 0
je 0x10016254
push dword [ebp + 0x24]
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push ebx
push dword [ebp + 0x10]
push edi
push dword [esp + 0x30]
call fcn.10016130
add esp, 0x24
push 0xfffffffffffffffe
pop eax
lea esi, [esp + 0x10]
call fcn.100110a9
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1001617f
push dword [esp + 0xc]
call dword [0x1002cda0]
push 0xfffffffffffffffe
pop eax
lea esi, [esp + 0x14]
call fcn.100110a9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100162b4
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push edi
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1001633d
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
push 1
mov eax, 0xf4240
mov ecx, 0x1002d99c
call fcn.1001270a
push eax
push edi
push str._S._06d
lea eax, [ebp - 0x20c]
push 0x207
push eax
call fcn.1001120a
add esp, 0x24
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x10016337
push 0
push edi
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1001633d
or dword [ebp - 4], 0xffffffff
jmp 0x10016346
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x1001634c
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push esi
push edi
mov edi, eax
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, 0x200
push esi
lea eax, [ebp - 0x244]
push 0
push eax
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x244]
push eax
push edi
call fcn.10013dc2
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1001639a
xor eax, eax
inc eax
jmp 0x100163f7
push 1
or eax, 0xffffffff
mov ecx, 0x1002d99c
call fcn.1001270a
push eax
push 0x10029c3c
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.1001120a
push 0
lea eax, [ebp - 0x44]
push eax
push str..2_
push 0
call fcn.10013746
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
je 0x100163f5
push edi
mov edi, eax
call fcn.100162b4
pop ecx
mov edi, eax
push 0xfffffffffffffffe
pop eax
lea esi, [ebp - 4]
call fcn.100110a9
xor eax, eax
test edi, edi
setns al
jmp 0x100163f7
xor eax, eax
pop edi
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret