joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42aba3
Capabilities:
Delete registry key

Disassembly:
push 0x34
mov eax, 0x46e1a1
call fcn.004573d3
mov eax, dword [ebp + 0xc]
test eax, eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x38], eax
jne 0x42abc4
mov eax, str.NULL
push eax
push ecx
push str.Starting_RegDeleteKey_with_HKEY:0x_X__subKey:_s
mov edi, 0x80
push edi
mov esi, 0x4932a8
push esi
call fcn.00401300
add esp, 0x14
call fcn.00429ff9
test eax, eax
je 0x42ad7d
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x3c], ebx
je 0x42ad6a
push str.RegDeleteKeyExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp - 0x40], eax
je 0x42ad4e
and dword [ebp - 0x34], 0
push 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.00401800
xor ebx, ebx
cmp dword [ebp - 0x38], ebx
mov dword [ebp - 4], ebx
je 0x42ac45
push dword [ebp - 0x38]
lea ecx, [ebp - 0x2c]
call fcn.00404200
push ebx
push str.Wow6432Node
lea ecx, [ebp - 0x2c]
call fcn.00405a90
cmp eax, 0xffffffff
mov ebx, 0x200
je 0x42ac72
push 0xc
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402fa0
mov dword [ebp - 0x34], ebx
push str.RegDeleteKey_using_KEY_WOW64_32KEY
jmp 0x42acb4
mov eax, dword [ebp - 0x30]
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
je 0x42aca8
cmp eax, 0x80000001
je 0x42aca8
cmp eax, 0x80000000
je 0x42aca8
cmp eax, 0x80000003
je 0x42aca8
call fcn.0042a0b0
test eax, eax
je 0x42acbe
push dword [ebp - 0x30]
call fcn.0042a40c
pop ecx
mov dword [ebp - 0x34], eax
jmp 0x42acbe
mov dword [ebp - 0x34], 0x100
push str.RegDeleteKey_using_KEY_WOW64_64KEY
push edi
push esi
call fcn.00401300
add esp, 0xc
test dword [ebp - 0x34], ebx
mov eax, str.KEY_WOW64_64KEY
je 0x42accd
mov eax, str.KEY_WOW64_32_KEY
push eax
push dword [ebp - 0x38]
push dword [ebp - 0x30]
push str.Deleting__d:_s_using__s
push edi
push esi
call fcn.00401300
mov eax, dword [ebp - 0x28]
add esp, 0x18
cmp dword [ebp - 0x14], 0x10
jae 0x42acef
lea eax, [ebp - 0x28]
push 0
push dword [ebp - 0x34]
push eax
push dword [ebp - 0x30]
call dword [ebp - 0x40]
mov ebx, eax
push ebx
push str.RegDeleteKeyEx_returned__d
push edi
push esi
call fcn.00401300
add esp, 0x10
test ebx, ebx
je 0x42ad35
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x42ad1d
lea eax, [ebp - 0x28]
push ebx
push eax
push dword [ebp - 0x30]
push str.RegDeleteKeyEx__d___s__failed_with_the_result__d.
push 0x400
push esi
call fcn.00401300
add esp, 0x18
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402f50
mov eax, ebx
jmp 0x42ad98
push str.Could_not_get_pointer_to_RegDeleteKeyEx
push 0x400
push esi
call fcn.00401300
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x42ad7d
push str.LoadLibrary__Advapi32.dll___failed
push 0x400
push esi
call fcn.00401300
add esp, 0xc
push str.Calling_Real_RegDeleteKey
push edi
push esi
call fcn.00401300
add esp, 0xc
push dword [ebp - 0x38]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
call fcn.00457456
ret
Function at 0x42cb22
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 8], 0
push esi
push edi
mov edi, ecx
je 0x42cbc3
call fcn.0042c469
lea esi, [edi + 0x188]
mov eax, dword [esi + 4]
push esi
push dword [eax]
lea ecx, [ebp - 0x18]
call fcn.00405a60
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
lea eax, [edi + 0x17c]
push eax
mov eax, dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x10]
call fcn.00405a60
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
push esi
push dword [esi + 4]
mov dword [ebp - 0x14], eax
jmp 0x42cbab
lea ecx, [ebp - 8]
call fcn.0040aa30
push dword [ebp + 8]
mov ecx, eax
call fcn.00405b20
test eax, eax
je 0x42cbcf
lea ecx, [ebp - 8]
call fcn.0040cff0
lea ecx, [ebp - 0x18]
call fcn.0040cff0
push esi
push dword [esi + 4]
lea ecx, [ebp - 0x10]
call fcn.00405a60
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.00405610
test al, al
je 0x42cb81
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
pop edi
pop esi
leave
ret 4
lea ecx, [ebp - 0x18]
call fcn.0040aa30
cmp dword [eax + 0x18], 0x10
jb 0x42cbe2
mov eax, dword [eax + 4]
jmp 0x42cbe5
add eax, 4
push 0x10
push 0
push eax
call fcn.00458587
add esp, 0xc
jmp 0x42cbc9

Function at 0x42d91e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push dword [esp + 0x14]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
movzx eax, ax
push eax
push 6
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x42d97a
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42d97a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x42d97a
mov ebx, eax
xor ecx, ecx
movzx eax, word [ebx]
inc ebx
inc ebx
test ax, ax
je 0x42d974
cmp ecx, edi
movzx esi, ax
je 0x42d980
lea ebx, [ebx + esi*2]
inc ecx
cmp ecx, 0x10
jl 0x42d960
xor eax, eax
pop edi
pop esi
pop ebx
ret
xor ecx, ecx
push 2
lea edi, [esi + 1]
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042f9cf
pop ecx
mov edi, eax
test edi, edi
je 0x42d9b4
push esi
push ebx
lea eax, [esi + 1]
push eax
push edi
call fcn.004586d7
add esp, 0x10
and word [edi + esi*2], 0
mov eax, edi
jmp 0x42d97c
Function at 0x4377fe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x437844
call fcn.0043a2e9
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x437844
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x437887
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x437870
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x437870
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x437884
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x439221
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x43924f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43926d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043918b
jmp 0x43926d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43926d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0043918b
test edi, edi
mov eax, edi
jne 0x439257
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4a3a8c]
test ecx, ecx
je 0x439330
jmp 0x439220
ret 8

Function at 0x43e12d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x43e166
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0043e0f0
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00409190
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x43fe72
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x43feb5
call fcn.0043a2e9
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x43feb5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43fed0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0043fa29
test ebx, ebx
mov esi, eax
je 0x43fece
test edi, edi
je 0x43fece
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x447cd2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0043a2e9
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x447d09
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004478f4
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x448b44
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x448b4d
xor eax, eax
jmp 0x448bb6
cmp dword [esp + 8], 0
jne 0x448b59
call fcn.00436e17
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0045af82
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x448b94
push dword [esi + 0x10]
call fcn.00457d90
test eax, eax
pop ecx
jne 0x448b94
mov esi, dword [esi + 0xc]
call fcn.0045a1e1
push esi
push dword [eax]
push 1
call fcn.004489a8
push dword [esi + 0x10]
call fcn.00457dbf
test eax, eax
pop ecx
je 0x448bb3
push dword [esi + 0x10]
call fcn.0045ac79
push eax
call fcn.00401040
pop ecx
pop ecx
jmp 0x448b82
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x448bbf
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x448bc9
call fcn.00436e17
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0045b0b7
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x448bf6
mov esi, dword [esi + 0xc]
call fcn.0045a1e1
push esi
push dword [eax]
push 1
call fcn.004489a8
pop esi
ret 8

Function at 0x45309e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x491d88]
jne 0x4530a8
repz ret
jmp fcn.0045d543
Function at 0x467303
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0045c0c7
xor ebx, ebx
cmp dword [0x4a6400], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4673d8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x467343
xor eax, eax
jmp 0x46749c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x481120
push edi
call esi
cmp eax, ebx
je 0x46733c
push eax
call fcn.0045c064
mov dword [esp], 0x481110
push edi
mov dword [0x4a6400], eax
call esi
push eax
call fcn.0045c064
mov dword [esp], 0x4810fc
push edi
mov dword [0x4a6404], eax
call esi
push eax
call fcn.0045c064
mov dword [0x4a6408], eax
lea eax, [ebp - 8]
push eax
call fcn.0045453c
test eax, eax
pop ecx
pop ecx
je 0x4673a6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00453a07
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4673d8
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0045c064
cmp eax, ebx
pop ecx
mov dword [0x4a6410], eax
je 0x4673d8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045c064
pop ecx
mov dword [0x4a640c], eax
mov eax, dword [0x4a640c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x467451
cmp dword [0x4a6410], esi
je 0x467451
push eax
call fcn.0045c0d0
pop ecx
call eax
cmp eax, ebx
je 0x46741e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4a6410]
call fcn.0045c0d0
pop ecx
call eax
test eax, eax
je 0x46741e
test byte [ebp - 0x18], 1
jne 0x467451
lea eax, [ebp - 0xc]
push eax
call fcn.00454573
test eax, eax
pop ecx
je 0x467439
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00453a07
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x467448
or dword [ebp + 0x10], 0x200000
jmp 0x467482
or dword [ebp + 0x10], 0x40000
jmp 0x467482
mov eax, dword [0x4a6404]
cmp eax, esi
je 0x467482
push eax
call fcn.0045c0d0
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x467482
mov eax, dword [0x4a6408]
cmp eax, esi
je 0x467482
push dword [ebp - 4]
push eax
call fcn.0045c0d0
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4a6400]
call fcn.0045c0d0
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46ae68
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x491d88]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0046adfd
mov eax, 0x400000
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.004530b0
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 0x46aeb7
cmp dword [ebp - 0x1c], 5
jb 0x46aecf
jmp 0x46aecb
cmp dword [ebp - 0x10], 1
jne 0x46aecf
cmp dword [ebp - 0x1c], 4
ja 0x46aecb
jne 0x46aecf
cmp dword [ebp - 0x18], 0
jbe 0x46aecf
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x481a58
call fcn.0046acee
test eax, eax
jge 0x46aef0
mov byte [0x4932a0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0045309e
add ebp, 0x78
leave
ret
Function at 0x10001160
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x10020118]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100201c0]
cmp eax, 0xffffffff
jne 0x10001353
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.MSVCR110.dll_memset
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.MSVCR110.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x100011ea
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
push 0x100151d8
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscat_s]
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000124b
mov dword [0x100201c0], 1
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f53c
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [0x100201c0], 0
call sub.MSVCR110.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.10001090
test eax, eax
je 0x1000134e
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call sub.MSVCR110.dll_memset
push 0x208
lea eax, [ebp - 0x824]
push 0
push eax
mov dword [ebp - method.CProfileIni.virtual_0], vtable.CProfileIni.0
call sub.MSVCR110.dll_memset
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0x24
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10001313
lea eax, [ebp - 0x824]
push eax
push 0x104
lea eax, [ebp - 0x61c]
push eax
push 0x10015290
push str.promote
push str.general
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x61c]
push 0x10015200
push eax
call dword [sym.imp.MSVCR110.dll__wcsicmp]
mov ecx, dword [0x100201c0]
add esp, 8
test eax, eax
mov edx, 1
cmove ecx, edx
mov dword [0x100201c0], ecx
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f53c
mov esp, ebp
pop ebp
ret
mov eax, dword [0x100201c0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f53c
mov esp, ebp
pop ebp
ret
Function at 0x100020c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0xc]
shr ecx, 2
mov eax, ecx
dec ecx
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 4]
test eax, eax
je 0x1000214b
inc ecx
mov ebx, dword [esi]
add esi, 4
mov eax, ebx
shr ebx, 8
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x100201e8]
xor edx, edi
mov eax, ebx
shr ebx, 8
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x100201e8]
xor edx, edi
mov eax, ebx
shr ebx, 8
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x100201e8]
xor edx, edi
mov eax, ebx
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x100201e8]
xor edx, edi
dec ecx
jne 0x100020e6
mov dword [ebp - 4], edx
mov dword [ebp - 8], esi
mov ebx, dword [ebp - 0x10]
and ebx, 3
je 0x10002188
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 8]
nop
movzx ecx, byte [esi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x100201e8]
inc esi
mov dword [ebp - 4], edx
mov dword [ebp - 8], esi
dec ebx
jne 0x10002160
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov dword [eax], edx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002260
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10020118]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x20]
or eax, 0x20019
push eax
push 0
push ecx
push edx
xor bl, bl
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100022ca
push dword [ebp - 0xc]
lea eax, [ebp + 0x14]
push edi
push eax
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, bl
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov eax, dword [ebp - 8]
test eax, eax
je 0x100022d8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1000f53c
mov esp, ebp
pop ebp
ret

Function at 0x10002b30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov edx, ecx
shr edx, 8
sub dl, 0x2b
lea eax, [ecx + 7]
or dl, al
mov eax, ecx
shr eax, 0x10
and dl, al
and dl, 0x55
shr ecx, 0x18
xor dl, cl
test edi, edi
jne 0x10002b62
pop edi
xor al, al
pop esi
pop ebp
ret
xor eax, eax
test esi, esi
je 0x10002b75
xor byte [eax + edi], dl
lea ecx, [eax + edi]
add dl, al
inc eax
cmp eax, esi
jb 0x10002b68
pop edi
mov al, 1
pop esi
pop ebp
ret
Function at 0x10002c00
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10020118]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10002c51
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f53c
mov esp, ebp
pop ebp
ret
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x10002c76
lea eax, [edi + 2]
push eax
call fcn.1000f0f6
mov ecx, eax
add esp, 4
mov dword [ebp - 0xc], ecx
test ecx, ecx
jne 0x10002c8f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f53c
mov esp, ebp
pop ebp
ret
push esi
xor esi, esi
test edi, edi
je 0x10002cba
push 0
lea eax, [ebp - 8]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ecx]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10002cba
add esi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
cmp esi, edi
jb 0x10002c96
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
cmp esi, edi
pop esi
jae 0x10002ce5
push eax
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f53c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov dword [eax], edi
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.1000f53c
mov esp, ebp
pop ebp
ret

Function at 0x10003920
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10003951
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 8], esi
call fcn.10010d80
mov dword [esp + 0xc], eax
test esi, esi
jne 0x10003959
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 0x10019ad0
lea ecx, [esp + 8]
call fcn.100037b0
int3