joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d630
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0096
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x53f00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x40d6dc
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x40d6dc
call fcn.0040ccf0
mov edi, eax
jmp 0x40d7fb
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40d6ff
call fcn.0040ccf0
jmp 0x40d7ee
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x40d71d
call fcn.0040ccf0
jmp 0x40d7ee
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x40d73e
mov edi, 0x8007000e
jmp 0x40d7f0
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x40d834
jb 0x40d75c
cmp eax, 0xffffffff
ja 0x40d834
cmp eax, 0x400
jbe 0x40d771
push eax
lea ecx, [ebp - 0x418]
call fcn.004102e0
jmp 0x40d797
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x40d797
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x40d7ae
mov edi, 0x8007000e
jmp 0x40d7f0
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40d7ce
call fcn.0040ccf0
jmp 0x40d7ee
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040e400
mov edi, eax
test esi, esi
je 0x40d7fb
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40d814
lea ecx, [ebp - 0x418]
call fcn.004102d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c9ebd
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.0040cc00
int3
Function at 0x411290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
movzx eax, dx
push ebx
push esi
push edi
push 0x519f84
mov edi, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4113aa
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x4113aa
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4113aa
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4113aa
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4113aa
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4113a3
push esi
push ebx
push eax
call fcn.004cc710
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4113a3
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4113a3
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x41136c
lea eax, [ebp - 8]
mov dword [esi], vtable.Gdiplus::Bitmap.0
push eax
push ebx
mov dword [ebp - 8], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov dword [esi + 8], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
jmp 0x41136e
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
je 0x41139a
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
je 0x41139a
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416ba0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x53f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, edx
push 0
push eax
call fcn.004ccc90
add esp, 0xc
mov esi, 0x80000001
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x416c05
lea eax, [ebp - 0x214]
push eax
mov eax, dword [ebp + 8]
or eax, 0x20019
push eax
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x416c16
cmp eax, 2
jne 0x416cb8
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004c9ebd
leave
ret
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
lea esi, [edi + eax*2]
pop eax
cmp word [esi - 2], ax
je 0x416c5d
mov word [esi], ax
add esi, 2
xor eax, eax
mov word [esi], ax
jmp 0x416c5d
lea eax, [ebp - 0x20c]
mov edx, 0x208
push eax
mov ecx, esi
call fcn.00416844
push dword [ebp + 8]
mov edx, edi
mov ecx, 0x80000001
call fcn.00416ba0
pop ecx
test eax, eax
je 0x416c92
xor ecx, ecx
mov dword [ebp - 0x210], 0x104
lea eax, [ebp - 0x21c]
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push ecx
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x416c36
xor eax, eax
mov word [esi - 2], ax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x416c05
xor eax, eax
jmp 0x416c08
Function at 0x416dab
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x4f0a30
call fcn.004ec5f9
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov eax, edi
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], ebx
jb 0x416dc9
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp + 8], ecx
jne 0x416dda
xor al, al
jmp 0x416ede
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebp + 0x13]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp + 0x13], bl
push ecx
push 0x200
call fcn.00417015
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x416e14
mov eax, dword [ebx]
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x14]
test esi, esi
jne 0x416e3f
test eax, eax
jne 0x416e3f
mov bl, 1
jmp 0x416ed4
cmp eax, 1
je 0x416e53
cmp eax, 2
je 0x416e53
test eax, eax
mov ecx, 0x490
cmovne esi, ecx
cmp esi, 0xea
jne 0x416ea1
mov ecx, dword [ebp - 0x10]
cmp ecx, 1
jbe 0x416ecf
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x13]
push eax
lea eax, [ecx + 8]
mov byte [ebp + 0x13], 0
push edx
push eax
mov ecx, edx
call fcn.00417015
cmp dword [ebx + 0x14], 8
jb 0x416e88
mov ebx, dword [ebx]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
push 0
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x416ed1
lea eax, [ebp + 0xb]
mov byte [ebp + 0xb], 0
push eax
lea ecx, [ebp - 0x20]
call fcn.00416f69
lea eax, [ebp + 0xb]
mov byte [ebp + 0xb], 0
push eax
lea ecx, [ebp - 0x20]
call fcn.00416f69
push dword [ebp - 0x20]
mov ecx, edi
call fcn.00408e00
test esi, esi
sete bl
lea ecx, [ebp - 0x20]
call fcn.00416fb1
mov al, bl
call fcn.004ec5d3
ret 0xc
Function at 0x41e093
Capabilities:
Read .ini file

Disassembly:
push 0x2bc
mov eax, 0x4f1f80
call fcn.004ec62d
mov esi, ecx
mov dword [ebp - 0x2c8], esi
and dword [ebp - 0x224], 0
xor eax, eax
mov dword [ebp - 0x2c8], esi
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
and dword [ebp - 4], eax
lea ecx, [ebp - 0x2c4]
call fcn.0041e03c
push str.config.ini
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00408db0
push eax
lea ecx, [ebp - 0x24c]
call fcn.00408eb0
lea ecx, [ebp - 0x2c4]
mov byte [ebp - 4], 3
call fcn.00409610
lea ecx, [ebp - 0x24c]
call fcn.00427f70
mov ebx, 0x513c80
test al, al
je 0x41e25f
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004ccc90
add esp, 0xc
lea eax, [ebp - 0x24c]
cmp dword [ebp - 0x238], 8
cmovae eax, dword [ebp - 0x24c]
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push ebx
push str.Version
push str.Upgrade
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x21c], 0
je 0x41e25f
lea ecx, [ebp - 0x264]
call fcn.0041dfe5
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 4
push ecx
mov ecx, eax
call fcn.00408db0
push eax
lea ecx, [ebp - 0x27c]
call fcn.00408eb0
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x234]
call fcn.00408e70
lea ecx, [ebp - 0x27c]
call fcn.00409610
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 3
call fcn.00409610
lea ecx, [ebp - 0x234]
call fcn.00428080
test al, al
je 0x41e25f
push str.HaoZip.dll
lea ecx, [ebp - 0x264]
call fcn.00408ef0
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.0042beb0
add esp, 0xc
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 7
call fcn.00409610
lea ecx, [ebp - 0x27c]
call fcn.00427f70
test al, al
je 0x41e254
push 0x10
pop edx
lea ecx, [ebp - 0x234]
call fcn.0042bb10
lea eax, [ebp - 0x234]
mov ecx, esi
push eax
call fcn.00408eb0
lea ecx, [ebp - 0x27c]
call fcn.00409610
jmp 0x41e364
lea ecx, [ebp - 0x27c]
call fcn.00409610
lea ecx, [ebp - 0x294]
call fcn.0044dca0
push 0x514618
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 8
call fcn.00408ef0
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x294]
call fcn.0044dcf0
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 8
call fcn.00409610
lea eax, [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x294]
call fcn.0044fac0
push eax
lea ecx, [ebp - 0x234]
call fcn.00408e70
lea ecx, [ebp - 0x2c4]
call fcn.00409610
lea ecx, [ebp - 0x234]
call fcn.00428080
test al, al
je 0x41e2f9
push 0x10
pop edx
lea ecx, [ebp - 0x234]
call fcn.0042bb10
lea eax, [ebp - 0x234]
mov ecx, esi
push eax
call fcn.00408eb0
jmp 0x41e359
lea ecx, [ebp - 0x2ac]
call fcn.0041db42
lea edx, [ebp - 0x234]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2ac]
call fcn.00438aa0
lea ecx, [ebp - 0x234]
call fcn.00428080
test al, al
je 0x41e346
push 0x10
pop edx
lea ecx, [ebp - 0x234]
call fcn.0042bb10
lea eax, [ebp - 0x234]
mov ecx, esi
push eax
call fcn.00408eb0
jmp 0x41e34e
push ebx
mov ecx, esi
call fcn.00408ef0
lea ecx, [ebp - 0x2ac]
call fcn.00409610
lea ecx, [ebp - 0x294]
call fcn.00429ef0
lea ecx, [ebp - 0x24c]
call fcn.00409610
lea ecx, [ebp - 0x234]
call fcn.00409610
mov eax, esi
call fcn.004ec5e8
ret
Function at 0x41e893
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x83c
mov eax, dword [0x53f00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x830], ecx
mov eax, dword [ebp - 0x830]
movzx eax, byte [eax + 4]
test eax, eax
je 0x41e8bf
jmp 0x41ea66
mov eax, dword [ebp - 0x830]
mov byte [eax + 4], 1
push 0x410
push 0
lea eax, [ebp - 0x414]
push eax
call fcn.004ccc90
add esp, 0xc
and dword [ebp - 0x82c], 0
lea eax, [ebp - 0x82c]
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x41e958
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x82c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x41e929
cmp dword [ebp - 0x82c], 0
je 0x41e927
push dword [ebp - 0x82c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x41e958
push 2
pop eax
imul eax, eax, 0
mov dword [ebp - 0x834], eax
cmp dword [ebp - 0x834], 0x410
jae 0x41e943
jmp 0x41e948
call fcn.004ca1da
xor eax, eax
mov ecx, dword [ebp - 0x834]
mov word [ebp + ecx - 0x414], ax
push 0x51b024
lea eax, [ebp - 0x414]
push eax
call fcn.004d270f
pop ecx
pop ecx
push 0x514618
lea eax, [ebp - 0x414]
push eax
call fcn.004d270f
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41e9bf
push 2
pop eax
imul eax, eax, 0
mov dword [ebp - 0x838], eax
cmp dword [ebp - 0x838], 0x410
jae 0x41e9aa
jmp 0x41e9af
call fcn.004ca1da
xor eax, eax
mov ecx, dword [ebp - 0x838]
mov word [ebp + ecx - 0x414], ax
push 0x412
push 0
lea eax, [ebp - 0x828]
push eax
call fcn.004ccc90
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
call fcn.004d2563
pop ecx
test eax, eax
jbe 0x41ea38
push 0x207
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x828]
push eax
call fcn.004d26cc
add esp, 0xc
lea eax, [ebp - 0x828]
push eax
call fcn.004d2563
pop ecx
test eax, eax
jbe 0x41ea38
push 0x51b024
lea eax, [ebp - 0x828]
push eax
call fcn.004d270f
pop ecx
pop ecx
push 0x51b028
lea eax, [ebp - 0x828]
push eax
call fcn.004d270f
pop ecx
pop ecx
call fcn.00439870
mov dword [ebp - 0x83c], eax
lea eax, [ebp - 0x828]
push eax
call fcn.004d2563
pop ecx
test eax, eax
jbe 0x41ea66
lea eax, [ebp - 0x828]
push eax
mov ecx, dword [ebp - 0x83c]
call fcn.00439950
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c9ebd
leave
ret

Function at 0x420766
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x53f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call fcn.004ccc90
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4207c2
cmp dword [ebp - 0x114], 5
ja 0x4207be
jne 0x4207c2
cmp dword [ebp - 0x110], 0
jbe 0x4207c2
mov al, 1
jmp 0x4207c4
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c9ebd
leave
ret
Function at 0x4207d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x53f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call fcn.004ccc90
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x420818
xor al, al
jmp 0x420823
cmp dword [ebp - 0x114], 6
sbb al, al
inc al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c9ebd
leave
ret

Function at 0x42082f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x53f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x110
xor ebx, ebx
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.004ccc90
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x420879
xor al, al
jmp 0x420895
cmp dword [ebp - 0x114], 6
jbe 0x420886
mov al, 1
jmp 0x420895
jb 0x420893
cmp dword [ebp - 0x110], 2
jb 0x420893
mov bl, 1
mov al, bl
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004c9ebd
leave
ret

Function at 0x4208a2
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x53f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
and dword [esi], 0
cmp dword [0x53fa30], 0
jne 0x42090f
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004ccc90
add esp, 0xc
mov dword [ebp - 0x214], 0x104
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov ecx, 0x53fa20
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x210]
push eax
call fcn.00408e00
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004c9ebd
leave
ret
Function at 0x42098e
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x53f00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x541f0c]
mov dword [ebp - 0x218], ecx
test eax, eax
jle 0x4209bd
inc eax
mov dword [0x541f0c], eax
mov al, 1
jmp 0x420a9b
and dword [ebp - 0x214], 0
lea eax, [ebp - 0x214]
push ebx
push esi
push edi
push eax
xor bl, bl
call fcn.00420952
test al, al
je 0x420a85
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x420a85
push str.ImpersonateLoggedOnUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp - 0x214]
push esi
call eax
test eax, eax
je 0x420a7c
mov ebx, dword [ebp - 0x218]
inc dword [0x541f0c]
cmp dword [ebx], 0
je 0x420a24
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], esi
xor esi, esi
mov bl, 1
cmp dword [0x53fa18], esi
jne 0x420a7c
push 0x20a
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004ccc90
add esp, 0xc
mov dword [ebp - 0x218], 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov ecx, 0x53fa08
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x210]
push eax
call fcn.00408e00
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x420a8b
mov esi, dword [ebp - 0x214]
test esi, esi
je 0x420a96
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c9ebd
leave
ret
Function at 0x42611b
Capabilities:
Check os version

Disassembly:
push pe_nt_image_headers32
mov eax, 0x4f2d50
call fcn.004ec62d
push 0x110
lea eax, [ebp - 0x138]
mov dword [ebp - 0x13c], 0x114
push 0
push eax
call fcn.004ccc90
xor eax, eax
add esp, 0xc
mov word [ebp - 0x128], ax
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4261d9
cmp dword [ebp - 0x138], 5
jne 0x4261d9
cmp dword [ebp - 0x134], 1
jne 0x4261d9
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x28]
call fcn.00408ef0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
mov esi, 0x519da0
mov edx, esi
call fcn.00426f80
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.00427010
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
jb 0x4261b2
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x4261c0
mov edx, 0x51b600
call fcn.00426e40
test al, al
jne 0x4261e1
cmp dword [ebp - 0x18], 0
je 0x4261e1
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 9
call fcn.00409610
or dword [ebp - 4], 0xffffffff
xor al, al
call fcn.004ec5e8
ret
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 5
call fcn.00409610
or dword [ebp - 4], 0xffffffff
mov al, 1
jmp 0x4261db
Function at 0x428150
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f30d0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x53f00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00408d90
test al, al
je 0x42818d
xor al, al
jmp 0x428339
mov ecx, edi
call fcn.00428080
test al, al
je 0x42819f
mov al, 1
jmp 0x428339
push 0
mov ecx, edi
call fcn.00408da0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x4281ee
lea ecx, [ebp - 0x28]
call fcn.00408f40
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.00444b10
test al, al
je 0x4281df
push 0
lea ecx, [ebp - 0x28]
call fcn.00408da0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00408e60
mov ecx, edi
call fcn.00428080
test al, al
jne 0x428198
mov ecx, edi
call fcn.00409670
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x4282de
mov ecx, edi
call fcn.00409460
mov ebx, eax
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x428222
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x428245
mov eax, ebx
cmp ecx, 8
jb 0x42823b
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x4282ce
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00408ca0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00408d90
test al, al
jne 0x4282bf
lea ecx, [ebp - 0x28]
call fcn.00427e70
test al, al
jne 0x4282bf
push 0
lea ecx, [ebp - 0x28]
call fcn.00408da0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4282bf
lea ecx, [ebp - 0x40]
call fcn.00408f40
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00444b10
test al, al
je 0x4282b3
push 0
lea ecx, [ebp - 0x40]
call fcn.00408da0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00408e60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00408e60
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x428216
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call fcn.00427e70
test al, al
jne 0x428332
push 0
mov ecx, edi
call fcn.00408da0
push eax
call ebx
test eax, eax
jne 0x428332
lea ecx, [ebp - 0x40]
call fcn.00408f40
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.00444b10
test al, al
je 0x428323
push 0
lea ecx, [ebp - 0x40]
call fcn.00408da0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00408e60
mov ecx, edi
call fcn.00428080
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c9ebd
mov esp, ebp
pop ebp
ret
Function at 0x428920
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
mov dword [esi], 0
mov word [esi + 4], 0
call fcn.00408d90
test al, al
jne 0x428947
mov ecx, dword [esp + 8]
call fcn.00408da0
jmp 0x428949
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x428971
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, esi
jne 0x428973
mov byte [esi + 5], 1
pop esi
ret 4
mov eax, esi
pop esi
ret 4

Function at 0x4289a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3228
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x53f00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x4289e6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0043bd90
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x428a0f
lea ebx, [esi + 8]
jmp 0x428a11
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.00408d90
test al, al
jne 0x428a27
mov ecx, dword [ebp - 0x18]
call fcn.00408da0
jmp 0x428a29
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x428a4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x428a4a
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x428a73
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x428a88
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004c9ffc
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c9ebd
mov esp, ebp
pop ebp
ret 4