joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439730
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x18
push edi
mov edi, dword [ebp + 8]
cmp byte [edi], 0
je 0x439765
cmp byte [edi + 1], 0
je 0x43975e
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x43976b
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x14]
mov dword [edi + 0x18], eax
cmp byte [edi], 0
push ebx
je 0x439790
cmp byte [edi + 1], 0
je 0x439789
push 1
push 0
push 0
push dword [edi + 4]
call ecx
mov ebx, eax
sub ebx, dword [edi + 0xc]
jmp 0x439793
xor ebx, ebx
mov dword [ebp - 4], ebx
jmp 0x4397a2
mov ebx, dword [edi + 0x18]
mov eax, 0xffff
mov dword [ebp - 4], ebx
mov dword [ebp + 8], eax
cmp ebx, eax
jae 0x4397a5
mov dword [ebp + 8], ebx
push esi
push 0x404
call fcn.00470108
mov esi, eax
add esp, 4
test esi, esi
jne 0x4397c0
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov eax, 4
mov dword [ebp - 0xc], 0
cmp ecx, eax
jbe 0x4398c0
add eax, 0x400
cmp eax, ecx
mov edx, eax
mov eax, 0x404
cmova edx, ecx
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x18], edx
sub ebx, ecx
mov dword [ebp - 0x14], ecx
cmp ebx, 0x404
cmova ebx, eax
cmp byte [edi], 0
je 0x439821
cmp byte [edi + 1], 0
je 0x4398c0
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x439824
mov dword [edi + 0x18], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 8], ebx
je 0x43984c
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x439847
mov byte [edi + 8], 1
mov eax, dword [ebp - 0x10]
jmp 0x439875
mov edx, dword [edi + 0x18]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x14]
jbe 0x43985f
mov ecx, dword [edi + 0x14]
sub ecx, edx
mov dword [ebp - 8], ecx
push ecx
mov ecx, dword [edi + 0x10]
add ecx, edx
push ecx
push esi
call fcn.0046f190
mov eax, dword [ebp - 8]
add esp, 0xc
add dword [edi + 0x18], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x4398c0
lea eax, [ebx - 3]
test eax, eax
jle 0x4398af
dec eax
cmp byte [eax + esi], 0x50
jne 0x4398a1
cmp byte [eax + esi + 1], 0x4b
jne 0x4398a1
cmp byte [eax + esi + 2], 5
jne 0x4398a1
cmp byte [eax + esi + 3], 6
je 0x4398a7
test eax, eax
jg 0x439885
jmp 0x4398af
add eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
jne 0x4398c0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 4]
cmp eax, ecx
jb 0x4397d7
push esi
call fcn.0046ec03
mov eax, dword [ebp - 0xc]
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x43aad0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x120]
push esi
push edi
push 0x11c
xor edi, edi
push edi
push eax
call fcn.0046f7e0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x120]
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
push eax
call esi
test eax, eax
jne 0x43ab45
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call esi
test eax, eax
jne 0x43ab45
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ecfa
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
test esi, 0x80000
je 0x43ab69
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jb 0x43ab64
cmp dword [ebp - 0x118], 1
jae 0x43ab69
cmp eax, 6
jbe 0x43ab91
push str.User32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43ab91
push str.AnimateWindow
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43ab91
push esi
push dword [ebp + 0xc]
push ebx
call eax
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ecfa
mov esp, ebp
pop ebp
ret

Function at 0x43ae00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x493b48
push 0x83
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x43ae46
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x43ae46
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
test ecx, ecx
jne 0x43ae5a
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.CheckDataRes____No_DATA_Resource_found_
call fcn.00469390
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp dword [ebp + 0x10], 0
je 0x43ae67
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.CheckDataRes____DATA_Resource_found_
call fcn.00469390
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x43b250
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0046f7e0
add esp, 0xc
test ebx, ebx
jle 0x43b367
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0046fe12
add esp, 0xc
cmp word [ebp + ebx*2 - 0x20e], 0x5c
jne 0x43b2d9
lea eax, [ebx*2 - 2]
cmp eax, 0x208
jae 0x43b37a
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
cmp word [ebp - 0x20c], 0
jne 0x43b2f6
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ecfa
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43b367
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.00472d3b
mov edi, eax
add esp, 8
test edi, edi
je 0x43b341
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.0043b250
mov esi, eax
add esp, 4
mov eax, 0x5c
mov word [edi], ax
test esi, esi
je 0x43b367
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
lea eax, [ebp - 0x20c]
push esi
push eax
push str.CreateAllDirectory__s____d
call fcn.00469390
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ecfa
mov esp, ebp
pop ebp
ret
call fcn.0046ffa6
int3

Function at 0x43b380
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ebx
push edi
mov edi, 1
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x43b3a3
push 0x103
mov byte [ebp - 0x108], al
sub esi, ecx
lea eax, [ebp - 0x107]
push 0
push eax
call fcn.0046f7e0
add esp, 0xc
test esi, esi
je 0x43b475
push ebx
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0046fdbd
add esp, 0xc
cmp byte [ebp + esi - 0x109], 0x5c
jne 0x43b404
dec esi
cmp esi, 0x104
jae 0x43b488
mov byte [ebp + esi - 0x108], 0
cmp byte [ebp - 0x108], 0
jne 0x43b420
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ecfa
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43b475
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.00472b20
mov esi, eax
add esp, 8
test esi, esi
je 0x43b464
lea eax, [ebp - 0x108]
mov byte [esi], 0
push eax
call fcn.0043b380
mov edi, eax
mov byte [esi], 0x5c
add esp, 4
test edi, edi
je 0x43b475
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ecfa
mov esp, ebp
pop ebp
ret
call fcn.0046ffa6
int3
Function at 0x43b490
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 8]
push 0
push 0
or eax, 0x8000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x43b4ec
lea eax, [ebp - 0x20c]
push eax
push str.CreateFreeDirectory____SHGetFolderPath__s__failed_
call fcn.00469390
add esp, 8
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ecfa
mov esp, ebp
pop ebp
ret
cmp word [esi], 0x5c
je 0x43b504
push 0x491588
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x5c
push esi
call fcn.00472c57
add esp, 8
test eax, eax
je 0x43b54d
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.00472d3b
mov esi, eax
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.0043ba90
mov eax, 0x5c
add esp, 0xc
mov word [esi], ax
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x43b56d
push str.CreateFreeDirectory____CreateDirectory_failed_
call fcn.004696f0
add esp, 4
push 3
lea eax, [ebp - 0x20c]
push 0x10000000
push eax
call fcn.0043a8d0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop esi
call fcn.0046ecfa
mov esp, ebp
pop ebp
ret
Function at 0x43b990
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [str.XY1F68TI]
mov ax, word [0x492ba4]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [ebp - 0x18]
mov dword [ebp - 0x1c], edi
lea ecx, [esi + 2]
movdqu xmmword [ebp - 0x18], xmm0
mov word [ebp - 8], ax
lea esp, [esp]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x43b9d0
sub esi, ecx
mov ecx, edi
sar esi, 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43b9e4
sub ecx, edx
sar ecx, 1
push ecx
push edi
push dword [ebp + 0x10]
push ebx
call fcn.004703d1
mov ecx, ebx
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43ba06
sub ecx, edx
xor edi, edi
sar ecx, 1
xor edx, edx
cmp dword [ebp + 0x14], edi
je 0x43ba42
test ecx, ecx
je 0x43ba64
mov eax, 0x536
add ax, word [ebx + edi*2]
xor ax, word [ebp + edx*2 - 0x18]
inc edx
cmp edx, esi
mov word [ebx + edi*2], ax
sbb eax, eax
inc edi
and edx, eax
cmp edi, ecx
jb 0x43ba22
jmp 0x43ba64
test ecx, ecx
je 0x43ba64
mov ax, word [ebp + edx*2 - 0x18]
inc edx
xor word [ebx + edi*2], ax
cmp edx, esi
sbb eax, eax
and edx, eax
mov eax, 0xfaca
add word [ebx + edi*2], ax
inc edi
cmp edi, ecx
jb 0x43ba46
push 1
push ebx
push dword [ebp - 0x1c]
push str.CryptPassword__s___s____d
call fcn.00469390
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.0046ecfa
mov esp, ebp
pop ebp
ret

Function at 0x43ba90
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test ebx, ebx
jle 0x43bb4c
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, eax
cmp word [esi + ebx*2 - 2], 0x5c
jne 0x43bade
xor eax, eax
mov word [esi + ebx*2 - 2], ax
cmp word [esi], 0
jne 0x43baf7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ecfa
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43bb4e
push 0x5c
push esi
call fcn.00472d3b
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x43bb30
xor eax, eax
push esi
mov word [ebx], ax
call fcn.0043ba90
mov edi, eax
add esp, 4
mov eax, 0x5c
mov word [ebx], ax
test edi, edi
je 0x43bb4e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ecfa
mov esp, ebp
pop ebp
ret
xor edi, edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ecfa
mov esp, ebp
pop ebp
ret
Function at 0x43bd10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push dword [ebp + 0x10]
mov dword [ebp - 8], ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004558d0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x43be30
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x43be30
push esi
mov esi, dword [ebp - 8]
push esi
push dword [ebp + 0x14]
mov dword [ebp - 4], ebx
push str.ExtractRes__s___LgData_d_oct
call fcn.00469390
add esp, 0xc
cmp esi, 0x100000
jbe 0x43be11
mov dword [ebp - 0x10], ebx
mov eax, 0x100000
test esi, esi
je 0x43be26
cmp dword [0x4b552c], 0
jne 0x43be26
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
push ebx
push dword [ebp - 4]
push str.ExtractRes_____WriteFile__d____d
call fcn.00469390
mov eax, dword [ebp - 0x10]
add esp, 0xc
add eax, dword [ebp - 4]
mov ecx, 0x4af010
mov dword [ebp - 0x10], eax
push 0
push eax
call fcn.004293d0
cmp esi, 0x100000
jbe 0x43be26
sub esi, 0x100000
mov ecx, 0x100000
cmp esi, 0x100000
mov eax, esi
cmova eax, ecx
add edi, dword [ebp - 4]
test esi, esi
jne 0x43bd93
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43be40
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x464], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0046f7e0
add esp, 0xc
lea eax, [ebp - 0x20c]
xor edi, edi
push 0x492fc0
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x460], eax
test eax, eax
je 0x43bfd9
cmp eax, 0xffffffff
je 0x43bfd9
jmp 0x43bed0
mov cx, word [ebp - 0x42e]
mov ax, word [ebp - 0x430]
test cx, cx
jne 0x43bee9
cmp ax, 0x2e
je 0x43bf61
cmp word [ebp - 0x42c], 0
jne 0x43befe
cmp ax, 0x2e
jne 0x43befe
cmp cx, ax
je 0x43bf61
lea eax, [ebp - 0x430]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test byte [ebp - 0x45c], 0x10
je 0x43bf36
push dword [ebp - 0x464]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0043be40
add esp, 0xc
mov edi, eax
jmp 0x43bf4a
lea eax, [ebp - 0x430]
push esi
push eax
call fcn.0047064b
add esp, 8
test eax, eax
je 0x43bf9b
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
push ebx
push str.FindMyFile__s___s___File_s_d
call fcn.00469390
add esp, 0x14
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x43bed0
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ecfa
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
mov edi, 1
push eax
push 0x104
push dword [ebp - 0x464]
call fcn.0046fe12
add esp, 0xc
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ecfa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ecfa
mov esp, ebp
pop ebp
ret
Function at 0x43c090
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
mov dword [ebp - 4], ebx
test eax, eax
je 0x43c195
push 1
mov dword [eax], ebx
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x43c0d3
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x43c0ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x43c0bb
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x43c153
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
test eax, eax
je 0x43c153
mov edi, eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x43c108
sub edi, ecx
je 0x43c146
lea eax, [edi + 1]
push eax
call fcn.00470108
mov ecx, dword [ebp + 0xc]
add esp, 4
mov dword [ecx], eax
test eax, eax
je 0x43c141
push dword [ebp - 8]
lea ecx, [edi + 1]
push ecx
push eax
call fcn.0046fdbd
add esp, 0xc
mov dword [ebp - 4], 1
jmp 0x43c146
mov esi, 8
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
jne 0x43c157
call ebx
mov esi, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
jne 0x43c165
call ebx
mov esi, eax
mov ebx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x43c171
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x43c17a
mov dword [eax], esi
test esi, esi
je 0x43c18c
push esi
push str.GetClipboardText___returns_with_the_error_code__d
call fcn.00469390
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 0x57
jmp 0x43c168
Function at 0x43cdf0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x12c], edi
test edi, edi
jne 0x43ce2e
pop edi
pop esi
mov eax, 0x80070057
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ecfa
mov esp, ebp
pop ebp
ret
push pe_nt_image_headers32
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], 0x11c
push 0
push eax
call fcn.0046f7e0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
mov eax, 0x3000
mov dword [ebp - 0x130], eax
jb 0x43cf79
push ebx
push 0
push 0x1fffff
mov dword [ebp - 0x124], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x43cf8e
lea eax, [ebp - 0x124]
push eax
push 0xf01ff
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x43cf68
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], esi
push eax
push 0
push 0
push 0x19
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x43cf5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x43cf5c
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x43cf5c
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x43cf56
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x128]
push edi
push 0x19
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x43cf46
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
test eax, eax
je 0x43cf41
movzx eax, byte [eax]
dec eax
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov eax, dword [eax]
mov dword [ebp - 0x130], eax
jmp 0x43cf46
mov esi, 0x8000ffff
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [ebp - 0x12c]
push dword [ebp - 0x124]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
js 0x43cf7b
mov eax, dword [ebp - 0x130]
mov dword [edi], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ecfa
mov esp, ebp
pop ebp
ret
mov eax, 0x3000
jmp 0x43cf79
Function at 0x43d630
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], 0x11c
push 0
push eax
call fcn.0046f7e0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp + 8], 0
je 0x43d698
cmp dword [ebp - 0x11c], 6
jne 0x43d688
cmp dword [ebp - 0x118], 1
je 0x43d6ae
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ecfa
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x11c]
cmp eax, 6
ja 0x43d6ae
jne 0x43d688
cmp dword [ebp - 0x118], 0
jbe 0x43d688
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.0046ecfa
mov esp, ebp
pop ebp
ret

Function at 0x43d6d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], 0x11c
push 0
push eax
call fcn.0046f7e0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp + 8], 0
je 0x43d74b
cmp dword [ebp - 0x11c], 6
jne 0x43d73b
cmp dword [ebp - 0x118], 0
jne 0x43d73b
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ecfa
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ecfa
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x11c], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.0046ecfa
mov esp, ebp
pop ebp
ret

Function at 0x43d770
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x43d7c9
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x43d7d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x43d7e6
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x10], 0
test esi, esi
jne 0x43d80c
push dword [ebp - 0x14]
push str.IsRunAsAdmin_____d
call fcn.004696f0
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, dword [ebp - 0x14]
xor ecx, ebp
pop esi
call fcn.0046ecfa
mov esp, ebp
pop ebp
ret
push 0x4a941c
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
call fcn.0046ed09
int3