joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10018a40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.1003f4d0
mov eax, dword [0x1008acc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x200c], 0
xor eax, eax
mov word [ebp - 0x2008], ax
push 0x1ffe
push 0
lea ecx, [ebp - 0x2006]
push ecx
call fcn.10038c10
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
push 0x1000
lea eax, [ebp - 0x2008]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x2008]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10001d60
mov edx, dword [ebp - 0x200c]
or edx, 1
mov dword [ebp - 0x200c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038659
mov esp, ebp
pop ebp
ret
Function at 0x1001c4a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006ed30
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x1008acc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001c4da
xor eax, eax
jmp 0x1001c62c
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.10053c90
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.10016280
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.10053ee0
add esp, 8
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], edx
mov byte [ebp - 4], 2
push 0
lea eax, [ebp - 0x2c]
push eax
push 0x1007bbf4
mov ecx, dword [ebp - 0x50]
call fcn.1001ad60
push eax
call fcn.10054580
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.10001fa0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x2c]
call fcn.1000b5d0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x34], 0
jmp 0x1001c566
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x14]
jae 0x1001c608
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100132d0
push eax
lea ecx, [ebp - 0x38]
call fcn.100020f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.1001ad60
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.10053c90
add esp, 8
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x30]
call fcn.10007360
push eax
mov ecx, dword [ebp - 0x54]
call fcn.1001ad60
push eax
lea ecx, [ebp - 0x30]
call fcn.1001ad60
push eax
call fcn.1003c7b8
add esp, 0xc
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x3d], al
lea ecx, [ebp - 0x44]
call fcn.10001fa0
movzx edx, byte [ebp - 0x3d]
test edx, edx
je 0x1001c5f7
lea ecx, [ebp - 0x38]
call fcn.1001ad60
push eax
call fcn.10051ea0
add esp, 4
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.10001fa0
jmp 0x1001c55d
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.10007380
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.10001fa0
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10023d30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
fcmovb st(0), st(6)
inc ebp
neg dl
mov byte [ebp - 9], 0xbf
call fcn.100239a1
push eax
push esi
push dword [ebp + 8]
call fcn.10023956
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.100239a1
push eax
push esi
push dword [ebp + 8]
call fcn.10023956
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.100239a1
push eax
push esi
push dword [ebp + 8]
call fcn.10023956
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.10023991
rcr dword [eax + 0x74], cl
xchg byte [eax - 0x8363], cl
dec dword [eax - 0x8263]
inc esi
test dword [esi - 1], edi
invalid
Function at 0x10028a15
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x10028a39
cmp dword [edi + 0x54], 0
jne 0x10028a39
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.10030308
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.100289d6
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1002e086
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x1002e0cd
call fcn.10030308
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1002e0cd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x1002e0e9
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.1002dbfe
mov esi, eax
test edi, edi
je 0x1002e0e7
test ebx, ebx
je 0x1002e0e7
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1003155d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x10031575
mov edi, dword [esi + 0xc]
jmp 0x100315b5
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1003158e
call fcn.1002ef51
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x100315a3
call fcn.1002ef51
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x100315b5
call fcn.1002ef51
call fcn.10030308
cmp dword [eax + 0x3c], 0
je 0x100315ca
push edi
mov ecx, ebx
call fcn.10030437
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.10031483
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x100315e8
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x100315f4
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10038659
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1008acc0]
jne 0x10038663
repz ret
jmp fcn.1003f55f
Function at 0x1004c5ce
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10042234
and dword [ebp - 4], 0
cmp dword [0x10092ac8], 0
mov ebx, eax
jne 0x1004c67f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1004c730
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1004c730
push eax
call fcn.100421c2
mov dword [esp], 0x100752a4
push edi
mov dword [0x10092ac8], eax
call esi
push eax
call fcn.100421c2
mov dword [esp], 0x10075290
push edi
mov dword [0x10092acc], eax
call esi
push eax
call fcn.100421c2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10092ad0], eax
call esi
push eax
call fcn.100421c2
pop ecx
mov dword [0x10092ad8], eax
test eax, eax
je 0x1004c67f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100421c2
pop ecx
mov dword [0x10092ad4], eax
mov eax, dword [0x10092ad4]
cmp eax, ebx
je 0x1004c6d7
cmp dword [0x10092ad8], ebx
je 0x1004c6d7
push eax
call fcn.1004223d
push dword [0x10092ad8]
mov esi, eax
call fcn.1004223d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1004c6d7
test edi, edi
je 0x1004c6d7
call esi
test eax, eax
je 0x1004c6ce
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1004c6ce
test byte [ebp - 0xc], 1
jne 0x1004c6d7
or dword [ebp + 0x10], 0x200000
jmp 0x1004c710
mov eax, dword [0x10092acc]
cmp eax, ebx
je 0x1004c710
push eax
call fcn.1004223d
pop ecx
test eax, eax
je 0x1004c710
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1004c710
mov eax, dword [0x10092ad0]
cmp eax, ebx
je 0x1004c710
push eax
call fcn.1004223d
pop ecx
test eax, eax
je 0x1004c710
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10092ac8]
call fcn.1004223d
pop ecx
test eax, eax
je 0x1004c730
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1004c732
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100500c0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006c6ca
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x1008acc0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x434], 0
mov eax, dword [0x10092f74]
and eax, 1
jne 0x10050125
mov ecx, dword [0x10092f74]
or ecx, 1
mov dword [0x10092f74], ecx
mov ecx, 0x10092f70
call fcn.10001e70
push 0x1006fd20
call fcn.100391a5
add esp, 4
mov ecx, 0x10092f70
call fcn.100071f0
movzx edx, al
test edx, edx
jne 0x1005015a
push 0x10092f70
mov ecx, dword [ebp + 8]
call fcn.100020f0
mov eax, dword [ebp - 0x434]
or eax, 1
mov dword [ebp - 0x434], eax
mov eax, dword [ebp + 8]
jmp 0x100502e1
lea ecx, [ebp - 0x14]
push ecx
call fcn.10054ab0
add esp, 4
mov dword [ebp - 4], 0
push str.translations.ini
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.100070c0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.1001ad60
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1005023b
xor ecx, ecx
mov word [ebp - 0x224], cx
push 0x206
push 0
lea edx, [ebp - 0x222]
push edx
call fcn.10038c10
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.1001ad60
push eax
push 0x104
lea eax, [ebp - 0x224]
push eax
push 0
push str.Path
push 0x10075804
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
movzx ecx, word [ebp - 0x224]
test ecx, ecx
je 0x1005023b
xor edx, edx
mov word [ebp - 0x42c], dx
push 0x206
push 0
lea eax, [ebp - 0x42a]
push eax
call fcn.10038c10
add esp, 0xc
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x14]
call fcn.1001ad60
push eax
lea edx, [ebp - 0x42c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x42c]
push eax
mov ecx, 0x10092f70
call fcn.10002690
mov ecx, 0x10092f70
call fcn.100071f0
movzx ecx, al
test ecx, ecx
je 0x1005029a
push str.translations_
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x430]
push eax
call fcn.100070c0
add esp, 0xc
mov dword [ebp - 0x438], eax
mov ecx, dword [ebp - 0x438]
mov dword [ebp - 0x43c], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x43c]
push edx
mov ecx, 0x10092f70
call fcn.1000a240
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x430]
call fcn.10001fa0
push 0x10092f70
call fcn.100525c0
add esp, 4
push 0x10092f70
mov ecx, dword [ebp + 8]
call fcn.100020f0
mov eax, dword [ebp - 0x434]
or eax, 1
mov dword [ebp - 0x434], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.10001fa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10001fa0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.10038659
mov esp, ebp
pop ebp
ret
Function at 0x10050300
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006c710
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x1008acc0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x228], 0
mov eax, dword [0x10092f7c]
and eax, 1
jne 0x10050365
mov ecx, dword [0x10092f7c]
or ecx, 1
mov dword [0x10092f7c], ecx
mov ecx, 0x10092f78
call fcn.10001e70
push 0x1006fd10
call fcn.100391a5
add esp, 4
mov ecx, 0x10092f78
call fcn.100071f0
movzx edx, al
test edx, edx
jne 0x1005039a
push 0x10092f78
mov ecx, dword [ebp + 8]
call fcn.100020f0
mov eax, dword [ebp - 0x228]
or eax, 1
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 8]
jmp 0x100504f8
lea ecx, [ebp - 0x220]
push ecx
call fcn.10054ab0
add esp, 4
mov dword [ebp - 0x22c], eax
mov edx, dword [ebp - 0x22c]
mov dword [ebp - 0x230], edx
mov dword [ebp - 4], 0
push 0x100756e8
mov eax, dword [ebp - 0x230]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.100070c0
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x220]
call fcn.10001fa0
lea ecx, [ebp - 0x10]
call fcn.1001ad60
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1005045e
xor edx, edx
mov word [ebp - 0x21c], dx
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.10038c10
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.1001ad60
push eax
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0x1007570c
push 0x10075724
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
movzx edx, word [ebp - 0x21c]
test edx, edx
je 0x1005045e
lea eax, [ebp - 0x21c]
push eax
mov ecx, 0x10092f78
call fcn.10002690
mov ecx, 0x10092f78
call fcn.100071f0
movzx ecx, al
test ecx, ecx
je 0x100504ca
call fcn.10062ca0
mov dword [ebp - 0x234], eax
lea edx, [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x234]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x234]
mov eax, dword [edx + 0x10]
call eax
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x23c], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x23c]
push edx
mov ecx, 0x10092f78
call fcn.1000a240
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x224]
call fcn.10001fa0
push 0x10092f78
mov ecx, dword [ebp + 8]
call fcn.100020f0
mov eax, dword [ebp - 0x228]
or eax, 1
mov dword [ebp - 0x228], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10001fa0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10038659
mov esp, ebp
pop ebp
ret
Function at 0x10050920
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10050972
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 4], 0
je 0x100509a7
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 3
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1005099d
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x100509b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10050a02
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 4], 0
je 0x10050a3b
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
push 4
lea ecx, [ebp - 0xc]
push ecx
push 4
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10050a31
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x10050a50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10050aa2
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 4], 0
je 0x10050ae4
mov eax, dword [ebp + 0x14]
push eax
call fcn.10038668
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10050ada
mov dword [ebp - 8], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x10050af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10050b6f
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10050b65
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x14]
mov dword [edx], eax
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x10050b80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10050be9
mov dword [ebp - 0xc], 1
lea eax, [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10050bdf
mov dword [ebp - 8], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x10050bf0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 8]
mov dword [edx], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], 0x10325476
pop ebp
ret

Function at 0x10050ec0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10050ed5
xor eax, eax
jmp 0x10050eed
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0x10
je 0x10050ee8
xor eax, eax
jmp 0x10050eed
mov eax, 1
pop ebp
ret
Function at 0x10051ea0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x1008acc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10051ec5
xor eax, eax
jmp 0x10051efa
mov ecx, dword [ebp + 8]
push ecx
call fcn.10050ec0
add esp, 4
test eax, eax
jne 0x10051ed9
xor eax, eax
jmp 0x10051efa
lea edx, [ebp - 0x258]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10050e70
add esp, 8
test eax, eax
jne 0x10051ef4
xor eax, eax
jmp 0x10051efa
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038659
mov esp, ebp
pop ebp
ret

Function at 0x10052070
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push eax
call fcn.10051ea0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 3
ja 0x10052095
mov eax, 1
jmp 0x10052198
mov dword [ebp - 4], 1
mov dword [ebp - 8], 0
push 0x1007592c
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.1003bdb1
add esp, 0xc
test eax, eax
jne 0x10052195
cmp dword [ebp - 8], 0
je 0x10052195
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x13], 0
mov byte [ebp - 0x12], 0
mov eax, dword [ebp - 8]
push eax
push 1
push 3
lea ecx, [ebp - 0x14]
push ecx
call fcn.1003cd19
add esp, 0x10
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0xc], 2
jb 0x1005211b
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax]
cmp ecx, 0xff
jne 0x1005211b
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 1]
cmp eax, 0xfe
jne 0x1005211b
mov dword [ebp - 0x1c], 1
jmp 0x10052122
mov dword [ebp - 0x1c], 0
mov cl, byte [ebp - 0x1c]
mov byte [ebp - 0x16], cl
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx]
cmp eax, 0xef
jne 0x1005215c
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 1]
cmp edx, 0xbb
jne 0x1005215c
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 2]
cmp ecx, 0xbf
jne 0x1005215c
mov dword [ebp - 0x20], 1
jmp 0x10052163
mov dword [ebp - 0x20], 0
mov dl, byte [ebp - 0x20]
mov byte [ebp - 0x15], dl
movzx eax, byte [ebp - 0x15]
test eax, eax
je 0x1005217a
mov dword [ebp - 4], 2
jmp 0x10052189
movzx ecx, byte [ebp - 0x16]
test ecx, ecx
je 0x10052189
mov dword [ebp - 4], 3
mov edx, dword [ebp - 8]
push edx
call fcn.1003c354
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret