joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003bd0
Capabilities:
Extract resource via kernel32 functions
Get common file path
Get file size
Write file on windows

Disassembly:
sub esp, 0x124
mov eax, dword [0x1002ba4c]
xor eax, esp
mov dword [esp + 0x120], eax
call fcn.10005178
push eax
lea ecx, [esp + 4]
call fcn.10005f9f
call fcn.10008301
test eax, eax
jne 0x10003c06
push 0x80004005
call fcn.10001090
mov edx, dword [eax]
push ebx
push ebp
push esi
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov ebx, eax
push 0x104
lea ecx, [esp + 0x2c]
add ebx, 0x10
push ecx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.RtlExUpd.dll
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.HIDEWIN
mov edi, eax
push 0xbb8
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test esi, esi
mov dword [esp + 0x20], eax
je 0x10003d8a
test ebp, ebp
je 0x10003d8a
cmp dword [esp + 0x1c], 0
je 0x10003d8a
test eax, eax
je 0x10003d8a
push 0x104
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x1002375c
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x40]
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x10003cfe
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, dword [esp + 0x20]
je 0x10003d60
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x40]
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x10003d60
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x28]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x10003d60
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x18]
call fcn.10003b80
cmp dword [esp + 0x14], ebx
je 0x10003dc0
mov eax, dword [esp + 0x10]
push eax
jmp 0x10003db9
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x18]
call fcn.10003b80
cmp dword [esp + 0x14], 0
je 0x10003d83
mov ecx, dword [esp + 0x10]
push ecx
push 0
call fcn.10005742
mov eax, 1
jmp 0x10003dc2
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10003dad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x14], 0
je 0x10003dc0
mov ecx, dword [esp + 0x10]
push ecx
push 0
call fcn.10005742
xor eax, eax
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100105af
add esp, 0x124
ret
Function at 0x10003de0
Capabilities:
Extract resource via kernel32 functions
Get common file path
Get file size
Write file on windows

Disassembly:
sub esp, 0x124
mov eax, dword [0x1002ba4c]
xor eax, esp
mov dword [esp + 0x120], eax
call fcn.10005178
push eax
lea ecx, [esp + 4]
call fcn.10005f9f
call fcn.10008301
test eax, eax
jne 0x10003e16
push 0x80004005
call fcn.10001090
mov edx, dword [eax]
push ebx
push ebp
push esi
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov ebx, eax
push 0x104
lea ecx, [esp + 0x2c]
add ebx, 0x10
push ecx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.RtlExUpd.dll
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.RTKICON
mov edi, eax
push 0xbbe
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test esi, esi
mov dword [esp + 0x20], eax
je 0x10003f9a
test ebp, ebp
je 0x10003f9a
cmp dword [esp + 0x1c], 0
je 0x10003f9a
test eax, eax
je 0x10003f9a
push 0x104
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.RtkAudMgr.ico
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x40]
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x10003f0e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, dword [esp + 0x20]
je 0x10003f70
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x40]
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x10003f70
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x28]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x10003f70
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x18]
call fcn.10003b80
cmp dword [esp + 0x14], ebx
je 0x10003fd0
mov eax, dword [esp + 0x10]
push eax
jmp 0x10003fc9
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x18]
call fcn.10003b80
cmp dword [esp + 0x14], 0
je 0x10003f93
mov ecx, dword [esp + 0x10]
push ecx
push 0
call fcn.10005742
mov eax, 1
jmp 0x10003fd2
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10003fbd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x14], 0
je 0x10003fd0
mov ecx, dword [esp + 0x10]
push ecx
push 0
call fcn.10005742
xor eax, eax
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100105af
add esp, 0x124
ret
Function at 0x10003ff0
Capabilities:
Extract resource via kernel32 functions
Get common file path
Get file size
Write file on windows

Disassembly:
sub esp, 0x124
mov eax, dword [0x1002ba4c]
xor eax, esp
mov dword [esp + 0x120], eax
call fcn.10005178
push eax
lea ecx, [esp + 4]
call fcn.10005f9f
call fcn.10008301
test eax, eax
jne 0x10004026
push 0x80004005
call fcn.10001090
mov edx, dword [eax]
push ebx
push ebp
push esi
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov ebx, eax
push 0x104
lea ecx, [esp + 0x2c]
add ebx, 0x10
push ecx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.RtlExUpd.dll
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.BEATSICON
mov edi, eax
push 0xbc4
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test esi, esi
mov dword [esp + 0x20], eax
je 0x100041aa
test ebp, ebp
je 0x100041aa
cmp dword [esp + 0x1c], 0
je 0x100041aa
test eax, eax
je 0x100041aa
push 0x104
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Beats.ico
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x40]
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x1000411e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, dword [esp + 0x20]
je 0x10004180
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x40]
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x10004180
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x28]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x10004180
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x18]
call fcn.10003b80
cmp dword [esp + 0x14], ebx
je 0x100041e0
mov eax, dword [esp + 0x10]
push eax
jmp 0x100041d9
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x18]
call fcn.10003b80
cmp dword [esp + 0x14], 0
je 0x100041a3
mov ecx, dword [esp + 0x10]
push ecx
push 0
call fcn.10005742
mov eax, 1
jmp 0x100041e2
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100041cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x14], 0
je 0x100041e0
mov ecx, dword [esp + 0x10]
push ecx
push 0
call fcn.10005742
xor eax, eax
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100105af
add esp, 0x124
ret
Function at 0x10004e30
Capabilities:
Set registry value

Disassembly:
sub esp, 0x2b4
mov eax, dword [0x1002ba4c]
xor eax, esp
mov dword [esp + 0x2b0], eax
push ebx
push str.FUNC_01VEN_10EC
lea ecx, [esp + 0x14]
call fcn.10004d70
xor ebx, ebx
call fcn.10008301
cmp eax, ebx
jne 0x10004e68
push 0x80004005
call fcn.10001090
mov edx, dword [eax]
push esi
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
push 6
push ebx
mov edi, eax
push str.HDAUDIO
add edi, 0x10
push ebx
mov dword [esp + 0x2c], edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
je 0x10004fef
lea ecx, [esp + 0x20]
push ecx
push ebx
push esi
mov dword [esp + 0x2c], 0x1c
mov dword [esp + 0x20], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x10004fe8
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10004ed0
push 0
push 0x100
lea edx, [esp + 0x1c8]
push edx
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdA]
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x1c0]
mov byte [esp + eax + 0xc0], cl
add eax, 1
test cl, cl
jne 0x10004ef0
mov byte [esp + 0xf1], cl
lea ecx, [esp + 0x10]
push ecx
push str.SOFTWARERealtekInstallShield
push 0x80000002
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10004f62
push ebx
lea edx, [esp + 0x44]
push str.HDAPnPID__d
push edx
call fcn.100111da
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 0x100
lea eax, [esp + 0xc4]
push eax
push 1
push esi
lea ecx, [esp + 0x50]
push ecx
push edx
call edi
mov eax, dword [esp + 0x10]
push eax
mov esi, 1
call ebp
lea ecx, [esp + 0x10]
push ecx
push str.SOFTWARERealtekAudioInstaller
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10004fb4
push ebx
lea edx, [esp + 0x44]
push str.HDAPnPID__d
push edx
call fcn.100111da
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 0x100
lea eax, [esp + 0xc4]
push eax
push 1
push 0
lea ecx, [esp + 0x50]
push ecx
push edx
call edi
mov eax, dword [esp + 0x10]
push eax
call ebp
jmp 0x10004fb8
test esi, esi
je 0x10004fbb
add ebx, 1
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x24]
add eax, 1
push ecx
push eax
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
mov esi, dword [esp + 0x14]
jne 0x10004ed0
mov edi, dword [esp + 0x20]
pop ebp
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
jg 0x1000500d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000502d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2b4]
pop ebx
xor ecx, esp
mov eax, 1
call fcn.100105af
add esp, 0x2b4
ret
Function at 0x100064ad
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x1002ba4c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x100064ed
push 0x10023c70
push 4
push eax
call fcn.10011f1b
push eax
call fcn.10001000
add esp, 0x10
jmp 0x100064ff
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1000656d
push edi
call fcn.100118fe
mov edi, dword [eax]
call fcn.100118fe
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.10011271
add esp, 0x18
mov ebx, eax
call fcn.100118fe
cmp dword [eax], 0
je 0x1000654d
call fcn.100118fe
push dword [eax]
call fcn.100055b2
pop ecx
jmp 0x10006554
call fcn.100118fe
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x1000656d
cmp ebx, esi
jae 0x1000656d
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x1000656f
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100105af
leave
ret
Function at 0x100105af
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002ba4c]
jne 0x100105b9
repz ret
jmp fcn.100160fc

Function at 0x10015ef7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1002c348]
je 0x10015f12
inc edi
cmp edi, 0x17
jb 0x10015f03
cmp edi, 0x17
jae 0x10016092
push ebp
push 3
call fcn.1001c6d5
cmp eax, 1
pop ecx
je 0x1001605e
push 3
call fcn.1001c6d5
test eax, eax
pop ecx
jne 0x10015f46
cmp dword [0x1002ed70], 1
je 0x1001605e
cmp ebx, 0xfc
je 0x10016091
push 0x10025410
mov ebx, 0x314
push ebx
mov ebp, 0x1002ef78
push ebp
call fcn.10011f1b
add esp, 0xc
test eax, eax
je 0x10015f7c
push esi
push esi
push esi
push esi
push esi
call fcn.10014f10
add esp, 0x14
push 0x104
mov esi, 0x1002ef91
push esi
push 0
mov byte [0x1002f095], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10015fc0
push 0x100253f8
push 0x2fb
push esi
call fcn.10011f1b
add esp, 0xc
test eax, eax
je 0x10015fc0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10014f10
add esp, 0x14
push esi
call fcn.100117e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10016005
push esi
call fcn.100117e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1002f28c
push 0x100253f4
sub ecx, eax
push ecx
push eax
call fcn.10013bb3
add esp, 0x14
test eax, eax
je 0x10016005
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10014f10
add esp, 0x14
jmp 0x10016007
xor esi, esi
push 0x100253f0
push ebx
push ebp
call fcn.10012007
add esp, 0xc
test eax, eax
je 0x10016027
push esi
push esi
push esi
push esi
push esi
call fcn.10014f10
add esp, 0x14
push dword [edi*8 + 0x1002c34c]
push ebx
push ebp
call fcn.10012007
add esp, 0xc
test eax, eax
je 0x10016049
push esi
push esi
push esi
push esi
push esi
call fcn.10014f10
add esp, 0x14
push 0x12010
push 0x100253c8
push ebp
call fcn.1001c518
add esp, 0xc
jmp 0x10016091
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10016091
cmp ebp, 0xffffffff
je 0x10016091
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1002c34c]
push dword [esi]
call fcn.100117e0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1001c518
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.100149bb
xor ebx, ebx
cmp dword [0x1002f800], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1001c5ee
push 0x10026684
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1001c6ce
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10026678
push edi
call esi
cmp eax, ebx
je 0x1001c6ce
push eax
call fcn.1001494d
mov dword [esp], 0x10026668
push edi
mov dword [0x1002f800], eax
call esi
push eax
call fcn.1001494d
mov dword [esp], 0x10026654
push edi
mov dword [0x1002f804], eax
call esi
push eax
call fcn.1001494d
mov dword [0x1002f808], eax
lea eax, [ebp - 0xc]
push eax
call fcn.100119eb
test eax, eax
pop ecx
pop ecx
je 0x1001c5bc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10014f10
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1001c5ee
push 0x10026638
push edi
call esi
push eax
call fcn.1001494d
cmp eax, ebx
pop ecx
mov dword [0x1002f810], eax
je 0x1001c5ee
push 0x10026620
push edi
call esi
push eax
call fcn.1001494d
pop ecx
mov dword [0x1002f80c], eax
mov eax, dword [0x1002f80c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1001c673
cmp dword [0x1002f810], ecx
je 0x1001c673
push eax
call fcn.100149c4
push dword [0x1002f810]
mov esi, eax
call fcn.100149c4
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1001c673
cmp edi, ebx
je 0x1001c673
call esi
cmp eax, ebx
je 0x1001c640
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001c640
test byte [ebp - 0x18], 1
jne 0x1001c673
lea eax, [ebp - 0x10]
push eax
call fcn.10011a22
test eax, eax
pop ecx
je 0x1001c65b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10014f10
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1001c66a
or dword [ebp + 0x10], 0x200000
jmp 0x1001c6ae
or dword [ebp + 0x10], 0x40000
jmp 0x1001c6ae
mov eax, dword [0x1002f804]
cmp eax, dword [ebp - 8]
je 0x1001c6ae
push eax
call fcn.100149c4
cmp eax, ebx
pop ecx
je 0x1001c6ae
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1001c6ae
mov eax, dword [0x1002f808]
cmp eax, dword [ebp - 8]
je 0x1001c6ae
push eax
call fcn.100149c4
cmp eax, ebx
pop ecx
je 0x1001c6ae
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1002f800]
call fcn.100149c4
cmp eax, ebx
pop ecx
je 0x1001c6ce
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001c6d0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10021888
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x1002ba4c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.1002181d
mov eax, 0x10000000
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.10011160
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 0x100218d7
cmp dword [ebp - 0x1c], 5
jb 0x100218ef
jmp 0x100218eb
cmp dword [ebp - 0x10], 1
jne 0x100218ef
cmp dword [ebp - 0x1c], 4
ja 0x100218eb
jne 0x100218ef
cmp dword [ebp - 0x18], 0
jbe 0x100218ef
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x10026708
call fcn.100216f1
test eax, eax
jge 0x10021910
mov byte [0x1002cf7c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100105af
add ebp, 0x78
leave
ret
Function at 0x406234
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x406243
pop dword [ebp - 0x20]
mov eax, 0x5c1a3996
add eax, 0xa42628ad
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xb46b9c98
add dword [ebp - 0x30], 0x99e6a8b3
mov dword [ebp - 0x2c], 0xf4abdb20
sub dword [ebp - 0x2c], 0xc2788edb
mov dword [ebp - 0x28], 0xe67c11f8
sub dword [ebp - 0x28], 0x9a2fcdca
mov dword [ebp - 0x24], 0x7c457f2b
add dword [ebp - 0x24], 0x83ba80d5
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x9091bec8
sub dword [ebp - 0x30], 0x1c1f5572
mov dword [ebp - 0x2c], 0xdcd68129
add dword [ebp - 0x2c], 0x6495e04c
mov dword [ebp - 0x28], 0x3b5151aa
add dword [ebp - 0x28], 0x281e1ac2
mov dword [ebp - 0x24], 0x51675eb4
add dword [ebp - 0x24], 0xae98a14c
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x37577
push 0
call eax
mov ecx, 0xc8e359e9
sub ecx, 0xc8e310a3
xor ebx, ebx
add ebx, eax
mov esi, 0x46e400
add esi, dword [ebp - 0x20]
mov edi, 0x5da5c00b
sub edi, 0x7155b65c
mov edx, dword [esi]
xor dword [ebp - 0x1c], 0x6a6c670b
xor edx, edi
sub dword [ebp - 0xc], 0x25571aac
mov dword [ebx], edx
mov dword [ebp - 0x10], 0x3793f57d
add ebx, 0x4f5bcd22
sub ebx, 0x4f5bcd1e
add esi, 0x56a4ff3a
sub esi, 0x56a4ff36
loop 0x406357
add eax, 0xc56c802f
add eax, 0x3a9497bc
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x40669d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4066d4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4066ae
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4066a9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406705
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x4066e7
pop edi
not eax
pop esi
ret 0xc