joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10044c61
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, 0x100b328d
call fcn.10096468
sub esp, 0x68
mov eax, dword [0x100f2810]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push dword [0x100efd80]
mov esi, ecx
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x10], eax
call fcn.1002da34
push 0xffffffffffffffff
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], ebx
call fcn.1002d41c
push dword [esi + 0x80]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x59], bl
call fcn.10001f91
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.1001f078
mov dword [esp], 0x100bd608
push str.209
push dword [0x100f414c]
call dword [0x100f3924]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x64], edi
je 0x10044d6a
push edi
push dword [0x100f414c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x60], eax
je 0x10044d6a
push edi
push dword [0x100f414c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x60]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, dword [esi + 0x74]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push esi
mov dword [ebp - 0x68], eax
call dword [0x100f3904]
mov esi, eax
cmp esi, 0xffffffff
je 0x10044d6a
push ebx
lea eax, [ebp - 0x60]
push eax
push edi
push dword [ebp - 0x68]
mov dword [ebp - 0x60], ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x60], edi
jne 0x10044d63
lea eax, [ebp - 0x6c]
push eax
push eax
push eax
push esi
mov dword [ebp - 0x6c], 0xaaf4ee00
mov dword [ebp - 0x68], 0x1bf53f3
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov byte [ebp - 0x59], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x100f3bc8], bl
je 0x10044db9
cmp dword [ebp - 0x64], ebx
mov eax, str.succeeded
jne 0x10044d81
mov eax, str.failed
push eax
xor eax, eax
cmp dword [ebp - 0x64], ebx
push str.Restore_configuration_file__s
sete al
push str.Guru
lea ecx, [ebp - 0x74]
lea eax, [eax + eax + 2]
push eax
push 0x106
push str.HbGuru::RestoreConfigFile
push str..GuruHbGuru.cpp
call fcn.100014f6
push eax
call fcn.1001b9ac
add esp, 0x14
lea ecx, [ebp - 0x58]
call fcn.1002d421
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001aed
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.1002d879
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x59]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.10095c5f
leave
ret
Function at 0x10046c68
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
mov eax, 0x100b3640
call fcn.10096468
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
push edi
mov dword [ebp - 0x14], esi
mov dword [esi + 4], 0x100c6754
mov eax, dword [0x100f39c4]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x24], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], eax
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 1
mov dword [esi + 0x44], ebx
mov byte [esi + 0x48], bl
mov byte [esi + 0x49], bl
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
call fcn.1004272e
lea edi, [esi + 0x68]
mov dword [edi], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
lea ecx, [esi + 0x90]
mov byte [ebp - 4], 0xc
call fcn.100442d0
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0xb0], ebx
lea ecx, [esi + 0xb8]
call fcn.10042d25
push 0x100c6c44
mov ecx, edi
mov byte [ebp - 4], 0x14
call fcn.10024ed1
push dword [0x100ca640]
lea ecx, [ebp - 0x10]
call fcn.1000136b
mov byte [ebp - 4], 0x15
push eax
lea ecx, [esi + 0x6c]
call fcn.1003e98d
push dword [ebp - 0x10]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 0x14
call ebx
push dword [0x100ca644]
lea ecx, [ebp - 0x10]
call fcn.1000136b
push eax
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 0x16
call fcn.1003e98d
push dword [ebp - 0x10]
mov byte [ebp - 4], 0x14
call ebx
push 0x100c6c3c
lea ecx, [esi + 0x78]
call fcn.10024ed1
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x10055948
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x100b4816
call fcn.10096468
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
push dword [ebp + 0xc]
lea ebx, [esi + 0xc]
mov ecx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x100c955c
mov dword [esi + 8], eax
call fcn.1000136b
push dword [ebp + 0x10]
and dword [ebp - 4], 0
lea ecx, [esi + 0x10]
call fcn.1000136b
push dword [ebp + 0x14]
mov byte [ebp - 4], 1
lea edi, [esi + 0x14]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
push dword [ebp + 0x14]
mov ecx, edi
call fcn.1001f47e
and dword [esi + 0x30], 0
lea edi, [esi + 0x34]
and dword [edi], 0
and dword [esi + 4], 0
push str.persist.dbs
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 4
call fcn.10003899
call fcn.1003174c
push 0x100bf1b0
mov ecx, edi
mov dword [esi + 0x38], eax
call fcn.10024ed1
push ebx
mov ecx, edi
call fcn.100014a1
push 0x100bf1ac
mov ecx, edi
call fcn.10001849
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x10060370
Capabilities:
Get file version info

Disassembly:
mov eax, 0x100b5dfa
call fcn.10096468
sub esp, 0x30
mov eax, dword [0x100f2810]
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
test eax, eax
push esi
push edi
mov dword [ebp - 0x38], ecx
je 0x10060398
push eax
call fcn.10095f6e
pop ecx
mov edi, dword [ebp + 8]
and dword [ebp - 0x34], 0
cmp dword [edi + 0x18], 8
lea ebx, [edi + 4]
jb 0x100603ac
mov eax, dword [ebx]
jmp 0x100603ae
mov eax, ebx
lea ecx, [ebp - 0x34]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
push 0
lea ecx, [ebp - 0x2c]
setne byte [ebp - 0x2d]
mov dword [ebp - 0x14], 0xf
call fcn.100076c3
and dword [ebp - 4], 0
cmp byte [ebp - 0x2d], 0
jne 0x10060441
call dword [0x100ef0d0]
cmp dword [edi + 0x18], 8
mov dword [ebp - 0x3c], eax
jb 0x100603ee
mov edi, dword [ebx]
jmp 0x100603f0
mov edi, ebx
test edi, edi
jne 0x100603f8
xor eax, eax
jmp 0x1006041d
push edi
call dword [0x100f3998]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.10096da0
mov eax, esp
push dword [ebp - 0x3c]
push esi
push edi
push eax
call fcn.100602b5
push eax
lea ecx, [ebp - 0x2c]
call fcn.10008623
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x10060432
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x34]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, dword [ebp + 8]
mov esi, eax
push esi
call fcn.100957c0
mov ecx, dword [ebp - 0x38]
push esi
push 0
push eax
mov dword [ecx], eax
call fcn.10095d80
add esp, 0x10
cmp byte [ebp - 0x2d], 0
je 0x10060477
cmp dword [edi + 0x18], 8
jb 0x10060466
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x38]
push dword [eax]
push esi
push dword [ebp - 0x34]
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
jmp 0x10060492
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x10060483
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x38]
push dword [ecx]
push esi
push dword [ebp - 0x34]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
push 0
push 1
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.10007b0a
mov eax, esi
lea esp, [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.10095c5f
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10065b0b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x100f2810]
push esi
mov esi, ecx
cmp byte [esi + 0x110], 0
mov dword [ebp - 4], eax
jne 0x10065b3f
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10065b3f
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x10065bb4
push ebx
lea eax, [ebp - 0x44]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_BeginPaint]
mov ebx, eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x34]
jne 0x10065b5d
cmp dword [ebp - 0x3c], 0
je 0x10065ba6
push edi
lea eax, [ebp - 0x54]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push 2
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push 0x17
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edi, eax
push edi
push dword [esi + 0xa4]
push ebx
call dword [sym.imp.GDI32.dll_FillRgn]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
lea eax, [ebp - 0x44]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndPaint]
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
call fcn.10095c5f
leave
ret 0x10

Function at 0x10066193
Capabilities:
Hide graphical window

Disassembly:
cmp byte [ecx + 0x110], 0
je 0x100661a8
mov byte [ecx + 0x114], 1
jmp fcn.10065d74
ret 4
Function at 0x10067ecd
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0x100b693d
call fcn.10096468
sub esp, 0x28
mov eax, dword [0x100f2810]
push esi
xor esi, esi
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x14], 0xf
call fcn.100076c3
mov eax, dword [ebp + 0x10]
cmp eax, esi
mov dword [ebp - 4], esi
je 0x10068033
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
push ebx
mov al, byte [edi]
mov byte [ebp + esi + 0x10], al
mov bl, byte [ebp + 0x11]
inc esi
inc edi
cmp esi, 3
jne 0x10067f84
mov al, byte [ebp + 0x10]
shr al, 2
mov byte [ebp - 0x30], al
mov al, byte [ebp + 0x10]
and al, 3
shl al, 4
mov cl, bl
shr cl, 4
add al, cl
mov cl, byte [ebp + 0x12]
mov byte [ebp - 0x2f], al
mov al, bl
and al, 0xf
shl al, 2
shr cl, 6
add al, cl
mov byte [ebp - 0x2e], al
mov al, byte [ebp + 0x12]
and al, 0x3f
mov byte [ebp - 0x2d], al
xor esi, esi
cmp dword [0x100f421c], 0x10
mov eax, dword [0x100f4208]
jae 0x10067f68
mov eax, 0x100f4208
movzx ecx, byte [ebp + esi - 0x30]
movsx eax, byte [ecx + eax]
push eax
push 1
lea ecx, [ebp - 0x2c]
call fcn.100229b0
inc esi
cmp esi, 4
jl 0x10067f55
xor esi, esi
dec dword [ebp - 0x34]
jne 0x10067f0e
test esi, esi
je 0x10068031
cmp esi, 3
jge 0x10067fb2
push 3
pop ecx
sub ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
lea edi, [ebp + esi + 0x10]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov bl, byte [ebp + 0x11]
mov al, byte [ebp + 0x10]
mov cl, al
shr cl, 2
mov byte [ebp - 0x30], cl
and al, 3
mov cl, bl
shl al, 4
shr cl, 4
add al, cl
mov byte [ebp - 0x2f], al
mov al, byte [ebp + 0x12]
and bl, 0xf
mov cl, al
shl bl, 2
shr cl, 6
add bl, cl
mov byte [ebp - 0x2e], bl
and al, 0x3f
lea edi, [esi + 1]
xor ebx, ebx
test edi, edi
mov byte [ebp - 0x2d], al
jle 0x10068019
cmp dword [0x100f421c], 0x10
mov eax, dword [0x100f4208]
jae 0x10068000
mov eax, 0x100f4208
movzx ecx, byte [ebp + ebx - 0x30]
movsx eax, byte [ecx + eax]
push eax
push 1
lea ecx, [ebp - 0x2c]
call fcn.100229b0
inc ebx
cmp ebx, edi
jl 0x10067fed
push 3
pop edi
cmp esi, edi
jge 0x10068031
sub edi, esi
push 0x3d
push 1
lea ecx, [ebp - 0x2c]
call fcn.100229b0
dec edi
jne 0x10068022
pop ebx
pop edi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.100085fd
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10007b0a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.10095c5f
leave
ret
Function at 0x1006ffb1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x277c
call fcn.10096da0
mov eax, dword [0x100f2810]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
push 0x100cc814
lea eax, [ebp - 0x2778]
push eax
call dword [0x100f3990]
push 0x32
push 0x10
lea eax, [ebp - 0x68]
push eax
push esi
call fcn.1001e574
mov esi, dword [0x100f3984]
add esp, 0x10
push eax
lea eax, [ebp - 0x2778]
push eax
call esi
push 0x100cc80c
lea eax, [ebp - 0x2778]
push eax
call esi
push 0x32
push 0x10
lea eax, [ebp - 0x68]
push eax
push ebx
call fcn.1001e574
add esp, 0x10
push eax
lea eax, [ebp - 0x2778]
push eax
call esi
push str._
lea eax, [ebp - 0x2778]
push eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x2744]
push dword [ebp + 8]
push 0x136d
push eax
call fcn.10098703
xor ebx, ebx
lea eax, [edi + 0x8c]
add esp, 0x10
cmp dword [eax + 0x18], 8
mov word [ebp - 0x6a], bx
jb 0x10070076
mov eax, dword [eax + 4]
jmp 0x10070079
add eax, 4
push ebx
push ebx
push 4
push ebx
push 1
push 0x40000000
push eax
call dword [0x100f3904]
mov edi, eax
cmp edi, 0xffffffff
je 0x100700df
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x277c]
push eax
lea eax, [ebp - 0x2778]
push eax
call dword [0x100f3998]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
shl eax, 1
push eax
lea eax, [ebp - 0x2778]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x277c]
push eax
push 4
push 0x100bf108
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.10095c5f
leave
ret 8
Function at 0x10070e15
Capabilities:
Get file size
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xa4], 8
push edi
jb 0x10070e31
mov eax, dword [esi + 0x90]
jmp 0x10070e37
lea eax, [esi + 0x90]
xor ebx, ebx
push ebx
push ebx
push 4
push ebx
push 1
push 0x40000000
push eax
call dword [0x100f3904]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x10070f9d
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x24]
push eax
call fcn.1001eb76
cmp dword [esi + 0xac], ebx
mov edi, eax
pop ecx
mov dword [ebp - 0x14], edi
jne 0x10070e85
cmp dword [esi + 0xb0], ebx
je 0x10070f9d
cmp dword [esi + 0xb4], edi
jge 0x10070f9d
mov ecx, dword [esi + 0x68]
cmp ecx, ebx
je 0x10070f9d
mov eax, dword [ecx]
push ebx
call dword [eax + 4]
test eax, eax
je 0x10070f9d
cmp dword [esi + 0xac], ebx
lea eax, [edi + 0x3c]
mov byte [ebp - 1], bl
mov dword [esi + 0xb4], eax
je 0x10070ef5
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x34]
push eax
call fcn.1001eb76
pop ecx
mov ecx, dword [esi + 0xac]
add ecx, eax
cmp ecx, edi
jae 0x10070ef5
mov byte [ebp - 1], 1
lea edi, [esi + 0xb0]
cmp dword [edi], ebx
je 0x10070f19
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [edi]
ja 0x10070f15
cmp dword [ebp - 0xc], ebx
je 0x10070f19
mov byte [ebp - 1], 1
cmp byte [ebp - 1], bl
je 0x10070f93
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.10070221
mov ecx, esi
call fcn.10070560
cmp dword [esi + 0xa4], 8
jb 0x10070f46
mov eax, dword [esi + 0x90]
jmp 0x10070f4c
lea eax, [esi + 0x90]
push ebx
push ebx
push 4
push ebx
push 1
push 0x40000000
push eax
call dword [0x100f3904]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x10070f76
mov esi, dword [esi + 0x68]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
or eax, 0xffffffff
jmp 0x10070fa0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
mov ecx, esi
call fcn.1006fe54
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov esi, dword [esi + 0x68]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10070fa5
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov dword [ebp - 4], ecx
call fcn.10070e15
mov edi, eax
cmp edi, 0xffffffff
je 0x10071018
push ebx
push esi
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
jne 0x10070fdf
push ebx
lea eax, [ebp - 8]
push eax
push 2
push 0x100ccaa4
push edi
call esi
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
push edi
call fcn.10070c29
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
call dword [0x100f3998]
shl eax, 1
push eax
push dword [ebp + 0xc]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
jmp 0x1007101e
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
leave
ret 8

Function at 0x100717cd
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 8], ecx
xor eax, eax
mov edi, dword [eax + 0x100f0420]
mov edx, dword [ecx]
mov dword [eax + edx], edi
add eax, 4
cmp eax, 0x48
jl 0x100717dc
xor eax, eax
mov edx, 0x100
mov ebx, dword [eax + 0x100f0468]
mov edi, dword [ecx + 4]
mov dword [eax + edi], ebx
add eax, 4
dec edx
jne 0x100717f6
cmp eax, 0x1000
jl 0x100717f1
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
jmp 0x1007181d
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
mov ecx, dword [ebp - 4]
add ecx, eax
lea eax, [esi + 1]
cdq
idiv ebx
mov dword [ebp + 0xc], ecx
lea eax, [esi + 2]
add dword [ebp - 4], 4
movzx ecx, byte [edx + edi]
cdq
idiv ebx
mov ch, byte [esi + edi]
shl ecx, 8
movzx eax, byte [edx + edi]
or ecx, eax
lea eax, [esi + 3]
cdq
idiv ebx
shl ecx, 8
movzx eax, byte [edx + edi]
or ecx, eax
mov eax, dword [ebp + 0xc]
xor dword [eax], ecx
lea eax, [esi + 4]
cdq
idiv ebx
cmp dword [ebp - 4], 0x48
mov esi, edx
jl 0x1007181a
and dword [ebp + 0xc], 0
and dword [ebp + 8], 0
mov esi, dword [ebp - 8]
xor edi, edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.10071147
mov eax, dword [esi]
mov ecx, dword [ebp + 0xc]
mov dword [edi + eax], ecx
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
mov dword [edi + eax + 4], ecx
add edi, 8
cmp edi, 0x48
jl 0x10071876
xor edi, edi
mov ebx, 0x80
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.10071147
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 0xc]
mov dword [edi + eax], ecx
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 8]
mov dword [edi + eax + 4], ecx
add edi, 8
dec ebx
jne 0x100718a5
cmp edi, 0x1000
jl 0x100718a0
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10073f3c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x24]
mov dword [ebp - 0xc], edi
jmp 0x10073f4f
mov edi, dword [ebp - 0xc]
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x6c]
sub eax, ecx
sub eax, edx
mov dword [ebp - 8], eax
jne 0x10073f6e
test ecx, ecx
jne 0x10073f7c
test edx, edx
jne 0x10073f7c
mov dword [ebp - 8], edi
jmp 0x10073fe6
cmp eax, 0xffffffff
jne 0x10073f7c
mov dword [ebp - 8], 0xfffffffe
jmp 0x10073fe6
mov eax, dword [esi + 0x24]
lea eax, [edi + eax - 0x106]
cmp ecx, eax
jb 0x10073fe6
mov eax, dword [esi + 0x30]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.10095880
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov ebx, edx
sub ebx, edi
cmp edx, edi
sbb edx, edx
not edx
and edx, ebx
dec ecx
mov word [eax], dx
jne 0x10073fad
mov eax, dword [esi + 0x38]
mov edx, edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov ebx, ecx
sub ebx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, ebx
dec edx
mov word [eax], cx
jne 0x10073fcc
add dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x1007408c
mov ebx, dword [esi + 0x6c]
add ebx, dword [esi + 0x64]
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 8]
add ebx, dword [esi + 0x30]
cmp eax, ecx
mov dword [ebp - 4], eax
jbe 0x1007400b
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x10074015
xor eax, eax
jmp 0x1007404d
sub eax, dword [ebp - 4]
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x18], 0
jne 0x10074037
push dword [ebp - 4]
push dword [edi]
push dword [edi + 0x30]
call fcn.10075131
add esp, 0xc
mov dword [edi + 0x30], eax
push dword [ebp - 4]
push dword [edi]
push ebx
call fcn.10095880
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x6c], eax
mov edi, dword [esi + 0x6c]
cmp edi, 3
jb 0x10074078
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x30]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp edi, 0x106
jae 0x1007408c
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x10073f4c
pop edi
pop ebx
leave
ret
Function at 0x100953d1
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x100f2810]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.100952a7
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.10095d80
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 0x10095433
cmp dword [ebp - 0x1c], 5
jb 0x1009544b
jmp 0x10095447
cmp dword [ebp - 0x10], 1
jne 0x1009544b
cmp dword [ebp - 0x1c], 4
ja 0x10095447
jne 0x1009544b
cmp dword [ebp - 0x18], 0
jbe 0x1009544b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x100d5d90
call fcn.1000130d
test eax, eax
jge 0x1009546c
mov byte [0x100f3a44], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.10095c5f
add ebp, 0x78
leave
ret

Function at 0x100970c8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.10096da0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10097163
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x100f49d8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x10097163
cmp eax, 1
je 0x10097184
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10097163
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x10097130
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x1009715f
xor eax, eax
inc eax
jmp 0x100971a3
cmp edi, eax
jae 0x10097167
xor eax, eax
jmp 0x100971a3
cmp eax, esi
jae 0x1009716e
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x100f49d8]
jmp 0x10097187
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret