joyce8/EMBER2024-capa huggingface dataset:
Function at 0x481e40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x481e65
cmp dword [eax + 0x208], 0
jne 0x481e6d
lea eax, [ebp + 0xc]
push eax
call fcn.00483170
add esp, 4
mov al, 2
mov esp, ebp
pop ebp
ret 8
push ebx
push esi
push edi
push dword [0x6f23dc]
mov dword [ebp - 8], 0
xor bl, bl
mov edi, dword [eax + 0x21c]
movzx esi, word [eax + 0x234]
mov dword [ebp - 4], 0
lea eax, [edi + 1]
imul esi, eax
call fcn.0052f54b
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x20c], eax
push dword [0x6f23dc]
mov eax, dword [ebp + 0xc]
push 0xffffffffffffffff
push dword [eax + 0x20c]
call fcn.0052f1e0
mov edx, dword [ebp + 0xc]
add esp, 0x10
mov dword [ebp - 0xc], 0
cmp dword [edx + 0x220], 0
jbe 0x481f9e
jmp 0x481ee0
cmp byte [0x6f2444], 1
je 0x481fd9
test edi, edi
js 0x481fc1
movzx eax, word [edx + 0x234]
shr eax, 2
imul eax, dword [edx + 0x214]
cmp edi, eax
jle 0x481f19
push str.SAT_index_out_of_bounds._n
call fcn.004812b0
add esp, 4
mov bl, 1
push 0
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp + 0xc]
test bl, bl
jne 0x481f42
mov eax, dword [edx + 0x208]
mov esi, dword [eax + edi*4]
movzx eax, word [edx + 0x234]
inc esi
imul esi, eax
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
push 0
push eax
movzx eax, word [edx + 0x234]
push eax
mov eax, dword [edx + 0x20c]
shr ecx, 2
lea eax, [eax + ecx*4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add dword [ebp - 4], ecx
movzx eax, word [edx + 0x234]
cmp ecx, eax
jb 0x481fa9
cmp bl, 1
je 0x481fce
mov eax, dword [edx + 0x208]
mov edi, dword [eax + edi*4]
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, dword [edx + 0x220]
jb 0x481ee0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.Premature_end_of_file_encountered_while_building_the_Short_SAT._n
call fcn.004812b0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.Invalid_SAT_termination_index._n
call fcn.004812b0
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp + 0xc]
push eax
call fcn.00483170
add esp, 4
mov al, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x481ff0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0x8c]
test esi, esi
je 0x48219e
cmp dword [esi + 0x208], 0
je 0x48219e
mov ecx, dword [ebp + 0x84]
push edi
test ecx, ecx
je 0x482194
mov edi, dword [ebp + 0x80]
test edi, edi
js 0x482194
movzx edx, word [esi + 0x234]
lea eax, [edi + 1]
imul eax, edx
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], 0
push ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov byte [ebp + 0x8f], bl
call fcn.0052f54b
push dword [ebp + 0x84]
mov dword [esi + 0x210], eax
push ebx
push eax
call fcn.0052f1e0
add esp, 0x10
cmp dword [ebp + 0x84], ebx
jbe 0x48214e
lea ebx, [ebx]
cmp byte [0x6f2444], 1
je 0x482189
test edi, edi
js 0x482171
movzx eax, word [esi + 0x234]
shr eax, 2
imul eax, dword [esi + 0x214]
cmp edi, eax
jle 0x4820be
push str.SAT_index_out_of_bounds._n
call fcn.004812b0
add esp, 4
mov byte [ebp + 0x8f], 1
push 0
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [ebp + 0x8f], 0
jne 0x4820ee
mov eax, dword [esi + 0x208]
mov ecx, dword [eax + edi*4]
movzx eax, word [esi + 0x234]
inc ecx
imul ecx, eax
mov dword [ebp - 8], ecx
movzx eax, word [esi + 0x234]
mov ecx, dword [ebp + 0x84]
add eax, ebx
cmp eax, ecx
jbe 0x48210a
mov eax, ecx
sub eax, ebx
mov dword [ebp - 4], eax
jmp 0x48210d
mov eax, dword [ebp - 4]
push 0
lea ecx, [ebp - 0xc]
push ecx
push eax
mov eax, dword [esi + 0x210]
add eax, ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xc]
add ebx, eax
cmp eax, dword [ebp - 4]
jb 0x482159
cmp byte [ebp + 0x8f], 1
je 0x482166
mov eax, dword [esi + 0x208]
mov edi, dword [eax + edi*4]
cmp ebx, dword [ebp + 0x84]
jb 0x482080
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0x88
push str.Premature_end_of_file_encountered_while_building_the_short_stream_container._n
call fcn.004812b0
add esp, 4
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x88
push str.Invalid_SAT_termination_index._n
call fcn.004812b0
add esp, 4
xor al, al
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x88
pop ebx
pop edi
mov al, 2
pop esi
mov esp, ebp
pop ebp
ret 0x88
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0x88
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x88
Function at 0x483620
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x48366e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x483630
sub ecx, edx
xor edx, edx
sar ecx, 1
dec ecx
test ecx, ecx
jle 0x48366e
jmp 0x483650
mov ax, word [esi + ecx*2]
xor word [esi + edx*2], ax
movzx eax, word [esi + edx*2]
xor word [esi + ecx*2], ax
movzx eax, word [esi + ecx*2]
dec ecx
xor word [esi + edx*2], ax
inc edx
cmp edx, ecx
jl 0x483650
pop esi
pop ebp
ret
Function at 0x484020
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x624c6c
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x6e4770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x6ee738]
test eax, eax
jne 0x48408b
push 0x154
call fcn.0052d905
add esp, 4
mov dword [ebp - 0x448], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x48407d
mov ecx, eax
call fcn.0047b690
jmp 0x48407f
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x6ee738], eax
mov ecx, eax
call fcn.00497e70
mov esi, eax
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push esi
push 0xffffffffffffffff
push str.KanTuUpOnlineData
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
movzx ecx, word [ebp - 0x43e]
cmp eax, ecx
je 0x484249
xor eax, eax
xorps xmm0, xmm0
push ecx
mov word [ebp - 0x24], ax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x24]
push 0x644938
push eax
movdqu xmmword [ebp - 0x22], xmm0
call fcn.0047b670
add esp, 0xc
lea eax, [ebp - 0x24]
push esi
push eax
push str.KanTuUpOnlineData
push str.Setting
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x22c], ax
lea eax, [ebp - 0x22a]
push eax
call fcn.0052f1e0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x434], ax
lea eax, [ebp - 0x432]
push eax
call fcn.0052f1e0
mov eax, dword [0x6ee738]
add esp, 0x18
test eax, eax
jne 0x484173
push 0x154
call fcn.0052d905
add esp, 4
mov dword [ebp - 0x448], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x484165
mov ecx, eax
call fcn.0047b690
jmp 0x484167
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x6ee738], eax
mov ecx, eax
call fcn.00497e50
lea edx, [ebp - 0x434]
sub edx, eax
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x484182
lea edi, [ebp - 0x434]
add edi, 0xfffffffe
jmp 0x4841a0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4841a0
mov ecx, 8
mov esi, str.WnPicUtility.exe
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
movsw word es:[edi], word [esi]
lea esp, [esp]
movzx eax, word [ecx + 0x6429a4]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x22e], ax
test ax, ax
jne 0x4841c0
lea edx, [ebp - 0x434]
mov esi, edx
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4841e0
lea edi, [ebp - 0x22c]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4841f6
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x22c]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x484220
mov ecx, 8
lea eax, [ebp - 0x22c]
mov esi, str.__UpOnlineData_1
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call fcn.00499de0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052dfa4
mov esp, ebp
pop ebp
ret
Function at 0x486b30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
add ecx, 0x8e0
cmp dword [ecx + 0x14], 8
jb 0x486b3e
mov ecx, dword [ecx]
push esi
push edi
mov edi, dword [sym.WnPicViewer.exe_public:_static_struct_HINSTANCE______cdecl_UiLib::CPaintManagerUI::GetResourceDll_void_]
push str.ZIPRES
push ecx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x486b74
push ebx
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push esi
test ebx, ebx
jne 0x486b77
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
pop esi
ret
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x486b73
push edi
call fcn.0052cd80
mov ecx, dword [sym.WnPicViewer.exe_unsigned_char__UiLib::WindowImplBase::m_lpResourceZIPBuffer]
add esp, 4
mov dword [ecx], eax
mov ecx, dword [sym.WnPicViewer.exe_unsigned_char__UiLib::WindowImplBase::m_lpResourceZIPBuffer]
cmp dword [ecx], 0
je 0x486bba
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov eax, dword [sym.WnPicViewer.exe_unsigned_char__UiLib::WindowImplBase::m_lpResourceZIPBuffer]
push dword [eax]
call fcn.0052e410
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [sym.WnPicViewer.exe_unsigned_char__UiLib::WindowImplBase::m_lpResourceZIPBuffer]
push edi
push dword [eax]
call dword [0x693b08]
add esp, 8
pop ebx
pop edi
pop esi
jmp dword [0x693b0c]
Function at 0x48aa60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x625e58
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x6e4770]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 0x8ec]
test edi, edi
je 0x48ab04
push dword [ebp + 8]
movzx eax, byte [esi + 0x8f0]
mov ecx, edi
mov edx, dword [edi]
push eax
push 1
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], 0
push eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0x80004004
jne 0x48aacd
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x80004005
je 0x48aab8
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x10]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
push 0
mov dword [esi + 0x8ec], 0
call fcn.004785e0
mov ecx, eax
call fcn.00487010
mov eax, dword [esi + 0x9d8]
lea edi, [esi + 0x9d8]
mov ecx, edi
mov dword [ebp - 0x18], edi
call dword [eax]
mov byte [ebp - 0x14], 1
mov ecx, dword [esi + 0x9e8]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x48abc5
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test al, al
je 0x48ab9f
push dword [esi + 0x944]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esi + 0x960]
push 0
call fcn.004b13d0
mov ecx, dword [esi + 0x960]
push 0
push 0
mov eax, dword [ecx]
call dword [eax + 4]
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movdqu xmmword [ebp - 0x30], xmm0
movq qword [ebp - 0x20], xmm0
lea ebx, [ebx]
push 1
push 0x113
push 0x113
push dword [esi + 4]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x48ab80
jmp 0x48abc5
mov ecx, dword [esi + 0x9e8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
test al, al
je 0x48abc5
mov ecx, dword [esi + 0x964]
push 0
call dword [0x693a60]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.00489340
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call dword [eax + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x48bb60
Capabilities:
Check for time delay via gettickcount
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x625f93
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6e4770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov ecx, dword [edi + 0x8ec]
lea edx, [ebp - 0x28]
mov dword [ebp - 4], eax
push edx
push dword [edi + 0x8f4]
mov eax, dword [ecx]
call dword [eax + 0x18]
push dword [edi + 0x944]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [edi + 0x960]
push 0
call fcn.004b13d0
mov ecx, dword [edi + 0x960]
push 0
push 0
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi + 0x964]
push 0
call dword [0x693a60]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea esi, [edi + 0x900]
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.005526f0
add esp, 8
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.005523d0
mov ecx, dword [edi + 0x97c]
push 0
push 0
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi + 0x97c]
mov eax, dword [ecx]
call dword [eax + 0xb8]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
cmovae eax, dword [ebp - 0x28]
push 0x646134
push eax
movdqu xmmword [edi + 0xa30], xmm0
call fcn.00531faa
mov esi, eax
add esp, 8
test esi, esi
jne 0x48bc64
xor al, al
jmp 0x48bd51
push esi
call fcn.00532089
push eax
call fcn.005320ad
push esi
mov dword [edi + 0xa00], eax
call fcn.0052fad2
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0xc
call esi
sub eax, dword [edi + 0xa04]
mov ecx, dword [edi + 0x950]
cmp eax, 0x78
jae 0x48bd28
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
lea eax, [edi + 0x8b4]
push eax
push dword [edi + 4]
lea eax, [ebp - 0x28]
push dword [edi + 0xa00]
push eax
call fcn.0049f990
test al, al
je 0x48bcff
push 0x24
call fcn.0052d905
add esp, 4
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x48bcf1
push 0
push dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
push dword [edi + 0x8f4]
push ecx
mov ecx, eax
call fcn.004888b0
jmp 0x48bcf3
xor eax, eax
push eax
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.0048a560
push dword [edi + 0xa08]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push 0x78
push 0x46e
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [edi + 0xa08], eax
jmp 0x48bd47
lea eax, [edi + 0x8b4]
push eax
push dword [edi + 4]
lea eax, [ebp - 0x28]
push dword [edi + 0x8f4]
push dword [edi + 0xa00]
push eax
call fcn.004a0660
call esi
mov dword [edi + 0xa04], eax
mov al, 1
cmp dword [ebp - 0x14], 8
mov byte [ebp - 0x29], al
jb 0x48bd68
push dword [ebp - 0x28]
call fcn.0052d900
mov al, byte [ebp - 0x29]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052dfa4
mov esp, ebp
pop ebp
ret 8
Function at 0x48d740
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63300b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6e4770]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [0x6f0680]
test edi, edi
jne 0x48d7a1
push 4
call fcn.0052d905
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
test eax, eax
je 0x48d792
mov ecx, eax
call fcn.004a3e90
mov edi, eax
jmp 0x48d794
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov dword [0x6f0680], edi
mov eax, dword [edi]
mov ecx, edi
push 7
call dword [eax]
test eax, eax
je 0x48d854
mov eax, dword [edi]
mov ecx, edi
push 9
call dword [eax]
push 0x11
mov edi, eax
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x48d803
test edi, edi
jne 0x48d803
mov ecx, esi
cmp word [ebp + 8], di
jle 0x48d7eb
call fcn.0048e830
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
call fcn.0048be70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
cmp byte [esi + 0x8f8], 0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x10], eax
je 0x48d854
mov ecx, esi
mov byte [esi + 0x880], 1
call fcn.00491960
cmp word [ebp + 8], 0
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
push 1
jle 0x48d84f
call fcn.00493380
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
call fcn.00493420
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x495f60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6277b6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x6e4770]
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 esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], 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
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x49600c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x49600c
call fcn.00494fa0
mov esi, eax
jmp 0x4960fc
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x49602f
call fcn.00494fa0
jmp 0x4960ef
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x49604d
call fcn.00494fa0
jmp 0x4960ef
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x49606e
mov esi, 0x8007000e
jmp 0x4960f1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00494d80
jmp 0x496098
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x4960af
mov esi, 0x8007000e
jmp 0x4960f1
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4960cf
call fcn.00494fa0
jmp 0x4960ef
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.00495e00
mov esi, eax
test edi, edi
je 0x4960fc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x496120
lea ecx, [ebp - 0x418]
call fcn.00495650
jmp 0x496120
mov eax, esi
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.0052dfa4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x496a40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x496a59
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x496a65
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x496a60
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x496aa0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x496ab5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x496ac0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x496ac0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x497800
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62792b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6e4770]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x10], edx
xor ecx, ecx
mov dword [edx + 0x30], 7
mov dword [edx + 0x2c], 0
mov word [edx + 0x1c], cx
mov dword [ebp - 4], ecx
xor eax, eax
lea ecx, [edx + 0x34]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
xor esi, esi
mov dword [edx + 0x60], 7
mov dword [edx + 0x5c], eax
mov word [edx + 0x4c], si
mov dword [edx + 0x78], 7
mov dword [edx + 0x74], esi
mov word [edx + 0x64], si
mov dword [edx + 0x90], 7
mov dword [edx + 0x8c], esi
mov word [edx + 0x7c], ax
mov dword [edx + 0xa8], 7
mov dword [edx + 0xa4], esi
mov word [edx + 0x94], si
mov dword [edx + 0xc0], 7
mov dword [edx + 0xbc], esi
mov word [edx + 0xac], si
mov dword [edx + 0xd8], 7
mov dword [edx + 0xd4], esi
mov word [edx + 0xc4], si
lea ebx, [edx + 0xdc]
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], esi
mov word [ebx], ax
lea edi, [edx + 0xf4]
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], esi
mov word [edi], ax
lea esi, [edx + 0x10c]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], eax
mov word [esi], ax
push eax
push 0x642138
mov byte [ebp - 4], 0xa
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
mov word [edx + 0x18], ax
call fcn.00470470
mov ecx, dword [ebp - 0x10]
push 0
push 0x642138
lea ecx, [ecx + 0x1c]
call fcn.00470470
mov ecx, dword [ebp - 0x10]
push 0
push 0x642138
lea ecx, [ecx + 0x64]
call fcn.00470470
mov ecx, dword [ebp - 0x10]
push 0
push 0x642138
lea ecx, [ecx + 0x94]
call fcn.00470470
mov ecx, dword [ebp - 0x10]
push 0
push 0x642138
lea ecx, [ecx + 0x4c]
call fcn.00470470
mov ecx, dword [ebp - 0x10]
push 0
push 0x642138
lea ecx, [ecx + 0xac]
call fcn.00470470
mov ecx, dword [ebp - 0x10]
push 0
push 0x642138
lea ecx, [ecx + 0xc4]
call fcn.00470470
push 0
push 0x642138
mov ecx, ebx
call fcn.00470470
push 0
push 0x642138
mov ecx, edi
call fcn.00470470
push 0
push 0x642138
mov ecx, esi
call fcn.00470470
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret