joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d790
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b58c0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4e9688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
mov byte [ebp - 0xd], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d80d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d7f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 8]
push 0x64
lea ebx, [esi + 0x24]
push 0
push ebx
call fcn.00497780
add esp, 0xc
lea edi, [esi + 4]
push edi
mov dword [ebx], 2
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x180]
mov edx, dword [ecx + 4]
add esi, 0x168
push edx
mov ecx, esi
call fcn.004156a0
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [eax], eax
mov esi, dword [esi + 0x18]
push edi
mov dword [esi + 8], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
jne 0x40d873
mov byte [ebp - 0xd], 0
xor edi, edi
mov dword [ebp - 0x14], edi
push edi
push 0x80
push 4
push edi
push 1
push 0x40000000
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x40d905
call fcn.004230e0
test eax, eax
jne 0x40d90c
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LockFile]
test eax, eax
je 0x40d90c
push 0
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.00422ef0
test eax, eax
jne 0x40d8e8
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [eax + 0x64]
mov edx, ebx
call fcn.00422e80
test eax, eax
jne 0x40d8e8
push eax
push 0x64
lea esi, [ebp - 0x14]
call fcn.00422e30
mov bl, 1
test eax, eax
je 0x40d8eb
mov bl, byte [ebp - 0xd]
cmp edi, 0xffffffff
je 0x40d8ff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
test bl, bl
jne 0x40d917
jmp 0x40d90f
mov edi, eax
mov dword [ebp - 0x14], edi
jmp 0x40d8a1
mov bl, byte [ebp - 0xd]
mov eax, dword [ebp + 8]
call fcn.0040dab0
test edi, edi
je 0x40d922
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d948
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40f590
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push str.GetNativeSystemInfo
push str.kernel32.dll
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f601
lea ecx, [ebp - 0x14c]
push ecx
call eax
jmp 0x40f60e
lea edx, [ebp - 0x14c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push esi
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00497780
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call esi
test eax, eax
jne 0x40f655
lea edx, [ebp - 0x120]
push edx
mov dword [ebp - 0x120], 0x114
call esi
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x124]
push ecx
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x128], 0
call fcn.0044f390
add esp, 8
pop esi
test eax, eax
je 0x40f6ae
mov ecx, dword [ebp - 0x124]
mov eax, ecx
movzx edx, cx
mov ecx, dword [ebp - 0x14c]
shr eax, 0x10
cmp cx, 9
je 0x40f6be
cmp cx, 6
je 0x40f6be
cmp eax, 5
jne 0x40f6c9
cmp edx, 2
jne 0x40f6c9
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
cmp eax, 6
jb 0x40f6ae
jne 0x40f6c9
test edx, edx
je 0x40f6ae
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.00491281
mov esp, ebp
pop ebp
ret
Function at 0x40f7a0
Capabilities:
Delete registry value
Persist via app paths registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
mov edi, ecx
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x418], edi
mov word [ebp - 0x20c], ax
call fcn.00497780
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x412]
push eax
mov word [ebp - 0x414], dx
call fcn.00497780
add esp, 0x18
call fcn.0040f590
test al, al
jne 0x40f80f
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
push esi
call fcn.00401020
movzx eax, al
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x40f88a
lea esi, [ebp - 0x428]
call fcn.0040d210
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f832
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov eax, dword [0x4f11c4]
test eax, eax
je 0x40f879
cmp dword [ebp - 0x420], 1
jne 0x40f879
mov edx, dword [ebp - 0x424]
push edx
call eax
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x40f88a
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.safemon360procmon.dll
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.0040f6e0
add esp, 0xc
test al, al
jne 0x40f8b3
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 0x20c]
push ecx
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40f8e4
push str.FixRegSrv
push esi
call edi
test eax, eax
je 0x40f8e4
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.NeedReboot
push str.SOFTWARE360safe_safemon
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
lea edx, [ebp - 0x20c]
push edx
call ebx
mov esi, eax
test esi, esi
je 0x40f91d
push str.InstallCall
push esi
call edi
test eax, eax
je 0x40f91d
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x20c]
push eax
call ebx
mov esi, eax
test esi, esi
je 0x40f941
push str.ReloadSelfProtectRule
push esi
call edi
test eax, eax
je 0x40f941
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x41c], 0
je 0x40f98e
mov edx, dword [ebp - 0x418]
push str.deepscanqutmload.dll
lea ecx, [ebp - 0x414]
push ecx
push edx
call fcn.0040f6e0
add esp, 0xc
test al, al
jne 0x40f97a
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x414]
push eax
call ebx
test eax, eax
je 0x40f98e
mov edi, eax
call fcn.0040f770
mov ecx, dword [ebp - 4]
pop ebx
pop esi
xor ecx, ebp
mov al, 1
pop edi
call fcn.00491281
mov esp, ebp
pop ebp
ret
Function at 0x40fe50
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x3f
lea eax, [ebp - 0x7b]
push 0
push eax
mov byte [ebp - 0x7c], 0
call fcn.00497780
add esp, 0xc
xor eax, eax
jmp 0x40fe80
mov ecx, eax
shr ecx, 3
movsx edx, byte [ecx + str.1F7BB2575E4D2D1B4F8FE32D1E6F53B87C981C61D3BFFA01]
mov ecx, eax
and ecx, 7
shl edx, cl
inc eax
sar edx, 7
and dl, 1
mov byte [ebp + eax - 0x7d], dl
cmp eax, 0x40
jb 0x40fe80
push 0x37
lea eax, [ebp - 0x3b]
push 0
push eax
mov byte [ebp - 0x3c], 0
call fcn.00497780
add esp, 0xc
xor eax, eax
lea esp, [esp]
movsx ecx, byte [eax + str.91__]
movzx edx, byte [ebp + ecx - 0x7d]
movsx ecx, byte [eax + 0x4cb579]
mov byte [ebp + eax - 0x3c], dl
movzx edx, byte [ebp + ecx - 0x7d]
movsx ecx, byte [eax + 0x4cb57a]
mov byte [ebp + eax - 0x3b], dl
movzx edx, byte [ebp + ecx - 0x7d]
movsx ecx, byte [eax + 0x4cb57b]
mov byte [ebp + eax - 0x3a], dl
movzx edx, byte [ebp + ecx - 0x7d]
mov byte [ebp + eax - 0x39], dl
add eax, 4
cmp eax, 0x38
jl 0x40fec0
push esi
lea edx, [ebp - 0x3c]
call fcn.0040ff20
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
Function at 0x40ff20
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov ecx, 7
mov esi, edx
lea edi, [ebp - 0x90]
rep movsd dword es:[edi], dword [esi]
lea esi, [edx + 0x1c]
mov ecx, 7
lea edi, [ebp - 0xac]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
mov byte [ebp - 0x3c], 0
mov dword [ebp - 0x3b], eax
mov dword [ebp - 0x37], eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov word [ebp - 0x23], ax
mov byte [ebp - 0x21], al
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov dword [ebp - 0xb0], edi
inc ebx
jmp 0x40ffa6
mov edi, dword [ebp - 0xb0]
movsx esi, byte [edi + 0x4cb5e0]
mov eax, 0x1c
sub eax, esi
push eax
lea ecx, [ebp + esi - 0x90]
push ecx
lea edx, [ebp - 0x3c]
push edx
call fcn.004993f0
push esi
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x20]
push eax
sub ecx, esi
push ecx
call fcn.004993f0
movsx esi, byte [edi + 0x4cb5e0]
mov edx, 0x1c
sub edx, esi
push edx
lea eax, [ebp + esi - 0xac]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.004993f0
push esi
lea edx, [ebp - 0xac]
lea eax, [ebp - 4]
push edx
sub eax, esi
push eax
call fcn.004993f0
push 0x37
lea ecx, [ebp - 0x73]
push 0
push ecx
call fcn.00497780
mov ecx, 7
lea esi, [ebp - 0x3c]
lea edi, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
mov ecx, 7
lea esi, [ebp - 0x20]
lea edi, [ebp - 0x58]
add esp, 0x3c
rep movsd dword es:[edi], dword [esi]
xor eax, eax
jmp 0x410040
movsx edx, byte [eax + 0x4cb5b0]
movzx ecx, byte [ebp + edx - 0x75]
mov byte [ebx + eax - 1], cl
movsx edx, byte [eax + 0x4cb5b1]
movzx ecx, byte [ebp + edx - 0x75]
mov byte [ebx + eax], cl
movsx edx, byte [eax + 0x4cb5b2]
movzx ecx, byte [ebp + edx - 0x75]
mov byte [ebx + eax + 1], cl
movsx edx, byte [eax + 0x4cb5b3]
movzx ecx, byte [ebp + edx - 0x75]
mov byte [ebx + eax + 2], cl
movsx edx, byte [eax + 0x4cb5b4]
movzx ecx, byte [ebp + edx - 0x75]
mov byte [ebx + eax + 3], cl
movsx edx, byte [eax + 0x4cb5b5]
movzx ecx, byte [ebp + edx - 0x75]
mov byte [ebx + eax + 4], cl
add eax, 6
cmp eax, 0x30
jl 0x410040
mov eax, dword [ebp - 0xb0]
mov ecx, 7
lea esi, [ebp - 0x3c]
lea edi, [ebp - 0x90]
rep movsd dword es:[edi], dword [esi]
inc eax
mov ecx, 7
lea esi, [ebp - 0x20]
lea edi, [ebp - 0xac]
add ebx, 0x30
cmp eax, 0x10
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xb0], eax
jl 0x40ffa0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00491281
mov esp, ebp
pop ebp
ret 4
Function at 0x410100
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x3f
lea eax, [ebp - 0x83]
push 0
push eax
mov edi, ecx
mov byte [ebp - 0x84], 0
call fcn.00497780
push 0x3f
lea ecx, [ebp - 0xe3]
push 0
push ecx
mov byte [ebp - 0xe4], 0
call fcn.00497780
push 0x3f
lea edx, [ebp - 0x43]
push 0
push edx
call fcn.00497780
add esp, 0x24
xor esi, esi
jmp 0x410160
mov eax, esi
shr eax, 3
movsx edx, byte [eax + edi]
mov ecx, esi
and ecx, 7
shl edx, cl
inc esi
sar edx, 7
and dl, 1
mov byte [ebp + esi - 0x85], dl
cmp esi, 0x40
jb 0x410160
lea eax, [ebp - 0xe4]
lea ecx, [ebp - 0x84]
call fcn.004105a0
mov ecx, 8
lea esi, [ebp - 0xe4]
lea edi, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [ebp - 0xc4]
lea edi, [ebp - 0xa4]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
lea esp, [esp]
lea eax, [ebp - 0xa4]
push eax
lea edx, [ebp - 0x64]
mov ecx, 0xf
push edx
sub ecx, esi
mov edx, ebx
call fcn.00410340
inc esi
cmp esi, 0x10
jl 0x4101c0
mov ecx, 8
lea esi, [ebp - 0xa4]
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [ebp - 0x64]
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
lea edi, [ebx + 0x641]
jmp 0x410210
movsx eax, byte [ecx + 0x4cb880]
movzx edx, byte [ebp + eax - 0x45]
mov byte [edi + ecx - 1], dl
movsx eax, byte [ecx + 0x4cb881]
movzx edx, byte [ebp + eax - 0x45]
mov byte [edi + ecx], dl
movsx eax, byte [ecx + 0x4cb882]
movzx edx, byte [ebp + eax - 0x45]
mov byte [edi + ecx + 1], dl
movsx eax, byte [ecx + 0x4cb883]
movzx edx, byte [ebp + eax - 0x45]
mov byte [edi + ecx + 2], dl
add ecx, 4
cmp ecx, 0x40
jl 0x410210
xor eax, eax
mov ecx, 0xfffff9c2
sub ecx, ebx
mov edx, 0xfffff9bf
mov dword [ebx + 0x688], eax
sub edx, ebx
mov dword [ebx + 0x68c], eax
lea esi, [eax + 2]
mov eax, edi
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0xe8], edx
jmp 0x41028c
mov edx, dword [ebp - 0xe8]
add edx, eax
mov ecx, edx
shr ecx, 3
lea edi, [ecx + ebx + 0x688]
and edx, 7
mov ecx, 7
sub ecx, edx
movzx edx, byte [eax - 1]
shl dl, cl
lea ecx, [esi - 1]
shr ecx, 3
or byte [edi], dl
lea edi, [ecx + ebx + 0x688]
lea edx, [esi - 1]
and edx, 7
mov ecx, 7
sub ecx, edx
movzx edx, byte [eax]
shl dl, cl
mov ecx, esi
shr ecx, 3
or byte [edi], dl
lea edi, [ecx + ebx + 0x688]
mov edx, esi
and edx, 7
mov ecx, 7
sub ecx, edx
movzx edx, byte [eax + 1]
shl dl, cl
mov ecx, dword [ebp - 0xec]
add esi, 4
or byte [edi], dl
lea edx, [ecx + eax]
mov ecx, edx
shr ecx, 3
lea edi, [ecx + ebx + 0x688]
and edx, 7
mov ecx, 7
sub ecx, edx
movzx edx, byte [eax + 2]
shl dl, cl
mov ecx, dword [ebp - 0xe8]
add eax, 4
add ecx, eax
or byte [edi], dl
cmp ecx, 0x40
jb 0x410286
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00491281
mov esp, ebp
pop ebp
ret 4
Function at 0x4105a0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, str.:2_
mov edi, 0x4cb5f1
mov edx, 0x4cb5f2
mov ebx, 0x4cb5f3
sub esi, eax
sub edi, eax
sub edx, eax
sub ebx, eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 0x10
nop
movsx ebx, byte [esi + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax], bl
movsx ebx, byte [edi + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 1], bl
movsx ebx, byte [edx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 2], bl
mov ebx, dword [ebp - 8]
movsx ebx, byte [ebx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 3], bl
add eax, 4
sub dword [ebp - 4], 1
jne 0x4105d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x410620
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, 0x4cb633
sub ebx, eax
mov dword [ebp - 8], ebx
push esi
mov ebx, 0x4cb634
sub ebx, eax
push edi
mov dword [ebp - 0xc], ebx
mov esi, 0x4cb630
mov edi, 0x4cb631
mov edx, 0x4cb632
mov ebx, 0x4cb635
sub esi, eax
sub edi, eax
sub edx, eax
sub ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 8
movsx ebx, byte [esi + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax], bl
movsx ebx, byte [edi + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 1], bl
movsx ebx, byte [edx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 2], bl
mov ebx, dword [ebp - 8]
movsx ebx, byte [ebx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 3], bl
mov ebx, dword [ebp - 0xc]
movsx ebx, byte [ebx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 4], bl
mov ebx, dword [ebp - 0x10]
movsx ebx, byte [ebx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 5], bl
add eax, 6
sub dword [ebp - 4], 1
jne 0x410663
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4107a0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, 0x4cb860
mov edi, 0x4cb861
mov edx, 0x4cb862
mov ebx, 0x4cb863
sub esi, eax
sub edi, eax
sub edx, eax
sub ebx, eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 8
nop
movsx ebx, byte [esi + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax], bl
movsx ebx, byte [edi + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 1], bl
movsx ebx, byte [edx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 2], bl
mov ebx, dword [ebp - 8]
movsx ebx, byte [ebx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 3], bl
add eax, 4
sub dword [ebp - 4], 1
jne 0x4107d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ba90
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb6a0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x4e9688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x14], esi
or ebx, 0xffffffff
nop
push 0x4cd228
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00411090
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x4eb878]
push ecx
push eax
lea edx, [ebp - 0x10]
push edx
call fcn.00411090
add esp, 0x18
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bb0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, ebx
jne 0x41bb25
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jmp 0x41bb2a
shr eax, 4
test al, 1
je 0x41bb7a
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41bb4d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, 8
jb 0x41bac0
mov esi, dword [ebp + 8]
push esi
mov ecx, 0x4c4348
call fcn.00424e40
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00425150
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x41bb67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x422d30
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 4]
push 0
push eax
push ecx
push 2
push 0
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
jne 0x422d6a
call fcn.004230e0
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
push 0
push ecx
mov dword [esi + 0x10], 0
mov edx, dword [esi + 0x10]
push edx
mov dword [esi + 4], ecx
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x14]
push ecx
push 4
push eax
mov dword [esi + 0x18], 4
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [esi], eax
test eax, eax
jne 0x422dbe
call fcn.004230e0
mov edx, dword [esi + 8]
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x423170
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4f37c8]
push ebx
mov ebx, dword [ebp + 0x10]
test eax, eax
jne 0x42318a
call fcn.004232d0
mov dword [0x4f37c8], eax
mov eax, dword [eax + 0x140]
cmp eax, 2
jne 0x4231ad
mov eax, dword [0x4f37c8]
mov ecx, dword [eax + 0x140]
cmp ecx, 2
jne 0x4231ad
mov eax, dword [eax + 0x110]
jmp 0x4231af
xor eax, eax
mov edx, dword [ebp + 0xc]
push esi
push edi
push ebx
push 0
push edx
test eax, eax
je 0x4231c7
mov ecx, dword [ebp + 8]
push ecx
call eax
pop ebx
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
pop ebx
pop ebp
ret 0xc

Function at 0x423340
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push 2
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x4233c5
push edi
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4233bd
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4233bd
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x4233b6
mov ecx, dword [ebp - 4]
push ecx
call fcn.00491d08
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4233b6
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
push edx
push eax
push ebx
call fcn.004993f0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
xor esi, esi
cmp ebx, esi
je 0x423409
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0x4cd228
push ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x423400
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov esi, 1
push ebx
call fcn.00491ec3
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4237f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push esi
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42385e
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x42382d
cmp eax, 2
jne 0x423848
mov eax, dword [ebp - 4]
test esi, esi
je 0x423858
test eax, eax
je 0x423853
test al, 1
jne 0x423848
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x423858
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8