joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6ad2c0
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dh, dl
bsr edx, edx
sub esp, 0x18
xchg dh, al
jmp 0x6ad2eb
mov al, dh
lea edx, [esi + edi]
xchg dx, di
mov di, 0x4a7e
push word [esp + 0x1a]
cld
jmp 0x6ad331
pop edi
bswap edi
lea eax, [ecx + edx]
xchg byte [esp + 0x18], al
mov dx, 0x1a0d
jmp 0x6adbfc
mov eax, 0x8977443d
rdtsc
rdtsc
lea edx, [ecx + edx]
mov ax, di
push word [esp + 5]
jmp 0x6ad2ff
mov edi, dword [esp + 0xc]
setge al
mov di, ax
mov ah, byte [esp + 6]
pop edi
mov word [esp + 8], dx
call fcn.006ad385
sub esp, 4
xchg dword [esp], edx
lea eax, reloc.WINMM.dll_midiStreamOut
mov edi, ecx
std
jmp 0x6ad4ff
lea edx, [ebp*4]
xchg byte [esp + 0xa], al
call fcn.006ad483
xchg esi, eax
add eax, eax
cmp dword [edx], 0x15
setnp ah
xor ah, 0xc6
shl ah, cl
mov edi, dword [esp + 0xa]
mov dl, bh
xchg dx, ax
jmp 0x6ad424
mov eax, esi
xchg dword [esp], edx
sub esp, 0x13
pop edx
lea edx, [edx + edx]
neg edi
jmp 0x6ad43a
bts edi, ebp
sets dl
setle dh
mov dh, byte [esp + 2]
not eax
push word [esp + 2]
jmp 0x6ad45d
mov ax, bx
mov eax, dword [esp + 3]
xor eax, 0x56c3bf20
mov ah, byte [esp + 3]
lea edx, [esp + edi]
mov dh, byte [esp + 3]
jmp 0x6ad4bc
bsf edx, edi
not dx
bsf dx, dx
std
mov ah, 0x41
mov byte [esp + 4], bl
jmp 0x6ad3e0
mov di, word [esp + 0x18]
shl dh, cl
mov dx, bx
pop dword [esp + 6]
xchg edx, edi
rdtsc
jmp 0x6ad840
Function at 0x10001d67
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x100d4a58]
sub esp, 0x114
test eax, eax
jne 0x10001e85
push esi
push 0x10
pop esi
lea eax, [ebp - 0x114]
push eax
mov dword [0x100d4a58], esi
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x104]
sub eax, 0
je 0x10001e75
dec eax
je 0x10001e4b
mov ecx, dword [ebp - 0x110]
cmp ecx, 5
jae 0x10001dca
mov dword [0x100d4a58], esi
jmp 0x10001e7f
mov eax, dword [ebp - 0x10c]
jne 0x10001e0a
test eax, eax
jne 0x10001de5
mov dword [0x100d4a58], 0x20
jmp 0x10001e7f
cmp eax, 1
jne 0x10001df9
mov dword [0x100d4a58], 0x30
jmp 0x10001e7f
cmp eax, 2
jne 0x10001e30
mov dword [0x100d4a58], 0x40
jmp 0x10001e7f
cmp ecx, 6
jne 0x10001e30
test eax, eax
jne 0x10001e1f
mov dword [0x100d4a58], 0x80
jmp 0x10001e7f
cmp eax, 1
jne 0x10001e30
mov dword [0x100d4a58], 0x90
jmp 0x10001e7f
push eax
push ecx
push str.Qt:_Untested_Windows_version__d._d_detected_
call fcn.10001b90
add esp, 0xc
mov dword [0x100d4a58], 0xf0
jmp 0x10001e7f
cmp dword [ebp - 0x10c], 0x5a
jne 0x10001e60
mov dword [0x100d4a58], 4
jmp 0x10001e7f
xor eax, eax
cmp dword [ebp - 0x10c], 0xa
sete al
inc eax
inc eax
mov dword [0x100d4a58], eax
jmp 0x10001e7f
mov dword [0x100d4a58], 1
mov eax, dword [0x100d4a58]
pop esi
leave
ret

Function at 0x1000ff49
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 2
lea ecx, [ebp - 8]
push ecx
push 0xd
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1000ffba
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.10003c54
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], 0x100ac86c
call fcn.10002b85
or ecx, 0xffffffff
test al, al
mov eax, dword [ebp - 4]
je 0x1000ffab
lock xadd dword [eax], ecx
jne 0x1000ffa6
push dword [ebp - 4]
call fcn.10002b2d
pop ecx
xor eax, eax
inc eax
leave
ret
lock xadd dword [eax], ecx
jne 0x1000ffba
push dword [ebp - 4]
call fcn.10002b2d
pop ecx
xor eax, eax
leave
ret

Function at 0x1000ffbe
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 0xf
lea ecx, [ebp - 0x20]
push ecx
push 0x28
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1000ffee
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.10003c54
add esp, 0xc
jmp 0x1000fffc
mov eax, section..data
xor ecx, ecx
mov dword [esi], eax
inc ecx
lock xadd dword [eax], ecx
mov eax, esi
leave
ret
Function at 0x10010000
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 0xf
lea ecx, [ebp - 0x20]
push ecx
push 0x29
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10010030
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.10003c54
add esp, 0xc
jmp 0x1001003e
mov eax, section..data
xor ecx, ecx
mov dword [esi], eax
inc ecx
lock xadd dword [eax], ecx
mov eax, esi
leave
ret

Function at 0x10010095
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
mov eax, section..data
xor ecx, ecx
sub esp, 0x204
mov dword [esi], eax
inc ecx
lock xadd dword [eax], ecx
push 0xff
lea eax, [ebp - 0x204]
push eax
push 0x5a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100100f9
push 0xffffffffffffffff
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 4]
push eax
call fcn.10003c54
add esp, 0xc
push eax
mov ecx, esi
call fcn.10002b32
mov eax, dword [ebp - 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100100f9
push dword [ebp - 4]
call fcn.10002b2d
pop ecx
mov eax, esi
leave
ret

Function at 0x10011526
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edi, edi
push edi
push edi
push ebx
push eax
mov dword [ebp - 8], eax
call esi
add eax, eax
jne 0x1001156d
push ebx
push str.QLocale:_empty_windows_locale_info___d_
call fcn.10001b90
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
mov eax, section..data
xor edx, edx
mov dword [ecx], eax
inc edx
lock xadd dword [eax], edx
mov eax, ecx
jmp 0x10011608
push edi
push eax
lea ecx, [ebp - 4]
call fcn.1000d747
mov eax, dword [ebp - 4]
mov edi, dword [eax + 8]
lea ecx, [ebp - 4]
call fcn.100017ed
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
push eax
push ecx
push ebx
push dword [ebp - 8]
call esi
test eax, eax
jne 0x100115d5
push ebx
push str.QLocale:_empty_windows_locale_info___d_
call fcn.10001b90
mov esi, dword [ebp + 8]
pop ecx
pop ecx
mov eax, section..data
xor ecx, ecx
mov dword [esi], eax
inc ecx
lock xadd dword [eax], ecx
mov eax, dword [ebp - 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100115d1
push dword [ebp - 4]
call fcn.10001746
pop ecx
mov eax, esi
jmp 0x10011608
lea ecx, [ebp - 4]
call fcn.100017ed
mov eax, dword [ebp - 4]
push 0xffffffffffffffff
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.10003c54
mov eax, dword [ebp - 4]
add esp, 0xc
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10011605
push dword [ebp - 4]
call fcn.10001746
pop ecx
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret
Function at 0x1001160c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
xor ebx, ebx
mov eax, section..data
push esi
inc ebx
push edi
mov dword [ebp - 8], eax
mov ecx, eax
mov edx, ebx
lock xadd dword [ecx], edx
mov dword [ebp - 0xc], eax
mov ecx, ebx
lock xadd dword [eax], ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, 0xff
push edi
lea eax, [ebp - 0x214]
push eax
push ebx
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x10011684
push 0xffffffffffffffff
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 4]
push eax
call fcn.10003c54
add esp, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.10002b32
mov eax, dword [ebp - 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10011684
push dword [ebp - 4]
call fcn.10002b2d
pop ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0
je 0x100116ef
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
call fcn.10004139
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
lea ecx, [ebp - 0xd]
push ecx
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.1001047e
add esp, 0x10
cmp byte [ebp - 0xd], 0
je 0x100116da
mov ecx, dword [ebp - 0x14]
cmp byte [ecx], 0
jne 0x100116da
cmp eax, 0x814
jne 0x100116da
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 8]
mov dword [ebp - 0x14], 0x100ac94c
call fcn.10003ad2
mov eax, dword [ebp - 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100116ef
push dword [ebp - 4]
call fcn.10001746
pop ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 0
jne 0x10011741
push edi
lea eax, [ebp - 0x214]
push eax
push 0x59
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x1001173e
push 0xffffffffffffffff
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 4]
push eax
call fcn.10003c54
add esp, 0xc
push eax
lea ecx, [ebp - 8]
call fcn.10002b32
mov eax, dword [ebp - 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1001173e
push dword [ebp - 4]
call fcn.10002b2d
pop ecx
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov dword [esi], eax
lock xadd dword [eax], ebx
mov eax, dword [ebp - 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1001175f
push dword [ebp - 0xc]
call fcn.10002b2d
pop ecx
mov eax, dword [ebp - 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10011774
push dword [ebp - 8]
call fcn.10002b2d
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10020db3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
mov eax, section..data
xor ecx, ecx
push edi
mov dword [ebp - 4], eax
inc ecx
lock xadd dword [eax], ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp dword [eax + 8], 2
mov edi, 0x200
jl 0x10020e91
mov eax, dword [eax + 0xc]
mov ax, word [eax]
lea ecx, [ebp + 0xe]
mov word [ebp + 0xe], ax
call fcn.1000228a
test al, al
je 0x10020e91
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
cmp word [eax + 2], 0x3a
jne 0x10020e91
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.100056ea
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov cx, word [eax]
mov eax, 0xff
cmp ax, cx
sbb al, al
not al
and al, cl
movsx esi, al
mov eax, dword [ebp + 0xc]
sub esi, 0x40
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10020e47
push dword [ebp + 0xc]
call fcn.10002b2d
pop ecx
call fcn.1004b93b
cmp eax, esi
je 0x10020e91
push edi
lea eax, [ebp - 0x410]
push eax
push esi
call fcn.1004b8f1
push 0xffffffffffffffff
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.10003c54
add esp, 0x18
push eax
lea ecx, [ebp - 4]
call fcn.10002b32
mov eax, dword [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10020e91
push dword [ebp + 0xc]
call fcn.10002b2d
pop ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x10020f44
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x410]
push eax
push edi
call esi
test eax, eax
je 0x10020f44
cmp eax, edi
jbe 0x10020f11
push ebx
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10047f66
pop ecx
mov ebx, eax
push ebx
push edi
call esi
test eax, eax
je 0x10020f07
push 0xffffffffffffffff
lea eax, [ebp + 0xc]
push ebx
push eax
call fcn.10003c54
add esp, 0xc
push eax
lea ecx, [ebp - 4]
call fcn.10002b32
mov eax, dword [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10020f07
push dword [ebp + 0xc]
call fcn.10002b2d
pop ecx
push ebx
call fcn.10047f5b
pop ecx
pop ebx
jmp 0x10020f44
push 0xffffffffffffffff
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.10003c54
add esp, 0xc
push eax
lea ecx, [ebp - 4]
call fcn.10002b32
mov eax, dword [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10020f44
push dword [ebp + 0xc]
call fcn.10002b2d
pop ecx
mov esi, dword [ebp - 4]
cmp dword [esi + 8], 2
jl 0x10020f95
lea eax, [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0xe]
push eax
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], 1
call fcn.10006dbc
cmp word [eax], 0x3a
jne 0x10020f95
mov eax, dword [esi + 0xc]
mov ax, word [eax]
and dword [ebp - 8], 0
mov word [ebp + 0xe], ax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xe]
push eax
lea ecx, [ebp + 0xe]
call fcn.1000243d
push eax
lea ecx, [ebp - 0xc]
call fcn.10005ac5
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.10006e62
mov eax, dword [ebp - 4]
pop ecx
pop ecx
pop edi
or ecx, 0xffffffff
pop esi
lock xadd dword [eax], ecx
jne 0x10020fba
push dword [ebp - 4]
call fcn.10002b2d
pop ecx
mov eax, dword [ebp + 8]
leave
ret
Function at 0x100210cd
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov byte [ebp - 1], 0
mov dword [ebp - 0x10], eax
inc ecx
lock xadd dword [eax], ecx
mov edi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [ebp - 8]
push eax
push 0x100c4c5c
push 1
push 0
mov ebx, 0x100c4c7c
push ebx
mov byte [ebp + 0xb], 0
call edi
cmp eax, 0x800401f0
jne 0x1002112d
push 0
mov byte [ebp + 0xb], 1
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 8]
push eax
push 0x100c4c5c
push 1
push 0
push ebx
call edi
or ebx, 0xffffffff
test eax, eax
jl 0x10021231
push 1
push ecx
mov eax, esp
push 0x5c
pop ecx
push ecx
mov word [eax], cx
mov eax, esp
push 0x2f
pop ecx
mov word [eax], cx
mov eax, dword [esi]
push 3
lea ecx, [ebp - 0xc]
push ecx
mov ecx, esi
call dword [eax + 0x50]
mov ecx, eax
call fcn.10005041
mov ecx, dword [ebp - 8]
mov edi, dword [ecx]
mov ecx, eax
call fcn.100043cf
push eax
push dword [ebp - 8]
call dword [edi + 0x50]
mov edi, eax
mov eax, dword [ebp - 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x10021189
push dword [ebp - 0xc]
call fcn.10002b2d
pop ecx
test edi, edi
jl 0x10021222
push 1
push ecx
mov eax, esp
push 0x5c
pop ecx
push ecx
mov word [eax], cx
mov eax, esp
push 0x2f
pop ecx
mov word [eax], cx
mov eax, dword [esi]
push 4
lea ecx, [ebp - 0xc]
push ecx
mov ecx, esi
call dword [eax + 0x50]
mov ecx, eax
call fcn.10005041
mov ecx, dword [ebp - 8]
mov edi, dword [ecx]
mov ecx, eax
call fcn.100043cf
push eax
push dword [ebp - 8]
call dword [edi + 0x24]
mov edi, eax
mov eax, dword [ebp - 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x100211e2
push dword [ebp - 0xc]
call fcn.10002b2d
pop ecx
test edi, edi
jl 0x10021222
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push 0x100c4c6c
push eax
call dword [ecx]
test eax, eax
jl 0x10021222
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
push 1
lea ecx, [ebp - 0x10]
call fcn.100043cf
push eax
push dword [ebp - 0xc]
call dword [edi + 0x18]
test eax, eax
jl 0x10021219
mov byte [ebp - 1], 1
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp - 1], 0
jne 0x1002125b
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.1000187c
pop ecx
pop ecx
push eax
push 0xa
mov ecx, esi
call fcn.1002ad97
mov eax, dword [ebp - 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x1002125b
push dword [ebp - 0xc]
call fcn.10002b2d
pop ecx
cmp byte [ebp + 0xb], 0
je 0x10021267
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x10]
lock xadd dword [eax], ebx
jne 0x10021279
push dword [ebp - 0x10]
call fcn.10002b2d
pop ecx
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10021786
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
push edi
mov edi, dword [esi + 0xc]
or ebx, 0xffffffff
mov dword [ebp - 0xc], edi
test eax, eax
jne 0x1002184e
cmp dword [esi + 0x34], ebx
jne 0x1002184a
cmp dword [esi + 0x20], ebx
je 0x10021894
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], eax
xor ebx, ebx
cmp dword [ebp - 4], 0x2000000
lea eax, [ebp - 4]
jb 0x100217d2
mov eax, 0x100ad9f8
mov eax, dword [eax]
push 0
lea ecx, [ebp - 8]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10021810
mov eax, dword [ebp - 8]
test eax, eax
je 0x10021809
add edi, eax
adc ebx, 0
sub dword [ebp - 4], eax
cmp ebx, dword [ebp + 0x10]
jg 0x10021809
jl 0x100217c1
cmp edi, dword [ebp + 0xc]
jb 0x100217c1
mov eax, edi
jmp 0x10021896
mov eax, edi
or eax, ebx
jne 0x10021809
or esi, 0xffffffff
lea eax, [ebp + 8]
push esi
push eax
call fcn.1000187c
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
push eax
push 1
call fcn.1002ad97
mov eax, dword [ebp + 8]
mov ecx, esi
lock xadd dword [eax], ecx
jne 0x10021844
push dword [ebp + 8]
call fcn.10002b2d
pop ecx
mov eax, esi
mov edx, esi
jmp 0x100218aa
test eax, eax
je 0x1002189a
call fcn.10020d6c
test al, al
je 0x1002189a
push dword [esi + 0x1c]
call fcn.1004bd0e
pop ecx
test eax, eax
je 0x1002189a
call fcn.1004bbaf
push dword [eax]
lea eax, [ebp + 8]
push eax
call fcn.1000187c
pop ecx
pop ecx
push eax
push 1
mov ecx, edi
call fcn.1002ad97
mov eax, dword [ebp + 8]
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x10021894
push dword [ebp + 8]
call fcn.10002b2d
pop ecx
mov eax, ebx
mov edx, ebx
jmp 0x100218aa
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1002feaf
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100218b1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0xc]
xor ebx, ebx
mov dword [ebp - 0xc], eax
cmp dword [edi + 0x1c], ebx
jne 0x10021984
or eax, 0xffffffff
cmp dword [edi + 0x34], eax
jne 0x10021984
cmp dword [edi + 0x20], eax
jne 0x100218e5
mov edx, eax
jmp 0x10021992
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
xor esi, esi
mov dword [ebp - 8], eax
cmp eax, 0x2000000
lea eax, [ebp - 8]
jb 0x10021902
mov eax, 0x100ad9f8
mov eax, dword [eax]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10021944
xor eax, eax
cmp dword [ebp - 4], eax
je 0x1002197e
add esi, dword [ebp - 4]
mov ecx, dword [ebp - 4]
adc ebx, eax
sub dword [ebp - 0x14], ecx
sbb dword [ebp - 0x10], eax
cmp ebx, dword [ebp + 0x10]
jg 0x1002197e
jl 0x1002193f
cmp esi, dword [ebp + 0xc]
jae 0x1002197e
mov eax, dword [ebp - 0x14]
jmp 0x100218f0
mov eax, esi
or eax, ebx
jne 0x1002197e
or esi, 0xffffffff
lea eax, [ebp + 8]
push esi
push eax
call fcn.1000187c
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
push eax
push 2
call fcn.1002ad97
mov eax, dword [ebp + 8]
mov ecx, esi
lock xadd dword [eax], ecx
jne 0x10021978
push dword [ebp + 8]
call fcn.10002b2d
pop ecx
mov eax, esi
mov edx, esi
jmp 0x10021992
mov eax, esi
mov edx, ebx
jmp 0x10021992
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1002fba9
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100219f1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x100d4bfc], bl
jne 0x10021b65
push 0x100d4bfc
call fcn.10031810
pop ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.100085f8
cmp byte [0x100d4bfc], bl
je 0x10021a2f
lea ecx, [ebp - 0x10]
call fcn.10008aec
jmp 0x10021b65
push esi
push edi
push 1
push str.advapi32
mov byte [0x100d4bfc], 1
call fcn.100397eb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x10021a86
push str.GetNamedSecurityInfoW
push edi
call esi
push str.LookupAccountSidW
push edi
mov dword [0x100d4be0], eax
call esi
push str.BuildTrusteeWithSidW
push edi
mov dword [0x100d4be4], eax
call esi
push str.GetEffectiveRightsFromAclW
push edi
mov dword [0x100d4be8], eax
call esi
mov dword [0x100d4bec], eax
cmp dword [0x100d4be8], ebx
je 0x10021b3c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 4]
push ecx
push 8
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10021adc
lea eax, [ebp - 0xc]
push eax
push 8
lea eax, [ebp - 0x18]
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x10021ad3
push dword [ebp - 0x18]
push 0x100d4bc8
call dword [0x100d4be8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.AllocateAndInitializeSid
push edi
call esi
push str.FreeSid
push edi
mov dword [ebp - 0xc], eax
call esi
mov edi, eax
cmp dword [ebp - 0xc], ebx
je 0x10021b3c
cmp edi, ebx
je 0x10021b3c
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 1
mov dword [ebp - 8], ebx
call dword [ebp - 0xc]
test eax, eax
je 0x10021b37
push dword [ebp - 8]
push 0x100d4bb4
call dword [0x100d4be8]
push dword [ebp - 8]
call edi
push 1
push str.userenv
call fcn.100397eb
pop ecx
pop ecx
cmp eax, ebx
je 0x10021b5b
push str.GetUserProfileDirectoryW
push eax
call esi
mov dword [0x100d4bf0], eax
lea ecx, [ebp - 0x10]
call fcn.10008aec
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1002211c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
add eax, 0x10
push eax
lea eax, [ebp - 4]
push eax
call fcn.10021e7c
pop ecx
pop ecx
mov ecx, eax
call fcn.100043cf
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov eax, dword [ebp - 4]
setne bl
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1002215e
push dword [ebp - 4]
call fcn.10002b2d
pop ecx
test bl, bl
jne 0x1002218e
lea eax, [ebp - 4]
push 0xffffffffffffffff
push eax
call fcn.1000187c
pop ecx
pop ecx
push eax
push 9
mov ecx, esi
call fcn.1002ad97
mov eax, dword [ebp - 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1002218e
push dword [ebp - 4]
call fcn.10002b2d
pop ecx
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x10022194
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 1
push dword [ebp + 8]
lea eax, [ebp - 4]
mov edi, ecx
mov esi, dword [edi + 4]
push eax
call fcn.10021e7c
pop ecx
pop ecx
mov ecx, eax
call fcn.100043cf
push eax
add esi, 0x10
lea eax, [ebp + 8]
push esi
push eax
call fcn.10021e7c
pop ecx
pop ecx
mov ecx, eax
call fcn.100043cf
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
mov eax, dword [ebp + 8]
setne bl
or esi, 0xffffffff
mov ecx, esi
lock xadd dword [eax], ecx
jne 0x100221f1
push dword [ebp + 8]
call fcn.10002b2d
pop ecx
mov eax, dword [ebp - 4]
mov ecx, esi
lock xadd dword [eax], ecx
jne 0x10022205
push dword [ebp - 4]
call fcn.10002b2d
pop ecx
test bl, bl
jne 0x10022231
lea eax, [ebp + 8]
push esi
push eax
call fcn.1000187c
pop ecx
pop ecx
push eax
push 0xe
mov ecx, edi
call fcn.1002ad97
mov eax, dword [ebp + 8]
lock xadd dword [eax], esi
jne 0x10022231
push dword [ebp + 8]
call fcn.10002b2d
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4

Function at 0x1002223a
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 4]
mov edi, ecx
mov esi, dword [edi + 4]
push eax
call fcn.10021e7c
pop ecx
pop ecx
mov ecx, eax
call fcn.100043cf
push eax
add esi, 0x10
lea eax, [ebp + 8]
push esi
push eax
call fcn.10021e7c
pop ecx
pop ecx
mov ecx, eax
call fcn.100043cf
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
mov eax, dword [ebp + 8]
setne bl
or esi, 0xffffffff
mov ecx, esi
lock xadd dword [eax], ecx
jne 0x10022295
push dword [ebp + 8]
call fcn.10002b2d
pop ecx
mov eax, dword [ebp - 4]
mov ecx, esi
lock xadd dword [eax], ecx
jne 0x100222a9
push dword [ebp - 4]
call fcn.10002b2d
pop ecx
test bl, bl
jne 0x100222d5
lea eax, [ebp + 8]
push esi
push eax
call fcn.1000187c
pop ecx
pop ecx
push eax
push 0xa
mov ecx, edi
call fcn.1002ad97
mov eax, dword [ebp + 8]
lock xadd dword [eax], esi
jne 0x100222d5
push dword [ebp + 8]
call fcn.10002b2d
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4