joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002fb6
Capabilities:
Get common file path
Set current directory

Disassembly:
push 0x64c
mov eax, 0x1011128c
call fcn.1011094d
mov dword [ebp - 0x658], ecx
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x64c], edi
mov esi, 0x208
mov dword [ebp - 4], edi
push esi
lea eax, [ebp - 0x440]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
push esi
lea eax, [ebp - 0x238]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x654], 0x103
mov dword [ebp - 0x650], 0xf
test ebx, ebx
jne 0x1000301f
mov esi, 0x80004003
jmp 0x1000315c
push edi
push edi
push edi
push ecx
push edi
mov edx, ebx
lea ecx, [ebp - 0x64c]
call fcn.10046cda
mov esi, eax
test esi, esi
js 0x1000315c
mov eax, dword [ebp - 0x64c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xbc]
test eax, eax
jne 0x10003058
mov esi, 0x80004005
jmp 0x1000315c
mov eax, dword [ebp - 0x64c]
lea edx, [ebp - 0x654]
push edx
lea edx, [ebp - 0x648]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x60]
mov esi, eax
test esi, esi
js 0x1000315c
cmp dword [ebp - 0x654], 4
jbe 0x1000304e
mov eax, dword [ebp - 0x64c]
lea edx, [ebp - 0x650]
push edx
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x68]
mov esi, eax
test esi, esi
js 0x1000315c
cmp dword [ebp - 0x650], 5
je 0x100030b8
cmp dword [ebp - 0x650], 3
jne 0x1000304e
push ecx
mov edx, str.accdb
lea ecx, [ebp - 0x30]
call fcn.10043548
test eax, eax
jne 0x100030e0
push ecx
mov edx, 0x101193ac
lea ecx, [ebp - 0x30]
call fcn.10043548
test eax, eax
je 0x1000304e
lea eax, [ebp - 0x440]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1000304e
push esi
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x64c]
call fcn.10046cda
mov esi, eax
test esi, esi
js 0x1000315c
mov edi, dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x238]
push eax
call edi
mov esi, eax
lea eax, [ebp - 0x440]
push eax
call edi
test esi, esi
je 0x1000304e
mov esi, dword [ebp - 0x658]
push dword [esi + 0x44]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
and dword [esi + 0x44], 0
mov ecx, ebx
call fcn.10006afa
push eax
push ebx
lea ecx, [esi + 0x44]
call fcn.10046cda
mov esi, eax
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x64c]
test eax, eax
je 0x10003173
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.101108ff
ret 4
Function at 0x100042e4
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x10111452
call fcn.10110919
mov edi, edx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
test ebx, ebx
jne 0x10004307
mov esi, 0x80004003
jmp 0x10004372
test edi, edi
je 0x10004300
push eax
push eax
push eax
push ecx
push eax
mov edx, ebx
mov dword [edi], 1
lea ecx, [ebp - 0x10]
call fcn.10046cda
mov esi, eax
test esi, esi
js 0x10004372
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ecx]
call dword [edx + 0xbc]
test eax, eax
jne 0x1000433a
and dword [edi], eax
jmp 0x10004372
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push ebx
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x1000436b
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
cmp esi, 2
jne 0x10004372
xor esi, esi
and dword [edi], esi
jmp 0x10004372
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10004386
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.101108ea
ret
Function at 0x1001412b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x10112029
call fcn.1011094d
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
xor eax, eax
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x41c], eax
push 0x60
push eax
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.kernel32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
push 2
pop eax
test edi, edi
jne 0x1001419c
push eax
push edi
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x1001419c
call fcn.10012a54
mov esi, eax
jmp 0x1001427e
push dword [ebp - 0x420]
push dword [ebp - 0x424]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x100141bf
call fcn.10012a54
jmp 0x10014271
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x100141b5
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x100141e8
mov esi, 0x8007000e
jmp 0x10014273
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
test edx, edx
ja 0x100142ac
jb 0x10014203
cmp eax, 0xffffffff
ja 0x100142ac
cmp eax, 0x400
jbe 0x10014218
push eax
lea ecx, [ebp - 0x41c]
call fcn.10046cda
jmp 0x10014224
lea eax, [ebp - 0x418]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x41c], 0
je 0x100141de
push esi
push dword [ebp - 0x41c]
push esi
push ebx
push 0
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x100141b5
mov eax, dword [ebp - 0x41c]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x430]
push dword [ebp - 0x41c]
call fcn.10046cda
mov esi, eax
test edi, edi
je 0x1001427e
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x418]
cmp dword [ebp - 0x41c], eax
je 0x10014297
lea ecx, [ebp - 0x41c]
call fcn.10012a1c
lea ecx, [ebp - 0x428]
call fcn.10006b97
mov eax, esi
call fcn.101108ff
ret 0x10
push 0x80070216
call fcn.10046cda
int3

Function at 0x10016d8e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
add eax, 8
push eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.kernel32.dll_GetFileSizeEx]
test eax, eax
jne 0x10016dc0
call dword [sym.imp.kernel32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, ecx
jmp 0x10016dc2
xor eax, eax
pop ebp
ret 0xc
Function at 0x10017c58
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push pe_nt_image_headers32
mov eax, 0x1011241e
call fcn.1011094d
mov ebx, ecx
xor edi, edi
mov dword [ebp - 4], edi
mov esi, edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x124], eax
test eax, eax
jle 0x10017c97
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.10046cda
mov esi, eax
mov dword [ebp - 0x11c], esi
test esi, esi
js 0x10017e37
cmp dword [ebx + 0xac], edi
je 0x10017caa
lea ecx, [ebx + 0xa8]
call fcn.10046cda
mov ecx, dword [ebp - 0x124]
cmp ecx, 0x64
jle 0x10017d58
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x120], edi
push 0xa5a9
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 2
call fcn.10046cda
push 0xa5aa
lea ecx, [ebp - 0x120]
call fcn.10046cda
push ecx
push dword [ebp - 0x11c]
lea ecx, [ebx + 0x30]
push dword [ebp - 0x120]
call fcn.10046cda
push dword [ebp - 0x120]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call ebx
push dword [ebp - 0x11c]
call ebx
mov esi, 0x80004005
mov dword [ebp - 0x11c], esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x10017d4e
cmp dword [ebp + 0xc], 0
jle 0x10017d46
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [eax + edi*4]
call esi
mov eax, dword [ebp + 8]
inc edi
cmp edi, dword [ebp + 0xc]
jl 0x10017d32
mov esi, dword [ebp - 0x11c]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov eax, esi
call fcn.101108ff
ret 0xc
mov eax, edi
mov dword [ebp - 0x120], eax
test ecx, ecx
jle 0x10017d19
push eax
lea ecx, [ebp + 8]
call fcn.10046cda
lea ecx, [ebp - 0x118]
push dword [eax]
call fcn.10046cda
push dword [eax]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x118], eax
je 0x10017d9f
push dword [ebp - 0x118]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
cmp esi, 0xffffffff
jne 0x10017dca
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
je 0x10017de4
cmp eax, 3
je 0x10017de4
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov dword [ebp - 0x11c], esi
jmp 0x10017de0
mov eax, esi
shr eax, 4
and eax, 1
mov dword [ebp - 0x128], eax
mov esi, edi
mov dword [ebp - 0x11c], edi
test esi, esi
js 0x10017e37
push dword [ebp - 0x120]
lea ecx, [ebp + 8]
call fcn.10046cda
mov ecx, ebx
cmp dword [ebp - 0x128], edi
jne 0x10017e06
push edi
push dword [eax]
call fcn.100180b3
jmp 0x10017e0d
push dword [eax]
call fcn.10018284
mov esi, eax
mov dword [ebp - 0x11c], esi
test esi, esi
js 0x10017e37
mov eax, dword [ebp - 0x120]
inc eax
mov dword [ebp - 0x120], eax
cmp eax, dword [ebp - 0x124]
jl 0x10017d64
jmp 0x10017d19
lea ecx, [ebx + 0xa8]
call fcn.10046cda
push dword [ebx + 0xbc]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebx + 0xbc], edi
jmp 0x10017d1f
Function at 0x10018284
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x370
mov eax, 0x10112487
call fcn.1011094d
mov dword [ebp - 0x37c], ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
or dword [ebp - 0x374], 0xffffffff
mov esi, ebx
mov dword [ebp - 0x378], eax
mov dword [ebp - 0x370], esi
mov dword [ebp - 4], ebx
test eax, eax
je 0x1001849d
push 1
push eax
call fcn.100180b3
mov edi, eax
test edi, edi
js 0x1001848f
mov edi, dword [ebp - 0x378]
push edi
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, 0x101
ja 0x1001849d
mov ecx, edi
call fcn.10006afa
push eax
push edi
lea ecx, [ebp - 0x370]
call fcn.10046cda
mov edi, eax
test edi, edi
js 0x10018489
push 2
push 0x1011c2b0
lea ecx, [ebp - 0x370]
call fcn.10046cda
mov edi, eax
test edi, edi
js 0x10018489
mov esi, dword [ebp - 0x370]
lea ecx, [ebp - 0x118]
push esi
call fcn.10046cda
lea ecx, [ebp - 0x368]
push ecx
push dword [eax]
call dword [sym.imp.kernel32.dll_FindFirstFileW]
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x374], eax
cmp dword [ebp - 0x118], ecx
je 0x1001836a
push dword [ebp - 0x118]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 0x374]
pop ecx
cmp eax, 0xffffffff
je 0x100184a2
mov edx, 0x1011c2b8
lea ecx, [ebp - 0x33c]
movzx eax, byte [ecx]
cmp al, byte [edx]
jne 0x10018392
movzx eax, byte [ecx + 1]
cmp al, byte [edx + 1]
je 0x10018452
mov edx, 0x1011c2bc
lea ecx, [ebp - 0x33c]
movzx eax, byte [ecx]
cmp al, byte [edx]
jne 0x100183b1
movzx eax, byte [ecx + 1]
cmp al, byte [edx + 1]
je 0x10018452
push dword [ebp - 0x378]
lea ecx, [ebp - 0x36c]
call fcn.10046cda
push 1
push 0x101191cc
lea ecx, [ebp - 0x36c]
mov byte [ebp - 4], 1
call fcn.10046cda
mov edi, eax
test edi, edi
js 0x1001847b
lea ecx, [ebp - 0x33c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100183eb
sub ecx, edx
lea eax, [ebp - 0x33c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x36c]
call fcn.10046cda
mov edi, eax
test edi, edi
js 0x1001847b
test byte [ebp - 0x368], 0x10
mov eax, dword [ebp - 0x36c]
mov ecx, dword [ebp - 0x37c]
mov dword [ebp - 0x36c], ebx
je 0x10018436
push eax
call fcn.10018284
jmp 0x1001843d
push ebx
push eax
call fcn.100180b3
mov edi, eax
test edi, edi
js 0x1001847b
mov byte [ebp - 4], bl
push dword [ebp - 0x36c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x368]
push eax
push dword [ebp - 0x374]
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
jne 0x10018373
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x12
cmovne edi, eax
jmp 0x1001848f
push dword [ebp - 0x36c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x1001848f
mov esi, dword [ebp - 0x370]
push dword [ebp - 0x374]
call dword [sym.imp.kernel32.dll_FindClose]
jmp 0x100184a4
mov ebx, 0x80070057
mov edi, ebx
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
call fcn.101108ff
ret 4
Function at 0x1001f752
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 0x10
mov esi, ecx
push 1
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x1001f794
push edi
push esi
call dword [sym.imp.kernel32.dll_SizeofResource]
test eax, eax
je 0x1001f794
push edi
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x1001f794
cmp word [eax + 2], 0
je 0x1001f794
cmp dword [eax + 0x28], 0xfeef04bd
jne 0x1001f794
add eax, 0x30
jmp 0x1001f799
mov eax, 0x1011ec80
pop edi
pop esi
ret

Function at 0x10042ae4
Capabilities:
Hash data using djb2

Disassembly:
movzx eax, word [ecx]
mov edx, 0x1505
push esi
xor esi, esi
jmp 0x10042afe
imul edx, edx, 0x21
movzx eax, ax
xor edx, eax
inc esi
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x10042af1
imul eax, edx, 0x41c64e6d
imul ecx, edx, 0x10dcd
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
ret

Function at 0x10045201
Capabilities:
Hash data using djb2

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x1004520d
or eax, 0xffffffff
pop esi
ret
movzx eax, word [esi]
push ebx
push edi
mov edi, 0x1505
xor ebx, ebx
jmp 0x10045235
movzx ecx, ax
add eax, 0xffffffbf
cmp ax, 0x19
lea edx, [ecx + 0x20]
cmova edx, ecx
imul edi, edi, 0x21
xor edi, edx
inc ebx
movzx eax, word [esi + ebx*2]
test ax, ax
jne 0x1004521b
imul eax, edi, 0x41c64e6d
imul ecx, edi, 0x10dcd
pop edi
pop ebx
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
ret

Function at 0x10053b70
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, edx
push edi
test ecx, ecx
je 0x10053bc6
test esi, esi
je 0x10053bc6
push 2
pop edx
call fcn.10046cda
mov edi, eax
test edi, edi
jne 0x10053b91
mov eax, 0x80004005
jmp 0x10053bcb
mov ecx, esi
call fcn.10006995
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push 0
push edi
call dword [sym.imp.advapi32.dll_RegSetValueExW]
push edi
mov esi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
movzx eax, si
or eax, 0x80070000
test esi, esi
cmovle eax, esi
jmp 0x10053bcb
mov eax, 0x80070057
pop edi
pop esi
ret 4

Function at 0x10053bd0
Capabilities:
Delete registry key

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
test esi, esi
jne 0x10053be0
mov eax, 0x80070057
jmp 0x10053c24
call fcn.10046cda
mov edi, eax
test edi, edi
je 0x10053c21
push 0
call fcn.10053fa0
neg eax
sbb eax, eax
and eax, 0x100
push eax
push esi
push edi
call dword [sym.imp.advapi32.dll_RegDeleteKeyExW]
push edi
mov esi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp esi, 2
je 0x10053c21
movzx eax, si
or eax, 0x80070000
test esi, esi
cmovle eax, esi
jmp 0x10053c24
xor eax, eax
inc eax
pop edi
pop esi
pop ecx
ret
Function at 0x10062739
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc0
mov eax, 0x10114a80
call fcn.1011094d
mov eax, dword [ebp - 0xc8]
xor ebx, ebx
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc8], 0x101bb940
mov dword [0x101bb940], ebx
mov dword [0x101bb944], ebx
mov dword [0x101bb948], ebx
xor ecx, ecx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], ebx
push eax
inc ecx
push ecx
push ebx
push str.Control_PanelInternational
push SysReAllocString
mov dword [ebp - 0xcc], ecx
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100628b0
mov edi, dword [sym.imp.advapi32.dll_RegGetValueW]
lea eax, [ebp - 0xc0]
push eax
push ebx
push ebx
push 0x20000020
push str.Languages
push str.User_Profile
push dword [ebp - 0xc4]
mov dword [ebp - 0xc0], ebx
call edi
test eax, eax
jne 0x100628a4
cmp dword [ebp - 0xc0], 3
jbe 0x100628a4
push dword [ebp - 0xc0]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x100628a4
lea eax, [ebp - 0xc0]
push eax
push esi
push ebx
push 0x20
push str.Languages
push str.User_Profile
push dword [ebp - 0xc4]
call edi
test eax, eax
jne 0x1006289c
mov ebx, dword [ebp - 0xc0]
cmp ebx, 3
jbe 0x1006289c
xor edx, edx
shr ebx, 1
push edx
pop ecx
mov eax, edx
mov edi, edx
mov word [esi + ebx*2 - 2], cx
je 0x1006289c
jmp 0x10062847
cmp eax, ebx
jae 0x1006284d
inc eax
cmp word [esi + eax*2], dx
je 0x10062842
cmp word [esi + edi*2], dx
jne 0x10062897
cmp edi, eax
jbe 0x10062897
xor ecx, ecx
lea eax, [esi + eax*2]
mov word [ebp - 0xbc], cx
lea ecx, [ebp - 0xbc]
push 0x55
push ecx
push eax
call dword [sym.imp.kernel32.dll_ResolveLocaleName]
test eax, eax
je 0x10062892
cmp word [ebp - 0xbc], 0
je 0x10062892
lea eax, [ebp - 0xbc]
mov ecx, 0x101bb940
push eax
call fcn.10046cda
lea eax, [edi + 1]
xor edx, edx
inc edi
cmp edi, ebx
jb 0x10062847
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
push dword [ebp - 0xc4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, 0x101bb940
call fcn.101108ff
ret 4
Function at 0x506f150c
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x506fb298]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
xor ebx, ebx
xor esi, esi
cmp eax, ebx
push 2
pop ebp
jne 0x506f15c5
call edi
mov esi, eax
cmp esi, ebx
je 0x506f4133
mov dword [0x506fb298], 1
cmp esi, ebx
je 0x506f4154
cmp word [esi], bx
mov eax, esi
je 0x506f156e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add eax, ebp
cmp word [eax], bx
jne 0x506f1560
add eax, ebp
cmp word [eax], bx
jne 0x506f1560
mov edi, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, esi
push ebx
sar eax, 1
inc eax
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
mov ebp, eax
cmp ebp, ebx
je 0x506f15b5
push ebp
call fcn.506f2560
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x506f15b5
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
je 0x506f4161
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
cmp eax, 1
jne 0x506f4174
jmp 0x506f1542
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x506f414a
mov eax, ebp
mov dword [0x506fb298], eax
jmp 0x506f15c5
mov eax, dword [0x506fb298]
jmp 0x506f15c5
call edi
mov esi, eax
cmp esi, ebx
je 0x506f417c
jmp 0x506f154a
push dword [esp + 0x10]
call fcn.506f2ca2
pop ecx
mov dword [esp + 0x10], ebx
jmp 0x506f15b1
cmp eax, ebp
je 0x506f4183
cmp eax, ebx
je 0x506f4183
xor eax, eax
jmp 0x506f15be
call dword [sym.imp.kernel32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
je 0x506f417c
cmp byte [esi], bl
je 0x506f419d
inc eax
cmp byte [eax], bl
jne 0x506f4193
inc eax
cmp byte [eax], bl
jne 0x506f4193
sub eax, esi
inc eax
mov ebp, eax
push ebp
call fcn.506f2560
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x506f41b3
xor edi, edi
jmp 0x506f41be
push ebp
push esi
push edi
call fcn.506f6c53
add esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
mov eax, edi
jmp 0x506f15be
Function at 0x506f236f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x506fb050]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.506f2355
mov eax, 0x506f0000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.506f1872
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x506f2401
cmp dword [ebp - 0x1c], 5
jb 0x506f23d3
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x506f2414
call fcn.506f13e9
test eax, eax
jl 0x506f4772
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.506f22d6
add ebp, 0x78
leave
ret
cmp dword [ebp - 0x10], 1
jne 0x506f23d3
jmp 0x506f475d
cmp dword [ebp - 0x18], 0
jbe 0x506f23d3
jmp 0x506f23cf
cmp dword [ebp - 0x1c], 4
ja 0x506f23cf
jne 0x506f23d3
jmp 0x506f240c
mov byte [0x506fb15c], 1
jmp 0x506f23f1

Function at 0x506f539f
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x506f53b9
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.kernel32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 0xc

Function at 0x506f53e2
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x506f53ed
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x506f5a1e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x506fb050]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x9c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x90], eax
mov dword [ebp - 0x74], esi
call fcn.506f6c53
cmp eax, esi
jne 0x506f5aa6
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x506f5a6f
lea eax, [ebp - 0x70]
push eax
call fcn.506f5a1e
cmp eax, esi
jne 0x506f5aa5
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], pe_nt_image_headers32
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x506f5a62
call fcn.506f5305
push dword [ebp + 0x9c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.506f5305
mov ecx, dword [ebp + 0x90]
mov eax, esi
pop esi
pop ebx
call fcn.506f22d6
add ebp, 0x94
leave
ret 4
Function at 0x506f7d48
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x506fb050]
push ebx
push esi
push edi
mov dword [ebp + 0x394], eax
mov esi, ecx
call dword [0x506fb66c]
xor edi, edi
cmp dword [ebp + 0x3a0], edi
mov ebx, eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x70], edi
je 0x506f7dd2
push dword [ebp + 0x3a0]
call dword [sym.imp.kernel32.dll_lstrlenW]
lea esi, [eax + eax + 2]
cmp esi, 0x400
jg 0x506f7db7
push esi
call fcn.506f516a
test al, al
je 0x506f7db7
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.506f19f4
mov eax, esp
jmp 0x506f7dc0
push esi
lea ecx, [ebp - 0x74]
call fcn.506f5b58
push ebx
push esi
push dword [ebp + 0x3a0]
push eax
call fcn.506f6c53
cmp eax, edi
jne 0x506f7dec
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x70], eax
je 0x506f7de2
lea ecx, [ebp - 0x70]
call fcn.506f59b7
mov esi, 0x8007000e
jmp 0x506f7ea2
push 2
push edi
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x78], esi
jne 0x506f7e0b
call fcn.506f52ae
mov esi, eax
jmp 0x506f7e92
push dword [ebp + 0x3a8]
push dword [ebp + 0x3a4]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov ebx, eax
cmp ebx, edi
je 0x506f7e32
push ebx
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov esi, eax
cmp esi, edi
jne 0x506f7e39
call fcn.506f52ae
jmp 0x506f7e87
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
push eax
lea ecx, [ebp - 0x70]
call fcn.506f5bc6
mov edi, dword [ebp - 0x70]
test edi, edi
jne 0x506f7e5f
mov esi, 0x8007000e
jmp 0x506f7e89
push dword [ebp + 0x3ac]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x70]
mov byte [ebx + eax], 0
push dword [ebp - 0x70]
lea ecx, [ebp - 0x80]
call fcn.506f747e
mov esi, eax
push dword [ebp - 0x78]
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x70], eax
je 0x506f7ea2
lea ecx, [ebp - 0x70]
call fcn.506f59b7
lea ecx, [ebp - 0x74]
call fcn.506f58f5
mov eax, esi
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x394]
call fcn.506f22d6
pop edi
pop esi
pop ebx
add ebp, 0x398
leave
ret 0x10