joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1015780a
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x101835f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x10157855
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.10157afc
test al, al
jne 0x1015784f
sub edx, 2
cmp edx, edi
jne 0x10157835
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x10157877
lea eax, [edi + 2]
cmp edx, eax
je 0x10157877
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.10157756
add esp, 0x10
jmp 0x10157971
push esi
lea ecx, [ebp - 0x255]
call fcn.10157afc
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x101578ba
push dword [ebp - 0x25c]
jmp 0x10157867
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x101578f7
cmp word [ebp - 0x226], 0
je 0x10157918
cmp word [ebp - 0x226], ax
jne 0x101578f7
cmp word [ebp - 0x224], 0
je 0x10157918
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.10157756
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x10157964
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x101578d1
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x1015794c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x10157971
push 0x10157b3a
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.10168200
add esp, 0x10
jmp 0x10157941
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10126c4a
leave
ret
Function at 0x101584a2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1015853f
push ebx
push esi
call fcn.101585a5
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.101583a6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x101584ec
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1015853e
push edi
push eax
call fcn.1015221a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1015850c
call fcn.10150b71
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1015853d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.101583a6
add esp, 0x20
test eax, eax
jne 0x1015852b
push edi
call fcn.10150b71
jmp 0x10158533
push ebx
call fcn.10150b71
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10158542
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10158553
pop esi
ret
push ebx
push edi
push esi
call fcn.101585a5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1015221a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1015857b
push ebx
push esi
push edi
call fcn.10129080
add esp, 0xc
push 0
call fcn.10150b71
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1015864c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101588db
Function at 0x10163b90
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101835f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1014f3a9
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1014f3a9
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10163c07
cmp word [ecx], dx
je 0x10163c07
mov eax, dword [0x10177e6c]
push edi
dec eax
push eax
push 0x10177d58
call fcn.10163d80
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10163c7a
cmp word [eax], dx
je 0x10163c7a
mov eax, dword [edi]
test eax, eax
je 0x10163c2b
cmp word [eax], dx
je 0x10163c2b
lea eax, [ebp - 0x10]
push eax
call fcn.10163de1
jmp 0x10163c34
lea eax, [ebp - 0x10]
push eax
call fcn.101640cf
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10163ca4
mov eax, dword [0x10177d54]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10177a48
call fcn.10163d80
add esp, 0xc
test al, al
je 0x10163ca4
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10163c6f
cmp word [eax], di
je 0x10163c6f
lea eax, [ebp - 0x10]
push eax
call fcn.10163de1
pop ecx
jmp 0x10163ca6
lea eax, [ebp - 0x10]
push eax
call fcn.101640cf
jmp 0x10163c6c
mov eax, dword [edi]
test eax, eax
je 0x10163c91
cmp word [eax], dx
je 0x10163c91
lea eax, [ebp - 0x10]
push eax
call fcn.10164203
pop ecx
jmp 0x10163ca4
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10163d6f
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10164313
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10163d6f
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10163d6f
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10163d6f
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10163cfc
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1014e634
test ebx, ebx
je 0x10163d6a
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1014e634
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10163d6f
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10163d6f
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1016c294
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10163d71
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10126c4a
leave
ret
Function at 0x10164419
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1014f3a9
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10164488
cmp esi, dword [ebp - 4]
je 0x10164483
cmp dword [ebp + 0xc], 0
je 0x10164483
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10164460
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.101644e2
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1016448a
xor eax, eax
inc eax
jmp 0x1016448a
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1016a086
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10184ab8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1016a0c6
cmp byte [ebx], 0xa
jne 0x1016a0c6
or byte [edi + eax + 0x28], 4
jmp 0x1016a0cb
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1016a1ca
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1016a1ad
inc eax
cmp dl, 0xd
je 0x1016a0f7
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1016a11d
cmp eax, ecx
jae 0x1016a12b
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1016a0df
jmp 0x1016a1ca
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1016a1a8
cmp dword [ebp - 0x10], 0
je 0x1016a1a8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10184ab8]
test byte [eax + edi + 0x28], 0x48
je 0x1016a182
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1016a16d
mov byte [esi], dl
jmp 0x1016a17e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10184ab8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1016a1ca
cmp byte [ebp - 1], 0xa
jne 0x1016a191
cmp esi, ebx
jne 0x1016a191
mov byte [esi], 0xa
jmp 0x1016a1c9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.101693b6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1016a1ca
mov byte [esi], 0xd
jmp 0x1016a1c9
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10184ab8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1016a1c7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1016a1ca
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1016a1d3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10184ab8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1016a219
cmp word [ebx], dx
jne 0x1016a219
or byte [eax + edi + 0x28], 4
jmp 0x1016a21e
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1016a381
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1016a361
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1016a25f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1016a295
cmp eax, edx
jae 0x1016a2a3
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1016a23a
jmp 0x1016a381
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1016a35c
cmp dword [ebp - 0x18], 0
je 0x1016a35c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10184ab8]
test byte [eax + edi + 0x28], 0x48
je 0x1016a332
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1016a2f6
mov word [esi], cx
jmp 0x1016a32d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10184ab8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10184ab8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10184ab8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1016a381
pop eax
cmp word [ebp - 4], ax
jne 0x1016a342
cmp esi, ebx
jne 0x1016a342
mov word [esi], ax
jmp 0x1016a37e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.101693b6
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1016a381
push 0xd
pop eax
jmp 0x1016a33d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10184ab8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1016a37b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1016a381
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x1016d2d0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1016d358
Function at 0x401ad2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov ecx, 0x56200c
call fcn.004f6dfd
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
sub edx, ecx
push 4
pop edi
push 4
pop esi
mov al, byte [edx + ecx]
xor byte [ecx], al
inc ecx
sub esi, 1
jne 0x401aef
sub edi, 1
jne 0x401aec
pop edi
pop esi
pop ebp
ret 8

Function at 0x401ec5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov dword [ebp - 8], ecx
mov ecx, 0x56200c
push edi
call fcn.004f6dfd
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x20], 0x8040201
mov dword [ebp - 0x1c], 0x80402010
mov word [ebp - 0x18], 0x361b
push 4
lea esi, [edx + ebx]
pop edi
mov al, byte [esi]
lea esi, [esi + 4]
mov byte [ecx], al
inc ecx
sub edi, 1
jne 0x401efd
inc edx
cmp edx, 4
jl 0x401ef7
xor ebx, ebx
push 0x10
inc ebx
pop esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
xor edx, edx
add eax, 0xfffffff3
add eax, esi
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov edi, eax
lea eax, [edi + 0xc]
add eax, edx
test edx, edx
cmove eax, edi
add edi, 4
mov al, byte [eax]
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x401f2d
test edx, edx
jne 0x401f9c
mov al, byte [ebp - 4]
xor edi, edi
mov esi, dword [ebp - 8]
inc edi
mov byte [ebp + 0xb], al
xor ebx, ebx
lea eax, [ebp - 4]
sub edi, eax
lea ecx, [ebp - 4]
add ecx, ebx
lea eax, [edi + ecx]
and eax, reloc.WS2_32.dll_closesocket
jns 0x401f71
dec eax
or eax, 0xfffffffc
inc eax
movzx eax, byte [ebp + eax - 4]
inc ebx
mov al, byte [eax + esi + 4]
mov byte [ecx], al
cmp ebx, 3
jl 0x401f5d
movzx eax, byte [ebp + 0xb]
mov ecx, esi
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov al, byte [eax + ecx + 4]
mov byte [ebp - 1], al
mov al, byte [ebp + ebx - 0x21]
xor byte [ebp - 4], al
lea ecx, [esi + edx]
xor edi, edi
add ecx, dword [ebp + 0xc]
mov al, byte [ebp + edi - 4]
xor al, byte [ecx - 0x10]
inc edi
mov byte [ecx], al
lea ecx, [ecx + 4]
cmp edi, 4
jl 0x401fa4
mov eax, dword [ebp - 0x14]
inc edx
cmp edx, 4
jl 0x401f29
add esi, 0x10
inc ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esi
cmp esi, 0xa0
jle 0x401f1c
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x402c8c
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0x522a6e
call fcn.004f70e4
sub esp, 0x10
push ebx
xor ebx, ebx
mov ecx, 0x562078
push esi
mov dword [ebp - 0x1c], ebx
call fcn.004f6dfd
mov ecx, dword [ebp + 8]
call fcn.00402435
mov eax, dword [ebp + 0x10]
mov esi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], 1
test eax, eax
je 0x402dfe
push edi
push 3
pop edi
mov ecx, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [ecx]
mov byte [ebp + esi - 0x14], al
inc esi
mov dl, byte [ebp - 0x13]
inc ecx
mov dword [ebp + 0xc], ecx
mov ch, byte [ebp - 0x12]
mov cl, byte [ebp - 0x14]
mov byte [ebp - 0xf], ch
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], cl
cmp esi, edi
jne 0x402d56
mov al, cl
mov esi, ebx
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
and ch, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], ch
mov ecx, 0x560568
call fcn.004029d0
mov ecx, eax
movzx eax, byte [ebp + esi - 0x18]
movzx eax, byte [ecx + eax]
mov ecx, dword [ebp + 8]
push eax
call fcn.00402609
inc esi
cmp esi, 4
jl 0x402d27
mov dl, byte [ebp - 0xd]
mov esi, ebx
mov cl, byte [ebp - 0xe]
mov ch, byte [ebp - 0xf]
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x402ccd
test esi, esi
je 0x402dfd
cmp esi, edi
jge 0x402d8a
mov eax, edi
sub eax, esi
push eax
lea eax, [ebp - 0x14]
add eax, esi
push ebx
push eax
call fcn.004fa2f0
mov ch, byte [ebp - 0x12]
add esp, 0xc
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x17], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x15], ch
lea eax, [esi + 1]
mov byte [ebp - 0x16], dl
test eax, eax
jle 0x402de8
lea edi, [esi + 1]
mov ecx, 0x560568
call fcn.004029d0
mov ecx, eax
movzx eax, byte [ebp + ebx - 0x18]
movzx eax, byte [ecx + eax]
mov ecx, dword [ebp + 8]
push eax
call fcn.00402609
inc ebx
cmp ebx, edi
jl 0x402dc2
push 3
pop edi
cmp esi, edi
jge 0x402dfd
sub edi, esi
mov ecx, dword [ebp + 8]
push 0x3d
call fcn.00402ec0
sub edi, 1
jne 0x402dee
pop edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40657f
Capabilities:
Create directory

Disassembly:
mov eax, 0x522bba
call fcn.004f70e4
sub esp, 0x14
push ebx
push esi
push edi
mov ecx, 0x562275
call fcn.004f6dfd
lea ecx, [ebp - 0x20]
call fcn.004042b5
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x529b84
call fcn.00404194
push ecx
mov ecx, esp
mov byte [ebp - 4], 1
push dword [ebp + 8]
mov dword [ebp - 0x10], ecx
call fcn.0040406a
mov byte [ebp - 4], 0
call fcn.0040833e
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
sub edi, dword [ebp - 0x20]
add esp, 0xc
sar edi, 2
call fcn.00404155
xor esi, esi
mov byte [ebp - 4], 2
test edi, edi
je 0x406661
mov eax, dword [ebp - 0x20]
lea ebx, [eax + esi*4]
test esi, esi
jne 0x40663b
push 1
mov ecx, ebx
call fcn.00405321
cmp ax, 0x3a
jne 0x406661
push 0x529994
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.00404829
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00404a69
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00405e10
jmp 0x40665c
push ebx
lea ecx, [ebp - 0x10]
call fcn.00404a69
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x529994
lea ecx, [ebp - 0x10]
call fcn.00404a8e
inc esi
cmp esi, edi
jb 0x4065f2
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00405e10
lea ecx, [ebp - 0x20]
call fcn.00408ca5
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x406683
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov eax, 0x522bfb
call fcn.004f70e4
sub esp, 0x10
push ebx
xor ebx, ebx
mov ecx, 0x562275
inc ebx
mov dword [ebp - 4], ebx
call fcn.004f6dfd
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x10]
push eax
push 0x536990
push ebx
push 0
push 0x536a00
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x4067bf
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
push edx
push 0x5369b0
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
jne 0x4067b6
lea eax, [ebp - 0x14]
push eax
call fcn.00406ec7
pop ecx
push 0x2e
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00405fe8
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
call fcn.004057a2
mov ecx, dword [ebp - 0x10]
push dword [eax]
mov byte [ebp - 4], 3
push ecx
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00405e10
push 0x5c
lea ecx, [ebp + 8]
call fcn.00405fe8
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 8]
call fcn.004057a2
mov ecx, dword [ebp - 0x10]
push dword [eax]
mov byte [ebp - 4], 4
push ecx
mov edx, dword [ecx]
call dword [edx + 0x24]
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00405e10
mov eax, dword [ebp - 0x10]
push dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004047c7
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push ebx
push dword [eax]
mov byte [ebp - 4], 5
mov edx, dword [ecx]
push ecx
call dword [edx + 0x18]
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00405e10
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.00405e10
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x4067c1
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor bl, bl
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00405e10
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00405e10
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4069df
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x522c6f
call fcn.004f70e4
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
mov ecx, 0x562275
mov dword [ebp - 4], esi
call fcn.004f6dfd
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
mov edi, 0x529b44
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.00404891
add esp, 0xc
push edi
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
call fcn.00404829
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.00404652
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00405e10
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00405e10
cmp byte [ebp + 0x1c], 0
mov ecx, 0x440
push 0x40
pop eax
cmovne eax, ecx
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x54], eax
xorps xmm0, xmm0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
push 5
pop ecx
movlpd qword [ebp - 0x34], xmm0
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
xor eax, eax
cmp byte [ebp + 0x18], al
movlpd qword [ebp - 0x2c], xmm0
cmovne eax, ecx
movlpd qword [ebp - 0x24], xmm0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x38], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x406ac6
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [esi], eax
cmp byte [ebp + 0x10], 0
je 0x406ae5
push dword [ebp + 0x20]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, dword [ebp - 0x14]
jmp 0x406af3
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00405e10
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret