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

Disassembly:
sub esp, 0xd00
mov eax, dword [0x5b0c20]
xor eax, esp
mov dword [esp + 0xcfc], eax
mov eax, dword [esp + 0xd04]
push edi
push 3
push 0xc0000000
push eax
call fcn.00463110
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x46399b
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x4639b3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov ecx, dword [esp + 0xcfc]
xor ecx, esp
call fcn.00524d83
add esp, 0xd00
ret
push ebx
push ebp
push esi
xor esi, esi
push esi
lea eax, [esp + 0x14]
push eax
push 0xcf4
lea ecx, [esp + 0x24]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x463a58
mov ebx, dword [esp + 0xd18]
mov edi, edi
cmp dword [esp + 0x10], 0xcf4
jne 0x463a58
cmp dword [esp + 0x42c], 0
jne 0x463a3b
mov eax, 0x10
xor ecx, ecx
jmp 0x463a00
mov edx, dword [esp + ecx + 0x18]
cmp edx, dword [ecx + 0x5a3710]
jne 0x463a58
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x463a00
lea edx, [esp + 0x430]
mov ecx, 0x20
mov eax, ebx
sub edx, ebx
cmp ecx, 4
jb 0x463a7a
mov ebp, dword [edx + eax]
cmp ebp, dword [eax]
jne 0x463a3b
sub ecx, 4
add eax, 4
jmp 0x463a27
push 0
lea eax, [esp + 0x14]
push eax
push 0xcf4
lea ecx, [esp + 0x24]
push ecx
push edi
inc esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4639e0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0xd0c]
pop esi
pop ebp
pop ebx
pop edi
xor ecx, esp
call fcn.00524d83
add esp, 0xd00
ret
push 0x60
lea edx, [esp + 0x8a4]
push 0
push edx
mov dword [esp + 0x438], 1
call fcn.00526520
imul esi, esi, 0xcf4
add esp, 0xc
push 0
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, esi
jne 0x463a58
push 0
lea eax, [esp + 0x18]
push eax
push 0xcf4
lea ecx, [esp + 0x24]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x463a5f
cmp dword [esp + 0x14], 0xcf4
jne 0x463a5f
mov eax, 1
jmp 0x463a61
Function at 0x463f60
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x460
mov eax, dword [0x5b0c20]
xor eax, esp
mov dword [esp + 0x45c], eax
mov eax, dword [esp + 0x46c]
push ebx
mov ebx, dword [esp + 0x468]
push ebp
mov ebp, dword [esp + 0x470]
push esi
push 0x104
lea ecx, [esp + 0x264]
push ecx
push 0
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x260]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x463fb0
sub eax, edx
sar eax, 1
test eax, eax
jle 0x463fdd
cmp word [esp + eax*2 + 0x260], 0x5c
je 0x463fdd
xor edx, edx
mov word [esp + eax*2 + 0x260], dx
dec eax
test eax, eax
jg 0x463fc3
lea eax, [esp + 0x260]
add eax, 0xfffffffe
jmp 0x463ff0
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x463ff0
mov ecx, dword [str.Language]
mov edx, dword [0x555bec]
mov dword [eax], ecx
mov ecx, dword [0x555bf0]
mov dword [eax + 4], edx
mov edx, dword [0x555bf4]
mov dword [eax + 8], ecx
mov cx, word [0x555bf8]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
lea eax, [esp + 0x260]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x464034
mov edx, dword [str..txt]
mov ecx, dword [0x560dcc]
mov dword [eax], edx
mov edx, dword [0x560dd0]
mov dword [eax + 4], ecx
mov cx, word [0x560dd4]
mov dword [eax + 8], edx
lea edx, [esp + 0x10]
mov word [eax + 0xc], cx
push edx
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4640ae
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x44]
push ebp
push edx
call ebx
add esp, 0xc
test eax, eax
jne 0x4640a6
lea eax, [esp + 0x14]
push eax
push esi
call edi
test eax, eax
jne 0x464086
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov ecx, dword [esp + 0x468]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00524d83
add esp, 0x460
ret

Function at 0x464170
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 2
push 0
push esi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4641a1
lea ecx, [esp]
push ecx
push esi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x4641a1
xor al, al
pop ecx
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp]
push ebx
push 4
lea edx, [esp + 0x14]
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 4]
test eax, eax
push edx
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ecx
ret
Function at 0x4641e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push 0x20019
push 0
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x464204
xor eax, eax
add esp, 0xc
ret
mov ecx, dword [esp + 0x10]
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 4]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push ecx
push edx
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4641fe
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
not eax
and eax, dword [esp + 8]
add esp, 0xc
ret
Function at 0x4650f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
shr ebx, 2
xor edi, edi
test ebx, ebx
jbe 0x465162
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
add esi, 4
sub edx, dword [ebp + 0x14]
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 0x10]
xor eax, dword [edx + edi*4]
push 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
xor ecx, dword [eax + esi]
lea edx, [esp + 0x14]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0xc]
push ecx
push edx
mov eax, edx
push eax
call fcn.00465070
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esi - 4], eax
mov dword [esi], ecx
add edi, 2
add esp, 0x10
add esi, 8
cmp edi, ebx
jb 0x465120
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46a1c0
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call fcn.00526520
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x20
mov eax, 1
pop esi
ret

Function at 0x46d1b0
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.00528350
mov eax, dword [0x5b0c20]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x46d215
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x46d215
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.00525dbb
add eax, 0x40
push eax
call fcn.0052a087
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00524d83
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.005274c6
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x46d2a4
call fcn.0046d070
test eax, eax
jle 0x46d2a4
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00524d83
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00524d83
add esp, 0x108
ret
Function at 0x46f840
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24
call fcn.00528350
mov eax, dword [0x5b0c20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, esi
push edi
mov dword [ebp - 0x18], esi
lea ecx, [eax + 1]
jmp 0x46f870
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x46f870
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
sub eax, ecx
lea edi, [eax + 1]
push edi
push esi
push 8
push 0xfde9
mov dword [ebp - 0x20], 8
call ebx
mov esi, eax
test esi, esi
jg 0x46f8e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x46f8ca
mov ecx, dword [ebp - 0x18]
push 0
push 0
push edi
push ecx
push 0
push 0xfde9
mov dword [ebp - 0x20], 0
call ebx
mov esi, eax
test esi, esi
jg 0x46f8e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x46f97a
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push edx
push eax
jmp 0x46f968
lea eax, [esi + esi]
call fcn.00529f40
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov eax, esp
push esi
push eax
push edi
push ecx
push edx
push 0xfde9
mov dword [ebp - 0x24], eax
call ebx
test eax, eax
je 0x46f97a
mov esi, dword [ebp - 0x1c]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46f913
push 8
sub eax, edx
lea ecx, [ebp - 0x14]
push ecx
inc eax
push eax
push esi
push 0
push 0xfde9
call ebx
test eax, eax
je 0x46f97a
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.00527bdc
mov esi, eax
add esp, 8
test esi, esi
jne 0x46fa1e
call fcn.0052aff4
cmp dword [eax], 2
je 0x46f960
call fcn.0052aff4
cmp dword [eax], 9
jne 0x46f972
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
push ecx
push edx
call fcn.005279de
mov esi, eax
add esp, 8
test esi, esi
jne 0x46fa1e
push 0xa9
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004676d0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
push 0x562fbc
push eax
push 0x562fb8
push ecx
push str.fopen_
push 5
call fcn.004679a0
add esp, 0x2c
call fcn.0052aff4
cmp dword [eax], 2
jne 0x46f9f0
push 0xac
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.004676d0
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00524d83
mov esp, ebp
pop ebp
ret
push 0xae
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.004676d0
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00524d83
mov esp, ebp
pop ebp
ret
push 0x5a49e4
call fcn.0046f2e0
mov edi, eax
add esp, 4
test edi, edi
jne 0x46fa50
push esi
call fcn.005276ba
add esp, 4
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00524d83
mov esp, ebp
pop ebp
ret
push 0
push edi
call fcn.0046ed70
push esi
push 1
push 0x6a
push edi
call fcn.0046f0d0
add esp, 0x18
mov eax, edi
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00524d83
mov esp, ebp
pop ebp
ret
Function at 0x4a3d20
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x4a3e03
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
movzx edx, byte [esi]
jl 0x4a3d9e
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + 0x57bb08]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x57bb08]
mov byte [ecx + 1], al
inc ecx
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + 0x57bb08]
inc ecx
mov byte [ecx], al
inc ecx
and edx, 0x3f
mov dl, byte [edx + 0x57bb08]
mov byte [ecx], dl
jmp 0x4a3df0
shl edx, 0x10
cmp edi, 2
jne 0x4a3daf
movzx eax, byte [esi + 1]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + 0x57bb08]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x57bb08]
inc ecx
mov byte [ecx], al
inc ecx
cmp edi, 1
jne 0x4a3ddd
lea edx, [edi + 0x3c]
jmp 0x4a3dea
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + 0x57bb08]
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x4a3d40
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret

Function at 0x4b6250
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x4b6269
mov esi, edi
mov edi, eax
jmp 0x4b626b
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x4b627b
mov eax, ebx
jmp 0x4b6285
push eax
push ebx
call fcn.0047c7b0
add esp, 8
test eax, eax
jne 0x4b628d
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x4b62a9
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x4b6294
cmp eax, dword [esi + 4]
jge 0x4b62c0
mov edi, edi
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esi + 4]
jl 0x4b62b0
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
test eax, eax
jle 0x4b62e1
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x4b62de
dec eax
test eax, eax
jg 0x4b62d0
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x4bbca7
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.00528350
mov eax, dword [0x5b0c20]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
test eax, eax
jbe 0x4bbe14
push ebx
dec eax
push edi
lea edi, [ebp + 0xc]
shr eax, 3
add ebp, 0x14
inc eax
mov dword [esp + 0x18], eax
movzx ebx, byte [esi]
movzx eax, byte [esi + 1]
inc esi
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
shl eax, 8
or ebx, eax
inc esi
movzx eax, byte [esi + 1]
inc esi
shl ecx, 0x10
or ebx, ecx
movzx ecx, byte [esi + 1]
shl edx, 0x18
inc esi
or ebx, edx
movzx edx, byte [esi + 1]
inc esi
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
shl edx, 0x10
or eax, edx
mov dl, byte [edi]
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov al, byte [ebp]
and dl, 0xdf
and al, 0xbf
or dl, 0x40
or al, 0x20
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
inc esi
mov byte [edi], dl
mov byte [ebp], al
call fcn.004cb5c0
lea ecx, [esp + 0x30]
push ecx
push edi
call fcn.004cb640
push 1
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.004c9c40
push ebp
call fcn.004cb5c0
lea ecx, [esp + 0x48]
push ecx
push ebp
call fcn.004cb640
push 1
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.004c9c40
mov eax, dword [esp + 0x50]
xor eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
xor dword [esp + 0x40], edx
xor ecx, ebx
xor ebx, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, edi
mov byte [eax], bl
mov edx, ebx
inc eax
shr edx, 8
add esp, 0x30
mov byte [eax], dl
inc eax
inc eax
mov edx, ebx
shr edx, 0x10
mov byte [eax - 1], dl
mov edx, dword [esp + 0x14]
inc eax
shr ebx, 0x18
mov byte [eax - 1], bl
mov byte [eax], dl
mov ebx, edx
inc eax
inc eax
shr ebx, 8
mov byte [eax - 1], bl
mov ebx, edx
shr edx, 0x18
shr ebx, 0x10
mov byte [eax], bl
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
mov eax, ebp
mov byte [eax], cl
mov byte [eax + 1], dl
inc eax
inc eax
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
inc eax
shr ecx, 0x18
mov byte [eax], cl
mov ecx, dword [esp + 0x10]
inc eax
mov byte [eax], cl
mov edx, ecx
shr edx, 8
inc eax
mov byte [eax], dl
mov edx, ecx
inc eax
shr edx, 0x10
shr ecx, 0x18
sub dword [esp + 0x18], 1
mov byte [eax], dl
mov byte [eax + 1], cl
jne 0x4bbcc3
pop edi
pop ebx
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
xor ecx, esp
call fcn.00524d83
add esp, 0xa0
ret

Function at 0x4dfe30
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
xor eax, eax
ret
Function at 0x4e0500
Capabilities:
Get file size

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x4e0510
xor eax, eax
pop esi
ret 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
je 0x4e050a
test eax, eax
jne 0x4e0531
mov dword [esi + 8], eax
mov eax, 1
pop esi
ret 4
mov ecx, dword [esi]
push ebx
mov bl, byte [esp + 0xc]
push 0
push eax
xor eax, eax
test bl, bl
sete al
push 0
lea eax, [eax + eax + 2]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 4], eax
test eax, eax
jne 0x4e0566
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
xor eax, eax
pop esi
ret 4
mov edx, dword [esi + 0xc]
movzx ecx, bl
neg ecx
push edx
sbb ecx, ecx
push 0
and ecx, 0xfff0ffe5
push 0
add ecx, 0xf001f
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x10], eax
test eax, eax
je 0x4e055f
pop ebx
mov dword [esi + 8], 0
mov eax, 1
pop esi
ret 4

Function at 0x4e0600
Capabilities:
Write file on windows

Disassembly:
cmp esi, 0xffffffff
jne 0x4e0608
xor eax, eax
ret
cmp byte [esp + 0xc], 0
je 0x4e061c
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
lea eax, [esp + 0xc]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4e063c
mov dword [esp + 8], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
ret

Function at 0x4e1230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54b9bb
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5b0c20]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.004e38a0
lea ecx, [esi + 0x18]
call fcn.004e38a0
lea ecx, [esi + 0x30]
call fcn.004e1060
lea edi, [esi + 0xd0]
mov ecx, edi
mov dword [esp + 0x18], 0
call fcn.004e38a0
lea ecx, [edi + 0x1c]
call fcn.004e38a0
lea ecx, [edi + 0x34]
call fcn.004e38a0
lea ecx, [edi + 0x4c]
call fcn.004e38a0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x4e15f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54bb08
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5b0c20]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], 0x627470
mov ecx, dword [str._____BEGIN_PUBLIC_KEY_____]
mov dword [esp + 0x24], eax
mov eax, dword [str._____END_PUBLIC_KEY_____]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.004e0f20
add esp, 0x14
test al, al
jne 0x4e167c
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.004e03c0
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
push edx
push eax
call fcn.004e1490
add esp, 8
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x24], 0xffffffff
call fcn.004e03c0
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x4e2410
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x5b0c20]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [0x600470]
cmp eax, 0xffffffff
jne 0x4e2477
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.00526520
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x10], 1
jne 0x4e246d
cmp dword [esp + 4], 4
jne 0x4e246d
cmp dword [esp + 8], 0xa
ja 0x4e246d
xor eax, eax
jmp 0x4e2472
mov eax, 0xfde9
mov dword [0x600470], eax
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00524d83
add esp, 0x98
ret
Function at 0x4e2d00
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ebx, dword [esp + 0x1c]
cmp eax, 0x80000000
setb al
test ebx, ebx
jne 0x4e2d1e
lea ebx, [esp + 8]
test al, al
je 0x4e2d47
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push ebx
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
pop ebx
add esp, 8
ret
push ebp
push esi
mov esi, dword [esp + 0x2c]
mov edx, dword [esi]
push edi
mov edi, dword [esp + 0x20]
push 0
or eax, 0xffffffff
mov dword [esp + 0x14], edx
call fcn.004e26d0
mov ecx, dword [esp + 0x20]
add esp, 4
push esi
mov esi, dword [esp + 0x30]
push esi
mov edi, eax
mov eax, dword [esp + 0x2c]
push ebx
push eax
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebp, eax
mov eax, edi
call fcn.004e2720
mov byte [esp + 0x28], 0
test ebp, ebp
jne case.0x4e2da2.3
mov ebx, dword [ebx]
lea eax, [ebx - 1]
cmp eax, 6
ja case.0x4e2da2.3
movzx edx, byte [eax + 0x4e2dd8]
jmp dword [edx*4 + 0x4e2dcc]
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x14]
call fcn.004e2cc0
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret